Archive for August, 2008

Yes, I’m still a DVORAK user

Thursday, August 28th, 2008

Yet again research shows that typing comme moi nets benefits.

Discover Magazine on Dvorak keyboards

I know ‘e’ll dump your skinny arse for me
break
’cos mum taught me ’ow to make a proper cup ’ah tea

Lady Sovereign or Lilly Allen, call me.

Ruby Debugger Things I Always Forget

Sunday, August 24th, 2008

Continuing on a theme seen about Perl. Basic commands are not covered ( list , print, continue, etc. )

  1. Install rdebug: sudo gem install rdebug -y

  2. Open a session: rdebug script

  3. Always show a listing after every command: set autolist

  4. Show a variable consistently: display variableName

  5. …or the result of a method on a variable: display variableName.methodName

  6. Conditional break…conditionally: break ./fileName:lineNumer [if condition]

  7. See where you are in the stack ( especially handy if you like recursion, like me ): where

  8. Move up/down in the stack: up/down

  9. Go to the nth frame in the stack: frame n

    (more…)

The Wisdom of Adam Savage

Sunday, August 24th, 2008

Jack of all trades
master of none
thought often better than
a master of one

Adam Savage quoting an English maxim at H.O.P.E.

Tw00t

Friday, August 22nd, 2008

Against much better judgment Lauren has explained that she does not any longer want to be my API for interfacing with Twitter:

Steven: Hey did you know Lambie is in the panel picker for SXSW
Lauren: Yes. He sent a twitter note about it….etc.

Today I join, under a great curmudgeonly cloud. Upside, I’ll be much more in the know about parties during SXSW, so, yay.

http://twitter.com/sgharms

Information Shadows

Thursday, August 21st, 2008

I found this presentation on information shadows by Mike Kuniavsky via Daniel’s site. Given my interest in Symbolic Systems, it really hit a sweet spot. Here’s a short abstract:

My presentation, called Information Shadows: How ubiquitous computing serializes everyday things (1.2MB PDF) is my attempt at showing how ubiquitous computing technology is, in essence, turning whole classes of everyday objects into serials, or services, by creating pervasive digital access to the objects’ metainformation, their information shadows. In the process, I talk about blenders, timeshares, Cuddle Chimps, City Carshare, and Exactitudes. I think it’s a fun talk, and I’m really happy to have had the opportunity to articulate these ideas in this forum.

Source

Around the 3rd section I lost the flow of the argument, so I wrote out this précis to try to help me keep the ideas straight. If, after seeing the original, you want to see an attempt at condensing the material read on.

(more…)

Much hay has been made of late about Katy Perry’s “I Kissed a Girl” ( no link to your site from my page, you singer of evil odes ).1

First, is there anyone who doesn’t see this as cynical posturing? Could it be anything but a display to rankle the Conservative Establishment (tm) as a means to guaranteed exposure and sales? After the faux-lesbianism that was t.A.t.U, after the question was explored by Tina Fey and even Roseanne Barr, I can’t believe there’s enough moral outrage left in this issue to squeeze out into that nectar most irresistible to the profit-pollenating bees of controversy. But even when you run out of Christian conservatives, you still have at least two huge sects wherein this sort of thing is haraam-enough to generate sales.

The song is evil because it celebrates using people.

Opines “Perry”:

I kissed a girl and I liked it
The taste of her cherry chap stick
I kissed a girl just to try it
I hope my boyfriend don’t mind it
It felt so wrong
It felt so right
Don’t mean I’m in love tonight
I kissed a girl and I liked it
I liked it

No, I don’t even know your name
It doesn’t matter,
You’re my experimental game

Kissing is a special activity whether your proclivities bend to the gay or straight ( whatever those terms really mean ). In said act the kissed feels special, magical, and the kisser feels a different, but equally important magic.

But for “Perry” this act, described supra, has no magic. Showing absolute disregard for the basis of Kantian-Christian ethics, her experience categorizes her “other” as a thing, a tool, a means to an end and not a person per se.

If we changed the words “a girl” and made the singer a man would any of these formulations be tolerated?

  • I kissed a fat chick … she’s [you’re] my experimental game
  • I kissed a black chick … she’s [you’re] my experimental game
  • I kissed a married guy … he’s [you’re] my experimental game
  • I kissed a deaf / blind / retarded girl … he’s [you’re] my experimental game

No, they wouldn’t and damn right; they celebrate a selfish paragon of arrant douchebaggery. Close your eyes and imagine the “churlish frat daddy on Spring break” singing the first one and then high-fiving his ’bro as the “fat chick”, heart full of the “ohmygod he actually thought I was the cute one this time”, came up behind the conversation just in time to get her fragile emotional vessel crushed.2 Gets your dander up, no?

Yet because of the cultural infatuation with the Sapphic taboo — especially if they’re young, nubile, and have silky hair like Portia de RossiGeneres — we let unbounded selfishness get a pass. This is wrong.

“The girl” in question was a person and this song completely ignores that. She might have been in the midst of a sexual identity crisis as well and that kiss was meaningful to her, now it’s a cheap game for some self-centered, meretricious, attention-whore.

Selfish bitch.

As if celebrating using people wasn’t evil enough, the song furthers a pernicious form of misogyny: the misogyny perpetrated by the female upon female for the titillation of the heterosexual, male, buying public. The song is celebrating using people to make yourself rich.

Can you even fathom the outrage of a Toofer-from-“30 Rock”-type singing a song about how he wheedled a black woman in the ’hood into a cutthroat loan so he could make his bonus target and get a trip to Tahiti? We’d not stand for it under those conditions, why now?

Toofer

“I wheedled a hood mom her mortgage / Love the bling on my pinky … What? How dare you judge me

What’s next?

I kicked an old man down the stairs
His medicare check will buy me Prada

I’m put in mind of the stories of the slaves on the ol’ plantation who would rat out slaves planning escape to ’massa as a means for advancement. Cozying-up to ’massa netted succor but did so at the expense of perpetuating a morally reprehensible institution and at the expense of a fellow victim subjugated by said evil institution.

I recall Liz Phair once being called the proponent of “do-me feminism” ( i.e. “women have the right to be sexually active and not be judged differently for the act than men” ). “Perry” is the proponent of fuck-you feminism: “the movement’s dead, I’m looking out for number one, and i’ll put my stiletto heels in the back of as many sisters as I need until I get my ducets — hey sister, at least one of us is advancing.”

Selfish sell-out.

And while the misogyny and the using make the song evil, it doesn’t make it bad. No, that comes courtesy of the internally inconsistent messages within the song itself. While “Perry” is contemplating how nice it has been to baselessly use another human being, later she has the temerity to sing:

Us girls we are so magical
Soft skin, red lips, so kissable
Hard to resist so touchable
Too good to deny it
Ain’t no big deal, it’s innocent

Now while it’s certainly not Shelley, the sentiment here is something that most sexes can recognize as part of the beauty of the feminine form. And “Perry”, I am so with you the first 5 lines of your bridge, but the last one, double negative aside, says that “your game” is “innocent”.

Inconceivable Fezzini

I do not think that word means what you think it means

No, it’s anything but innocent! It’s tawdry and mean. Here’s the worst I’ll say about it, it’s as mean as “In the Company of Men” and that’s about as mean as it gets.

Lastly, Perry’s look is impinging on Zooey Deschanel territory and I don’t like any singers of such hateful material approximating the sweet look of my dear, sweet, blue saucer-eye Zooey - HULK SMASH!

Tn 2 Zooey Deschanel 1

Original: Talented singer and actor Zooey Deschanel

Katy Perry 190808 19082008

Bad Copy: Possible misogynist and misanthrope “Perry”

I mean really, the look, it’s Zooey’s, stop copying just stop it, stop it, stop it.

In any case, the song is pure evil, and it’s bad, and it, of course, is a hit.3

UPDATE: I left a comment at YouTube under Perry’s video giving a precis of these points and it appears to have been removed. I suppose the clip owner “CapitolRecords” likes controversy about gay or not or tolerant or not, but can’t brook an actual criticism. “Is it OK to be a lesbian” they like being asked, but “is it OK to be a douche of a human being” is too hot to handle, or too inconvenient when you’re making mad money selling the controversy.

Footnotes

1. I say “Perry” because I don’t know if this is actually Ms. Perry’s thought, or if this is the results of some calculated wordsmith who realized that cheap lesbian titillation would sell records. Thus this is the Perry as portrayed by the factual Perry singing the song, versus the factual Perry herself, who may well be a perfectly lovely person — although her taste in material is suspect in either case. “Perry” refers to the singer of the song and Perry refers to actual singer and human. Back

2. Just a quick note, I have only known 2 people in my life in fraternities in any intimate way. One was is my friend who is a thoroughly decent gentleman in Dallas. The other was a guy who was on a project with me my senior year who was kinda flakey. I admit, I’m playing to stereotype here. On the other hand, I’ve heard enough Spring Break stories to think there’s a germ of truth lurking about. Back

3. A culture as bankrupt as this deserves George W. Bush for a president. Back

Ubi sunt qui nos ad civitatem virtutis ducere possunt? O tempora, O mores!

In an earlier post I provided code demonstrating my “functional” Perl idiom. The purpose of that code was to take a very simply formatted text file and to turn it into LaTeX Beamer formatting.

Well, recently I found the application iFlipr. In addition to being a site where you can upload flash cards, it also has an iTouch / iPhone version so that you can review when you’re in the bus, in a waiting room, etc.

So, I needed some code to transform my generic data set into–not LaTex–but iFlipr format. With but the most trivial of changes, I was able to accomplish this. The high readability of “functional” Perl made this, literally, a 3 minute affair.

Here’s the diff:

[code lang=”diff”] 56c56

< &produce_beamer_body(

  &produce_iflipr_body(

81c81

< sub produce_beamer_body

sub produce_iflipr_body 83c83

< (my $latex_output_file = $_[0]->{file} ) =~ s/..*$// ;

(my $iflipr_output_file = $_[0]->{file} ) =~ s/..*$// ; 85,93c85,86 < open (LATEX, “>$latex_output_file.tex”); <
< # A technique to tell Perl not to paginate < # ( i.e. re-print LATEX_TOP format ) again <
< my $ltx = select LATEX; < $= = 9990; < select $ltx;

<

open (IFLIPR, “>$iflipr_output_file.iflipr.txt”);

96,97c89 < my @order = sort { $a <=> $b } ( keys ( %$ds ) );

< for ( @order )

for ( keys %$ds ) 100,103c92,93 < $part = $ds->{$}[1]; < $meaning = $ds->{$}[2]; < chomp($word, $part, $meaning);

< write (LATEX);

  $meaning = $ds->{$_}[2];    
  print IFLIPR "$word\t$meaning\n";

105,107c95,96 < < print LATEX $end_of_document;

< close LATEX;

close IFLIPR;

[/code]

If you’ve not thought about writing code in this fashion, I hope this entices you! Either that or we should all take up Haskell or Lisp “Lisp (programming language) - Wikipedia, the free encyclopedia”)

Teenage Jobs and Cake Disasters

Friday, August 15th, 2008

Thinking about my work career, in the area before I got into technology, it looked like this:

  1. Randall’s: Stocker (fall 94- spring 95)
  2. Randall’s: Deli Guy (summer 1995)
  3. Kumon: Grader / Instructor (summer 1996)
  4. Informal Classes: (fall 1996-spring 1997)
  5. Started an a small IT consultancy…

I would like to talk about my tenure as a Deli Guy, #2, above.

As far as your teenage jobs that make you wear a stupid get-up and use cleaning and bleach nightly, it wasn’t actually too bad. Working in the deli meant that you had basically 3 primary roles:

  1. Serve food from the deli ( it had usually been fried up hours before, and even then, dumping chicken out a bag and into a fryer wasn’t too hard )
  2. Slice meats and cheeses
  3. Serve cookies to little kids

In short, it was a pretty easy gig provided you could handle working with those slicers ( maybe I’ll write about my one-and-only accident with that one on another occasion ).

Now, after a certain hour at night, the bakery was empty which was conjoined with the deli area. So one night, nearing close I was standing there waiting to slice up some pastrami or Boar’s Head black forest ham when a panicked lady came up to me. Now panic is not usually a state associated with buying fine imported meat, so I was a bit on edge.

“I need you to make me a cake”

As a matter of fact, under my nametag it said “MEATOLOGIST” to let the world know that my skills were in the cured meats part of the universe.

“You need a cake,” I asked, hesitantly.

“Yes, and as quickly as possible, and I need it to say ‘Congratulations Billy.’ [ or somesuch ]”.

I was unprepared for the idea that I should have something to do with this sought item.

“Hold on just a moment,” I stated, to her obvious chagrin.

“Manager red-line to the deli,” I summoned out over the PA.
“Hey Steven, what’s going on?”.
“Uh, do we make cakes?”
“Sure there’s a big bakery right next to you, right?”
“No, I mean, do I bake cakes”
“Do you know how?”
“No.”
“Then, no.”
“Well I have a lady asking me for a cake”
“Well then give her one in the cooler”
“But she wants a message iced on it”
“…” “I, uh, don’t know how to ice a cursive-y message on a cake, do you”
“Uh, no. Well, do your best and let me know if there are any issues.”

I have come to realize answers such as this are typical of managers, but I was unprepared for the answer at the time. I think the crestfallen look of my face gave away to the lady what the game was.

“Ma’am,” I started, “I cut meat here. I serve chicken over there,” I gestured leftward.

“I can give you one of those big blank cakes in the cooler and you can have cake. But I have no idea how to put a message on it. But I will try, but I’m not sure how well I can do. If you need a cake that badly, then I will try for you. Is this OK?” I tried to say this with the gravity that a doctor might say to an anxious parent whose child could only be saved by a daring cutting-edge technique.

She solemnly nodded.

I said: “Pick out the cake and I’ll get some icing”.

So I went to the baker’s table. Big waxy paper. Check. Funny thimble thing with a hole in it. Check. I went to the baker’s cooler and found a paint can of BLUE. I asked her if blue was OK. She assented and gave me the big white sheet-cake she had found. I guess she figured by giving me a cake shaped like a large “Hello, My Name Is” tag I might not screw it up too bad.

I fashioned a crude cone out of the wax paper and applied the tip. I believe I also took some scotch tape to make sure the tip stayed on. Given the lack of other backup cakes I didn’t want to ruin my only canvas.

I took a large frosting knife and smeared a dollop in the wax paper. I twisted up the top and the misshapen frosting cone was ready to go. I took a test sheet of wax paper and wrote my name. It came out badly. I pulled another sheet, slowed down and tried again. It looked serviceable.

I went around the table and started. Not having written in cursive for many years I was a bit hesitant but was able to write out that message in that diagonal y=.33x+4 upward line that says “Hey, this cake is fun”.

I looked at my handiwork and then at her. Her eyes were doe-like and seeking. I put down my sugary tube-ball of icing and walked the cake over to her. My eyes met hers and then she looked at the cake. She looked back up and me and said: “Not bad!”.

I gathered the plastic protector and sold her the cake. I turned around to the baking table which had smears of blue everywhere.

I put the tools of the trade away and cleaned up, dousing the table with disinfectant bleach before turning off the lights.

I headed back to my post to count out the remaining few minutes, praying that no one else had a cake emergency.

Thus when today the League posted Cake Wrecks, I immediately felt for those creators.

Perl things I always forget

Wednesday, August 13th, 2008

This idiom, I love it so much but I use it fairly infrequently, but it’s absolutely gorgeous

[code lang=”perl”]

Assign to another variable the result of a RegEx]

($new= $old) =~ s|foo|bar|g;

[/code]

And this one I just forget, because I tend to use hashes

[code lang=”perl”]

Remove element from an array based on index:

splice(@array, 3, 1); [/code]