2014-12-06

Facebook signs

<3love
(y)ok
<(")penguin
:poop:poop
:|]robot
(^^^)shark
:putnam:staff

2014-11-18

Get BIOS serial number

  • Command line
    • wmic bios get serialnumber
    • wmic csproduct get identifyingnumber
  • PowerShell
    • Get-WmiObject win32_bios | fl SerialNumber
    • gwmi win32_bios | fl SerialNumber

2014-09-11

Backup/Restore μTorrent/uTorrent

Go to the installation directory (d:\Users\user\AppData\Roaming\uTorrent\)

  • settings.dat - settings file
  • resume.dat - all running torrents
Backup this files and use them when needed.
You can copy them after a fresh Windows and uTorrent install

2014-09-07

Modify boot order

Method 1: from the Terminal
  • sudo gedit /etc/default/grub
    • edit order and save the file
  • sudo update-grub
Method 2: Install Grub Customizer
  • sudo add-apt-repository ppa:danielrichter2007/grub-customizer
  • sudo apt-get update
  • sudo apt-get install grub-customizer
    • after the install edit the order

ERROR: "Could not open a scratch file because the file is locked"

Method 1:

  • Run Photoshop as Administrator
Method 2:
  • while Photoshop opens hold down Ctrl+Alt to open the Cratch Disk Preferences (PS: you have to be quick, before it opens)
Method 3:
  • while Photoshop opens hold down Ctrl+Alt+Shift to delete the preferences file (PS: you have to be quick, before it opens)
Method 4:
  • set the user and system environment variables %TEMP% and %TMP% to point to a custom folder (like C:\Temp)

2014-08-31

Change Interernet Explorer home page


  • run regedit
  • open key HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main
  • enter in Start Page your home page

Disable Internet Explorer home page changing


Method 1:
  • run regedit
  • open key HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel
  • set HomePage to 0:Enabled or 1: Disabled

Method 2:
  • run gpedit.msc
  • go to User Configuration\Administrative Templates\Windows Components\Internet Explorer
  • Double-click on Disable changing home page settings
  • select Enabled

CD/DVD drive letter missing

Method 1:
(Tested on Windows 8)
  • rum cmd as administrator
  • type reg.exe add "HKLM\System\CurrentControlSet\Services\atapi\Controller0" /f /v EnumDevice1 /t REG_DWORD /d 0x00000001
  • reboot

Reset Windows Store Cache


  • run cmd as administrator
  • type WSReset
Default location: %SYSTEM% folder

2014-08-30

Backup/Restore Photoshop


  • Brushes
    • Mac OS X: ~/Library/Application Support/Adobe/Adobe Photoshop CS4/Presets/Brushes
    • Windows: [Drive]:\Users\<user>\AppData\Roaming\Adobe\Adobe Photoshop ##\Brushes
  • New Document Presets
    • Mac OS X: <user>/Library/Application Support/Adobe/Adobe Photoshop ##/Presets
    • Windows : [Drive]:\Users\<user>\AppData\Roaming\Adobe\Adobe Photoshop ##\Presets
  • Patterns
    • Mac OS X: <user>/Library/Application Support/Adobe/Adobe Photoshop ##/Paterns
    • Windows : [Drive]:\Users\<user>\AppData\Roaming\Adobe\Adobe Photoshop ##\Paterns

2014-03-29

get image dimensions in JavaScript

var img = new Image();
img.src = "pathToFile";
width = img.width;
height = img.height;

Change body background color/image using JavaScript

   document.body.style.backgroundColor = '#000';
   document.body.style.backgroundImage = 'PathToImage';