3/12/2016

Windows 10 won't go to sleep

Run powercfg /energy to see which app prevents the computer from going to sleep

1/26/2016

How to fix lightroom?

Sometime the Adobe lightroom won't behave as you expect. For example, the brush won't increase the exposure etc.
You can fix it by removing the preference files under:

C:\Users\your-user-name\AppData\Roaming\Adobe\Lightroom\Preferences

How to automatically save the photo edits:
Choose Edit > Catalog Settings (Windows) or Lightroom Classic > Catalog Settings (Mac OS).

Click the Metadata tab, and then do either of the following:


    To write adjustments and settings metadata to XMP, select Automatically Write Changes Into XMP.

1/20/2016

Pidgin Shortcuts / Hotkey / bring buddy list to the front

Search and download Pidgin-Hotkeys
Then enable in plugins

To bring pidgin to the front with a shortcut: ctrl + alt + k

In Ubuntu, it can be install by using sudo apt install pidgin-hotkeys. Then create some links:
ln -s /usr/lib/pidgin/hotkeys.so  ~/.purple/plugins/
ln -s /usr/lib/pidgin/hotkeys.la  ~/.purple/plugins/

1/11/2016

How to print out calendar from Windows CMD console like Linux cal

http://gnuwin32.sourceforge.net/packages/gcal.htm

Download the installer and install it.
Add C:\Program Files (x86)\GnuWin32\bin to your system PATH variable.

You can then call gcal in your console.

1/10/2016

How to change Windows Console Font to Consolas

If you're trying to figure out how to change the Windows console font to another one, this post will help you.

Run:
chcp 65001

Then you should be able to change it now.
If you add Python to the ENV path, you can start python directly from the console. But python may complain: "unknown encoding: cp65001"
To fix that:

Add PYTHONIOENCODING=utf-8 as a new ENV variable 

Another dumbest thing of windows console is that: the shortcut of cmd.exe won't get saved in the regedit. But if you run cmd.exe directly, the font settings will be saved in the regedit. So If your changes don't stick, you should run cmd.exe directly instead of running the cmd command, which is just a shortcut of cmd.exe. STUPID Windows console!!