alex_at_the_whiteboard alex_header_info

Science I do many things...

This is a work in progress...

Code I write a lot of code...

"On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." - Charles Babbage

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian Kernighan

I know a little about many languages, specifically AWK, IDL, Python, C++, Java, JavaScript, and html.

Below are some codes. The first is a Python code (a pedagogical code I wrote in order to learn about various aspects of Python 2.5) which will play NIM with you, but it will almost always win because once the game falls into a situation in which the computer can win, it will always play optimally. There may be errors in the code and it also seems that it is not very Pythonic. The other code below is C++. It will solve the Sod Shock Tube problem in a very simple way. The final is a link to a suite of programs for cosmography calculation in IDL. If you have any suggestions to make my codes better please let me know.

Nim

Sod Shock Tube or Riemann Problem

Cosmography

And finally here is a mind melting code written in brainfsck. It is interesting to note that this is a Turing complete language. This is real code, written in an obfuscated manner. If you figure out what it does, and it is really quite simple, let me know.


++++++++++
[>++++++>+++++++++++>++++++++++++<<<-]
>+++++.
>--.
-------.
>.



     abf_icon