<?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>Geekality &#187; Mac</title>
	<atom:link href="http://www.geekality.net/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geekality.net</link>
	<description>With a hint of Social Ineptitude</description>
	<lastBuildDate>Tue, 27 Jul 2010 16:15:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to enable verbose booting in Mac OS X</title>
		<link>http://www.geekality.net/2010/05/12/how-to-enable-verbose-booting-in-mac-os-x/</link>
		<comments>http://www.geekality.net/2010/05/12/how-to-enable-verbose-booting-in-mac-os-x/#comments</comments>
		<pubDate>Wed, 12 May 2010 07:41:52 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=979</guid>
		<description><![CDATA[I&#8217;m a curious guy, so I wanted to see if there was anything interesting happening behind the Apple logo when the Mac I use at work boots up. Turned out it was quite simple to enable and disable this feature. &#8230; <a href="http://www.geekality.net/2010/05/12/how-to-enable-verbose-booting-in-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a curious guy, so I wanted to see if there was anything interesting happening behind the Apple logo when the Mac I use at work boots up.</p>
<p>Turned out it was quite simple to enable and disable this feature. To enable it, just open up a Terminal and run the following command:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> nvram boot-args=<span style="color: #ff0000;">&quot;-v&quot;</span></div></div>
<p>When you reboot the next time, you will see all the fun stuff happening during the boot up. If you get tired of it, you can disable it again by running:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> nvram boot-args=</div></div>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2010/05/12/how-to-enable-verbose-booting-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disappearing color labels in Mac OS X</title>
		<link>http://www.geekality.net/2010/03/19/disappearing-color-labels-in-mac-os-x/</link>
		<comments>http://www.geekality.net/2010/03/19/disappearing-color-labels-in-mac-os-x/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 11:45:43 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=937</guid>
		<description><![CDATA[Had a tiny fight with Mac OS X the other day, like I often do. This time it was color labels. You probably know (if you have used Mac OS X at all) that you can color label your files. &#8230; <a href="http://www.geekality.net/2010/03/19/disappearing-color-labels-in-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Had a tiny fight with Mac OS X the other day, like I often do. This time it was color labels. You probably know (if you have used Mac OS X at all) that you can color label your files. You simply right-click them in the Finder and select a color label.</p>
<p>This can be quite a handy feature, but not so much when it doesn&#8217;t work. My problem was that I would give a bunch of files color labels, but then shortly after that the label simply disappeared. I could look at the file in the Finder, it had its label, I&#8217;d click on it, and the label disappeared. In fact the color label was already gone, it was just that the Finder is kind of slow to update itself (O&#8217; how I miss F5 sometimes&#8230;).</p>
<p><span id="more-937"></span></p>
<p>You can check if a file <em>really</em> has a label or not by opening up a Terminal and using the following command on the file in question:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ mdls <span style="color: #660033;">-name</span> kMDItemFSLabel somefile.ext</div></div>
<p>It will give you back a number and if the number is greater than zero it means the file has a label. </p>
<p>Either way, after some digging I found that it might have to do with some <a href="http://en.wikipedia.org/wiki/Xsan">XSan</a> issues or corrupt meta files. Mac OS X spreads these meta-files around wherever it goes and apparently they go corrupt from time to time. The way to fix this issue (and perhaps others?) is to clear them out and let them be recreated. As these files are hidden in the Finder, and Mac OS X is so kind to not give us an easy way of showing hidden files, I once again opened up a Terminal. I then went to the directory with the broken meta-files and ran these two commands:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">rm</span> ._<span style="color: #000000; font-weight: bold;">*</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">rm</span> .DS_Store</div></div>
<p>You then visit the folder in Finder and all labels should be gone. Re-label them, and you should be back to normal. Hope this can help someone else <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' title=':)' class='wp-smiley smiley-1' /> </p>
<p><strong>Note:</strong> If you want to do this recursively in a directory, you can run this:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> .DS_Store <span style="color: #660033;">-delete</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;._*&quot;</span> <span style="color: #660033;">-delete</span></div></div>
<p><strong>Note:</strong> If you have files without an extension, like some video instead of somevideo.mov, Finder won&#8217;t know how to open these files anymore after you remove the meta-files. If that happens I recommend you either stick the correct extension on the file, or you right-click the files, select Get Info, and then under the Open with category select the application you want the file to be opened with. (But seriously, just giving the files proper extensions to begin with is a lot easier to work with&#8230; at least I think so&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2010/03/19/disappearing-color-labels-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Helpful Unix and Mac commands</title>
		<link>http://www.geekality.net/2008/12/27/helpful-unix-and-mac-commands/</link>
		<comments>http://www.geekality.net/2008/12/27/helpful-unix-and-mac-commands/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 16:30:35 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=77</guid>
		<description><![CDATA[I am for the most part a Windows user. I was kind of moving towards Linux, Ubuntu in particular, but that ship pretty much sailed when I got my hands on Windows 7. Awesome, awesome operating system. But, I still &#8230; <a href="http://www.geekality.net/2008/12/27/helpful-unix-and-mac-commands/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am for the most part a Windows user. I was <em>kind</em> of moving towards Linux, Ubuntu in particular, but that ship pretty much sailed when I got my hands on Windows 7. Awesome, awesome operating system. But, I still have to use some Unix and Mac systems once in a while. And then there are certain commands that I often use, but always forget since it usually goes a bit of time between times I do it. So, what follows is basically just a list of commands that I keep forgetting, but keep having to look up again.</p>
<p><span id="more-77"></span></p>
<h2>Remove .DS_Store files</h2>
<p>Removes all those <del datetime="2010-03-09T15:21:10+00:00">stupid</del>annoying DS_Store files that Mac litters around wherever it goes. Works in the current directory and downwards.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> <span style="color: #000000; font-weight: bold;">*</span>DS_Store <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</div></div>
<h2>Recursivly download a whole website</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-T</span> <span style="color: #000000;">5</span> <span style="color: #660033;">-t</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-m</span> <span style="color: #660033;">-np</span> <span style="color: #660033;">-w</span> <span style="color: #000000;">5</span> <span style="color: #660033;">--random-wait</span> <span style="color: #660033;">-E</span> <span style="color: #660033;">-k</span> <span style="color: #660033;">-p</span> <span style="color: #660033;">-P</span> output<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">dir</span> http:<span style="color: #000000; font-weight: bold;">//</span>website</div></div>
<h2>Show hidden files on in OS X</h2>
<p>Swap TRUE with FALSE to hide them again. The second line kills and relaunches Finder.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.Finder AppleShowAllFiles TRUE<br />
<span style="color: #c20cb9; font-weight: bold;">killall</span> Finder <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> open <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>CoreServices<span style="color: #000000; font-weight: bold;">/</span>Finder.app</div></div>
<h2>Redirect std error to std out</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-ld</span> <span style="color: #000000; font-weight: bold;">/</span>home <span style="color: #000000; font-weight: bold;">/</span>qwerty <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;</span>log <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span></div></div>
<h2>Compress and decompress files</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># Compress</span><br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> czvf archive.tar.gz filedir filedir<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> cjvf archive.tar.bz2 filedir filedir<br />
<br />
<span style="color: #666666; font-style: italic;"># Decompress</span><br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf archive.tar.gz<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> xjvf archive.tar.bz2</div></div>
<h2>Find open files</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">lsof <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> filename</div></div>
<h2>SSH filesystem on Mac</h2>
<p>First download and install <a href="http://pqrs.org/macosx/sshfs/">sshfs for Mac OS X</a>. Then to mount</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>sshfs<span style="color: #000000; font-weight: bold;">/</span>server1<br />
<span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>sshfs<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mount_sshfs server1_hostname: ~<span style="color: #000000; font-weight: bold;">/</span>sshfs<span style="color: #000000; font-weight: bold;">/</span>server1</div></div>
<p>And to unmount (and uninstall the sshfs)</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">umount</span> ~<span style="color: #000000; font-weight: bold;">/</span>sshfs<span style="color: #000000; font-weight: bold;">/</span>server1<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>sshfs<span style="color: #000000; font-weight: bold;">/</span>uninstall.sh</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2008/12/27/helpful-unix-and-mac-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
