Saturday, May 31, 2008

google IO 2008

Keynote Speaker - Marissa Mayer

Imagination is a musicale

- Muscle need exercise periodically, so do imagination

- Exercise Imagination and build product prototype: Google book, Google map street view

Numbers, numbers, numbers

- Accuracy for prediction

- Quantity and quality

- Test methodology : Split A/B testing

Urgent drown Important

- 50% of go-live product came from 20% time

- Accuracy for prediction

URLs

You Tube

http://code.google.com/p/hello-youtube/

Open Social Lab

http://code.google.com/apis/opensocial/articles/tutorial/io.html

http://chrisschalk - evangelist web site

http://incubator.apache.org/shindig/

http://sites.google.com/a/opensocial.org/opensocial/ opensocial.org

Map API

http://imagine-it.org/google/articles/mapsapi_codelab.html

http://imagine-it.org/google/articles/mapsapi_codelab2.html

Gears API

http://imagine-it.org/google/articles/gears_codelab.html

Thursday, August 2, 2007

use * for string duplication

I have not used * operation to duplicate string until recently:
valueStr2 "( %s" + ",%s"*(len(dict)-1)+")"

rather than the following c-type implementation
tempL = []
for i in dict.keys():
tempL.append("%s")
valueStr2 = "(" + ",".join(tempL)+")"

Tuesday, July 24, 2007

restart python to get newly imported module

newly imported python module by using easy_install can not be imported instantly. you have to restart the python session to import the new module properly
C:\Documents and Settings\mwang>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32
>>> import MySQLdb
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named MySQLdb
>>> quit
Use quit() or Ctrl-Z plus Return to exit
>>> quit()

C:\Documents and Settings\mwang>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
>>>