September 30, 2008 / Kyle Sun / 0 Comments
ref: Things to Avoid in C/C++
- gets(): no internal checks means a potential overflow, use fgets() instead
- fflush(stdin): effect undefined for input stream
- feof() to exit a loop
- system(“pause”): no need for this expensive function, use getchar() instead
- scanf(): a. leaves stuff in the input buffer to mess up your next input. b. quite a big function. c. for string, same problem as gets(). d. for char, use getchar() instead.
- void main()
September 27, 2008 / Kyle Sun / 0 Comments
B: Immediately reboot the system, without unmounting partitions or syncing
R: Switch the keyboard from raw mode, the mode used by programs such as X11 and svgalib, to XLATE mode
S: Sync all mounted filesystems
September 26, 2008 / Kyle Sun / 0 Comments
while e2fsprogs in Gentoo 2008.0 livecd create ext3 partition with large 256 nodes. Bugs could be found here and explanation here
September 25, 2008 / Kyle Sun / 0 Comments
that is cuz too little time is given by google map to FIX a satellite using GPSViewer
September 25, 2008 / Kyle Sun / 0 Comments
Three Steps:
Install SynCE:
http://www.synce.org/moin/SynceWithUbuntu
Setup SynCE:
http://www.synce.org/moin/SynceSetup/SyncEngine
Setup OpenSync:
http://www.synce.org/moin/SynceSetup/OpenSync
一些安装笔记:
1. python-opensync要降级,默认是3.6,会出现segment fault
2. 每次要先开 synce-sync-engine, 再用synce-create-partnership “sKh Ubuntu” “Contacts,Calendar,Tasks”新建一个通话(不明原因),再用msynctool –sync synce-sync即可同步
3. 可以同步Contacts,Calendar,Tasks,Files