Contrasting color function for PHP

Posted by & filed under Coding.

For another site of mine I needed a way to determine whether black or white was a better choice for text on a randomly colored background. The function takes a color as an array with elements r, g, and b and returns an array with the same 3 elements. Although in the returned array all… Read more »

Math for Game Programmers

Posted by & filed under Blogging.

Had an idea running through my head for a while now and finally pulled the trigger last weekend. Something I’ve noticed teaching students to write games is that most don’t expect programming games to involve as much math as it does. Not that I’m teaching beginning programmers any math they haven’t already learned in a… Read more »

Map of the Japan earthquakes

Posted by & filed under Web Links.

I knew about the aftershocks from an earthquake, but I didn’t realize there were so many. The first time I went to the following site there were 555 listed. About 5 minutes later when I went back to get the screenshot it was up to 557. For the full effect you need to see it… Read more »

Just finished up a couple of WordPress plugins

Posted by & filed under Programming.

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 embed any Twitter feed you want into a post or page. Most of the Twitter… Read more »

Predicting the stock market with Twitter

Posted by & filed under Computer Science.

Looks like there may be more to Twitter than just a list of what everybody’s cat is doing. Researchers at Indiana University used 10 million tweets to gauge the collective mood of the users and have been able to predict rises and falls in the Dow Jones with almost a 90% accuracy. More at: http://newsinfo.iu.edu/news/page/normal/16074.html

JayCut – Online video editor

Posted by & filed under Computers & Internet.

Haven’t had a chance to play around with it much, but JayCut.com looks pretty slick. It’s an online video editor written in Flash so you can do your editing without leaving your browser. Probably not great for the 20 gigs of HD video from your daughter’s birthday, but for quick videos it might be worth… Read more »

Where Americans are moving

Posted by & filed under Computer Science.

Cool use of technology and data mining. Forbes.com has a map that lets you click on a county and see where people are moving into and out of that county. Red is out of the county and red is in to the county.

CompSci Minor and employment

Posted by & filed under Computer Science.

Came across a new blog to add to my reader last week called CompSci Woman. I’m always on the lookout for articles to give my students that show computer science as something other than the Office Space view of a pasty white guy sitting in a cubicle or his parents’ basement, and the first couple… Read more »

TinEye – Finding your images on the web

Posted by & filed under Computers & Internet.

Came across a new search engine called TinEye last week.  It lets you either upload or paste a link to an image and it searches its index looking for the same image.  For those that make money off of their images, or just don’t want copies on other sites, this is a good way to… Read more »