<?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>Chris J Mears &#187; Geeky Stuff</title>
	<atom:link href="http://chrisjmears.com/category/geeky-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisjmears.com</link>
	<description>Web Developer in Ruby on Rails and CakePHP</description>
	<lastBuildDate>Tue, 03 Aug 2010 22:22:46 +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>HAML + Javascript</title>
		<link>http://chrisjmears.com/2009/10/haml-javascript/</link>
		<comments>http://chrisjmears.com/2009/10/haml-javascript/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 04:00:18 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://chrisjmears.com/?p=204</guid>
		<description><![CDATA[I am very meticulous when it comes to server calls. In most of my Rails applications, I make sure to only specify those Javascript files that are deemed absolute necessary for any given view so as to not clutter things with wasted bytes of memory. While I was playing around with HAML, I needed to [...]]]></description>
			<content:encoded><![CDATA[<p>I am very meticulous when it comes to server calls.  In most of my Rails applications, I make sure to only specify those Javascript files that are deemed absolute necessary for any given view so as to not clutter things with wasted bytes of memory.</p>
<p>While I was playing around with <a href="http://haml-lang.com/">HAML</a>, I needed to insert a very simple, very specific jQuery function.  As of this writing, a simple Google search of &#8220;haml and javascript&#8221; came up with some old and unhelpful results. The <a href="http://haml-lang.com/docs/yardoc/HAML_REFERENCE.md.html">official HAML documentation</a> was, of course, among those results, but the answer was at the bottom of the document and a quick scan of the table of contents didn&#8217;t associate &#8220;Filters :&#8221; as being the correct the section.</p>
<p>Of course, a <a href="http://www.red91.com/2009/02/08/inline-javascript-in-haml">blog</a> or <a href="http://railsnotes.com/474-javascript-haml/">two</a> and the <a href="http://groups.google.com/group/haml/msg/5cfa940aa0333440">HAML google group</a> already tackled the topic, so I&#8217;m just going to regurgitate in order in hopes that next person with this problem will find the answer in 2 minutes instead of my 10 minutes.</p>
<p>An example:</p>
<pre>
:javascript
  $(function() {
    $("#tabs").tabs();
  });
</pre>
]]></content:encoded>
			<wfw:commentRss>http://chrisjmears.com/2009/10/haml-javascript/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Textmate and Git Bundle</title>
		<link>http://chrisjmears.com/2009/09/textmate-and-git-bundle/</link>
		<comments>http://chrisjmears.com/2009/09/textmate-and-git-bundle/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 22:42:38 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://chrisjmears.com/?p=173</guid>
		<description><![CDATA[I just recently had this problem and saw that the answer was buried in a TextMate blog entry comment thread. Are you getting the following error whenever you try to use the bundle? sh: git: command not found Did you install git through Macports or manually compile the source? Could your Git bundle for TextMate [...]]]></description>
			<content:encoded><![CDATA[<p>I just recently had this problem and saw that the answer was <a href="http://blog.macromates.com/2008/git-bundle/#comment-3070">buried</a> in a <a href="http://blog.macromates.com/2008/git-bundle/">TextMate blog entry</a> comment thread.</p>
<p>Are you getting the following error whenever you try to use the bundle?</p>
<p><code>sh: git: command not found</code>  </p>
<p>Did you install git through Macports or manually compile the source?  Could your Git bundle for TextMate be a tad old?</p>
<p>All of the above was true for me, but I was easily able to solve the issue with the following command:</p>
<p><code>sudo ln -s /opt/local/bin/git /usr/bin/git</code></p>
<p>Hope that cuts back on troubleshooting time for some of you out there!</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjmears.com/2009/09/textmate-and-git-bundle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X Terminal Aliases</title>
		<link>http://chrisjmears.com/2009/05/mac-os-x-terminal-aliases/</link>
		<comments>http://chrisjmears.com/2009/05/mac-os-x-terminal-aliases/#comments</comments>
		<pubDate>Fri, 22 May 2009 06:49:48 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://chrisjmears.com/?p=171</guid>
		<description><![CDATA[Partly because I wanted to post more and partly because I transfer computers a lot and I figure a blog is as good place as any to share my thoughts with, well, myself. Here&#8217;s a list of aliases I&#8217;ve collected over the times searching the Internet (note: so far, not so many, but that&#8217;ll change [...]]]></description>
			<content:encoded><![CDATA[<p>Partly because I wanted to post more and partly because I transfer computers a lot and I figure a blog is as good place as any to share my thoughts with, well, myself.</p>
<p>Here&#8217;s a list of aliases I&#8217;ve collected over the times searching the Internet (note: so far, not so many, but that&#8217;ll change as I keep finding more).  </p>
<p>To be put in ~/.bash_profile:</p>
<pre>
alias ls='ls -aFhlG'
alias ll='ls -l'
alias search=grep
alias ..='cd ..'
alias ...='cd ../..'
alias bake='/opt/local/apache2/htdocs/cake/cake/console/cake bake'
alias cake='cd /opt/local/apache2/htdocs/cake'
</pre>
<p>If anyone wants more detailed explanation of any or all of these, or if you&#8217;d like to know what in the bejesus I&#8217;m even talking about, post a comment.</p>
<p>Oh, and I would also happily welcome further suggestions too.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjmears.com/2009/05/mac-os-x-terminal-aliases/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Setting Themes for Terminal in Mac OS X</title>
		<link>http://chrisjmears.com/2009/02/setting-themes-for-terminal-in-mac-os-x/</link>
		<comments>http://chrisjmears.com/2009/02/setting-themes-for-terminal-in-mac-os-x/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 16:24:22 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://chrisjmears.com/?p=129</guid>
		<description><![CDATA[After spending way too long using a plain black and white color scheme in Terminal and being unimpressed with the theme options under Terminal &#62; Preferences&#8230; &#62; Settings Tab, I decided to do a little bit of searching to remedy the situation. I ran across Todd Werth&#8217;s IR_Black Terminal theme, which seemed to be very [...]]]></description>
			<content:encoded><![CDATA[<p>After spending way too long using a plain black and white color scheme in Terminal and being unimpressed with the theme options under Terminal &gt; Preferences&#8230; &gt; Settings Tab, I decided to do a little bit of searching to remedy the situation.</p>
<p><span id="more-129"></span></p>
<p>I ran across Todd Werth&#8217;s <a title="Todd Werth's IR_Black Terminal theme" href="http://blog.infinitered.com/entries/show/6" target="_blank">IR_Black Terminal theme</a>, which seemed to be very easy on the eyes.  Actually, at the time of this writing, Todd Werth&#8217;s theme is the <em>only</em> theme I&#8217;ve found.</p>
<h3>Steps for setting a theme for Mac OS X Terminal</h3>
<ol>
<li>Download and install <a title="SIMBL" href="http://www.culater.net/software/SIMBL/SIMBL.php" target="_blank">SIMBL</a></li>
<li>Download and install <a title="TerminalColors Bundle" href="http://www.culater.net/software/TerminalColors/TerminalColors.php" target="_blank">TerminalColors Bundle</a></li>
<li>Download and install <a title="Todd Werth's IR_Black Theme" href="http://blog.infinitered.com/entries/show/6" target="_blank">Todd Werth&#8217;s IR_Black theme</a></li>
</ol>
<p><em>Note: This article assumes you know your way around Mac OS X, can install programs, and are comfortable manipulate files.  Should you need extra help, please <a title="Contact Me!" href="/contact" target="_self">contact me</a> or post a comment below and I&#8217;ll go into finer detail.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjmears.com/2009/02/setting-themes-for-terminal-in-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iTunes Rating System for Album People</title>
		<link>http://chrisjmears.com/2008/09/itunes-rating-system-for-album-people/</link>
		<comments>http://chrisjmears.com/2008/09/itunes-rating-system-for-album-people/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 17:56:51 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[playlists]]></category>

		<guid isPermaLink="false">http://chrisjmears.com/?p=45</guid>
		<description><![CDATA[After I started to get very weird songs pop up in my &#8220;4-stars and up&#8221; Party Shuffle playlist, I decided to embark on a more stream-lined iTunes song rating system. Here is my proposal: No stars This song is unrated and needs to be put in a smart playlist to be rated, even if they&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>After I started to get very weird songs pop up in my &#8220;4-stars and up&#8221; Party Shuffle playlist, I decided to embark on a more stream-lined iTunes song rating system.</p>
<p>Here is my proposal:</p>
<dl>
<dt class="icon stars-0">No stars</dt>
<dd>This song is unrated and needs to be put in a smart playlist to be rated, even if they&#8217;re all 3 star ratings. This is a fire sale people. Everything. Must. Go! (out of that unrated smart playlist!)</dd>
<dt class="icon stars-1">1 star</dt>
<dd>Denotes a supreme dislike for the song that immediate deletion would not be totally uncalled for.</dd>
<dt class="icon stars-2">2 stars</dt>
<dd>This song is a&#8217;ight. Not the most inspirational piece of music, but not worth deleting either, if it flows with the rest of the album.</dd>
<dt class="icon stars-3">3 stars</dt>
<dd>This is a good song.  Not the best, but you would be indifferent about it showing up once in a while during a shuffle.  And hey, you wouldn&#8217;t be totally against bumping it up to 4 stars if it revealed a glimmer of potential to get stuck in your head.</dd>
<dt class="icon stars-4">4 stars</dt>
<dd>This song is great! Not only wouldn&#8217;t you mind hearing it in a shuffle of all songs in your library, but you&#8217;d be happy when it came on! Not only that, it warrants a place in your &#8220;Best of Artist&#8221; and &#8220;Best of Album&#8221; smart playlists.</dd>
<dt class="icon stars-5">5 stars</dt>
<dd>OMG! O-M-G! You <em>love</em> what&#8217;s happening to your ears right now! It&#8217;s, like, <em>amazing</em> and you can&#8217;t get enough. In fact, this is a song you want to share with everyone when you get the chance!</dd>
</dl>
<p>Add any additional thoughts or suggestions in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjmears.com/2008/09/itunes-rating-system-for-album-people/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remotely Uninstall Symantec Antivirus</title>
		<link>http://chrisjmears.com/2008/08/remotely-uninstall-symantec-antivirus/</link>
		<comments>http://chrisjmears.com/2008/08/remotely-uninstall-symantec-antivirus/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 03:09:56 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[symantec]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://chrisjmears.com/?p=40</guid>
		<description><![CDATA[I&#8217;m not going into the reasons here, but I recently needed to uninstall Symantec Antivirus from all client computers on our network (~25 computers) in order to install a new antivirus client. Since it was so few computers, I really could have just sat down at each one and uninstalled the program through Control Panel.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not going into the reasons here, but I recently needed to uninstall Symantec Antivirus from all client computers on our network (~25 computers) in order to install a new antivirus client. Since it was so few computers, I really could have just sat down at each one and uninstalled the program through Control Panel.  But what fun is that when you can do it remotely?</p>
<p>After reading an <a title="How to silently and remotely remove Symantec Antivirus" href="http://it.toolbox.com/blogs/locutus/how-to-silently-and-remotely-remove-symantec-antivirus-14625" target="_blank">article</a> on the subject, I did some more investigating and this is the process I came up with:</p>
<ol>
<li>Download <strong><a title="PsTools Download" href="http://technet.microsoft.com/en-us/sysinternals/bb896649.aspx" target="_blank">PSTools</a></strong> and unzip into <strong>C:\Windows\System32</strong></li>
<li>Get the Symantec Antivirus uninstall registry ID from regedit by way of <strong>HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall</strong>.  Go through the subkeys and search for the one that has Symantec in the Value Name.  For example, I had Symantec Corporate Antivirus v10.x and the ID was {78D891EF-9E2D-4FC8-A71F-E6F897BA1B21}</li>
<li>Remotely connect to Symantec System Center server using domain administrator account</li>
<li>(Optional: if you require a password to uninstall) Using regedit, remotely connect to each computer to edit registry.  What we&#8217;re looking for is under <strong>HKEY_LOCAL_MACHINE \ SOFTWARE \ INTEL \ LANDesk \ VirusProtect6 \ CurrentVersion \ AdministratorOnly \ Security</strong>. Make sure the two values, &#8220;LockUnloadServices&#8221; and &#8220;UseVPUninstallPassword,&#8221; are zero.</li>
<li>Logged in as a domain admininistrator, using PsExec, run MsiExec to uninstall.  Example,<br />
<strong>C:\&gt;psexec \\COMPUTER_NAME MsiExec.exe /norestart /q /x {78D891EF-9E2D-4FC8-A71F-E6F897BA1B21} REMOVE=ALL</strong></li>
</ol>
<p>Assuming all went well, you should get an error code of zero, which means everything went successfully.  Should you get any other error code, <a title="List of error codes and error messages for MsiExec" href="http://support.microsoft.com/kb/290158" target="_blank">look it up</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjmears.com/2008/08/remotely-uninstall-symantec-antivirus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually Configure Time Machine&#8217;s Backup Interval</title>
		<link>http://chrisjmears.com/2008/08/manually-configure-time-machines-backup-interval/</link>
		<comments>http://chrisjmears.com/2008/08/manually-configure-time-machines-backup-interval/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 16:55:31 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Geeky Stuff]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[time machine]]></category>

		<guid isPermaLink="false">http://chrisjmears.com/?p=34</guid>
		<description><![CDATA[Time Machine has always annoyed me with how frequent it wants to backup.  It takes no consideration what you are currently doing and if you have Time Capsule, your workflow grinds to a complete halt while Time Machine and Time Capsule get buddy-buddy over your network. My issue is not with Time Machine itself.  It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Time Machine has always annoyed me with how frequent it wants to backup.  It takes no consideration what you are currently doing and if you have Time Capsule, your workflow grinds to a complete halt while Time Machine and Time Capsule get buddy-buddy over your network.</p>
<p>My issue is not with Time Machine itself.  It&#8217;s a great idea and great program!  I just wish there was a better control panel for it.  Oh well, time to get down and dirty.</p>
<p>From this <a title="Mac OS X Hints: Set the Time Machine backup interval" href="http://www.macosxhints.com/article.php?story=200710291721156" target="_blank">hint</a> I was able to set the Time Machine backup schedule from one hour to six hours.</p>
<p>Basically, in Terminal, you:<br />
<code><br />
cd /System/Library/LaunchDaemons<br />
sudo vi com.apple.backupd-auto.plist<br />
</code></p>
<p><strong>Note:</strong> I&#8217;m using the vi editor to do this hack. You can choose any editor you wish, just make sure you have proper permissions.</p>
<p>Once open, you change the property:<br />
<code><br />
&lt;key&gt;StartInterval&lt;/key&gt;<br />
&lt;integer&gt;3600&lt;/integer&gt;<br />
</code></p>
<p>Where 3600 is the number of seconds you want Time Machine to run.  I changed mine to 21600 and voila!</p>
<p>Now maybe I can play a DVD without Time Machine interupting my full screen.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjmears.com/2008/08/manually-configure-time-machines-backup-interval/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
