For the better part of the last couple of days I’ve been trying to figure out why Safari was not allowing me to click on links. Aside from an annoyance, it’s not good to have clients complaining… Read the rest of this entry »
June 7th, 2010 | Tags: coding, javascript, js, mac, prototype, safari, scriptaculous, web design | No Comments
Found myself needing to get an image off of my iPhone without using iTunes. On my Vista machine it’s easy enough. The iPhone shows up as a device and it’s browsable just like any camera.
Turns out it’s just about that easy on my MacBook. Fired up Image Capture, selected the phone, and they were there. Just a matter of dragging and dropping the image I wanted and it was done.
June 7th, 2010 | Tags: apple, iphone, itunes, mac | No Comments
I don’t think it’s possible to be any more centered under this storm cell.

June 7th, 2010 | Tags: iphone, weather | No Comments
April 10th, 2010 | Tags: compsci, robot, robotics | No Comments
Sometimes IE just irritates me. Ok, pretty much anytime I'm working on a web site. Especially when it involves Javascript or DOM.
For the past couple of hours I've been scouring the internet looking for a solution to the prototype method setStyle not working in IE8. I was getting an 'Object does not support this method' when trying to use setStyle on a newly created div.
Here's the code that was causing the problem.
JavaScript:
-
var brDiv = document.createElement('div');
-
brDiv.setStyle({ backgroundColor: 'black', position: 'absolute'});
There was more to it, but that's enough that it would throw the error.
After too many trials and errors to count, Google brought me to this page that had a working solution. The key was not to call setStyle on the object, but call it on Element and pass the object as a parameter.
JavaScript:
-
var brDiv = document.createElement('div');
-
Element.setStyle(brDiv, { backgroundColor: 'black', position: 'absolute'});
Did that and it worked without a hitch.
April 2nd, 2010 | Tags: ie, internet explorer, javascript, prototype | 1 Comment
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.
Read the rest of this entry »
March 20th, 2010 | Tags: javascript, Photography, photoshop, Programming, web design | No Comments
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. Read the rest of this entry »
March 19th, 2010 | Tags: coding, forum, javascript, Programming, prototype | No Comments
For the first time, Facebook was the most popular site for a full week last week. Facebook had overtaken Google a few times before for a day or so, mostly around holidays. But this was the first time Google fell to second place for a full week.
The last time Google was knocked from the top spot was in 2007 when MySpace took the top spot for a week.
Link: http://bit.ly/bmSdet
March 15th, 2010 | Tags: facebook, google, myspace | No Comments
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.
Read the rest of this entry »
March 7th, 2010 | Tags: education, school, teaching | No Comments