programming posts

Uploading Large Files in Ruby on Rails

Thursday, May 6th, 2010

File upload is a common feature for web sites, yet for some reason a lot of frameworks make it hard on you. JSF doesn’t even support it by default; it requires the installation of additional libraries. In Ruby on Rails it worked pretty well out of the box, but with a catch. File uploads are
[read more]

The Menu Key

Friday, April 2nd, 2010

Do you use your keyboard’s Menu key? The one with a picture of a menu and a cursor. All it does is bring up the context menu. It was introduced at the same time as the Windows key but didn’t get the same press, probably because its effect couldn’t compare to the indignity of having
[read more]

Incubators

Thursday, February 18th, 2010

Robert Biswas-Diener wrote an article on CNN coining the term “incubator” for people who seem like procrastinators but are actually a different breed. I felt that this article described my own work habits perfectly. Incubators have a clear sense of deadlines, gets things done on time, and produce quality work. Before performing an important task,
[read more]

The Text Editor Question

Tuesday, December 8th, 2009

Back in college, I had a professor pose an interesting question on an exam. It was worded like this: “On the back of this paper, write out every keystroke and mouseclick you would take to add five spaces at the beginning of the first 10 lines of a file in a text editor.” Naturally, some
[read more]

Regarding Block Style

Friday, September 18th, 2009

I went to a great talk by Douglas Crockford today. If you’re a JavaScript programmer and haven’t read any of his articles, head over to his site and get started. It’s more important than reading this blog.  Seriously. Alright. I want to show an example he used that doesn’t seem to be included in any
[read more]

About | Other Stuff