<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>Short Attention Span Blog</description><title>SASB</title><generator>Tumblr (3.0; @jaredg)</generator><link>http://sasb.jaredg.org/</link><item><title>Overriding the displayed hostname in OS X </title><description>&lt;a href="http://superuser.com/questions/49891/how-can-i-stop-mac-os-x-overriding-my-hostname-when-i-receive-a-dhcp-request-on-s/50104#50104"&gt;Overriding the displayed hostname in OS X &lt;/a&gt;: &lt;p&gt;&lt;code&gt;sudo scutil --set HostName &lt;strong&gt;&lt;override host name&gt;&lt;/strong&gt;&lt;/code&gt;&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/2845111669</link><guid>http://sasb.jaredg.org/post/2845111669</guid><pubDate>Thu, 20 Jan 2011 11:43:34 -0800</pubDate></item><item><title>A stopped clock is right twice a day, and a ticket queue is...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lf12jcthRJ1qz9f1yo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;A stopped clock is right twice a day, and a ticket queue is empty twice in a geek’s tenure.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/2747582892</link><guid>http://sasb.jaredg.org/post/2747582892</guid><pubDate>Fri, 14 Jan 2011 11:38:00 -0800</pubDate></item><item><title>Sadness in the contemporary world.  (artist unknown)</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_l6p1ptUrgj1qz9f1yo1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Sadness in the contemporary world.  (artist unknown)&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/908789307</link><guid>http://sasb.jaredg.org/post/908789307</guid><pubDate>Thu, 05 Aug 2010 12:20:16 -0700</pubDate></item><item><title>Openvz pretty printing disk usage</title><description>&lt;p&gt;Second verse almost the same as the first.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/usr/sbin/vzlist -o ctid,hostname,diskspace,diskspace.s | \&lt;br/&gt; awk 'BEGIN { totalused=0; totalquota=0; } \&lt;br/&gt; $1 ~ /CTID/ { printf "%5s %20s %6s %6s\n", $1, $2, "used", "quota"; next; } \ &lt;br/&gt; $1 ~ /[0-9]+/ { totalused += $3; totalquota += $4; split($2, arr, /\./); \ &lt;br/&gt; printf "%5s %20s %6.2f %6.2f\n", $1, arr[1], $3 / 1024 / 1024, $4 / 1024 / 1024; } \&lt;br/&gt; END { printf "total %20s %6.2f %6.2f\n", "", totalused / 1024 / 1024, totalquota / 1024 / 1024; }'&lt;/code&gt;&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/529708363</link><guid>http://sasb.jaredg.org/post/529708363</guid><pubDate>Sat, 17 Apr 2010 20:51:11 -0700</pubDate><category>geek</category><category>openvz</category><category>awk</category></item><item><title>Pretty printing openvz memory allocation</title><description>&lt;p&gt;awk: when you can&amp;#8217;t be bothered to write a proper while loop.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/usr/sbin/vzlist -o ctid,hostname,privvmpages.b | \&lt;br/&gt; awk 'BEGIN { total=0; } $1 ~ /CTID/ { printf "%5s %20s %5s\n", $1, $2, "mem"; next; } \&lt;br/&gt; $1 ~ /[0-9]+/ { total += $3; \&lt;br/&gt;split($2, arr, /\./); printf "%5s %20s %5.2f\n", $1, arr[1], $3 * 4 / 1024 / 1024; } \&lt;br/&gt; END { printf "total %20s %5.2f\n", "", total * 4 / 1024 / 1024; }'&lt;/code&gt;&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/486218026</link><guid>http://sasb.jaredg.org/post/486218026</guid><pubDate>Wed, 31 Mar 2010 00:53:00 -0700</pubDate><category>geek</category><category>openvz</category><category>awk</category></item><item><title>"You’re east coast, not New Mexico. If you aren’t used to seeing so much snow, you have to fake that..."</title><description>“You’re east coast, not New Mexico. If you aren’t used to seeing so much snow, you have to fake that you are used to it, puff up your chest and go to work. No goddamn excuses, I don’t want to hear “but we don’t have plows” You’re a goddamn American!”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;p&gt;&lt;a href="http://kellyoxford.tumblr.com/post/381833828/heres-the-part-where-i-tease-you-about-snow-in-america" target="_blank"&gt;eject: Here’s the part where I tease you about Snow in America&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I moved away from the snow so I wouldn’t have to feel like a pansy while making excuses.&lt;/p&gt;&lt;/em&gt;</description><link>http://sasb.jaredg.org/post/395837996</link><guid>http://sasb.jaredg.org/post/395837996</guid><pubDate>Wed, 17 Feb 2010 18:58:33 -0800</pubDate></item><item><title>"HAVE YOU EVEN THOUGHT ABOUT THIS PROJECT FOR MORE THAN A MILLISECOND? THE SPEC FOR THIS PROJECT WILL..."</title><description>“HAVE YOU EVEN THOUGHT ABOUT THIS PROJECT FOR MORE THAN A MILLISECOND? THE SPEC FOR THIS PROJECT WILL BE 5,000 PAGES! IT WILL TAKE THOUSANDS OF MAN-YEARS TO IMPLEMENT, AND *NOBODY* WILL UNDERSTAND HOW IT WORKS OR HOW TO USE IT, EVEN IF WE SOMEHOW MANAGE TO LAUNCH IT!”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;The thought that has gone through every software developer’s mind at some point during a big project, as channeled throuh the inimitable &lt;a href="http://steve-yegge.blogspot.com/2009/04/have-you-ever-legalized-marijuana.html" target="_blank"&gt;Steve Yegge&lt;/a&gt;.&lt;/em&gt;</description><link>http://sasb.jaredg.org/post/96688212</link><guid>http://sasb.jaredg.org/post/96688212</guid><pubDate>Wed, 15 Apr 2009 20:08:03 -0700</pubDate></item><item><title>Zeppelin Sightings: Over Stanford this Weekend</title><description>&lt;a href="http://zeppelintransit.blogspot.com/2009/03/over-stanford-this-weekend.html"&gt;Zeppelin Sightings: Over Stanford this Weekend&lt;/a&gt;: &lt;p&gt;They put up one of my airship photos.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/91625273</link><guid>http://sasb.jaredg.org/post/91625273</guid><pubDate>Tue, 31 Mar 2009 11:25:17 -0700</pubDate></item><item><title>Square Wave, also by Steve Hanov. Fanboyish to post two links...</title><description>&lt;img src="http://24.media.tumblr.com/VSe8fGnMWlntjknjapuX9za6o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://gandolf.homelinux.org/~smhanov/comics/index.php?whichdate=20040730" target="_blank"&gt;Square Wave&lt;/a&gt;, also by Steve Hanov. Fanboyish to post two links back-to-back but this one hit a little too close to home for me.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/91015557</link><guid>http://sasb.jaredg.org/post/91015557</guid><pubDate>Sun, 29 Mar 2009 14:59:31 -0700</pubDate></item><item><title>How a programmer reads your resume by Steve Hanov.  Seems like...</title><description>&lt;img src="http://25.media.tumblr.com/VSe8fGnMWlnt93iykdaFtYVLo1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://gandolf.homelinux.org/blog/index.php?id=56" target="_blank"&gt;How a programmer reads your resume&lt;/a&gt; by Steve Hanov.  Seems like this would work pretty well.  By way of Jeremy Zawodny.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/91013918</link><guid>http://sasb.jaredg.org/post/91013918</guid><pubDate>Sun, 29 Mar 2009 14:51:18 -0700</pubDate></item><item><title>"Brazil’s President Luiz Inácio Lula da Silva on Thursday blamed the global economic crisis on “white..."</title><description>“Brazil’s President Luiz Inácio Lula da Silva on Thursday blamed the global economic crisis on “white people with blue eyes” and said it was wrong that black and indigenous people should pay for white people’s mistakes.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;I’m usually all about blaming whitey for most troubles, but maybe this is a bit much.  From the &lt;a href="http://www.ft.com/cms/s/0/ae4957e8-1a5f-11de-9f91-0000779fd2ac.html?nclick_check=1" target="_blank"&gt;Financial Times&lt;/a&gt;, by way of a colleague.  (My eyes are green, and probably bloodshot by the way.)&lt;/em&gt;</description><link>http://sasb.jaredg.org/post/90519974</link><guid>http://sasb.jaredg.org/post/90519974</guid><pubDate>Fri, 27 Mar 2009 18:28:00 -0700</pubDate></item><item><title>Creme That Egg! (via allonewordplease) — a Rube Goldberg...</title><description>&lt;iframe width="400" height="299" src="http://www.youtube.com/embed/vrCb_fNmSTA?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;Creme That Egg! (via &lt;a href="http://youtube.com/user/allonewordplease" target="_blank"&gt;allonewordplease&lt;/a&gt;) — a Rube Goldberg contraption can make pretty much anything better.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/90412183</link><guid>http://sasb.jaredg.org/post/90412183</guid><pubDate>Fri, 27 Mar 2009 11:37:17 -0700</pubDate></item><item><title>"The file system is not “truncating” files. The application is truncating the files, or..."</title><description>“The file system is not “truncating” files. The application is truncating the files, or is constantly overwriting the files using the rename system call. This is a fundamentally unsafe thing to do, and ext3 just happened to paper things over.”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;Theodore Ts’o in a &lt;a href="https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781/comments/54" target="_blank"&gt;bug comment&lt;/a&gt; on how data loss can occur on Ext4.  Knowing how the file system works is what separates real programmers from people that hack things together (i.e. people like me).  By way of &lt;a href="http://friendfeed.com/e/1ede57c0-d928-b2ac-d204-1bc2d941b9b4/Bug-317781-in-linux-Ubuntu-Ext4-data/" target="_blank"&gt;Jeremy Zawodny&lt;/a&gt;.&lt;/em&gt;</description><link>http://sasb.jaredg.org/post/86008253</link><guid>http://sasb.jaredg.org/post/86008253</guid><pubDate>Thu, 12 Mar 2009 19:01:00 -0700</pubDate></item><item><title>Count files in subdirectories</title><description>&lt;p&gt;&lt;code&gt; find . -type f -print | awk '{ FS="/"; print $2; }' | uniq -c | sort -n&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;There&amp;#8217;s not an easy way (as far as I know) to get a summary of how many files are in each subdirectory of a given parent directory, so I came up with this one-liner.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/78608636</link><guid>http://sasb.jaredg.org/post/78608636</guid><pubDate>Sun, 15 Feb 2009 14:08:00 -0800</pubDate><category>geek</category><category>awk</category></item><item><title>"Customer: ‘You’re part computer?’
Me: ‘Yes sir, I am a cyborg.’"</title><description>“Customer: ‘You’re part computer?’&lt;br/&gt;
Me: ‘Yes sir, I am a cyborg.’”&lt;br/&gt;&lt;br/&gt; - &lt;em&gt;&lt;a href="http://notalwaysright.com/why-skynet-annihilated-mankind-vol-1/1514" target="_blank"&gt;Not Always Right&lt;/a&gt;. I always wanted to say something like this when I worked tech support.&lt;/em&gt;</description><link>http://sasb.jaredg.org/post/76964877</link><guid>http://sasb.jaredg.org/post/76964877</guid><pubDate>Mon, 09 Feb 2009 12:16:00 -0800</pubDate></item><item><title>Flickr: The Far side Reenactments Pool</title><description>&lt;a href="http://www.flickr.com/groups/farside/pool/"&gt;Flickr: The Far side Reenactments Pool&lt;/a&gt;: &lt;p&gt;by way of &lt;a href="http://twitter.com/codinghorror/status/1188649151" target="_blank"&gt;Jeff Atwood&lt;/a&gt;.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/76672455</link><guid>http://sasb.jaredg.org/post/76672455</guid><pubDate>Sun, 08 Feb 2009 10:57:04 -0800</pubDate></item><item><title>I LEGO N.Y. - Abstract City Blog - NYTimes.com</title><description>&lt;a href="http://niemann.blogs.nytimes.com/2009/02/02/i-lego-ny/"&gt;I LEGO N.Y. - Abstract City Blog - NYTimes.com&lt;/a&gt;: &lt;p&gt;A few lego bricks can illustrate the world.  By way of my mom(!).&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/75707909</link><guid>http://sasb.jaredg.org/post/75707909</guid><pubDate>Wed, 04 Feb 2009 15:01:03 -0800</pubDate></item><item><title>Flickr: In Numerical Order</title><description>&lt;a href="http://www.flickr.com/groups/numerical/"&gt;Flickr: In Numerical Order&lt;/a&gt;: &lt;p&gt;Number-themed pictures posted in numerical order.  Something greater than or equal to 1512 is next.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/74739501</link><guid>http://sasb.jaredg.org/post/74739501</guid><pubDate>Sun, 01 Feb 2009 01:25:44 -0800</pubDate></item><item><title>Taking photos of police officers could be considered a crime in the UK</title><description>&lt;a href="http://www.bjp-online.com/public/showPage.html?page=836646"&gt;Taking photos of police officers could be considered a crime in the UK&lt;/a&gt;: &lt;p&gt;From the British Journal of Photography, by way of &lt;a href="http://friendfeed.com/e/b1df84bb-9a6a-440a-84ff-e116d9f235e4/UK-Terror-Law-To-Make-Photographing-Police/" target="_blank"&gt;Paul Buchheit&lt;/a&gt;.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/74443195</link><guid>http://sasb.jaredg.org/post/74443195</guid><pubDate>Fri, 30 Jan 2009 17:23:44 -0800</pubDate></item><item><title>Gizmodo: Cable Action Figures</title><description>&lt;a href="http://i.gizmodo.com/5139368/ethernet-cable-action-figures"&gt;Gizmodo: Cable Action Figures&lt;/a&gt;: &lt;p&gt;They’re not really made out of ethernet cable, it’s higher gauge stuff.  But still, cool.  My colleague thinks we shoudld attach cockroaches to them and use them as our minions.&lt;/p&gt;</description><link>http://sasb.jaredg.org/post/73364816</link><guid>http://sasb.jaredg.org/post/73364816</guid><pubDate>Mon, 26 Jan 2009 17:18:06 -0800</pubDate></item></channel></rss>

