faraway  

2008年7月15日

摘要: 红色部分为关键的修改,安装以下配置,可以创建一个无需用户名和口令的SAMBA共享目录。此目录所有者属性应设置为nobody用户和其对应的组。 # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options ... 阅读全文
posted @ 2008-07-15 10:03 faraway 阅读(829) 评论(0) 推荐(0) 编辑
 
摘要: export LS_OPTIONS='--color=auto' alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias la='ls $LS_OPTIONS -lA' alias lt='ls $LS_OPTIONS -lt' alias grep='grep $LS_OPTIONS' alias vi='vim' 阅读全文
posted @ 2008-07-15 10:01 faraway 阅读(164) 评论(0) 推荐(0) 编辑
 
摘要: "============================================================================= " Description: MY vimrc with dozens of scripts, for Linux/Windows, GUI/Console " Originally from MetaCosm's ... 阅读全文
posted @ 2008-07-15 09:57 faraway 阅读(695) 评论(0) 推荐(0) 编辑
 
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/**//**//**//* * 将字符串中单词出现次序逆序。 * "123 45 6" --->> "6 45 123" * * 对字符串扫描两次,第一... 阅读全文
posted @ 2008-07-15 09:52 faraway 阅读(831) 评论(2) 推荐(0) 编辑
 
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->最巧妙的方法是把两只蚂蚁相遇之后看出互相“穿透”。下面是老老实实的计算方法,呵呵。 /**//* * 题目:有一根27厘米的细木杆,在第3厘米、7厘米、11厘米、17厘米、23厘米这... 阅读全文
posted @ 2008-07-15 09:43 faraway 阅读(394) 评论(0) 推荐(0) 编辑
 
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/**//* 解法一 将二进制数的各位相加,结果即为1的个数。从两位二进制开始计算。 55555555 h = 01010101010101010101010101... 阅读全文
posted @ 2008-07-15 09:37 faraway 阅读(414) 评论(0) 推荐(0) 编辑
 
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->#include #include typedef struct node_t { int data; struct node_t* ... 阅读全文
posted @ 2008-07-15 09:29 faraway 阅读(775) 评论(0) 推荐(0) 编辑