2005/05/04

Tự trọng và khiêm tốn

  1. Bạn không thể giáo dục được ai cả mà chỉ có thể gợi mở cho họ tự giáo dục lấy bản thân.
  2. Trong cả vũ trụ chỉ có một vị trí duy nhất anh chắc chắn có thể cải thiện được, đó là chính bản thân anh.
  3. Nói về mình thì dễ thành tự cao tự đại, nói về người thì dễ thành xúc xiểm chê bai.
  4. Chỉ chê việc, không chê người.
  5. Càng già bạn càng muốn tự lừa dối rằng tuổi tác đem lại thông thái. Cảm thấy mình bắt đầu thông thái là triệu chứng của lão hóa.

2005/02/20

Run Matlab with remote FLEXlm license server

I describe how to run Matlab on Windows XP at home by gaining license information from university through ssh tunnels.

Let say GATEWAY is the gateway to my university, and LICENSE_SERVER is where the FLEXlm server is running. First teach Windows to connect to localhost when anything wants to access LICENSE_SERVER. Find the file C:\Windows\system32\drivers\etc\hosts and add the following line

127.0.0.1 localhost LICENSE_SERVER

directly under the line

127.0.0.1 localhost

Secondly, you have to know the port on which FLEXlm will check out Matlab license. It is usually a number between 27000-27009 (let say it is 27002 as in the following example code) and you can know it by reading the file license.dat on the machine where FLEXlm running. Then your license.dat will look like:

SERVER localhost 80bf470b 27002
LM_LICENSE_FILE=27002@localhost
USE_SERVER

Finally, you have to forward the 2 necessary ports from your PC to the LICENSE_SERVER. In the 2 ports, one is used for connecting to the FLEXlm server, and the other for checking out Matlab. I use Putty for ssh ports forwarding. To view port numbers that are currently in use on Windows, run the following command from a DOS box:

netstat -a -p tcp

By the output of this command, you can guess the 2 ports that are required for access to the FLEXlm server.

The symbolic flower for Vietnamese Tet (Happy New Year)