Category Archives: How To

Mining Bitcoin in the Eligius pool using Phoenix2

I prefer to use the Eligius bitcoin mining pool because the pool takes no cut (compared to the larger, more popular BTC Guild, which takes 3-5%). The “getting started” for the Eligius Bitcoin mining pool doesn’t show how to configure Phoenix2, which is faster than, and supports more features over the older Phoenix 1.xx miner. […]

How To Save Struts Messages After a Redirect

If you’ve got an Action in Struts 1 that leaves an error or message for the view, it does it somewhere in the class like this: ActionMessages messages = getMessages(request); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(“message.detail”, “Normality has been restored.”)); saveMessages(request, messages); However if your Action later selects an ActionForward that redirects (possibly unbeknownst to the Action, since […]

How to Create an Empty SAS Dataset

If you were to do this in SAS to create an empty SAS dataset: data mytable; run; It would actually create a dataset with one row. The data step cycles through once, hits the end (run), outputs a row, then comes back and finds it has no more rows to process so it stops. To […]

DIY LED Hula Hoop

Bill of materials 1 Arduino Pro Mini 328 – 5V/16MHz Arduino Pro Micro 328 – 5V/16MHz 3 meters of Adafruit Digitally Addressable LEDs or any 5V strip with LPD8806 chips 1 Tenergy 32003 Protection Circuit Module 4 14500 900mAh Lithium batteries with tabs 3-4 meters of 1″ HDPE (High-Density Polyethylene) tubing 3 push-button switches 3 […]

Internal PC Speaker Beep on Startup and Shutdown

Pretty neat trick by Craig Perry at The following is pretty much word-for-word reposted. Since I have an old 400mhz Pentium 2 under my desk that I use as a Tomcat development box. I also find it useful to use it as a development platform that gives immediate feedback of suboptimal code, and it’s […]

How to retrieve the ID after a MySQL Insert in Python

The MySQLdb documentation mentions conn.insert_id(), however this appears to have been deprecated, maybe? This really should be on the cursor object anyway. And behold! There is a lastrowid on it! It’s just a little bit undocumented

How to remove iGoogle

To remove iGoogle and revert to the classic vanilla google homepage, click “Classic Home” in the upper right corner of the screen.

Enable mod_userdir for Apache2 on Ubuntu 8.10

To enable mod_userdir, so your server’s Apache httpd server will respond to requests like “”, use the a2enmod command, then restart Apache to pickup the change: sudo a2enmod userdir sudo /etc/init.d/apache2 restart

Installing SAS 9.1.3 on Ubuntu Linux 8.10

It works. Just follow the instructions.