noty – a jquery notification plugin

noty is a jQuery plugin that makes it easy to create alert, success, error and confirmation messages as an alternative the standard alert dialog. Each notification is added to a queue.

The notifications can be positioned at the top, bottom, centre, top left or top right.

There are lots of other options in the API to customise the text, animation, speed, buttons and much more.

Htaccess: Redirect Sub-Directory of One Domain to Another Domain

If you want to redirect the sub-directory /test/1234 under your current domain and all the files under it to in a way that you don’t lose any of the google link juice, then you can add the following code snippet to your .htaccess.

<IfModule mod_rewrite.c%gt;
RewriteEngine On
RewriteCond %{REQUEST_URI} /test/1234 [NC]
RewriteRule ^(.*)$$1 [R=permanent,L]

Exclude Sub-Directories while Copying (cp) Files / Directory using tar

I recently had the need to copy a directory to another portion of the file system, but wanted to skip some sub-directories. Normally what one would do is just copy the whole directory and delete the sub-directories that you don’t want after the copy operation has completed (and not make a big deal about it). However that wasn’t feasible this time, because each of these sub-directories had GBs of data and I did not have enough disk space to accomodate those extra files. I went through the cp man page and did a few google searches but did not find anything that would work for me. However I realized that I had just used the “exclude” feature of tar a few days back which lets you skip portions of a directory while tarring and I knew tar could be used to copy over files as well (tar pipe). So thats what I did. Continue reading