Sunday, 20 May 2012

Turning Num lock ON/OFF after the logon


  1. Open 'Run' and type 'regedit' and press enter...
  2. Select 'HKEY_CURRENT_USER' from the left pane...
  3. Select 'Control Panel'...
  4. Select 'Keyboard'...
  5. Double click on 'InitialKeyboardIndicators'...
Enter '0' to turn OFF Num lock after logon...
Enter '2' to turn ON Num lock after logon...
Enter '1' to disable Num lock...

Saturday, 19 May 2012

CSS Styles for custom margins while printing


  1. Create a CSS file and include some margins styles in it (say style.css)
@page {


margin-top: 1in;
margin-right: 1in;
margin-bottom: 1in;
margin-left: 1in;
}
  1. Create a HTML file and include the above stylesheet (say index.html)
<html>
<head>
<title> coldsoftmail </title>
<link rel="stylesheet" type="text/css" href="style.css" media="all">
</head>
<body>
<img src="Desert.jpg">
<input type="button" name="print" value="Print" onClick="javascript: window.print();">
</body>
</html>

CSS Styles for Scrollbars (Google Chrome)


  1. Create a CSS file and include some scrollbar styles in it (say style.css)...
::-webkit-scrollbar {
height: 12px;
width:12px;
background: #A3C1F7;
-webkit-border-radius: 1ex;
}
::-webkit-scrollbar-thumb {
/*chrome 10*/
background-image: -webkit-gradient(radial, center center, 0, center center, 437, color-stop(0, #0053FA), color-stop(1, #A49FF4));
/*chrome 11+ */
background-image: -webkit-radial-gradient(center, circle cover, #0053FA 0%, #A49FF4 100%);
-webkit-border-radius: 1ex;
-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
}
::-webkit-scrollbar-corner {
background: #A3C1F7;
}
  1. Create a HTML file and include the above stylesheet (say index.html)
<html>
<head>
<title> coldsoftmail </title>
<link rel="stylesheet" href="style.css" type="text/css" media="all">
</head>
<body>
<p style="font-size: 100px;">
Hai this is coldsoftmail <br>
Hai this is coldsoftmail <br>
Hai this is coldsoftmail <br>
Hai this is coldsoftmail <br>
Hai this is coldsoftmail
</p>
</body>
</html>

Locking a Folder


  1. Download 'LocK-A-FoLdeR' from ' http://code.google.com/p/lock-a-folder/'...
  2. Install 'LocK-A-FoLdeR'...
  3. Set Master password...
  4. Select the folder you want to lock...
  5. After locking the locked folder will be permanently hidden...
  6. We can see the locked folder until or unless we unlock the folder...

Friday, 18 May 2012

How to upload large files onto the web server using PHP


  1. Go to the folder of web server and search for 'php.ini' file in 'bin\php' folder...
  2. Open 'php.ini' file with administrator permissions...
  3. Search for 'file_uploads' in the file and set it as 'on'...
  4. Search for 'upload_max_filesize' in the file and set it as required...
  5. Save the file and close it...
  6. Write code for html form for uploading file (say index.html)...
<html>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" value="Upload">
</form>
</body>
</html>
  1. Write code for php to upload file (say upload.php)
<?php
$filename = "Image00.jpg";
move_uploaded_file($_FILES['file']['tmp_name'], $filename);
echo "File uploaded successfully";
?>
  1. Now open 'index.html' file in your web server...