2009-04-07

Valgrind for PowerPC on Debian

$ valgrind ./invalid_free
valgrind: Fatal error at startup: a function redirection
valgrind: which is mandatory for this platform-tool combination
valgrind: cannot be set up. Details of the redirection are:
valgrind:
valgrind: A must-be-redirected function
valgrind: whose name matches the pattern: strlen
valgrind: in an object with soname matching: ld.so.1
valgrind: was not found whilst processing
valgrind: symbols from the object with soname: ld.so.1
valgrind:
valgrind: Possible fix: install glibc's debuginfo package on this machine.
valgrind:
valgrind: Cannot continue -- exiting now. Sorry.
$ aptitude install libc-dbg

2009-02-14

SSH Escape Char

man ssh and search Escape Char

2009-01-16

git-cvsimport

# apt-get install cvsps git-cvs

2009-01-15

Jabber.no out of service?

周一开始 gtalk 不能登录 msn 了, 这几天也不行, 难道 jabber.no 报废了?

2009-01-14

Mac version of Picasa is only for Intel-based machines?

很兴奋 google 终于推出了 mac 版的 picasa, 刚下载了一个, 结果不能运行, 上网一查原来只支持 intel 版的 mac, 可怜俺的 ibook g4, 伤心 :(

[Tiger] port install git-core +svn

To use git-svn, run sudo port install git-core +svn.

CPAN Reinitialization

cpan> o conf init

2008-12-16

How to Change the Ephemeral Port Range

Linux allows you to view and change the ephemeral port range by simply using the file /proc/sys/net/ipv4/ip_local_port_range. For example, this shows the default configuration on a kernel 2.2 system:

$ cat /proc/sys/net/ipv4/ip_local_port_range
1024 4999

To change this to the preferred range, you could do (as superuser):

# echo "49152 65535" > /proc/sys/net/ipv4/ip_local_port_range 

2008-12-15

Thunderbird Add-on

  • Buttons!
  • Google Contacts
  • MinimizeToTray
  • Send Later
  • Message Filter Import/Export

2008-10-28

Install Ubuntu 8.04 from Hard Disk

  • Make an ISO file ubuntu804.iso from Ubuntu's LiveCD (8.04 desktop), put the ISO file in D:/ubuntu804.iso
  • Mount the ISO file or the LiveCD, copy two files CDROM:/casper/{initrd.gz,vmlinuz} to Windows drive D:/
  • Download grub4dos, extract its files to C:/
  • Edit C:/boot.ini, add one new line: C:\grldr="GRUB4DOS"
  • Edit C:/menu.lst
    title Find and Install Ubuntu
    find --set-root /ubuntu804.iso
    kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu804.iso
    initrd /initrd.gz
  • Reboot Windows XP
  • Select GRUB4DOS from the boot menu
  • ... ...
  • Will boot to the same screen as if you're directly booting from the LiveCD.

2008-10-14

Less' history file

偶然发现看 man page 的时候 search 过的字符串是有 history 的, 猜想是 less 的功能, 查了一下根目录下的文件, 发现有一个 .lesshst, 查 less 的 manual, 里面有说到 .lesshst:

. . . Name of the history file used to remember search commands and shell commands between invocations of less. . .

2008-10-13

Compile GNU screen from source

  • $ git clone git://git.savannah.gnu.org/screen.git
  • $ cd screen/src
  • $ aclocal --force
  • $ libtoolize --copy --force
  • $ autoconf --force
  • $ autoheader --force
  • $ automake --add-missing --copy --force-missing
  • $ ./configure --prefix=/usr/local/screen-dev --enable-colors256
  • $ make && make install
N.B.: Run mktar.pl to make traditional screen-X.X.X.tar.gz

See full screen man pages on Fedora Core 3

ubuntu 6.06 上看 man pages 的时候能全屏显示, 但 Fedora 3 上却不能, 研究一番, 可以自己编译 man-db 来解决:

编译 man-db 可能需要依赖 gdbm-devel 或者 db4-devel (ubuntu 上对应 libgdbm-dev 或者 libdb-dev).

2008-08-29

Expect 5.43 takes quite long when exiting

Expect 5.43 的 script 结束时总是很慢, 用 expect -d 发现最后有条 message:

write() failed to write anything - will sleep(1) and retry...
查了下 code, 在 exp_chan.c : ExpOutputProc() 中有个 sleep(1), 把它换成 usleep(10 * 1000) 就好了.

2008-08-01

Yahoo + Del.icio.us

原来 Del.icio.us 是 Yahoo 的了, 而且改名为 Delicious.com 了.

2008-07-31

Hotspot Shield

Public networks (both wired and wireless) are great. After all, what would life be without connecting while at airports, hotels and coffee shops? However, the danger to your personal data exists even if you connect to a fee based open network. Your passwords, credit card numbers, and any data you send can be seen and associated with you personally. Standard antivirus software won't protect you as this threat is on the network, not your laptop or iPhone.

That's why AnchorFree is pleased to offer Hotspot Shield. Our application keeps your Internet connection secure and anonymous on public networks.

2008-07-09

Project Management

  • ITIL - Information Technology Infrostructure Library
  • PRINCE2 - Projects in Controlled Environments

2008-07-08

Google's Protocol Buffers

Interactive Tclsh: auto_noexec

If set to any value, then unknown will not attempt to auto-exec any commands.

SEE ALSO: auto_execok(n)

2008-07-02

DNS Servers