Archive for February, 2014

The Evil Genius

February 25, 2014

Is Simulation Hypothesis (SH) real?

Gödel's Lost Letter and P=NP

Unknown

Ren Descartes is famous for countless things in mathematics—Cartesian products, Cartesian coordinates, Descartes’ rule of signs, the folium of Descartes. He is also famous for his work in philosophy and the notion of an evil genius. The evil genius presents a full illusion of a reality, and “fools” Descartes into believing there is a reality, while actually there is none.

Today Ken and I want to talk about the evil genius, and its relationship to the simulation hypothesis.

The hypothesis (SH) can be traced back far into history; even Descartes was not the first to wonder about reality and the possibility that it is an illusion. Recently the SH has surfaced as a “serious” thought. So Ken and I decided that we would comment on SH: did we really decide this on our own, or are we just part of the simulation? Oh well, who knows.

The Simulation Hypothesis

View original post 1,708 more words

On ipython

February 19, 2014

Some notes that I scribbled over ipython:

Use %magic functions. %paste for pasting code that has been indented in a foreign environment. Actually the “%” here can be skipped. Some other examples are: run <script_name.py>, pwd, cd <dir_name> and some other shell commands as well. Shell commands can be run by using ! as prefix.

%timeit for easy profiling.

%run to execute the scripts in the current namespace.

<func_name>, <module_name> followed by ? or ?? return documentation and even source code. Out[n] provides the results for the previous expressions.

After a program or script has crashed, %debug takes you back to the line where it failed in the debug mode. %pdb will also do the same but before running the program or script.

%pdef, %pdoc, %edit, pdb.run() profile.run(), !echo “Hello {<python_var>}”, CTRL+p CTRL+n, CTRL+r and finally %lsmagic.

Ending is a bit abrupt as I had to salvage this post. So I only left the keywords in.