Log in

No account? Create an account
$JOURNAL_TITLE [entries|friends|calendar]
Yosemite Sam

[ website | I GOT MY OWN TASER!!! ]
[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

NEW BLOG [03 Aug 2005|08:28pm]
I'm hosting my own blog now, and probably will never update this one again.


Anyhow, I've made a LJ syndicated user for my blog so all of you Live Journal junkies.
So if you friend dasbistro_sam you will see all of my antics, misadventures, and
2 comments|post comment

[22 Jul 2005|01:48am]
It would seem that the Clerk's Office of the House has the nice XML up for votes.
The senate has horrid HTML, and Thomas's bill stuff is as well.  Oh well.  If I was
feeling tough I could use Beautiful Soup on it.
post comment

Python for freedom information gathering [22 Jul 2005|01:43am]
Wow. PATRIOT Act again. Go figure. I'm jamming to the new William Shatner album
(it is AWESOME, BTW) and I was getting curious who were the 43 Democrats who
voted against their party, and why did they do it?

I jumped over to http://thomas.loc.gov and clicked my heels three times. Instantly
I was transported to the vote count. It was a bunch of funky tables with italics and
whatnot. Curiously the url, http://clerk.house.gov/evs/2005/roll414.xml, reveals that
it /says/ it's an XML document. Downloading revealed it _is_ an XML document, with
like actually useful metadata, and it's not some stupid blogging standard thing.

I'm thinking that some enterprising soul can make some nice greasemonkey extensions
for http://thomas.loc.gov. Off the top of my head I can think it'd be nice to be able to
cross referencing links to US Code and other documents that bill modify. And maybe
formatting these votes differently would be good.

In the meantime, I'm not quite ready for javurscript hackery, so, for your amusement
at how much of a nerd I am, here is the little vote dissector I built in python. If you really
wanted to you could do something really crazy with this I'm sure.
from xml.dom.minidom import parse

def ayevotep (v):
  return 'Aye' == v.getElementsByTagName('vote')[0].lastChild.data

def democratp (v):
  return u'D' == v.getElementsByTagName('legislator')[0].getAttribute('party')

def state_name (v):
  l = v.getElementsByTagName('legislator')[0]
  return (l.getAttribute('state'), l.lastChild.data)

doc = parse('roll414.xml')
votes = doc.getElementsByTagName('recorded-vote')
aye_democrats = [state_name(v) for v in votes \
                                   if ayevotep(v) and democratp(v)]


for s,n in aye_democrats:
  print s,n

And here are our winners!

AL Cramer
AL Davis (AL)
AR Ross
CA Baca
CA Harman
FL Davis (FL)
GA Barrow
GA Bishop (GA)
GA Marshall
GA Scott (GA)
HI Case
IA Boswell
IL Bean
IL Emanuel
IL Lipinski
KY Chandler
LA Melancon
MD Cardin
MD Hoyer
MD Ruppersberger
MO Carnahan
MO Skelton
NC Butterfield
NC Etheridge
NC McIntyre
NC Miller (NC)
ND Pomeroy
NJ Andrews
NJ Menendez
NY Higgins
OK Boren
PA Holden
PA Schwartz (PA)
SC Clyburn
SC Spratt
SD Herseth
TN Cooper
TN Davis (TN)
TN Gordon
TX Edwards
TX Green, Gene
TX Ortiz
TX Reyes

I figure I'll just use what state they're from to make wild conclusions to why
they voted for the PATRIOT Act (Texas: they're jerks, North Carolina:
rednecks, Louisiana: hillbillies) until I can find the XML of their personality
profile and campaign contribution lists.
2 comments|post comment

Should your lawyer be expected to spell? [18 Jul 2005|02:47am]
1 comment|post comment

The Star Track [03 Jul 2005|09:06pm]

Fortunately, before coming to Tattoine, R2 had already arranged transport, which is waiting at Mos Eisley, under the command of the Rebellion's other chief field agent and espionage asset. Chewbacca.

post comment

hee [01 Jul 2005|12:04am]
oh the humanityCollapse )
7 comments|post comment

Special Message... [30 Jun 2005|11:53pm]
to you know who:

1 comment|post comment

Remember Kids... [24 Jun 2005|07:23am]
Jedi Knight's == Republicans

I read it on the Internet

2 comments|post comment

More Roger Ebert [22 Jun 2005|01:29pm]
I am surely following the tangents today.  Roger Ebert's closing paragraph of his 'Herbie: Fully Loaded' review is the best part of a silly review of a silly movie:
It goes to show you how we in the press so often miss the big stories that are right under our noses. There is a famous journalistic legend about the time a young reporter covered the Johnstown flood of 1889. The kid wrote: "God sat on a hillside overlooking Johnstown today and looked at the destruction He had wrought." His editor cabled back: "Forget flood. Interview God."
UPDATE: Here's the proper URL:
5 comments|post comment

I Hate Batman Reviews [22 Jun 2005|01:23pm]
Why, why, why, why do I keep reading these 'Batman Begins'.  I always pick the ones that hate the movie, and then I feel like beating people up.  This one is the worst.  If you haven't already seen the film DON'T READ IT.  He spoils the ending like a the crap-ass reviewer he is.


For the folks who haven't seen it read the review from someone who gets movies: Roger Ebert.

3 comments|post comment

More Bats v. Supes [22 Jun 2005|01:16pm]
Here's that Chicago Tribune story from yesterday.  It has since migrated to Florida.

post comment

No one in a batmobile won. [21 Jun 2005|02:20pm]
post comment

You wanna be a superhero? [21 Jun 2005|02:15pm]
Forbes calculated Bruce Wayne's net worth and how much it would cost to be a high end super hero.


Also they have the Fictional Fifteen, the top 15 richest fictional characters.

post comment

Haters [21 Jun 2005|02:05pm]
Why don't people get that Superman is a dick?


(Update: Apparently Chicago Tribune sucks and you have to register.  Sorry.  The story was about how much better Superman is than Batman.)
post comment

Are you ready for a superhero party? [21 Jun 2005|12:53am]
Ok I started to read this out loud to Shannon, and then when she realized how lame it was she ran away.  Now I can't find her!  She's out in the awful city alone!  Help! Batman!

post comment

[20 Jun 2005|11:54pm]
Reason number 572 why I lurve Shannon.


PS. We're both being gross bloggers recently.
post comment

Get it? [20 Jun 2005|07:47pm]
Philippines' Cardinal Sin is dead
2 comments|post comment

Batman vs FF [20 Jun 2005|04:46pm]
Yet another comic book showdown in the Texas A&M student paper.
  • The Fantastic Four are what made modern Marvel Comics.
  • Johnny Storm is way more out of control than Batman
  • The Fantastic Four are a bad team?  Has this guy seen the X-Men?
  • That comic store owner is a complete DC apologist.
Ok, not that I'm the biggest Marvel/FF fan in the world (in fact I'm really more of a Batman fan), but against Batman they'd clean the room with him. Sorry.

1 comment|post comment

Damn Dirty Filker [20 Jun 2005|11:26am]
She's Got a Bantha to Ride
(filked from the Beatles, "Ticket to Ride")

I think I'm gonna be sad,
I think it's today, yeah.
The girl that's driving me mad
Is going away.

She's got a bantha to ride,
She's got a bantha to ride,
She's got a bantha to ride,
But she don't care.

She said that Tatooine
Is bringing her down yeah.
For she would never be free
With the Empire around.


I don't know why she's ridin' so high,
She ought to think twice,
She ought to do right by me.
Before she gets to saying goodbye,
She ought to think twice,
She ought to do right by me.

I think I'm gonna be sad,
I think it's today yeah.
The girl that's driving me mad
Is going away, yeah.


Ah, she's got a bantha to ride,
She's got a bantha to ride,
She's got a bantha to ride,
But she don't care.

My baby wookie, my baby wookie.
My baby wookie, my baby wookie.
My baby wookie, my baby wookie.
1 comment|post comment

The Perfumed Icepick? [18 Jun 2005|06:44pm]
Rep. Henry Hyde [R-IL]: Mr. Chairman, the gentleman from California (Mr. Lantos) has just administered the perfumed icepick.

The What?  The perfumed icepick?  What does this all mean?  dracunculus thinks the whole thing sound vaguely gay.
1 comment|post comment

[ viewing | most recent entries ]
[ go | earlier ]