Friday, July 20, 2007

Sunday, July 15, 2007

looking inside library (.lib) file

If you want to see what functions are exported by a library use:
dumpbin.exe which comes with visual studio.
e.g.
dumpbin /symbols /exports kernel32.lib

it is particularly useful when you get link errors. I made the mistake of calling a stdcall function with cdecl convention and got linker error for unknown symbol. When I looked inside the library, I realized the error.

Wednesday, July 11, 2007

seconds in decade!

Google search as well as live search has a nice feature where you can enter
equations like 72*34 or e ^ -2 which will return the answer.

In fact Google goes one step further. It even handles queries like "seconds in decade", 70 farenheit" [which I need all the time, because I don't have any feeling for farenheit!]. Seconds in decade didn't work in live search.

Monday, July 9, 2007

2 questions to ask high school kids

1. Does earth rotate clockwise or counter clockwise seen from North pole to south?
2. Does earth orbits around the sun clockwise or counter clockwise seen from North pole to south?

I found it very useful to think about these questions. It helps them appreciate about experimental physics too.
Advanced: It made me realise that I can't measure my own velocity [or direction of spin or orbit] just by looking at me. Velocity has no absolute meaning [special relativity]

Wednesday, July 4, 2007

C runtime source

If you installed visual studio, C runtime source [code for strcmp etc. - most of the interview questions can be answered with this!] is available at:

C:\Program Files\Microsoft Visual Studio 8\VC\crt\src

Thursday, June 28, 2007

Java source

In case you didn't know, Java source is available for public download.
You can see how each of the classes like String etc. are implemented as well as learn about many data structures like Red black tree.
http://download.java.net/jdk6/

Tuesday, June 26, 2007

Coit tower

If you want to see a full view SF and Bay this is one of the places to go.
You can see both Golden gate and bay bridge and the bay in between.
Also you can see plenty of SF high rises. The view is very gorgeous at night!

P.S: SF Museum of modern art totally went over my head! I didn't understand anything!