<?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>SHOCM &#187; OSX</title>
	<atom:link href="http://www.shocm.com/category/geek-stuff/apple/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shocm.com</link>
	<description>Open Source, Cloud, Scotch, Baseball, Family, and Programming since the 1900&#039;s</description>
	<lastBuildDate>Wed, 19 Oct 2011 18:06:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Getting Git to work in Textmate, Resolving &#8220;sh: git: command not found&#8221; error</title>
		<link>http://www.shocm.com/2011/02/getting-git-to-work-in-textmate-resolving-sh-git-command-not-found-error/</link>
		<comments>http://www.shocm.com/2011/02/getting-git-to-work-in-textmate-resolving-sh-git-command-not-found-error/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 03:52:29 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://www.shocm.com/2011/02/getting-git-to-work-in-textmate-resolving-sh-git-command-not-found-error/</guid>
		<description><![CDATA[I&#8217;ve been doing a lot of work with Git lately and its great. I downloaded and installed the Git Bundle for Textmate but it didn&#8217;t  seem to work, always returning the error message &#8220;sh: git: command not found&#8221;. Since I did most of my Git work from the command line I just ignored it but for [...]]]></description>
			<content:encoded><![CDATA[<div class="posterous_autopost">
<p>I&#8217;ve been doing a lot of work with Git lately and its great. I downloaded and installed the Git Bundle for Textmate but it didn&#8217;t  seem to work, always returning the error message &#8220;sh: git: command not found&#8221;. Since I did most of my Git work from the command line I just ignored it but for some reason tonight I decided I needed to fix.</p>
<p>Since I knew Git worked on my system, it must have been something with the way Textmate was configured. I couldn&#8217;t figure out how to confiugre Textmate to point to my Git install so I guess I cheated and I created a symbolic link on my system to point to my Git install. It seems to have corrected my issue with Textmate.</p>
<p>The command I ran was pretty simple</p>
<pre class="brush: bash; title: ; notranslate">
sudo ln -s /usr/local/git/bin/git /usr/bin/git
</pre>
<p>That&#8217;s it, Textmate is now happy with my Git install.</p>
<p style="font-size: 10px;"><a href="http://posterous.com">Posted via email</a> from <a href="http://blog.shocm.me/getting-git-to-work-in-textmate-resolving-sh">shocm</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2011/02/getting-git-to-work-in-textmate-resolving-sh-git-command-not-found-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSH AutoComplete on OSX</title>
		<link>http://www.shocm.com/2011/01/ssh-autocomplete-on-osx/</link>
		<comments>http://www.shocm.com/2011/01/ssh-autocomplete-on-osx/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 04:19:26 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.shocm.com/2011/01/ssh-autocomplete-on-osx/</guid>
		<description><![CDATA[I am a very heavy user of SSH, like everyday all day type of user. I know a couple cool SSH tricks like port forwarding and mapping remote drives. One thing that always bugged me was the lack of auto complete when I was on my OSX machine. You see with SSH, you can define [...]]]></description>
			<content:encoded><![CDATA[<div class="posterous_autopost">
<p>I am a very heavy user of SSH, like everyday all day type of user. I know a couple cool SSH tricks like port forwarding and mapping remote drives. One thing that always bugged me was the lack of auto complete when I was on my OSX machine. You see with SSH, you can define a bunch of individual host and configurations unique to those host in a file called .ssh/config. It&#8217;s a great tool to have and when you do have some host define, on a Linux machine, you can type in the command ssh, then the first couple if letters of the host and hit tab. It will act as any tab completion does for commands and fill in as much of the hostname as it can before it requires some other unique identifier. However, this cool autocomplete feature didn&#8217;t happen naturally of my OSX box.</p>
<p>Through the years, I&#8217;ve had an idea of what I needed to do to create my own script to handle it. There is the complete command, the trick is grepping the config file and pulling out the right information. I decided to be lazy and just manually created several alias for my ssh server. The alias approach worked, but this grew into a very long list of alias and wasn&#8217;t very efficient. So tonight I decided I was going to write the script to meet my needs and about 2 clicks on Google links later, I found someone who had actually already completely done it. <span style="font-family: verdana, tahoma, helvetica, arial, sans-serif;"><span style="font-size: 12px;">Nem W. Schlecht posted his script on a Macworld hints forum a couple years ago. Here is a link to that original thread <a href="http://goo.gl/Wd4Z5">http://goo.gl/Wd4Z5</a> but the piece of magic that did the trick is below. As a added bonus, it also creates auto complete from servers it finds in your known_host file. I will repost his post, not just the code, because he has some wise advice on where to place the code </span></span></p>
<blockquote><p><span style="font-family: verdana, tahoma, helvetica, arial, sans-serif;"><span style="font-size: 12px;">The macports suggestion is a good one, but IMO, includes too much. If you don&#8217;t have macports installed, you can add the following to your .bash_profile (I wouldn&#8217;t add it to my .bashrc, since that gets read in by cron jobs and remote commands). </span></span></p>
<p style="margin-top: 5px;">There are a couple improvements here. First, this will also read in aliases in your ~/.ssh/config file. Secondly, it will ignore commented out entries in your ~/.ssh/known_hosts file. Finally, this is a function and not a static list. Thus, it is immediately aware of any new additions to either file (although on really slow machines it will be slower than a static list).</p>
<pre class="brush: bash; title: ; notranslate">
_complete_ssh_hosts ()
{
        COMPREPLY=()
        cur=&quot;${COMP_WORDS[COMP_CWORD]}&quot;
        comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
                        cut -f 1 -d ' ' | \
                        sed -e s/,.*//g | \
                        grep -v ^# | \
                        uniq | \
                        grep -v &quot;\[&quot; ;
                cat ~/.ssh/config | \
                        grep &quot;^Host &quot; | \
                        awk '{print $2}'
                `
        COMPREPLY=( $(compgen -W &quot;${comp_ssh_hosts}&quot; -- $cur))
        return 0
}
complete -F _complete_ssh_hosts ssh
</pre>
</blockquote>
<p>Don&#8217;t forget you need to &#8220;source&#8221; you file to get the new command to load in your terminal or you can close your terminal window and open a new one. </p>
<p style="font-size: 10px;"><a href="http://posterous.com">Posted via email</a> from <a href="http://blog.shocm.me/ssh-autocomplete-on-osx">shocm</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2011/01/ssh-autocomplete-on-osx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nasty Bug &#8211; Ubuntu 10.04 on VMWare Fusion OSX</title>
		<link>http://www.shocm.com/2010/05/nasty-bug-ubuntu-10-04-on-vmware-fusion-osx/</link>
		<comments>http://www.shocm.com/2010/05/nasty-bug-ubuntu-10-04-on-vmware-fusion-osx/#comments</comments>
		<pubDate>Tue, 11 May 2010 21:54:42 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://www.shocm.com/?p=634</guid>
		<description><![CDATA[Came across a nasty little bug when I installed the latest Ubuntu 10.04 (LTS) into a virtual machine using VMWare Fusion 3.02 on my OSX box. This was a fresh install and the install itself went smooth, the problem occured when the initial login screen appeared. Although my mouse worked just fine and I was able to click on the user to log in, I wasn't able to type anything. My keyboard was completely unusable within the virtual machine. I was not able to type any input via the keyboard.  ]]></description>
			<content:encoded><![CDATA[<p>Came across<a href="http://www.shocm.com/wp-content/uploads/2010/05/Ubuntu10.04.jpg"><img class="alignleft size-medium wp-image-635" title="Ubuntu10.04 On screen keyboard " src="http://www.shocm.com/wp-content/uploads/2010/05/Ubuntu10.04-300x240.jpg" alt="" width="300" height="240" /></a> a nasty little bug when I installed the latest Ubuntu 10.04 (LTS) into a virtual machine using VMWare Fusion 3.02 on my OSX box. This was a fresh install and the install itself went smooth, the problem occured when the initial login screen appeared. Although my mouse worked just fine and I was able to click on the user to log in, I wasn&#8217;t able to type anything. My keyboard was completely unusable within the virtual machine. I was not able to type any input via the keyboard.</p>
<p>After doing some Googling I discovered that once you got past the login screen the keyboard would work fine. The only way to login was to initiate the on-screen keyboard and type in your password. You can bring up the on-screen keyboard by clicking on the Universal Access icon on the lower right hand side of the screen and choosing &#8220;Use on-screen keyboard&#8221;. One side note here, when I first checked the box to use the on-screen keyboard, the keyboard would flash and disappear. What I needed to do was keep the box check and reboot the machine, when the login screen returned, the keyboard was there.</p>
<p>Once I logged in the physical keyboard worked fine. I was able to use it in all the applications and didn&#8217;t notice any problems, but once I logged out and returned to the login screen, again no input from the physical keyboard. Now I needed to fix this.</p>
<h2>What didn&#8217;t work <img src='http://www.shocm.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </h2>
<p>At this point I go into basic trouble resolution mode and decided to start by reinstalling and upgrading the VMWare tools. Not going to get into a step by step here how to do that but the short of it is after reinstalling the VMWare tools and rebooting I was stuck in the same situation and needed to use the on-screen keyboard to log in. Next obvious step, apply all patches to the Ubuntu desktop, did this, rebooted, still no go.</p>
<h2>What did work <img src='http://www.shocm.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </h2>
<p>Clearly, you are not reading this article to learn how not to fix it. Trust me after doing enough searches there are plenty discussion threads out there with &#8220;This doesn&#8217;t work for me either, anyone fix this yet?&#8221; to keep you reading for hours. I found a couple good links that I will post at the end of this article that got things resolved. The short answer is I logged into the machine, fired up and console window, type in the command</p>
<pre class="brush: bash; title: ; notranslate">
sudo dpkg-reconfigure console-setup
</pre>
<p>For keyboard I selected &#8220;Apple&#8221; and then just selected the defaults for everything else. Once I exited the configuration wizard, I restarted the machine and all was right with the Ubuntu world again. Did a couple reboots to make sure and everything seems to be working fine now.</p>
<h3>One more side note</h3>
<p>This issue  occurred on a clean install of the current Ubuntu 10.04 LTS release. I had been previously running the beta version of the 10.04 release which worked fine and never had a problem with the keyboard input. However, after patching that box today, same issue occurred.</p>
<h3>The Links</h3>
<p>Two links basically lead me to my resolution</p>
<ul>
<li><a href="http://ubuntuforums.org/showthread.php?t=1466482">http://ubuntuforums.org/showthread.php?t=1466482</a> &#8211; A great thread discussion on the issue in general. There were a couple of &#8220;fixes&#8221; in there including the one I implemented. A couple of post go off track but for the most paart a good thread.</li>
<li><a href="https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/548891">https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/548891</a> &#8211; The bug report on the issue which also includes the work around.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2010/05/nasty-bug-ubuntu-10-04-on-vmware-fusion-osx/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Killing IM with killall and taskkill</title>
		<link>http://www.shocm.com/2008/10/killing-im-with-killall-and-taskkill/</link>
		<comments>http://www.shocm.com/2008/10/killing-im-with-killall-and-taskkill/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 03:44:29 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Adium]]></category>
		<category><![CDATA[IM]]></category>
		<category><![CDATA[Pidgin]]></category>
		<category><![CDATA[Trillian]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/?p=242</guid>
		<description><![CDATA[I&#8217;ve stated before how I am fortunate to be in a position where I typically work on a Linux, OSX, and Windows desktops on regular basis. Depending on what I am doing and my location I might spend a good amount of time on any of these systems. For the most part, my life style [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.shocm.com/wp-content/uploads/2008/10/imclients.png"><img class="alignleft size-medium wp-image-249" title="imclients" src="http://www.shocm.com/wp-content/uploads/2008/10/imclients.png" alt="" width="76" height="82" /></a>I&#8217;ve stated before how I am fortunate to be in a position where I typically work on a Linux, OSX, and Windows desktops on regular basis. Depending on what I am doing and my location I might spend a good amount of time on any of these systems. For the most part, my life style makes this pretty easy. I live in &#8220;the cloud&#8221; a lot for things like email and even documents. I keep things standard complaint and use tools that are typically cross-platformed or have counterparts on other platforms. This has afforded me some great freedoms and have allowed me to unchain myself and not be too dependent on any one solution. Instead my life has become one of preference and knowledge.</p>
<p>However, with everything there has always been pain points, one for me has been IM. While yes, it no longer matters which platform I am on at any given time I am still able to access my Yahoo, AIM, MSN, Gtalk accounts, the issue comes into play when I move from one machine to another and forget to sign out of IM on the previous machine. Some of the IM services alert you when you are logged onto one accounts from multiple systems and allows you to decide what to do, like AIM which gives you an option to send it a command to log you out of your previous session. Some just don&#8217;t care, like Gtalk which doesn&#8217;t seem to be concerned with how many times and from how many locations you are logged in, I don&#8217;t particularly like this approach. Then there are services like Yahoo that just get upset and decides to log you out from one of your accounts, couple that with IM clients that battle to keep their connection like Trillian and you can end up in a situation where you can&#8217;t log into your account because another is already logged in and wont let go.</p>
<p>I&#8217;ve come up with a few approaches that have made this situation somewhat manageable. On my Linux and OSX box this is pretty simple, there is a command line command called &#8216;<a href="http://en.wikipedia.org/wiki/Killall">killall</a>&#8216; that comes to the rescue. With the line &#8216;killall pidgin&#8217; or &#8216;killall Adium&#8217; my IM clients on Linux and OSX respectively, end. Add the ability to ssh into these systems and if I forget to log out I simple do a quick ssh connection to these boxes, run my command and I am done. Furthermore, I typically have a good idea when I wont be at those computers, so with that information and the killall command, I am able to add <a href="http://www.crontab.org/">crontab</a> entries to automatically run my command. So for example, I know at 3AM I don&#8217;t want to be up IM&#8217;ing with anyone so I run that command at that time in case I left my IM client running before going to bed. I also know Monday through Friday I am typically at work and in my office around 8AM so I run that command on my home systems at that time too in case I left the house without logging out. The command ends up looking like this in crontab, <code>00      03,08        *       *       *       /usr/bin/killall Adium &gt; /dev/null 2&gt;&amp;1</code> Worse case scenario, I ssh back to the system and manually run the command. Its a great system and works like a charm.</p>
<p><a href="http://www.shocm.com/wp-content/uploads/2008/10/terminalscreensnapz001.jpg"><img class="aligncenter size-medium wp-image-247" title="terminalscreensnapz001" src="http://www.vanjohnson.com/wp-content/uploads/2008/10/terminalscreensnapz001-300x27.jpg" alt="" width="300" height="27" /></a></p>
<p>At work the story is a little different. First off, the system I run IM on is a Windows machine which doesn&#8217;t have the cool ability to just SSH to and even if I did install an SSH server on the machine it is located behind a corporate firewall so I wouldn&#8217;t be able to get it anyways from the outside. I do have the ability to log in via VPN but that is a lot of work to log into the corporate VPN and RDP to my desktop just to turn off an IM client. Windows also doesn&#8217;t really have crontab, it does have a &#8220;scheduler&#8221; which acts kind of acts like crontab but that coupled with the fact that Windows doesn&#8217;t really have the same powerful command line tools that Linux and OSX have makes this simple task a little tougher to accomplish.<br />
<span id="more-480"></span><br />
I have come up with a solution however,  there&#8217;s a command on my Windows XP called &#8216;<a href="http://technet.microsoft.com/en-us/library/bb491009.aspx">taskkill</a>&#8216;, I am not sure if this command is available on all Windows platform but it is on mine so I use it. Now with this command, I am able to write a small <a href="http://en.wikipedia.org/wiki/Batch_file">batch file</a> that has the one line in it like this <code>taskkill /f /im trillan.exe</code>. When ran this behaves very much like killall on my other machines. I then use the Windows built in scheduler to run this batch file every day, Monday through Friday, at 6:30 PM because if I am still at work at this time, I am done talking to people and need to finish up work and get home. Now for whatever reason, this doesn&#8217;t always work or maybe I leave work early and need to get on IM at home. Because of the before mention firewall issue, its not as easy as just SSH to the box and running the command manually. So I had to come up with a solution to reach into my computer at work from outside to kill my IM if needed. To do this I created an Outlook rule. Since I almost always run Outlook 100% of the time when my work laptop is on, so Outlook seemed like the best vehicle for this effort.</p>
<p>To accomplish this, in Outlook I&#8217;ve defined a rule that looks for emails from specific senders (for example my personal email address), looks for a specific subject line (like &#8220;Turn off IM&#8221;), and checks for something special in the body (example &#8220;Trillian&#8221;). If all these conditions are meant, then it runs my aforementioned batch job and kills Trillian.</p>
<p>That&#8217;s about it, that&#8217;s how I manage my IM needs that run of various different OS in various different environment during various different times and allows me to stay unchained, mobile, and free. Hope you found some of this information helpful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2008/10/killing-im-with-killall-and-taskkill/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Things Done &#8211; The Quicksilver Way</title>
		<link>http://www.shocm.com/2008/08/getting-things-done-the-quicksilver-way/</link>
		<comments>http://www.shocm.com/2008/08/getting-things-done-the-quicksilver-way/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 02:20:40 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[GTD]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Quicksilver]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/?p=179</guid>
		<description><![CDATA[Typically you have those applications you like and those applications you love to use but every now and then an application comes around that completely changes the way you work and those become the applications you can&#8217;t live without. For me, that application is Quicksilver from Blacktree on my OSX machine. Not sure exactly how [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vanjohnson.com/wp-content/uploads/2008/08/firefoxscreensnapz003.jpg"><img class="alignleft size-full wp-image-180" title="Quicksilver" src="http://www.shocm.com/wp-content/uploads/2008/08/firefoxscreensnapz003.jpg" alt="Quicksilver" width="87" height="94" /></a>Typically you have those applications you like and those applications you love to use but every now and then an application comes around that completely changes the way you work and those become the applications you can&#8217;t live without. For me, that application is <a href="http://www.blacktree.com/">Quicksilver</a> from <a href="http://www.blacktree.com/">Blacktree</a> on my OSX machine. Not sure exactly how to describe what exactly <a href="http://www.blacktree.com/">Quicksilver</a> is. To say it&#8217;s just an &#8220;application launcher&#8221; would be seriously underminding everything <a href="http://www.blacktree.com/">Quicksilver</a> brings to the table.</p>
<p>It took me sometime to get my mind around what Quicksilver was and what it could do. I am probably a yellow belt when it comes to using Quicksilver; I am well beyond using the basic features but still haven&#8217;t really scratched the surface of what it can do to really master it. I use a similar application for Linux called <a href="http://do.davebsd.com/">Gnome Do</a> and one for my Windows boxes called <a href="http://www.launchy.net/">Launchy</a> but neither of them have the integration and do for me what <a href="http://www.blacktree.com/">Quicksilver</a> does. Even the Apple OS X built in Spotlight falls far short in my opinion.</p>
<p>Quicksilver can be a tough application to understand and I personally hadn&#8217;t come across a lot of good instructions on how to use it. Been doing the whole trial by fire approach. But fortunately one of my buddies over at <a href="http://www.splunk.com">Splunk</a> has put together one of the best Quicksilver tutorials I&#8217;ve seen to date. Check out <a href="http://blogs.splunk.com/thewilde/2008/06/26/mac-productivity-with-quicksilver/">Michael Wilde&#8217;s Blog entry on &#8220;Mac Productivity with Quicksilver&#8221;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2008/08/getting-things-done-the-quicksilver-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with SAY</title>
		<link>http://www.shocm.com/2008/07/fun-with-say/</link>
		<comments>http://www.shocm.com/2008/07/fun-with-say/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 15:47:05 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[commandline]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/?p=166</guid>
		<description><![CDATA[Sometimes it&#8217;s the simple things that amaze people and leave them thinking you are some type of computer genius. My daughters have grown up with computers, and I mean hardcore. Their first computer was a SUSE Linux machine; they&#8217;ve worked on Windows and OS X boxes and they know their way around them all. At [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it&#8217;s the simple things that amaze people and leave them thinking you are some type of computer genius. My daughters have grown up with computers, and I mean hardcore. Their first computer was a SUSE Linux machine; they&#8217;ve worked on Windows and OS X boxes and they know their way around them all. At 10 years old, they&#8217;ve taken over the IT tech support duties for my wife. Next, I am going to install a phone line in their room so other family members can call them when they need help. What I am trying to say is, their Dad&#8217;s vast knowledge of computers doesn&#8217;t impress them. Whenever I think I&#8217;m showing them something new and cool on the computer, they have an attitude of &#8220;huh, I just didn&#8217;t know how to do it, now I do and its not that cool&#8221;.</p>
<p>I myself get kind of like that too, I am pretty hardcore geek and bells and whistles on computers don&#8217;t really impress me. I typically look at things on a much deeper level. That&#8217;s why when I read an article sometime back called &#8220;<a href="http://fidel.vido.info/wordpress/2008/06/26/mac-having-fun-with-the-say-command-in-your-terminal/">Having fun with the SAY command in your Terminal</a>&#8221; I thought to myself, &#8220;Cute&#8221; and filed it away in the back of my mind thinking I will never have a use for that command.</p>
<p>The SAY command on OS X is a Speech Synthesis Manager. If you own an OS X machine, open a terminal window and type &#8220;man say&#8221; (minus the quotes) for more information, or just type &#8220;say Hello. do you want to play a game&#8221; and start having fun with it.</p>
<p>One day, one of my daughters and I were having somewhat of a disagreement on if it was more important for her to clean her room or finish watching TV; guess which side I was on. As privileges started to get stripped away, right after &#8220;no more pool time&#8221; but before &#8220;no more Playstation3 time&#8221;, she stomps off into her room. Knowing she wasn&#8217;t in her room doing what was asked of her, and knowing I was probably too mad myself to try to talk to her, I sat at my laptop tapping the space bar. Then it dawned on me; I fired up a terminal session on my Ubuntu laptop and made a ssh connection to my daughter&#8217;s computer in her room and proceeded to test out that SAY command. It went something like this;</p>
<blockquote><p>say Why are you so mad</p></blockquote>
<p>I hear a deep synthetic voice mumble come from behind my daughters&#8217; door followed by a somewhat confused sounding voice of a little girl.</p>
<blockquote><p>say Didnt your dad ask you to clean your room? I like a clean room</p></blockquote>
<p>Some more little girl mumbles. Is she arguing with the computer now?</p>
<blockquote><p>say Your dad is probably the smartest man I know, and may be the smartest man on earth, you should listen to him</p></blockquote>
<p>OK, that last one might have been too much and may have tipped her off. I hear her door open and she yells, &#8220;I don&#8217;t know how you are doing that but you better show me&#8221;</p>
<p>Anyways, SSH with SAY and you can have all sorts of fun with co-workers, family, and friends. Further more they will think you are truly <a href="http://www.urbandictionary.com/define.php?term=1337">1337</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2008/07/fun-with-say/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great Mac tar archive tip</title>
		<link>http://www.shocm.com/2008/03/great-mac-tar-archive-tip/</link>
		<comments>http://www.shocm.com/2008/03/great-mac-tar-archive-tip/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 16:49:28 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[NotMyPosting]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[QuickTip]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/2008/great-mac-tar-archive-tip-2/</guid>
		<description><![CDATA[Every now and then I just post things I don&#8217;t want to forget or worried that the original website might disappear. This is one of the cases. This is a blog posting I came across on a little problem that plaques those of us that enjoy using OS X but have a need to move [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then I just post things I don&#8217;t want to forget or worried that the original website might disappear. This is one of the cases. This is a blog posting I came across on a little problem that plaques those of us that enjoy using OS X but have a need to move files to other systems like Linux and Windows. </p>
<p>There is a dirty little secret the Mac hides from you when you are using it but becomes a glaring eyesore when you move to another OS. Some file clean up needs to happen because OSX creates these hidden files that start with a ._ which contains some extended information about the file that no other system reads so they aren&#8217;t terrible useful when moving files to these systems. This post from a person working for <a href="http://www.splunk.com">Splunk</a>, outlines how to tar up files on a OSX machine that is targeted for other systems and exclude the ._ files from the tarring process. Original article can be found <a href="http://blogs.splunk.com/deeann/?p=5">here</a> </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212; POST &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-
<p><i>When building Splunk applications, Im often working on a Mac. There<br />are files that begin with ._ that are resource files, which contain<br />extended attribute information about the files for the OS. This is<br />great and all but I dont want to include these files when I package up<br />an application and upload it to SplunkBase.</i></p>
<p>
<p><i>If you dont have deep OSX knowledge, then keeping these files out<br />of your tarball is harder than it looks. One of our OSX gurus pointed<br />me toward the answer, and I was so excited (yes, I am a geek) that I<br />just had to share.</i></p>
<p>
<p><i>To build a tarball in Leopard that doesnt contain the ._ files, use:</i></p>
<p>
<p><i>COPYFILE_DISABLE=true tar cvzf filename.tar.gz dirtotar</i></p>
<p>
<p><i>In Tiger, use:</i></p>
<p>
<p><i>COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar czvf filename.tar.gz dirtotar</i></p>
<p>
<p><i>This is definitely going in my .bashrc so I dont have to fuss with it again:</i></p>
<p>
<p><i>export COPYFILE_DISABLE=true</i></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212; PEND OF POST &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<blockquote></blockquote></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2008/03/great-mac-tar-archive-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leopard Features</title>
		<link>http://www.shocm.com/2007/11/leopard-features/</link>
		<comments>http://www.shocm.com/2007/11/leopard-features/#comments</comments>
		<pubDate>Wed, 28 Nov 2007 03:05:06 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/2007/leopard-features/</guid>
		<description><![CDATA[OK, I am by no means an expert with OSX, especially the new Leopard. I also know there have been a lot of new features added with this latest release of OSX so I could have very easily missed this one but when I stumbled onto it I thought it was really pretty cool. If [...]]]></description>
			<content:encoded><![CDATA[<p>OK, I am by no means an expert with OSX, especially the new Leopard. I also know there have been a lot of new features added with this latest release of OSX so I could have very easily missed this one but when I stumbled onto it I thought it was really pretty cool.</p>
<p>If you select a file and hit the space bar you get a nice preview of the file.<br />
</p>
<div align=center>
	<a href="http://www.flickr.com/photos/vanjohnson/2070452412/" title="Picture 1 by VanJohnson, on Flickr"><img src="http://farm3.static.flickr.com/2395/2070452412_6dc183f1ef_m.jpg" width="240" height="150" alt="Picture 1" /></a>
</div>
<p>
If you do this while you have a folder selected you get some good information on the folder such has folder size.</p>
<div align=center>
<a href="http://www.flickr.com/photos/vanjohnson/2069656987/" title="Picture 2 by VanJohnson, on Flickr"><img src="http://farm3.static.flickr.com/2341/2069656987_4eaa31d1f2_m.jpg" width="240" height="150" alt="Picture 2" /></a>
</div>
<p>
And just as an FYI, you don&#8217;t even need to be in Finder to do this trick. You can do it directly on the Desktop. Just select something and hit the space bar.</p>
<div align=center>
	<a href="http://www.flickr.com/photos/vanjohnson/2069655501/" title="Picture 3 by VanJohnson, on Flickr"><img src="http://farm3.static.flickr.com/2246/2069655501_8d771ba9dc_m.jpg" width="240" height="150" alt="Picture 3" /></a>
</div>
<p>
Just one of many cool features I didn&#8217;t realize lived within Leopard.</p>
<p><em>Update: Finally found the name to this feature, <a href="http://www.apple.com/macosx/features/quicklook.html">Quick Look</a><br />
<br clear="all" /></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2007/11/leopard-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

