The VLC media player not working (can not be run as root) | Backtrack 5


1. Open Konsole Terminal
2. Type
  cd /usr/bin/
  hexedit vlc
3. Press Tab -> Switch to ASCII
4. Press Ctrl+ S -> Search "geteuid"
Modify to "getppid"
5. Press Ctrl+ X -> Save


JavaScript - Example mm/dd/yyyy formatted dates | USA

// use a function for the exact format desired...
function MDYDateString(d){
  function pad(n){
    return n< 10? '0'+ n: n;
  }
  return pad(d.getUTCMonth()+ 1)+ '/'+ pad(d.getUTCDate())+ '/'+ d.getUTCFullYear();
}
// prints something like 12/20/2012
var d= new Date();
console.log(MDYDateString(d));