Posts

How to clear Facebook Share’s Cache

Facebook share is good, simple, lets us share almost everything on web in seconds. But Facebook caches already shared urls/pages for better performance. This causes issues at time when we update the title, picture being shared or the description of the page because facebook still shows the older version of the page.

Get URL Parameters Using Javascript

<script> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i<vars.length;i++) { var pair = vars[i].split("="); if (pair[0] == variable) { return pair[1]; } } alert('Query Variable ' + variable + ' not found'); } </script> Now make a request to page.html?x=Hello <script> alert( getQueryVariable("x") ); </script>

Jquery Validation with custom message

You can validate the HTML form using the Jquery with your custom error message. This is very easy to implement and require little knowledge of jquery.

How to make bootable pen drive

Image
Requirements: *USB Flash Drive (Minimum 4GB) *Windows 7 or Vista installation files. Follow the below steps to create bootable Windows 7/Vista USB drive using which you can install Windows 7/Vista easily. 1 . Plug-in your USB flash drive to USB port and move all the contents from USB drive to a safe location on your system. 2 . Open Command Prompt with admin rights. Use any of the below methods to open Command Prompt with admin rights. *Type cmd in Start menu search box and hit Ctrl + Shift + Enter . Or *Go to Start menu > All programs > Accessories, right click on Command Prompt and select Run as administrator. 3 . You need to know about the USB drive a little bit. Type in the following commands in the command prompt: First type DISKPART and hit enter to see the below message. Next type LIST DISK command and note down the Disk number (ex: Disk 1) of your USB flash drive. In the below screenshot my Flash Drive Disk no is Disk 1 . 4 . Next type all the below co...

How to make a custom "404 error" page!

A "404" is an error message you get when you follow a link to a web-page that doesn't exist. By default this error message is a web-page created by your web-host provider. Did you know that you can customize this web-page? This will keep you from losing viewers when you delete a page or mess up a link ... funneling those "lost souls" back into your site. This is especially important for search engines ... you don't want to lose all that SE traffic when you move a page! Directions Open a text editor (Windows notepad will do), and copy the following onto the first line: ErrorDocument 404 /error-page.html Now, save the file onto your hard-drive as a text file (.txt) and name it " .htaccess.txt ". Yes, I know that is a weird file name, but that first period is necessary. We'll rename the file after we upload it. FTP to your web-site's root directory (where your homepage is located) with a program like WS-FTP. Copy the above file into t...