<?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>splat operator</title>
	<atom:link href="http://splatoperator.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://splatoperator.com</link>
	<description>:computering =&#62; *&#039;a&#039;..&#039;z&#039;</description>
	<lastBuildDate>Mon, 25 Mar 2013 04:11:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Installing Windows 7 SP1 on chainloaded Windows</title>
		<link>http://splatoperator.com/2013/03/installing-windows-7-sp1-on-chainloaded-windows/</link>
		<comments>http://splatoperator.com/2013/03/installing-windows-7-sp1-on-chainloaded-windows/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 04:11:57 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[BIOS]]></category>
		<category><![CDATA[bootloader]]></category>
		<category><![CDATA[chainloading]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[service pack 1]]></category>
		<category><![CDATA[sp1]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=441</guid>
		<description><![CDATA[The Problem When I try to install Windows 7 Service Pack 1 (SP1) on my dual-booting computer, installation fails every time with the error 0x800F0A12. My Setup Drive 0 Drive 0 has Windows 7 installed. In the setup wizard, I &#8230; <a href="http://splatoperator.com/2013/03/installing-windows-7-sp1-on-chainloaded-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<h2>The Problem</h2>

<p>When I try to <strong>install Windows 7 Service Pack 1 (SP1)</strong> on my dual-booting
computer, installation fails every time with the error <code>0x800F0A12</code>.</p>

<h2>My Setup</h2>

<h3>Drive 0</h3>

<p><strong>Drive 0</strong> has <strong>Windows 7</strong> installed. In the setup wizard, I just deleted all
partitions, clicked the blank drive, clicked Next and let Windows handle the
partition scheme, boot options, etc. the way it wanted. So there is <strong>no GRUB</strong>
config or code here.</p>

<h3>Drive 1</h3>

<p><strong>Drive 1</strong> has <strong>Ubuntu</strong> installed with my preferred partition scheme. <strong>GRUB is
installed</strong> to this drive and there is an entry for <strong>Windows 7 on Drive 0.</strong></p>

<h3>BIOS</h3>

<p>In <strong>BIOS</strong>, I boot <strong>Drive 1</strong> by default and just <strong>select Windows from the
GRUB menu</strong> when I want to use Windows.</p>

<h2>The Cause</h2>

<p>If you can believe it, Windows was cranky because <strong>I was using GRUB to chainload
Windows&#8217; own bootloader!</strong></p>

<h2>The Solution</h2>

<p>So the solution was to <strong>select my boot device at boot time</strong> (F12 during POST
on my board) and <strong>boot from Drive 0 directly.</strong> SP1 is now installing without a
hitch.</p>

<p><strong>O_O</strong></p>

<p>Once the installation is complete, you can <strong>continue chainloading Windows&#8217;
bootloader with GRUB</strong>. It&#8217;s only the SP1 installation that gums it up.</p>

<h2>References</h2>

<p>I found these articles to be most helpful on my journey.</p>

<ul>
<li><a href="http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/windows-7-sp1-0x800f0a12-error-code/a584d276-a773-4917-b947-134d5330b825?tm=1335837504508">Windows 7 SP1, 0x800F0A12 error code</a> on the Microsoft Community site</li>
<li><a href="http://social.technet.microsoft.com/Forums/en/w7itproinstall/thread/f955a5ff-3838-4e02-9d44-e698e1ae0346">SP1 Failed Install &#8211; Error Code 0x800f0a12</a> on the TechNet site</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2013/03/installing-windows-7-sp1-on-chainloaded-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Hibernate on the System76 Lemur Ultra (lemu4)</title>
		<link>http://splatoperator.com/2013/03/enable-hibernate-on-the-system76-lemur-ultra-lemu4/</link>
		<comments>http://splatoperator.com/2013/03/enable-hibernate-on-the-system76-lemur-ultra-lemu4/#comments</comments>
		<pubDate>Sat, 23 Mar 2013 19:50:15 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[quickies]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[lemu4]]></category>
		<category><![CDATA[Lemur Ultra]]></category>
		<category><![CDATA[policykit]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[system76]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=518</guid>
		<description><![CDATA[I got a System76 Lemur Ultra (codename lemu4), and I love it! The build quality is a little so-so (the faux-metal plastic is kind of bendy, and, well, plastic), but I wasn&#8217;t expecing a MacBook. One of my favorite things &#8230; <a href="http://splatoperator.com/2013/03/enable-hibernate-on-the-system76-lemur-ultra-lemu4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I got a <a href="https://www.system76.com/laptops/model/lemu4">System76 Lemur Ultra</a> (codename lemu4), and I love it! The build
quality is a little so-so (the faux-metal plastic is kind of bendy, and, well,
plastic), but I wasn&#8217;t expecing a MacBook.</p>

<p>One of my favorite things as a long-time Linux laptop user is that this thing
supports hibernation out of the box! <strong>Whoa whoa whoa</strong>—before you get too
excited, I said <em>supports</em>. You have to enable it yourself, and this is not a
simple checkbox. <strong>That&#8217;s stupid.</strong> System76 should do this for you, but
whatever. Here are the simple steps to get full hibernate (suspend to disk)
support in your System76 Lemur Ultra.</p>

<h2>Enable Hibernation</h2>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tee</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>polkit-<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>localauthority<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">50</span>-local.d<span style="color: #000000; font-weight: bold;">/</span>com.ubuntu.enable-hibernate.pkla <span style="color: #cc0000; font-style: italic;">&lt;&lt;EOF<br />
[Enable hibernation]<br />
Identity=unix-user:*<br />
Action=org.freedesktop.upower.hibernate<br />
ResultActive=yes<br />
EOF</span></div></div>

<h2>Enable Resume</h2>

<p><em>No copypasta here. The format of <code>/etc/default/grub</code> and the lack of support
for sourcing other files makes it a poor candidate for that. Just edit the
file.</em></p>

<ol>
<li>Add this to <code>/etc/default/grub</code>: <code>GRUB_CMDLINE_LINUX="resume=/dev/sda5"</code></li>
<li><code>sudo update-grub</code></li>
</ol>

<p>That&#8217;s it! Yeah, it&#8217;s kind of stupid that System76 doesn&#8217;t configure this for
you before they ship the computer, but at least the hardware fully supports this
fairly fundamental but somehow rare convenience.</p>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2013/03/enable-hibernate-on-the-system76-lemur-ultra-lemu4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The &#8220;Easy Way&#8221; to Add Custom DNS Servers in Ubuntu</title>
		<link>http://splatoperator.com/2013/03/the-easy-way-to-add-custom-dns-servers-in-ubuntu/</link>
		<comments>http://splatoperator.com/2013/03/the-easy-way-to-add-custom-dns-servers-in-ubuntu/#comments</comments>
		<pubDate>Thu, 14 Mar 2013 19:04:15 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[dnsmasq]]></category>
		<category><![CDATA[lxc]]></category>
		<category><![CDATA[nameservers]]></category>
		<category><![CDATA[stupidity]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=528</guid>
		<description><![CDATA[Goal Just add a goddamned nameserver to Ubuntu. I have lxc, and I want to ssh to my containers without knowing their IPs or starting them in the foreground. Is that so hard?! Solution Install dnsmasq. sudo apt-get install -y &#8230; <a href="http://splatoperator.com/2013/03/the-easy-way-to-add-custom-dns-servers-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<h2>Goal</h2>

<p>Just add a goddamned nameserver to Ubuntu. I have <a href="http://lxc.sourceforge.net/">lxc</a>, and I want to ssh to my
containers without knowing their IPs or starting them in the foreground. Is that
so hard?!</p>

<h2>Solution</h2>

<p>Install <a href="http://www.thekelleys.org.uk/dnsmasq/doc.html">dnsmasq</a>.</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> <span style="color: #660033;">-y</span> dnsmasq</div></div>

<p>Add the DNS server. Call the file whatever you like. For my purposes, I&#8217;m adding my <a href="http://lxc.sourceforge.net/">lxc</a> DNS server, so I call it <code>lxc-dns</code>.</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tee</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dnsmasq.d<span style="color: #000000; font-weight: bold;">/</span>lxc-dns <span style="color: #cc0000; font-style: italic;">&lt;&lt;EOF<br />
server=10.3.0.1<br />
EOF</span></div></div>

<p>Restart dnsmasq</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>dnsmasq restart</div></div>

<p>&#8220;That&#8217;s it.&#8221; dnsmasq will notify <a href="http://packages.qa.debian.org/r/resolvconf.html">resolvconf</a> that you&#8217;re running a local caching DNS server, so just letting dnsmasq know what your nameservers are is sufficient to use them.</p>

<h2>Editor&#8217;s Note</h2>

<p>You may have noticed a lot of sarcastic quotes here. This is really, really sloppy and <strong>fucking stupid.</strong> Adding a DNS server didn&#8217;t used to mean running your own private caching DNS server. You used to add a line to a config file. I&#8217;m not saying that making a backend to maintain a database of DNS servers and enable notification and interoperation with other services is stupid (OK, maybe I am), but they could at least make it as simple as allowing you to append a custom IP to a file in <code>/etc/resolvconf/</code>! Seriously, <strong>what the fuck?!</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2013/03/the-easy-way-to-add-custom-dns-servers-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing XBMC on Ubuntu 12.04 on an Acer Aspire Revo 1600</title>
		<link>http://splatoperator.com/2012/11/installing-xbmc-on-ubuntu-12-04-on-an-acer-aspire-revo-1600/</link>
		<comments>http://splatoperator.com/2012/11/installing-xbmc-on-ubuntu-12-04-on-an-acer-aspire-revo-1600/#comments</comments>
		<pubDate>Sun, 25 Nov 2012 03:05:22 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[XBMC]]></category>
		<category><![CDATA[acer aspire]]></category>
		<category><![CDATA[gotchas]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ion le]]></category>
		<category><![CDATA[lirc]]></category>
		<category><![CDATA[logitech harmony]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[tearing]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xbmc]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=504</guid>
		<description><![CDATA[Install Nvidia Current Updates You want the Nvidia binary blob drivers to squeeze every bit of performance out of this Ion LE chipset so you can watch videos in 1080p on a $200 turd computer. sudo apt-get install -y nvidia-current-updates &#8230; <a href="http://splatoperator.com/2012/11/installing-xbmc-on-ubuntu-12-04-on-an-acer-aspire-revo-1600/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<h2>Install Nvidia Current Updates</h2>

<p>You want the Nvidia binary blob drivers to squeeze every bit of performance out
of this Ion LE chipset so you can watch videos in 1080p on a $200 turd
computer.</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> <span style="color: #660033;">-y</span> nvidia-current-updates</div></div>

<h2>Disable Compositing for Nvidia Display Drivers</h2>

<p>You want to disable compositing or the video will tear so very, very much. I&#8217;m
very thankful that I found <a href="http://bernaerts.dyndns.org/linux/218-ubuntu-precise-xbmc-revo" title="UBUNTU 12.04 - REVO 3610 AS A XBMC MEDIA CENTER WITH TV &amp; REMOTE">this article</a>. <a href="http://forum.xbmc.org/showthread.php?tid=107557&amp;pid=861131#pid861131" title="Tearing on NVIDIA - no need to disable Composite!">This forum post</a> says that you can
just toggle a setting in Compiz Config Settings Manager, but that didn&#8217;t work
for me.</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> nvidia-xconfig <span style="color: #660033;">--no-composite</span></div></div>

<p>Reboot or restart your display server.</p>

<h2>Install XBMC on Ubuntu the Right Way</h2>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:team-xbmc<span style="color: #000000; font-weight: bold;">/</span>ppa <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get update</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> <span style="color: #660033;">-y</span> xbmc</div></div>

<p>Now you can run XBMC by launching it with Dash or by typing <code>xbmc</code> at a prompt.</p>

<h2>Install lirc for Windows MCE USB IR receiver</h2>

<p>This is optional. I have a Windows Media Center Edition-style USB IR receiver
that I use with a Logitech Harmony remote. If you don&#8217;t do this step, the
remote will move the cursor in XBMC, but that&#8217;s pretty much it.</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> <span style="color: #660033;">-y</span> lirc</div></div>

<p>When prompted, select <strong>Windows Media Center Remote</strong>. When prompted for an IR
tranmitter, choose &#8220;none.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2012/11/installing-xbmc-on-ubuntu-12-04-on-an-acer-aspire-revo-1600/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickie: Fix Missing &#8220;Downloads&#8221; Icons in Chrome/Chromium</title>
		<link>http://splatoperator.com/2012/11/quickie-fix-missing-downloads-icons-in-chromechromium/</link>
		<comments>http://splatoperator.com/2012/11/quickie-fix-missing-downloads-icons-in-chromechromium/#comments</comments>
		<pubDate>Sat, 24 Nov 2012 23:42:34 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[quickies]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[chromium]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[quickie]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=488</guid>
		<description><![CDATA[Have you run across this bug? It&#8217;s not a huge deal, but in Ubuntu, you generally get broken icons on the Chrome/Chromium Downloads tab. There are related bug reports here and here, but I don&#8217;t see any movement on this. &#8230; <a href="http://splatoperator.com/2012/11/quickie-fix-missing-downloads-icons-in-chromechromium/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Have you run across this bug? It&#8217;s not a huge deal, but in Ubuntu, you generally get broken icons on the Chrome/Chromium Downloads tab.</p>

<div id="attachment_489" class="wp-caption alignnone" style="width: 920px"><a href="http://splatoperator.com/wordpress/wp-content/uploads/Downloads-icons.png"><img src="http://splatoperator.com/wordpress/wp-content/uploads/Downloads-icons.png" alt="Missing Chrome Downloads icons" title="Downloads icons" width="910" height="596" class="size-full wp-image-489" /></a><p class="wp-caption-text">Missing Chrome Downloads icons</p></div>

<p>There are related bug reports <a href="http://code.google.com/p/chromium/issues/detail?id=102211">here</a> and <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-icon-theme/+bug/883314">here</a>, but I don&#8217;t see any movement on this. The quick fix is to install <code>gnome-icon-theme-full</code></p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> <span style="color: #660033;">-y</span> gnome-icon-theme-full</div></div>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2012/11/quickie-fix-missing-downloads-icons-in-chromechromium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent Virtual Machines from Saving Network Interface udev Rules</title>
		<link>http://splatoperator.com/2012/11/prevent-virtual-machines-from-saving-network-interface-udev-rules/</link>
		<comments>http://splatoperator.com/2012/11/prevent-virtual-machines-from-saving-network-interface-udev-rules/#comments</comments>
		<pubDate>Tue, 13 Nov 2012 19:45:11 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[virtualization]]></category>
		<category><![CDATA[MAC address]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=479</guid>
		<description><![CDATA[I use a lot of VirtualBox VMs. A problem that I have frequently is that when cloning an Ubuntu VM and changing its MAC address is that it won&#8217;t be able to initialize the network (as seen in a previous &#8230; <a href="http://splatoperator.com/2012/11/prevent-virtual-machines-from-saving-network-interface-udev-rules/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I use a lot of VirtualBox VMs. A problem that I have frequently is that when cloning an Ubuntu VM and changing its MAC address is that it won&#8217;t be able to initialize the network (as seen in a <a href="http://splatoperator.com/2012/04/clone-ubuntu-vms-in-virtualbox/" title="Clone Ubuntu VMs in VirtualBox">previous post</a>). I found a permanent fix for this!</p>

<p><strong>Before</strong> you clone your VM, you can block the creation of the udev rule that remembers your MAC address/interface bindings.</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">rules</span>=<span style="color: #ff0000;">'/etc/udev/rules.d/70-persistent-net.rules'</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$rules</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$rules</span></div></div>

<p>That&#8217;s it! Clone away. Now that there is a directory where the udev rule is normally written, the rule won&#8217;t be written. It will just fail silently, and the bindings (e.g. MAC address 00:11:22:33:44:55 maps to eth0) will be generated dynamically upon boot. The MAC address won&#8217;t change, and the order of your interfaces won&#8217;t change, so there&#8217;s really no drawback.</p>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2012/11/prevent-virtual-machines-from-saving-network-interface-udev-rules/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Compacting a VMDK (Virtual Machine Disk Format image)</title>
		<link>http://splatoperator.com/2012/07/compacting-a-vmdk-virtual-machine-disk-format-image/</link>
		<comments>http://splatoperator.com/2012/07/compacting-a-vmdk-virtual-machine-disk-format-image/#comments</comments>
		<pubDate>Thu, 12 Jul 2012 19:00:43 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[finnix]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[vagrant]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vmdk]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[zerofree]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=457</guid>
		<description><![CDATA[Compacting a VMDK file (.vmdk) is a good idea if you want to share or reuse it, such as with Vagrant. If you&#8217;ve tinkered with your VM a bit, deleting cached files isn&#8217;t enough. The space in the filesystem is &#8230; <a href="http://splatoperator.com/2012/07/compacting-a-vmdk-virtual-machine-disk-format-image/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Compacting a VMDK file (.vmdk) is a good idea if you want to share or reuse it,
such as with <a href="http://vagrantup.com">Vagrant</a>. If you&#8217;ve tinkered with your VM a bit, deleting cached
files isn&#8217;t enough. The space in the filesystem is marked as free, but isn&#8217;t
erased. It still contains the data, so it doesn&#8217;t compress as well. Here, I&#8217;ll
describe how to zero that free space and shrink that image.</p>

<p>How much it helps depends on your disk content, but for what it&#8217;s worth, my
VMDK with an Ubuntu Maverick 64 install shrank from <strong>2.0GB to 1.6GB</strong>, and
gzipped they are now <strong>679MB and 425MB</strong>, respectively. That&#8217;s a nice savings
when you&#8217;re talking about shipping the image around between computers and using
it as a <a href="http://vagrantup.com/v1/docs/base_boxes.html">Vagrant base box</a> multiple times.</p>

<h2>Zero Free Space</h2>

<p>If you zero the free space, it can be efficiently compressed.</p>

<blockquote>
  <p>Note: If you can, defrag the volume. You can&#8217;t really defrag ext4 (you can,
  but it&#8217;s sketchy), so I&#8217;m not going into that.</p>
</blockquote>

<p>You want to use the VirtualBox GUI to change the boot media for your VM to a
lightweight live Linux like <a href="http://www.finnix.org">Finnix</a> and boot from it.</p>

<p>Then install zerofree</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get update</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get install</span> <span style="color: #660033;">-y</span> zerofree</div></div>

<p>Then zero the free space on your partition. Mine&#8217;s <em>sda1</em>, so it looks like</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> zerofree <span style="color: #660033;">-v</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1</div></div>

<p>Then shut down the VM</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> poweroff</div></div>

<h2>Clone the VMDK</h2>

<p>VirtualBox only lets you compact VDIs, but if we clone a VMDK we get a
compressed copy. So find your disk image</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$VirtualBox_VMs_dir</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$vm_dir</span></div></div>

<p>If you don&#8217;t have any snapshots, just</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">VBoxManage clonehd <span style="color: #007800;">$disk_name</span>.vmdk clone.vmdk</div></div>

<p>Otherwise, find the snapshot you want. I just want the newest one, so I</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lt</span> Snapshots</div></div>

<p>And I get something like this at the top (newest file is on top):</p>

<div class="codecolorer-container text railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-rw------- 1 force force 721092608 Jul 12 10:13 {11f18f3d-9a0b-4e98-b680-a108ac31a0aa}.vmdk</div></div>

<p>The <code>11f18f3d...</code> is the UUID. So I want to use that to clone the disk.</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">VBoxManage clonehd 11f18f3d-9a0b-4e98-b680-a108ac31a0aa clone.vmdk</div></div>

<h2>Attach the newly shrunk disk to the VM</h2>

<p>Just use the VirtualBox GUI to edit the VM and attach your newly cloned disk
instead of the original one. You&#8217;re done!</p>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2012/07/compacting-a-vmdk-virtual-machine-disk-format-image/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Render a template from a hash in Ruby</title>
		<link>http://splatoperator.com/2012/07/render-a-template-from-a-hash-in-ruby/</link>
		<comments>http://splatoperator.com/2012/07/render-a-template-from-a-hash-in-ruby/#comments</comments>
		<pubDate>Mon, 09 Jul 2012 16:48:00 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[context]]></category>
		<category><![CDATA[erb]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[instance_eval]]></category>
		<category><![CDATA[openstruct]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=447</guid>
		<description><![CDATA[A hash is a great way to manage a list of key/value pairs, and templates are a great way to render content. So here&#8217;s a simple way to render a template from a hash. template.erb My favorite color is &#60;%= &#8230; <a href="http://splatoperator.com/2012/07/render-a-template-from-a-hash-in-ruby/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A hash is a great way to manage a list of key/value pairs, and templates are a great way to render content. So here&#8217;s a simple way to render a template from a hash.</p>

<h2>template.erb</h2>

<div class="codecolorer-container text railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">My favorite color is &lt;%= favorite_color %&gt;.</div></div>

<h2>render.rb</h2>

<div class="codecolorer-container ruby railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="ruby codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'erb'</span><br />
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'ostruct'</span><br />
<br />
opts = OpenStruct.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#123;</span><br />
&nbsp; <span style="color:#ff3333; font-weight:bold;">:favorite_color</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> ARGV<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span><br />
<span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span><br />
<br />
template = <span style="color:#CC0066; font-weight:bold;">open</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'template.erb'</span>, <span style="color:#996600;">'r'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">|</span>f<span style="color:#006600; font-weight:bold;">|</span> f.<span style="color:#9900CC;">read</span><span style="color:#006600; font-weight:bold;">&#125;</span><br />
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#CC00FF; font-weight:bold;">ERB</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>template<span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">result</span><span style="color:#006600; font-weight:bold;">&#40;</span>opts.<span style="color:#9900CC;">instance_eval</span> <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#CC0066; font-weight:bold;">binding</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></div>

<p>So running</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ruby render.rb blue</div></div>

<p>will output this</p>

<div class="codecolorer-container text railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">My favorite color is blue.</div></div>

<p>Which is cool. The interesting parts (and the reason I&#8217;m writing this) are that you need to instantiate a new OpenStruct from your hash so that its members can be accessed as methods, and then you have to set the binding for ERB by saying <code>opts.instance_eval {binding}</code>. This runs <code>binding</code> in the context of the opts object, so then calls to methods like <code>favorite_color</code> made by ERB in this context will evaluate to the values of our hash.</p>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2012/07/render-a-template-from-a-hash-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clone Ubuntu VMs in VirtualBox</title>
		<link>http://splatoperator.com/2012/04/clone-ubuntu-vms-in-virtualbox/</link>
		<comments>http://splatoperator.com/2012/04/clone-ubuntu-vms-in-virtualbox/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 18:06:35 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[udev]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=413</guid>
		<description><![CDATA[Update: I found a permanent workaround for the udev ethernet interface problem. See this post. I installed Ubuntu from mini.iso and I want to make several copies. What are the potential pitfalls? Well, the only real problem is that if &#8230; <a href="http://splatoperator.com/2012/04/clone-ubuntu-vms-in-virtualbox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><em><strong>Update</strong>: I found a permanent workaround for the udev ethernet interface problem. See <a href="http://splatoperator.com/2012/11/prevent-virtual-machines-from-saving-network-interface-udev-rules/" title="Prevent Virtual Machines from Saving Network Interface udev Rules">this post</a>.</em></p>

<p>I installed Ubuntu from mini.iso and I want to make several copies. What are the potential pitfalls? Well, the only real problem is that if we&#8217;re not careful they&#8217;ll all have the same MAC address. There&#8217;s a checkbox to avoid this in VirtualBox,</p>

<div id="attachment_414" class="wp-caption alignnone" style="width: 616px"><a href="http://splatoperator.com/wordpress/wp-content/uploads/Reinitialize-the-MAC-address-checkbox.png"><img src="http://splatoperator.com/wordpress/wp-content/uploads/Reinitialize-the-MAC-address-checkbox.png" alt="Reinitialize the MAC address checkbox" title="Reinitialize the MAC address checkbox" width="606" height="390" class="size-full wp-image-414" /></a><p class="wp-caption-text">What a convenient checkbox!</p></div>

<p>which gets you halfway there, but when you boot your new system it will still remember that eth0 was that old MAC address. What&#8217;s worse is it will stall for over a minute while booting and tell you it&#8217;s waiting for network configuration&#8230;</p>

<div id="attachment_416" class="wp-caption alignnone" style="width: 652px"><a href="http://splatoperator.com/wordpress/wp-content/uploads/Waiting-up-to-60-more-seconds-for-network-configuration.png"><img src="http://splatoperator.com/wordpress/wp-content/uploads/Waiting-up-to-60-more-seconds-for-network-configuration.png" alt="Waiting up to 60 more seconds for network configuration" title="Waiting up to 60 more seconds for network configuration" width="642" height="260" class="size-full wp-image-416" /></a><p class="wp-caption-text">AAAAHHHHHHHHHHH!!!!</p></div>

<p><em><strong>Update</strong>: I found a permanent workaround for the udev ethernet interface problem. See <a href="http://splatoperator.com/2012/11/prevent-virtual-machines-from-saving-network-interface-udev-rules/" title="Prevent Virtual Machines from Saving Network Interface udev Rules">this post</a>.</em></p>

<p>The easiest way to get through this is just to wait it out. Eventually you&#8217;ll get a login prompt. When you do, log in. Now you want to edit your udev rules so that you&#8217;re newly generated MAC address maps to eth0. That&#8217;ll fix everything.</p>

<div class="codecolorer-container bash railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>udev<span style="color: #000000; font-weight: bold;">/</span>rules.d<span style="color: #000000; font-weight: bold;">/*</span>-persistent-net.rules</div></div>

<p>Mine looks like this</p>

<div class="codecolorer-container text railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># PCI device 0x8086:0x100e (e1000)<br />
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;08:00:27:11:7c:8b&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;<br />
<br />
# PCI device 0x8086:0x100e (e1000)<br />
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;08:00:27:03:8e:5a&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth1&quot;</div></div>

<p>I&#8217;m just going to delete the old eth0 entry (the first one) and change the name of the new one to eth0.</p>

<div class="codecolorer-container text railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># PCI device 0x8086:0x100e (e1000)<br />
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;08:00:27:03:8e:5a&quot;, ATTR{dev_id}==&quot;0x0&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;</div></div>

<p>A quick reboot and everything&#8217;s shiny. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2012/04/clone-ubuntu-vms-in-virtualbox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Depaginate Phoronix Articles</title>
		<link>http://splatoperator.com/2012/04/depaginate-phoronix-articles/</link>
		<comments>http://splatoperator.com/2012/04/depaginate-phoronix-articles/#comments</comments>
		<pubDate>Fri, 06 Apr 2012 21:26:15 +0000</pubDate>
		<dc:creator>force</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[quickies]]></category>
		<category><![CDATA[depaginate]]></category>
		<category><![CDATA[depagination]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[paginate]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[phoronix]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[user script]]></category>

		<guid isPermaLink="false">http://splatoperator.com/?p=403</guid>
		<description><![CDATA[I sketched this for Phoronix, but you could easily adapt it to any site that uses pagination. I think it&#8217;s an interesting problem, so if you want to see another site depaginated, just ask me in a comment and I&#8217;ll &#8230; <a href="http://splatoperator.com/2012/04/depaginate-phoronix-articles/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I sketched this for Phoronix, but you could easily adapt it to any site that uses pagination. I think it&#8217;s an interesting problem, so if you want to see another site depaginated, just ask me in a comment and I&#8217;ll check it out.</p>

<p>Here&#8217;s the script. It&#8217;s also available <a href="https://gist.github.com/2323037">as a Gist</a> if you want to tinker with it.</p>

<div class="codecolorer-container javascript railscasts sidewaysmilk" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #006600; font-style: italic;">/**<br />
&nbsp;* Depaginate Phoronix articles<br />
&nbsp;*<br />
&nbsp;* Script by Justin Force, 2012. Released to the public domain.<br />
&nbsp;*<br />
&nbsp;* Stick this in whatever user scripts you have. I keep an unpacked Chrome<br />
&nbsp;* extension. You could also use this with GreaseMonkey or something as long as<br />
&nbsp;* you load jQuery first.<br />
&nbsp;*/</span><br />
<br />
$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; $.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.phxcms_navigation_format a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/&amp;num=/</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/Next Page/</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> div <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;div&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; div.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">' #phxcms_content_phx'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; div.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.phxcms_navigation_format'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#phxcms_content_phx'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span>div<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://splatoperator.com/2012/04/depaginate-phoronix-articles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
