sugatshr
Posts by :
Albert Einstein quotes
“Never memorize something that you can look up.”“Paper is to write things down that we need to remember. Our brains are used to think.”
How to Cancel Stuck Print Job
Open Services find Print Spooler in the list, and click the Stop button. Open Windows Explorer and in location bar type %windir%System32spoolPRINTERS Delete the files but don’t delete the PRINTERS folder, just the files. Now go back to Services and click the Start button to start up the service again.
How to install GUI in Ubuntu Server Edition
First type sudo apt-get install xinit To install Gnomesudo apt-get install ubuntu-desktop To install KDE issudo apt-get install kubuntu-desktop and to install XFCE sudo apt-get install xubuntu-desktop after installing reboot the systemsudo reboot No X server by design By design, Ubuntu Server Edition does not include an X server or any […]
Thumbnail of youtube videos
Youtube generates 4 thumbnails for for every video uploade. To know the thumbnail image location, replace the 11 digit alphanumeric with your own video id http://img.youtube.com/vi/KjNJmwwf7QA/2.jpg
How to enable error reporting in a PHP?
There are two ways to enable error reporting in your PHP . 1. You can add the following function in the .php file: error_reporting(E_ALL); 2. You can add/enable the following option in the php.ini file for your web site: error_reporting = E_ALL To turn error reporting off for a single […]
RocketDock application launcher for better productivity and accessibility
RocketDock is a smoothly animated, alpha blended application launcher. It provides a nice clean interface to drop shortcuts on for easy access and organization. With each item completely customizable there is no end to what you can add and launch from the dock. Now with added Taskbar support your minimized […]
Print this page button/link on webpage
<form><input type=”button” value=” Print this page ” onclick=”window.print();return false;” /></form> <a href=”#” onclick=”window.print();return false;”>Print this page</a> <a href=”#” onclick=”window.print();return false;”><img src=”images/icon_print.png”></a>
Simple delete confirmation
<head><script type=”text/javascript”>function confirmDelete(){return confirm(‘Are you sure?rnrnThis will permanantly delete user from the database!’ );}</script></head> <body> <a onclick=”return confirmDelete();” href=”delete_user.php?id=<? echo $row_ul[‘username’]; ?>”>Delete</a> </body>
CSS box Shadow, Glow/Stroke effects
BoxShadow {box-shadow: horizontal vertical blur spread color inset;} For example div {box-shadow: 2px 2px 0px #FFFFFF;} Glow/Stroke Effect – the trick is to put shadow above and below text. div {box-shadow: 2px 2px 2px #888888,-2px -0px 2px #888888;}