Thursday, January 31, 2008

Proftpd: how to set a download rate limit?

How to limit the download speed of anonymous user to be a specific amount, say 100kbps?

Saturday, January 26, 2008

My lovely daughter was born on Jan 18 2008


On January 18th, 2008, my lovely daughter was born in Sino-Janpanese Friendship Hospital, Beijing. And I became a father; my wife suffered a lot of pain and became a mother.



May health and happiness always be with you, Nannan!
We love you so much.


Your daddy & mammy.

Wednesday, January 09, 2008

Add oil.

STATUS: oil is been adding...



:)

What the hell someone is doing to IGS Mail?

http://igscb.jpl.nasa.gov/mail/igsmail/2008/msg00000.html
IGS Mail number 5678

Is it a spam mail? Never seen something like this before. Enn...

Sunday, January 06, 2008

CATS: does it recognize the SOPAC NEU ascii format time series?

The format of data files given in CATS examples is different from that of SOPAC products. The latter has 2 superfluous columns: 2nd-year, and 3rd-doy. I have convert the SOPAC format to CATS format to make it work.

Question: what's the meaning of CATS output?

One log file looks like:
[tianyf@gpsac sopac]$ more voltCleanUnf.neu.cat.fn_mle
Cats Version : 3.1.2
Cats command : cats --sinusoid 1y1 --model pl:k-1 --verbose --output voltCleanU
nf.neu.cat.fn_mle --psdfile voltCleanUnf.neu.cat.fn_mle.psd //home/tianyf/cats_v
3.1.2/sopac/sopac_catfmt/voltCleanUnf.neu.cat
Data from file : //home/tianyf/cats_v3.1.2/sopac/sopac_catfmt/voltCleanUnf.neu.
cat
cats : running on gpsac
Linux release 2.6.18-8.el5 (version #1 SMP Fri Jan 26 14:15:14 EST 2007) on x86
_64
userid : tianyf

Sampling frequency 1.17366e-05 (Hz), 0.99 days
Number of samples 1 period apart = 1723 of 1835
Number of points in full series = 2177
Number of series to process : 3
Start Time : Sun Jan 6 01:49:49 2008

+NORT POWER LAW NOISE
+NORT INDEX : -1.0000
+NORT PL : IS FREE

Time taken to create covariance matrix 9.230000 seconds and compute eigen value
and vectors : 78.730000 seconds
Time taken to create cholesky of covariance matrix : 2.530000 seconds
Time taken to estimate mle 0.130000 seconds
+NORT MLE : -2842.635725
+NORT INTER : -63.8343 +- 0.8031
+NORT SLOPE : 18.2041 +- 0.2652
+NORT SIN : -0.2950 +- 0.2590
+NORT COS : 0.1171 +- 0.2673
+NORT SIN : -0.4798 +- 0.1877
+NORT COS : -0.0053 +- 0.1893
+NORT POWER LAW NOISE
+NORT INDEX : -1.0000
+NORT PL : 4.9438 +- 0.0816

+EAST POWER LAW NOISE
+EAST INDEX : -1.0000
+EAST PL : IS FREE

Time taken to create covariance matrix 8.400000 seconds and compute eigen value
and vectors : 78.710000 seconds
Time taken to create cholesky of covariance matrix : 2.530000 seconds
Time taken to estimate mle 0.130000 seconds
+EAST MLE : -3189.006725
+EAST INTER : -82.0264 +- 0.9699
+EAST SLOPE : 21.0756 +- 0.3203
+EAST SIN : -0.6818 +- 0.3128
+EAST COS : -0.3644 +- 0.3227
+EAST SIN : 0.0749 +- 0.2266
+EAST COS : 0.0081 +- 0.2285
+EAST POWER LAW NOISE
+EAST INDEX : -1.0000
+EAST PL : 5.9703 +- 0.0985

+VERT POWER LAW NOISE
+VERT INDEX : -1.0000
+VERT PL : IS FREE

Time taken to create covariance matrix 8.370000 seconds and compute eigen value
and vectors : 78.700000 seconds
Time taken to create cholesky of covariance matrix : 2.540000 seconds
Time taken to estimate mle 0.120000 seconds
+VERT MLE : -5588.653583
+VERT INTER : 1.3811 +- 3.5837
+VERT SLOPE : -0.8162 +- 1.1834
+VERT SIN : -0.5897 +- 1.1557
+VERT COS : 0.4890 +- 1.1925
+VERT SIN : -0.7284 +- 0.8374
+VERT COS : 0.9441 +- 0.8445
+VERT POWER LAW NOISE
+VERT INDEX : -1.0000
+VERT PL : 22.0606 +- 0.3641

End Time : Sun Jan 6 01:54:20 2008

Total Time : 271

The fan of my nx6300 laptop so loud.

My darling suggested to me that I should take it to have a check at the HP service station. But I didn't have time to go. At the same time, I cannot work without it. I felt that there maybe something wrong with the fanning system which caused by dust. I really need have it checked someday when I have time or cannot stand the noise anymore.

Bread fire in the microwave oven.

It scared me much that the bread got fire in the microwave oven. I put the bread with its package into the oven, and didn't loose the metal band which is used to bundle the bag and proved to be the source of the fire.

Saturday, January 05, 2008

Recipe: You men da xia

Today's recipe: you-men-da-xia (oil bored big shrimp), or oil-cooked shrimp.

Flavors:
1) Fresh shrimp;
2) Ginger;
3) Garlic;
4) Cooking alcohol;
5) Peanut oil.


This dish tasted good. Haha.. :) Nannan's mami required another treat in the following days.

More girls than boys in Sino-Japan Friendship Hospital

Haha... Almost everyone said that there are more men than women in China. The ratio of Men to Women is about 115:100. However, the number of girls borne in hospital outnumbers that of boys. :)

How to change the menu langauge for IDL v7.0?

http://groups.google.com/group/comp.lang.idl-pvwave/browse_thread/thread/0cf1f802d9b77c1c/cd971b27651cd7a3?hl=en#cd971b27651cd7a3

Solution:
Go to the start menu
Right-click on the IDL 7.0->IDL start menu and select Properties
Add the following to the target after the last "
-nl en

This should then launch the IDL workbench in English.

You can read about this if you go to the Help Index topic of command
line switches.

-Melissa

Friday, January 04, 2008

Different behavior of idate() in RHEL5 and Solaris 10.

The fortran function idate() return different array in RHEL5 and Solaris.
For JAN-04-2008, in RHEL5, it returns:
4 1 8
In Solaris 10 X86, it returns:
4 1 2008

So, problems may arise if you do not pad zeros ahead the number. To get to no-blank filename, you should use "I2.2,I2.2,I4.4" to get a formatted date string.