ie6Warning Message jquery plugin
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.
jquery.tabbify
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
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
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:
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:
- Install Ubuntu Server
- Login
- Create a root shell:sudo bash
- Update your sources:apt-get update
- Upgrade your installed packages (dist-upgrade to force kernel upgrade):apt-get dist-upgrade
- Reboot
- Create a root shell again:sudo bash 8 . Install packages VMware Tools needs:apt-get install linux-headers-server build-essential
- Install VMware tools
- Mount the VMware Tools CD ISO:mount /cdrom
- Copy VMware Tools to home:cp /cdrom/VmwareTools-x.x.x-xxxxx.tar.gz ~
- Go home:cd ~
- Untar/Gzip the install:tar -zxf VmwareTools-x.x.x-xxxxx.tar.gz
- Go into the resulting directory:cd vmware-tools-distrib
- Start the installer:./vmware-install.pl
- Install will ask you questions, the defaults should work fine.
- 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
- Rebuild module dependancies:depmod -a
- Install the VMware accelerated network interface:modprobe vmxnet
- Restart network service:/etc/init.d/networking restart
- Reboot
