Tag Archives: Programming

Hiding the “Welcome to your new WordPress site” message

Sitting here working on setting up a WordPress network and hit a snag. New sites have a giant “Welcome to your new WordPress site” message when someone logs in for the first time. Now, I’m not against the message; and … Continue reading

Posted in Blogging, Programming | Tagged , , , , | Leave a comment

PHP function to get first n words from a string

A handy little function for your bag of tricks. This PHP function will return a max number of words out of a string, or the whole string if it’s already shorter. This probably could be made shorter, but I was … Continue reading

Posted in Programming | Tagged , , , | 1 Comment

Teaching recursion with Scratch BYOB – take 2

This is a follow up from a post I did about a year and a half ago on using Scratch BYOB to teach recursion. The original way of defining parameters in BYOB were a bit clunky, but it’s gotten much … Continue reading

Posted in Computer Science, teaching | Tagged , , , , | 1 Comment

Another good use for mod

Got to admit that mod is one of those topics that I have trouble getting across to my students. Not the idea of what it is and how to do it, but the purpose. The classic isOdd / isEven lab … Continue reading

Posted in Computer Science, teaching | Tagged , , , | Leave a comment

Just finished up a couple of WordPress plugins

Needed a break from a larger web app I’m working on and this weekend kicked out a couple of WordPress plugins that I’ve had on my idea file for a while now. The first is called rTwit and lets you … Continue reading

Posted in Programming | Tagged , , , , , , , , , | Leave a comment

bit.ly and PHP

Needed a quick and easy way to create a bit.ly URL for another site of mine. Google came through for me. David Walsh posted a short PHP function on his site that takes your bit.ly login, API key, and the … Continue reading

Posted in Programming | Tagged , , , , | 1 Comment

Curved corners script for Photoshop

I’ve been looking for an excuse to play around with scripting in Photoshop. Today I found one. I came across a series of actions that rounded off the corners of an image to get it ready for uploading to a … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Event tracking with JavaScript

A while back Google added event tracking to Analytics so you could keep track of Javascript and Flash events.  Pretty cool feature. Being the stat junkie that I wanted to use this to keep track of outgoing clicks on a … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Grouping MySQL query by date

Working on a statistics plugin I needed a way to group records by the day.  Turns out it’s remarkably easy. If you just want to group by year and month take off the DAY() part.  This would also be a … Continue reading

Posted in Computers & Internet | Tagged , , , | Leave a comment

Difference in Hub, Switch, Bridge, & Router

In an ethernet network there are 4 devices that from the the outside look very similar. In this article we will look at the difference between hubs, switches, bridges, and routers.

Posted in Computers & Internet | Tagged , , | 65 Comments