2013年8月4日

printf left justify

摘要: http://www.lemoda.net/c/printf-left-justify/index.htmlThis example program demonstrates how to left-justify output in printf.#include int main (){ int x = 345; const char * y = "monkeys"; /* Demonstrate with numbers. */ printf (" is not justified.\n", x); printf (" is right- 阅读全文

posted @ 2013-08-04 13:37 Evan Yin 阅读(299) 评论(0) 推荐(0) 编辑

2013年8月3日

ubuntu install rpm package

摘要: Using command 'alien' instead of 'rpm'.sudo apt-get install alienalien -i tst.rpm'man alien' for more info. 阅读全文

posted @ 2013-08-03 15:40 Evan Yin 阅读(146) 评论(0) 推荐(0) 编辑

ubuntu set host name

摘要: http://wiki.joyent.com/wiki/display/jpc2/Setting+the+Host+Name+on+a+Linux+VMSet the host name in the /etc/hostname file:?echo "ubuntu.example.com" > /etc/hostname Using any text editor, edit the file /etc/hosts so that the hostname points to the localhost address:?127.0.0.1 localhost 12 阅读全文

posted @ 2013-08-03 07:28 Evan Yin 阅读(631) 评论(0) 推荐(0) 编辑

2013年8月2日

ubuntu 乱码 改为英文

摘要: http://878045653.blog.51cto.com/2693110/735654解决方法:改成全英文环境来解决 方格 乱码 :用vim配置语言环境变量 vim / etc/environment改成: LANG =”en_US.UTF-8 ″ LANGUAGE =”en_US:en” sudo vim /var/lib/locales/supported.d/local改成: en_US.UTF-8 UTF-8保存后,执行命令:sudo locale-gensudo vim /etc/default/locale修改为:LANG =”en_US.UTF-8 ″LANGUAGE =” 阅读全文

posted @ 2013-08-02 22:10 Evan Yin 阅读(582) 评论(0) 推荐(0) 编辑

2013年8月1日

cpan 配置

摘要: $ cpanCpan>o conf init最主要的是配置镜像地址,试了下,还是香港的靠谱……cpan中镜像地址列表:http://www.cpan.org/SITES.html香港的镜像:Hong Kong SAR ftp://ftp.cuhk.edu.hk/pub/packages/perl/CPAN/ftp://mirror.communilink.net/CPAN/http://cpan.communilink.net/http://ftp.cuhk.edu.hk/pub/packages/perl/CPAN/http://mirrors.devlib.org/cpan/ 阅读全文

posted @ 2013-08-01 09:24 Evan Yin 阅读(551) 评论(0) 推荐(0) 编辑

2013年7月30日

vmware shared holder 虚拟机设置共享目录

摘要: 1, 安装 vm-toolshttp://askubuntu.com/questions/29284/how-do-i-mount-shared-folders-win7-host-in-ubuntu-guest-using-vmwaretools-v2, sudo apt-getinstallopen-vm-dkmshttp://bbs.csdn.net/topics/3502580103, not valid generic header pathhttp://forums.bodhilinux.com/index.php?/topic/7700-where-are-the-generic 阅读全文

posted @ 2013-07-30 22:24 Evan Yin 阅读(173) 评论(0) 推荐(0) 编辑

2013年5月29日

indent format codes

摘要: indent -kr -l80 -ncs -sob -ss -c1 -cp1 -i4 -nut -bl -bli0 -nce -bad -npslindent配置文件如上参数可写入用户目录下的文件:".indent.pro",作为运行indent的确省参数。reference:http://www.worldhello.net/doc/program_rules/indent.htmlor "man indent" 阅读全文

posted @ 2013-05-29 16:54 Evan Yin 阅读(131) 评论(0) 推荐(0) 编辑

2013年1月4日

格式化输入输出 小结

摘要: snprintf(s, 100, "%.*S", 3, "abcd"); s的值为abc %.*s 表示有两项, 第一项指定了长度,第二项则是%s的内容,所以取前三位 阅读全文

posted @ 2013-01-04 15:35 Evan Yin 阅读(164) 评论(0) 推荐(0) 编辑

2012年9月10日

linux 网络的一些书籍

摘要: http://blog.csdn.net/21aspnet/article/details/6694485深入理解linux网络技术内幕 阅读全文

posted @ 2012-09-10 15:28 Evan Yin 阅读(151) 评论(0) 推荐(0) 编辑

2012年9月6日

putty connection manager 一些问题的整理

摘要: 不能在窗口内打开链接,打开链接时都会新打开一个窗口解决:tools->option->plugins->putty->enable additional timing for putty cature(ms): 输入250. 点OK提示:Object reference not set to an instance of an object解决:tools->option->general->show tray icon->hide when minimized 重启参考:http://www.josefpanerio.com/blog/?p=6 阅读全文

posted @ 2012-09-06 09:16 Evan Yin 阅读(1560) 评论(0) 推荐(0) 编辑

导航