Tuesday, November 30, 2010

How to install google chrome browser behind firewall, download standalone

I had issues installing google chrome since I was behind a firewall and it would fail. You can install google chrome by downloadingthe alternative standalone install which is larger but saves you the issue of installing behind a firewall or proxy:
Here is the link:http://www.google.com/chrome/eula.html?standalone=1&hl=en&brand=CHMA

Saturday, November 27, 2010

Thursday, November 4, 2010

Python max index numpy.argmax(asarray(

So in Matlab I loved how I could do:

[A I]=max(Array)

And get I the index of the maximum value. To do this in sage (python) I finally ended up with this command:

I=numpy.argmax(asarray(Array))

Where Array is my python list, I have to use asarray() to convert it to a numpy array. Then the argmax returns the first occurrence of the maximum.