<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="http://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:rakeofdoom</id>
  <title>a collection of ellipses and digressions</title>
  <subtitle>...</subtitle>
  <author>
    <name>Chris J.</name>
  </author>
  <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/"/>
  <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom"/>
  <updated>2009-12-08T18:49:07Z</updated>
  <lj:journal userid="8811523" username="rakeofdoom" type="personal"/>
  <link rel="service.feed" type="application/x.atom+xml" href="http://rakeofdoom.livejournal.com/data/atom" title="a collection of ellipses and digressions"/>
  <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:83626</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/83626.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=83626"/>
    <title>This should totally conflict eonen...</title>
    <published>2009-12-08T18:49:07Z</published>
    <updated>2009-12-08T18:49:07Z</updated>
    <content type="html">&lt;a href="http://i.imgur.com/eg2kJ.jpg"&gt;http://i.imgur.com/eg2kJ.jpg&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;&lt;a href="http://21.media.tumblr.com/tumblr_kso7jo5HSq1qzu29qo1_500.jpg"&gt;http://21.media.tumblr.com/tumblr_kso7jo5HSq1qzu29qo1_500.jpg&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:83451</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/83451.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=83451"/>
    <title>eBay has failed me finally...</title>
    <published>2009-12-08T02:20:42Z</published>
    <updated>2009-12-08T02:20:42Z</updated>
    <content type="html">I ordered a Blackberry case advertised to fit my Blackberry, and received one that fits my old one.&lt;br /&gt;&lt;br /&gt;Damn it.&lt;br /&gt;&lt;br /&gt;And the most annoying part is it took 2 damn weeks to get here - shipped USPS first class from NY.  It was mailed nearly a week after I bought the item.&lt;br /&gt;&lt;br /&gt;And, just so I remember, the dude's eBay name is &lt;a href="http://myworld.ebay.com/cellular_emporium/"&gt;cellular_emporium&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Pretty irritated atm.  Grrr.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:82844</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/82844.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=82844"/>
    <title>Humorous sexist stereotype time!</title>
    <published>2009-10-02T20:47:26Z</published>
    <updated>2009-10-02T20:47:26Z</updated>
    <content type="html">Just look at the URL even: it's obviously a man centric site, with a page titled "Men vs Women".&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.manolith.com/2009/10/01/men-versus-women/"&gt;http://www.manolith.com/2009/10/01/men-versus-women/&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:82603</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/82603.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=82603"/>
    <title>Fixed my Xbox-360 last night</title>
    <published>2009-09-30T21:15:42Z</published>
    <updated>2009-09-30T21:15:42Z</updated>
    <content type="html">Removed the dumbass clamps used to hold the headsinks to the chips (CPU + GPU), drilled through the board backing plate (box is more like it), put in specific screws with some specific washers, tightened it hella down, heated it up, and it now works like a charm.&lt;br /&gt;&lt;br /&gt;Huzzah!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:82284</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/82284.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=82284"/>
    <title>guesstimaybe</title>
    <published>2009-09-30T15:52:19Z</published>
    <updated>2009-09-30T15:52:19Z</updated>
    <category term="guesstimaybe"/>
    <content type="html">I just came up with that word.&lt;br /&gt;&lt;br /&gt;Estimate - suggests some level of accuracy&lt;br /&gt;Guesstimate - best guess, based on limited info&lt;br /&gt;Guesstimaybe - throw a dart on the wall and when giving a guesstimaybe, it's strongly to wave your hands in a fashion suggesting 'who the hell knows'.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:82055</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/82055.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=82055"/>
    <title>Roman Polanski</title>
    <published>2009-09-29T00:27:20Z</published>
    <updated>2009-09-29T00:27:20Z</updated>
    <content type="html">So, some famous guy, who's had a pretty horrific things happen in his life, had sex with a 13 y/o.  After sharing drugs with her (I say 'sharing' as that sounds less judgmental than 'giving' or 'administering').&lt;br /&gt;&lt;br /&gt;And now that he's been arrested for extradition to the US to face those charges, finally, people are upset about it.&lt;br /&gt;&lt;br /&gt;What's to be upset about?  Dude had sex with an underage person.  It doesn't matter if you're rich or not, you face the court.&lt;br /&gt;&lt;br /&gt;Instead, this weasel fled the country.&lt;br /&gt;&lt;br /&gt;Don't get me wrong, I think it's horrible what happened to his wife and unborn child, and what happened to his mother (I don't know anything about his dad).&lt;br /&gt;&lt;br /&gt;And I understand he made some pretty edge films.  Haven't seen any myself.&lt;br /&gt;&lt;br /&gt;By none of those facts give him a free pass to break a law and get away with it.  Even a law that some might think of as a 'moral' law (I don't consider that a moral law btw: it's there to safe guard children.  They don't /know/ what they need to know at that age and are incredibly impressionable and can seriously screw up a life - regardless of how it went down, and the circumstances.)&lt;br /&gt;&lt;br /&gt;When someone does something wrong, it doesn't matter that they're in the same industry as you, are a friend, part of some union or brotherhood: you don't support them.  That's tacit approval of their actions.&lt;br /&gt;&lt;br /&gt;This dude is a chicken shit.  He /knows/ he's guilty.  Be upright, or piss off.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:81885</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/81885.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=81885"/>
    <title>Goin to see 'The Retros' in Kirkland this Saturday</title>
    <published>2009-09-25T20:18:36Z</published>
    <updated>2009-09-25T20:18:36Z</updated>
    <content type="html">Wanna go?&lt;br /&gt;&lt;br /&gt;The Retros are retiring at the end of this year - which makes me a little sad.&lt;br /&gt;&lt;br /&gt;So, I'm going.  And if we can get a sitter, Meek will come too.&lt;br /&gt;&lt;br /&gt;Anyone else wanna go/baby sit?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:81231</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/81231.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=81231"/>
    <title>Atheism is a religion like not collecting stamps is a hobby.</title>
    <published>2009-09-20T17:39:05Z</published>
    <updated>2009-09-20T17:39:05Z</updated>
    <content type="html">I like that line.  Nabbed from a comment on digg article &lt;a href="http://digg.com/world_news/Research_Finds_that_Atheists_are_Most_Hated_and_Distrusted"&gt;http://digg.com/world_news/Research_Finds_that_Atheists_are_Most_Hated_and_Distrusted&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:81142</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/81142.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=81142"/>
    <title>PERL: Numbering a grid any repetitive way you need</title>
    <published>2009-08-19T22:18:25Z</published>
    <updated>2009-08-19T22:18:25Z</updated>
    <category term="numbers"/>
    <category term="perl"/>
    <category term="grid"/>
    <content type="html">&lt;p&gt;This was cross posted in &lt;span class='ljuser ljuser-name_itprofessionals' lj:user='itprofessionals' style='white-space: nowrap;'&gt;&lt;a href='http://community.livejournal.com/itprofessionals/profile'&gt;&lt;img src='http://l-stat.livejournal.com/img/community.gif' alt='[info]' width='16' height='16' style='vertical-align: bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='http://community.livejournal.com/itprofessionals/'&gt;&lt;b&gt;itprofessionals&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;

&lt;p&gt;I'm working on some Perl code (might get moved to PHP) which will be the basis for displaying server racks - and blade servers (blade servers, in the big picture, really are just mini-racks).

&lt;p&gt;The trick is, racks can be of different U heights, and blade servers could be numbered however the OEM wants (you'd /think/ horizontally, starting in the upper left).

&lt;p&gt;The parameters of the 'racks' will be stored in a db (ldap in this case), and I wanted the parameters to be human readable.

&lt;p&gt;So, I've written the following Perl code.  There's testing output included, and for what this is, I don't see any need to remove it.

&lt;p&gt;Here's some sample output:
&lt;hr&gt;&lt;pre&gt;
TLV: 20 VI: -1
PriOrder: Vertical
PriOrderStart: Bottom
SecOrderStart: Right
U_Horz: 5
U_Vert: 4

HorzInc: -4
VertInc: -1
TopLeftVal: 20

20      16      12      8       4
19      15      11      7       3
18      14      10      6       2
17      13      9       5       1
&lt;/pre&gt;&lt;hr&gt;

&lt;p&gt; I'd /love/ to hear thoughts on optimizing (especially the large 'if' section) it.

&lt;p&gt; - chris

&lt;hr&gt;
&lt;pre&gt;
$PriOrder="Horizontal";
$PriOrderStart="Left";
$SecOrderStart="Bottom";
$U_Horz=5;
$U_Vert=4;

if ( $PriOrder eq "Horizontal" ) {
  if ( $PriOrderStart eq "Left" ) {
    $HorzInc=1;
    if ( $SecOrderStart eq "Top" ) {
      $TopLeftVal=1;
      $VertInc=$U_Horz;
      print "TLV: $TopLeftVal\tVI: $VertInc\n";
    }
    if ( $SecOrderStart eq "Bottom" ) {
      $TopLeftVal=$U_Horz * ( $U_Vert - 1 ) + 1;
      $VertInc=-$U_Horz;
      print "TLV: $TopLeftVal\tVI: $VertInc\n";
    }
  }
  if ( $PriOrderStart eq "Right" ) {
    $HorzInc=-1;
    if ( $SecOrderStart eq "Top" ) {
      $TopLeftVal=$U_Horz;
      $VertInc=$U_Horz;
      print "TLV: $TopLeftVal\tVI: $VertInc\n";
    }
    if ( $SecOrderStart eq "Bottom" ) {
      $TopLeftVal=$U_Horz * $U_Vert;
      $VertInc=-$U_Horz;
      print "TLV: $TopLeftVal\tVI: $VertInc\n";
    }
  }
}

if ( $PriOrder eq "Vertical" ) {
  if ( $SecOrderStart eq "Left" ) {
    $HorzInc=$U_Vert;
    if ( $PriOrderStart eq "Top" ) {
      $TopLeftVal=1;
      $VertInc=1;
      print "TLV: $TopLeftVal\tVI: $VertInc\n";
    }
    if ( $PriOrderStart eq "Bottom" ) {
      $TopLeftVal=$U_Vert;
      $VertInc=-1;
      print "TLV: $TopLeftVal\tVI: $VertInc\n";
    }
  }
  if ( $SecOrderStart eq "Right" ) {
    $HorzInc=-$U_Vert;
    if ( $PriOrderStart eq "Top" ) {
      $TopLeftVal=$U_Vert * ( $U_Horz - 1 ) + 1;
      $VertInc=1;
      print "TLV: $TopLeftVal\tVI: $VertInc\n";
    }
    if ( $PriOrderStart eq "Bottom" ) {
      $TopLeftVal=$U_Vert * $U_Horz;
      $VertInc=-1;
      print "TLV: $TopLeftVal\tVI: $VertInc\n";
    }
  }
}

print "PriOrder: $PriOrder\n";
print "PriOrderStart: $PriOrderStart\n";
print "SecOrderStart: $SecOrderStart\n";
print "U_Horz: $U_Horz\n";
print "U_Vert: $U_Vert\n";
print "\n";
print "HorzInc: $HorzInc\n";
print "VertInc: $VertInc\n";
print "TopLeftVal: $TopLeftVal\n\n";

for ($VertLoop = 0; $VertLoop &amp;lt; $U_Vert; $VertLoop++) {
  $RowStart = $TopLeftVal+($VertLoop*$VertInc);
  $RowEnd   = $RowStart+$HorzInc*($U_Horz-1);

  for ($HorzLoop = $RowStart; $HorzLoop != $RowEnd+$HorzInc; $HorzLoop+=$HorzInc) {
    print "$HorzLoop\t";
  }
  print "\n";
}
&lt;/pre&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:80786</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/80786.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=80786"/>
    <title>Ok, my nuts can stop aching now.</title>
    <published>2009-07-13T21:13:43Z</published>
    <updated>2009-07-13T21:16:09Z</updated>
    <content type="html">On an unrelated note, I've realized I'm kind of pushy.&lt;br /&gt;&lt;br /&gt;----&lt;br /&gt;&lt;br /&gt;Told a joke today to my coworkers:&lt;br /&gt;&lt;br /&gt;So, at the end of last week, I not only got my car fixed by I got myself fixed too!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://instantrimshot.com"&gt;instantrimshot.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thank you, thank you, I'll be here all week (primarily cause I can't walk quickly).</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:80128</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/80128.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=80128"/>
    <title>Blame</title>
    <published>2009-07-11T22:01:01Z</published>
    <updated>2009-07-12T04:55:31Z</updated>
    <content type="html">Man, I'm on a roll!  Don't know if that's good or bad though...&lt;br /&gt;&lt;br /&gt;Anyway, on to my thoughts here.  Which I must add aren't entirely mine; I got them in parts or in it's entirely from &lt;span class='ljuser ljuser-name_zanfur' lj:user='zanfur' style='white-space: nowrap;'&gt;&lt;a href='http://zanfur.livejournal.com/profile'&gt;&lt;img src='http://l-stat.livejournal.com/img/userinfo.gif' alt='[info]' width='17' height='17' style='vertical-align: bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='http://zanfur.livejournal.com/'&gt;&lt;b&gt;zanfur&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;A lot of people focus on blame.  They blame someone, themselves or others, for some difficulty or hurt feeling.&lt;br /&gt;&lt;br /&gt;What's the point of blame?&lt;br /&gt;To find out who's responsible for the difficulty.&lt;br /&gt;&lt;br /&gt;Why?&lt;br /&gt;For assignment of punishment.&lt;br /&gt;&lt;br /&gt;Is it useful then?&lt;br /&gt;In legal arenas, you bet.  We blame a murderer for murdering someone.  And then punish them.&lt;br /&gt;In businesses, you bet.  To identify what went wrong and how to avoid it in the future, or fire someone who's proven unable to uphold their part of the employer/employee relationship.&lt;br /&gt;&lt;br /&gt;In personal relationships?  Nope.&lt;br /&gt;&lt;br /&gt;If Blame ==&amp;gt; punishment, is that what you really want?  Wouldn't it be better to simply find out where the disconnect is and discuss it?  Hurt feelings are unavoidable - they'll happen.  They are real and can be very intense.  But finding blame doesn't assist with identifying the disconnect or misunderstanding.  And really, do you want to punish (not S&amp;M style folks) someone you want to have a relationship with?  I don't.&lt;br /&gt;&lt;br /&gt;What're your thoughts?&lt;br /&gt;&lt;br /&gt;Edit: ---------------------------------------------------&lt;br /&gt;Semantics.  What a fun topic.  There's normally a plethora of words and phrases to get an idea across - each with their own nuances.&lt;br /&gt;&lt;br /&gt;I'm not talking about Responsibility (syn: burden, charge, obligation).&lt;br /&gt;&lt;br /&gt;I am talking about Blame.  Some synonyms: fault, onus, condemnation.  You know, the finger pointing, angry kind that at face value, and initially, totally avoids the possibility that whatever the difficulty was/is that it might /not/ be a big deal, or it might be a fault with positive side effects.&lt;br /&gt;&lt;br /&gt;And I'd like to think that in any relationship one would desire to retain, that type of blaming would be avoided.&lt;br /&gt;&lt;br /&gt;Here's a couple of links I found in a few moments of searching:&lt;br /&gt;&lt;a href="http://www.yourromanceguide.com/articles/relationships/relationships-stop-the-blame-game.php"&gt;http://www.yourromanceguide.com/articles/relationships/relationships-stop-the-blame-game.php&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.chabad.org/theJewishWoman/article_cdo/aid/565512/jewish/The-Blame-Game.htm"&gt;http://www.chabad.org/theJewishWoman/article_cdo/aid/565512/jewish/The-Blame-Game.htm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I also found a published study that apparently I have to pony up for (what bullshit is that?):&lt;br /&gt;&lt;i&gt;Shame and guilt: characterological vs. behavioral self-blame and their relationship to fear of intimacy&lt;/i&gt;&lt;br /&gt;Here's a link about it with an abstract - if anyone was to send the whole thing my way - I'd really appreciate it.&lt;br /&gt;&lt;a href="http://www.sciencedirect.com/science?_ob=ArticleURL&amp;amp;_udi=B6V9F-47PG7HB-1&amp;amp;_user=10&amp;amp;_rdoc=1&amp;amp;_fmt=&amp;amp;_orig=search&amp;amp;_sort=d&amp;amp;_docanchor=&amp;amp;view=c&amp;amp;_searchStrId=954631998&amp;amp;_rerunOrigin=google&amp;amp;_acct=C000050221&amp;amp;_version=1&amp;amp;_urlVersion=0&amp;amp;_userid=10&amp;amp;md5=6dda13160675cc0139ba7d3f7047c0be"&gt;http://www.sciencedirect.com/science?_ob=ArticleURL&amp;.. blah blah long ass urls&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:79845</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/79845.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=79845"/>
    <title>Gimme a V! ... "V!" ... Gimme an A! ... "A!" ... Gimme a ...</title>
    <published>2009-07-11T20:27:52Z</published>
    <updated>2009-07-11T21:43:01Z</updated>
    <content type="html">Vasectomy!&lt;br /&gt;&lt;br /&gt;I went and did it.  The Diazepam helped with any nervousness I might have had, but frankly, I'm a pretty even keel kind of guy anyway.&lt;br /&gt;&lt;br /&gt;The most painful part?  They'd put a large tissue (like a paper towel folded in half) over my penis - running from hip to hip - to hold it out of the way.  Then they taped over that.  Removing the tape from my hips was the painful part.&lt;br /&gt;&lt;br /&gt;The rest was pretty easy - a few twinges here and there, but nothing nearly as difficult as a shot from a needle.  Even when they did use the needle.&lt;br /&gt;&lt;br /&gt;Anyway, after a couple of tests to verify my sterility, at 6 weeks and then 10, Meek should be able to make an appointment to get that dang hormone rod out of her arm.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:79367</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/79367.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=79367"/>
    <title>Loaned micro driver set</title>
    <published>2009-06-29T02:48:25Z</published>
    <updated>2009-06-29T02:48:25Z</updated>
    <content type="html">I'm pretty sure I loaned out my micro screwdriver set, and I'm pretty sure it's to someone (I can't remember who!) on my friends list.&lt;br /&gt;&lt;br /&gt;If you borrowed &lt;a href="http://www.amazon.com/Anytime-Tools-PRECISION-SCREWDRIVER-PHILLIPS/dp/B000FGQ1G6/ref=pd_bxgy_hi_img_c" style="font-weight: bold"&gt;this set&lt;/a&gt; from me, could you let me know whether you're done with it and if I can get it back?&lt;br /&gt;&lt;br /&gt;Thanks!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:79078</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/79078.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=79078"/>
    <title>Date/Time Math</title>
    <published>2009-06-15T20:10:31Z</published>
    <updated>2009-06-15T20:10:31Z</updated>
    <content type="html">Doing math with dates/times - programmaticly - is a pain in the ass.&lt;br /&gt;&lt;br /&gt;Take a date/time, check to see if it's fri, sat or sun.  Then set an allowed time that's either EOB on the next monday (for Sat and Sun) or the same time on the next monday (for friday).&lt;br /&gt;&lt;br /&gt;This is effectively 1 business day.&lt;br /&gt;&lt;br /&gt;Also: this must handle crossing months, even years.&lt;br /&gt;&lt;br /&gt;Thanks to unixtime - this was much easier than it sounds, but it's still not fun.&lt;br /&gt;&lt;br /&gt;PS: I got my stuff to work.  At least, my test code finally works - now to work it into the bigger script where I'm going to put this to useful work.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:78382</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/78382.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=78382"/>
    <title>This is why I'm scared of cops</title>
    <published>2009-05-29T17:05:48Z</published>
    <updated>2009-05-29T17:05:48Z</updated>
    <content type="html">&lt;a href="http://brainz.org/30-cases-extreme-police-brutality-and-blatant-misconduct/"&gt;http://brainz.org/30-cases-extreme-police-brutality-and-blatant-misconduct/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Most of this isn't new to anyone.&lt;br /&gt;&lt;br /&gt;I think it's sad that I've more to fear from the people who are paid to protect us, than from anything else.  It's so easy for a cop to make a bad judgment call and then, well, totally fuck you up.&lt;br /&gt;&lt;br /&gt;Perhaps even kill you.&lt;br /&gt;&lt;br /&gt;And get away with it - as it would seem cops aren't held to the same level of expected judgment that everyone else is.  In short, they're treated by the court system like kids, while the rest of us 'should know better'.&lt;br /&gt;&lt;br /&gt;Be polite, insist on rights, say no to searches without a warrant, and do what they say - even if you think you don't have to - but clearly indicate it's via intimidation (having a gun and other weapons, and the power position leaves them in a situation where they only have to make a request to be intimating).</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:78279</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/78279.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=78279"/>
    <title>So true... lol</title>
    <published>2009-05-17T14:51:36Z</published>
    <updated>2009-05-17T17:28:11Z</updated>
    <content type="html">&lt;a href="http://www.smbc-comics.com/index.php?db=comics&amp;amp;id=1518"&gt;http://www.smbc-comics.com/index.php?db=comics&amp;id=1518&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:77916</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/77916.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=77916"/>
    <title>Sometime during this past week...</title>
    <published>2009-05-11T02:31:21Z</published>
    <updated>2009-05-11T02:31:21Z</updated>
    <content type="html">Alex turned into a toddler.&lt;br /&gt;&lt;br /&gt;Long gone is the infant, and even some of the 'baby'.&lt;br /&gt;&lt;br /&gt;Dude is walking from spot to spot, picking what he thinks is the easiest method from crawling or walking.  And more and more often, now he's picking walking.&lt;br /&gt;&lt;br /&gt;Course, he's a bit stiff legged, so it's kinda like a miniature, exuberantly happy and chatty zombie is roaming the house.  Heh.&lt;br /&gt;&lt;br /&gt;On a very related note, he's now figured out that sliding off laps, beds, chairs and even steps is best done feet first (finally!).&lt;br /&gt;&lt;br /&gt;* I'm gonna have to get a new pic for Alex type posts - this one is /way/ dated now - being a very solidly infant pic.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:77594</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/77594.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=77594"/>
    <title>eonen will love this...</title>
    <published>2009-05-08T20:29:58Z</published>
    <updated>2009-05-08T20:29:58Z</updated>
    <content type="html">&lt;a href="http://current.com/items/90029658_death-star-destroys-enterprise.htm"&gt;http://current.com/items/90029658_death-star-destroys-enterprise.htm&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:77525</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/77525.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=77525"/>
    <title>Funny quote</title>
    <published>2009-05-07T22:52:00Z</published>
    <updated>2009-05-07T22:52:00Z</updated>
    <content type="html">"Now, now, my good man, this is no time for making enemies."&lt;br /&gt;-- Philosopher Voltaire when asked by a priest to renounce Satan.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:77228</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/77228.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=77228"/>
    <title>GOP wants investigation of prev. administration?  lols</title>
    <published>2009-04-27T21:01:55Z</published>
    <updated>2009-04-27T21:01:55Z</updated>
    <content type="html">&lt;a href="http://www.eyesonobama.com/blog/content/id_52433/title_Breaking-GOP-Calls-for-Investigation-of-Previous-Administration/"&gt;Breaking: GOP Calls for Investigation of Previous Administration&lt;br /&gt;http://www.eyesonobama.com/blog/content/id_52433/title_Breaking-GOP-Calls-for-Investigation-of-Previous-Administration/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name="cutid1"&gt;&lt;/a&gt;Compare this to Obama's current hands-off approach. He's not going to get involved, and would rather leave it to the /judiciary/ to decided what to do.&lt;br /&gt;&lt;br /&gt;And then, we're comparing some dude's pardon by the president to torture authorized by the president.  (if that didn't make sense, read the whole thing and follow the link).&lt;br /&gt;&lt;br /&gt;Republicans are retarded. If they held to their planks, ideals, and supposed core there'd be /no reason/ for a libertarian party to even exist.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:76947</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/76947.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=76947"/>
    <title>Saw this on a guys shirt</title>
    <published>2009-04-20T20:47:02Z</published>
    <updated>2009-04-20T20:47:02Z</updated>
    <content type="html">$&amp;gt; cd /pub&lt;br /&gt;&lt;br /&gt;$&amp;gt; more beer&lt;br /&gt;&lt;br /&gt;The dude holds two jobs apparently - one for AT&amp;T and another at a brewery.&lt;br /&gt;That shirt is good to go for both jobs.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:76769</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/76769.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=76769"/>
    <title>RT ticket count</title>
    <published>2009-04-15T21:54:05Z</published>
    <updated>2009-04-15T21:54:05Z</updated>
    <category term="rt"/>
    <category term="bash script"/>
    <content type="html">&lt;span style="font-size: smaller;"&gt;(This was cross posted in &lt;/span&gt;&lt;span class='ljuser ljuser-name_itprofessionals' lj:user='itprofessionals' style='white-space: nowrap;'&gt;&lt;a href='http://community.livejournal.com/itprofessionals/profile'&gt;&lt;img src='http://l-stat.livejournal.com/img/community.gif' alt='[info]' width='16' height='16' style='vertical-align: bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='http://community.livejournal.com/itprofessionals/'&gt;&lt;b&gt;itprofessionals&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size: smaller;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When dealing with a large ticket db in RT (Request Tracker), it's sometimes good to flush the db of some tickets.&lt;br /&gt;&lt;br /&gt;RT /never/ deletes data from the dB.  There's a 'plugin'/add-on or whatever that can though.  RTx-Shredder.&lt;br /&gt;&lt;br /&gt;However, if someone set's a script in action to 'shred' those tickets, one will occasionally want to check in on how it's going.&lt;br /&gt;&lt;br /&gt;Hence this script:&lt;br /&gt;&lt;a name="cutid1"&gt;&lt;/a&gt;cat /path/to/rt/sbin/count-tickets.sh &lt;br /&gt;&lt;pre&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;Statuses=( new open stalled resolved rejected deleted )&lt;br /&gt;if [ $1 ] ; then Statuses=( $* ) ; fi&lt;br /&gt;&lt;br /&gt;for Status in ${Statuses[@]} ; do&lt;br /&gt;  echo -en &amp;quot;$Status:\t&amp;quot;&lt;br /&gt;  if [ ${#Status} -lt 7 ] ; then echo -en &amp;quot;\t&amp;quot; ; fi&lt;br /&gt;  count=`echo &amp;quot;select count(*) from Tickets where Tickets.Status=\&amp;quot;$Status\&amp;quot;;&amp;quot; | mysql rt3`&lt;br /&gt;  count=`echo $count | awk '{print $2}'`&lt;br /&gt;  echo -e &amp;quot;$count\t`date -d '7 hours ago' '+%D %T'`&amp;quot;&lt;br /&gt;done&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;That script, of course, requires you to have my.cnf setup correctly or ran as root with no root mysql pw set.&lt;br /&gt;&lt;br /&gt;One /can/ get the ticket count from RT for most any status - except for deleted.&lt;br /&gt;&lt;br /&gt;We started with approx 55500 tickets in rejected status (spam!), and we're currently down to approx 11300.  The shred process has been running for approx a week and a half, and it should finish sometime this friday evening.  That's approx 1 ticket shredded per 17 seconds.&lt;br /&gt;&lt;br /&gt;Also, here's the script I'm using to shred those tickets (long!):&lt;br /&gt;&lt;br /&gt;&lt;a name="cutid2"&gt;&lt;/a&gt;cat /path/to/rt/sbin/shredder.sh&lt;br /&gt;&lt;pre&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;usage()&lt;br /&gt;{&lt;br /&gt;cat &amp;lt;&amp;lt; EOF&lt;br /&gt;&lt;br /&gt;Usage: $0 &lt;status&gt; [num] [wait] [until]&lt;br /&gt;  Options:&lt;br /&gt;    status - Ticket status name.  Required.&lt;br /&gt;    num    - Number of tickets to shred at a time.  Default=5&lt;br /&gt;    wait   - Number of seconds to wait between shred sets.  Default=1&lt;br /&gt;    until  - How long to continue running until X tickets are remaining.  Default=n/a&lt;br /&gt;&lt;br /&gt;  Examples:&lt;br /&gt;    $0 rejected&lt;br /&gt;      This will run continuously, shredding 5 tickets at a time, with a second pause between shreds.&lt;br /&gt;    $0 deleted 10 1 5&lt;br /&gt;      This will run until there's 5 or less tickets, shredding 10 at a time, with a second pause between shreds.&lt;br /&gt;&lt;br /&gt;EOF&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Statuses=( new open stalled resolved rejected deleted )&lt;br /&gt;if ! [ $1 ] ; then usage ; exit &lt;br /&gt;else&lt;br /&gt;  if ! [[ &amp;quot;${Statuses[*]}&amp;quot; =~ &amp;quot;$1&amp;quot; ]] ; then&lt;br /&gt;    echo &amp;quot;Status $1 not recognized.&amp;quot;&lt;br /&gt;    echo &amp;quot;Statuses allowed: ${Statuses[*]}&amp;quot;&lt;br /&gt;    exit&lt;br /&gt;  fi&lt;br /&gt;  status=&amp;quot;$1&amp;quot;&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ $2 ] ; then&lt;br /&gt;  num=$2&lt;br /&gt;  if [ $num -lt 1 ] ; then echo &amp;quot;Use a value for num above 0 [zero].&amp;quot; ; exit ; fi&lt;br /&gt;  if [ $num -gt 100 ] ; then echo &amp;quot;Use a value for num below 101.&amp;quot; ; exit ; fi&lt;br /&gt;else num=5&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ $3 ] ; then&lt;br /&gt;  wait=$3&lt;br /&gt;  if [ $wait -lt 0 ] ; then echo &amp;quot;Use a positive, or zero, value for wait.&amp;quot; ; exit ; fi&lt;br /&gt;  if [ $wait -gt 100 ] ; then echo &amp;quot;Use a value for wait below 101.&amp;quot; ; exit ; fi&lt;br /&gt;else wait=1&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ $4 ] ; then&lt;br /&gt;  untl=$4&lt;br /&gt;  if [ $wait -lt 0 ] ; then echo &amp;quot;Use a positive, or zero, value for until.&amp;quot; ; exit ; fi&lt;br /&gt;else untl=0&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;numticketleft=&amp;quot;`./count-tickets.sh $status | awk '{print $2}'`&amp;quot;&lt;br /&gt;if [ $numticketleft -le $untl ] ; then&lt;br /&gt;  echo &amp;quot;The number of tickets ($numticketleft) is equal or less than the until limit set ($untl). No work to do.&amp;quot;&lt;br /&gt;  exit&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;shredcmd=&amp;quot;./rtx-shredder --force --plugin 'Tickets=status,$status;limit,$num'&amp;quot;&lt;br /&gt;&lt;br /&gt;echo -n &amp;quot;Started at:  &amp;quot; ; date +'%D %T %Z'&lt;br /&gt;&lt;br /&gt;while [ $numticketleft -gt $untl ] ; do&lt;br /&gt;  eval $shredcmd &amp;gt; /dev/null&lt;br /&gt;  sleep $wait &lt;br /&gt;  numticketleft=&amp;quot;`./count-tickets.sh $status | awk '{print $2}'`&amp;quot;&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;echo -n &amp;quot;Finished at: &amp;quot; ; date +'%D %T %Z'&lt;/status&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I know that I could have use getopt or getopts for the options, but it wasn't really worth it.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:76512</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/76512.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=76512"/>
    <title>Need a geek icon...</title>
    <published>2009-04-13T18:51:17Z</published>
    <updated>2009-04-13T19:24:20Z</updated>
    <category term="bash script"/>
    <content type="html">My new fav one-liner:&lt;br /&gt;&lt;br /&gt;while true ; do clear ; date ; echo ; ls -lh ; REPLY="" ; read -sn 1 -t 1 ; if [ "$REPLY" = "q" ] ; then break ; fi ; done&lt;br /&gt;&lt;br /&gt;It'll watch a directories contents (via ls), prefixed with the current time.   It'll refresh every second until you hit the 'q' key - or faster if you hit any other key.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:75992</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/75992.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=75992"/>
    <title>Fan-freaking-tastic weather today</title>
    <published>2009-04-07T03:36:18Z</published>
    <updated>2009-04-07T03:36:18Z</updated>
    <content type="html">I know it's gonna get worse mid-week, but I'm rolling around in the weather.&lt;br /&gt;&lt;br /&gt;Meek spent the say outside with Alex, doors open... yeah, place smells good too.&lt;br /&gt;&lt;br /&gt;I'm in a fantastic mood.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:rakeofdoom:75593</id>
    <link rel="alternate" type="text/html" href="http://rakeofdoom.livejournal.com/75593.html"/>
    <link rel="self" type="text/xml" href="http://rakeofdoom.livejournal.com/data/atom/?itemid=75593"/>
    <title>Story of a guy who also almost went postal</title>
    <published>2009-04-05T16:03:07Z</published>
    <updated>2009-04-05T16:18:33Z</updated>
    <content type="html">&lt;a href="http://www.thedailybeast.com/blogs-and-stories/2009-04-04/confessions-of-a-man-who-almost-went-postal/full/"&gt;http://www.thedailybeast.com/blogs-and-stories/2009-04-04/confessions-of-a-man-who-almost-went-postal/full/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There's some comments at the end that wonder why these sprees are almost always by men.  Some even indicate that we put toy dolls into girls hands and toy guns into boys, and our society inculcates men to be violent.&lt;br /&gt;&lt;br /&gt;First off, let me simplify the whole thing and say I believe it's totally hormones and genetics - namely, testosterone.  Historically and evolutionarily we're the protectors.  The front line.  When we face a danger, threat, or wrong against our own, we feel a need to act.  A /very/ strong need, sometimes blinding.  Our role in that case was to be a shield for the women and children.&lt;br /&gt;&lt;br /&gt;I'm not saying women don't either, they can certainly act when they need to.&lt;br /&gt;&lt;br /&gt;I'm also not saying it's a good thing that makes men better, quite the contrary.  Imagine the wars and fights that break out for imaginary threats.  Women, on average would only fight (as in, fight) an obvious wrong, and one that's nearby.  Men are a bit more tuned to 'possible' threats and are quicker to act.&lt;br /&gt;&lt;br /&gt;I'm not saying one is better than the other, nor am I saying that is always the case.  These are generalities.&lt;br /&gt;&lt;br /&gt;Anyway, to the comments.&lt;br /&gt;&lt;br /&gt;There's been plenty of parents who make every attempt to raise their children gender-agnostic; one case in point I recall is a lesbian mother who provided lots of toys (and no dolls) and walk in the girls room to discover their toddler coddling a toy fire truck wrapped up in a blanket.&lt;br /&gt;&lt;br /&gt;Or boys that pick up a stick and innately know what to do with them: whack!&lt;br /&gt;&lt;br /&gt;My parents never provided me with guns toys as a kid, until I was in middle to late grade school, and then they were only squirt guns and the like.  That's not to say I didn't know what to do with guns - I watched movies, westerns, action flicks, etc.&lt;br /&gt;&lt;br /&gt;But to blame our society for making men they way they are, or for the fact that guns are available is silly.  In Britain, for example, guns are banned.  And they /still/ have tons of deaths - knifes or outnumbered odds.  Violent people will do violent things.&lt;br /&gt;&lt;br /&gt;Anyway, I'd wanted to comment on the thread but refused to register, so I posted here instead.&lt;br /&gt;&lt;br /&gt;The article itself is great.  Plus the conclusion - it's simple and on the spot.&lt;br /&gt;&lt;br /&gt;Also, related:&lt;br /&gt;&lt;a href="http://www.examiner.com/x-3704-Columbia-Conservative-Examiner~y2009m4d5-Loonies-should-not-squelch-talk-about-armed-resistance"&gt;http://www.examiner.com/x-3704-Columbia-Conservative-Examiner~y2009m4d5-Loonies-should-not-squelch-talk-about-armed-resistance&lt;/a&gt;</content>
  </entry>
</feed>
