focus password element from password to ********

/** *  <form> *  <input type=”text” name=”password” value=”Password” onfocus=”get_password_focus(this)”> *  </form> *  This function can be used for focus password element from password to ******** */ function password_focus(obj) { var newO=document.createElement(‘input’); newO.setAttribute(‘type’,’password’); newO.setAttribute(‘name’,obj.getAttribute(‘name’)); obj.parentNode.replaceChild(newO,obj); newO.focus(); }

Get page size

function get_page_size() { var de = document.documentElement; var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight; arrayPageSize = new Array(w,h); return arrayPageSize; }

Change Images

/* change image on mouseover and click */ function mEvent(id,img1,img2,img3) { var i = new String(); i = document.images[id].src; document.images[id].src = i.replace(img2,img1); //for click condition if(document.images[id].src.indexOf(img3)!=-1) document.images[id].src = i.replace(img3,img1); }

Protect website folders by .htaccess

<IfModule dir_module> DirectoryIndex index.html index.php index.php4 index.php3 index.cgi index.pl index.htm index.shtml index.phtml </IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} !(css) RewriteCond %{REQUEST_URI} !(js) RewriteCond %{REQUEST_URI} !(images) RewriteCond %{REQUEST_URI} !(videos) RewriteCond %{REQUEST_URI} !(cache) </IfModule>

Templates Search Made Easy

Suppose you want to search joomla/wordpress templates and find the site for all these templates, here you have to navigate entire templates with all pages. This will waste your time and internet band width…. www.bestofjoomla.com The best way to navigate all template in few seconds: This will save your time and band width….. Here on … Read more

pdftohtml

pdftohtml converters  PDF documents into HTML format, which is more suitable for Internet publishing. The converter produces HTML documents with texts, pictures, graphics and bookmarks. pdftohtml software does not require Adobe Acrobat, or even Acrobat Reader. Install pdftohtml on Fedora/Linux: # yum install pdftohtml # which pdftohtml Usage: pdftohtml [Option] <PDF File> [<HTM File>] Source: … Read more

pdftk – fedora – merge pdf files

Pdftk allows to manipulate PDF easily and freely. It does not require Acrobat, and it runs on Windows, Linux, Mac OS X, FreeBSD and Solaris etc. Features: Merge PDF Documents Split PDF Pages into a New Document Rotate PDF Pages or Documents Decrypt Input as Necessary (Password Required) Encrypt Output as Desired Fill PDF Forms with … Read more

Resume Builder pdf2txt, word2txt

Reading PDF Files XPDF package includes “pdftotext.” You have to install XPDF/pdftotext then run the following PHP statement to get the PDF text: $txtcontent = exec(‘/usr/local/bin/pdftotext svnlabs.pdf -‘); Reading DOC Files This package is called Antiword. Here’s the PHP code to grab the Word DOC content: $txtcontent = exec(‘/usr/local/bin/antiword svnlabs.doc’);

Publish HTML2PDF

HTMLDOC converts HTML files and web pages into HTML, PostScript and PDF files suitable for on-line viewing and printing. HTMLDOC is used for anything that needs to be viewed or printed including on-line billing, books, financial statements, automated network configuration guides, mailing lists and labels, marketing flyers, quarterly reports, technical manuals, and users manuals. We … Read more

Configure Amazon EC2

1.Boot 2 linux servers on EC2 2.Assign elastic IP to each of them 3.Register a domain (eg svnlabs.com) 4.On the domain settings – create 2 host records – ns1.svnlabs.com and ns2.svnlabs.com and point each record to each of the elastic IPs. 5.On your 2 nameserver instances – create dns zone for ns1. and ns2 respectively … Read more