Archive for October, 2009

Oct 21

jCarousel Lite is a jQuery plugin that carries you on a carousel ride filled with images and HTML content. It can be applied with some effects and other customization. Installation:

  1. Download Jquery
  2. Download JcarouselLite here – http://www.gmarwaha.com/jquery/jcarousellite/#download
  3. Include those files in your application layout

Optional:

  1. Download easing plugin – http://gsgd.co.uk/js/jquery.easing.1.1.js
  2. Download mousewheel plugin – http://brandonaaron.net/jquery/plugins/mousewheel/jquery.mousewheel.js
  3. Add to application layout
 
 

Usage : In your HTML file, provide the markup required by the carousel (a “div” enclosing an “ul”). You also need the navigation buttons, but these buttons need not be part of the carousel markup itself. Example:
html

Oct 16

Sometime we want to backup our databases for a reasons, like prevent the database deleted, move database to another server, etc. its very bored if we do it every day manually and sometime we forget to backup the database. so what we want is backup the database with something automatically with the time we have set, but how ? there is a lot of trick to do this, one of the is use shell script and cron.

ok, lets do it

1. Create Shell Script

$ vim backup.sh

in vim editor put this script

Oct 08

I found interesting pluginn for lightbox implementation with Facebook style, named Facebox. It allows us to use lightbox seamlessly in a Rails application.  You would use make a lightbox to display notice or error messages, form or even image without having to reload a page.