<?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>Sun, 05 Feb 2012 17:53:50 +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>Mac: Show hidden files in Finder</title>
		<link>http://www.geekality.net/2010/12/12/mac-show-hidden-files-in-finder/</link>
		<comments>http://www.geekality.net/2010/12/12/mac-show-hidden-files-in-finder/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 14:09:13 +0000</pubDate>
		<dc:creator>Torleif</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Finder]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://www.geekality.net/?p=1456</guid>
		<description><![CDATA[If you want to make hidden files show up in Finder, you can open up a Terminal window and run these two commands: defaults write com.apple.Finder AppleShowAllFiles TRUE killall Finder &#38;&#38; open /System/Library/CoreServices/Finder.app Swap TRUE with FALSE to hide them &#8230; <a href="http://www.geekality.net/2010/12/12/mac-show-hidden-files-in-finder/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you want to make hidden files show up in Finder, you can open up a Terminal window and run 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">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>
<p>Swap TRUE with FALSE to hide them again. The second line kills and relaunches Finder.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2010/12/12/mac-show-hidden-files-in-finder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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: #666666;">$ </span><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: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">sudo</span> nvram boot-args=</div></div>
<p>That&#8217;s it!</p>
<p class="wp-flattr-button"></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&#8230; O&#8217; how I miss F5 sometimes&#8230;</p>
<p><span id="more-937"></span></p>
<p>Anyways, 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"><span style="color: #666666;">$ </span>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>
<h2>But what to do about it?</h2>
<p>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. A quick and simple way to fix this issue is just to clear them all out and let Finder have fun recreating them. 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>All the labels should then be gone in Finder if you check the folder again. Now re-label them and they should hopefully stay labeled as well. Hope this can help someone else <img src='http://www.geekality.net/wp-includes/images/blank.gif' alt=':)' class='wp-smiley smiley-1' /> </p>
<h2>Doing it recursively</h2>
<p>The following command will do it for the current working directory and all its sub-directories:</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>
<h2>Files with no extension</h2>
<p>If you have filenames without an extension, like for example <var>Some video</var> instead of <var>Some video.mov</var>, Finder won&#8217;t know how to open these files anymore after you remove the meta-files. If that should happen I recommend that you add the right extension on the filename and you will have no more problems with that. If you prefer to have it without extension you can also select and right-click the files, select <var>Get Info</var>, and then under the <var>Open with</var> 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>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.geekality.net/2010/03/19/disappearing-color-labels-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>11</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>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 filename</div></div>
<p class="wp-flattr-button"></p> <p><a href="http://www.geekality.net/?flattrss_redirect&amp;id=77&amp;md5=1f586797c3702c427a00230617176016" title="Flattr" target="_blank"><img src="http://www.geekality.net/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></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>

