Ryobi s430 4-Stroke leaky gas cap.

My 4-Stroke Ryobi S430 Weed Trimmer has been great, I’ve not had problems like others have had with their, except it leaks gas on my right arm my from the fuel cap breather while I’m weed eating.

I haven’t hung it up in my garage because when I do, it constantly drips fuel out. I’m about to see if I can find a non-vented cap for storage, so I can hang it up without leaking. I know it needs the breather to run. I kinda wish I spent more money for a better built unit.

Any ideas?

Introducing Amazon Silk

Amazon just released a video with their new idea on web browsing. They’re going to implement it with the new Kindle Fire edition. It sounds pretty cool, but what about privacy? Amazon filtering your internets??

Trixbox Polycom Directory of all extensions for IP650

I needed to quickly generate a full directory for a receptionist console. Since Trixbox doesn’t do this, I wrote some Perl to do so. It’s pretty simple, you will need to install Polycom::Contact::Directory from CPAN. It will connect to the localhost MySQL server and pull all extensions out, make an xml and save it to the appropriate path. You will need to supply the MAC address, I guess I could modify a bit to pull the MAC out of the Endpoint Manager table, but I like being able to just supply the MAC.

Thanks Zachary Blair for the easy module!

#!/usr/bin/perl -w
# Quick script to hack out a directory for a mac address. I use it for the
# receptionist's BLF on her IP650 with sidecars.
use strict;
use Polycom::Contact::Directory;
use DBI;

# Grab the MAC address from ARGV and make a file
my $mac = $ARGV[0] or die "No MAC Specified\n";
my $contactFile = "/tftpboot/polycom/contacts/$mac-directory.xml";

# Create a new Empty Directory
my $dir = Polycom::Contact::Directory->new();
# Connect to the trixbox MySQL DB
my $dbh = DBI->connect('dbi:mysql:asterisk:localhost:3306','root','passw0rd',{ RaiseError => 1});

# Pull an array ref for the extensions
my $userAry = $dbh->selectall_arrayref("SELECT extension,name FROM users ORDER BY extension");


# Set counter for speed dial index
my $x = 1;

# Loop through extensions
for my $a (@$userAry) {
# Split the trixbox name into first and last.
my ($fn,$ln) = split(/\s+/,$a->[1],2);

# My contacts are generally dirty, I'll make them look better. Some people may want
# to comment this out if you have people with unique capitalization.
$fn = ucfirst(lc($fn));
$ln = ucfirst(lc($ln));

# Insert the record into the object.
# I like the labels to be: extension firstname lastname "3721 Awesome Dude"
#  -- buddy_watching lets the polycom monitor BLF status. For this to work,
#     you must have feature.1.name="presence" feature.1.enabled="1" in
#     /tftpboot/sip.cfg
#  -- Check Polycom::Contact Documentation for Options
{   first_name => $fn,                  # <fn> in xml
last_name  => $ln,                  # <ln> in xml
contact    => "$a->[0]",            # <ct> in xml
label      => "$a->[0] $fn $ln",    # <lb> in xml
buddy_watching => 1,                # <bw> in xml
speed_index => $x,                  # <sd> in xml
buddy_block => 0,                   # <bb> in xml
auto_divert => 0,                   # <ad> in xml
auto_reject => 0,                   # <ar> in xml


# Save the contact file.


Oracle sues Google over Android and Java

Oracle sues Google over Android and Java | Relevant Results – CNET News.

Wow, I must have missed this news. Not sure how I feel. IMHO programming languages should be free and open. You can make your own IDE and sell it, but really the right to use the language should be free, or even in the case of Java, sell your VM to people.

Maybe I’m not well versed enough on the whole ordeal. Any insight anyone?

Birthday Gifts – Kindle

My parents got me a Kindle, Wi-Fi, 6″ E Ink Pearl Display for my birthday today. They also picked it up with a Kindle Leather Cover, which is a VERY nicely made leather cover. I’m not sure I’d want the lighted one, but I will enjoy it. The Kindle was a snap to get setup and registered. Now I just have to finish the paper books I’m in the middle of so I can get to reading on the Kindle. My dilemma: Rebuy paper books on the kindle and “amazon store” the old ones? Or finish reading my paper books and then sell and buy new E-Books?

Also to test.. PDFs! I’ve got a ton of Manuals on pdf i’d like to convert to the Kindle.

Another nice thing I noticed.. Amazon gives away Free Classics!! AWESOME!

Oh here’s an awesome video I came across. Looks great fullscreen!

Setting up Memcached for HTML::Mason

Updated the corporate website today to include memcached. It was hitting our legacy application’s MSSQL database (which we have to still use), a ton, and slowing down the *choke* windows application.

Anyways, memcached saved the day! Way less hits on the database, and only took a few simple hooks to implement! I know I could have used Mason’s cache, but it isn’t distributed across servers that were not on this web server.

We use HTML::Mason for the site, so just a few simple hooks did the job.
1) Preloaded the Cache::Memcached module into my mod_perl.
2) Most of the website is driven off part number lookup. Even non parts are actually parts in our database, but just have content associated with them. So in the part retrieve Mason page, I added a line to load up memcached.

my $memd = new Cache::Memcached {
'servers' => [ "", "" ],

I get a $pn variable in from all other places so I check for its existence in the cache.

$mPart = $memd->get($pn);

Then just add a hook around my standard DB call and then a set after the pull and assign if we hit an else.

if (!$mPart) {
$partList = $dbh->selectrow_arrayref("SELECT blablabla from priceBook WHERE itemID = '$pn'");
$memd->set($pn,$partList,600); # Expire cache at 10 minutes (600 seconds).
} else {
$partList = $mPart;

cURL issue with backwpup for WordPress

I noticed my Amazon S3 backups weren’t running lately using backwpup for wordpress.

Took a little digging, but I had to take the certificate verification out of the amazon aws php api.
Commented out line 614:

//curl_setopt($curl_handle, CURLOPT_TIMEOUT, 5184000);

Changed line 624 and 625 to false:

         curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);
         curl_setopt($curl_handle, CURLOPT_SSL_VERIFYHOST, false);

Ended up working great after that.

googlecards wordpress link

Well I had some troubles getting googlecard widget for WordPress to work right.

My fix:

1) Change the url to https in googleCardClass.php

2) About line 113, added a line to make it not verify the ssl certificate when pulling with curl.

curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, false)

3) Change googleCards.css since it seemed to not like my theme..

       #plus_card { height: 90px; }
       #plus_card_name { font-size: 10px; }

Works for me!

Crazy spam of the year

This just came into my email:


1. Heroin, in liquid and crystal form.
2. Rocket fuel and Tomohawk rockets (serious enquiries only).
4. New shipment of cocaine has arrived, buy 9 grams and get 10th for free.

Everebody welcome, but not US citizens, sorry.

ATTENTION. Clearance offer. Buy 30 grams of heroin, get 5 free.

Please contact: [email protected]

PHONE 0093(0)4765481
FAX 0093(0)4485291