Skip to content


Excursions – Morocco


June 12, 2010 5:50:02 PM CDT (DFW)

We’ve been onboard American Airlines Flight 36 from DFW to Madrid, Spain for about 20 minutes now. Expected flight duration is about 9 hours and 14 minutes. We’ve backed away from the gate while the pilots finished their checklist. We start the long taxi to the appropriate runway and then stop after only a few minutes. The pilot comes over the PA and announces that they’ve got a tire pressure light flashing, so we’ve got head back to the gate to have the maintenance crew check the tires and pressure sensor. Fine. Trouble is DFW is a busy airport. Our old gate is already occupied, so we’ve got a bit of a wait until another gate opens up. Twenty minutes later we park at a gate.

“Oh gee, that indicator light was in fact the result of a flat tire. And damned if it don’t beat all, you need all them there tires to land without ensuing death and maimery and such, so we can’t just put Fix-a-Flat in it, no sir, what you really need is a new tire. I’m sure I’ve got one sitting around here somewhere, but it’s one of them fancy EYE-tal-yon models, so it’s gonna cost you a bit. ‘How long’ you say? You’ve got a connecting flight to catch? Oh, I don’t know, it’ll prob’ly take about half an hour or so, but since it’s an international flight and since you’ve already detached from the walkway, you’re going to need to remain in your seats for the duration.” [spittoon clang]

Sixty minutes later, the cockpit crew is overheard complaining that the “mechanic” didn’t bring the right wrench for the 777′s lugnuts. (Maybe Boeing uses the Potrzebie System of Measurements).

June 12, 2010 8:40:21 PM CDT (DFW)

We taxi from the gate and take to the skies, 170 minutes after our originally scheduled departure time. Everyone cheers the tardiness. Had the flight deck door been ajar, I’m sure we could have witnessed some manly shoulder punching and purely heterosexual towel snapping, too. Yet, as many of the little kiddies on the plane have already played out all the videogames and read all the inflight magazines, this unfortunate incident effectively chopped three hours out of the evening peace onboard.

June 13, 2010 12:54:37 PM CET (Spain)

We weren’t able to make up any lost time over the Atlantic, due to the fact that American would have to spend some more gas money if they stepped on the throttle (never mind all those missed connections), so we land at Madrid’s Barahas Airport roughly 180 minutes late. Well looky there, yep, it appears we’ve done missed our connecting flight, Iberia 3718 to Boukhalef Airport in Tangier, Morocco, oh, by about 45 minutes. Upon arriving at the gate, we’re informed by the cabin crew that although they personally know of no details on our connecting flights, we will, in fact, be greeted at the gate by ticketing personnel with revised boarding passes and gate information.

Surprise, they lied.

June 13, 2010 2:45:37 PM CET (Spain)

Shortly after disembarking, and thanks to some craftily idiotic Iberian attendant, we became seperated from our fellow travelers. Lorin, Maddie, Sofie and I have been wandering around Terminal T4S at the airport for almost two hours now, looking for someone ANYONE who even knows who in the frak we need to talk to to figure out where in the frak we’re supposed to be. You read that right. No one in the terminal, particularly no one at Iberia Airlines knew what had happened, much less what they were supposed to do about the situation. Everyone we spoke to at the Iberian desks passively “attempted” to reach someone at the American Airlines desk for more information, but they couldn’t find a phone number that worked, or even knew where the American desk was located. Keep in mind that by the time we landed, Barajas had known of the tire situation back in DFW and the ensuing delay for at LEAST nine hours. Feel the burn.

As dumb luck would have it, and no thanks to anyone except ourselves, we found the other members of our party after wandering onto an underground tram, which led us to the terminal at the other side of the international airport. They, unlike us, had been directed straight to the only open American Airlines information desk in Madrid. Although they were spared the three hours of wandering the airport, they were still standing in line waiting to speak to the clerk. Nevertheless, although there were open seats on a flight to Tangier from Madrid that afternoon, American Airlines didn’t want to shell out the cash to pay full price for replacement tickets, since that flight was with another airline. They will only put us on a flight to Tangier that offers a discounted rate, which won’t happen for at least a couple of days. However, they are willing to put us on a flight to Casablanca the following day (even though it is still a five hour drive from there to our destination), and they’ve got the name of a local rat’s nest in Madrid that will give us a free breakfast so long as we pay full price for two rooms. (FYI: The breakfast wasn’t free.)

THANK(frak) You, American Airlines for your deceit and greed. And you, Iberia, for your ineptitude and laziness. And that shitty Hotel Auditórium for your rude reception and wooden mattresses. And the entire Kingdom of Spain for just pissing me off to no end … you make me wish I’d taken French in high school.

June 14, 2010 11:16:11 PM WET (Morocco)

Despite La Main de Fatima Frappant, we finally arrive in Cassablanca, Morocco and look for the check in desk for a flight from here to Tangier, paid for out of our own pockets. It seems American Airlines couldn’t be bothered to pay for us to travel domestically to Tanger. I guess I can understand, since they at least got us within the same time zone as our originally ticketed destination.

June 14, 2010 3:18:00 PM WET (Morocco)

We land in Tangier, Morocco via Royal Air Moroc Flight 474. We’ve missed well over 24 hours of our Moroccan vacation thanks to a jerk in Dallas who won’t even bother to kick the tires before pulling out of the driveway. Thanks for making sure we didn’t blow up on touchdown, ya jerk. But on a happier note, our brief stay that night at the Hotel Andalucia Golf Tanger (5*) was fantastic.

And thus we begin our Moroccan vacation.

June 18, 2010 2:30:00 PM WET (Morocco)

So get this … a business man, a politician, and a professor walked into an office in Rabat …

Today we spent 45 minutes with the president of the Moroccan senate, Mohamed Cheikh Biadillah. The American political equivalent would be a hybrid of Joe Biden and Nancy Pelosi. He was intelligent, forthright, generous, and quite charming. We talked at length about international and regional politics, the Western Sahara issue, interest groups, and campaign financing. He spent a fair amount of time discussing the Texas Legislature, one of my favorite topics, given that Texas Representative Will Hartnett was part of our small delegation.

To be continued…

Posted in Humor, Travel.

Tagged with , , , .


Final Thoughts on the Ending of Red Dead Redemption [Spoiler Alert]

Perhaps you’re not much of a video gamer. Perhaps you’re not much of a fan of old westerns. If both of these statements are true, then you’ve likely never played great western-themed games like Gun or Red Dead Revolver. Be that as it may, Rockstar Games’ Red Dead Redemption is frackin’ brilliant and you’d be well served to give it a try. It has a powerful storyline and some wonderful gameplay, and yet the ending is what it’s all about. If you don’t like spoilers or if this discussion doesn’t interest you, then you should definitely move along before someone gets hurt.

Continued…

Posted in Video Games.

Tagged with .


A Storehouse for State Roll Call Votes?

There doesn’t seem to be much in the way of infrastructure when it comes to collecting, storing, and analyzing state legislative roll call votes. Keith Poole and Howard Rosenthal have an extremely comprehensive dataset of roll call votes for the United States Congress. The folks at UC Berkley have a large collection of roll call votes for various legislative bodies around the world at VoteWorld. Nevertheless, there’s nothing that I’ve found that would indicate much of a comprehensive place for state legislative roll call data. What little I’ve found is in the form of:

  • Gerald Wright’s roll calls across all 50 states, but only from 1999-2000.
  • Seth Masket’s impressive roll calls for California ranging from 1901-2003.
  • Boris Shor has data from all the state legislatures, but I’m uncertain how far back it goes, and as of yet it’s unreleased. (I think they’re still waiting for a few journals to publish some of their works in progress).
  • I’ve heard a rumor that Mark Jones at Rice has data on the Texas House stretching back to 1973, but my repeated attempts at contacting him have utterly failed.
  • It looks like Robert Hogan at LSU has state house roll call data for 28 states from 1995-2000, but he hasn’t released the data either it seems.
  • ProjectVote Smart indeed has roll call votes for a great number of state legislators, but they only have the resources to keep track of votes on key bills, not the complete record.
  • CRAN, the Comprehensive R Archive Network, houses a variety of roll call datasets for a few key legislative sessions, but it’s very much an ad hoc experience.

So my question for all involved is this: “What the hell?” As political scientists, we love data and lots of it. I know there’s lots and lots of good data on state legislative roll call voting sitting out there somewhere. But it sure as hell isn’t easy to locate and analyze it.

Now while I’m yelling about researchers hoarding state data, I need to appropriately yell at myself too. I’ve got a collection of all the roll call votes (or as we call them here, “record votes”) for the Texas House from 1995-2009 and so far I haven’t really shared them with enough folks, hence this post. I need to find a place to put these votes so that everyone who wants to analyze them can get to them. Moreover, I don’t really want to just drop a gigantic text file as a web link on some random page. I would much rather see a more comprehensive mechanism by which any roll call researcher could contribute to and/or use data from a large pool.

I imagine such a mechanism as a web-driven database, where one can browse the data from each of the states and import/transcode/export roll call votes in a variety of formats, including everything from the compact VoteView style to a comprehensive SQL database dump. Ideally, if you’re using R you could automatically draw the appropriate dataset over, without any manual chicanery. So far I haven’t even seen such a tool for any legislative body’s votes, much less that for state legislatures.

Any comments from those in the field? Is there any interest in such a contraption? I mean, I could implement a fancy prettified roll call storehouse, but if I’m the only one using it then it doesn’t do anybody a damned bit of good.

Posted in Politics.

Tagged with , , , , , , .


Can AT&T hear me now?

Verizon iPhoneAT&T’s 3 year exclusive contract with Apple’s iPhone ends in roughly 190 days. That means, in about 191 days, AT&T will be a few million customers short. I cannot wait until I can give them the finger. So what if my contract isn’t up yet? I will gladly pay the early termination fee if it means I get a new iPhone that uses the Verizon/Sprint network. I’m sure AT&T will continue their absurd ad campaign asserting that Edge is really 3G and it can compete with CDMA EVDO Rev. A.

Posted in Tech.

Tagged with , , , .


TexLege for iPhone Released!

TexLege Icon
Finally! I’ve successfully linked my passion of politics and gadgets! My iPhone application for the Texas Legislature is released and available for public consumption from iTunes. Please head over to my TexLege site for screenshots, feature listings, or for questions and support. Also, if you’re a government student in college, I will happily send you an iTunes coupon to download it for free (although Apple limits me to 50 coupons). Nevertheless, even without the coupon, its only $2.99.

Posted in Politics, Tech.


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 , , , , .


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 , , , , .