ImportError: No module named web
You landed on this page because you are trying to get started with web.py but you are stomped with an error called “ImportError: No module named web”. The tutorial on webpy.org is straightforward, but the first hurdle in installing web.py on your system can get very frustrating when you encounter errors. For this post, I [...]
gem install ERROR: While executing gem … (Errno::EEXIST) on Windows 7 x64
“gem install rails” won’t complete the installation on Windows 7 64-bit when executed on the command line with non-administrator rights. Create a short-cut to your Windows 7 desktop for cmd.exe, right click cmd on the desktop and “Run as Administrator”–then type gem install rails After doing this, the installation of rails via gem continued without [...]
Fornoobs.info is undergoing some maintenance work
Apologies for the few people who visits fornoobs.info, the domain and hosting expired today–and has slipped through my calendar. I’ve activated it since then, but there are some problems accessing the posts. I’m sorting it out at the moment.
Read a file line by line with Python
You can use this code when you need to walk through any text file line by line. This is especially useful when processing log files or any other file where you need to perform a specific action when certain conditions are met. The sys.argv[1] reads the first parameter that was passed from the command line. [...]
Printing line numbers of a source using Python
Sharing your codes with other programmers often requires that you reference the code itself. If the code is short enough it may not be much of an issue referring to it’s individual lines or if you loaded the code in a programmer’s editor like TextMate or Eclipse etc, which can display line numbers. Displaying line [...]
PHP5 and WordPress 2.8 (It’s not safe to rely on the system’s time zone)
After installing another test rig for WordPress (2.8) on Snow Leopard, there is a weird error. *** Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still [...]
Simple Installation – Apache, MySQL, PHP on Snow Leopard
Apache,MySQL and PHP is straightforward to install in OSX, in the past though, MySQL was probably a bit challenging to install on OSX, because it required downloading the source, adding the mysql group from the shell and changing permissions of some files–that has changed. You can install MySQL in OSX using a .dmg package. By [...]
PHP5 not enabled by default in Snow Leopard (OSX 10.6.1)
To enable PHP5 in Snow Leopard, you need to edit the Apache2 configuration file httpd.conf, you will find it in 2 places; first is in /private/etc/apache2/httpd.conf (surprisingly, PHP5 was enabled in this file, but Apache wasn’t processing php still)–the second place is in /etc/apache2/httpd.conf. Edit /etc/apache2/httpd.conf using any editor you like. If you are using [...]
wp-config.php problem on Snow Leopard (OSX 10.6.1)
The usual 5 minute installation of WordPress 2.8.x is a bit weird on Snow Leopard (10.6) —right after downloading http://www.wordpress.org/latest.zip, unzipped it in ~/Sites/wpstaging (that’s the name I chose to my WordPress development environment), created the database in MySQL, GRANTed the privilege of a wordpress user so that it can have access to the database, [...]
Decided to continue working on the WordPress Stubborn theme
Stubborn theme found a home in github—I’ve always wanted to try github and learn git anyway—so this is perfect fit, I get to continue working on the Stubborn theme while using git for configuration management. There are bits and pieces of the Stubborn theme which, right now, from hindsight, I don’t like as much as [...]
Older Posts »