Skip to content


Partisanship in the Texas House of Representatives

This is from the work I've done in my dissertation. This chart shows the level of partisanship between the political parties in the Texas House of Representatives across 18 years of record voting (otherwise known as "roll call votes").

The center line, at 0 should be your reference when viewing this movable chart. The further away a party is from this center line, the more partisan their voting behavior. To help simplify this, the bigger the circle, the less bi-partisan they are.

I've collected all the roll call votes from the Texas House of Representatives from 1991 through 2009. Then I use a dimensional scaling method, W-NOMINATE from Keith Poole's VoteView research. I also do some creative aggregate calculation for the political parties and "Speaker's Teams", and squeeze in a nifty little trick from Gerald Wright that applies a Groseclose-Levitt-Snyder transformation to get all the sessions within the same scope.

[Updated with 2009 data.]

Posted in Politics.

Tagged with , , , , , , , .


The Trouble With Regular Expressions

I have this problem with regular expressions. They're too handy for their own good.  You say you don't know what a regular expression is?  Well, let me just tell you, you don't know what you're missing out on.  Think of it like a really super-duper complicated way of searching for something real specific when it's slapped in the middle of a whole back of other crap you don't want to even mess with.  But it's not even just searching for something, you can search and replace really complicated text that's just too big to do by hand.
Regular Expressions Book

Regular Expressions Book

More than that, it's not like you just want to find every reference to the name "Meg" on your computer and change it to "Poop" ... you can use regular expressions to transform Huge Text File (A) into just the  little sub-sections of important stuff ... or you can convert (A) from one textual format to another, like from HTML to Whiskey, or whatever the hell new-fangled nonsense is going on out there in web junky land. There are plenty of programs out there that make use of regular expressions and you don't even know about it.  I first started playing around with them way back in 1995 or so, not long after Rich Siegel started selling BBEdit for Macintosh, and I've been using them since.  Here's an example ... say you have a text file that looks like this: Jimmy Jack Johnson sells 43 seashells to Yo Momma. She paid about three-fiddy. You can do a regular expression find/replace on that text, which would look something like this: 's/^(J.*)\ J.*\ (J.*)\ (s)...s\ ([0-9]+).*\r/\1\ sucks\ \4\ \2\3\.\r/g' Which would now make that first text look something like this: Jimmy sucks 43 Johnsons. This sort of thing would be great for pranking your frienemies, but I have yet to hear of such a thing catching on.  Which brings us to my current dilemma.  I've come to rely on regular expressions so much that I believe they can do anything.  Unfortunately, I think I'm demanding too much, or at least my computer is unwilling to give me everything it's got in order to accomplish this task.  I have a  text file, freshly spit out from Excel, that has 43 columns of textual data over 160 some-odd rows ... not that big of a file, it's only got about 43,000 characters.  It's tab-delimited, meaning that in the text file, there's a unprinted tab character (\t) between each section of the data, to separate out each of the cells.  What I wanted to do was churn this tabbed text file into an XML .plist, or Property List file.  I'm sure there's a more elegant way of doing this (without having to do it by hand, obviously), but I chose to create a regular expression ... here's what the "Search For" string looks like: ^(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\t(.*)\r And here's what the "Replace With" string looked like: legislatorID\r\1\rlegtype_name\r\2\rlegtype\r\3\rlastname\r\4\rfirstname\r\5\rmiddlename\r\6\rnickname\r\7\rsuffix\r\8\rparty_name\r\9\rparty_id\r\10\rdistrict\r\11\rtenure\r\12\rpartisan_index\r\13\rphoto_name\r\14\rbio_url\r\15\rnotes\r\16\rgallery_desk\r\17\rcap_office\r\18\rstaff\r\19\rcap_phone\r\20\rcap_fax\r\21\rcap_phone2_name\r\22\rcap_phone2\r\23\rdist1_street\r\24\rdist1_city\r\25\rdist1_zip\r\26\rdist1_phone\r\27\rdist1_fax\r\28\rdist2_street\r\29\rdist2_city\r\30\rdist2_zip\r\31\rdist2_phone\r\32\rdist2_fax\r\33\rdist3_street\r\34\rdist3_city\r\35\rdist3_zip\r\36\rdist3_phone1\r\37\rdist3_fax\r\38\rdist4_street\r\39\rdist4_city\r\40\rdist4_zip\r\41\rdist4_phone1\r\42\rdist4_fax\r\43\r\r Needless to say, it did not go over well.  BBEdit died after ten minutes of churning.  Perl sucked up 2 Gigs of RAM before I had to kill it.  Sure I could process the file little bits at a time, but wouldn't that be taking the fun out of regular expressions?

EDIT / Update: 

Yeah, about all that. With a tiny bit of touching up, a demo version of TextMate processed the whole file in about 6 seconds. Sounds like someone’s going to actually have to pay for a software registration when the demo expires. Nothing like knocking my socks off and shaming a few industry leaders to earn your keep. Nice job there buddy.

Posted in Humor, Tech.


Allow me to expound on my car’s litany of woes.

audi So I have this great car, a 2002 Audi A6 Quattro (2.7L Bi-Turbo).  Not the one pictured on the right, but close enough.  My car and I have this special relationship.  One day I'll tell you all how it started, but not today.  Today, you see, I'm telling you how it's likely to end.  So we've got this special relationship.  It drives me to school and I fix it up when it breaks.  Lately, there's a lot of the latter and not much of the former.
  1. It all started going downhill last year when I noticed that it literally spewed out any gas over 3/4 full in the fuel tank.  Since this job didn't qualify as a DIY, I took it to the dealership.  $2,600 later and the tank fills just fine.  Luckily, later that year Audi decided to fix this defect in the whole line of cars, and thus refunded me that expense.
  2. Then I got this check engine light (CEL) ... the computer/scanner tells me that the engine is running too lean, meaning it's got too much oxygen coming in to the combustion chamber.  After a few weeks of hunting down cracked and broken vacuum hoses throughout the engine bay, the code now stays off and the engine runs great.
  3. A few months later, I notice that during a heavy rain the rack that holds the battery, along with the brake boosters, master cylinder, and ECM module filled completely with rain water.  Audi didn't think to remove a plastic cap that drains this out ... Sadly, by the time I fixed it, the brake fluid reservoir and brake boosters got water in them, then rusted.  So I flush it as best I can, but now my brake booster squeaks like nails on a chalkboard every time I pump them.
  4. In the course of flushing my brake fluid, I figured I might as well replace the brake disc rotors and pads.  This is about a month ago.  While midst replacement, I notice that a CV joint boot that holds in axel grease and protects the joint had recently obliterated itself.  The clue to this issue was the lack of axel grease on the front drive axel, yet everywhere else around it, such as the wheel well, brake rotors, brake calipers, suspension linkage, yeah ... all that crap had lots of axel grease when there shouldn't be any.  Funny how that happens.  I replaced the front drive axel (which comes with the CV boots) and all was well...
  5. Then I got another CEL ... this one told me that I have a stuck valve in my torque converter.  I had seen this particular code come up once before about a year ago, but it went away.  Looking online, folks said this generally comes on when the Automatic Transmission Fluid (ATF) is too low.  Odd, given that my friend/neighbor and I had changed the ATF and transmission filter about a year ago.  Interesting.  When I approach the Audi dealer about doing another ATF change, thinking I must have done it wrong, the Audi dealer refuses, saying the fluid is good for the life of the car ... I call horseshit. This leads me to my latest ...
  6. I take the car, which now is showing some symptoms of transmission issues, to a european transmission rebuilder, hoping that a proper fluid change will fix my problems.  Sadly, after several days on the lift, they inform me that the low fluid was due to a leak.  They fixed the leak, but the damage was already done.  Clutch plates had burned.  The torque converter is in serious trouble.  My trusty old ZF 5HP19FLA transmission isn't so trusty anymore. The estimated fix for this one?  Between $2,800 and $3,400 US dollars.  Holy shit.
  7. I'm thinking that I should just drive it until the transmission collapses in a whimper or calamitous implosion.  But that might happen in the next couple of months.  I'm not really set up to spend $3,400 on a transmission rebuild, but then again I'm not set up to buy another car when this one completely fails, either.
  8. Oh yeah, I almost forgot.  When you drive the car above 60 mph, the whole thing shakes like your granny's false teeth in a blizzard.  Looks like some control arm bushings need a little love, too.
  9. I love my car.

Posted in Cars, Humor.

Tagged with , , , , .


Break my Internet, will ya? Why you little…

 
Stupid Computers

Stupid Computers

God only knows what happened to the router tonight.

One minute I'm surfing and the next, the router is dead and I can only get pings on the server.  I restart the router, because it's doing the same thing it did when it overheated this weekend ... absolutely nothing.  It doesn't come up.  I take it up in the attic and plug it in the monitor and it starts up just fine.  Bring it downstairs, plug it in, nothing.  The difference is that upstairs, there's no ethernet ... downstairs I've been plugging everything back in, including the network.

So I unplug the ethernet cables and it starts.  Then I get down a spare switch from storage, plug the router into the cable modem and the spare switch and it starts, and the spare switch now has internet access.  Take that same cable and move it from the spare switch to the main switch for the LAN, router crashes.  What. The. Fuck.

Then I notice, as soon as I plug it in the network the link light goes crazy ... but it's not the only one.  The link light on the server is burning it up too.  These two devices are talking so much that nothing else can get through ... why won't they shut the fuck up so I can get back to surfing?

I figure that somehow they've decided to use the same IP address or something.  Changed the IP for the router ... same thing, like two Chatty Cathy's.  I change the internal IP address on the cable modem, nothing.  Can't change the IP on the server or everything blows up, so that's out.  I search through the logs on the server as well as the router, and everything is cryptic as usual ... nothing stands out.

So then, in a fit of rage I unplug everything in the entire network closet.  AppleTV, XBox, Denon, DirecTV, server, router, switches, networked storage, Time Capsule, everything.  The sudden quiet isn't as calming as a layman would think.  Turn everything back on and guess what.  Internet works.

Stupid computers.

Posted in Tech.


GTA IV: TLAD / Infinite Double-T Custom Bikes Without Cheat Codes

Double-T Custom

Double-T Custom

If you are a video gamer, and you've played Grand Theft Auto IV much, you probably recently purchased the Lost and Damned add-on content.  Motorcycles and biker gangs are the theme, and the single best bike in the game is the Double T Custom. It's extremely fast, it's stable, and therefore naturally it's extremely rare.  In fact, without using cheat codes there seems to be only one fleeting opportunity to acquire the Double T Custom, immediately following the "Shifting Weight" missing with Malcolm. That is, until now.  I've found a way to get as many of these elusive bikes as you care to, without cheat codes (which block any future achievements you might otherwise get).  After you complete Shifting Weight (and possibly Roman's Holiday), if you drive around the block just north of Playboy X's old apartment (from GTA IV) you will see Malc working on his Double T Custom.  If you get off your motorcycle and walk up to him a "friend" mission starts.  However, if you remain on your bike, you can ride up and bump him (don't kill him) and he'll walk away.  Once he's gone, you can take his bike to the nearest save point parking spot.  After you've dropped off the new bike, you can head on back to Malcolm and magically he's got a new Double T Custom.  Repeat this friendly theft to your heart's content. Incidentally, the save game parking spots you used in the standard GTA IV (like that in front of Playboy X's apartment) are still usable for Lost and Damned saves, although it seems you can only perpetually save up to two vehicles at a time, so spread those Double T Customs around.

Posted in Video Games.

Tagged with , , , , , .


Thank God we got this settled…

 
Jesus riding a dinosaur

Jesus riding a dinosaur

So it's been said that the 81st regular session of the Texas House of Representatives would be a dull one.  The Speaker of the House is not Tom Craddick, much to everyone's surprise, so no more Texas State Troopers storming the chamber to prevent a violent mutiny.  The public already knows about all the ghost voting, or as I like to call it "Surprise, Representative Alonzo, you're now a Republican", so there's no more excitement there.  But little did we know that Representative Charlie Geren from Texas' 99th district had a little nugget (nougat?) of legislative gold in store for us.   Continued...

Posted in Humor, Politics.

Tagged with , , , , .


Porn Industry Stimulus Package

Woody as Larry

Larry Flynt (of Hustler Fame) is tired of seeing all this good money go to bad people, what with all these slick auto manufacturers rolling in the hay with our hard earned virgin taxes.  So, dear old Larry is looking for a little government assistance for something a little more near and dear to our hearts, or at least our loins... He's asking for a measly $5 billion to help out the US porn industry.  Now some of you may shrug this off as excessive or just silly, but here's some figures to ponder...

 

Continued...

Posted in Humor.

Tagged with , , .


Politics and Football

Two of my favorite topics ... but only when both are going my way.  

Posted in Politics.

Tagged with , .


Nashville Pussy

Highslide JS

These folks were the opening act for Reverend Horton Heat. Sort of like Motorhead meets Playboy. Wild. Great Southern Hard Rock.

After the Rev. finished his main set, hairy dude here came back on and helped perform a great rendition of "Ace of Spades" ... I was deaf for two days.

Click on the picture for a larger image.

Posted in Music.

Tagged with , .


Free Adam “Bullet Proof” Reposa

What a wanker

So Adam Reposa, heretofore known as "Bulletproof", is criminal defense attorney in Austin. It just so happens he attended UT Law with Lorin. It just so happens Bulletproof has managed to get into a little stink with a Travis County Court judge when he made an obscene jester at the opposing prosecuting attorney. This "simulated masturbatory gesture" landed him a Contempt of Court charge as well as 90 days in jail.

Granted, if I ever find myself in a Travis County jailhouse after a heavy night of binge drinking and a few smashed up cars in my rearview mirror, I would probably give Bulletproof a ring.  It sounds like the prosecutor really pissed him off with some legal objection, so I'm sure it was a deserved response.  But still, I'm left wondering WTF?

 Here's the original report from K-Eye News.  BP has since returned before the judge and "apologized" (with his middle finger, assuredly), but the judge followed through with a sentence of 90 days in jail.  Here are Bulletproof's comments following the sentencing. My favorite quote:

"I'm not very good at looking contrite.  All I do is wake up in the morning and fight the government."

The backlash is even more amusing, given his sudden prominence in a number of blogs, (including this one?) Please click on through at some awesome YouTube footage of his commercials.  What a guy.

 

 

Posted in Humor.

Tagged with , .