Monday, May 30, 2005
Bonus Memorial Day Kid Blogging
On Saturday YW, along with a few thousand other scouts and parents, placed flags by all the graves in the Golden Gate National Cemetery. We were in a section with lots of WWII graves. Another Cub and Dad were with us as we went down the line. The Dad was reading the markers (digression: I don't think he's read much history) and marvelled at how the last three graves in a row we passed had been boys/men that died at 18. Hank's quote of the day: "It take's a lot of 18 year olds to win a war." On the way out of the cemetery YW and I were taking turns reading the names on the markers. One pair of adjacent graves was of two brothers, one died in 1943 and the other 1944. It's no Saving Private Ryan, but it choked me up to read those two names.
And for those of you following along at home, YW is no longer wearing his orange Tiger Cub hat and neckerchief. He's been promoted and is now working on earning his Wolf patch.
Friday, May 27, 2005
Metablogging
Friday Random 10
- Dancing Bauhaus
- Opening Mandelbrot Blue Man Group
- Jenny Sleater-Kinney
- Oh, Doctor Phil Alvin
- The Hurricane Song Tom Glazer
- Somebody's Body (July) They Might Be Giants
- Sister Of Night Depeche Mode
- Red Vines Aimee Mann
- TeenAge Oddball The SweetHearts
- Stormy Monday Blues Jethro Tull
Friday Kid Blogging
I haven't taken any pictures since last weekend, so I'll put up another from the Birthday Party. This one shows YA mourning the imminent destruction of Violet. He did, though, manage to swallow his grief, along with all the candy he scrounged up after she was disemboweled. At YW's last Birthday Party we had a Nemo piñata. I've decided that I don't approve of the cartoon character themed piñata. It's too disturbing for me to watch them get thrashed. Poor Nemo looked like a fish that had been floating dead in the tank for a week; all chewed up and floppy.
Tuesday, May 24, 2005
Ignorance On Display
Monday, May 23, 2005
Bonus Monday Kid Blogging
YW attended a Birthday Party on Sunday. Scheduling at Hank's Place being what it is, I was on kid-duty and so YA had to come along as well. Luckily, there was a jumper (Spongebob, in case you're wondering). YA is wild for jumpers and so spent four hours bouncing around, with brief interuptions for eating candy and cake. YW likes them a bit as well, but he did also participate in the other party games. And yes, I smudged out that other kid's face since I didn't ask permission to put her visage on the internets.
Saturday, May 21, 2005
That Word Doesn't Mean What You Think It Means
"I've made my position very clear on embryonic stem cells. I'm a strong supporter of adult stem cell research, of course. But I have made it very clear to the Congress that the use of federal money, taxpayers' money, to promote science which destroys life in order to save life is -- I'm against that.And here's the reason why he's an idiot:"Therefore, if the bill does that, I will veto it.''
The bipartisan bill, which has about 200 co-sponsors in the 435-member House of Representatives, would allow researchers to use surplus embryos created at in-vitro fertilization clinics. Such embryos are now usually destroyed, and the bill provides that those who want to donate their embryos for research couldn't be paid and would have to give written consent.Even if you accept that the research "destroys life", a highly dubious claim, given that large numbers sexually active women destroy a similar "life" when they have their periods and any non-implanted embryo they might have inside them is lost forever, the "lives" in question are on their way to the autoclave anyway.
Friday, May 20, 2005
Friday Random 10
- Land Of Sunshine Faith No More
- Rudderless Lemonheads
- It's Alright Big Head Todd & The Monsters
- Living In Exile Sleater-Kinney
- Long Time Now Tiddas
- Same In The End Sublime
- The Cat's Dreamin' Clifton Chenier
- Out In The Parking Lot Body Count
- Elaborate Sun Pleasant Grove
- Shepherds Delight The Clash
Friday Kid Blogging
Here's YW in late spring / early summer just a short time before we packed everything up and moved from Minnesota back to California. He's a few months less than 2 years old and caught in the act of indicating it's time to leave the park. He would run and run and run and after a while would begin to try to eat rocks. Eating rocks == time to go.
Wednesday, May 18, 2005
Commie Traitor Bitch
What's Wrong With This Picture?
Welcome back. Now answer me this, what the fuck is wrong with that picture? Winning Hearts and Minds does not seem to be on the official list of Things To Do. A tank with name "New Testament" (with the name on the 120mm cannon for fuck's sake) driving down the road in Iraq. I'm thinking there are more than a few Iraqis that read English. But we're not a Crusade in Iraq, oh no, that's the last thing we're doing there. And let's not even get into the acutal message contained in the New Testament.
Tuesday, May 17, 2005
Drafting the Ignorant
Digression: When I was going to high school in LaCrosse, WI (go Red Raiders! (I'll bet that's a mascot that's been changed since then)), I rode my bike to school in nice weather. My route took me past the local Army Recruiting Center. At the time you could enlist for either 4 years or 2 years. The windows of the recruiting center had posters showing all the cool things you could do in the Army. The ones for the 4-year term showed people using computers, fixing helicopters, fixing tanks, staring into radar screens, etc. The ones for the 2-year term showed people driving tanks, jumping out of airplanes, shooting guns, etc. At least then, even without a war going on, they were honest enough to tell you that doing the armed part of the armed forces required a couple of years of your time for it to be worthwhile.
Friday, May 13, 2005
Friday Kid Blogging
Here's YA, a bit older than YW in the picture below, but looking pretty darn cute on the cow blanket. And would you look at that, it's been a week and I haven't done a single post. I'm a bad boy. Here's my excuse: I don't want my Mixmania playlist to fall off the front page, so if the recipient of my disc comes looking she'll be able to find it without too much trouble.
Friday, May 06, 2005
Friday Kid Blogging
Here is one of the very first pictures of YW. In this one he has been weighed and APGAR-ed and is taking his ease on the bed. Note how the point on his head has such a jaunty tilt. Note how he doesn't look to pleased with himself. Frankly, if it took me 28 hours to be born, I'd be pretty cranky too.
Friday Random 10
- Don't Be So Sad Renée Geye
- Jailhouse Rock Elvis Presley
- Back Porch The Presidents Of The United States Of America
- Asian Man Skankin' Pickle
- My Generation The Who
- Thinking Of Suicide Social Unrest
- St. Robinson In His Cadillac Dreams Counting Crows
- Let's Cook Mental As Anything
- When I Was A Cowboy Chris Wilson
- Country Funk Southern Culture On The Skids
Thursday, May 05, 2005
More Geekiness
class Item:
"""
) Placeholder class that gets mutated as appropriate when being loaded with
) various table entries
"""
def __init__(self):
pass
## __init__ ##
def __repr__(self):
ret = []
for colName in self.__dict__.keys():
ret.append(" %s = %s" % (colName, self.__dict__[colName]))
return "<\n" + '\n'.join(ret) + "\n>"
## Item ##
def getTable(db, tableName, extraTables = [], extraSQL = ""):
"""
) getTable(db, tableName, extraTables = [], extraSQL = "")
)
) Given the name of a table loads as much as all of the table into a
) dictionary of Item instances where the dictionary is keyed on the primary
) key of the table. If the primary key is composed of multiple columns, the
) keys are tuples, otherwise the key is just the single value.
)
) Parameters:
) db - a connection to the database
) tableName the table to be loaded
) extraTables - an optional list of table names that need to be part of
) the 'from' part of the SQL
) extraSQL - an optional string that fine tunes the SQL to reduce the
) number of table entries that get loaded
)
) Example: if tableName is 'person' and tableList = ['company'] and
) extraSql is "person.companyid = company.id and
) company.name = 'Walmart'"
) you end up with a query that looks like:
) SELECT person.*
) FROM person, company
) WHERE person.companyid = company.id
) AND company.name = 'Walmart'
)
) if tableList and extraSQL are left unset, you end up the SQL
) "SELECT person.* FROM person"
)
) Returns: a dictionary of Item instances where each Item gets customized
) with the column names of the table. The keys are the primary
) keys of the table
)
) Example: Let's say person looks like:
) +-----------+-------------+-----+
) | Field | Type | Key |
) +-----------+-------------+-----+
) | id | int(11) | PRI |
) | firstName | varchar(50) | |
) | lastName | varchar(50) | |
) +-----------+-------------+-----+
) you end up with a dictionary keyed on the values from the id
) column where the values are instances of the Item class with
) attributes id, firstName, and lastName.
"""
# First get the names of the columns and determine which column(s) is(are) the primary key(s)
colNames = []
primaryKey = []
tableDes = m.query("describe %s" % tableName)
for column in tableDes:
colNames.append(column[0])
if column[3].upper() == 'PRI':
primaryKey.append(column[0])
nCols = len(colNames)
fromStr = ', '.join([tableName] + extraTables)
sql = """SELECT %s.* FROM %s""" % (tableName, fromStr)
if extraSQL:
sql += " WHERE %s" % extraSQL
dict = {}
entries = db.query(sql)
for entry in entries:
item = Item()
key = []
for i in xrange(nCols):
item.__dict__[colNames[i]] = entry[i]
if colNames[i] in primaryKey:
key.append(entry[i])
if len(key) == 1:
key = key[0]
else:
key = tuple(key)
dict[key] = item
return dict
## getTable ##
As you can tell, I really like the doc strings. Use them and pydoc and you've got your programming documentation done.
Tuesday, May 03, 2005
Mixmania!
- Espionage Green Day
- The Road To Hell (Part II) Chris Rea
- My Own Worst Enemy Lit
- Teen Angst (What The World Needs Now) Cracker
- Let Your Love Go Bread
- Mamma Possums Mojo Nixon & Skid Roper
- Deep Dark Hole Los Lobos
- More Human Than Human White Zombie
- South Australia The Pogues
- I Will Still Be Laughing Soul Asylum
- Back Porch The Presidents Of The United States Of America
- Maggie Campbell Dave Alvin
- Too Bad About Your Girl The Donnas
- Freedom Of Choice Devo
- Won't Get Fooled Again The Who
- 7 O'clock News-Silent Night Simon & Garfunkel
- Tired Of You Foo Fighters
- Rusty Cage Johnny Cash
- Rude Mood/Hide Away (Live) Stevie Ray Vaughan and Double Trouble
- What's My Age Again? Blink 182
- R.A.M.O.N.E.S. The Ramones
- (He'll Never Be An) Ol' Man River TISM (This Is Serious Mum)
- Jenny Says Cowboy Mouth
There is no theme. It's just a bunch of songs that I enjoyed when they came around in the iTunes random playlist.
Update: In the original version I had a song by The Bloodhound Gang, but not wanting to cause damage to unsuspecting young psyches, I chose not to include a song that includes the line "...let the motherfucker burn, burn motherfucker, burn." Instead I threw in the song by TISM which is all about the joys of trying the drugs that killed various famous people: "I'm on the drug. I'm on the drug. I'm on the drug that killed River Pheonix."
Younger Brother Syndrome
H -YA are you ready to get dressed?
YA - I want to go camping
H - YA are you ready to go to school?
YA - I want to go camping.
H - Wouldn't you rather go see Teacher Karen?
YA - No, I want to go camping.
He doesn't even know what camping is, but since YW did it, he should get to do it too. I have a younger sister, so I am at a disadvantage in figuring out his thought process: I'm not a younger brother and I don't have a younger brother. In addition to needing to go camping, he also needs to take swimming lessons and have his own bicycle (or as he says it, bike-isul).
Soccer season should be especially exciting; I expect him to charge onto the field at some point in every game YW plays. Speaking of which, I'm signed up to be YW's coach. I think I might have to see the movie Kicking and Screaming to see what's in my future.
Monday, May 02, 2005
Bonus Monday Kid Blogging
The Cub-On was big fun. We boated, we archery-ed, we BB-gunned, we hiked, we fished, we slept on the ground. It was also proof that I shouldn't hang out with Ordinary Fucking People (Pop Quiz: what movie is that phrase from?). There were way too many completely un-parented kids at the Cub-On. Not kids there without parents, kids whose parents don't do much actual parenting. If you're in a clump of 20 or more tents and your kid is, first thing in the morning, running around shouting nonsense sounds at the top of his lungs, your job is to redirect his energy to something less noisy or tell him to quiet the fuck down or something. If you're on a nature hike and your kid is constantly going off the trail and crushing plants when he's not just hitting them with sticks and snapping off branches, your job is to make him stop, not smile vapidly while at least half the grownups present tell him to knock it off. Other than that it was great. Oh, and it's a Bluegill, which, mercifully, was too small to keep so we threw it back.
Update: And for those of you paying attention, yes, he is wearing the same shirt in this picture as he is in the Friday Kid Blogging post below. He really likes the flaming Batman motif.