Archive for the ‘Uncategorized’ Category

How to Load Random Flickr Images with PHP

This isn’t rocket science, but I did search Google extensively before building my own script.  Save the script as Random_Flickr_Image.php (or whatever) and reference it in your img tag.  For example, <img src=”/images/Random_Flickr_Image.php”/>. <?php $doc = new DOMDocument(); @$doc->loadHTMLFile("http://www.flickr.com/explore/interesting/7days/"); $xpath = new DOMXpath($doc); if($xpath){ $url = $xpath->query("//td[@class='Photo']/span/a/@href"); @$doc->loadHTMLFile("http://www.flickr.com".$url->item(0)->nodeValue); $xpath = new DOMXpath($doc); if($xpath){ $url = [...]

Putting it on the Line

In an odd twist of time management, I caught the TV show, “America’s Got Talent” last night.  I didn’t necessarily intend to tune in.  Just happened to be in the right place at the right time, for lack of a better expression (what I mean is that I was on the couch at 9pm EST [...]

Be a Yes Man

Last year I saw a movie that impacted my life in a significant way. The movie wasn’t an Oscar winner and it didn’t receive critics acclaim. In fact I don’t remember it getting that much attention at all. Maybe people just thought it was going to be another funny Jim Carrey flic. Some of the [...]

The Hyderabad India Experience

I’ve been in Hyderabad India for a week and a half now on a work assignment from the company at which I’m “officially” employed. Fortunately, while I’m spending a good chunck of the time here actually working on said assignment, I’ve also been lucky enough to find some time for personal growth, learning and enjoying [...]

My PC Sounds Like a Rocket or How to Hush your Noisy PC Fan

Computers get old. As they get old, they get noisy. 9 times out of 10, if the noise isn’t the hard drive, it’s a fan somewhere. For a few bucks and a few minutes of your time, you can put the hush back on that fan. You will need the following items: Lube. Avoid WD40 [...]