Monday, 19 May 2014

How to convert USB into Bootable device?

Open command promt as administrator
1.DISKPART
2.LIST DISK
3.SELECT DISK 1
4.CLEAN
5.CREATE PARTITION PRIMARY
6.SELECT PARTITION 1
7.ACTIVE
8.FORMAT FS=NTFS
9.ASSIGN
10.EXIT
E:
(E is your dvd drive letter)
CD BOOT
BOOTSECT.EXE /NT60 G:
(G is your usb drive letter)
copy dvd contents to your usb.

How to move users programfiles (and x86) and programdata to HDD after installing Windows in SSD boot Drive


I am going to show you hot to move Users, Program Files, Program Files (x86) and ProgramData (hidden folder) to HDD after insatlling Windows on SSD boot drive. I did this tut with Windows 7 but I am pretty sure it will work in Windows 8. On this way we will have default folders located in D so we don't need to edit it everytime while installing smt. and we will also have junctions, just in case.
(I assumed C is SSD and D is HDD, if not change it while entering commands)

1. Install Windows 7 on your SSD. Just do the insalling progress, until user creation (last reboot). You can easilly do it. If you don't know how to there are tons of tutorials avalible. Just Google it.

2. Open Command Line before starting user setup. (Use shift + f10)

3. Enter theese commands to copy Users, Program Files, Program Files (x86) and ProgramData to HDD.
  1. robocopy "C:\Users" "D:\Users" /E /COPYALL /XJ
  2. robocopy "C:\Program Files" "D:\Program Files" /E /COPYALL /XJ
  3. robocopy "C:\Program Files (x86)" "D:\Program Files (x86)" /E /COPYALL /XJ
  4. robocopy "C:\ProgramData" "D:\ProgramData" /E /COPYALL /XJ


3. Now delete these folders from C
  1. rmdir "C:\Users" /S /Q
  2. rmdir "C:\Program Files" /S /Q
  3. rmdir "C:\Program Files (x86)" /S /Q
  4. rmdir "C:\ProgramData" /S /Q

Removing ProgramData will give an error about few files, ignore it, we will fix it.

4. Create Just-in-case junctions
  1. mklink /J "C:\Users" "D:\Users"
  2. mklink /J "C:\Program Files" "D:\Program Files"
  3. mklink /J "C:\Program Files (x86)" "D:\Program Files (x86)"


5. Open registry editor.
  1. regedit


6. Registry edits to set default locations of Users, Program Files, Program Files (x86) and ProgramData
  1. 1. Go to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion
  2. 2. Do the edits there (screenshot is avalible, scroll down to see edit where)
  3. 3. Go to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/ProfileList
  4. 4. Do the edits there (screenshot is avalible, scroll down to see edit where)




7. Now you can close cmd and regedit and finish winsows setup.

8. After all done reboot windows

9. Enable hidden files & folders in directory settings located at Control Panel


10. Go to SSD (C:\) and delete or shift delete ProgramData

11. Create the just-in-case junction for ProgramData
  1. 1. Open run by pressing windows+r
  2. 2. Run cmd
  3. 3. Enter this code:
  4. mklink /J "C:\ProgramData" "D:\ProgramData"


YOU ARE DONE!
You will never run out of space in your SSD anymore!

Monday, 12 May 2014

Image uploading Instant preview




<img src="http://www.designofsignage.com/application/symbol/building/image/600x600/no-photo.jpg" width='200px' height='200px' id="preview" title="No Image"><br><br>
<input type="file"  name="postimage" id="postimage" onchange="readURL(this,200,200)" >
<script type='text/javascript' src='http://code.jquery.com/jquery-1.11.1.min.js'></script>
<script type='text/javascript'>
function readURL(input,w,h) {
 if (input.files && input.files[0]) {
  var reader = new FileReader();
  reader.onload = function (e) {
   $('#preview').attr('src', e.target.result);
   $("#preview").attr("width",w);
   $("#preview").attr("height",h);
  }
  reader.readAsDataURL(input.files[0]);
 }
}
</script>

Sunday, 13 April 2014

Valu 2014 Tamil Movie Mp3 Songs Free download


Starring: Silambarasan,Hansika Motwani, Santhanam, and others Direction: Vijay Chandar
Music: Thaman.S
Lyricist: Madhan Karky, Silambarasan

Download Tamil Mp3 Songs: Vaalu (2014)

Friday, 11 April 2014

Input field enter integer only


Here's an example that limits a form field to contain only numeric input (on the fly, of course!).
<script type="text/javascript">
function numbersonly(e){
var unicode=e.charCode? e.charCode : e.keyCode
if (unicode!=8){ //if the key isn't the backspace key (which we should allow)
if (unicode<48||unicode>57) //if not a number
return false //disable key press
}
}
</script>

<form>
<input type="text" size=18 onkeypress="return numbersonly(event)">
</form>

Get Latitdue and longitude from google map

Code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://maps.google.com/maps?file=api&v=2&key=" type="text/javascript"></script>
<script type="text/javascript">
$( document ).ready(function() {
 $("#map").show();
 show_popup();
});


function show_popup(){
 $("#map").show();
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
var center = new GLatLng(11.00, 78.00);
map.setCenter(center, 7);
geocoder = new GClientGeocoder();
var marker = new GMarker(center, {draggable: true});
map.addOverlay(marker);
document.getElementById("lat").value = center.lat().toFixed(5);
document.getElementById("lng").value = center.lng().toFixed(5);

GEvent.addListener(marker, "dragend", function() {
var point = marker.getPoint();
map.panTo(point);
document.getElementById("lat").value = point.lat().toFixed(5);
document.getElementById("lng").value = point.lng().toFixed(5);
});

GEvent.addListener(map, "moveend", function() {
map.clearOverlays();
var center = map.getCenter();
var marker = new GMarker(center, {draggable: true});
map.addOverlay(marker);
document.getElementById("lat").value = center.lat().toFixed(5);
document.getElementById("lng").value = center.lng().toFixed(5);

GEvent.addListener(marker, "dragend", function() {
var point =marker.getPoint();
map.panTo(point);
document.getElementById("lat").value = point.lat().toFixed(5);
document.getElementById("lng").value = point.lng().toFixed(5);
});
});
}
}
</script>
<table align='center'>
<tr>
<td><label>Latitude</label></td>
<td><label>:</label></td>
<td><input type="text" name="latitude" id="lat" onclick="show_popup();" readonly value=""/>
<em></em>
</td>
<td><label>Longitude</label></td>
<td><label>:</label></td>
<td><input type="text" name="longitude" onclick="show_popup();" id="lng" readonly value=""/>
<em></em>
</td>
</tr>
<tr><td colspan='6'><div align="center" id="map" style="width:700px;height:450px;-webkit-border-radius: 18px 20px 20px 20px;-moz-border-radius: 18px 20px 20px 20px;border-radius: 18px 20px 20px 20px;border:2px solid #82B5CF;background:rgba(231,228,237,0.5);"></div></td></tr>
</table>

Feet/Inches to Meters Converter & Lbs to Kgs Converter

 <!DOCTYPE html> <html lang="en"> <head>   <meta charset="UTF-8" />   <title>Feet/Inches ⇄...