<?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>celsobarriga-dot-com &#187; Mac OS X</title>
	<atom:link href="http://www.celsobarriga.com/category/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.celsobarriga.com</link>
	<description>Wasting bandwidth in style!</description>
	<lastBuildDate>Sun, 06 Nov 2011 21:27:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Enabling AirDrop on older systems</title>
		<link>http://www.celsobarriga.com/2011/11/06/enabling-airdrop-on-older-systems/</link>
		<comments>http://www.celsobarriga.com/2011/11/06/enabling-airdrop-on-older-systems/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 21:27:51 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://www.celsobarriga.com/?p=159</guid>
		<description><![CDATA[You can enable AirDrop for many older Lion systems at the Terminal command line. Enter: defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1 After setting the defaults, you&#8217;ll need to restart Finder: killall Finder]]></description>
			<content:encoded><![CDATA[<p>You can enable AirDrop for many older Lion systems at the Terminal command line. Enter:</p>
<pre>defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1</pre>
<p>After setting the defaults, you&#8217;ll need to restart Finder:</p>
<pre>killall Finder</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2011/11/06/enabling-airdrop-on-older-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ejecting a stuck CD or DVD on a Mac</title>
		<link>http://www.celsobarriga.com/2010/09/13/ejecting-a-stuck-cd-or-dvd-on-a-mac/</link>
		<comments>http://www.celsobarriga.com/2010/09/13/ejecting-a-stuck-cd-or-dvd-on-a-mac/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 18:53:12 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://www.celsobarriga.com/?p=149</guid>
		<description><![CDATA[If you have a stuck CD or DVD on your Mac, and the desktop icon for the media has disappeared from the desktop so that you can no longer drag it to the trash, you can manually eject the media without rebooting the machine by executing the following command from the Terminal: drutil tray eject]]></description>
			<content:encoded><![CDATA[<p>If you have a stuck CD or DVD on your Mac, and the desktop icon for the media has disappeared from the desktop so that you can no longer drag it to the trash, you can manually eject the media without rebooting the machine by executing the following command from the <strong>Terminal</strong>:</p>
<blockquote>
<pre>drutil tray eject
</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2010/09/13/ejecting-a-stuck-cd-or-dvd-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dyld: shared cached was built against a different libSystem.dylib, ignoring cache</title>
		<link>http://www.celsobarriga.com/2009/08/13/dyld-shared-cached-was-built-against-a-different-libsystemdylib-ignoring-cache/</link>
		<comments>http://www.celsobarriga.com/2009/08/13/dyld-shared-cached-was-built-against-a-different-libsystemdylib-ignoring-cache/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 16:06:14 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://www.celsobarriga.com/?p=144</guid>
		<description><![CDATA[I just upgraded my MacBook Pro&#8217;s hard drive to one with a bigger capacity. After restoring the contents from the old drive to the new one using an image created by SuperDuper!, I keep on getting this error every time I launch the Terminal application: dyld: shared cached was built against a different libSystem.dylib, ignoring [...]]]></description>
			<content:encoded><![CDATA[<p>I just upgraded my MacBook Pro&#8217;s hard drive to one with a bigger capacity. After restoring the contents from the old drive to the new one using an image created by SuperDuper!, I keep on getting this error every time I launch the Terminal application:</p>
<blockquote><p>dyld: shared cached was built against a different libSystem.dylib, ignoring cache</p></blockquote>
<div>After googling around, I found this <a title="discussion thread" href="http://discussions.apple.com/thread.jspa?threadID=1260029&amp;tstart=195" target="_self">discussion thread</a> from Apple&#8217;s Support Forum on how to fix the error:</div>
<div>
<blockquote>
<pre>sudo update_dyld_shared_cache -force</pre>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2009/08/13/dyld-shared-cached-was-built-against-a-different-libsystemdylib-ignoring-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to determine DST time changes</title>
		<link>http://www.celsobarriga.com/2008/02/01/how-to-determine-dst-time-changes/</link>
		<comments>http://www.celsobarriga.com/2008/02/01/how-to-determine-dst-time-changes/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 17:44:28 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.barriga.net/2008/02/01/how-to-determine-dst-time-changes/</guid>
		<description><![CDATA[Here&#8217;s how to determine the dates when the Daylight Savings Time changes for a given year (I keep forgetting how to do this.): zdump -v /etc/localtime&#124;grep 2008 /etc/localtime Sun Mar 9 06:59:59 2008 UTC = Sun Mar 9 01:59:59 2008 EST isdst=0 gmtoff=-18000 /etc/localtime Sun Mar 9 07:00:00 2008 UTC = Sun Mar 9 03:00:00 [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to determine the dates when the Daylight Savings Time changes for a given year (I keep forgetting how to do this.):</p>
<pre><code>
<blockquote>
zdump -v /etc/localtime|grep 2008

/etc/localtime  Sun Mar  9 06:59:59 2008 UTC =
    Sun Mar 9 01:59:59 2008 EST isdst=0 gmtoff=-18000
/etc/localtime  Sun Mar  9 07:00:00 2008 UTC =
    Sun Mar 9 03:00:00 2008 EDT isdst=1 gmtoff=-14400
/etc/localtime  Sun Nov  2 05:59:59 2008 UTC =
    Sun Nov 2 01:59:59 2008 EDT isdst=1 gmtoff=-14400
/etc/localtime  Sun Nov  2 06:00:00 2008 UTC =
    Sun Nov 2 01:00:00 2008 EST isdst=0 gmtoff=-18000
</blockquote>

</code></pre>
<p>Obviously, change <strong>2008</strong> to whatever year you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2008/02/01/how-to-determine-dst-time-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bourne Shell Logging Routine</title>
		<link>http://www.celsobarriga.com/2007/08/28/bourne-shell-logging-routine/</link>
		<comments>http://www.celsobarriga.com/2007/08/28/bourne-shell-logging-routine/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 03:20:19 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.barriga.net/notes/2007/08/28/84/</guid>
		<description><![CDATA[Here&#8217;s another logging routine, this one is written in Bourne shell: #!/bin/sh log_message() { echo `date "+%m/%d/%y %H:%M:%S %Z"` "$1" &#124; tee -a aaa.out } log_message "Hello there" log_message "Goodbye" Sample output: 08/28/07 23:16:13 EDT Hello there 08/28/07 23:16:13 EDT Goodbye]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another logging routine, this one is written in Bourne shell:</p>
<pre style='color:#000000;background:#ffffff;'><span style='color:#696969; '>#!/bin/sh</span>

log_message<span style='color:#808030; '>()</span> <span style='color:#800080; '>{</span>
    <span style='color:#bb7977; font-weight:bold; '>echo</span> <span style='color:#000000; background:#ffffe8; '>`date </span><span style='color:#0000e6; background:#ffffe8; '>"+%m</span><span style='color:#40015a; background:#ffffe8; '>/</span><span style='color:#0000e6; background:#ffffe8; '>%d</span><span style='color:#40015a; background:#ffffe8; '>/</span><span style='color:#0000e6; background:#ffffe8; '>%y %H:%M:%S %Z"</span><span style='color:#000000; background:#ffffe8; '>`</span> <span style='color:#0000e6; '>"</span><span style='color:#0000e6; '>$1</span><span style='color:#0000e6; '>"</span> <span style='color:#e34adc; '>|</span> tee <span style='color:#44aadd; '>-a</span> aaa<span style='color:#800000; font-weight:bold; '>.</span>out
<span style='color:#800080; '>}</span>

log_message <span style='color:#0000e6; '>"Hello there"</span>
log_message <span style='color:#0000e6; '>"Goodbye"</span>
</pre>
<p>Sample output:</p>
<blockquote><p><code>
<pre>
08/28/07 23:16:13 EDT Hello there
08/28/07 23:16:13 EDT Goodbye
</pre>
<p></code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2007/08/28/bourne-shell-logging-routine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Determining the External IP Address</title>
		<link>http://www.celsobarriga.com/2006/06/07/find-external-ip-address/</link>
		<comments>http://www.celsobarriga.com/2006/06/07/find-external-ip-address/#comments</comments>
		<pubDate>Wed, 07 Jun 2006 17:33:15 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.barriga.net/2006/06/07/71/</guid>
		<description><![CDATA[Here&#8217;s how to find out your external IP address courtesy of this hint: http://www.macosxhints.com/article.php?story=20060602180942480 curl --silent http://checkip.dyndns.org &#124; awk '{print $6}' &#124; cut -f 1 -d "]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to find out your external IP address courtesy of this hint:</p>
<p><a href="http://www.macosxhints.com/article.php?story=20060602180942480">http://www.macosxhints.com/article.php?story=20060602180942480</a></p>
<blockquote>
<pre><code>
curl --silent http://checkip.dyndns.org
    | awk '{print $6}' | cut -f 1 -d "<"
</code></pre>
</blockquote>
<p>If you are using Apple's Airport Extreme Basestation (mine is particularly the Time Capsule and this is where I have tested this), and you have the SNMP interface enabled, you can run the following command</p>
<pre><code>
prompt$ snmpwalk -Os -c public -v 1 192.168.63.1 ipAdEntAddr IpAddress \
    | grep -E -v '(127.0.0|169.254|192.168.63.1)' \
    | cut -d : -f 2 | sed 's/ //g'
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2006/06/07/find-external-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Line Terminations</title>
		<link>http://www.celsobarriga.com/2006/04/13/line-terminations/</link>
		<comments>http://www.celsobarriga.com/2006/04/13/line-terminations/#comments</comments>
		<pubDate>Thu, 13 Apr 2006 21:11:13 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.barriga.net/2006/04/13/66/</guid>
		<description><![CDATA[Line terminations for different operating systems: unix 0x0a LF Classic Mac 0x0d CR Windows 0x0d 0x0a CR LF To convert a text file with DOS line termination to UNIX line termination: tr -d '\015' < winfile.txt > unixfile.txt or sed s/.$// winfile.txt > unixfile.txt To convert a unix file to a DOS file: sed s/$/\x0d/ [...]]]></description>
			<content:encoded><![CDATA[<p>Line terminations for different operating systems:</p>
<table border="1">
<tr>
<td>unix</td>
<td>0x0a</td>
<td>LF</td>
</tr>
<tr>
<td>Classic Mac</td>
<td>0x0d</td>
<td>CR</td>
</tr>
<tr>
<td>Windows</td>
<td>0x0d 0x0a</td>
<td>CR LF</td>
</tr>
</table>
<p>To convert a text file with DOS line termination to UNIX line termination:</p>
<blockquote><pre><code>
tr -d '\015' < winfile.txt > unixfile.txt
</code></pre>
</blockquote>
<p>or</p>
<blockquote><pre><code>
sed s/.$// winfile.txt > unixfile.txt
</code></pre>
</blockquote>
<p>To convert a unix file to a DOS file:</p>
<blockquote><pre><code>
sed s/$/\x0d/ unixfile.txt > winfile.txt
</code></pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2006/04/13/line-terminations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run Periodic Maintenance Scripts Manually</title>
		<link>http://www.celsobarriga.com/2006/02/11/run-periodic-maintenance-scripts-manually/</link>
		<comments>http://www.celsobarriga.com/2006/02/11/run-periodic-maintenance-scripts-manually/#comments</comments>
		<pubDate>Sun, 12 Feb 2006 02:58:33 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://www.barriga.net/2006/02/11/55/</guid>
		<description><![CDATA[Mac OS X has to run some maintenance scripts in the middle of the night to do some important housekeeping tasks. If you have a Mac that sleeps in the middle of the night, as you do, you need to run these manually by running this from the shell: sudo periodic daily weekly monthly]]></description>
			<content:encoded><![CDATA[<p>Mac OS X has to run some maintenance scripts in the middle of the night to do some important housekeeping tasks. If you have a Mac that sleeps in the middle of the night, as you do, you need to run these manually by running this from the shell:</p>
<blockquote><pre><code>
sudo periodic daily weekly monthly
</code></pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2006/02/11/run-periodic-maintenance-scripts-manually/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Behavior of iTunes Arrows</title>
		<link>http://www.celsobarriga.com/2004/09/10/change-behavior-of-itunes-arrows/</link>
		<comments>http://www.celsobarriga.com/2004/09/10/change-behavior-of-itunes-arrows/#comments</comments>
		<pubDate>Sat, 11 Sep 2004 02:04:12 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://home.barriga.net/?p=9</guid>
		<description><![CDATA[Starting with iTunes 4.5, Apple implemented those little grey arrows next to the song title, artist, and album, which will take you to the corresponding match in the iTunes Music Store. To change the behavior of these arrows so that instead of going to the store, it will take you to your library instead, you [...]]]></description>
			<content:encoded><![CDATA[<p>Starting with iTunes 4.5, Apple implemented those little grey arrows next to the song title, artist, and album, which will take you to the corresponding match in the iTunes Music Store. To change the behavior of these arrows so that instead of going to the store, it will take you to your library instead, you can do either one of two ways:</p>
<ol>
<li>Hit option key when you click the arrow.
</li>
<li>Change it permamnently by executing this from the terminal:
<pre>
<blockquote>defaults write com.apple.iTunes invertStoreLinks -bool YES</blockquote>
</pre>
<p>Make sure iTunes is not running when you execute this command.
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2004/09/10/change-behavior-of-itunes-arrows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Safari Debug Menu</title>
		<link>http://www.celsobarriga.com/2004/09/08/enable-safari-debug-menu/</link>
		<comments>http://www.celsobarriga.com/2004/09/08/enable-safari-debug-menu/#comments</comments>
		<pubDate>Wed, 08 Sep 2004 18:42:00 +0000</pubDate>
		<dc:creator>celso</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://home.barriga.net/?p=8</guid>
		<description><![CDATA[To enable Safari Debug menu from the command line: % defaults write \ com.apple.Safari IncludeDebugMenu 1 Make sure Safari is not running when you run this command.]]></description>
			<content:encoded><![CDATA[<p>To enable Safari Debug menu from the command line:</p>
<blockquote><pre><code>% defaults write \
com.apple.Safari IncludeDebugMenu 1</code></pre>
</blockquote>
<p>Make sure Safari is not running when you run this command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.celsobarriga.com/2004/09/08/enable-safari-debug-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

