<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TGE-Studios</title>
	<atom:link href="http://www.tge-studio.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tge-studio.com</link>
	<description>Just Another Blog</description>
	<lastBuildDate>Tue, 14 Feb 2012 18:23:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Eloquent Terminal in Mac.</title>
		<link>http://www.tge-studio.com/2012/02/eloquent-terminal-in-mac/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=eloquent-terminal-in-mac</link>
		<comments>http://www.tge-studio.com/2012/02/eloquent-terminal-in-mac/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 17:49:28 +0000</pubDate>
		<dc:creator>Medalink</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash profile]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tge-studio.com/?p=29</guid>
		<description><![CDATA[I was working on my Mac this morning and was using the terminal to do some work with GIT and moving some files around and it dawned on me that the Mac terminal is very plain and lacks some of<span class="ellipsis">&#8230;</span> <a href="http://www.tge-studio.com/2012/02/eloquent-terminal-in-mac/"><div class="see-more">See more &#8250;</div><!-- end of .see-more --></a>]]></description>
			<content:encoded><![CDATA[<p>I was working on my Mac this morning and was using the terminal to do some work with GIT and moving some files around and it dawned on me that the Mac terminal is very plain and lacks some of the great aspects from linux that I am used too. Here is a screenshot of the default terminal in mac.</p>
<p>&nbsp;</p>
<p><img class="aligncenter size-full wp-image-32" title="Default Mac Terminal" src="http://www.tge-studio.com/wp-content/uploads/2012/02/terminal-1.jpg" alt="Default Mac Terminal" width="908" height="484" /></p>
<p>&nbsp;</p>
<p>First and formost this is black text on a white background which I am not all that happy with so I swapped over to pro which is white text on a black background. Take a look:</p>
<p><a href="http://www.tge-studio.com/wp-content/uploads/2012/02/terminal-21.jpg"><img class="aligncenter size-full wp-image-49" title="Default Mac Pro Terminal" src="http://www.tge-studio.com/wp-content/uploads/2012/02/terminal-21.jpg" alt="Default Mac Pro Terminal" width="908" height="484" /></a></p>
<p>The problem here is that the default typography is not up to par. Let&#8217;s change a few settings.</p>
<p>Terminal &gt; Preferences &gt; Settings &gt; Text</p>
<p>Change the font type to Menlo Bold 12 pt. Check the Antialias text box.</p>
<p><a href="http://www.tge-studio.com/wp-content/uploads/2012/02/terminal-2.jpg"><img class="aligncenter size-full wp-image-34" title="Mac's Terminal Pro Custom" src="http://www.tge-studio.com/wp-content/uploads/2012/02/terminal-2.jpg" alt="Mac's Terminal Pro Custom" width="908" height="484" /></a></p>
<p>Now that is much more traditional than the default but this now lacks a few things like colors, some really nice alias commands and some tweaks to the way command line history works.</p>
<p>Now in Ubuntu you normally edit your ~/.profile or your ~/.bashrc but on a Mac the default is ~/.bash_profile. Here we export certain settings and adjust the default terminal.</p>
<p>First let&#8217;s set our default editor to nano. This is my preference but you may like something else. By default Mac uses VIM.</p>
<pre># Default editors
export SVN_EDITOR=nano
export GIT_EDITOR=nano</pre>
<p>Next we want to uses colors for file names so we can have a visual indicator for file and folders and even seeing when a folder has public permissions.</p>
<pre># Use colors
export CLICOLOR=1;</pre>
<p>One thing I do not like is directory listing defaults on Mac. Let&#8217;s make an alias that will display the contents in a list, short and simple file sizes and show hidden files/folders. You could override the default ls command with this but I prefer to assign it to ll as Ubuntu and many other linux based distros use.</p>
<pre># A better directory listing
alias ll="ls -lha"</pre>
<p>Let&#8217;s tweak the history size to not only hold more but to ensure we do not store duplicate commands and we expand the history properly on resizing the terminal window.</p>
<pre># History
export HISTCONTROL=ignoredups:ignorespace
export HISTSIZE=10000
export HISTFILESIZE=2000
shopt -s histappend checkwinsize</pre>
<p>Adjust the bash shell to show us the current user and what machine we are working on as well as the current folder of the current directory. We also add some color to match the default in Ubuntu. This is really helpful if you work on a lot of different console windows or tabs at once.</p>
<pre># Bash shell
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]# '</pre>
<p>Alright after all of this your ~/.bash_profile should look like this:</p>
<pre># Default editors
export SVN_EDITOR=nano
export GIT_EDITOR=nano</pre>
<pre># Use colors
export CLICOLOR=1;</pre>
<pre># A better directory listing
alias ll="ls -lha"</pre>
<pre># History
export HISTCONTROL=ignoredups:ignorespace
export HISTSIZE=10000
export HISTFILESIZE=2000
shopt -s histappend checkwinsize</pre>
<pre># Bash shell
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]# '</pre>
<p>To apply the changes you need to reopen a terminal window or type</p>
<pre>source ~/.bash_profile</pre>
<p>Here is a screenshot for reference:</p>
<p><a href="http://www.tge-studio.com/wp-content/uploads/2012/02/terminal-3.jpg"><img class="aligncenter size-full wp-image-35" title="Custom Mac Pro Terminal" src="http://www.tge-studio.com/wp-content/uploads/2012/02/terminal-3.jpg" alt="Custom Mac Pro Terminal" width="908" height="484" /></a></p>
<p>As you can see folders are purple, files are white, public permissions show up as green highlight and yellow highlight. I also use a few different settings for terminal, I use a very transparent block cursor that&#8217;s tinted grey and my window background color is semi-transparent so I can see other windows behind it or other terminals.</p>
<p>Enjoy your new eloquent terminal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tge-studio.com/2012/02/eloquent-terminal-in-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts on SVN</title>
		<link>http://www.tge-studio.com/2011/12/thoughts-on-svn/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=thoughts-on-svn</link>
		<comments>http://www.tge-studio.com/2011/12/thoughts-on-svn/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 20:59:48 +0000</pubDate>
		<dc:creator>Medalink</dc:creator>
				<category><![CDATA[SVN]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.tge-studio.com/?p=22</guid>
		<description><![CDATA[Today I was committing some changes to my SVN repository when it dawned on me how much I love SVN. Why do I love SVN so much you might ask? Simple, I can track all my changes and interact with other developers<span class="ellipsis">&#8230;</span> <a href="http://www.tge-studio.com/2011/12/thoughts-on-svn/"><div class="see-more">See more &#8250;</div><!-- end of .see-more --></a>]]></description>
			<content:encoded><![CDATA[<p>Today I was committing some changes to my SVN repository when it dawned on me how much I love SVN. Why do I love SVN so much you might ask? Simple, I can track all my changes and interact with other developers easily and efficiently. Back before I found SVN I used FTP to manage my files on a central server and that was a pain when I needed to roll back a change I no longer wanted. I made hourly backups when I would be in develop mode and then could roll back. I do not miss those days.</p>
<p>&nbsp;</p>
<p>I also love how you can look over the logs from long ago and see what you where doing and the progress you have made. It&#8217;s a nice way to remind yourself of the work you have put into a project. This post does not serve much of anything but to say I love SVN. You should check it or GIT out if you don&#8217;t use one or the other. You will fall in love too!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tge-studio.com/2011/12/thoughts-on-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MVC Frameworks, Yes or No?</title>
		<link>http://www.tge-studio.com/2011/10/mvc-frameworks-yes-or-no/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mvc-frameworks-yes-or-no</link>
		<comments>http://www.tge-studio.com/2011/10/mvc-frameworks-yes-or-no/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 13:28:27 +0000</pubDate>
		<dc:creator>Medalink</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php mvc framework developer]]></category>

		<guid isPermaLink="false">http://www.tge-studio.com/?p=11</guid>
		<description><![CDATA[I get asked a lot if MVC Frameworks are useful or not and when they should be used. I think the answer to that questions can be answered generically. Let&#8217;s face it, it&#8217;s project dependent but there are signs when and when not to use them. First of<span class="ellipsis">&#8230;</span> <a href="http://www.tge-studio.com/2011/10/mvc-frameworks-yes-or-no/"><div class="see-more">See more &#8250;</div><!-- end of .see-more --></a>]]></description>
			<content:encoded><![CDATA[<p>I get asked a lot if MVC Frameworks are useful or not and when they should be used. I think the answer to that questions can be answered generically. Let&#8217;s face it, it&#8217;s project dependent but there are signs when and when not to use them.</p>
<p>First of all if your going to need some of the basic web related stuff like session management, database connections, profiles, editors, etc then yes use a MVC Framework. They have built in systems to handle everything you will need to start so you can jump right into coding your custom system. Secondly most MVC Frameworks have built in profiler, helpers, OS and driver classes and functions. I can&#8217;t tell you how many times I am knee deep in coding and think &#8220;I need to benchmark this function, let me write a system to do that&#8221;. I end up spending some time playing around and creating a benchmarking class or function taking away time from what I was planning on coding. Using a MVC Framework let&#8217;s you leverage pre-made classes and functions for when you run into a situation where you need something quick and you don&#8217;t want to spend the time making it yourself.</p>
<p>Here is a quick list of things I find most useful from using CodeIgniter (my MVC of choice).</p>
<ul>
<li>Multiple Database Drivers</li>
<li>Session Management</li>
<li>Benchmarking</li>
<li>Code Profiling</li>
<li>Built in Security</li>
<li>Rapid Development</li>
</ul>
<p>Within an hour of starting a project from scratch you should be able to have all your basics done. That&#8217;s what a MVC Framework is for.</p>
<p>Now why would you not use a MVC Framework if they are so great? Simple, the learning curve is destroyed when you just start calling functions and creating objects. Even looking at the source of each function and class call your limiting your idea of how it should work based on what the developers of the MVC Framework do. I have been programming PHP for 14 years and I can tell you there are hundreds of ways to do the same thing. I am from the self-taught group and I hate to use code I did not write or modify and that led me to many years of re-creating the session handlers and the database drivers, the URI parsing and all the elements of a CMS. I have written 4 CMS systems from scratch over the years and it has taken a lot of time to learn each part of the system and secure it, make it fast and optimized, make it OS independent and extensible.</p>
<p>I think at that point your not just learning how to code PHP your learning how the internet works and how technology on the internet is used and exploited. It&#8217;s not just about learning how to make a login system, today coding and developing something is learning how people will use it and how they expect it to work. The bar has been set high and you can&#8217;t just create a website with a MVC Framework and it be great and innovative. It&#8217;s more about the idea now and not the system.</p>
<p>To sum it up you should use a MVC Framework when you are in need of a rapid deployment situation and you have a grasp on the systems you will be &#8220;auto-generating&#8221;. You should not use a MVC Framework just to use it or if your doing it just because you always have. Be adventurous and try and create one yourself or go old school and write your own system.</p>
<p>You want to be innovative right? Not just doing the same thing over and over, you know Insanity.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tge-studio.com/2011/10/mvc-frameworks-yes-or-no/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

