2014-08-31

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

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';

2012-05-06

CorelDraw for Linux?


  • CorelDRAW Graphics Suite X5
  • CorelDRAW Graphics Suite X4
  • CorelDRAW Graphics Suite X3

2012-05-05

Install Mac OS X Lion Theme On Ubuntu

Install Icons
  • mkdir ~/.icons
  • wget http://dl.dropbox.com/u/47950494/Mac-Lion-Icons.tar.gz
  • tar -xzvf Mac-Lion-Icons.tar.gz -C ~/.icons
Install Cursors
  • wget http://dl.dropbox.com/u/47950494/Mac-Lion-Cursors.tar.gz
  • sudo tar -xzvf Mac-Lion-Cursors.tar.gz -C /usr/share/icons
Install Theme
  • mkdir ~/.themes
  • wget http://dl.dropbox.com/u/47950494/Mac-Lion-Theme.tar.gz
  • tar -xzvf Mac-Lion-Theme.tar.gz -C ~/.themes
Enable Theme/Icons/Cursors

Method 1:
  • gsettings set org.gnome.desktop.interface gtk-theme 'Mac-Lion-Theme'
  • gsettings set org.gnome.desktop.interface icon-theme 'Mac-Lion-Icons'
  • gconftool-2 --set --type string /apps/metacity/general/theme 'Mac-Lion-Theme'
Method 2:
  • install GNOME Tweak Tool
    install sudo apt-get install gnome-tweak-tool
  • open Theme tab and select:
    Cursor theme > Mac-Lion-Cursors
    Icon theme   > Mac-Lion-Icons
    GTK+ theme   > Mac-Lion-Theme
    Window theme > Mac-Lion-Theme

2012-04-04

Remove applications menu from top panel [Unity/Ubuntu]

Applications menu will be displayed in the main window, not in the top panel:

sudo apt-get remove indicator-appmenu