<?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>Shaun Smith &#187; osx</title>
	<atom:link href="http://shaun.boyblack.co.za/blog/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://shaun.boyblack.co.za/blog</link>
	<description>Flex, Ruby, Mongo - London, UK</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:39:55 +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>OS X Git Prompt</title>
		<link>http://shaun.boyblack.co.za/blog/2009/11/15/os-x-git-prompt/</link>
		<comments>http://shaun.boyblack.co.za/blog/2009/11/15/os-x-git-prompt/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 01:26:37 +0000</pubDate>
		<dc:creator>shaun</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://shaun.boyblack.co.za/blog/?p=879</guid>
		<description><![CDATA[I&#8217;m currently using a modified version of git-prompt that looks something like this: If you want to try it out, you can download this zip-ball: git-prompt.zip Unpack that into your User folder, and add this to your bash .profile: # Git Prompt - Modified from: http://volnitsky.com/project/git-prompt/ [[ $- == *i* ]] &#38;&#38; . ~/git-prompt/git-prompt.sh Tip: You can open your .profile from your terminal like so: open ~/.profile Note: You will need to start a new shell session after editing that &#8230; <a href="http://shaun.boyblack.co.za/blog/2009/11/15/os-x-git-prompt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently using a modified version of <a title="Git-prompt" href="http://volnitsky.com/project/git-prompt/">git-prompt</a> that looks something like this:</p>
<p><img class="alignnone size-full wp-image-885" title="Git-prompt" src="http://shaun.boyblack.co.za/blog/wp-content/uploads/2009/11/Git-prompt1.png" alt="Git-prompt" width="499" height="558" /><br />
<span id="more-879"></span></p>
<p>If you want to try it out, you can download this zip-ball:</p>
<p><a href="http://shaun.boyblack.co.za/blog/wp-content/uploads/2009/11/git-prompt.zip">git-prompt.zip</a></p>
<p>Unpack that into your User folder, and add this to your bash .profile:</p>
<pre># Git Prompt - Modified from: http://volnitsky.com/project/git-prompt/
[[ $- == *i* ]] &amp;&amp; . ~/git-prompt/git-prompt.sh</pre>
<p>Tip: You can open your .profile from your terminal like so:</p>
<pre>open ~/.profile</pre>
<p>Note: You will need to start a new shell session after editing that file in order to see the changes.</p>
<p>I use Nano as my default bash text editor. If you want that, add this to your .profile:</p>
<pre># Use the nano text editor
export EDITOR="nano"</pre>
<p>And for the Terminal.app style:</p>
<p><img class="alignnone size-full wp-image-883" title="Terminal-prefs" src="http://shaun.boyblack.co.za/blog/wp-content/uploads/2009/11/Terminal-prefs.png" alt="Terminal-prefs" width="500" height="386" /></p>
<p><a href="http://shaun.boyblack.co.za/blog/wp-content/uploads/2009/11/Power-User-Pro.terminal.zip">Power-User-Pro.terminal.zip</a></p>
<p>The shell commands (copy-paste):</p>
<pre>mkdir Test
cd Test/
git init
touch somefile
git add somefile
git commit -m "commit message"
echo "hi" &gt; somefile
git add somefile
git commit -m "second commit"
git checkout -b temp
echo "hello" &gt; somefile
git add .
git commit -m "3rd commit"</pre>
]]></content:encoded>
			<wfw:commentRss>http://shaun.boyblack.co.za/blog/2009/11/15/os-x-git-prompt/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Getting Started with Git on Mac OS X</title>
		<link>http://shaun.boyblack.co.za/blog/2009/03/14/getting-started-with-git-on-mac-os-x/</link>
		<comments>http://shaun.boyblack.co.za/blog/2009/03/14/getting-started-with-git-on-mac-os-x/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 18:42:32 +0000</pubDate>
		<dc:creator>shaun</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[scm]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://shaun.boyblack.co.za/blog/?p=224</guid>
		<description><![CDATA[Some Background I&#8217;ve recently switched from using SVN to using Git as my source control management tool of choice. It took a little while to get to grips with, but it rocks! Git is not an evolution of SVN. It is entirely different. Git is a distributed revision control system &#8211; everybody working on a project has their own full copy of the repository and its entire history. Git does not require the presence of a network connection: most commands &#8230; <a href="http://shaun.boyblack.co.za/blog/2009/03/14/getting-started-with-git-on-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Some Background</strong></p>
<p>I&#8217;ve recently switched from using SVN to using <a title="Git SCM" href="http://git-scm.com/" target="_blank">Git</a> as my source control management tool of choice. It took a little while to get to grips with, but it rocks!</p>
<p>Git is not an evolution of SVN. It is entirely different. Git is a distributed revision control system &#8211; everybody working on a project has their own full copy of the repository and its entire history.<span id="more-224"></span></p>
<p>Git does not require the presence of a network connection: most commands in Git operate locally, allowing you to review your project history, make branches and tags, merge changes, but most importantly, allowing you to commit while offline.</p>
<p>If you&#8217;ve used SVN you&#8217;ve probably noticed the littering of .svn folders across your entire project tree, requiring the need for an export tool to retrieve clean copies of your code, and introducing problems when you delete, rename or move files or folders in your project. Git takes a slightly more sensible approach: it creates one folder (named .git) in the root folder of your project.<strong></strong></p>
<p><strong>Git Concepts</strong></p>
<p>With Git there are 3 important things to be aware of: the Git object database, the &#8220;index&#8221;, and your working area.</p>
<p>The Git object database contains a bunch of stuff that you typically don&#8217;t need to worry about. Essentially it&#8217;s the repository.</p>
<p>Your working area is the collection of files currently sitting in your project folder. You should treat these files as if they are temporary &#8211; because they are! Things you want to keep should be committed to the repository.</p>
<p>The Index is sometimes referred to as the Staging Area. It&#8217;s a list of what will get stored on your next commit. Conceptually it sits between your working files and the Git object database. Files that haven&#8217;t been staged to the index will be ignored when doing a commit. This gives you great control over what gets committed when.</p>
<p>A branch is a cheap copy of a particular state of the Git object database. Branches are easy to create and switch between, giving you a safe way to try out ideas quickly and easily. Switching to another branch updates your working area to reflect the state of that branch &#8211; this is why you should consider your working area temporary.</p>
<p><strong>Installing Git on Mac OS X</strong></p>
<p>Grab and install the latest OS-X Installer from:</p>
<p><a title="Git OSX Installer" href="http://code.google.com/p/git-osx-installer/" target="_blank">http://code.google.com/p/git-osx-installer/</a></p>
<p><strong>Configuring Git</strong></p>
<p>You need to tell Git who you are &#8211; it uses this information for your commits etc.</p>
<p>Fire up your terminal, and type:</p>
<pre>git config --global user.name "Your Name"
git config --global user.email your@email.com</pre>
<p><strong>Using Git</strong></p>
<p>Once Git is installed on your system, creating a Git repository is easy: open your terminal, cd into the root folder of your project, and type: git init</p>
<p>That&#8217;s pretty much it!</p>
<p>After initialising your Git repository, it will most likely be empty. In order to commit files to the repository you first need to &#8220;stage&#8221; them by adding them to the index. To add all the files in your current project to the index type:</p>
<pre>git add .</pre>
<p>To commit these files type:</p>
<pre>git commit -m "your commit message"</pre>
<p>To view the status of your repository type:</p>
<pre>git status</pre>
<p><strong>To Summarise</strong></p>
<p>[<a title="Git OSX Installer" href="http://code.google.com/p/git-osx-installer/" target="_blank">Download and install Git</a>]<br />
[cd into the root of your project]</p>
<pre>
git init
ls -la
git status
git add .
git status
git commit -m "a useful commit message"
git status
</pre>
<p>[change some files in your working area]</p>
<pre>
git status
git diff
git commit -a -m "commit message. -a adds all files from your working area to the index"
git status
</pre>
<p>[delete some files from your local working area]</p>
<pre>
git status
git add -u
git commit -m "commit message. -u adds deleted files to the index"
git status
</pre>
<p><strong>Ignoring Files</strong></p>
<p>You will probably want to ensure than certain files don&#8217;t ever get committed to the repo:</p>
<p><a title="Git Ignore" href="http://www.kernel.org/pub/software/scm/git/docs/gitignore.html" target="_blank">http://www.kernel.org/pub/software/scm/git/docs/gitignore.html</a></p>
<p><strong>Extra Configuration</strong></p>
<p>You can enabled colorful output:</p>
<pre>
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
</pre>
<p><strong>Some Bundled Visual Tools</strong></p>
<pre>
gitk
git gui
</pre>
<p><strong>Git Screencasts</strong></p>
<p><a title="Git Screencasts" href="http://gitcasts.com/" target="_blank">http://gitcasts.com/</a></p>
<p><strong>Installing Git on Windows</strong></p>
<p><a title="Installing Git on Windows" href="http://gitcasts.com/posts/git-on-windows" target="_blank">http://gitcasts.com/posts/git-on-windows</a></p>
<p><strong>Some Other Git Links</strong></p>
<ul>
<li><a title="Git Source Control Management" href="http://git-scm.com/" target="_blank">http://git-scm.com/</a></li>
<li><a title="Understanding Git Conceptually" href="http://www.eecs.harvard.edu/~cduan/technical/git/" target="_blank">http://www.eecs.harvard.edu/~cduan/technical/git/</a></li>
<li> <a href="http://git.or.cz/index.html" target="_blank">http://git.or.cz/index.html</a></li>
<li><a href="http://git.or.cz/course/svn.html" target="_blank">http://git.or.cz/course/svn.html</a></li>
<li><a title="Git FAQ" href="http://git.or.cz/gitwiki/GitFaq" target="_blank">http://git.or.cz/gitwiki/GitFaq</a></li>
<li><a title="Github Learning Resource" href="http://learn.github.com/" target="_blank">http://learn.github.com/</a></li>
<li><a title="Git OSX Installer" href="http://code.google.com/p/git-osx-installer/" target="_blank">http://code.google.com/p/git-osx-installer/</a></li>
<li><a title="Git User Manual" href="http://www.kernel.org/pub/software/scm/git/docs/user-manual.html" target="_blank">http://www.kernel.org/pub/software/scm/git/docs/user-manual.html</a></li>
<li><a title="The Thing About Git" href="http://tomayko.com/writings/the-thing-about-git" target="_blank">http://tomayko.com/writings/the-thing-about-git</a></li>
<li><a title="Git Talk" href="http://video.google.com/videoplay?docid=-3999952944619245780" target="_blank">http://video.google.com/videoplay?docid=-3999952944619245780</a></li>
</ul>
<p><strong>Eclipse Integration</strong></p>
<p>Point your eclipse update manager to: <a title="EGit" href="http://www.jgit.org/update-site" target="_blank">http://www.jgit.org/update-site</a></p>
<p>More info: <a title="JGit" href="http://www.jgit.org/" target="_blank">http://www.jgit.org/</a></p>
<p><strong>Some Commands</strong></p>
<p><em>Add all working files to the index:</em></p>
<pre>git add .</pre>
<p><em>Add deleted files to the index:</em></p>
<pre>git add -u</pre>
<p><em>Create and switch to a new branch:</em></p>
<pre>git checkout -b newbranchname</pre>
<p><em>Review last commit:</em></p>
<pre>
git show
git show --stat
git show --name -status
git show HEAD
</pre>
<p><em>Review commit history:</em></p>
<pre>
git log
git log tag..branch
git log -10
git log --since="May 1" --until="June 1"
git log --author=fred
git log -- some/file
</pre>
<p><em>Creating branches:</em></p>
<pre>
git branch name
git branch name commit
</pre>
<p><em>Switching branches:</em></p>
<pre>
git checkout name
git checkout -f name
</pre>
]]></content:encoded>
			<wfw:commentRss>http://shaun.boyblack.co.za/blog/2009/03/14/getting-started-with-git-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Flash Mousewheel Scrolling on Mac OSX</title>
		<link>http://shaun.boyblack.co.za/blog/2009/03/07/flash-mousewheel-scrolling-on-mac-osx/</link>
		<comments>http://shaun.boyblack.co.za/blog/2009/03/07/flash-mousewheel-scrolling-on-mac-osx/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 10:47:29 +0000</pubDate>
		<dc:creator>shaun</dc:creator>
				<category><![CDATA[Banter]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mousewheel]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[scrolling]]></category>

		<guid isPermaLink="false">http://shaun.boyblack.co.za/blog/?p=197</guid>
		<description><![CDATA[Update: This was fixed and released in Player 10.0.42.34.. Woop! (Wed, 9 Dec, 2009) Mousewheel scrolling is not properly supported by the Flash Player on Mac OSX. There is a bug in the Adobe bug tracker here: http://bugs.adobe.com/jira/browse/FP-503 But I feel that it&#8217;s misleading, and dilutes the issue. Firstly, the title has the word Flex in it. Secondly, it&#8217;s complaining about mousewheel support in Safari on Windows XP! Perhaps that is why it currently only has 10 votes. The actual &#8230; <a href="http://shaun.boyblack.co.za/blog/2009/03/07/flash-mousewheel-scrolling-on-mac-osx/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: This was fixed and released in Player 10.0.42.34.. Woop! (Wed, 9 Dec, 2009)</p>
<p>Mousewheel scrolling is not properly supported by the Flash Player on Mac OSX. There is a bug in the Adobe bug tracker here:</p>
<p><a title="Flash Mousewheel Bug" href="http://bugs.adobe.com/jira/browse/FP-503" target="_blank">http://bugs.adobe.com/jira/browse/FP-503</a></p>
<p>But I feel that it&#8217;s misleading, and dilutes the issue. Firstly, the title has the word Flex in it. Secondly, it&#8217;s complaining about mousewheel support in Safari on Windows XP! Perhaps that is why it currently only has 10 votes.</p>
<p>The actual issue is that the mousewheel doesn&#8217;t work in any version of the Flash Player on OSX. It&#8217;s just a side-effect that it affects Safari on Windows.</p>
<p>This is a HUGE issue &#8211; Flash is all about Rich GUI these days, and OSX users are still without proper mouse support! How could this be an issue with only 10 votes?</p>
<p>At some point, the Flash Player will HAVE to support the Trackpad (with vertical and horizontal scrolling) properly, or risk continuing to look like a piece of ancient technology that doesn&#8217;t properly integrate with modern operating systems. I don&#8217;t think that&#8217;s an exaggeration: OSX users are generally very critical of UI nuances, and this is a biggie!</p>
<p>In the meantime there are a number of workarounds:</p>
<ul>
<li><a title="Simple Solution for Mousewheel Events" href="http://blog.earthbrowser.com/2009/01/simple-solution-for-mousewheel-events.html" target="_blank">Simple Solution for Mousewheel Events</a></li>
<li><a title="AS3 Mousewheel on Mac OSX" href="http://blog.pixelbreaker.com/flash/as30-mousewheel-on-mac-os-x/" target="_blank">AS3 Mousewheel on Mac OSX</a></li>
<li><a title="Mac OS X Mouse Wheel Support for ActionScript 3 Flash Applications" href="http://hasseg.org/blog/?p=138" target="_blank">Mac OS X Mouse Wheel Support for ActionScript 3 Flash Applications</a></li>
<li><a title="Flash MouseWheel Implementations for Mac OS X" href="http://www.impossibilities.com/v4/2009/03/06/flash-mousewheel-implementations-for-mac-os-x/" target="_blank">Flash MouseWheel Implementations for Mac OS X</a></li>
</ul>
<p><strong>Update</strong>: The bug entry has been edited a little to better reflect the problem.<br />
<strong>Update</strong>: This was fixed and released in Player 10.0.42.34.. Woop! (Wed, 9 Dec, 2009)</p>
]]></content:encoded>
			<wfw:commentRss>http://shaun.boyblack.co.za/blog/2009/03/07/flash-mousewheel-scrolling-on-mac-osx/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Invert Your Display in OSX</title>
		<link>http://shaun.boyblack.co.za/blog/2008/06/14/invert-your-display-in-osx/</link>
		<comments>http://shaun.boyblack.co.za/blog/2008/06/14/invert-your-display-in-osx/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 11:27:46 +0000</pubDate>
		<dc:creator>shaun</dc:creator>
				<category><![CDATA[Banter]]></category>
		<category><![CDATA[dark]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[invert]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://shaun.boyblack.co.za/blog/?p=66</guid>
		<description><![CDATA[Sweet. Just what I always wanted &#8211; the ability to invert my display with the touch of a button: Control-Option-Command-8 Perfect for late night coding sessions!]]></description>
			<content:encoded><![CDATA[<p>Sweet. Just what I always wanted &#8211; the ability to invert my display with the touch of a button:</p>
<p>Control-Option-Command-8</p>
<p>Perfect for late night coding sessions!</p>
<p><img class="alignnone size-full wp-image-67" title="Eclipse Inverted" src="http://shaun.boyblack.co.za/blog/wp-content/uploads/2008/06/eclipse.gif" alt="" width="450" height="272" /></p>
]]></content:encoded>
			<wfw:commentRss>http://shaun.boyblack.co.za/blog/2008/06/14/invert-your-display-in-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

