Friday, May 24, 2013

Sisyphus.js: Persist your form's data in a browser's Local Storage

Use: Persist your form's data in a browser's Local Storage and never loose them on occasional tabs closing, browser crashes and other disasters!

By using this Jquery app you can make avail form data, even browser closed certainly or any crash. And data are repopulated when we open that URL. Data are stored in browser local storage. Can destroy data after submit or reset.

Good to use in large or multi step forms. But I am in doubt, It may or may not work on dynamically populated input elements. I am tried it not working for dynamic inputs. May any solution avail..

Get it here: http://sisyphus-js.herokuapp.com/

Learn jquery here


Learn jquery here. And this site has many tutorial as animation or video. A good place for learn.

http://www.codeschool.com/courses/try-jquery

Thursday, May 23, 2013

JQuery toast message / notice


http://akquinet.github.io/jquery-toastmessage-plugin/demo/demo.html

JQuery drag and drop


http://www.webresourcesdepot.com/wp-content/uploads/file/jquerydragdrop/

http://nettuts.s3.amazonaws.com/127_iNETTUTS/demo/index.html

http://jqueryui.com/draggable/

http://threedubmedia.com/code/event/drag/demo/

Wednesday, May 22, 2013

File and Directory Permissions in UNIX / Linux

Source: UNIX / Linux: Beginners Guide to File and Directory Permissions

Unix file and directory permission is in the form of a 3×3 structure. i.e Three permissions (read, write and execute) available for three types of users (owner, groups and others).


Three file permissions:
  • read: permitted to read the contents of file.
  • write: permitted to write to the file.
  • execute: permitted to execute the file as a program/script.
Three directory permissions:
  • read: permitted to read the contents of directory (view files and sub-directories in that directory ).
  • write: permitted to write in to the directory. ( create files and sub-directories in that directory )
  • execute: permitted to enter into that directory.
Numeric values for the read, write and execute permissions:
  • read 4
  • write 2
  • execute 1
To have combination of permissions, add required numbers. For example, for read and write permission, it is 4+2 = 6.

Change File and Directory Permissions Using Chmod Command
You can use either the octal representation or symbolic representation to change the permission of a file or directory.

Octal representation for permissions:
  • First number is for user
  • Second number is for group
  • Third number is for others
For example, give read, write ( 4+2 = 6 ) to user and read ( 4 ) to group and others.


$ chmod 644 filename

For example, give read, execute ( 4 + 1 = 5 ) to user and read (4 ) to group, and nothing ( 0 ) to others.
$ chmod 540 filename

For example, give read, write ( 4 + 2 = 6 ) to user and nothing ( 0 ) to group, and read ( 4 ) to others.
$ chmod 604 filename

Learn JavaScript - String and its methods - 16

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>String and it's methods - JS...