Monthly Archives: December 2008

636,580 Tail Wags Paid in Full

Taken Dec 24, 2008
Tibby - photo taken Dec 24, 2008

Tibby who was “My favoritest puppy dog in the whole wide world” called it quits today.  My little chunky chihuahua was a sweet quiet dog that wagged his tail more times than he barked.  One of his many nicknames was whirly because of his never ending tail wags. He was always ready to perform his ear cleaning duties on his big brother Jake.


httpv://www.youtube.com/watch?v=eunXqWszC-k

He suffered from congestive heart failure a disease in which the heart fails to supply enough oxygen to the body. He was suffering from shortness of breath which worsened over the last few weeks, until he just ran out of air. The last two days he became very weak and was barely able to stand. I’m happy that I had the day off this day after Christmas as I was able to hold him as we said our good-byes.

We had a quick backyard burial. He was eleven years old. I am relieved that his suffering is over, but very saddened to see him go.

Tibby we love you and you will be greatly missed.

Tibby and Zoe - photo taken Nov 8, 2007
Tibby and Zoe - photo taken Nov 8, 2007

Tibby - photo taken Jul. 22, 2006
Tibby - photo taken Jul. 22, 2006

Should Have Bought the Moon

1403 5th Ave

This is my rental property that I bought for $12,500 in September 2000 as it looked when I purchased it.

I rented the house several times for 6 years.

A few curb-appeal improvement were made, but over all little was done to the house.

I sold the house on contract to Jean and Jonny Keener January 2007.  I thought that this was a perfect situation.  I continued receiving monthly payments as I did when renting the house, but I held no responsiblity in the repair or property tax.

The problem came when the Keeners defaulted on their payments and stuck me with their $368 city water bill.  This month my lawyer filed a forfeiture of contract which voided the contract and return the property into my name.

I am selling the house to the neighbor to the north of the property for just a little more than the county values the land.

Maybe my money would have gone farther if I would a bought a piece of the moon.

In 1967, the United Nations adopted the Treaty on Principles Governing the Activities of States in the Exploration and Use of Outer Space including the Moon and other Celestial Bodies, which strictly forbid any nation from claiming ownership of the planets in our solar system. That treaty does not, however, forbid individuals from claiming ownership of planets. And that’s exactly what Dennis Hope did. Noticing the Haley’s Comet-sized loophole in the resolution, Hope wrote the White House, Kremlin and UN General Assembly in 1980 to inform them that he claimed the moon as his own.

php turns SQL to Excel

Thanks StarGeek for this code.

this php script will write data from php using text from an SQL table (MySQL, supply your own SQL query) to a microsoft excel (.xls) file. The Excel file is specified as such by a set of headers, defining content, using php’s header() function.

<?php
//Written by Dan Zarrella. Some additional tweaks provided by JP Honeywell
//pear excel package has support for fonts and formulas etc.. more complicated
//this is good for quick table dumps (deliverables)

include(‘DB_connection.php’);
$result = mysql_query(‘select * from excel_test’, $linkID);
$count = mysql_num_fields($result);

for ($i = 0; $i < $count; $i++){
$header .= mysql_field_name($result, $i).“t”;
}

while($row = mysql_fetch_row($result)){
$line = ;
foreach(
$row as $value){
if(!isset(
$value) || $value == “”){
$value = “t”;
}else{
# important to escape any quotes to preserve them in the data.
$value = str_replace(‘”‘, ‘””‘, $value);
# needed to encapsulate data in quotes because some data might be multi line.
# the good news is that numbers remain numbers in Excel even though quoted.
$value = ‘”‘ . $value . ‘”‘ . “t”;
}
$line .= $value;
}
$data .= trim($line).“n”;
}
# this line is needed because returns embedded in the data have “r”
# and this looks like a “box character” in Excel
$data = str_replace(“r”, “”, $data);

# Nice to let someone know that the search came up empty.
# Otherwise only the column name headers will be output to Excel.
if ($data == “”) {
$data = “nno matching records foundn”;
}

# This line will stream the file to the user rather than spray it across the screen
header(“Content-type: application/octet-stream”);

# replace excelfile.xls with whatever you want the filename to default to
header(“Content-Disposition: attachment; filename=excelfile.xls”);
header(“Pragma: no-cache”);
header(“Expires: 0”);

echo $header.“n”.$data;
?>

My 350Z

I bought this 350Z in Davenport, Iowa at the LuJack’s dealer. It had 10,800 miles on it. It has the Touring trim which gives you Bluetooth Handfree phone, Bose 6-disk CD changer, Leather seats.

dscn2672

It’s a kick in the butt to drive. Ask me sometime. I just my let you drive it.