Google is not doing Mountain View any good.

Mountain View must realize Google’s prestige is not paying the bills. Google does not generate the tax revenue Mountain View needs to pay for basic city services.

For cities, sales tax revenue is the main commercial real estate benefit, both from corporate sales and employee purchases made during the day.

Google’s billions in corporate service sales are not subject to sales tax, so Google billions in corporate sales do nothing for Mountain View.

Costco, San Antonio Center, Shoreline Amphitheatre and the other Mountain View businesses generate more sales tax revenue.

Before 2003, SGI occupied the North Bayshore buildings. SGI’s computer sales generated millions in revenue. Mountain View invested that revenue in $20 million for the light rail extension, a renovated downtown, Stevens Creek Trail and other community amenities. SGI employees patronized local businesses, generating more sales tax revenue and increasing employment opportunities for non-technical residents.

In 2003, Google moved in. Google’s free food, onsite-everything (oil changes to chiropractic care), and bussed-in employees is an excellent way to keep employees and their money sealed in the Googleplex bubble.

Since 2003, Google has IPOed and made billions. Google is now on a real-estate buying spree expanding the Googleplex bubble. Other North Bayshore businesses’ leases have been terminated and moved out.

Google’s success is more than Mountain View can afford. City staff has downsized and cut city services. This year, City Hall janitors had their salary cut. Mountain View’s Capital Improvement Plan has over $19 million in unfunded projects. Mountain View can only afford to replace 2 1960-era traffic signals/year. Good projects aren’t even considered because there is no money.

This year, Google has graciously donated money for 3 flashing signals on Shoreline and a study to figure out how even more Google employees can get to the Googleplex bubble. Perhaps Google will even find a few more pennies to pay Google security guards a living wage.

Google is looking at a Palo Alto campus – this is a good idea. Sunnyvale and San Jose also have available property. Mountain View can no longer afford the lost sales tax revenue. We need businesses that generate direct economic benefit – not unbankable “prestige”.

Google may try to “Do no evil”, but Google is not doing Mountain View any good.

Posted in political | Leave a comment

SocialMarketing WordPress plugin version released

A really great feeling:

Our second update to the plugin. This time the server is forcing the plugin to upgrade.

  • Fixed configuration issues with languages that require UTF-8 ( Thai ). (Categories were not properly registering on the server)
  • When server cannot be contacted because it is being updated, the plugin will now look for the status message.
  • Warn sites that are multi-homed wordpress that the plugin does not support those sites now. (we have not tested it)
  • only register users that have an email address ( users without an email address can not publish content social media sites)

A bit of a scary moment because I have multiple accounts at multiple ISPs and each had their own private DNS entry for

Posted in technical | Leave a comment

Quick and dirty upgrading a SaaS (Software-as-a-Service) when then there is bad data

One of the under-appreciated, but very important, parts of running a SaaS (Software-as-a-Service) business is the upgrade path. This is particularly hard when you are trying to be a lean startup.

The pure SAAS (Software-as-a-Service) model means “no installed” software on the client machine. In the ideal case, a new server is pushed to production instantly and the users never notice any downtime. They just suddenly have a better experience.

The reality is not that easy. This is particularly true if the new release includes bug fixes to bad data or misplaced data problems. Now you have to make sure that the bug fix doesn’t cause new bugs.

For example, lets say that there was a bug when storing user email addresses. The bug was that email addresses where not stripped of whitespace before and after the email address. As a result, the database had email entries:


ID EMAIL_ADDRESS (the problem)
1 ‘ [email protected] space at beginning
2 [email protected] ‘ space at end
3 [email protected]

The EMAIL_ADDRESS column is also UNIQUE.

Furthermore, USER_EMAIL table ID maybe a foreign key in other tables, fixing the existing data maybe more trouble than it is worth.

For this post, lets just assume that there is no foreign key problem. The next problem is that updating the existing rows will result in violating the UNIQUE constraint.

Lastly, there is this nagging (or there should be) question in the back of your head: “Is my fix as complete as I think it is?” Some where was there a query that will be looking for the email address with the space at the end? An audit table perhaps? Some sales report that will now no longer run correctly “[email protected] “?

Important NOTE: give yourself an escape path:

  1. Backup the database
  2. Test your fixes on a backup

It is for these doubts of invincibility, my approach is to add an new column that is not UNIQUE but just indexed.

new USER_EMAIL table:

1 ‘ [email protected] [email protected]
2 [email protected] ‘ [email protected]
3 [email protected] [email protected]

I then modify the queries that search for email address to look at the NORMALIZED_EMAIL column.
For new entries, both columns are written with the same whitespace stripped values.

Usually the biggest problem are queries that are expecting a single row being returned now returning multiple rows ( after all EMAIL_ADDRESS was supposed to be unique )

After running local tests, then push to production. Let everything run for a while. Confirm that the code works as expected.

The next step is to rename the EMAIL_ADDRESS column to WHITE_SPACED_EMAIL_ADDRESS and see if there any queries that break. Fix the broken queries and repeat.

At this point, revisit and determine if the duplicate (if considering just the NORMALIZED_EMAIL column ) can be consolidated.

These steps are not the most complete and they are not the most bulletproof. But for a smaller startups, they are “good enough”.

Posted in technical | Leave a comment

Does the javascript community have a repository

Apple, Microsoft, Google, Adobe, et. al. install software have automatic code to handle pushing out security fixes.

On the development side, Java has maven or ivy to retrieve dependent jars from various public repositories.

Ruby has even better dependency retrieval tools: gem and bundle.

Does the Javascript community have any equivalent tool? I have found a number of tools to manage dynamically loading dependencies into the browser. I am NOT looking for those tools.

Specifically, I am looking for a tool that a new developer uses to retrieve the javascript files they need. The developer runs this tool and:

  1. It looks at the project dependency description file
  2. Discovers that the project needs jquery-ui-1.10.2, tiny_mce-3.5.8 and prettyLoader-1.0.1
  3. Retrieves jquery-ui-1.10.2.min.js, prettyLoader-1.0.1.js, tiny_mce-3.5.8 from the web
  4. Installs the .js and the .css into a local repository
  5. Realizes that jquery-ui relies on jquery-1.9.1 and downloads/installs jquery
  6. Determines that the tiny_mce needs the jquery plugin, and downloads and installs it.

After all this, the developer has a local copy of all the js/css files needed.

If a new tiny_mce or jquery comes out, the project file is updated and the developers just return the tool and they get all the new files.

If no version of a js library is specified then the latest release version is retrieved.

Please NOTE I am talking about a tool the website developer runs when they are updating the website code; the tool does not run in the browser. This is not dynamic loading of javascript.

Posted in technical | 1 Comment

Always check twice

You should always double check your timing testing methodology.

Robbie Ferguson got very excited about:

So I thought, let’s run the world’s simplest test: how fast does wget receive the jQuery library on Linux? It may not be a realistic benchmark in all cases, but it gives us a bit of a look at how quickly each service delivers the js.

uh oh …. “simple” tests aren’t so simple sometimes.


Connecting to||:80... connected
92,629      --.-K/s   in 0.05s   
2013-03-22 14:04:54 (1.73 MB/s) - ‘jquery.min.js’ saved [92629]


Connecting to||:80... connected.
92,629      56.3KB/s   in 1.6s   
2013-03-22 14:05:10 (56.3 KB/s) - ‘jquery.min.js.1’ saved [92629]

But then on the second (and third and …) request:


Connecting to||:80... connected.
HTTP request sent, awaiting response... 200 OK
92,629      --.-K/s   in 0.1s    
2013-03-22 14:08:07 (893 KB/s) - ‘jquery.min.js.6’ saved [92629]


Connecting to||:80... connected.
92,629      --.-K/s   in 0.1s    
2013-03-22 14:08:01 (643 KB/s) - ‘jquery.min.js.5’ saved [92629]

Notice that Google and Cloudflare both download at about the same rate (and very fast).

Notice the difference? In both cases, the second time out the DNS resolved to a different and closer server:

Cloudflare traceroute to server:

 3 (  17.153 ms  9.443 ms  12.030 ms
 4 (  15.320 ms (  20.916 ms (  17.887 ms
 5 (  18.458 ms  22.712 ms  23.970 ms
 6 (  20.503 ms  19.316 ms  19.999 ms
 7 (  39.213 ms  25.379 ms  20.759 ms
 8 (  17.737 ms (  31.771 ms (  20.209 ms
 9 (  15.915 ms  17.249 ms  16.325 ms

Cloudflare occasionally sent me to a different server but the speed was consistently 0.1s

Google traceroute to first server:

 3 (  9.586 ms  11.568 ms  11.461 ms
 4 (  12.663 ms (  19.735 ms (  47.036 ms
 5 (  19.118 ms  21.943 ms  35.681 ms
 6 (  13.524 ms  13.981 ms  34.744 ms
 7 (  14.712 ms  16.271 ms  14.320 ms
 8 (  14.418 ms  13.487 ms (  21.560 ms
 9 (  17.685 ms (  44.087 ms  20.266 ms
10 (  48.702 ms (  31.927 ms (  31.606 ms
11 (  65.608 ms (  39.036 ms (  43.722 ms
12 (  33.895 ms  39.076 ms (  36.646 ms
13  * * *
14 (  66.471 ms  35.639 ms  76.047 ms

Google traceroute to second server:

 3 (  11.852 ms  10.684 ms  11.592 ms
 4 (  16.404 ms (  23.193 ms (  20.005 ms
 5 (  40.921 ms  20.899 ms  23.967 ms
 6 (  20.604 ms  18.826 ms  17.855 ms
 7 (  20.478 ms  18.200 ms  21.693 ms
 8 (  15.495 ms (  16.727 ms (  34.721 ms
 9 (  16.346 ms  16.799 ms  35.777 ms

I then tried with a different file and for both google and cloudflare I got 0.1s

So what does this mean? The initial delta was related to which server replied to the DNS lookup. For whatever reason google responded to the first DNS request for with a server that was far away. Later requests got better.
Cloudflare was consist about providing a better server on the first try.

Posted in technical | 1 Comment

Do Something: Tom’s legacy (my remarks at my best friend’s memorial service)

On Christmas 2012, my best friend from high school committed suicide. He sent a final goodbye email to many people. In that email, he didn’t blame anyone. He was incredibly considerate for other people’s feelings even in death. I didn’t hear Tom say anything bad about anyone else ever, even when they were very nasty to him. But that was just Tom.

The email was timed so that it was received after he had already died, so that no one could stop him, so that no one could help him.

These are my comments at Tom’s memorial service:

I met Tom 4 times in my life. 33 years ago. 28 years ago. 24 years ago. 3 years ago.

33 years ago I had just transfered to Tom’s high school. I was in 10th grade and Tom in 8th. Just a few months ago I had discovered that the computers in science fiction books were real.

I was shy, Tom wasn’t as much. Through the magic of study hall we played with the Trash-80s together, played startrek. Tom showed us the perfect way to say NO-O-O-O. Mr. P. was our bechalked benevolent god. We came in 2nd at a programming content. I became a janitor because it gave me the power of keys and late night access to the computer lab. I wasn’t the best janitor.

I remember him as my best friend for those 3 wonderful years in high school. But he was also very private about his home life. He would come over to our house – but for some reason or another I could never go to his. I never saw his family – there was some secret there. But being in high school, it was enough that we were friends.

I graduated and left for college. I am not very good at keeping in touch and neither was Tom.

28 years ago. We got back together. I remember Chicago and LA Origins. Late night games of Pit.

24 years ago, Tom invited me to LA after I had gotten laid off. I packed my bags and headed west. Tom’s offer pulled me to where I would thrive.

He then disappeared trying to help Kristina. He stopped answering the phone or the door. For 2 decades my best friend cut me off and disappeared trying to save another. And died. And I mourned. I moved on.

He then reappeared 3 years ago. He was both the same and different. He was desparate and trying to not be desparate. He need help getting his mother’s things moved.

He needed money. After 20 years of no contact I was both happy and wary. People change after 20 years. Tom’s personality and heart hadn’t. I helped him and his mother’s things got moved.

He was still trying to save everyone else in his life. In the emergency instructions on an airplane, you are told to make sure you fasten your air mask on first before trying to help others. Tom didn’t do that – he sacrificed a brilliant career and potential to try to save others. And he didn’t. And he didn’t save himself.

3 months ago, he asked for help again. This time I didn’t. I took a principled stand that I wish I hadn’t – and for that I am eternally sorry. There were very specific – very doable things that I could have done; things that wouldn’t have cost much. And I didn’t.

Tom is dead. But others are living. Tom’s death is the 4th suicide in my life. I promise you this, everyone us is young enough that we will know another person who is considering suicide or will commit suicide. Everyone of us needs to do something to help. Not to offer advice – to do. To give of our time, to help with something – get a piece of paper over to the DMV so that they don’t lose their driver’s license, help with babysitting, help with time. Help take the weight of the world off their shoulders so they can breathe. Do not ask why they can’t do something “so simple” – they can’t. Depression is overwhelming engulfing. The world suffocating with burdens and demands. Help lighten the load. Do something. No advice – just do. Not money – but time and energy. Share the burden. 3 months ago when Tom emailed me for help – I was too busy.

December 14th – 11 days before Tom committed suicide on Christmas, he emailed me and it was a very positive email. Things were looking up, things were going great. When people are dying, often times there is an apparent great improvement just before death. People come out of coma, they are responsive and coherent in the hours before death. That final note was the artificial improvement before Tom died from depression.

All of us know someone else still alive who will die from depression – do what you can to help stop it before it becomes terminal. Otherwise I promise you this, you will be attending another memorial service

Posted in social commentary | 2 Comments

Code Review #9 : The importance of doing the small things right

door-to-nowhere-winchesterDo the small things right. Make sure your craftmanship shows pride.

The code “working” is not enough. The craftmanship. The attention to detail is equally important.

Part of the way that Steve Jobs made Apple great is his insistance on craftmanship

Craft, Above All
Under Jobs, Apple became famous for a level of craft that seemed almost gratuitous: For example, on the “Sunflower” Macintosh of a few years ago, there was an exquisitely fine, laser-etched Apple logo. As an owner, you might see that logo only once a year, when moving the computer. But it mattered, because that single time made an impression. In the same way, Jobs spent a lot of time making the circuit boards of the first Macintosh beautiful — he wanted their architecture to be clean and orderly. Who cared about that? But again, that level of detail would have made a deep impression on the few people that would have seen the inner guts.

So in a way, it’s not a surprise that this level of craft was one of the first design lessons that Jobs ever got, and he learned at the hands of his father. Quoting Walter Isaacson, from his biography of Steve Jobs:

Fifty years later the fence still surrounds the back and side yards of the house in Mountain View. As Jobs showed it off to me, he caressed the stockade panels and recalled a lesson that his father implanted deeply in him. It was important, his father said, to craft the backs of cabinets and fences properly, even though they were hidden. … In an interview a few years later, after the Macintosh came out, Jobs again reiterated that lesson from his father: “When you’re a carpenter making a beautiful chest of drawers, you’re not going to use a piece of plywood on the back, even though it faces the wall and nobody will ever see it. You’ll know it’s there, so you’re going to use a beautiful piece of wood in the back. For you to sleep well at night, the aesthetic, the quality, has to be carried all the way through.”

For that reason, I insist that developers spend the time to complete the craftmanship of their code. Their code must blend seamlessly with the rest of the code. There must be no oddity, no idiocracy.

Coding standards/styling is to be followed rigorously so that the true beauty of the code’s functionality can be appreciated. But like doors, the code must fit with the overall design of the project.

Posted in code review | Leave a comment

Luddites are right

Timothy Geigner (giggling fool) gets a good titter in at Techdirt

I love luddites.

Those examples aside, I have to admit this is a new one for me. Apparently there once were radios that you had to wind up to use and Trevor Baylis, the guy that invented them, says Google is making younger generations brain dead.

“Children have got to be taught hands-on, and not to become mobile phone or computer dependent. They are dependent on Google searches. A lot of kids will become fairly brain-dead if they become so dependent on the internet, because they will not be able to do things in the old-fashioned way.”

Let’s see if I can break down the pure wrongness of this kind of thinking with a couple of fun little analogies.

  1. Children have to be taught how to tend to their horses and not become dependent on automobiles or public transportation, otherwise they may not be able to ride horses any longer.
  2. Children have to be taught how to use an abacus and not become dependent on calculators, otherwise they not be able to use abacuses in their adult daily lives.
  3. Children have to be taught how to unhook a chastity belt, otherwise they may not be able to have sex once they are married and somehow chasisty belts come back into circulation because….yeah, because.

If a student always relies on a google search to solve a problem – they never deeply understand the answer. As a result, they never understand if the answer supplied is correct for their QUESTION.

They never learn to think analytically.

I hire many developers. My first interview question is to ask how the operating system handles multi-threaded applications. The best developers know the basics of an operating system. The mediocre developers – the ones that produce race conditions, code with security vulnerabilities, bloated data structures and crappy db access are all people like Timothy (the author) that laugh at “luddites” like Trevor.

Posted in management, social commentary | Leave a comment

What-If / Green Cows – invalid results due to missed energy source

The about Green Cows missed a few important factors that can help reduce the energy a cow needs. The original suggestion was chlorophyll in the cow’s skin would produce 2-4% of cow’s daily energy need of 50 million joules.

However, our fearless scientist neglected some additional ways a cow could be genetically improved to reduce its energy needs.

  1. Methane gas combustion
  2. Increasing cow’s surface area
  3. Improved locomotion

Methane Gas Combustion

Methane gas from cow farts produce 12-17% of the methane produced in the world. This is about 6million metric tons. Each molecule of methane will release 2 water molecules, CO2, and 891kJ when burned. Therefore the cow can reduce its energy need with a small internal turbine that will generate power for the cow machine + water to drink. I will leave it to the reader to determine the extra benefit.

Increase the cow’s sunlight collection surface

We should genetically cross the cow with a porcupine giving the new cowupine a greater surface area to absorb sunlight.

This would have the benefit of making events like rodeos and bullfight way more interested and balanced.

Improved locomotion

The kangaroo is the most efficient traveler. Genetically cross the cowupine with the kangaroo to make a cowuroo.

Posted in entertainment, random silliness | Leave a comment

Dear Amazon

My open letter to Amazon in response to Amazon randomly cutting off and erasing purchases off a user’s Kindle (GigaOm reminds you that Amazon is just renting the books to you):

Just wanted to let you know that I am extremely glad this happened.

I now know to never buy nor will I allow anyone in our family buy a Kindle. Since I am the techie in the family, I want to reassure Amazon that it will never have to worry about any person in my family or my extended family from violating Amazon’s policies as we will stay well away from Kindle or its electronic products.

From the comment section, I see that the same strict policy applies to Amazon Payments. So I would also like to reassure you that I will keep my business transactions away from your system as well.

You will be reassured that we are not using Amazon AWS either. Go Rackspace!

Thank you for this opportunity to reassure you that you will not have to deal with having to shut me down. Thank you again for this warning that Amazon feels that it is perfectly acceptable to destroy a customer’s purchases with such care and indifference. The world is definitely a better place because of your fearless pursuit of poor corporate behavior.


Posted in social commentary, starting a company | 1 Comment