Archive for December, 2009

Twitter’s Most Common Passwords

While locking down their security, Twitter posted a list of the 370 most used passwords by their users. I highly recommend looking at the list and changing your default password (for any email client, application, computer, etc) if it’s on there.
1. 111111
2. 11111111
3. 112233
4. 121212
5. 123123
6. 123456
7. 1234567
8. 12345678
9. 131313
10. 232323
11. 654321
12. 666666
13. 696969
14. 777777
15. [...]

Read more

Pre-Selecting Form Elements

Checkboxes:

<input type="checkbox" name="test_box" value="1" checked />
<input type="checkbox" name="test_box" value="2" />

Radio Buttons

<input type="radio" name="test_radio" value="1" checked />
<input type="radio" name="test_radio" value="2" />

Dropdowns (<select>)

<select name="test_select">
<option value="1" selected>Value 1</option>
<option value="2">Value 2</option>
</select>

Read more

The Easiest Way to Select All Checkboxes with jQuery

After looking at many code samples online that were unnecessarily complex I’ve come up with my own simple method of selecting all checkboxes on a page:

$(":checkbox").attr("checked", true);

You can change the selector to target certain groups of checkboxes.
To deselect all checkboxes, simply change the “true” to “false”:

$(":checkbox").attr("checked", false);

Read more

CKEditor ReplaceAll Config

To place configuration values into the ReplaceAll command for CKEditor, use the following format:

CKEDITOR.replaceAll(function( textarea, config ){
config.toolbar_Full =
[
['Source','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
[...]

Read more

Image ALT Tags

Easily avoid one of the most common mistakes in website accessibilty and SEO optimization by including an ALT tag on all images.

<img src="image.jpg" alt="I describe the image" />

Read more about ALT tags.

Read more

Notepad++ 5.6 Released

The newest version of Notepad++ has been released. Changes include:

Notepad++ v5.6 new features and fixed bugs (from v5.5.1) :

1. Add languages encoding – Chinese traditional (BIG5), Chinese Simplified (GB2312), Japanese (Shift JIS), Korean (EUC), Thai (TIS-620), Hebrew (iso-8859-8), Hebrew (1255), Central European (1250), Cyrillic (1251), Cyrillic (KOI8-U), Cyrillic (KOI8-R), Cyrillic (Mac), Western [...]

Read more