Garden Watering

August 27th, 2008

So you have a garden and need to keep it watered. You could try to remember and fit it into your day, but your plants may suffer. We recently installed (DYI Project) a Drip Irrigation system at our house and have watched the garden flourish! Drip systems use ‘drippers’ which release drops or light sprays of water directly to the plants. These drippers are rated in Gallons per Hour (GPH) with a typical potted plant in the summer needing a .5GPH dripper run for 2 times a day for 15 minutes each time putting the water where it is needed, directly on the plant.

I have expanded the system to have over 90 drippers/sprayers around the whole yard and we have plans to expand the system again to have it rain water feed. (This is how one project cascades into the next.)

Check out the folks at Drip Depot http://www.dripdepot.com/. They have some great instructional videos and starter kits.

To finish our system off, I attached it to a water timer I picked up from Wal-Mart and set it to run for a total of 30 min per day (15min at 6am and 15min at 6pm). Now we can travel and do things and know the garden is going to at least get its water.

The system was cheap considering what we pay for plants and the potential savings and health benefits for growing your own food.

That Fresh Smell When You Travel

August 7th, 2008

As a LifeHackDad, I get to travel a lot for work and the one thing that no one wants are stinky cloths when you get to your destination. This little trick I have been using for years and to me it really works.

In your suitcase put a new dryer sheet (of your preferred fragrance) to help keep your cloths smelling clean on the ride and hide the “used” smelling cloths on the way back home. I change out the dryer sheet about every month or so.

As a bonus to make it a little easier when I get home, I keep all the dirty cloths in a laundry bag, then its just one bag to take out of the suitcase for washing.

Hope this helps someone out!

Add company name to billing history

May 1st, 2008

Problem: When viewing the billing history table in Smartway — the administrative area of webjobs — it is difficult to tell what company paid for the job b/c it only includes the user ID.

Solution: — Add the company name to the billing table.
1. In smartway/modules/billing_history.php, around line 78, add this line into the array:

‘company_name’ => ‘company_name’,

2.Around line 236, add:

$company_name = $input[’company_name’];

3.Around line 312, add the following line into the array:

‘company_name’ => $company_name,

4. Around line 541, after this line:

$constraints[] = “bh.user_id = ‘” . $user_id . ‘\”;

add:

$constraints[] = “u.id = ‘” . $user_id . ‘\”;

5. For the entire SELECT statement and array around line 604, change it to this:

‘SELECT bh.user_id, u.company_name, bh.id, bh.timestamp, bh.name, bh.quantity, bh.price, bh.type, bh.pending, bh.comment ‘ .
‘FROM `jb_billing_history` AS bh, `jb_users` AS u ‘ .
‘WHERE bh.user_id=u.id ‘ .
“AND $constraints $order_clause”,
array(’user_id’, ‘invoice’, ‘company_name’,'id’, ‘timestamp’, ‘name’, ‘quantity’, ‘price’, ‘type’, ‘pending’, ‘comment’, ‘controls’));

6. Change the SQL query around line 706 to:

$sql->query(’SELECT bh.user_id, u.company_name, u.login, bh.timestamp, bh.name, bh.type, bh.quantity, bh.duration, bh.price, bh.comment, bh.pending ‘ .
‘FROM `jb_billing_history` AS bh LEFT JOIN `jb_users` AS u ON(bh.user_id = u.id) ‘ .
“WHERE bh.id = $id LIMIT 1″);

7. Change the language file so that the Company label appears in the table. Open smartway/conf/lang/eng/text.billing_history.php and add

‘company_name’ => ‘Company:’,

on the line below this comment

// Smartway translations for modules billing_history.php

You’re done! If all went as planned, company name should show up in the table after the invoice number.