Entries Tagged as 'ramblings'

Friday, September 19th, 2008

I’m a PC. And I’m miserable.

i’m a PC - and i do boring, ordinary, every day things.  please make me an operating system that works like I do.  make it boring, ordinary, and lacking in innovation. oh, and let is SHRED my hard drive on startup, too…i LOVE that. oh, i almost forgot! could you make it somewhat stable until about 3 months of heavy usage — then let all the applications start colliding in registry hell. oh and let it take 5-10 minutes to boot up then, too. that’ll give me time to drink the crappy office coffee before i can actually do any work

Tags: > >

Monday, September 8th, 2008

The Government Is Trying to Get Us … With Rainbows

Aren’t crazy people fun?

Friday, August 15th, 2008

Quote of the Day (year? phase of my life?)

“So let me guess,” she says, “you are the guy doing the software.”

“Yeah,” he admits, a little defensive, “but the software is the only interesting part of this whole project.  All the rest is making license plates.”

That wakes her up a little. “Making license plates?”

“It’s an expression that my business partner and I use,” Randy says.  “With any job there’s some creative work that needs to be done — new technology to be developed or whatever.  Everything else — ninety-nine percent of it — is making deals, raising capital, going to meetings, marketing and sales.  We call that stuff making license plates.”

– Crytonomicon, Neal Stephenson

Thursday, May 29th, 2008

Gas-Powered Lawn Mower

First off, the article says “3 Steps”, but look a little farther and you’re realize that “converting the engine to one powered by solar panels” should not be considered merely one step.

http://www.engadget.com/2008/05/29/gas-powered-lawn-mower-gone-solar-via-3-step-mod/

But the kicker?  The mod costs $1500.  What?!  You’ll never spend that much on gas for that machine in its entire life.

Silly.  Just silly.

Tags: > > >

Tuesday, May 20th, 2008

Biker Gang

In order to save money on gas, I bought a scooter. I only live 3 miles from work and we’ve got limited parking, so taking a car in seemed a little ridiculous. I tried riding my bike in, but I always got into work sweaty and gross.

The scooter put me back about $2,000 after taxes, fees, etc. Not too bad. And she gets about 70-80mpg. While everyone is dishing out $100 to fill up their commuter SUV, I’m throwing back about $4 a month for my little Kymco 50cc scooter.

Yes, I agree, it’s not the prettiest thing. When I turn the key, there is no testosterone-filled roar of manliness. I don’t own a leather jacket or even a cool helmet (I asked for the cheapest one they had that would still keep my head in tact). But it’s easy, I can park anywhere, and I get good gas mileage.

A few weeks ago while trying to find an ATM, I was driving some side streets between Santa Monica Blvd and Wilshire in Santa Monica. A dad and his teenage son were standing in the street tossing a football and I putted by. The teenage son turned as I rode past, made an annoying whiny motoring sound with his mouth, and made the “elbow-at-the-hip-hand-high-and-turned-down-sissy-sign” with his hand. Aside from my boss making a “scooters are gay” joke at work once, this was really the first time I’d been made fun of on my scooter. Part of me wanted to pull over and tell him all the wonderful benefits of owning a scooter…or rub my MPG in his redneck face. But alas, I putted by way to the ATM without a thought. My life as a gas-saving two-wheeler was somehow tarnished knowing that everywhere I went, I was looked down on.

That is, until today.

Riding down Colorado I saw another scooter-er approaching from the opposite direction. As I passed, I took a glance over to see what cool >50cc bike he was riding, only to notice that he had some Chinese no-name knock-off just like me! And then it happened — he waved at me. He didn’t take his hand off the handlebar and give me a Miss America, but he definitely lifted his hand up towards me. It was if to say, “Hey man. I see you on that scooter. I know the trials you’ve been through: getting laughed at, being passed constantly, not being able to get off the line fast enough to not piss anybody off. I see you there, and I acknowledge your presence. You and I, we’re the same. And this partial wave of the hand is my way of letting you know…there’s more of us out there.”

I quickly waved back.

Man’s need to belong, to feel as if he’s part of something bigger than himself, was realized. I’m not just some guy in New Balance shoes, riding a dirty red scooter with a helmet that makes his head look like a Super Mario Brothers mushroom guy — no! I’m somebody. I’m a part of a group of strangers — outcasts, even. We drive down your streets on our way to work, to the mall, to the grocery store — hell, anywhere where the speed limit is less than 35mph and where we’re not taking anyone with us. You may not notice us as you whiz by in your fancy sports car or gas-guzzling SUV, but we’re here. And we’re many. We’re a gang. A biker gang.

Tags: > > >

Friday, May 16th, 2008

Let PHP Randomly Update Your Twitter Feed

So you’ve got a Twitter account…and you find yourself in one of the following situations:

  1. You’re going on vacation, but don’t want to have people thinking you’re MIA.
  2. You’re sick and tired of updating your twitter account and you don’t want people “nudging” you.
  3. You have an NMS — a “new media stalker.”  So you’ve created a secondary twitter account for them to follow but don’t want to actually update it yourself.

//
//Twitter updater, v1.0
//by Jon McCartie
//
//functions first
function twitter_post($message) {

$username = ‘yourtwitterusername’;
$password = ‘yourtwitterpassword’;

// The twitter API address
$url = ‘http://twitter.com/statuses/update.xml’;
// Alternative JSON version
// $url = ‘http://twitter.com/statuses/update.json’;
// Set up and execute the curl process
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, “$url”);
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, “status=$message”);
curl_setopt($curl_handle, CURLOPT_USERPWD, “$username:$password”);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);

// check for success or failure
if (empty($buffer)) {
$msg = “ERROR connecting to Twitter”;
return $msg;
} else {
$msg = “SUCCESS!! TWEET SENT!”;
return $msg;
}
}

//begin loop. this loop is needed to make sure the quote we get is less than 140 characters
$i=0;
while ($i == 0) {

//get random quotes XML — we’re using quotedb.com because they return quotes in XML
$url = “http://www.quotedb.com/quote/quote.php?action=random_quote_rss&=&=&”;

//this CURL script allows for the URL to be passed without exposing PHP to a allow_url security bug
$ch = curl_init($url);
$fp = fopen(”temp2.xml”, “w”);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
fclose($fp);

//Load the local XML that was created in the above CURL call into an array
$xml = simplexml_load_file(”temp2.xml”)
or Die (’ERROR: Could not load file’);

//read the first item’s quote, and strip the quotes
$message = trim($xml->channel->item->description,”\x22\x27″);

//if the message is less than 140 characters,
if (strlen($message) <= 140) {

//fire the Tweet
$msg = twitter_post($message);
echo “Success!”;
$i = 1; // set $i to 1 so we can end the loop
} //end if
} // end while loop
?>

Now you have a couple of choices. Place this on your web account and run a cron every few hours. Or, run it locally. Throw it in your bookmarks list and call the PHP page a few times a day. It all depends on how dedicated you are to your little ploy. Enjoy!

Tags: > > > >