<?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>jon zobrist (dot) com &#187; tip</title>
	<atom:link href="http://www.jonzobrist.com/tag/tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonzobrist.com</link>
	<description>Unix, Linux, IT, Cloud, Meat</description>
	<lastBuildDate>Fri, 06 Jan 2012 18:59:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MCOD &#8211; 6.6.10 &#8211; Macbook Pro Core i5/Core i7 Battery Fix</title>
		<link>http://www.jonzobrist.com/2010/06/06/mcod-6-6-10-macbook-pro-core-i5core-i7-battery-fix/</link>
		<comments>http://www.jonzobrist.com/2010/06/06/mcod-6-6-10-macbook-pro-core-i5core-i7-battery-fix/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 17:48:36 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Mac Command of the Day]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[core i5]]></category>
		<category><![CDATA[core i7]]></category>
		<category><![CDATA[mac command of the day]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[macbook pro]]></category>
		<category><![CDATA[macbookpro]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/?p=135</guid>
		<description><![CDATA[Core i5/i7 Macbook Pro battery life problem description and fix.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F06%2F06%2Fmcod-6-6-10-macbook-pro-core-i5core-i7-battery-fix%2F' data-shr_title='MCOD+-+6.6.10+-+Macbook+Pro+Core+i5%2FCore+i7+Battery+Fix'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F06%2F06%2Fmcod-6-6-10-macbook-pro-core-i5core-i7-battery-fix%2F' data-shr_title='MCOD+-+6.6.10+-+Macbook+Pro+Core+i5%2FCore+i7+Battery+Fix'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you purchased a new <a title="Macbook Pro" href="http://www.apple.com/macbookpro/">Macbook Pro</a> with a Core i5 or Core i7 (The 15&#8243; or 17&#8243; ones for now) you probably expected the nice battery life they talk about on their site, when I bought this one it said 8-10 hours, but currently it says 8-9 hours for the 15&#8243;. Imagine my surprise when I routinely get 3 hours of battery life. Doing a quick Google search finds lots of people with the same complaints. If you dig into this a bit you will learn that these Macbook Pros have two graphics cards, one from NVIDIA that is fast, but power hungry, and one from Intel, that is slow but saves your battery.</p>
<p>The nice thing about this is your computer automatically handles which card to use, giving you the performance you need, and saving battery when it can.</p>
<p>In theory, this is great. In reality it&#8217;s a total joke, an EPIC FAIL on Apple&#8217;s part. You see, they switch based on which applications are running, guessing they need the graphics based on the libraries they load, it seems. This would be great if it was things like World of Warcraft or Photoshop, but Skype? Evernote? Give me a break!</p>
<p>You can go to power settings and disable automatic switching, however this sets it to ALWAYS use the Nvidia chipset, and gives you permanent short battery life.</p>
<p>In comes donation-ware graphics management tool <a title="gfxCardStatus" href="http://codykrieger.com/gfxCardStatus/">gfxCardStatus</a> written by Cody Kreiger.</p>
<ol>
<li>Download the zip file</li>
<li>Unzip and move gfxCardStatus to Applications folder</li>
<li>Run gfxCardStatus, you will see an icon on your menu bar with either an &#8216;n&#8217; or &#8216;i&#8217; to indicate when you&#8217;re running in Nvidia or Intel graphics mode. Intel will give good battery life (5-6 hours for my core i5 15&#8243;), and Nvidia will give 1990&#8242;s battery life (3-4 hours on the same core i5 15&#8243;).</li>
<li>Click the icon, change to Intel only. Enjoy better battery life!</li>
<li>Set calendar appointment for 1-2 weeks in the future to go back to Cody&#8217;s site and donate a dollar or two for his work.</li>
</ol>
<p>I plan to leave this on Intel only and see how both my battery life and performance is. I don&#8217;t play any games on my laptop, so I expect I won&#8217;t notice the difference.</p>
<div class="shr-publisher-135"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F06%2F06%2Fmcod-6-6-10-macbook-pro-core-i5core-i7-battery-fix%2F' data-shr_title='MCOD+-+6.6.10+-+Macbook+Pro+Core+i5%2FCore+i7+Battery+Fix'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F06%2F06%2Fmcod-6-6-10-macbook-pro-core-i5core-i7-battery-fix%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F06%2F06%2Fmcod-6-6-10-macbook-pro-core-i5core-i7-battery-fix%2F' data-shr_title='MCOD+-+6.6.10+-+Macbook+Pro+Core+i5%2FCore+i7+Battery+Fix'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2010/06/06/mcod-6-6-10-macbook-pro-core-i5core-i7-battery-fix/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>MCOD 5.11.10 &#8211; Clear network settings on a Mac in OS X</title>
		<link>http://www.jonzobrist.com/2010/05/11/clear-network-settings-on-a-mac-in-os-x-mcod-5-11-10/</link>
		<comments>http://www.jonzobrist.com/2010/05/11/clear-network-settings-on-a-mac-in-os-x-mcod-5-11-10/#comments</comments>
		<pubDate>Tue, 11 May 2010 17:30:00 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Mac Command of the Day]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/2010/05/11/clear-network-settings-on-a-mac-in-os-x-mcod-5-11-10/</guid>
		<description><![CDATA[I got a new MacBook pro, one of the core i5 ones, and transferred all of my data with time machine restore, which is absolutely awesome, btw. But my ethernet interface never worked! Being the IT guy I need my ethernet interface to work, so I searched online for someone else who had the same [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F05%2F11%2Fclear-network-settings-on-a-mac-in-os-x-mcod-5-11-10%2F' data-shr_title='MCOD+5.11.10+-+Clear+network+settings+on+a+Mac+in+OS+X'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F05%2F11%2Fclear-network-settings-on-a-mac-in-os-x-mcod-5-11-10%2F' data-shr_title='MCOD+5.11.10+-+Clear+network+settings+on+a+Mac+in+OS+X'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I got a new MacBook pro, one of the core i5 ones, and transferred all of my data with time machine restore, which is absolutely awesome, btw. But my ethernet interface never worked! Being the IT guy I need my ethernet interface to work, so I searched online for someone else who had the same problem. Unfortunately, everything I found was simple fixes for simple problems. So I made an appointment with the mac genius hoping they could solve my problem, and they did.</p>
<p>They went to my hard drive-&gt;Library-&gt;Preferences and deleted the folder there called &#8220;SystemConfiguration&#8221;<br />
Then rebooted, and viola, a working ethernet interface.</p>
<p>So, what must have happened to break mine, is when I restored my mac with time machine, it confused the network interfaces somewhere. The interface showed up, but always said &#8216;cable unplugged&#8217;. I had tried everything; deleting the interface in the network section of system preferences, configuring the interface with ifconfig in Terminal, creating multiple interfaces, rebooting, different cables, different networks, and different locations. The time machine had restored my network config folder and prevented OS X from correctly seeing the right interface.</p>
<p>The Mac genius said it can also help if you&#8217;re having problems staying connected to a wifi network.</p>
<p>Hope this helps!</p>
<p>Update 6/7/2010:</p>
<p><a title="Troubleshooting airport wireless problems" href="http://osxdaily.com/2009/12/22/mac-wireless-problems-guide-to-troubleshooting-airport-wireless-problems-on-your-mac/">Here</a> is a good article on troubleshooting your Mac OS X wireless networking at osxdaily.com</p>
<div class="shr-publisher-120"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F05%2F11%2Fclear-network-settings-on-a-mac-in-os-x-mcod-5-11-10%2F' data-shr_title='MCOD+5.11.10+-+Clear+network+settings+on+a+Mac+in+OS+X'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F05%2F11%2Fclear-network-settings-on-a-mac-in-os-x-mcod-5-11-10%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F05%2F11%2Fclear-network-settings-on-a-mac-in-os-x-mcod-5-11-10%2F' data-shr_title='MCOD+5.11.10+-+Clear+network+settings+on+a+Mac+in+OS+X'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2010/05/11/clear-network-settings-on-a-mac-in-os-x-mcod-5-11-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LCOD – 4.12.10 – Quick Mysqlreport to e-mail setup</title>
		<link>http://www.jonzobrist.com/2010/04/12/lcod-%e2%80%93-4-12-10-%e2%80%93-quick-mysqlreport-to-e-mail-setup/</link>
		<comments>http://www.jonzobrist.com/2010/04/12/lcod-%e2%80%93-4-12-10-%e2%80%93-quick-mysqlreport-to-e-mail-setup/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 00:31:57 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Command of the Day]]></category>
		<category><![CDATA[MySQL Server Support]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/?p=118</guid>
		<description><![CDATA[This will be a quick install to setup your server to e-mail you daily mysql reports using the cool mysqlreport application at hackmysql.com
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F04%2F12%2Flcod-%25e2%2580%2593-4-12-10-%25e2%2580%2593-quick-mysqlreport-to-e-mail-setup%2F' data-shr_title='LCOD+%E2%80%93+4.12.10+%E2%80%93+Quick+Mysqlreport+to+e-mail+setup'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F04%2F12%2Flcod-%25e2%2580%2593-4-12-10-%25e2%2580%2593-quick-mysqlreport-to-e-mail-setup%2F' data-shr_title='LCOD+%E2%80%93+4.12.10+%E2%80%93+Quick+Mysqlreport+to+e-mail+setup'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This will be a quick install to setup your server to e-mail you daily mysql reports using the cool mysqlreport application at <a title="MySQL Report" href="http://hackmysql.com/mysqlreport">hackmysql.com</a></p>
<p>As the user you want to set this up on, run the following commands.</p>
<p>(Note that I touch and then chmod og-rwx the .my.cnf file, since you&#8217;re putting your users mysql password in it, creating it and making it unreadable before editing is always a good idea.)</p>
<pre>wget http://hackmysql.com/scripts/mysqlreport
chmod uog+x mysqlreport
mkdir bin logs
mv mysqlreport bin/
touch ~/.my.cnf
chmod og-rwx ~/.my.cnf
vi ~/.my.cnf
</pre>
<p>Now, put in a client section like this in, you can find your sock file with grep sock /etc/my.cnf, or grep sock /etc/mysql/my.cnf</p>
<pre>[client]</pre>
<pre>user="root"</pre>
<pre>password="password"</pre>
<pre>socket=/var/run/mysqld/mysqld.sock</pre>
<p>Now, install perl&#8217;s DBD::MySQL</p>
<p>Debian/Ubuntu:</p>
<pre>sudo su</pre>
<pre>apt-get install libdbd-mysql-perl</pre>
<p>via CPAN/Other Linux/Generic BSD:</p>
<pre>perl -MCPAN -e shell</pre>
<p>Optional, update CPAN:</p>
<pre>install Bundle::CPAN</pre>
<pre>reload cpan</pre>
<p>(If there are errors on following some dependencies exit, and restart your CPAN shell, then start with install Bundle::CPAN)<br />
Install perl DBI</p>
<pre>install DBD::mysql
exit
</pre>
<p>Now, run it to test, you should see a bunch of text output</p>
<pre>~/bin/mysqlreport
</pre>
<p>Now, set it up to run from cron</p>
<pre>
crontab -e
</pre>
<p>Add a line like this (this will email to test@example.com a full report nightly at midnight, and put the last nights report in /home/USERNAME/logs/mysqlreport)</p>
<pre>
0 0 * * * /home/USERNAME/bin/mysqlreport --email test@example.com &gt; /home/USERNAME/logs/mysqlreport.log 2&gt;&amp;1
</pre>
<div class="shr-publisher-118"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F04%2F12%2Flcod-%25e2%2580%2593-4-12-10-%25e2%2580%2593-quick-mysqlreport-to-e-mail-setup%2F' data-shr_title='LCOD+%E2%80%93+4.12.10+%E2%80%93+Quick+Mysqlreport+to+e-mail+setup'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F04%2F12%2Flcod-%25e2%2580%2593-4-12-10-%25e2%2580%2593-quick-mysqlreport-to-e-mail-setup%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2010%2F04%2F12%2Flcod-%25e2%2580%2593-4-12-10-%25e2%2580%2593-quick-mysqlreport-to-e-mail-setup%2F' data-shr_title='LCOD+%E2%80%93+4.12.10+%E2%80%93+Quick+Mysqlreport+to+e-mail+setup'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2010/04/12/lcod-%e2%80%93-4-12-10-%e2%80%93-quick-mysqlreport-to-e-mail-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCOD &#8211; 5.9.07 &#8211; Updating CPAN in Perl</title>
		<link>http://www.jonzobrist.com/2007/05/09/lcod-5-9-07-updating-cpan-in-perl/</link>
		<comments>http://www.jonzobrist.com/2007/05/09/lcod-5-9-07-updating-cpan-in-perl/#comments</comments>
		<pubDate>Thu, 10 May 2007 05:35:59 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Command of the Day]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[CPAN]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/?p=75</guid>
		<description><![CDATA[Perl rocks, it&#8217;s easily my favorite programming language. One of the nice things about Perl is the CPAN (Comprehensive Perl Archive Network). Your Linux box has CPAN installed already, and to begin using it you should first update it. To do so run the commands just below. The first time you invoke CPAN it&#8217;ll launch [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F05%2F09%2Flcod-5-9-07-updating-cpan-in-perl%2F' data-shr_title='LCOD+-+5.9.07+-+Updating+CPAN+in+Perl+'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F05%2F09%2Flcod-5-9-07-updating-cpan-in-perl%2F' data-shr_title='LCOD+-+5.9.07+-+Updating+CPAN+in+Perl+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Perl rocks, it&#8217;s easily my favorite programming language. One of the nice things about Perl is the CPAN (Comprehensive Perl Archive Network). Your Linux box has CPAN installed already, and to begin using it you should first update it. To do so run the commands just below. The first time you invoke CPAN it&#8217;ll launch the configuration module, just hit enter until it gets into the part about which mirrors you want to use, it&#8217;ll have you pick geographic areas first, and then tell you to enter servers by number, separated by spaces. I usually put in about 20 servers, which looks like kinda this</p>
<p>30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10</p>
<p>#invoke perl&#8217;s CPAN shell (and first time configuration with)<br />
bash$ perl -MCPAN -e shell<br />
#once configuration is done, update CPAN, and then reload<br />
CPAN> install Bundle::CPAN<br />
CPAN> reload cpan</p>
<p>Now, head on over to CPAN and search for some cool new Perl modules to play with!</p>
<p>A great place to dive into the world of Perl is Perl.org</p>
<p>Also the Perl Monks is a good Perl site, and Use Perl is as well.</p>
<p>Make sure you have a correct build environment setup, on Ubuntu/Debian you need to install the build-essential package (sudo apt-get install build-essential)</p>
<div class="shr-publisher-75"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F05%2F09%2Flcod-5-9-07-updating-cpan-in-perl%2F' data-shr_title='LCOD+-+5.9.07+-+Updating+CPAN+in+Perl+'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F05%2F09%2Flcod-5-9-07-updating-cpan-in-perl%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F05%2F09%2Flcod-5-9-07-updating-cpan-in-perl%2F' data-shr_title='LCOD+-+5.9.07+-+Updating+CPAN+in+Perl+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2007/05/09/lcod-5-9-07-updating-cpan-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCOD &#8211; 3.12.07 &#8211; Speeding up your DNS queries</title>
		<link>http://www.jonzobrist.com/2007/03/12/lcod-3-12-07-speeding-up-your-dns-queries/</link>
		<comments>http://www.jonzobrist.com/2007/03/12/lcod-3-12-07-speeding-up-your-dns-queries/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 05:16:50 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Command of the Day]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/?p=58</guid>
		<description><![CDATA[I did some testing and OpenDNS is fast. To change to use OpenDNS instead of your own, or worse! your ISP&#8217;s crappy, poorly maintained dns server, you can follow the instructions here. http://opendns.com/start/ The basic info is to put in these 2 IP&#8217;s as your dns servers 208.67.222.222 208.67.220.220 On Linux/*BSD you&#8217;d put them in [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F03%2F12%2Flcod-3-12-07-speeding-up-your-dns-queries%2F' data-shr_title='LCOD+-+3.12.07+-+Speeding+up+your+DNS+queries+'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F03%2F12%2Flcod-3-12-07-speeding-up-your-dns-queries%2F' data-shr_title='LCOD+-+3.12.07+-+Speeding+up+your+DNS+queries+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><div><span>I did some testing and OpenDNS is fast. </span><br />
<span> </span><br />
<span> To change to use OpenDNS instead of your own, or worse! your ISP&#8217;s crappy, poorly maintained dns server, you can follow the instructions here. </span><br />
<span> </span><br />
<span> <a href="http://opendns.com/start/" target="_blank">http://opendns.com/start/</a> </span><br />
<span> </span><br />
<span> The basic info is to put in these 2 IP&#8217;s as your dns servers </span><br />
<span> </span><br />
<span> 208.67.222.222 </span><br />
<span> 208.67.220.220 </span><br />
<span> </span><br />
<span> On Linux/*BSD you&#8217;d put them in your /etc/resolv.conf file like this </span><br />
<span> </span><br />
<span> nameserver 208.67.222.222 </span><br />
<span> nameserver 208.67.220.220 </span><br />
<span> </span><br />
<span> If you&#8217;d like to double whammy your performance run a local cache, I use DJB&#8217;s djbdns dnscache in forwarding only mode, as described here. </span><br />
<span> </span><br />
<span> <a href="http://cr.yp.to/djbdns/run-cache-x-home.html" target="_blank">http://cr.yp.to/djbdns/run-cache-x-home.html</a> </span><br />
<span> </span><br />
<span> With the above IP&#8217;s in the @ file. </span><br />
<span> </span><br />
<span> Installing DJB&#8217;s stuff is cake, you can pretty much cut &amp; paste his instructions found here </span><br />
<span> </span><br />
<span> <a href="http://cr.yp.to/djbdns/install.html" target="_blank">http://cr.yp.to/djbdns/install.html</a> </span><br />
<span> </span><br />
<span> Of course you&#8217;ll need Daemontools, and ucspi, install instructions (cut &amp; pasteable) here </span><br />
<span> </span><br />
<span> <a href="http://cr.yp.to/daemontools/install.html" target="_blank">http://cr.yp.to/daemontools/install.html</a> </span><br />
<span> <a href="http://cr.yp.to/ucspi-tcp/install.html" target="_blank">http://cr.yp.to/ucspi-tcp/install.html</a> </span><br />
<span> </span><br />
<span> If you get compilation errors cuz DJB hasn&#8217;t fixed a bug in his code and some systems (lots of recent Linux systems), run these commands. </span><br />
<span> (run after you&#8217;ve extracted the archive, and cd&#8217;d into it&#8217;s directory, and run for EACH install.) You may get a no such file for the src one on some, but he mixes software locations, so just run em both. </span><br />
<span> </span><br />
<span> perl -pi -e &#8216;s/extern int errno\;/\#include &lt;errno.h&gt;/&#8217; * </span><br />
<span> perl -pi -e &#8216;s/extern int errno\;/\#include &lt;errno.h&gt;/&#8217; src/* </span><br />
<span> </span><br />
<span> Enjoy!</span></div>
<div class="shr-publisher-58"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F03%2F12%2Flcod-3-12-07-speeding-up-your-dns-queries%2F' data-shr_title='LCOD+-+3.12.07+-+Speeding+up+your+DNS+queries+'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F03%2F12%2Flcod-3-12-07-speeding-up-your-dns-queries%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F03%2F12%2Flcod-3-12-07-speeding-up-your-dns-queries%2F' data-shr_title='LCOD+-+3.12.07+-+Speeding+up+your+DNS+queries+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2007/03/12/lcod-3-12-07-speeding-up-your-dns-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCOD &#8211; 2.18.07 &#8211; Simple command line perl substitutions</title>
		<link>http://www.jonzobrist.com/2007/02/18/lcod-2-18-07-simple-command-line-perl-substitutions/</link>
		<comments>http://www.jonzobrist.com/2007/02/18/lcod-2-18-07-simple-command-line-perl-substitutions/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 05:15:10 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Command of the Day]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regular expression]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/?p=56</guid>
		<description><![CDATA[Ever have a list of things that you want to change all the same? Say you have an image directory and you want to make an html list of all the images in your directory? Perl to the rescue! first, make a file that lists all the images (we&#8217;re using *jpg, but you could do [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F18%2Flcod-2-18-07-simple-command-line-perl-substitutions%2F' data-shr_title='LCOD+-+2.18.07+-+Simple+command+line+perl+substitutions+'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F18%2Flcod-2-18-07-simple-command-line-perl-substitutions%2F' data-shr_title='LCOD+-+2.18.07+-+Simple+command+line+perl+substitutions+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><div><span>Ever have a list of things that you want to change all the same? Say you have an image directory and you want to make an html list of all the images in your directory? Perl to the rescue! </span><br />
<span> </span><br />
<span> first, make a file that lists all the images (we&#8217;re using *jpg, but you could do *gif, or *coolimages*, or just * for all files in the dir &#8211; note: all files in dir * with a redirect will catch the file you are redirecting to, and it will likely need to be removed) </span><br />
<span> </span><br />
<span> From the shell / command line, run: </span><br />
<span> </span><br />
<span> /bin/ls *jpg &gt; ourfiles </span><br />
<span> </span><br />
<span> Now the fun part! This will take a line like this </span><br />
<span> </span><br />
<span> picture1.jpg </span><br />
<span> </span><br />
<span> And make it look like this </span><br />
<span> &lt;a href=&#8221;picture1.jpg&#8221;&gt;&lt;img src=&#8221;picture1.jpg&#8221; border=&#8221;0&#8243;&gt;&lt;/a&gt; </span><br />
<span> </span><br />
<span> From the shell run / command line, run: </span><br />
<span> </span><br />
<span> perl -pi -e &#8216;s/^(.*)$/&lt;a href=\&#8221;$1\&#8221;&gt;&lt;img src=\&#8221;picture1.jpg\&#8221; border=\&#8221;0\&#8221;&gt;&lt;\/a&gt;/&#8217; ourfiles </span><br />
<span> </span><br />
<span> The basic pattern of this command is </span><br />
<span> </span><br />
<span> &#8216;s/SEARCH PATTERN REGEX/REPLACEMENT PATTERN/&#8217; </span><br />
<span> </span><br />
<span> The search pattern is a Regular Expression, and the Replacement Pattern needs to have any special characters escaped (including / $ # @ &#8220;) with a \ </span><br />
<span> </span><br />
<span> The Search Pattern we&#8217;re using is a simple one ^ for start of line, (.*) for . anything and * any number of times, with paranthesis around it to put it into the perl variable $1, and $ for end of line.</span></div>
<div class="shr-publisher-56"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F18%2Flcod-2-18-07-simple-command-line-perl-substitutions%2F' data-shr_title='LCOD+-+2.18.07+-+Simple+command+line+perl+substitutions+'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F18%2Flcod-2-18-07-simple-command-line-perl-substitutions%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F18%2Flcod-2-18-07-simple-command-line-perl-substitutions%2F' data-shr_title='LCOD+-+2.18.07+-+Simple+command+line+perl+substitutions+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2007/02/18/lcod-2-18-07-simple-command-line-perl-substitutions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCOD &#8211; 2.5.07 &#8211; Debian package management</title>
		<link>http://www.jonzobrist.com/2007/02/05/lcod-2-5-07-debian-package-management/</link>
		<comments>http://www.jonzobrist.com/2007/02/05/lcod-2-5-07-debian-package-management/#comments</comments>
		<pubDate>Tue, 06 Feb 2007 05:14:05 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Command of the Day]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/?p=54</guid>
		<description><![CDATA[This is all over the web, but for some inane reason I can never find it when I need it. List all packages installed in a Debian system, piped to more for readability dpkg -l &#124; more (dpkg dash lower case L pipe more) Seach installed packages for ones containing the word foobar dpkg -P [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F05%2Flcod-2-5-07-debian-package-management%2F' data-shr_title='LCOD+-+2.5.07+-+Debian+package+management+'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F05%2Flcod-2-5-07-debian-package-management%2F' data-shr_title='LCOD+-+2.5.07+-+Debian+package+management+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><div><span>This is all over the web, but for some inane reason I can never find it when I need it. </span><br />
<span> </span><br />
<span> List all packages installed in a Debian system, piped to more for readability </span><br />
<span> </span><br />
<span> dpkg -l | more </span><br />
<span> </span><br />
<span> (dpkg dash lower case L pipe more) </span><br />
<span> </span><br />
<span> Seach installed packages for ones containing the word foobar </span><br />
<span> </span><br />
<span> dpkg -P /*foobar/* </span><br />
<span> </span><br />
<span> This info from this site </span><br />
<span> <a href="http://electron.mit.edu/%7Egsteele/debian/" target="_blank">http://electron.mit.edu/~gsteele/debian/</a></span></div>
<div class="shr-publisher-54"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F05%2Flcod-2-5-07-debian-package-management%2F' data-shr_title='LCOD+-+2.5.07+-+Debian+package+management+'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F05%2Flcod-2-5-07-debian-package-management%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2007%2F02%2F05%2Flcod-2-5-07-debian-package-management%2F' data-shr_title='LCOD+-+2.5.07+-+Debian+package+management+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2007/02/05/lcod-2-5-07-debian-package-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCOD &#8211; 10.28.05 &#8211; Howto speed up RAID 1 rebuild w/links</title>
		<link>http://www.jonzobrist.com/2005/10/28/lcod-10-28-05-howto-speed-up-raid-1-rebuild-wlinks/</link>
		<comments>http://www.jonzobrist.com/2005/10/28/lcod-10-28-05-howto-speed-up-raid-1-rebuild-wlinks/#comments</comments>
		<pubDate>Sat, 29 Oct 2005 05:11:10 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Command of the Day]]></category>
		<category><![CDATA[md]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tweak]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/?p=50</guid>
		<description><![CDATA[This should be in EVERY linux RAID howto echo -n 500000 &#62; /proc/sys/dev/raid/speed_limit_max Because it defaults to sooo slow to fix raids.. and you can just turn it up&#8230; so lame that it&#8217;s not in every howto. It is in this howto http://togami.com/~warren/guides/remoteraidcrazies/ Which has a few steps I didn&#8217;t use, using Gentoo, but was [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F10%2F28%2Flcod-10-28-05-howto-speed-up-raid-1-rebuild-wlinks%2F' data-shr_title='LCOD+-+10.28.05+-+Howto+speed+up+RAID+1+rebuild+w%2Flinks+'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F10%2F28%2Flcod-10-28-05-howto-speed-up-raid-1-rebuild-wlinks%2F' data-shr_title='LCOD+-+10.28.05+-+Howto+speed+up+RAID+1+rebuild+w%2Flinks+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span>This should be in EVERY linux RAID howto</p>
<p>echo -n 500000 &gt; /proc/sys/dev/raid/speed_limit_max</p>
<p>Because it defaults to sooo slow to fix raids.. and you can just turn it up&#8230; so lame that it&#8217;s not in every howto.</p>
<p>It is in this howto <a href="http://togami.com/%7Ewarren/guides/remoteraidcrazies/" target="_blank">http://togami.com/~warren/guides/remoteraidcrazies/</a></p>
<p>Which has a few steps I didn&#8217;t use, using Gentoo, but was a great walkthrough&#8230;</span></p>
<div class="shr-publisher-50"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F10%2F28%2Flcod-10-28-05-howto-speed-up-raid-1-rebuild-wlinks%2F' data-shr_title='LCOD+-+10.28.05+-+Howto+speed+up+RAID+1+rebuild+w%2Flinks+'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F10%2F28%2Flcod-10-28-05-howto-speed-up-raid-1-rebuild-wlinks%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F10%2F28%2Flcod-10-28-05-howto-speed-up-raid-1-rebuild-wlinks%2F' data-shr_title='LCOD+-+10.28.05+-+Howto+speed+up+RAID+1+rebuild+w%2Flinks+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2005/10/28/lcod-10-28-05-howto-speed-up-raid-1-rebuild-wlinks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCOD &#8211; 5.9.05 &#8211; mounting cdrom (iso) images transparently</title>
		<link>http://www.jonzobrist.com/2005/05/09/lcod-5-9-05-mounting-cdrom-iso-images-transparently/</link>
		<comments>http://www.jonzobrist.com/2005/05/09/lcod-5-9-05-mounting-cdrom-iso-images-transparently/#comments</comments>
		<pubDate>Tue, 10 May 2005 05:07:03 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Command of the Day]]></category>
		<category><![CDATA[cdrom]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[loopback]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/?p=46</guid>
		<description><![CDATA[mount -o loop /path/to/cdimage.iso /mnt/imageX that&#8217;s it, of course you&#8217;ll need a kernel with loop support, but most modern linux&#8217;s have this built in. This lets you save a CDR and get faster access to CD media you&#8217;ve downloaded. I use this at work to install Oracle from the hard drive remotely instead of having [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F09%2Flcod-5-9-05-mounting-cdrom-iso-images-transparently%2F' data-shr_title='LCOD+-+5.9.05+-+mounting+cdrom+%28iso%29+images+transparently+'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F09%2Flcod-5-9-05-mounting-cdrom-iso-images-transparently%2F' data-shr_title='LCOD+-+5.9.05+-+mounting+cdrom+%28iso%29+images+transparently+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span>mount -o loop /path/to/cdimage.iso /mnt/imageX</p>
<p>that&#8217;s it, of course you&#8217;ll need a kernel with loop support, but most modern linux&#8217;s have this built in.</p>
<p>This lets you save a CDR and get faster access to CD media you&#8217;ve downloaded. I use this at work to install Oracle from the hard drive remotely instead of having to be on side swapping CDROM&#8217;s.</p>
<p>Also, if you have a CD that you&#8217;d rather have an iso, here&#8217;s how to rip iso&#8217;s easy like..</p>
<p>dd if=/dev/cdroms/cdrom0 of=/path/to/cdimage.iso</p>
<p>you may went to grep cdrom /etc/fstab to see what the device is of your cdrom. Also, I&#8217;ve had some problems with this failing with copy protected type cdroms, sometimes if you mount it first it works better, sometimes worse.</span></p>
<div class="shr-publisher-46"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F09%2Flcod-5-9-05-mounting-cdrom-iso-images-transparently%2F' data-shr_title='LCOD+-+5.9.05+-+mounting+cdrom+%28iso%29+images+transparently+'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F09%2Flcod-5-9-05-mounting-cdrom-iso-images-transparently%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F09%2Flcod-5-9-05-mounting-cdrom-iso-images-transparently%2F' data-shr_title='LCOD+-+5.9.05+-+mounting+cdrom+%28iso%29+images+transparently+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2005/05/09/lcod-5-9-05-mounting-cdrom-iso-images-transparently/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LCOD &#8211; 5.2.05 &#8211; Removing ^M from WINDOWS text files</title>
		<link>http://www.jonzobrist.com/2005/05/02/lcod-5-2-05-removing-m-from-windows-text-files/</link>
		<comments>http://www.jonzobrist.com/2005/05/02/lcod-5-2-05-removing-m-from-windows-text-files/#comments</comments>
		<pubDate>Tue, 03 May 2005 05:06:10 +0000</pubDate>
		<dc:creator>Jon Zobrist</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Command of the Day]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[vi]]></category>

		<guid isPermaLink="false">http://jonzobrist.com/?p=44</guid>
		<description><![CDATA[You get a file with ^M at the end of every freaking line, and open it up in vi and want to just rip off the last line This you don&#8217;t type ^ you hit CONTROL. :%s/^V^M// so you type :%s/CONTROL-V CONTROL-M//ENTER ALSO: You get a file with ^M at the end of every freaking [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F02%2Flcod-5-2-05-removing-m-from-windows-text-files%2F' data-shr_title='LCOD+-+5.2.05+-+Removing+%5EM+from+WINDOWS+text+files+'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F02%2Flcod-5-2-05-removing-m-from-windows-text-files%2F' data-shr_title='LCOD+-+5.2.05+-+Removing+%5EM+from+WINDOWS+text+files+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><div><span>You get a file with ^M at the end of every freaking line, and open it up in vi and want to just rip off the last line </span><br />
<span> </span><br />
<span> This you don&#8217;t type ^ you hit CONTROL. </span><br />
<span> </span><br />
<span> :%s/^V^M// </span><br />
<span> </span><br />
<span> so you type </span><br />
<span> :%s/CONTROL-V CONTROL-M//ENTER</span><br />
<span> </span><br />
<span> </span><br />
<span> ALSO:</span><br />
<span> </span><span>You get a file with ^M at the end of every freaking line, and open it up in vi and want to just rip off the last line </span><br />
<span> </span><br />
<span> This you don&#8217;t type ^ you hit CONTROL. </span><br />
<span> </span><br />
<span> :%s/^V^M// </span><br />
<span> </span><br />
<span> so you type </span><br />
<span> :%s/CONTROL-V CONTROL-M//ENTER</span></div>
<div class="shr-publisher-44"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F02%2Flcod-5-2-05-removing-m-from-windows-text-files%2F' data-shr_title='LCOD+-+5.2.05+-+Removing+%5EM+from+WINDOWS+text+files+'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F02%2Flcod-5-2-05-removing-m-from-windows-text-files%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.jonzobrist.com%2F2005%2F05%2F02%2Flcod-5-2-05-removing-m-from-windows-text-files%2F' data-shr_title='LCOD+-+5.2.05+-+Removing+%5EM+from+WINDOWS+text+files+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jonzobrist.com/2005/05/02/lcod-5-2-05-removing-m-from-windows-text-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

