<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3" -->
<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/"
	>

<channel>
	<title>Logjamming.com</title>
	<link>http://www.logjamming.com</link>
	<description>Affordable hosting for everyone.</description>
	<pubDate>Tue, 25 Mar 2008 17:22:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3</generator>
	<language>en</language>
			<item>
		<title>DDoS Attack</title>
		<link>http://www.logjamming.com/logjamming/2008/03/25/ddos-attack/</link>
		<comments>http://www.logjamming.com/logjamming/2008/03/25/ddos-attack/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 17:22:07 +0000</pubDate>
		<dc:creator>brian</dc:creator>
		
		<category><![CDATA[Logjamming]]></category>

		<category><![CDATA[Outages]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/logjamming/2008/03/25/ddos-attack/</guid>
		<description><![CDATA[So, some of you may have noticed a slowdown in service the past few days.  Thats because we&#8217;re fighting off a DDoS attack.  It seems that shortly after posting a scathing anti-scientologist post, our friends over at Killoggs (http://www.killoggs.com) became the target of a distributed denial of service attack.  It&#8217;s been going [...]]]></description>
			<content:encoded><![CDATA[<p>So, some of you may have noticed a slowdown in service the past few days.  Thats because we&#8217;re fighting off a DDoS attack.  It seems that shortly after posting a scathing anti-scientologist post, our friends over at Killoggs (<a href="http://www.killoggs.com">http://www.killoggs.com</a>) became the target of a distributed denial of service attack.  It&#8217;s been going on for about 5 days now and we&#8217;re doing what we can to abate it.  Got questions, contact support!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/logjamming/2008/03/25/ddos-attack/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sed vs Tail Showdown</title>
		<link>http://www.logjamming.com/logjamming/2008/02/28/sed-vs-tail-showdown/</link>
		<comments>http://www.logjamming.com/logjamming/2008/02/28/sed-vs-tail-showdown/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 18:36:59 +0000</pubDate>
		<dc:creator>brian</dc:creator>
		
		<category><![CDATA[Geek]]></category>

		<category><![CDATA[Logjamming]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/logjamming/2008/02/28/sed-vs-tail-showdown/</guid>
		<description><![CDATA[Today I was presented with a problem.  A colleague of mine did a MySQL dump on a database.  The resulting MySQL dump file was 40GB.  Problem is, he forgot to tell mysqldump to leave out the drop/create table statements.  Here&#8217;s the rub:
What is the most efficient way to remove the first [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was presented with a problem.  A colleague of mine did a MySQL dump on a database.  The resulting MySQL dump file was 40GB.  Problem is, he forgot to tell mysqldump to leave out the drop/create table statements.  Here&#8217;s the rub:</p>
<p>What is the most efficient way to remove the first 43 lines of text from a 40GB text file?</p>
<p>&#8220;Surely there must be a simple *nix utility to do this.&#8221; we thought.  My first guess was simple:</p>
<p>me: &#8220;Just use sed and tell it to delete the first 43 lines.  Simple.&#8221;</p>
<p>colleague 1: &#8220;But won&#8217;t the regex engine be very inefficient for that?&#8221;</p>
<p>colleague 2: &#8220;Meh, I think sed is the right tool for the job.&#8221;</p>
<p>Now at this point we have a square off.  Colleague 2 feels that the inclusion of the regex engine is simply too much overhead and is like bringing a bazooka to a knife fight.  So they start to look around and I start doing some tests with a 1.5GB MySQL dump from <a href="http://www.killoggs.com">Killoggs</a>.  Immediately, I see that it&#8217;s trying to create a temp file.  If it&#8217;s creating a temp file, then that means it&#8217;s going to either create the temp file and rename it or create the temp file and copy it.  Neither of those are especially good solutions because it will result in (at least) a lot of CPU utilization and even after the basic operation is done, there is still more to do in the way of a copy, move, etc.</p>
<p>So the next thought is doing the inverse.  Rather than trying to delete the data, maybe we simply don&#8217;t want to output it.  This logic seems to bear more fruit and the result is the following two potential solutions:</p>
<ul>
<li>a)  sed -n &#8216;43,$p&#8217; filename | mysql
<li>b)  tail -n +43 filename | mysql
</ul>
<p>Now, the real question?  Which is faster?  To test this i created a 200MB dummy text file comprised of log data.  I then took this and ran the following commands repeatedly.  The result?  Both sed and tail were about the same as far as both real and system time.  They both fluctuated and both came out roughly neck and neck.  The real key was user time.  Sed was always an order of magnitude slower as far as user time.  In the end, this would lead me to concede my initial suggestion and go with tail.  </p>
<p>Got thoughts on this?  email me at brian &#8230;at&#8230; logjamming.com!</p>
<p>[bharrington@berstuk tmp]$ time `tail -n +41 test.log > /tmp/file1.test `</p>
<p>real    0m6.479s<br />
user    0m0.077s<br />
sys     0m1.145s<br />
[bharrington@berstuk tmp]$ time `tail -n +41 test.log > /tmp/file1.test `</p>
<p>real    0m4.454s<br />
user    0m0.061s<br />
sys     0m1.091s<br />
[bharrington@berstuk tmp]$ time `tail -n +41 test.log > /tmp/file1.test `</p>
<p>real    0m4.498s<br />
user    0m0.049s<br />
sys     0m1.058s<br />
[bharrington@berstuk tmp]$ time `sed -n &#8216;41,$p&#8217; test.log > /tmp/file2.test `</p>
<p>real    0m5.025s<br />
user    0m1.434s<br />
sys     0m1.063s<br />
[bharrington@berstuk tmp]$ time `sed -n &#8216;41,$p&#8217; test.log > /tmp/file2.test `</p>
<p>real    0m4.862s<br />
user    0m1.351s<br />
sys     0m1.091s<br />
[bharrington@berstuk tmp]$ time `sed -n &#8216;41,$p&#8217; test.log > /tmp/file2.test `</p>
<p>real    0m4.606s<br />
user    0m1.440s<br />
sys     0m1.124s</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/logjamming/2008/02/28/sed-vs-tail-showdown/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Eclipse IDE</title>
		<link>http://www.logjamming.com/logjamming/2008/02/20/eclipse-ide/</link>
		<comments>http://www.logjamming.com/logjamming/2008/02/20/eclipse-ide/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 23:27:47 +0000</pubDate>
		<dc:creator>brian</dc:creator>
		
		<category><![CDATA[Geek]]></category>

		<category><![CDATA[Logjamming]]></category>

		<category><![CDATA[fedora eclipse sdk ide php java python css "server side]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/logjamming/2008/02/20/eclipse-ide/</guid>
		<description><![CDATA[Eclipse is a pretty common development too familiar to Java developers.  I&#8217;m starting to get into the swing of Java development and decided that I would give it a try.  I&#8217;d tried installing it in the past and it was a bit of a bugbear.  Recently, I noticed that it is available [...]]]></description>
			<content:encoded><![CDATA[<p>Eclipse is a pretty common development too familiar to Java developers.  I&#8217;m starting to get into the swing of Java development and decided that I would give it a try.  I&#8217;d tried installing it in the past and it was a bit of a bugbear.  Recently, I noticed that it is available in the yum repository for Fedora.  I like package repositories so I figured i&#8217;d give it a shot.  What followed was a path filled with some ups and downs.  To make things easier for you, I&#8217;m writing up a cheatsheet as to how to get it running as fast as possible with as little headache as possible.</p>
<p>First and foremost, you&#8217;ll want to install the following packages in Fedora with yum:</p>
<p><code>yum install eclipse-platform eclipse-emf-xsd-sdk eclipse-emf-sdo eclipse-ecj eclipse-emf-xsd eclipse-jdt eclipse-emf-sdo-sdk eclipse-rcp eclipse-emf eclipse-gef eclipse-subclipse eclipse-phpeclipse</code></p>
<p>That will do much of the heavy lifting and should get you going with doing PHP, Java, etc development.  </p>
<p>Your next step (if you dare) will be to use Eclipse&#8217;s &#8220;update manager&#8221;.  Now the update manager in eclipse is not nearly as friendly as yum, apt, etc. It does the work of telling you &#8220;yo, you&#8217;re missing XXX dependency&#8221; but not much else.  You&#8217;re going to have to dig, and it&#8217;s not always friendly.  Googling to find the package name (and sometimes package name + eclipse &#038; &#8220;update manager&#8221;) will normally give you some pretty good links to add to the update manager.</p>
<p>To get you started, here&#8217;s a copy of my exported sites.  You can easily import this by saving it as an XML file and then using the &#8220;import sites&#8221; utility in the update manager.</p>
<p><a href='http://www.logjamming.com/blog/wordpress/wp-content/uploads/2008/02/eclipse_bookmarks.xml' title='Eclipse Bookmarks'>Eclipse Bookmarks</a></p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/logjamming/2008/02/20/eclipse-ide/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Outage yesterday</title>
		<link>http://www.logjamming.com/logjamming/2008/02/11/outage-yesterday/</link>
		<comments>http://www.logjamming.com/logjamming/2008/02/11/outage-yesterday/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 18:28:22 +0000</pubDate>
		<dc:creator>brian</dc:creator>
		
		<category><![CDATA[Alerts]]></category>

		<category><![CDATA[Logjamming]]></category>

		<category><![CDATA[Outages]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/logjamming/2008/02/11/outage-yesterday/</guid>
		<description><![CDATA[more to come later today once we finish reaming out our datacenter provider.
]]></description>
			<content:encoded><![CDATA[<p>more to come later today once we finish reaming out our datacenter provider.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/logjamming/2008/02/11/outage-yesterday/feed/</wfw:commentRss>
		</item>
		<item>
		<title>$14 Steadycam (The Poor Mans Steadicam)</title>
		<link>http://www.logjamming.com/how-to/2008/01/04/14-steadycam-the-poor-mans-steadicam/</link>
		<comments>http://www.logjamming.com/how-to/2008/01/04/14-steadycam-the-poor-mans-steadicam/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 21:43:06 +0000</pubDate>
		<dc:creator>brian</dc:creator>
		
		<category><![CDATA[Geek]]></category>

		<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/how-to/2008/01/04/14-steadycam-the-poor-mans-steadicam/</guid>
		<description><![CDATA[Maybe some of you folks got a totally sweet camcorder for X-mas.  If so, check this out.  I&#8217;m a big fan.
$14 Steadycam The Poor Mans Steadicam
]]></description>
			<content:encoded><![CDATA[<p>Maybe some of you folks got a totally sweet camcorder for X-mas.  If so, check this out.  I&#8217;m a big fan.</p>
<p><a href="http://www.cs.cmu.edu/~johnny/steadycam/">$14 Steadycam The Poor Mans Steadicam</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/how-to/2008/01/04/14-steadycam-the-poor-mans-steadicam/feed/</wfw:commentRss>
		</item>
		<item>
		<title>It&#8217;s time to party</title>
		<link>http://www.logjamming.com/logjamming/2007/12/31/its-time-to-party/</link>
		<comments>http://www.logjamming.com/logjamming/2007/12/31/its-time-to-party/#comments</comments>
		<pubDate>Mon, 31 Dec 2007 18:25:48 +0000</pubDate>
		<dc:creator>brian</dc:creator>
		
		<category><![CDATA[Logjamming]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/logjamming/2007/12/31/its-time-to-party/</guid>
		<description><![CDATA[Put on your dancing shoes and get ready to boogie.  It&#8217;s new years eve!  If anyone has any good new years or x-mas stories, flickr streams, or awesome recipes email them to party@logjamming.com.  We&#8217;d love to share them!
]]></description>
			<content:encoded><![CDATA[<p>Put on your dancing shoes and get ready to boogie.  It&#8217;s new years eve!  If anyone has any good new years or x-mas stories, flickr streams, or awesome recipes email them to <a href="mailto: party@logjamming.com">party@logjamming.com</a>.  We&#8217;d love to share them!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/logjamming/2007/12/31/its-time-to-party/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Back from Nevada</title>
		<link>http://www.logjamming.com/logjamming/2007/12/26/back-from-nevada/</link>
		<comments>http://www.logjamming.com/logjamming/2007/12/26/back-from-nevada/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 02:34:46 +0000</pubDate>
		<dc:creator>brian</dc:creator>
		
		<category><![CDATA[Logjamming]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/logjamming/2007/12/26/back-from-nevada/</guid>
		<description><![CDATA[I&#8217;m back.  The other boys aren&#8217;t, but we&#8217;re still here for you.  I&#8217;m going to be doing some server upgrades the next few evenings so if things get wonky, that may be why.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m back.  The other boys aren&#8217;t, but we&#8217;re still here for you.  I&#8217;m going to be doing some server upgrades the next few evenings so if things get wonky, that may be why.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/logjamming/2007/12/26/back-from-nevada/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Merry X-Mas.</title>
		<link>http://www.logjamming.com/logjamming/2007/12/25/merry-x-mas/</link>
		<comments>http://www.logjamming.com/logjamming/2007/12/25/merry-x-mas/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 12:27:21 +0000</pubDate>
		<dc:creator>brian</dc:creator>
		
		<category><![CDATA[Logjamming]]></category>

		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/logjamming/2007/12/25/merry-x-mas/</guid>
		<description><![CDATA[Hope santy claws left fun things for y`all.

]]></description>
			<content:encoded><![CDATA[<p>Hope santy claws left fun things for y`all.</p>
<p><img src='http://www.logjamming.com/blog/wordpress/wp-content/uploads/2007/12/santakidnapped.jpg' alt='Santy Claws' width=380 /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/logjamming/2007/12/25/merry-x-mas/feed/</wfw:commentRss>
		</item>
		<item>
		<title>In Nevada</title>
		<link>http://www.logjamming.com/logjamming/2007/12/22/in-nevada/</link>
		<comments>http://www.logjamming.com/logjamming/2007/12/22/in-nevada/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 20:30:21 +0000</pubDate>
		<dc:creator>brian</dc:creator>
		
		<category><![CDATA[Logjamming]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/logjamming/2007/12/22/in-nevada/</guid>
		<description><![CDATA[We&#8217;re away all over the place right now on vacations.  Josh in North Dakota, Pat&#8217;s on tour down to florida with Sick Fix, Chris is in New Jersey, and I&#8217;m in Nevada.  We&#8217;re still doing support and all that jazz.  Just wanted to keep everyone updated!
]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re away all over the place right now on vacations.  Josh in North Dakota, Pat&#8217;s on tour down to florida with <a href="http://sickfix.dead-city.org">Sick Fix</a>, Chris is in New Jersey, and I&#8217;m in Nevada.  We&#8217;re still doing support and all that jazz.  Just wanted to keep everyone updated!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/logjamming/2007/12/22/in-nevada/feed/</wfw:commentRss>
		</item>
		<item>
		<title>They are finally making &#8216;The Hobbit&#8217; !!!!!!!!!!</title>
		<link>http://www.logjamming.com/personal/2007/12/20/they-are-finally-making-the-hobbit/</link>
		<comments>http://www.logjamming.com/personal/2007/12/20/they-are-finally-making-the-hobbit/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 20:25:59 +0000</pubDate>
		<dc:creator>christian</dc:creator>
		
		<category><![CDATA[Geek]]></category>

		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.logjamming.com/personal/2007/12/20/they-are-finally-making-the-hobbit/</guid>
		<description><![CDATA[After years of speculation and rumors that were touched off almost immediately following the release of The Lord of the Rings: The Return of the King, New Line Cinema and MGM Pictures have announced that a two-film version of The Hobbit (that&#8217;s right &#8212; TWO parts!!) will be happening, with Peter Jackson at the helm. [...]]]></description>
			<content:encoded><![CDATA[<p>After years of speculation and rumors that were touched off almost immediately following the release of <em>The Lord of the Rings: The Return of the King, </em>New Line Cinema and MGM Pictures have announced that a two-film version of <em>The Hobbit </em>(that&#8217;s right &#8212; TWO parts!!) will be happening, with Peter Jackson at the helm.  Early on, there were no direct (public) plans to make <em>The Hobbit.</em>  Then, there was acknowledged interest by all parties but Jackson and New Line got into a messy legal dispute about profits owed from the previous <em>Lord of the Rings</em> movies.  Now, the  two sides have apparently settled their differences and the green light has been given.  However, Jackson has stated that he does not want to direct the films because he has obligations to other projects that would keep <em>The Hobbit</em> from being released in time for its initial 2010 projection.  This has led to early speculation of Guillermo del Toro (Hellboy, Pan&#8217;s Labyrinth) and Sam Raimi (Evil Dead/Army of Darkness and Spiderman trilogies) as possible directorial candidates.</p>
<p>Of course, the top online news/blog/rumor source for all things LOTR-related during the fervor and excitement for the original movies, <a href="http://www.theonering.net/">theonering.net</a>, is buzzing once again at this news after a long period of relative dormancy.  Check it out for all the latest!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logjamming.com/personal/2007/12/20/they-are-finally-making-the-hobbit/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
