11/16/2016

Third Party software policy

Policy Overview

  • AGPL: do not use
  • GPL/GPL2/GPL3 : avoid unless absolutely necessary. May be ok on server.
  • LGPL: ok for server/internal clients.
MIT, BSD, Boost, Apache, OpenLDAP: ok in general

11/11/2016

Use emacs on windows

Get Emacs from http://www.gnu.org/software/emacs/download.html
Create a command alias e.bat under C:/bin/e.bat, with content:
@echo off
chcp 437
@echo on

C:\emacs\bin\emacs.exe -nw %1

Add HOME to environment variable: HOME: C:\Users\liangzou.
Add .emacs to this folder. (See the content here)

How to customize the emacs application (GUI version):
Open regedit, find HKEY_CURRENT_USER\SOFTWARE\Classes\Applications\runemacs.exe\shell\open\command, change the value to:
"C:\emacs\bin\runemacs.exe" -fh -geometry 120x59 --load "C:\Users\liangzou\.emacs" "%1"

How to use it in MobaXterm/Cygwin:
===========================
Copy the same .emacs file from C:\Users\liangzou\.emacs to the home directory of MobaXterm.
Add the alias: 
alias ew='/drives/c/emacs/bin/runemacs.exe -fh -geometry 120x53' to the MobaXterm .bashrc file.
Or
/cygdrive/c/emacs/bin/runemacs.exe for Cygwin

How to create a palette from an image

Load the image in GIMP

Image | Mode | Indexed

Windows | Dockable Dialogs | Palettes, right click on the Colormap, then Export as ...

Done

11/03/2016

All you need to know about Synergy

Synergy is a very good program to share keyboard and mouse, but there are somethings you need to know:

1. Running synergy on Windows will prevent the computer from sleeping
2. On Mac, using Synergy as a client may cause Laggy or sluggish cursor. This is the workaround command: ping -i 0.1 192.168.1.26 > /dev/null &

11/01/2016

How to find all client IP address from Asus Wireless Router

For some reason, the clients won't show all connected clients.
To find all of the connected clients:
http://192.168.1.1

System Logs | DHCP leases