Python, SOAP, .NET, Namespaces

October 26th, 2007 1 Comment »

Approximately 8 hours of my life was consumed by SOAP. Not the washy type SOAP, but rather, Simple Object Access Protocol. Yes, another nerdy post.

Python has a nice little library, called SOAPpy, which lets you generate SOAP requests. It seems to work, unless you’re accessing a .NET SOAP proxy. This, unfortunately, is what I was trying to do.

So it took about 6 hours to come up with the following 4 lines of code:

proxy = SOAPpy.SOAPProxy(’http://whatever/webservice.asmx’, ‘http://whatever/namespace/’, ‘ http://whatever/Action’)
proxy.config.dumpSOAPOut = 1
proxy.config.buildWithNamespacePrefix = 0
response = proxy.Action(variable=value, variable2=value, variable3=product_name)

Specifically:

Line 1: You have to pass in the SOAPAction here, fully qualified. Otherwise you’ll get things such as “Object Reference” errors.
Line 2: This is great for debugging
Line 3: This line is not documented. Nobody suggests using it. Nobody talks about it. It is the most critical line and the one that took the longest to figure out. The problem is the SOAP request is not exactly what .NET is expecting; Python specifies the namespace with ‘ns1′ which I believe identifies the namespace. .NET chokes on this and dies.
Line 4: You need to specify the name of the variable, then the equals sign, then the value.

I actually *understand* why a page like this gets created at Microsoft

October 18th, 2007 No Comments »

Somehow I ended up subscribed to Microsoft’s Small Business newsletter. I think, but am not sure, it is because I signed up for something. Deciding to unsubscribe, I found a link at the bottom of the email (nice!) which led to this monstrosity of a page:

unsubfromms.png
Click for full sizeosity

Holy shit, do they think anyone CARES? I want to unsubscribe! Not read a treatise some deluded PM wrote because he was feeling especially self-important one day.

Oh, and by the way, the instructions suggest that I find links that do not EXIST.

That was going to be the end of the post until I got THIS beautiful page:

unsubwtfms.png
Click for full sizeness

I have no idea what I’m supposed to do. It says to check the box to unsubscribe, but at the same time, the column header is “Subscribe” - not Unsubscribe. But I already am subscribed? If there is a checkbox why are there also two different buttons, and what happens if I hit Update instead of Unsubscribe but check the Un(subscribe) checkbox?

We live in a world of uncertainty.

Oh and the best part is - what is up with the newsletter description? “Is created to be sent out as regular monthly or bi-monthly NL”? That’s so screwed up even Yoda wouldn’t say it.

I think I have unsubscribed, but I don’t have the fucking computer expertise to determine this from their poor-ass website.

coding in a birthday hat

October 18th, 2007 No Comments »

Happy 3rd birthday, Google Kirkland! Here is our cake!

bday3cake.png

Delicious!

oh forgiving God how do I make it stop

September 27th, 2007 No Comments »

My Mac is narrating everything I do.

“FireFox open scroll bar. FireFox has new tab. Bookmarks menu, closing menu.”

It is like that movie. Didn’t that guy die at the end of that movie?

I don’t know how I enabled it and I certainly do not know how to turn it off.

just a small town girl

September 26th, 2007 2 Comments »

While biking last weekend, the subject of the song “Don’t Stop Believin’” came up.

That was all it took for me to buy it on iTunes. I also picked up “The Final Countdown” to make me feel like I’m in an episode of Arrested Development while coding.*

While typing the below footnotes I completely forgot where I was going with this setup - but for some reason I wanted everyone to know I bought the track “Don’t Stop Believin’” from iTunes.

I remember now. Every time I listen to “Don’t Stop Believin’” I get this horrible fear, and I realized, it’s because of the Sopranos series finale. I keep expecting the music to cut out and either to pass out and everything go black, or to actually die because of the song.

That’s somewhat impressive - that they’ve created such a strong link between this song, and that scene. It was a pretty good scene.

* - By the way, fair reader, it is my New Year’s Resolution** to take up one or several of the following: coin tricks, card tricks, juggling. If I learn either of the first two, this song will be played whenever I do a trick. I will need to carry around an iPod and speakers.

** - The way I see it, New Year’s in January is complete BS. The “new year” for you starts after your birthday, which for me, is this month. So I’m creating some New Year’s in October, the month of my birth. This isn’t actually true, nor was it my initial motivation, but I thought of it while typing this so I’m going with it.

pocket queens vs ace-jack

September 24th, 2007 3 Comments »

Did anyone else shout out “Don’t tase me bro!” at the end of Heroes? Or was that just me?

I also was surprised they got Fidel Castro to cameo in the episode. I thought that’d be illegal.

pretzel day! it’s pretzel day today

September 14th, 2007 No Comments »

Today at Google Kirkland we’re celebrating Oktoberfest, which is deceptively not held in Oktober October. Anyway, to celebrate, Google set up a few tents, some grills, and also hired a live German “oompa” band. While I’m sure you can guess the fare: bratwurst to the extreme, and for some reason Salmon burgers (there’s always Salmon burgers. Always. It is suspicious). In order to not be shown up by the office on TV’s The Office, we have also been granted the gift of pretzels. Giant, soft, Bavarian pretzels. So delicious. So plentiful, as well. Given that there were two baskets on every table and several on the food line, I’d estimate approximately 2 pretzels for every person.

Anyway, I don’t want to talk about pretzels. I want to talk about Costco. This brings me to yesterday’s lunch.

Yesterday’s lunch was an average day - no band, no grills (sadly). However, a Costco rep was coming in to convince people to sign up for Costco memberships. I think everyone here is already a member, though, so I don’t understand the point. So this guy comes in and brings “treats” for desert after we all eat lunch.

This is very generous. And probably something employees would really appreciate, in a normal office. But, Google is not normal. We get delicious little pastries, fresh baked brownies, and they even had little mini-cakes (I believe the mini-cakes were an effort by our culinary team to send a message to the Costco man, and anyone else which would come after him). As such, I don’t think many people really wanted his Costco brand cookies. A few people took some, but with a look of sorrow and pity in their eyes.

So this man - who looked fairly sad and lonely at his own Costco table - didn’t talk to many people, because everyone already is a member at Costco, nor did people come over and fake talking to him to get a treat, because of delicious mini-cakes.

While walking by I met his eyes, infinite pools of sadness, and briskly walked by with my piece of cookies and cream cake.

Why not?!

September 12th, 2007 No Comments »

Why in the world do my iTunes ratings not sync up to a global profile, which is then applied to my other iTunes?**
Why do my Word settings not get synced down when I re-install or use another PC?
Why are my bookmarks not automatically brought down and synced?*
What about my Add-Ons (or whatever Firefox is calling them this release) and settings and such?
Why is it the only other option I have is to use a completely online application (ala Google Docs) which is nerfed, or a completely offline application which is incredibly inconvenient?

It’s 2007. Almost 2008. I would think that software manufacturers would have thought about the whole “Internet” fad by now. And, I dunno, that some people have more than one PC…

Anyway, the reason I’m angry is because I don’t think I’ve ever used iTunes ratings despite the fact that they could be very useful. I don’t, for a couple reasons:

  1. They don’t follow me to my work PC, or my laptop.
  2. Okay I thought I had more than that when I started the list
  3. Oh I remembered one
  4. I never know how to correctly back up my iTunes library when I reinstall. I save all my music and just create a new one from scratch (Add Folder -> my MP3s). So I always lose my ratings. And I think I typically have to re-sync my whole iPod, but I don’t want to talk about that.

(BTW: in 2001 I registered “OnlineSettings.com” or some such domain in a desire to create a web service that would allow easy integration of offline apps that would sync up settings, etc. I let it expire. However, I gave up hope and let it expire).

* This is the most inexcusable. It’s a web browser. Internet access is practically guaranteed. USE IT. ALSO, I do not want to install an AddOn to each of my browsers to do this. It should just be done.

** I specifically call out iTunes because WMP and Zune don’t even have podcasting support.

y.a.a.f.p.

September 11th, 2007 1 Comment »

I am QUITE aware that I have been talking about Amazon fresh too much, but something delicious happened and I must let it be known.

I have ordered a bag of ice on the internet.

Ice!

hello my new friend!

September 10th, 2007 6 Comments »

Here is a picture of my new pretty road bike:

428135921_924c571d25_m.jpg

Just in time for winter!

not webvan, but rather AMAZON FRESH

August 31st, 2007 No Comments »

One of the advantages to working at Google up in Kirkland is, well, everyone’s pretty much from either Amazon or Microsoft. This means easy access to the Microsoft Company Store (though I already had that), and, most recently, a beta invite to Amazon Fresh, their new grocery delivery service.

My first thought was, “Hasn’t this idea already failed?” And my second thought was, “Guess it’s about time to sell that Amazon stock I have.”

The brilliant thing Amazon did (and I doubt they did it for this reason) is offered up some produce, specifically apples, for 10 cents. The whole problem I have with online grocery shopping is that you can’t pick your own produce. I would fully expect bruised apples or, at minimum, not the crunchy ones I so long for. But, at ten cents, I figured I could order ten and at least get a few good ones. And even if I didn’t, heck, it’s a buck.

As such, I picked up 10 apples each of 4 types: Granny Smith, Fuji, Braeburn, and Jazz. I had not heard of Jazz apples before, but again, 10 cents.

I also picked up a pineapple, a clove of garlic, and some chicken breast, to see what their meat was like.

They offer delivery, but unfortunately, not in my area. Fortunately they have a pick-up point only two blocks from where I work (though not in the direction of home - otherwise I could see actually using this very often). I place an order, it’s fulfilled somewhere in Seattle, shipped to this “store front,” and I pick it up. The whole process is supposed to take 4 hours, though mine was ready in 3 (which I found out because they called me, to let me know and also asked if I needed directions. Way more customer support than I’d expect on a $9 order, which is mostly apples).

I got a little lost trying to find the “store” - it’s pretty small since it’s just a front desk, and an employee-only area which has what appears to be two gigantic freezers (fridges?). The lady at the desk, incredibly nice, said they were getting more signs put up. Apparently, they had just opened Wednesday, so, I cut them a bit of slack on their find-ability.

She scuttled off to find my 4 bags (this is the first inkling I got that maybe I ordered too many apples), stating that if I had parked closer they load the bags into the car themselves. I figured I could handle the apples.

Anyway, this is what I ended up picking up (click the images, especially the second one, for closeups):

img_1035.JPG

img_1036.JPG

Impressed by the sheer volume of apples, I knew I had to weigh them and see how many applies I ended up getting for $4.

It ended up about 18 pounds and some change. That is a lot of apples. Not only that, they’re good. They are firm, unbrused, and really, really big. (Sadly, the price of apples has gone up! They are now about 80 cents each).

Plus, I have grocery bags with Amazon’s logo on them. That’s pretty cool.

It’s a bit weird to buy things how you do - per apple, or per 1 lb of meat (I only ordered 1 lb of chicken, but I assume if I had ordered more, it still would have been individually packed per pound. Which, I should mention, is actually pretty nice). The interface is somewhat nice, though you can’t browse sales, and I sure do love a sale. The prices ranged from good (apples, chicken) to average to bad (for some reason, bone-in chicken was twice the cost as boneless, when it is typically half. Most of the beef is fairly expensive, too). The service was great, and the quality was as well. It was amazingly convenient as well.

So, yes. I think I will purchase from them again, especially if they expand their delivery area out to Redmond.

webcomics can lead to literary pursuits; read ‘name of the wind’

August 29th, 2007 1 Comment »

I tend to like Science Fiction and Fantasy books, simply because they tend to be a bit more imaginative and easier to read. Plus, to be honest, I like wizards. Come on, they’re wizards! What’s not to like? The long gray beards, pointy hats, and fashionable robes…

Unfortunately, a lot of fantasy is puffed up, boring, and uninterestingly vain. Writers so in love with this world they’ve created that they feel the need to lecture you on it.

Anyway, ever since I struggled through Lord of the Rings I’ve had a way to disambiguate fantasy I’ll like, versus fantasy that is boring. It is a simple test and has a very good accuracy.

Simply flip through the first few pages of the book, before the book proper begins. If there is a map there, I hope you haven’t bought the book already. If you have, sorry, you’re screwed and in for a very, very boring time.

So for the past 5 or so years I’ve had a phobia causing me to avoid books with maps. The mere thought of an atlas chilled me to my bone. It was all going well, until I read a review of “Name of the Wind” by Patrick Rothfuss on RealLifeComics (an excellent comic). He gave a short but basically glowing review so I ordered a copy on Amazon.

Now Amazon has a great feature called “Look Inside The Book” that lets one peruse a few pages (typically, the first few, and then an excerpt) of a book. Unfortunately, it wasn’t available, so I didn’t get to check for a map.

(One aside - the novel has two different covers. Amazon, at the time, was featuring the version I can only refer to as “the homoerotic cover,” so I ordered from Buy.com, where I hoped to get the “non homoerotic cover.” It’s not that there’s anything wrong with homoeroticism, it’s just not for me)

Anyway, the book comes - and it’s quite a long book, especially considering it is the first of a trilogy. It’s about 700 pages long, and when I flip it open, I notice the first page is nothing but a map.

“This,” I proclaimed out loud, “does not bode well.” Immediately I imagined being lectured on the finer points of some random language some bushy-bearded dude thought up in his mom’s basement while the main character goes for a THREE BOOK WALK THROUGH THE WOODS.

(Another aside - nothing wrong with living in your mom’s basement, especially if it has its own bathroom).
(One more aside - I think the last harry potter book was a homage to lord of the rings, in that Harry goes on a 300 page CAMPING adventure. I wondered why there were no book liner notes on Book 7; it was simply a technical decision because the summary would have read “Harry and friends go camping” and it’s hard to fluff that up to fill an entire book liner).

I actually put the book off further and read the Midnighter’s trilogy instead. After those books, I looked back at the giant tome and decided reading it would clear the most space in my cabinet of books to read.

It is, simply put, fantastic. I encourage you to ignore the fact that the first page is a map, and pick up a copy of this novel. It is smooth, well-polished, and somehow, for a 700 page book, not even remotely wordy or redundant. The author doesn’t spend words telling you fluff or things you don’t need to know.

The book’s story is hard to explain or describe - you learn of this character who is, for reasons unknown to you, legendary and presumed dead. He goes by an assumed name, living as someone else, until a scribe comes and asks for his story. The majority of the novel is him telling that story, with brief interludes into the current time.

Pick up a copy and read it - then thank me I suggested it to you.

//TODO(jimr): blog about this stuff

August 28th, 2007 No Comments »

- Gnomedex Part 2
- PAX, including a picture of my new laptop decal
- Shootin’
- Casino time
- Segway funtime
- Dancin’ and Dancin’ Shoes
- Little dog that pees on all my things
- Segway 2 and the near death of an intern
- My new helicopter
- Amazon FRESH
- Bookin’: why you need to read “The Name of the Wind.” This will be short and only consist of me saying “You need to read ‘The Name of the Wind.’”

Gnomedex part 1

August 10th, 2007 No Comments »

I know what you want to hear about: FREE STUFF I GOT.

Google happened to have an extra ticket to Gnomedex, a local blogger convention (thanks to Vanessa Fox for quitting!). Because it is a pretty small conference, there was some quite-good swag:

HD-DVD copy of “The Bourne Supremacy” (this will most likely be a Christmas gift for my brother, Chris), courtesy of HP
Assorted notebooks from HP and Google (including a holographic Google Earth notepad which is pretty neat).
Gnomedex badge with a hole punched in it (not sure why)
Yahoo Developer Network Mug
Gnomedex pin and sticker
Zillow Pen
B5 Media Telescopic Pen (neatish but more or less useless)
Edgeio 2 GB rather-small USB drive (nifty!) complete with a Gnomedex logo on it.
Something from ZenZui but I have no idea what. Maybe a monitor wipe? Hankey? Seriously, no idea.
Gnomedex bag
LapWorks laptop desk
HP Shirt (Size: Large)
“I blog, therefore I am” shirt from Emma Email Marketing (very hard to find logo on the shirt!) (Size: XL, but it’s American Apparel so it should come close to fitting)
Zillow Shirt (Size: Medium, and would only have fit 1 person at entire conference, Chris Pirillo, the host, who is diminutive).
Gnomedex shirt (Size: SMALL!)

I’ll be posting a blog later on what I thought - some of the presentations were really great, some not so great, and one a giant advert.

Anyway - time to roll around in my free stuff.

this is the funniest thing I’ve ever seen

July 31st, 2007 No Comments »

I can’t qualify as to why it is, it just is. I watched it and - you can even ask Aarthy - came dangerously close to dying. I think I blacked out for a second or two because I stopped breathing.

harry potter ROCK

July 16th, 2007 No Comments »

As you may or may not know, this is Harry Potter month. Movie 5 and Book 7 both come out (one being last week, one being this week).

It’s all quite exciting, as I am a huge Harry Potter fan.

As such, when I heard the Seattle Public Library was hosting a self-proclaimed “Potterpalooza” I knew that I must attend.

Now, to be completely honest and open in this review, the term “Potterpalooza” is slightly misleading as it consisted of one band. Playing in a library.

The band in question is the veritable “Harry and the Potters” a “wizard rock” band dedicated to capturing the Potter stories in song. Here is a picture.

harryandthepotters.jpg

You’ll note the books in the background.

How was the concert? Exactly as good as one would expect a Harry Potter concert to be. This is a good way to answer the question as if you hate Harry Potter, you’d expect this concert to suck, and you’d have what you would have thought about the concert. If you like Harry Potter, you’d imagine it to be somewhat entertaining yet extremely peculiar, and to the same result.

I fall into that last bucket there - I found it quite amusing. I was surprised the line to get in wrapped around the library and they packed quite the audience. Especially so considering they’re actually not very good at being a band (even if you like Harry Potter, you’d admit they lack a certain luster).

They’re clearly clearing up off the hype of Harry Potter month (aka JULY)… the merch line was long consistently throughout the concert. I picked up a CD and a shirt proclaiming the need to “Save Ginny” - the shirt pretty much being the coolest thing ever.

saveginny.jpg

I’d wear it to the book release, but I have a costume.

Oh yes, oh yes I do.

some random thought about tubes

July 13th, 2007 No Comments »

You know, it’s not that upsetting to me that youtube would be worth almost 2 billion dollars. But it does upset me that eBay is worth about $50 billion (which, I just realized, is more than Amazon, and Amazon isn’t a dump hole).

umbrella pickles

July 9th, 2007 1 Comment »

Here’s what I spent about half an hour today figuring out. I blame this completely on one Michael Benny.

So in IE there’s an option on if you want to allow JavaScript to execute in the “Local Computer” zone. You can set it to allow or disallow. There’s also another preference, on if you want to allow JavaScript at all (similar to FireFox’s javascript.enabled. Or so you would think).

These two settings conflict with each other in completely different ways in IE6 and IE7.

IE6: If you enable allowing JavaScript to run in the “My Computer” zone, but disable JavaScript, it will still run JavaScript in the “My Computer” zone anyway. I could see how this happens, though I dislike it, and think it is wrong.

IE7: If you enable allowing JavaScript to run in the “My Computre” zone, but disable JavaScript, it won’t run JavaScript on the “My Computer” zone. Hey, one step forward, right? However, it will not process any noscript tags because it thinks JavaScript is enabled. So, neither the JavaScript NOR the noscript will execute.

AWESOME!

I need to get out of QA before I do a few thousand dollars worth of damage to Google hardware. Or Microsoft buildings.

google gifts

July 3rd, 2007 No Comments »

Today I received a little gift for having my office moved more than once this quarter:

stapler1.jpg

stapler2.jpg

stapler3.jpg

i would have just worked on something else instead

June 20th, 2007 1 Comment »

I think if I were a gum manufacturer, I’d be indignant.

I’ve noticed a push towards “sugar free” gums - advertising extohling the benefits of a sugarless gum solution for your chewing needs. It’s effective, too, as I just picked up a pack of “Orbitz Sugar-Free” from the microkitchens instead of the delicious sounding “Juicy Fruit” - a sugared gum!

I perused the back of the Orbitz package and read: “40% fewer calories, calorie content of this size piece has been reduced from 5 to 3 calories.”

So this whole “sugar free” gum thing saves me all of 2 calories? That’s ridiculous. And imagine the man who had to design this sugar free gum, his time wasted simply because they needed some marketing spin and two less calories.

“You want me to cut the calories in our gum? It’s only 5 calories! What more could you want?” the gum man would say.
With a glint in his eye his manager responds, grinningly, “Crazy idea - let’s knock that down to THREE! That’s 40% less! If one consumes a stick of gum a day, you’ll lose a pound in LESS THAN FIVE YEARS!”
And that engineer does a death march back to his test tubes to figure out how to replace the sugar with phenylalanine and still keep that delicious Orbitz taste.

Actually, I guess it’s Orbit gum? And Orbitz books plane tickets?