ie6Warning Message jquery plugin
   Tuesday June 09, 2009

This little plugin when bound to a div, will show() the div when the user has an ie6 browser or below. If a user clicks on the div, the message will fade away, set a cookie and not be shown again for 20 days.

find it here


 

jquery.tabbify
   Sunday June 07, 2009

I've just pushed a copy of my tabbify plugin for jquery up to github. It simply makes it easy to create tabs, and it saves state on click.

Its very small, and useable. check out the readme for more details.

http://github.com/markgandolfo/jquery.tabbify/tree/master


 

Stringify Time
   Thursday June 04, 2009

Stringify Time


Stringify Time is a plugin for ruby on rails that will convert time into human readable text from minutes, and to minutes from human readable time.

>> "1d 3h 4m".minutes
=> 1624

You can use any of combination of time blocks
"3h".minutes => 180
"1h 2h".minutes => 180
"240m".minutes => 240

It also can go back from minutes to user readable time with the humanize Integer method

180.humanize => "3h"
1624.humanize => "1d 3h 4m"

You can get the plugin markgandolfo's git hub


 

Find List
   Thursday June 04, 2009

Find List


find list is an active record extension that lets you return an array to be used in a select.
i.e.
@users = User.list
f.select 'User', @users

You can even use all of the find features.
@users = User.list(:conditions => { :active => 1 })


 

How to install Vmware Tools on Ubuntu without X11:
   Monday March 02, 2009

I was trying to figure out how to install vmware-tools on a new ubuntu server vm. I stumbled across this link GorillaPond.

Below are the steps needed to install the tools on your server.


How to install Vmware Tools on Ubuntu without X11:

  1. Install Ubuntu Server
  2. Login
  3. Create a root shell:sudo bash
  4. Update your sources:apt-get update
  5. Upgrade your installed packages (dist-upgrade to force kernel upgrade):apt-get dist-upgrade
  6. Reboot
  7. Create a root shell again:sudo bash 8 . Install packages VMware Tools needs:apt-get install linux-headers-server build-essential
  8. Install VMware tools
  9. Mount the VMware Tools CD ISO:mount /cdrom
  10. Copy VMware Tools to home:cp /cdrom/VmwareTools-x.x.x-xxxxx.tar.gz ~
  11. Go home:cd ~
  12. Untar/Gzip the install:tar -zxf VmwareTools-x.x.x-xxxxx.tar.gz
  13. Go into the resulting directory:cd vmware-tools-distrib
  14. Start the installer:./vmware-install.pl
  15. Install will ask you questions, the defaults should work fine.
  16. Remove the basic AMD PCnet module (if you get errors about building the ethernet driver, run this command and start at step 14 again):rmmod pcnet32
  17. Rebuild module dependancies:depmod -a
  18. Install the VMware accelerated network interface:modprobe vmxnet
  19. Restart network service:/etc/init.d/networking restart
  20. Reboot