25 Code Snippets for Web Designers (Part 1)

15 03 2007

Found this neat collection on Digg:

http://tutorialblog.org/25-code-snippets-for-web-designers-part1/

Handy scripts, html, and widgets for customizing CSS, AJAX, and forms content on your websites.

Advertisements




Hibernate (Suspend-to-disk) finally working with Beryl/Compiz and the suspend2 kernel (2.6.15-26-686)

9 03 2007

After a week full of google searches, ubuntuforum discussions, and many, many script revisions, I finally am able to suspend-to-disk. Here is some background info:

  • Dell Inspiron 700m
  • Ubuntu 6.06.1 LTS
  • GNOME + Beryl/Emerald
  • Intel i855/i915 Video Chipset

1. After trying the hibernate/suspend functionality in the Gnome menus to no avail, I tried to Google myself a fix but instead stumbled upon another suspend utility called suspend2. After reading some success stories with other users on Dell laptops, I installed the suspend2 packages with Synaptic:

  • suspend2
  • suspend2-userui-usplash
  • initramfs-tools-suspend2
  • hibernate (if it’s not already installed)
  • acpi (not sure if this is needed)

2. To be honest, I had no idea what to do next so I went online to the suspend2 and learned that I needed to compile a new kernel and patch it. Not wanting to deal with that, Google came to my rescue again. Apparently, there are some repositories out there with precompiled kernels that already have the patch applied. So all I did was add:

deb http://dagobah.ucc.asn.au/ubuntu-suspend2 dapper/

to my ‘/etc/apt/sources.list’ (or System->Administration->Software Properties). Then:

sudo apt-get update

sudo apt-get upgrade

Hopped back into Synaptic Package Manager and searchd for ‘linux-image’. I found 4 packages with suspend2 already patched. I chose the 686-nosmp package because my Centrino laptop is only a single core. Choose 386 for older Pentiums and 686 for dual-cores. YMMV.

3. After the new kernel installed and grub was automatically updated, I checked to make sure the option

resume2=swap:/dev/hdaX

was been appended to /boot/grub/menu.lst (where X is my swap partition). Here’s mine:

title Ubuntu, kernel 2.6.15-26-686-nosmp

root (hd0,0)

kernel /vmlinuz-2.6.15-26-686-nosmp root=/dev/hda6 ro resume2=swap:/dev/hda5 quiet splash

initrd /initrd.img-2.6.15-26-686-nosmp

savedefault

boot

4. Good, already done. I then restarted into my new kernel.

5. Now to edit the hibernation scripts to match my hardware. Check back soon…





Free Java technologies online courses

2 03 2007

Taught by a Sun employee, courses vary and run every month or so. AJAX, Java, NetBeans, et al. Professor even grades your labs and provides email support!!

http://www.javapassion.com/

Check it out…