Erik's Weblog 2.0

March 31, 2012

[@191]

Loan / Emprunt 1.0.1

I've released my first Android-ported app to the BlackBerry App World.

Loan / Emprunt is a very simple loan calculator, available in both French and English. I wrote it for my Dad last year, and figured it wouldn't take much to port.

I was right. It took nothing. The push of a button, and a slight modification to the about screen to remove a reference to Android. I just needed to check whether the app was running on a BlackBerry or not, using:

System.getProperty("os.name").equalsIgnoreCase("qnx")

I did have to wait for the PlayBook to arrive. I simply couldn't tell if it was working right under the emulator. Everything flashed all the time.

I haven't yet decided if I'm going to release it in an Android-compatible format or not. But as usual the source code is available.

[@043]

Great Home Remedies that Really Work!

  1. Avoid cutting yourself when slicing vegetables by getting someone else to hold the vegetables while you chop.
  2. Avoid arguments with the females about lifting the toilet seat by using the sink.
  3. For high blood pressure sufferers — simply cut yourself and bleed for a few minutes, thus reducing the pressure on your veins. Remember to use a timer.
  4. A mouse trap placed on top of your alarm clock will prevent you from rolling over and going back to sleep after you hit the snooze button.
  5. If you have a bad cough, take a large dose of laxatives. Then you'll be afraid to cough.
  6. You only need two tools in life — WD-40 and duct tape. if it doesn't move and should, use the WD-40. If it shouldn't move and does, use the duct tape.
  7. If you can't fix it with a hammer, you've got an electrical problem.
[@036]

Convert Plastic Into Oil

In an efficient and safe effort to save us from the ill-effects of plastic waste, Akinori Ito has developed a machine which converts plastic back into oil.

The machine produced in various sizes, for both industrial and home uses, can easily transform a kilogram of plastic waste into a liter of oil, using about 1 kW·h of electricity but without emitting CO2 in the process. The machine uses a temperature controlling electric heater instead of flames, processing anything from polyethylene or polystyrene to polypropylene (numbers 2-4).

1 kg of plastic produces one liter of oil, which costs $1.50. This process uses only about 1 kW·h of electricity, which costs less than 20 cents!