Tech4Him – Technology with Integrity

A Christian technology chaos wrangler and his thoughts

Archive for the ‘Articles’ Category

Windows 7 and the Dreaded Temp Profile

Posted by Tom On September - 22 - 2009

windows7Phew. For someone who’s corporate OS deployment experience has purposefully not included Vista, Windows 7 poses some challenges and a need to re-learn some things. Recently, one of our users brought us their machine that they recently had the hard drive replaced by a helpful soul. Unfortunately, the helpful soul returned the machine with Windows 7 RC rather than Windows XP Professional and our user has been using it for several weeks already. (Yes, I know this is not really the type of work I do, but hey, when folks are out of the office in a small organization, everyone pitches in.)

Read the rest of this entry »

Popularity: 100% [?]

Linode Setup – Domain Email Forwarding

Posted by Tom On August - 29 - 2009

PostfixPreviously I talked about our adventure moving to the Linode.com service. Now that the websites have been running spectacularly for a few a week, I noticed that emails were not being sent or received properly from some of the domains. Doh! See how we fixed it.

Read the rest of this entry »

Popularity: 7% [?]

Drupal can Fly….on a Linode

Posted by Tom On August - 27 - 2009

linodecomYup, I learned this week just how well Drupal can fly. Well, maybe not measured in feet above the earth but certainly in terms of response time. Come take a look at a new setup were are testing out.

Read the rest of this entry »

Popularity: 7% [?]

Don’t leave your MySQL hanging (check your my.cnf)

Posted by Tom On August - 19 - 2009

2380021517_b526fbfc98_mAdmit it! Have you ever made a change to your my.cnf file, restarted mysqld only to have the restart fail because of an error in the configuration file? Come on, you don’t have to hide anything here.

Read the rest of this entry »

Popularity: 3% [?]

WordPress 2.8.3 Automatic Upgrade – WSOD

Posted by Tom On August - 10 - 2009

wordpress-logo-shine.thumbnailYup, we did it. We used the automatic upgrade function in Wordpress to upgrade to Wordpress 2.8.3 and ended up with a white screen of death (WSOD) shortly after. Bummer.

Read the rest of this entry »

Popularity: 2% [?]

Yay! Related Terms with Views 2 and Drupal 6. Hooray!I was working on a Drupal site and decided that a “related content” block was needed. Since this site has already been up and running for some time, manually reference other nodes would be painstaking. What I needed was the ability to show related node based upon the content of the node. Read the rest of this entry »

Popularity: 15% [?]

SQL Log Rescue – Undo for SQL Server

Posted by Tom On July - 31 - 2009

SQL Log Rescue – Undo for SQL Server.

Came across this product again today to help with a particular need. I’ve used Red Gate products before at another employer and loved them. However, I never realized the SQL LogRescue product. On top of that, it is a free tool. Read the rest of this entry »

Popularity: 4% [?]

Developer Blog » Check if external image exists

Posted by Tom On July - 16 - 2009

Maria Birnbaum
Photo by bas:il
So, we have a website that displays images from an external source based upon a URL. For various reasons, sometimes the external source does not have a valid image for the request. In order not to show a broken image to the use, we need to validate that the image is valid.

Thanks to Google (NOT Bing. haha) we found a great little approach that was quickly placed into a Drupal template file.


if (@GetImageSize("http://www.testdomain.com/testimage.gif")) {
  echo "image exists";
} else {
  echo "image does not exist";
}

And according to the site, if you do not have GD installed you can try this code:

if (@fclose(@fopen("http://www.testdomain.com/testimage.gif", "r"))) {
  echo "image exists";
} else {
  echo "image does not exist";
}

We took the concept of the GetImageSize function to handily render web thumb shots from an external service, only if a valid image exists. This way we don’t show broken images to those Internet Explorer users.

via Developer Blog » Check if external image exists.

Popularity: 5% [?]