Tag: change

Microsoft Windows

Change Power Button Action using command line

Open a cmd window and run the following command: reg add "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v Start_PowerButtonAction /t REG_DWORD /d 16 /freg add "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced" /v Start_PowerButtonAction /t REG_DWORD /d 16 /f To apply the change, restart explorer.exe or log off and login back.

Microsoft Windows, Windows 7

Change windows wallpaper from command line

Open command line and execute: reg add "HKEY_CURRENT_USERControl PanelDesktop" /v Wallpaper /t REG_SZ /d  C:wallpaperpathimage.jpg /freg add "HKEY_CURRENT_USERControl PanelDesktop" /v Wallpaper /t REG_SZ /d  C:wallpaperpathimage.jpg /f to set new wallpaper and execute: RUNDLL32.EXE user32.dll,UpdatePerUserSystemParametersRUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters to activate the new wallpaper.

C#

Change ListView row foreground color

To change ListView row Foreground color (font color) try this: ListViewItem item = new ListViewItem(new String[] { "blah", "blah blah" }); item.ForeColor = Color.Red; mylistview.Items.Add(item);ListViewItem item = new ListViewItem(new String[] { "blah", "blah blah" }); item.ForeColor = Color.Red; mylistview.Items.Add(item);

Anonymity, Linux, Microsoft Windows

Change or spoof your Mac address

Windows 1. Open Control Panel 2. Open Network and Internet 3. Open Network and Sharing Center 4. Choose Change adapter settings from the left menu 5. Right click on your ethernet adapter and choose Properties 6. Click Configure.. button 7. Select Advanced tab 8. Click on Network Address property and check the value option on …

HTML & CSS, Javascript & Ajax

Change dynamically html body background image with javascript

Let’s see how we can change body background image with javascript: document.body.style.minWidth = "100%"; document.body.style.minHeight = "100%"; document.body.style.backgroundSize = "100% 100%"; document.body.style.backgroundImage = "url(image_path.jpg)"; document.body.style.backgroundRepeat = "no-repeat";document.body.style.minWidth = "100%"; document.body.style.minHeight = "100%"; document.body.style.backgroundSize = "100% 100%"; document.body.style.backgroundImage = "url(image_path.jpg)"; document.body.style.backgroundRepeat = "no-repeat";

Linux, Ubuntu

Change the hostname or computer name in linux

1. Open a terminal window. 2. Type the following command and hit Enter: sudo gedit /etc/hostnamesudo gedit /etc/hostname 3. Replace the current computer name with the desired new name and save. 4. Type the following command: sudo gedit /etc/hostssudo gedit /etc/hosts 5. Change the old 127.0.1.1 line to your new hostname. 6. Reboot