Archive of August 2009
Introducing The Most Simple Input Hint jQuery Plugin
So I decided to release my input hint plugin for jQuery because I could never find one that was portable and well written. The plugin's list of features include: the ability to specify the attribute the plugin uses to pull the hint from, by default the "title" attribute is used and it also clears itself on submit so it wont conflict with error checking.
You can find Input Hint on Github.
Demo
Sample Usage
Load the jQuery library and then on document load run the following.
Who is _why?
I'm not a Ruby developer, hell, I'm not much of a Php developer either, but that's beside the point. All this recent chatter about _why missing and I don't even know why I care. I never followed him, never read his book, never knew who he was until he went missing, but reading the following quote, I get why people loved _why. This is what some people don't get, not all developers program for a paycheck, some actually love it and hate everyone else.
No, let’s not have rules. I don’t feel comfortable with having coding standards or any protocol on Camping. The point of Camping is to have very ugly, tricky code that goes against all the rules that people make for “beautiful” code these days. To show that ugly code can do beautiful things, maybe.
I don’t want to demonize anyone here, I just want to express the ideas that make Camping different. Camping’s personality is 80x50. It is like the little gears of a watch that are all meshed together into a tight little mind-bending machine. The challenge of Camping isn’t to figure out how to automate obfuscation. The challenge is to bring new tricks into the code that push Ruby’s parser and make everyone look twice. Not all code needs to be a factory, some of it can just be origami.
_why
Introducing a New jQuery Plugin... "Variable Input Size"
The "Variable Input Size" plugin simply resizes and input text box to fit it's value. Useful for displaying fields to users in an easier to digest manner. This plugin was inspired by a post by 37 Signals where they implemented this idea in a new iteration of Highrise's contact management page. I thought it was a great idea and wrote this as quick as I could. As described by 37 Signals:
Eventually, we explored the idea of dynamically sizing the fields. The now visible fields would shrink down to fit the name, making it read much more naturally. However, when you click the field to make a change, the field would expand to a larger size that would make it more comfortable to work inside. The text field then snaps back to size after the change.
You can find Variable Input Size on Github.
Demo
Sample Usage
Load the jQuery library and then on document load run the following.
$('input.variable').variable_input_size({default_size: 20});
Once you thoroughly unfasten yourself from reality, truly all things are possible. AJC columnist Jay Bookman noticed that in the latest Investors Business Daily editorial about how the 'death panel' will condemn all handicapped or disabled people to death on some horrid wind-swept mountain, it notes that ... "People such as scientist Stephen Hawking wouldn't have a chance in the U.K., where the National Health Service would say the life of this brilliant man, because of his physical handicaps, is essentially worthless." Needless to say, Hawking, who is recognized as one of the great theoretical physicists of the 20th and 21st century, was born in the UK and has lived his entire life there.