So, I guess I can actually write stuff here now...

I found it refreshing that it occurred to me that I could put up my last post with the notion that someone else might be spared some headache later on down the road. I had it drilled into me at Google that the less you say online about anything work-related, the healthier your career would be. Sure, the official party line is "we're all openness and puppies and happy geek sunshine", the reality is much different when it comes to blogs. It didn't help that a new employee got canned because of his blog right before I started there. That set the mood for sure. And it instilled a little paranoia.

The official blogging policy (yes, there is one; I suspect it got put in place about 30 seconds after that guy was fired) is a strange document to read. When I first got there, I naturally wanted to post news, thoughts, stuff, etc, since people said they were interested and were always asking questions (many of which I couldn't answer). And by "post stuff", I mean in a very careful way: no posting secret stuff, financial stuff, private stuff, etc. But after reading the blogging policy, I realized that I should really not post any stuff at all.

Almost every paragraph in the blogging policy has the "written by an PR flack, approved by a corp lawyer" feel about it. And almost every section is heavily qualified. Sections start off with stuff like "While we realize that you want to share your thoughts about Google with the world on your personal blog, and while we -- as a company -- officially support that, we also realize that people sometimes say more than they intended..." (Or some such; it's been a while since I read it, and I only read it that once, so that isn't a direct quote or anything). Bottom line is that it's carefully written so you come away thinking that they aren't saying no, but they aren't exactly saying yes either. You ask yourself "Can I still write in my blog?" and take the policy's answer as a "yes", and it's all on you if you post about something besides the family vacation.

Basically, for work things, they say you can talk about what you had for lunch, but not who you had it with, what was discussed or for how long, etc. In other words, you can talk all you want, as long as it's about nothing at all interesting (which, I suppose, ought to suit most blogs just fine). Who wants to read a post about "Today I ate with John Doe #7; we had the quail's eyeballs and duck confit"?

So I could put up a blog post saying my name, title and the group I worked for, but I couldn't say anything about my job, as 97% of it dealt with proprietary stuff the names of which aren't even public knowledge. And there's nothing at all wrong with that. They have every right to restrict the flow of private information outwards. But the overall tone of the blogging policy there seemed very "Oh, hey, if it's not much trouble, consider just not posting anything at all, OK?"

For all the openness at the company, they are intensely and fiercely private. There's so much press (well, used to be, I guess) about new products and such that they were absolutely petrified about leaks. They have a very, very carefully crafted public image, and do not want anyone from inside contradicting that. Again, fair enough, and no hard feelings; I had no problems with their policy. But the net effect is that this site withered on the vine, as did my urge to write about anything personal. I had considered shutting it down entirely. If it weren't for the few times I had searched through it to find something, I probably would have. I wasn't afraid of losing my job, per se, it just that it was far easier to say nothing for no risk. Since work touched a lot of my life -- and why I was living in the bay area to begin with -- saying nothing meant that I wouldn't inadvertently stray into an HR/PR minefield.

Anyway, shortly after I thought "Hey, there's no other info on the web about that weird error, maybe I should put up a post about it!" came the thought "I wonder what else I could have written down that would have been helpful or interesting later?" I expect a few things.

Hopefully someone finds that last post useful. I know I get a lot of hits from people searching for stuff like that I've posted in the past (had a few emails thanking me, actually). I'll try to do more of it. (And I'll also try to get the comments thing back. I know both of you are just itching to leave comments...)

Posted by wee on 12/31/2008 at 09:28 AM | Main Page | Category: News
Fixing a funky Urchin 5 data extraction error

I recently has to extract some information from an Urchin 5 installation, munge it a little, and then save it. The tool one normally uses for this is a (not very well written) perl script provided by the Urchin folks: u5data_extractor.pl. When running it using the instructions at the top, you'll find that you can't run it. Or, rather, you can run it, but it won't produce any data for you. All you'll manage to get is a cryptic error, for which there aren't any explanations: "Urchin CGI Report. Error Encountered (1000).". As you can see from the Google search results, there's not a lot of help for explaining what a "1000" error is (until this page is indexed, I guess; at the time of writing there are only 3 results for that query). I suspect it's a generic error condition, sort of a "just couldn't make it happen, dude" thing, but I could be wrong. Irrelevant, since I got it to work.

Here are some tips:

  • Make sure that you alter lines 47-51 to match your install. Double check the $report variable against the vid of the report you want to export (you can find out what vid value you need by going into the Urchin 5 GUI and mousing over the report name link on the left of the screen).

  • Try not to look at lines 63 and 67. Trust that those date strings will wind up properly formatted. Just be sure to specify an --end param that is actually the same or after the --begin param, since funky dates will get you no valuable error message at all (not from the script or from Urchin itself).

  • Change line 117 from this:

    if ((!defined $reportset) || ($reportset eq "")) { $reportset = "Standard"; }

    To this:

    if ((!defined $reportset) || ($reportset eq "")) { $reportset = "Basic_All"; }

  • Change line 181 from this:

    $ENV{QUERY_STRING} = "vid=$report&bd=$begin&ed=$end&v=$max&rid=$rid&lang=$language&x=1&user=(admin)";

    To this:

    $ENV{QUERY_STRING} = "vid=$report&bd=$begin&ed=$end&v=$max&rid=$rid&lang=$language&x=1&user=(admin)&dt=4&dtc=0";

  • Make sure you run the script as the same user who runs the Urchin 5 install. There's some weird permissions issue someplace, but I didn't bother to track it down.

Overall, don't bother reading the error messages (if any). In th course of getting it to work, I added a bunch more error checking to our version of the script since the default one is pretty awful in explaining what went wrong. If you do all of the above and it still isn't working, go view the report you want to extract in the GUI. Note the vid values, etc. You can also try setting/tweaking your shell's QUERY_STRING environment variable to what the script wants to use and calling urchin.cgi directly in order to quickly try new values.

The dodgy script, cryptic error message and lack of any information on the web caused me a few hours of unnecessary grief, and so anyone with a similar issue should be able to find some help here.

Posted by wee on 12/29/2008 at 01:23 PM | Main Page | Category: Geek Stuff
In other news...

...it's Christmas Eve and I'm at work. I want to poo in someone's stocking. That is all.

Posted by wee on 12/24/2008 at 10:31 AM | Main Page | Category: News
A fix for the can is in the works

So I finally learned what was wrong with my suppressor. The last time I shot it, I noticed that the mount (the rear part that screws on the the gun) was hitting the guide rod, turning the Sig into a single shot. (The slide couldn't go back as far as it needed to in order to cycle a round fully.) In other news, when I went to remove it after shooting, the mount stayed with the gun and the rest of the body screwed off. Not good. The things is supposed to stay completely sealed. In fact, taking it apart voids the warranty. I had a hell of a time removing it. I couldn't do it at the range since it was too hot to handle. Even when I got home, I had t use pliers. And even though I was extra gentle, used a cloth, etc, I still scratched the anodization. That made me unhappy.

I wrote Gemtech and asked what I could do about the single-shotedness and the detachable nature of the mount. Turns out that the thread depth of the Sig P220 Combat TB barrel is shorter than the more standard 1911 or Glock threaded barrels (0.450 overall length vs. 0.375" OAL, in fact). So it'll screw on to the Sig, but it'll screw on too far. You don't notice it until the first couple dozen shots, as the barrel and suppressor heat up during shooting and require you to tighten it periodically. Screwed on cold, that little difference in depth isn't felt, unless you were to put it on with a pipe wrench or something. Once it heats up and you keep screwing it on, you've got a single shot pistol.

They can put a new mount on for $50. Since I'll be going to a shorter one, I'll still be able to shoot it on the new threaded barrel I got for the 1911; it'll mean that there'll be a weensy little bit of thread exposed. Kinda weird the hoops you have to jump through to mail a suppressor, though. All manner of official business has to happen.

I'm happy about this, to be honest. It worried me that the mount screwed off. I don't want anyone to think I took it off intentionally in order to monkey around with the insides. I think that's illegal unless you're a Class 2 manufacturer. Also, making it easy to take off means that it'll be easy to put oil and such in there for added muffling goodness.

Posted by wee on 12/24/2008 at 10:21 AM | Main Page | Category: Random Stuff
Who's the happiest boy in the whole world?

That would be me! Because I just got a call from the Scottsdale Gun Club and the ATF has approved the transfer papwork for my suppressor and it's ready and waiting for my tender embrace. It's a Christmas miracle!

I've got 16 minutes until I can reasonably get out of work, and I'm itching to run home, grab my Sig, and go straight back to the club to pop off a few (now much quieter) rounds.

Grrr.

The minutes are, like, totally not going by very quickly...

I know how I can pass the time. Searching the interwebs for a threaded barrel for my 1911A1!

Posted by wee on 12/17/2008 at 03:44 PM | Main Page | Category: News