<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="/css/rss-browser.css" ?>
<rss version="2.0">
	<channel>
		<title>Perturb.org - Scott's Geek Stuff</title>
		<link>http://www.perturb.org/</link>
		<description>Just Geek Stuff</description>

		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/976/</guid>
			<title>Fedora 12 isos</title>
			<link>http://www.perturb.org/display/entry/976/</link>
			<description>&lt;p&gt;The Fedora 12 &lt;em&gt;iso&lt;/em&gt; files are hybrid files. You can burn them to CD or put them on USB stick. Creating a bootable Fedora 12 USB stick is as simple as:&lt;/p&gt;
		
		&lt;pre&gt;&lt;code&gt;dd of=/dev/sde if=~/iso/Fedora-12-x86_64-netinst.iso
		&lt;/code&gt;&lt;/pre&gt;
		
		&lt;p&gt;There are no fancy commands to prepare the USB or make it bootable. Just good ole &lt;strong&gt;dd&lt;/strong&gt;. It's worth noting that the DVD isos do not have this feature, only the CD images.&lt;/p&gt;
		</description>
			<pubDate>Fri, 12 Mar 2010 08:35:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/975/</guid>
			<title>JQuery bookmarklet</title>
			<link>http://www.perturb.org/display/entry/975/</link>
			<description>&lt;p&gt;This is a great idea that I'm surprised no one has thought of before. If you want to play with JQuery on a non-jquery page you can use this great &lt;a href=&quot;http://www.learningjquery.com/2006/12/jquerify-bookmarklet&quot;&gt;bookmarklet&lt;/a&gt; to add JQuery to any page.&lt;/p&gt;
		</description>
			<pubDate>Thu, 04 Mar 2010 13:58:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/974/</guid>
			<title>Remove all JS click events</title>
			<link>http://www.perturb.org/display/entry/974/</link>
			<description>&lt;p&gt;I manage some old legacy XHTML code that has &lt;strong&gt;onclick=&quot;foo()&quot;&lt;/strong&gt; elements in the XHTML. There is also some JQuery that adds &lt;strong&gt;click()&lt;/strong&gt; events. I wanted to completely clean up all click events from a given element. I made a simple JQuery function to remove the onclick HTML events, and JQuery click events.&lt;/p&gt;
		
		&lt;pre&gt;&lt;code&gt;function super_clean(jselector) {                                                                                               
		   return $(jselector).removeAttr('onclick').unbind('click');                                                                   
		}
		&lt;/code&gt;&lt;/pre&gt;
		</description>
			<pubDate>Thu, 04 Mar 2010 13:54:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/973/</guid>
			<title>Great JQuery overview</title>
			<link>http://www.perturb.org/display/entry/973/</link>
			<description>&lt;p&gt;&lt;a href=&quot;http://ejohn.org/&quot;&gt;John Resig&lt;/a&gt; gives a great &lt;a href=&quot;http://ejohn.org/apps/workshop/intro/&quot;&gt;JQuery overview&lt;/a&gt;. The slideshow is all HTML and includes live &lt;a href=&quot;http://jquery.com/&quot;&gt;JQuery&lt;/a&gt; examples to play with. Well worth the read if you use JQuery at all.&lt;/p&gt;
		</description>
			<pubDate>Thu, 04 Mar 2010 13:41:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/972/</guid>
			<title>Tracking for my new CPU</title>
			<link>http://www.perturb.org/display/entry/972/</link>
			<description>&lt;p&gt;This is a tracking entry to note the day I got my AMD Athlon II X3.&lt;/p&gt;
		</description>
			<pubDate>Tue, 02 Mar 2010 15:15:41 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/971/</guid>
			<title>Easily rip the audio from any video file</title>
			<link>http://www.perturb.org/display/entry/971/</link>
			<description>&lt;p&gt;You can use &lt;a href=&quot;http://www.commandlinefu.com/commands/view/4967/dump-from-start-to-end-audio-from-a-video-file#comment&quot;&gt;ffmpeg&lt;/a&gt; to rip the audio from any video file.&lt;/p&gt;
		
		&lt;pre&gt;&lt;code&gt;ffmpeg -i input.avi /tmp/output.wav
		&lt;/code&gt;&lt;/pre&gt;
		</description>
			<pubDate>Fri, 26 Feb 2010 15:51:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/970/</guid>
			<title>Netflix on the PS3</title>
			<link>http://www.perturb.org/display/entry/970/</link>
			<description>&lt;p&gt;I got my Netflix disc for the PS3 and decided to test it. The first thing I noticed when opening it is a big label on the envelope that says &lt;em&gt;&quot;do not return this disc&quot;&lt;/em&gt;. After I inserted the disc in your PS3 I couldn't find the icon to launch Netflix. It does not auto start, and it's not under the games section where PS3 games are when you insert the disc. Instead the Netflix icon is, logically, in the video section. After you launch Netflix it gives you a URL to visit on your PC. After you visit the URL it pairs up your PS3 with your Netflix account via a 6 digit code. From here you're able to watch anything in your queue that's streamable.&lt;/p&gt;
		
		&lt;p&gt;I'm left wondering why Netflix requires the disc to be in the system to stream content. It does &lt;strong&gt;not&lt;/strong&gt; install the application to your system. Installing to your system would make more sense, as then I wouldn't have to insert the disc every time I wanted to stream content. The PS3 has a HD for this sort of thing, I'm not sure why Netflix doesn't use it. Perhaps it will be integrated with the system in a future software release?&lt;/p&gt;
		</description>
			<pubDate>Fri, 26 Feb 2010 10:32:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/969/</guid>
			<title>Woot KDE 4.4</title>
			<link>http://www.perturb.org/display/entry/969/</link>
			<description>&lt;p&gt;KDE 4.4 just hit the Fedora yum repos. I'm upgrading as we speak!&lt;/p&gt;
		</description>
			<pubDate>Wed, 24 Feb 2010 15:58:45 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/968/</guid>
			<title>Readability Firefox Extension</title>
			<link>http://www.perturb.org/display/entry/968/</link>
			<description>&lt;p&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/46442&quot;&gt;Readability&lt;/a&gt; is a Firefox extension to strip the extraneous cruft out of webpages and present you just the content you read. When you read an article on a major news site you can end up viewing a huge header, ads down the sides, links to send/blog/print, etc. Readability strips out the content and presents it to you in an easy to read fashion. Incredible.&lt;/p&gt;
		
		&lt;p&gt;Thanks to &lt;a href=&quot;http://www.dria.org/wordpress/archives/2010/02/23/1429/&quot;&gt;dria.org&lt;/a&gt; for pointing it out.&lt;/p&gt;
		</description>
			<pubDate>Wed, 24 Feb 2010 08:16:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/967/</guid>
			<title>New bed</title>
			<link>http://www.perturb.org/display/entry/967/</link>
			<description>&lt;p&gt;For the purposes of tracking the warranty on my new sleep number bed, it arrived today.&lt;/p&gt;
		</description>
			<pubDate>Thu, 11 Feb 2010 13:13:02 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/966/</guid>
			<title>IE and its broken substr()</title>
			<link>http://www.perturb.org/display/entry/966/</link>
			<description>&lt;p&gt;substr() is a very simple function for working with strings. It's been around forever, and is well documented. I recently had need to find the last character of a string in javascript. Everything was working fine in Firefox and Chrome, but IE was breaking.&lt;/p&gt;
		
		&lt;pre&gt;&lt;code&gt;'abcdef'.substr(-1,1)
		&lt;/code&gt;&lt;/pre&gt;
		
		&lt;p&gt;That is, start at 1 character from the end (-1) and return 1 character. In all other browsers this returns 'f' but in IE it returns 'a'.&lt;/p&gt;
		</description>
			<pubDate>Fri, 05 Feb 2010 10:38:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/965/</guid>
			<title>Ruminating on the new iPad</title>
			<link>http://www.perturb.org/display/entry/965/</link>
			<description>&lt;ul&gt;
		&lt;li&gt;Isn't this just a big expensive iPod touch now?
		
		&lt;ul&gt;
		&lt;li&gt;It's more than just an iPod touch that won't fit in your pocket...it's also an underpowered netbook with no keyboard. It's the worst of both worlds!
		
		&lt;ul&gt;
		&lt;li&gt;It actually has a robust power source; it is powered almost entirely by the user's sense of self-importance.&lt;/li&gt;
		&lt;/ul&gt;&lt;/li&gt;
		&lt;/ul&gt;&lt;/li&gt;
		&lt;/ul&gt;
		
		&lt;p&gt;&lt;a href=&quot;http://apple.slashdot.org/comments.pl?sid=1527002&amp;amp;cid=30921254&quot;&gt;Slashdot.org comments&lt;/a&gt;&lt;/p&gt;
		</description>
			<pubDate>Wed, 27 Jan 2010 11:43:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/964/</guid>
			<title>Microsoft has two malware tools</title>
			<link>http://www.perturb.org/display/entry/964/</link>
			<description>&lt;p&gt;&lt;a href=&quot;http://www.microsoft.com/security/malwareremove/default.aspx&quot;&gt;Malicious Software Removal Tool&lt;/a&gt; scans your system on demand for malware, and &lt;a href=&quot;http://www.microsoft.com/Security_Essentials/&quot;&gt;Microsoft Security Essentials&lt;/a&gt; is a real time anti-virus tool. Both are tools are free.&lt;/p&gt;
		</description>
			<pubDate>Tue, 26 Jan 2010 16:26:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/963/</guid>
			<title>GMail and IMAP</title>
			<link>http://www.perturb.org/display/entry/963/</link>
			<description>&lt;p&gt;I use Thunderbird as an IMAP client on my GMail account. There are a couple of idiosyncrasies that require some settings changes. Google has a detailed page about setting up various &lt;a href=&quot;http://mail.google.com/support/bin/answer.py?answer=78892#&quot;&gt;IMAP Clients&lt;/a&gt; to work properly with GMail.&lt;/p&gt;
		</description>
			<pubDate>Tue, 26 Jan 2010 11:59:00 -0800</pubDate>
		</item>
		
		<item>
			<guid isPermaLink="true">http://www.perturb.org/display/entry/962/</guid>
			<title>Caching results in a PHP function</title>
			<link>http://www.perturb.org/display/entry/962/</link>
			<description>&lt;p&gt;If you have a function that will get called lots of times, and you'd like to cache the results so as not to incur a performance penalty for hitting the disk/DB again use static variables.&lt;/p&gt;
		
		&lt;pre&gt;&lt;code&gt;function get_user($id) {
		  // Sanitize the input
		  $id = intval($id);
		
		  // Declaring as static prevents the variable from dying when the function exits
		  static $cache;
		
		  // If the data is already in the cache just return that
		  if ($cache[$id]) { return $cache[$id]; }
		
		  // Get the data from the DB/Disk/Slow Source
		  $rs = mysql_query(&quot;SELECT * FROM UserTable WHERE ID = $id&quot;);
		  $ret = mysql_fetch_assoc($rs);
		
		  // Store the results in the cache so it will be there next time
		  $cache[$id] = $ret;
		
		  return $ret;
		}
		&lt;/code&gt;&lt;/pre&gt;
		
		&lt;p&gt;This will store the results in cache (memory), speeding up subsequent requests. This cache will last until your script ends. To store across multiple script executions you'll want to look at something like &lt;a href=&quot;http://en.wikipedia.org/wiki/Memcached&quot;&gt;memcache&lt;/a&gt;.&lt;/p&gt;
		</description>
			<pubDate>Fri, 22 Jan 2010 16:24:00 -0800</pubDate>
		</item>
		
	</channel>
</rss>
