Ethereum has a metric system of denominations used as units of ether. Denominations are named after the family name of seminal figures playing a role in evolution of computer science and crypto-economics.
Often times, I need to know what modules are currently installed and available in my python VM. Here are two commands for this…
1. run “help(‘modules’)” within your python interpreter.
This will list all the modules including the standard packages that comes with Python
2. If you need to know only the modules installed by you then you can use the pip for this.
Run “pip freeze” on your command prompt to list all the packages installed by you.
Here is my python version of the bowling game kata with unit tests
Unit Test: http://pastebin.com/g4RW1wUJ
I don’t know if there is an easy or “standard” way of doing this. Did not bother to google and i do so using the sys module in the interpreter…
64 bit ==> 9223372036854775807
32 bit ==> 2147483647
I started using wiki at work and over the years it became one of the tool that i daily use. I started to use wiki personally for myself to capture design thoughts, todos, planning items and organizing all my files (importing into wiki folder) with some context descriptions making it a mashup or portal. I use wikidpad and dropbox to sync this with all my machines (mac and windows). This is DIY alternative to Evernote or Things. I don’t want my unencrypted data on cloud. In fact it is very easy to turn this tool into whatever you want as a personal doc portal/GTD/planner etc., Installing on mac is pain and more pain if you are on 64 bit. This is because it is based on wxPython which is based on Carbon for mac and they are supported only for 32 bit.
Here are some of my tips to install on mac and is based on the shell script provided by them.
1. Python 2.6 (comes with mac and is enabled by default as 64 bit if your kernel is 64).
2. Install wxPython 2.8 for 2.6. Just use the dmg.
3. Download the WikidPad source and copy into your preferred location. Like in my case ~/tools/
4. Create a shell script that does the following…
1. set the python to run in 32 bit mode for that session using “export VERSIONER_PYTHON_PREFER_32_BIT=yes”.
2. cd to the directory of the Wikidpad source.
3. start WikidPad: python WikidPad.py
Use the shell script to start wikidpad and create wiki files under dropbox sync directories so that it is synced to all your machines. The nice thing is that the wiki creates a .lock file and warns if you accidentally edit the same wiki from two places.
Note: If you by default run on the 32 bit python then just follow the steps for users which will avoid all the above steps and create you a nice app. I guess they use py2app for this.
I’ve been using Fugu for a while now but not happy with it. It is old but still buggy. The ui design and features are not in par with WinSCP that i use in windows environment. Was recently looking for other choices and found the following two which seems to be quite new and say they work with cloud services. Will give it a try and see how it goes…
Among the list of admin guis available, i happened to pick this Rock mongo as it had many features compared to others. See below for details on installing this in ubuntu server…
1. Apt-get php5, php mod lib5 for apache2.
2. Apt-get php-pear (to get PECL) and php-dev.
3. sudo pecl install phpmongo.
4. Restart apache.
1. Follow the steps here. All it involves is download a zip and extract to a folder.
2. Now configure Apache to create a php app using the above the folder.
3. If required change the config.php to set the mongo server information like port, user name and password.
Rock mongo really rocks.
See here for detailed instructions.The steps can be summarized at high level as below…
1. Add the 10gen server to the software repo list.
2. Add the 10gen GPG key via apt-key to trust and verify the 10gen repo server.
Note: if for some reason you have firewall issues to retrieve the key then you can save the GPG key into a file and import using apt-key. see here
Switching between different OS always leads me to ask this question. If you do then check these two..
Brief description of each directory in the hierarchy
More indepth details on the hierarchy standard.