-
Tags
adsense animation apache apple blog coding compsci css diy facebook flash forum game google hard drive humor internet explorer iphone itunes java javascript link linux mac mysql Photography photoshop php Programming prototype python robot robotics school scratch search engine teaching theme tips twitter usb video web design wordpress youtubeMy Other Sites
Tag Archives: Programming
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
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
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
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 ajax, blog, coding, javascript, link, php, plugin, Programming, twitter, wordpress
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
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 javascript, Photography, photoshop, Programming, web design
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
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