<?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>Penguinspeak &#187; OS X</title>
	<atom:link href="http://macmartine.com/blog/category/os-x/feed" rel="self" type="application/rss+xml" />
	<link>http://macmartine.com/blog</link>
	<description>This is how I see it.</description>
	<lastBuildDate>Tue, 19 Oct 2010 00:39:03 +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>Shell script to show/hide hidden files on OS X</title>
		<link>http://macmartine.com/blog/2009/11/shell-script-to-showhide-hidden-files-on-os-x.html</link>
		<comments>http://macmartine.com/blog/2009/11/shell-script-to-showhide-hidden-files-on-os-x.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 17:15:07 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=170</guid>
		<description><![CDATA[If you frequently need to show/hide hidden files on OSX, here&#8217;s what I find is the easiest way so you don&#8217;t have to do a google search every time to remind yourself of the syntax. Create a file called &#8216;showHiddenFiles&#8217; in Terminal, type: chmod +x /path/to/showHiddenFiles Make sure the location is on your path. I [...]]]></description>
			<content:encoded><![CDATA[<p>If you frequently need to show/hide hidden files on OSX, here&#8217;s what I find is the easiest way so you don&#8217;t have to do a google search every time to remind yourself of the syntax.</p>
<p>Create a file called &#8216;showHiddenFiles&#8217;<br />
in Terminal, type:</p>
<p><code><br />
chmod +x /path/to/showHiddenFiles<br />
</code></p>
<p>Make sure the location is on your path. I just use /usr/local/bin since it&#8217;s already on my path.</p>
<p>Edit that file with these contents:</p>
<p><code><br />
#!/bin/sh<br />
defaults write com.apple.finder AppleShowAllFiles $1<br />
killall Finder<br />
</code></p>
<p>Now whenever you want to hide/show hidden files, just launch Terminal and type:</p>
<p>% showHiddenFiles true<br />
&#8211; or &#8211;<br />
% showHiddenFiles false</p>
<p>And don&#8217;t forget you can just type the first few letters (i.e. &#8216;showH&#8217;), then hit TAB and Terminal should auto-complete the file name for you. Then you can just add &#8216;true&#8217; or &#8216;false&#8217;.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Shell+script+to+show%2Fhide+hidden+files+on+OS+X+http%3A%2F%2Fbit.ly%2F3o1wq7" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big2.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2009/11/shell-script-to-showhide-hidden-files-on-os-x.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making permanent aliases for Terminal</title>
		<link>http://macmartine.com/blog/2009/11/making-permanent-aliases-for-terminal.html</link>
		<comments>http://macmartine.com/blog/2009/11/making-permanent-aliases-for-terminal.html#comments</comments>
		<pubDate>Thu, 19 Nov 2009 16:14:15 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=165</guid>
		<description><![CDATA[OK, so yesterdays post was alright. It got you making an alias for Terminal. But if you tried it you probably noticed that you lost the alias after you quit Terminal. That&#8217;s usually not what you want. Let&#8217;s make it stick around. Assuming you&#8217;re using bash: Launch Terminal % pico ~/.bash_profile Add a line with [...]]]></description>
			<content:encoded><![CDATA[<p>OK, so yesterdays post was alright. It got you making an alias for Terminal. But if you tried it you probably noticed that you lost the alias after you quit Terminal. That&#8217;s usually not what you want. Let&#8217;s make it stick around. </p>
<p>Assuming you&#8217;re using bash:</p>
<p>Launch Terminal<br />
<code><br />
% pico ~/.bash_profile<br />
</code><br />
Add a line with a variable followed by whatever command you what it to perform, such as:<br />
<code><br />
webroot='cd /Volumes/apache/webroot'<br />
</code><br />
CNTRL-X, then press &#8216;y&#8217; to save the file and exit edit mode<br />
now restart bash_profile;<br />
<code><br />
% source ~/.bash_profile<br />
</code><br />
That&#8217;s it!<br />
Now anytime you want you can launch Terminal, simple type % webroot, and you&#8217;ll be taken to &#8216;/Volumes/apache/webroot&#8217;</p>
<p>Now will all the typing this will save you, there&#8217;ll be more time for beer at the end of the day.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Making+permanent+aliases+for+Terminal+http%3A%2F%2Fbit.ly%2F2T4waP" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big2.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2009/11/making-permanent-aliases-for-terminal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating aliases in Terminal</title>
		<link>http://macmartine.com/blog/2009/11/creating-aliases-in-terminal.html</link>
		<comments>http://macmartine.com/blog/2009/11/creating-aliases-in-terminal.html#comments</comments>
		<pubDate>Wed, 18 Nov 2009 16:58:47 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=160</guid>
		<description><![CDATA[I launch Terminal many times per day, and usually go to one of a handful of directories right off the bat. I just discovered the handiness of creating aliases in Terminal. Let&#8217;s say you often go to /Volumes/development/depot/mainbranch. Let&#8217;s create an alias to that called &#8216;mb&#8217; for &#8216;mainbranch&#8217; (this can be whatever you want, of [...]]]></description>
			<content:encoded><![CDATA[<p>I launch Terminal many times per day, and usually go to one of a handful of directories right off the bat. I just discovered the handiness of creating aliases in Terminal. </p>
<p>Let&#8217;s say you often go to /Volumes/development/depot/mainbranch. Let&#8217;s create an alias to that called &#8216;mb&#8217; for &#8216;mainbranch&#8217; (this can be whatever you want, of course.<br />
Simply launch terminal.<br />
Type: alias mb=&#8217;cd /Volumes/development/depot/mainbranch&#8217;<br />
Done!<br />
Now just type &#8216;mb&#8217; at the command prompt and you&#8217;ll be taken directly to that directory!<br />
Sweet!</p>
<p>Note, you can also do the same to launch applications:<br />
alias tx=‘open /Applications/TextEdit.app/’</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Creating+aliases+in+Terminal+http%3A%2F%2Fbit.ly%2FUXyWF" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big2.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2009/11/creating-aliases-in-terminal.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resolving gcc errors installing sqlite3 gem on Leopard</title>
		<link>http://macmartine.com/blog/2008/04/resolving_gcc_errors_installin.html</link>
		<comments>http://macmartine.com/blog/2008/04/resolving_gcc_errors_installin.html#comments</comments>
		<pubDate>Thu, 03 Apr 2008 14:02:07 +0000</pubDate>
		<dc:creator>99miles</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://macmartine.com/blog/?p=32</guid>
		<description><![CDATA[The following error kept coming up when trying to install Sqlite3 on OS X (actually, the same thing happened when trying to install Fink too). It was finally resolved by installing the latest XCode packages. Running ‘sudo ./configure &#8211;prefix=/usr/local’ would return: checking build system type... i386-apple-darwin9.2.2 checking host system type... i386-apple-darwin9.2.2 checking for gcc... gcc [...]]]></description>
			<content:encoded><![CDATA[<p>The following error kept coming up when trying to install Sqlite3 on OS X (actually, the same thing happened when trying to install Fink too). It was finally resolved by installing the latest XCode packages.<br />
Running ‘sudo ./configure &#8211;prefix=/usr/local’<br />
would return:</p>
<pre name="code" class="css">
checking build system type... i386-apple-darwin9.2.2
checking host system type... i386-apple-darwin9.2.2
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
Here’ all the important stuff from the log:
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2062: checking build system type
configure:2080: result: i386-apple-darwin9.2.2
configure:2102: checking host system type
configure:2117: result: i386-apple-darwin9.2.2
configure:2187: checking for gcc
configure:2203: found /usr/bin/gcc
configure:2214: result: gcc
configure:2452: checking for C compiler version
configure:2459: gcc --version &gt;&amp;5
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2462: $? = 0
configure:2469: gcc -v &gt;&amp;5
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
configure:2472: $? = 0
configure:2479: gcc -V &gt;&amp;5
gcc: argument to `-V' is missing
configure:2482: $? = 1
configure:2505: checking for C compiler default output file name
configure:2532: gcc    conftest.c  &gt;&amp;5
/usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib unknown flags (type) of section 6 (__TEXT,__literal16) in load command 0
collect2: ld returned 1 exit status
configure:2535: $? = 1
configure:2573: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "sqlite"
| #define PACKAGE_TARNAME "sqlite"
| #define PACKAGE_VERSION "3.5.7"
| #define PACKAGE_STRING "sqlite 3.5.7"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2580: error: C compiler cannot create executables
See `config.log' for more details.
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "sqlite"
#define PACKAGE_TARNAME "sqlite"
#define PACKAGE_VERSION "3.5.7"
#define PACKAGE_STRING "sqlite 3.5.7"
#define PACKAGE_BUGREPORT ""
configure: exit 77
</pre>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Resolving+gcc+errors+installing+sqlite3+gem+on+Leopard+http%3A%2F%2Fbit.ly%2F1UMgYZ" title="Post to Twitter"><img class="nothumb" src="http://macmartine.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-big2.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://macmartine.com/blog/2008/04/resolving_gcc_errors_installin.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

