JQuery Alternative to Lightbox, Colorbox

A very nice alternative to Lightbox which uses prototype is ColorBox which uses JQuery very easy to use and has lots of nice features. Check out the example page!

Money Format Php

Number format function echo number_format(497000,0,”.”,’,'); 497,000 API link to Money format function for Php Examples $number = 1234.56; // let’s print the international format for the en_US locale setlocale(LC_MONETARY, ‘en_US’); echo money_format(‘%i’, $number) . “\n”; // USD 1,234.56 // Italian national format with 2 decimals` setlocale(LC_MONETARY, ‘it_IT’); echo money_format(‘%.2n’, $number) . “\n”; // Eu 1.234,56 [...]

Currency and Number formatting Rails

API link to Number and Currency formatting methods in rails. Examples number_to_currency(1234567890.50) # => $1,234,567,890.50 number_to_currency(1234567890.506) # => $1,234,567,890.51 number_to_currency(1234567890.506, :precision => 3) # => $1,234,567,890.506 number_to_currency(1234567890.506, :locale => :fr) # => 1 234 567 890,506 € number_to_currency(1234567890.50, :unit => “£”, :separator => “,”, :delimiter => “”) # => £1234567890,50 number_to_currency(1234567890.50, :unit => “£”, :separator [...]

Setting up Windows Based Development Platform for Php

Download and install Xampp. This will install Apache 2, Mysql, Php and some other basic server software. Grab a copy of HeidiSql windows GUI for Mysql. Next download Your IDE for Php I use NuSphere PhpEd but if you need a free editor try Netbeans it can be used to develop Php and Rails along [...]

Mysql GUI

HeidiSql is an excellent windows based gui for Mysql. Much better than using phpMyAdmin. Download Heidi here. Can also be used in Ubuntu with wine.

Installing different versions of Rails

gem install -v 1.2.3 rails –include-dependencies

Install Rails without rdoc or ri

sudo gem install rails –no-rdoc –no-ri Works for all gem’s.

Installing git based plugin’s for Rails

Download and install Git and use the following command inside your Application folder. cd vendor/plugins git clone -q git://github.com/tecnoweenie/attachment_fu.git Installs the Attachment Fu plugin for Rails.