bigredswitch

Push it. You know you want to.

jQuery Autocomplete Plugin 2

.coding {
background-color: #1b1d1e; color: #f8f8f2; font-family: georgia, serif; font-size: 15px;
width: 400px; overflow-x: auto; padding: 3px;
border: 3px solid #999;
}
li {
font-size: 13px;
}

Continuing from my last post.
Some notes:

You can give a wrapped set as a second argument to a selector such as: $(’p’, wrappedSet). This is the same as wrappedSet.find(’p’).
The [...]

jQuery Autocomplete Plugin

.coding {
background-color: #1b1d1e; color: #f8f8f2; font-family: georgia, serif; font-size: 15px;
width: 600px; overflow-x: auto; padding: 3px;
border: 3px solid #999;
}
li {
font-size: 13px;
}

Some notes from looking at Yehuda Katz and Rein Henrichs autocomplete plugin:

I don’t understand when authors of provide no documentation. Programmers don’t really like doing documentation but this [...]

jQuery Templating Plugin

.coder {
background-color: #1b1d1e; color: #f8f8f2; font-family: georgia, serif;
overflow-x: auto; padding: 3px;
border: 3px solid #999;
}

I wanted to take a look at the templating plugin included in the jQuery distribution (for some reason, there is no documentation of it on jquery.com, this is the same templating plugin included in ReinH/Katz autocomplete [...]

Hmmm, had a hard time naming this since I couldn’t think of a title that was succinct and more descriptive than the generic one above.  Any suggestions?  Update: it’s official! In honor of Transformers everywhere, it’s now called autobox.
Anyway, let’s just show the plugin:

TextboxList with Autocomplete

Type an email or list name

fred@foo.bar
barney@foo.bar

Now the [...]

Form Validation

Looked for some resources to help with form validation design and found some good links:

jQuery Validation Basic stuff, our baseline (since we use jQuery validation)
Yahoo Signup Page I’ve always loved how this page does validation (hit submit without filling in any fields)
47+ Excellent Ajax Forms Self proclamation

Smashing Magazine Web Form Design Patterns Part 1 and [...]

Java Enlightenment

I don’t know why Java web companies do not communicate architecture and design more often.  It seems like the Ruby guys and the PHP guys or the Perl guys talk about how they do things.  For example, the classic LiveJournal backend scaling presentation.
One exception: LinkedIn does a fantastic job of bringing the Java web application [...]

Folding

As editors have added code folding, I’ve generally yawned and ignored it, even when my editor, the best editor in the world, VIM, added it.  I’ve never really reasoned with myself why; it was just an immediate dislike of it. Of course, someone, Jeff Atwood, eventually posted that they hate it too and why. [...]

svndiff

A request from dev: In CVS, there was a command ‘cvs -q up’ that showed you which files were going to be updated without actually updating.  How do we do this in subversion?
From the Redbean Book, you can see that we use ’svn status -u’; items with an asterisk shows that a newer revision of [...]

Synchronizing Collections

A rundown on some good Java synchronization links I’ve run across recently:
Vector vs. Collections.synchronizedList Discusses using a Vector versus wrapping a List (usually ArrayList, but other Lists as well) with Collections.synchronizedList. The rule of thumb that’s bandied about is to use Vector when you need a synchronized list and a plain List (ArrayList) otherwise. [...]

Exception Library

A Java library that I’d like to see that I can’t seem to find is an exception library. Now, your first reaction might be something like, that’s silly because an exception doesn’t make sense outside of the context it’s used in. But, what got me thinking about this assumption was the general thoughtlessness [...]

« Previous Entries