Archive for the ‘Sundry Musings’ Category

Five Useful, Simple Wordpress Plugins

Thursday, March 20th, 2008

I’ve been playing around with developing Wordpress sites for a while now. I love how quick and easy it is to launch a site and update content.

One of the greatest features is the thousands of plug-ins available for Wordpress. You can find a plug-in for just about anything you want to do - or if you have some PHP know-how, you can develop your own.

Here are five basic Wordpress plug-ins that I’d recommend using for any project you start.
(more…)

Busting 5 Myths About (Ubuntu) Linux

Monday, March 3rd, 2008

Every time I see a discussion on the forums about Linux vs. Windows vs. Mac, I’m struck by the persistence of certain myths about Linux. Reading the conversations, it seems obvious that a lot of people who have never tried Linux have seriously inaccurate conceptions of it.

I recently switched my main computer to Ubuntu Linux. With that as an example Distro, let’s take a look at some popular myths about Linux and see just how true they are.
(more…)

What Is the Point of this Spam Comment?

Friday, February 29th, 2008

Every couple of days, I quickly browse through the Akismet spam bin to see if any real comments got sucked in. There usually aren’t any.

However, I’ve been struck recently by seemingly pointless spam comments. They are clearly generated by a bot, but they don’t include any kind of backlink… what’s the purpose of that?
(more…)

Getting Combinations: Calculating a Binomial Coefficient

Sunday, February 24th, 2008

I came across this problem on the DigitalPoint forums the other day. How can we write a script to calculate the total number of random combinations in a set (i.e. the binomial coefficient), and how can we generate a list of these combinations?

Today, we’ll tackle the first part. We’ll start with a quick primer on math - what is a binomial coefficient? Then, we’ll look into the most efficient way to calculate that and get the total number of possible combinations.
(more…)

Javascript Game Spotlight: 3d Worm

Saturday, February 23rd, 2008

Screenshot of a 3d Worm game written in Javascript.I was browsing the Frihost forums this morning, and I stumbled on a cool Javascript game.

One of the Frihost users and his friend made a 3d Worm game. Although the directions are in Spanish (as is the source code), the game is pretty cool. It’s a good example of what you can accomplish with some Javascript/DOM trickery.
(more…)

Which PHP Logical Operator Is Better - ‘and’ or ‘&&’?

Saturday, February 16th, 2008

I was browsing the Sitepoint forum today and somebody raised this question - is it better to use ‘and’ or ‘&&’ as a logical operator in PHP?

In most cases, they evaluate the same way. For example, these two statements are equivalent.

if ($x && $y) { ... }
if ($x and $y) { ... }

So what’s the difference?
(more…)

More Backlinks, More Cash with Squidoo

Friday, February 15th, 2008

I’d seen this idea suggested on a forum, and it’s about time I got around to it. I created my first lens at Squidoo.

Why? I was able to work in a few nice backlinks to my site and my articles. I’ll earn some cash if it gets traffic of its own.
(more…)

Five PHP Coding Mistakes to Avoid

Monday, February 4th, 2008

While browsing through dZone the other day, I stumbled on this article - 40 signs you really are a lousy PHP programmer.

While I don’t agree with all of the author’s points, it’s an interesting list of php coding habits to avoid - but that most of us tend to pick up anyway. Here’s a list of my five biggest pet peeves.
(more…)

Exploring Wordpress - Database Structure Explained

Sunday, February 3rd, 2008

While reading some forums this morning, I came upon an interesting question. Where is the category information stored in the Wordpress database?

I opened up phpmyadmin, expecting to see a “categories” table. No dice. After a few minutes I figured it out - and I decided it might be a good idea to explain how the Wordpress database is structured.
(more…)

Time Well Spent, Learning Programming

Friday, February 1st, 2008

Browsing through DZone, I stumbled on an interesting illustration - the Programmer’s Food Pyramid.

The Pyramid illustrates the different activities that someone generally engages in while learning to program. While looking at the pyramid, I thought, “Do I do all these things?”
(more…)