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!!

Most Popular Windows Shortcuts

Windows Shortcuts:
==================
F2 Rename file name
Ctrl + Shift + N New Folder
Alt + Space + N Minimize window
Windows + S search
Windows + D Show Desktop
history & invoke-history in powershell
F7 for history in cmd
Ctrl + W to close a tab
Alt + F4 to close a window

Windows + Shift + Arrow to move a window between monitors

Visual studio Shortcuts:
========================
Ctrl + F search in current page
Ctrl + Shift + F search enrie solution
F2 Rename variables/File names
F10 Step over
F11 Stepp into
F5 Continue
Shift + F6 build
Ctrl + R, Ctrl + T Debug test function
Ctrl + R, T Run test function
Ctrl + ; to search files in solution


Outlook shortcuts:
==================
Ctrl + E to search for email
F4 to find words in the email (Note: double click to open the email first)
Ctrl + mouse wheel to zoom in/out

Ctrl + 1: go to mail
Ctrl + 2: go to calendar