Monday, June 30, 2008

bash.exe stays when quit XWin

In Cygwin, it seems that quit the XWin by right click its tray icon and select "Exit" doesn't affect the running bash.exe processes. Thus, It's better to exit all terminals before quit XWin.

Saturday, June 28, 2008

f77 program runs really fast.

It took IDL tens of minutes to completed. However, the work was done in several seconds by native f77 program. It's really amazing!

There are totally 857703 lines and 4 columns data. The task is to sort the first column, find those unique values and do summations of each unique value of the first column. The output file turns out to have 343352 lines. It involves sorting, finding unique values, searching and summation operations. I cann't believe f77 program can finished it so fast.

Why f77 of Sun Studio 12 cannot find this syntax error?

g77 in Cygwin can find the error:

psdsios.f: In program `psdsios':
psdsios.f:90:
integer*4 i,j,k,l,m,n
1
psdsios.f:119: (continued):
INTEGER*4 jmax,n,nout,np,nmax
2
Invalid declaration of or reference to symbol `n' at (2) [initially seen at (1)]
In file included from psdsios.f:81:


However, this program compiles well in Solaris using f77 of Sun Studio 12.

Friday, June 27, 2008

Cygwin sshd problem


Suddenly, the sshd process of Cygwin took up nearly 100% one of my core CPU. The fan of my notebook ran so fast.

Tuesday, June 17, 2008

ENVI 4.5 is out.

ENVI 4.5 is based upon the latest IDL 7.0.


It's a great news for geophysicists.

Sunday, June 15, 2008

http://code.google.com/p/iphone-dev/wiki/Building

http://code.google.com/p/iphone-dev/wiki/Building

gcc version of iphone-dev@cygwin

$ arm-apple-darwin-gcc -v
Using built-in specs.
Target: arm-apple-darwin
Configured with: ../llvm-gcc-4.0-iphone/configure --enable-llvm=/tmp/llvm-svn-42
498r/.build --enable-languages=c,c++,objc,obj-c++ --target=arm-apple-darwin --en
able-sjlj-exceptions --with-as=/usr/local/bin/arm-apple-darwin-as --with-ld=/usr
/local/bin/arm-apple-darwin-ld --with-heavenly=/usr/local/arm-apple-darwin/files
ystem
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5449)(LLVM build 2.0-svn-iphone-de
v-0.3-svn)

safari cannot play .mp3 files

It just display the binary content of MP3 files. Why?

Friday, June 13, 2008

winscp is a great tool.

It can not only upload/download files, but also change file properties and modifying files. Without it, I cannot make my iTouch work.

Ipod touch, from 1.1.1 to 1.1.4 and jailbreak.

Old configuration: ipod touch 8G + 1.1.1 with jailbreak crack. It works like a charm. However, the system became unconformable with time goes by. Thus, I decided to upgrade.

1. After downloaded the 1.1.4 firmware, open iTunes, press Shift and clike the restore button, select the file and restore the iTouch. Now, everything old are ruined. You will be happy if you did a little backup work before restore iTouch.

2. Download Ziphone 3.0 to jailbreak the iTouch. Close iTunes, kill ipod...exe, itune..help.exe processes with task manager of Windows Xp. Then run Ziphone 3 GUI. Click advanced selection options. Be sure to uncheck the activation and ... checkboxes if you are not using iPhone. Otherwise, the cracked system is unstable. Now, click "Jailbreak [include ipod]" and wait for about one minute.

3. The iTouch is now ready to install packages. Search for wireless network. You can login the iTouch by using ssh of Cygwin/WinXP. The password for root is "alpine". DO NOT change the password. Or, you will get continuous of crash of Summerboard and it looks like a piece of brick.

The left steps is adding some sources, install softwares for your application. But, there are still a lot to go. And the mixed-usage of mobile and root for default user will make you programs stopping working. Googling for more details.

Safari cannot display .f files correctly [lighttpd].

There is no line break, and all lines are show in one line of safari browser.
After look in the /usr/local/etc/lighttpd.conf file, I figure out that I should set ".f" file type as text/plain, just as the ".c" files.

Thus, insert a line below the ".c" file type:
".c" => "text/plain",
".f" => "text/plain",

It works!

top of iTouch working (from ssh/cygwin)

top command cannot work

$ ssh root@192.168.11.3
The authenticity of host '192.168.11.3 (192.168.11.3)' can't be established.
RSA key fingerprint is 0a:05:6b:4b:c6:93:00:eb:1c:c6:76:f0:b6:7d:25:90.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.11.3' (RSA) to the list of known hosts.
root@192.168.11.3's password:
Last login: Fri Jun 13 21:17:07 2008 from 192.168.11.23
# top
Error opening terminal: xterm.

ls cannot work in iTouch

$ ssh root@192.168.11.3
root@192.168.11.3's password:
Last login: Fri Jun 13 15:03:27 2008 from 192.168.11.23
# ls
dyld: Library not loaded: /usr/local/arm-apple-darwin/lib/libgcc_s.1.dylib
Referenced from: /bin/ls
Reason: image not found
zsh: trace trap ls
#

Thursday, June 12, 2008

How could this happen [IDL Map_Set and Oplot]?


If the longitude span is larger than 180 degrees, then the plot perform weirdly. How could this happen?

Wednesday, June 11, 2008

《南方窗》里的一句话

http://www.nfcmag.com/view-837.html

国家的分内之责是尽全力保护这样的百姓不再饱受自然与非自然的肆虐,而不是踩在逝者刚刚离去的土地上,炫耀这个民族的善良、伟大和团结。

终于有人说出了老百姓的心声。

Monday, June 09, 2008

为什么这次地震志愿者那么多?

2008年5月中旬的龙门山的8级强震无疑是一场灾难。在巨灾面前,我相信大多数部门和组织已经竭尽全力。但无疑,对政府救灾的效力的怀疑应该也是大批志愿者第一时间到达灾区的原因之一。政府没有面临这种灾难的经验,没有足够的救援人员和组织。在这次大震中表现出的众多不足,接下来会不会被弥补了?现在我们看到的依旧是一篇篇讴歌、一个个感人事迹。。。CCTV,我们早就漠然了。

我们是否该反思地震危险性评价的标准。

龙门山这次强震实在出乎搞地震的人的意料。四川地震局zhou作为合作者的文章[Alexander et al., 2007, 2006TC001987]针对龙门山断裂潜在的危险提出了警告,但很难据此作出一次中期预报。龙门山断裂被cea遗忘,究其原因,就是因为这个断裂带没有表现出“活动性”,而不“active”的断裂没有纳入考虑也就不足为奇了。把有限的GPS架在鲜水河等有明显滑动的断裂带上也是目前一种较为合理的作法。否则GPS的说服力在哪里?现在我们要问的是GPS没有测出明显滑动的断裂,真的就不会发生强震吗?其他手段的结果是什么?活动性小从另一方面说是不是在积蓄能量整大的?对于强震前兆,到底存不存在某一派被挤压的事情?

Build gv on Solaris 10 X86.

There is no gv release for solaris 10 x86. However, there is a source version of gv for Solaris Sparc version. OK. Download it and save it to a directory, say ~/tmp.

1. Unpack the source.
gtar zxvf gv-3.5.8.tar.gz
This will create a directory ~/tmp/gv-3.5.8

2. Edit the ~/tmp/gv-3.5.8/config.unix
Modify the path for Xaw3d.
XAW3D_HEADERS = -I/usr/local/include
EXTRA_LDOPTIONS = -L/usr/local/lib -R/usr/local/lib

3. Following the INSTALL.Unix steps.

That's all.
Note, when not specify the -R option, gv cannot find the shared Xaw3d library.