Skip to content

Nutt.net Posts

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 web site. The problem is that it was a series of actions. As in one action for each radii. One for 5px, one for 10px, one for 25px, etc. That’s just screaming to be scripted with a quick prompt asking for a radius.

So that’s what I did. About half an hour and I had a script that would prompt for a radius and then round off whatever image was opened.

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 photography forum of mine.  But I didn’t want to have to go through every link prior to displaying the page.  Seemed like a perfect time for a little bit of Javascript. 

Schools trying out 4-day weeks

With budgets getting tighter and tighter some schools are looking at 4-day weeks instead of 5. The fear, of course, is that students will miss out on the education they’re supposed to be getting if their week is shortened.

Personally I like the idea of a 4-day work week.  It would be great to have Fridays off even if it did mean longer days Monday through Thursday. But professionally I have a few issues with it.

Teaching recursion with Scratch BYOB

One of the biggest limits we came across teaching with Scratch this year is the inability to write methods and use parameters.  Methods, returns, and parameters are probably the only major concept in our intro CompSci class that we can’t teach in Scratch; so we introduced them in Alice this past year.  It worked ok, but we haven’t been able to come up with any really good labs that explain the purpose of parameters well to the students.

This past week I came across an extended version of Scratch called Scratch BYOB, or Build Your Own Block.  And it does exactly what I was looking for.  It gives you the ability to create methods and optionally include parameters.