Saturday, November 21, 2009

WOD 11/19

Oops, almost forgot to post the WOD from my very first crossfit class!

Warm-up:
650m Run (around the block)
Progression of Double-unders and knees-to-elbows: 10 9 8 7 6 5 4 3 2 1

3x Squats (face the wall and hold for 20 seconds, 7 seconds rest)
5x3 Weighted push-ups (70#)

15 minutes of Thrusters (20#) vs. 500m row

At the very end, my calves were cramping up. This is the first workout that ever got my legs to cramp up during the workout!

Tuesday, November 17, 2009

Workout of the Day, 11/17/2009

650m run

21 reps: 175# bench, pull-ups (4:27)
15 reps: 160# bench, pull-ups (3:43)
9 reps: 145# bench, pull-ups (2:02)

3 sets of 7 burpees
100 crunches

(had to lighten the bench press weight since I couldn't get the bar moving at all)

Sunday, November 15, 2009

Workout of the Day

Seeing as I just joined Crossfit, I'll definitely need to post my WOD!

This workout is my modification of the base workout, since there are no good places to do pull-ups along the Embarcadero.

Run 650m (Red's Java House -> "dog park" at South Beach)
40 lunges
30 push-ups
20 sit-ups
10 burpees


Tuesday, August 11, 2009

Quick Chrome Tip

A lot of people ask me questions about sites that don't work with Chrome. I've given the tip to several people, so I thought I would post it here.

There are a number of sites that use a technique called user-agent sniffing. Browsers send an identifier when they connect to websites that indicate what kind of browser they are. Some sites serve different content based on the user-agent.

Anyways, many sites don't detect Chrome correctly, which makes the sites not work in Chrome. There's a quick (but temporary) work-around for those of you on Windows:
  1. Create a new shortcut to chrome.exe (you can copy an existing shortcut)
  2. Edit the shortcut (right click it and click "properties") and add a switch to change the user agent: in the "Target:" field, add this to the end:
"[...long path here...]\chrome.exe" --user-agent="Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.12) Gecko/2009070611 Firefox/3.5.12"
Then click "ok". Then, if you have Chrome still open, close it.

Now, if you launch Chrome via that new shortcut, it will 'pretend to be' Firefox 3.5. Sites that block Chrome but allow Firefox should work now.

Enjoy,
Glenn

Saturday, August 8, 2009

My first magazine cover!

I'm on the cover of the latest edition of Linux Journal magazine, along with like 30 of my closest Google Chrome co-workers.

Go out and buy multiple copies of the magazine today:

Saturday, July 11, 2009

Create directory in python snippet

I've been writing more python these days, and I ran into a need for a method that would recursively create directories if they don't yet exist. I'm sure many other people have written this same thing better, but I thought I'd post it in case anyone out there found it useful:

import os

def CreateDirectory(dir):
"""
Method that creates the directory structure given.
This will create directories recursively until the given dir exists.
"""
if dir[-1] == os.sep:
dir = dir[0:-1]
if not os.path.isdir(dir):
if not os.path.isdir(dir[0:dir.rfind(os.sep)]):
CreateDirectory(dir[0:dir.rfind(os.sep)])
os.mkdir(dir)

Advertising FAIL of the day...


Really? WTF.

I'm not sure what's stranger -- the fact that this site actually exists, or the fact they paid for this advertising.

Saturday, June 27, 2009

2500 jobs

A few news outlets have picked up the story that GM will re-open two plants in Michigan, making small cars:

...and GE is creating an "Advanced Manufacturing and Software Technology Center" near Detroit. Check out Granholm starting to reach around and pat herself on the back:

This is a Good Thing, right? Together they'll create an estimated 2500 jobs Michigan didn't have before. Isn't that a win for Michigan?

Here's why not:
  • Making cars in Michigan is not sustainable long-term, especially when you're competing with small (less revenue) Indian car makers. Once GM figures out if it can sell the cars it's making in Michigan, it will then offshore the work to workers not making $60K.
  • GE's research center will inevitably focus on manufacturing, not software. (Like how they tacked that on at the end of the name to make it sound "techy" and less rust-belt-ish?) If Michigan is going to get away from a manufacturing-based economy, what good is a manufacturing research center? They should have named it "Advanced Buggywhip Manufacturing Research Center".
  • Michigan's unemployement rate is 14.1%. When taking 2400 unemployed off the streets, the unemployment rate drops to 14.0%. Giving huge incentives to these two dinosaurs doesn't scale. How far could those millions of dollars have gone in venture capital? Or tax reductions for small businesses?
  • The overall business attraction of Michigan hasn't changed. Small businesses are still taxed at some of the highest rates in the country. Of course, the fat cats GM and GE, both of whom pulled thousands of jobs out of the state, get the tax break.
These deals tell me the state is desperate. They're throwing money at anyone with any jobs, regardless of how long those jobs will stick around, how much they'll benefit the state, or whether anyone even wants those jobs.

Way to go, Granholm. Anyone can buy jobs. Why don't you try creating some?

Sunday, June 14, 2009

Pure Michigan

Oh, Michigan. You make me laugh.

Recently, a series of "Pure Michigan" commercials started playing in prime time on channels I usually watch; they depict tourists golfing, boating, enjoying Michigan's more idyllic scenery and Detroit(?!!) They must have found the one day out of the year to film that it's not covered in ice or raining. But I digress.

It's not uncommon for states to advertise, as I see commercials for California tourism all the time ("When cahn you staht?" ~ Arnold). But there are other commercials showing folks like Jeff Daniels touting Michigan's economic development. And when I picked up a recent Inc. magazine, inside was a full-page ad for the "Michigan Advantage". It's pretty clear that someone thinks Michigan's road to recovery leads through advertising to small businesses. It makes total sense -- small businesses create jobs, and jobs create stability and prosperity.

But marketing isn't the problem here. People know Michigan is still there. They know its economy is in shambles. Why wouldn't businesses zoom in to take advantage of low rents, cheap labor, and the venture capital / loans Michigan is offering? Not to mention the very tasty cherries?

The real problem is the Michigan Business Tax, and its predecessor, the Single Business Tax, which was so bad that voters repealed it. It's common knowledge that these taxes are...significant. Businesses that are at all successful don't want to move to (or start in) a location with taxes that are higher than other states' -- this shouldn't be a surprise. Michigan, your taxes are too high compared to other states' to attract entrepreneurs.

But what about the economic venture funds and loans they advertise? Here's a news flash: other states have more extensive and accessible venture capital markets. If I were starting an alternative energy company, why wouldn't I locate where there is significantly more VC (and more sun/wind), like Silicon Valley? And typically, businesses don't take their venture funding to pay taxes either.

It's not an easy position to be in: the state has to balance taxing small businesses and large automakers. But either you're moving forward or you're not. Here's a crazy idea: increase taxes on sacred-cow automakers (who are laying off and on their way out of the state anyway), and lower/eliminate taxes on small businesses. Is that too naive?

Tourism is great and brings money to the state, but it's seasonal and is only likely to appeal to staycationers from nearby. Instead of running commercials to come and play golf in Michigan, perhaps the state should save the money and lower taxes on small businesses to be competitive with more business-friendly states like Nevada or North Dakota.

Michigan, I will still enjoy your tourism commercials with a good laugh. Let's hope hunting licenses make up for all of the small businesses starting elsewhere instead.

Sunday, February 22, 2009

Restarting the blog...

So, I'm restarting my blog from scratch, primarily because what I had before wasn't very interesting.

I shall start again with an angry letter, the kind you're supposed to write but not send:

Dear people who come to movies late,

Don't ask me to move seats in the middle of the row so you and your friend can sit in the middle section. You got here late. Those extra seats are meant as a buffer between groups and for coats/purses/trash, not you.

You deserve to sit right next to the wall or in the very front. If you don't like it, get to the movie on time.

Sincerely,
Get a Watch