<?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>HyperBBQ &#187; Tips and Tricks</title>
	<atom:link href="http://www.hyperbbq.com/index.php/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hyperbbq.com</link>
	<description>The trials and tribulations of two college guys on a quest to conquer this thing called life</description>
	<lastBuildDate>Sat, 01 Aug 2009 02:04:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Packaging An Entire Gentoo System</title>
		<link>http://www.hyperbbq.com/index.php/2009/07/31/packaging-an-entire-gentoo-system/</link>
		<comments>http://www.hyperbbq.com/index.php/2009/07/31/packaging-an-entire-gentoo-system/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 02:04:29 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[equery]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[quickpkg]]></category>
		<category><![CDATA[while]]></category>

		<guid isPermaLink="false">http://www.hyperbbq.com/?p=111</guid>
		<description><![CDATA[Just a tip as I needed to build binary packages for all the installed packages on a gentoo box:
equery list &#124; cut -d&#8217; &#8216; -f3 &#124; while read f; do quickpkg &#8220;=${f}&#8221;; done
It&#8217;s a giant hack, but it gets the job done.
]]></description>
			<content:encoded><![CDATA[<p>Just a tip as I needed to build binary packages for all the installed packages on a gentoo box:</p>
<blockquote><p>equery list | cut -d&#8217; &#8216; -f3 | while read f; do quickpkg &#8220;=${f}&#8221;; done</p></blockquote>
<p>It&#8217;s a giant hack, but it gets the job done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperbbq.com/index.php/2009/07/31/packaging-an-entire-gentoo-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How ssh-agent Works on OS X 10.5</title>
		<link>http://www.hyperbbq.com/index.php/2008/05/13/how-ssh-agent-works-on-os-x-105/</link>
		<comments>http://www.hyperbbq.com/index.php/2008/05/13/how-ssh-agent-works-on-os-x-105/#comments</comments>
		<pubDate>Tue, 13 May 2008 21:26:41 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh-agent]]></category>

		<guid isPermaLink="false">http://www.hyperbbq.com/?p=105</guid>
		<description><![CDATA[This post discusses how ssh-agent works on OS X Leopard. Very informative.
http://www.dribin.org/dave/blog/archives/2007/11/28/ssh_agent_leopard/
]]></description>
			<content:encoded><![CDATA[<p>This post discusses how ssh-agent works on OS X Leopard. Very informative.</p>
<p><a href="http://www.dribin.org/dave/blog/archives/2007/11/28/ssh_agent_leopard/" onclick="pageTracker._trackPageview('/outgoing/www.dribin.org/dave/blog/archives/2007/11/28/ssh_agent_leopard/?referer=');">http://www.dribin.org/dave/blog/archives/2007/11/28/ssh_agent_leopard/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperbbq.com/index.php/2008/05/13/how-ssh-agent-works-on-os-x-105/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rdiff-backup on OS X</title>
		<link>http://www.hyperbbq.com/index.php/2008/05/13/rdiff-backup-on-os-x/</link>
		<comments>http://www.hyperbbq.com/index.php/2008/05/13/rdiff-backup-on-os-x/#comments</comments>
		<pubDate>Tue, 13 May 2008 08:50:28 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[rdiff-backup]]></category>

		<guid isPermaLink="false">http://www.hyperbbq.com/?p=103</guid>
		<description><![CDATA[Short and sweet
Download my script to automate rdiff-backup installation on OS X.
Longer version with background
I use rdiff-backup to keep all my systems backed up. Rdiff-backup keeps incremental changes and permission information, and only transmits changes over the network. It&#8217;s great for automated remote backups. All my Linux systems backup at least once a night, some [...]]]></description>
			<content:encoded><![CDATA[<h3>Short and sweet</h3>
<p>Download my <a href="http://www.hyperbbq.com/wp-content/uploads/2008/05/install-rdiff-backup.sh">script to automate rdiff-backup installation</a> on OS X.</p>
<h3>Longer version with background</h3>
<p>I use <a href="http://www.nongnu.org/rdiff-backup/" onclick="pageTracker._trackPageview('/outgoing/www.nongnu.org/rdiff-backup/?referer=');">rdiff-backup</a> to keep all my systems backed up. Rdiff-backup keeps incremental changes and permission information, and only transmits changes over the network. It&#8217;s great for automated remote backups. All my Linux systems backup at least once a night, some several times daily to offsite locations via consumer-class internet connections. The first backup is painful if you have a lot of data, but after that only differences have to go so things are pretty smooth.<span id="more-103"></span></p>
<p>I decided I want to run remote backups from my MacBook Pro even during those rare times when I&#8217;m running OS X. Time Machine doesn&#8217;t support remote destinations natively (and requires much more space because it&#8217;s not incremental). Getting rdiff-backup on OS X is a little tricky. According to rdiff-backup&#8217;s website both DarwinPorts and Fink have packages for rdiff-backup, which is fine and dandy but I have neither installed. I&#8217;d rather not add that much bulk to my system just to get rdiff-backup. I also like to match the version I&#8217;m running on my Linux systems, and DarwinPorts/Fink seem to lag behind the latest releases.</p>
<p>Foreseeing the need to deploy rdiff-backup on the Macs at work as well, I created the script below to automate installation of rdiff-backup from source and allow specification of a particular version. I&#8217;m releasing it as is, tested only by myself. If you find it useful or have suggestions, please let me know. (Comment below). You can download the script via the link above.</p>
<pre>#!/bin/bash
# Rdiff-backup installation script for OS X 10.5.1
#
# Version 0.1
#
# Changelog:
# 2008/05/14 - Initial version - Aaron &lt;aaron@xxxxxxxx&gt;
#

# Define which versions of the software packages we want.
# Note that librsync version 0.9.7 requires a patch for 4GB+ file sizes.
RDIFF_VERSION="1.1.12"
XATTR_VERSION="0.4"
LIBRSYNC_VERSION="0.9.7"

# Define installation prefix for librsync. Python packages are installed with prefix=/
PREFIX="/usr/local"

# Exit on errors
set -o errexit
# Exit if using unset variable
set -o nounset

# Download URIs
RDIFF_URI="http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-${RDIFF_VERSION}.tar.gz"
XATTR_URI="http://pypi.python.org/packages/source/x/xattr/xattr-0.4.tar.gz"
LIBRSYNC_URI="http://downloads.sourceforge.net/librsync/librsync-${LIBRSYNC_VERSION}.tar.gz"
LIBRSYNC_PATCH_URI="https://sourceforge.net/tracker/download.php?group_id=56125&amp;atid=479441&amp;file_id=169866&amp;aid=1439412"

# Download the necessary sources
curl -L -O "${RDIFF_URI}"
curl -L -O "${XATTR_URI}"
curl -L -O "${LIBRSYNC_URI}"
[[ "$LIBRSYNC_VERSION" == "0.9.7" ]] &amp;&amp; curl --insecure -L -o librsync-4gbpatch.patch "${LIBRSYNC_PATCH_URI}"

# librsync
tar -zxvf librsync-${LIBRSYNC_VERSION}.tar.gz
cd librsync-${LIBRSYNC_VERSION}
[[ "$LIBRSYNC_VERSION" == "0.9.7" ]] &amp;&amp; patch -i ../librsync-4gbpatch.patch
./configure --prefix="${PREFIX}"
make
sudo make install
cd ..

# xattr
tar -zxvf xattr-${XATTR_VERSION}.tar.gz
cd xattr-${XATTR_VERSION}
python setup.py build
sudo python setup.py install
cd ..

# Rdiff-backup
tar -zxvf rdiff-backup-${RDIFF_VERSION}.tar.gz
cd rdiff-backup-${RDIFF_VERSION}
python setup.py build
sudo python setup.py install
cd ..

echo -e "\n\nInstallation complete!"
echo "I've left all the temporary files in this directory in case you want to uninstsall the software later."
echo "Happy rdiff-backuping!"</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperbbq.com/index.php/2008/05/13/rdiff-backup-on-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Six Dumbest Ideas in Computer Security</title>
		<link>http://www.hyperbbq.com/index.php/2008/05/12/the-six-dumbest-ideas-in-computer-security/</link>
		<comments>http://www.hyperbbq.com/index.php/2008/05/12/the-six-dumbest-ideas-in-computer-security/#comments</comments>
		<pubDate>Tue, 13 May 2008 06:31:28 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Brain Food]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.hyperbbq.com/?p=102</guid>
		<description><![CDATA[A bit dated, but still a good read with thought-provoking ideas about things not to do in the name of security.


Default Permit
Enumerating Badness
Penetrate and Patch
Hacking is Cool
Educating Users
Action is Better Than Inaction





http://www.ranum.com/security/computer_security/editorials/dumb/
]]></description>
			<content:encoded><![CDATA[<p>A bit dated, but still a good read with thought-provoking ideas about things not to do in the name of security.</p>
<blockquote>
<ol>
<li>Default Permit</li>
<li>Enumerating Badness</li>
<li>Penetrate and Patch</li>
<li>Hacking is Cool</li>
<li>Educating Users</li>
<li>Action is Better Than Inaction</li>
</ol>
</blockquote>
<blockquote>
<ol></ol>
</blockquote>
<p><a href="http://www.ranum.com/security/computer_security/editorials/dumb/" onclick="pageTracker._trackPageview('/outgoing/www.ranum.com/security/computer_security/editorials/dumb/?referer=');">http://www.ranum.com/security/computer_security/editorials/dumb/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperbbq.com/index.php/2008/05/12/the-six-dumbest-ideas-in-computer-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Sleep Mode on Portable Macs</title>
		<link>http://www.hyperbbq.com/index.php/2008/04/26/fixing-sleep-mode-on-portable-macs/</link>
		<comments>http://www.hyperbbq.com/index.php/2008/04/26/fixing-sleep-mode-on-portable-macs/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 11:11:51 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.hyperbbq.com/?p=101</guid>
		<description><![CDATA[As discussed in the Macworld article Set newer portable Macs&#8217; sleep mode, it is possible to disable the copying of RAM onto disk when you put a MacBook or MacBook Pro to sleep. I&#8217;ve found the recovery from sleep to be more reliable with this feature disabled. Going to sleep also takes much less time.
I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>As discussed in the Macworld article <a href="http://www.macworld.com/article/53471/2006/10/sleepmode.html" onclick="pageTracker._trackPageview('/outgoing/www.macworld.com/article/53471/2006/10/sleepmode.html?referer=');">Set newer portable Macs&#8217; sleep mode</a>, it is possible to disable the copying of RAM onto disk when you put a MacBook or MacBook Pro to sleep. I&#8217;ve found the recovery from sleep to be more reliable with this feature disabled. Going to sleep also takes much less time.</p>
<p>I&#8217;ve included the relevant portions of the article below for the curious. For the impatient, running the following commands in Terminal will change sleep mode to RAM-only, and remove the memory image file:</p>
<pre>sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage</pre>
<p><span id="more-101"></span></p>
<blockquote><p><strong>Check the current setup</strong></p>
<p>After you launch Terminal, the first step is to determine which sleep mode your Mac is currently using (in case you wish to go back to it). You can both view and change the sleep mode using the Unix program <tt>pmset</tt>. To see your current settings, type 	<tt>pmset -g | grep hibernatemode</tt>.  You should see something like this:</p>
<pre>	$ pmset -g | grep hibernatemode

hibernatemode  3</pre>
<p>Great, so your machine is using mode 	<tt>3</tt>, whatever that might be. Well, thanks to the documentation for the handy 	<a href="http://deepsleep.free.fr/" onclick="pageTracker._trackPageview('/outgoing/deepsleep.free.fr/?referer=');">Deep Sleep</a> Dashboard widget, which puts your machine immediately into hibernation mode (so you don’t have to yank all the power sources to invoke it), we can tell exactly which mode is which:</p>
<div id="articleText">
<li> <tt>0</tt> &#8211; Old style sleep mode, with RAM powered on while sleeping, safe sleep disabled, and super-fast wake.</li>
<li> <tt>1</tt> &#8211; Hibernation mode, with RAM contents written to disk, system totally shut down while “sleeping,” and slower wake up, due to reading the contents of RAM off the hard drive.</li>
<li> <tt>3</tt> &#8211; The default mode on machines introduced since about fall 2005. RAM is powered on while sleeping, but RAM contents are also written to disk before sleeping. In the event of total power loss, the system enters hibernation mode automatically.</li>
<li> <tt>5</tt> &#8211; This is the same as mode 	<tt>1</tt>, but it’s for those using secure virtual memory (in System Preferences -&gt; Security).</li>
<li> <tt>7</tt> &#8211; This is the same as mode 	<tt>3</tt>, but it’s for those using secure virtual memory.</li>
<p>Once you see which mode you’re presently using, make a note of it. You could do this in one step, actually, with a command like this:</p>
<pre>sudo pmset -g | grep hibernatemode &gt; ~/Desktop/current_mode.txt</pre>
<p>That will take the output of the 	<tt>pmset</tt> command, strip out everything other than the 	<tt>hibernatemode</tt> value, and then dump the result into a file on your desktop named 	<tt>current_mode.txt</tt>. Save this file for future use.</p>
<p><strong>Note:</strong> I’m being overly cautious here on purpose. The reality is that, unless you’ve messed with this setting before, your Mac will either be in mode <tt>0</tt> (in which case, this tip doesn’t matter, as your Mac is using old-style sleep), or mode 	<tt>3</tt> or 	<tt>7</tt> (the default for machines shipped since last fall). Saving a text file to remember a 	<tt>3</tt> or a 	<tt>7</tt> is really overdoing things, but at least you won’t be able to say you don’t remember which mode your machine was in.</p>
<p><strong>Change the sleep mode setting</strong></p>
<p>To change your sleep mode, you use 	<tt>pmset</tt> again, providing the variable and value you wish to assign. So to return to the old style sleep mode (which is mode 	<tt>0</tt> from the above list), enter this command:</p>
<pre>sudo pmset -a hibernatemode 0</pre>
<p>Press Return, and you’ll be asked for your password. Provide it, and your sleep mode has been changed. If you ever wish to go back to your previous setting, just repeat the above command, but replace <tt>0</tt> with the value from your 	<tt>current_mode.txt</tt> file.</p>
<p>And yes, this means you can also set your machine to always go directly into hibernation mode by running the above command with 	<tt>1</tt> at the end. I find it much simpler, though, to use the Deep Sleep widget linked above—and the widget also returns the 	<tt>hibernatemode</tt> setting to its prior value, which means that you can use the widget for hibernation, and still enter normal sleep mode when you simply close the lid.</p>
<p>Note that restarting is not required for these changes to take effect.</p>
<p><strong>Recover some drive space</strong></p>
<p>If your machine was previously set to mode 	<tt>3</tt> (or 	<tt>7</tt> ) and you’ve reverted to the old style sleep mode, you’ve got one more step to take: recover the drive space used up by the copy of your system’s RAM, which was created the last time you slept the machine prior to making the switch. In Terminal, enter these two commands, pressing Return after each and providing your password when asked:</p>
<blockquote>
<pre>	cd /var/vm

sudo rm sleepimage</pre>
</blockquote>
<p>If you ever return to the new style sleep mode, the 	<tt>sleepimage</tt> file will be automatically recreated when you execute the 	<tt>sudo pmset</tt> command—yes, it creates the file as soon as you execute the command, not the first time you put the machine to sleep.</p>
</div>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperbbq.com/index.php/2008/04/26/fixing-sleep-mode-on-portable-macs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saying &#8220;No To All&#8221; In Windows XP</title>
		<link>http://www.hyperbbq.com/index.php/2008/04/13/saying-no-to-all-in-windows-xp/</link>
		<comments>http://www.hyperbbq.com/index.php/2008/04/13/saying-no-to-all-in-windows-xp/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 05:05:57 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://www.hyperbbq.com/?p=92</guid>
		<description><![CDATA[Apparently it&#8217;s possible to get that missing &#8220;No to all&#8221; action in Windows XP. Just hold shift and click No on the overwrite confirmation dialog.
http://www.online-tech-tips.com/cool-websites/windows-no-to-all/
]]></description>
			<content:encoded><![CDATA[<p>Apparently it&#8217;s possible to get that missing &#8220;No to all&#8221; action in Windows XP. Just hold shift and click No on the overwrite confirmation dialog.</p>
<p><a title="http://www.online-tech-tips.com/cool-websites/windows-no-to-all/" href="http://www.online-tech-tips.com/cool-websites/windows-no-to-all/" onclick="pageTracker._trackPageview('/outgoing/www.online-tech-tips.com/cool-websites/windows-no-to-all/?referer=');">http://www.online-tech-tips.com/cool-websites/windows-no-to-all/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperbbq.com/index.php/2008/04/13/saying-no-to-all-in-windows-xp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
