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

Best Windows APPs

Video Player: MPlayer(SMPlayer) and Windows Media Player (with WMPkeys plugin)
Image Viewer: FastStone Image Viewer
Garbage Collection Utility: WinDirStat to find the largest files/Dirs and Auslogics Duplicate File Finder to find duplicate files.
WinGrep for windows GREP tool
Terminal: Windows Terminal + Cygwin

Screen Recorder: ShareX, disable default Win + Shift + S (https://www.top-password.com/blog/disable-specific-windows-key-shortcut/) and set it to the ShareX.
Photo Importer: Windows Photo Gallery, FastStone image Viewer
Text Editor: Scite for GUI editor/ Emacs for commandline
Disk management: Type partition in the Win search bar
Global shortcut: AutoHotKey

How do I put my hotkeys and hotstrings into effect automatically every time I start my PC?

There are several ways to make a script (or any program) launch automatically every time you start your PC. The easiest is to place a shortcut to the script in the Startup folder:

    Find the script file, select it, and press Ctrl+C.
    Press Win+R to open the Run dialog, then enter shell:startup and click OK or Enter. This will open the Startup folder for the current user. To instead open the folder for all users, enter shell:common startup (however, in that case you must be an administrator to proceed).
    Right click inside the window, and click "Paste Shortcut". The shortcut to the script should now be in the Startup folder.

 
Show notification area/taskbar in two monitors: Actual Multiple Monitors
PDF viewer: Adobe Reader > 2019 version to open files in tabs

Chinese Input Method: 输入法:搜狗输入法去广告版,在baidu网盘中。Windows 10/11 bug: Ctrl + Space is always the default Chinese IME/Non IME switch, need to fix by following: Change both HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys and  HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys (You can copy and paste the path to the address bar) Change 00000010 | Key Modifiers to 02 c0 ..., which is Ctrl, and Virtual Key to bc 00 00 00, which is comma. (http://www.kbdedit.com/manual/low_level_vk_list.html)
This way, you'll change to use ctrl + , as the language IME/Non IME switch: use Sougou as the default input method with English as the default. If the system reverts the change, modify HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys again. To prevent the change reversion, change the permission of the key 00000010  as the following pic:

























CT image viewer: RadiAnt DICOM Viewer (64-bit)
Linux file reader: DiskInternals Linux Reader
Windows 11 make taskbar smaller: https://github.com/valinet/ExplorerPatcher

Fonts for application on Windows and Linux (The same font may give you different looks on different systems or apps)

Font:
Win: Hack font for Eclipse, Consolas High for others; 
Ubuntu: Monospace regular 
Verdana
Segoe UI (Windows only)
Arial (newer on Windows, Mac) almost =  Helvetica (older, on Mac and Unix)

Monaco on Mac
Menlo on Mac

Input font: Download here: https://drive.google.com/file/d/0B-yP6qGwTd2iNlgybzliakdtdkU/view?usp=sharing

http://www.cssfontstack.com/

My font preference:
Hack > Consolas (depending on apps) > Ubuntu Mono Bront >  Ubuntu Mono or Menlo > Verdana

For different application, even the same font gives you different looks. So different applications use different fonts.

Eclipse on Linux: Hack Regular 9
Eclipse on Windows: Hack font 10
Terminal on Linux: Hack Regular 9
Scite on Linux: Hack,size:9
TextWrangler on Mac: Consolas 13
Scite on Windows: Consolas 11
tkdiff on Linux: DejaVu Sans Mono 10
Cygwin console on Windows: Hack 9
Windows terminal: Ubuntu Mono Bront 11
Emacs on Windows: YaHei Consolas Hybrid