<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>失意盎然</title>
	<atom:link href="http://casual.blog.ubuntu.org.cn/feed/" rel="self" type="application/rss+xml" />
	<link>http://casual.blog.ubuntu.org.cn</link>
	<description>Seize the day!——一苇</description>
	<lastBuildDate>Thu, 26 Jun 2008 14:51:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Emacs的一些命令</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/06/26/emacs%e7%9a%84%e4%b8%80%e4%ba%9b%e5%91%bd%e4%bb%a4/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/06/26/emacs%e7%9a%84%e4%b8%80%e4%ba%9b%e5%91%bd%e4%bb%a4/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 14:51:24 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/06/26/emacs%e7%9a%84%e4%b8%80%e4%ba%9b%e5%91%bd%e4%bb%a4/</guid>
		<description><![CDATA[;;C意味着Ctrl键   M意味着Meta键或Alt键 SPC表示空格键 RET表示回车键Enter DEL表示退格键BackSpace `就是TAB键上方，数字键1旁的键
;;TAB表示TAB键，tab表示输入，即大写字母组合表示的是按键，而小写字符串是输入的字符串（输入以RET结束）
&#8216;C-x C-f 文件名&#8217; —打开文件
&#8216;C-x C-s&#8217; —保存文件
&#8216;C-x C-c&#8217; —退出Emacs
&#8216;C-z&#8217;  —从Emacs切换到别的应用程序
&#8216;C-x 1&#8242; —仅保留当前窗格
&#8216;C-x 2&#8242; —水平拆分当前窗格。
&#8216;C-x o&#8217; —将光标移到下方窗格，圆圈是字母不是数字。表示other
&#8216;C-x k&#8217; —关闭某个buffer，即缓存。
&#8216;ESC ` f c&#8217; —依次按这四个键可以关闭当前buffer
&#8216;ESC x calendar&#8217; —调用日历表
&#8216;M-x calendar&#8217; —调用日历表
&#8216;M-x revert-buffer&#8217; —重新载入buffer
&#8216;M-x shell&#8217; —调用外壳命令
&#8216;M-x cd&#8217; —转换目录
&#8216;C-x d&#8217; —编辑目录
&#8216;M-x info&#8217; —帮助信息
&#8216;M-x TAB TAB&#8217; —获取可执行的命令
&#8216;M-x gdb&#8217; —
&#8216;M-SPC&#8217; —把游标（即光标）附近的空格缩成一个。
&#8216;M-;&#8217; —产生右缩进的注释
&#8216;M-x c-mode&#8217; —启动C模式
&#8216;M-x c-set-style&#8217; —指定C模式的缩进格式，格式有：Linux、Python、BSD、Java、Stroustrup、GNU、cc-mode等，而按Tab键可以格式缩进当前行
&#8216;M-x c-toggle-auto-stat&#8217; —开启自动模式
&#8216;C-c C-a&#8217; —开启/关闭自动模式
&#8216;C-c C-e&#8217; —调用宏扩展
&#8216;M-! etags [...]]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/06/26/emacs%e7%9a%84%e4%b8%80%e4%ba%9b%e5%91%bd%e4%bb%a4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C语言标准函数库</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/06/11/c%e8%af%ad%e8%a8%80%e6%a0%87%e5%87%86%e5%87%bd%e6%95%b0%e5%ba%93/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/06/11/c%e8%af%ad%e8%a8%80%e6%a0%87%e5%87%86%e5%87%bd%e6%95%b0%e5%ba%93/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 12:19:13 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[推荐]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/06/11/c%e8%af%ad%e8%a8%80%e6%a0%87%e5%87%86%e5%87%bd%e6%95%b0%e5%ba%93/</guid>
		<description><![CDATA[&#60;assert.h&#62;
void assert(int expression);
Macro used for internal error detection. (Ignored if NDEBUG is defined where &#60;assert.h&#62; is included.) If expression equals zero, message printed on stderr and abort called to terminate execution. Source filename and line number in message are from preprocessor macros __FILE__ and __LINE__.
&#60;ctype.h&#62;
int isalnum(int c);
isalpha(c) or isdigit(c)
int isalpha(int c);
isupper(c) or islower(c)
int iscntrl(int c);
is [...]]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/06/11/c%e8%af%ad%e8%a8%80%e6%a0%87%e5%87%86%e5%87%bd%e6%95%b0%e5%ba%93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>c_backup</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/06/10/c_backup/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/06/10/c_backup/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 09:14:29 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/06/10/c_backup/</guid>
		<description><![CDATA[#include 
struct student {
	int num;
	char name[10];
	char score[3][10];
}stu[5];
int main(){
	void input(struct student stu[5]);
	void output(struct student stu[5]);
	input(stu);
	output(stu);
	return 0;
}
void input (struct student stu[5]){
	int i = 0;
	struct student (*p);
	p = stu;
	printf(&#8221;input num,name,score1,score2,score3:\n&#8221;);
	while(i num,(p)-&#62;name,(p)-&#62;score[0],
			(p)-&#62;score[1],(p)-&#62;score[2]);
		i++;
		p++;
	}
}
void output (struct student stu[5]){
	int i=0;
	struct student (*p);
	p = stu;
	while( inum,(p)-&#62;name,(p)-&#62;score[0],
			(p)-&#62;score[1],(p)-&#62;score[2]);
		i++;
		p++;
	}
}
/*
#include h&#62;
struct student {
	int num;
	char name[10];
	char score[3][10];
}stu[5];
int main(){
	void input(struct student stu[5]);
	void output(struct student stu[5]);
	input(stu);
	output(stu);
	return 0;
}
void input (struct student [...]]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/06/10/c_backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sound on Zepto Znote 3215W almost there</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/05/29/sound-on-zepto-znote-3215w-almost-there/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/05/29/sound-on-zepto-znote-3215w-almost-there/#comments</comments>
		<pubDate>Thu, 29 May 2008 03:49:39 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/05/29/sound-on-zepto-znote-3215w-almost-there/</guid>
		<description><![CDATA[Sound on Zepto Znote 3215W almost there
Thursday, January 31st, 2008
Today a Linux 2.6.24 kernel appeared in Debian unstable, so I immediately gave it a try, to see if it did anything to the sound issues on my Zepto Znote 3214W laptop.
First thing, the 2.6.24 kernel has ALSA 1.0.15 which is needed. The Realtek ALC268 doesn’t [...]]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/05/29/sound-on-zepto-znote-3215w-almost-there/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install driver for Realtek ALC268 (HDA) for Acer Aspire 4710 laptop</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/05/29/how-to-install-driver-for-realtek-alc268-hda-for-acer-aspire-4710-laptop/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/05/29/how-to-install-driver-for-realtek-alc268-hda-for-acer-aspire-4710-laptop/#comments</comments>
		<pubDate>Thu, 29 May 2008 03:28:53 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/05/29/how-to-install-driver-for-realtek-alc268-hda-for-acer-aspire-4710-laptop/</guid>
		<description><![CDATA[ 				 				How to install driver for Realtek ALC268 (HDA) for Acer Aspire 4710 laptop
 			 		   		 		
Hi
I have an Acer Aspire 4710 laptop; headphones were not working on Ubuntu 7.04 feisty. I installed the driver for Realtek ALC268 HDA and now head phones work fine.
Make sure that your system is updated [...]]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/05/29/how-to-install-driver-for-realtek-alc268-hda-for-acer-aspire-4710-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Realtek ALC268集成声卡驱动问题在ubuntu下的解决方案</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/05/29/realtek-alc268%e9%9b%86%e6%88%90%e5%a3%b0%e5%8d%a1%e9%a9%b1%e5%8a%a8%e9%97%ae%e9%a2%98%e5%9c%a8ubuntu%e4%b8%8b%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/05/29/realtek-alc268%e9%9b%86%e6%88%90%e5%a3%b0%e5%8d%a1%e9%a9%b1%e5%8a%a8%e9%97%ae%e9%a2%98%e5%9c%a8ubuntu%e4%b8%8b%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/#comments</comments>
		<pubDate>Thu, 29 May 2008 02:40:48 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/05/29/realtek-alc268%e9%9b%86%e6%88%90%e5%a3%b0%e5%8d%a1%e9%a9%b1%e5%8a%a8%e9%97%ae%e9%a2%98%e5%9c%a8ubuntu%e4%b8%8b%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/</guid>
		<description><![CDATA[Realtek ALC268集成声卡驱动问题在ubuntu下的解决方案
Since a lot people are trying and struggling to get their Realtek ALC268 codec sound card work properly in Ubuntu 7.10 Gutsy, I think my experience will be helpful. My computer is an Acer Aspire 5315 laptop, it comes with an ALC268 codec HDA sound card. Lately I&#8217;ve been messed around with this sound [...]]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/05/29/realtek-alc268%e9%9b%86%e6%88%90%e5%a3%b0%e5%8d%a1%e9%a9%b1%e5%8a%a8%e9%97%ae%e9%a2%98%e5%9c%a8ubuntu%e4%b8%8b%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网上找到的配置apache的办法</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/05/29/%e7%bd%91%e4%b8%8a%e6%89%be%e5%88%b0%e7%9a%84%e9%85%8d%e7%bd%aeapache%e7%9a%84%e5%8a%9e%e6%b3%95/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/05/29/%e7%bd%91%e4%b8%8a%e6%89%be%e5%88%b0%e7%9a%84%e9%85%8d%e7%bd%aeapache%e7%9a%84%e5%8a%9e%e6%b3%95/#comments</comments>
		<pubDate>Thu, 29 May 2008 02:26:49 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/05/29/%e7%bd%91%e4%b8%8a%e6%89%be%e5%88%b0%e7%9a%84%e9%85%8d%e7%bd%aeapache%e7%9a%84%e5%8a%9e%e6%b3%95/</guid>
		<description><![CDATA[1、安装 Apache2+PHP5+MySQL
sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql phpmyadmin
在下载来自动安装配置的时候 会出现一个框子让你输入密码哦！！记住是密码
2、启用 mod_rewrite 模块
sudo a2enmod rewrite
3、配置 网站的目录了
sudo gedit /etc/apache2/sites-available/default
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;默认情况下你会看到
NameVirtualHost *
&#60;VirtualHost *&#62;
    ServerAdmin webmaster@localhost
   
    DocumentRoot /var/www/
    &#60;Directory /&#62;
        Options FollowSymLinks
        AllowOverride None
    &#60;/Directory&#62;
    &#60;Directory /var/www/&#62;
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;我们把它改到别处去~~也就是自定义位置
NameVirtualHost *
&#60;VirtualHost *&#62;
    ServerAdmin webmaster@localhost
   
    DocumentRoot /home/felix/www/
    &#60;Directory /&#62;
        Options FollowSymLinks
        AllowOverride None
    &#60;/Directory&#62;
    &#60;Directory /home/felix/www/&#62;
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;看到了把？这个就是放在了home下你的用户名的www文件夹里面
4、重启服务器
sudo /etc/init.d/apache2 restart
5 、检查是否成功
到你的目录下新建一个index.php文件
在里面输入&#60;?=phpinfo()?&#62;
然后打开浏览器输入localhost看看是否phpinfo的信息出来了
如果出来了表示你成功拉 恭喜你哈~
对啦不要忘记了phpmyadmin哦
在浏览器里面输入localhost/phpmyadmin哦
就能控制mysql啦~~~
 本文来自: www.jackfeng.cn http://www.jackfeng.cn/show-589-1.html
]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/05/29/%e7%bd%91%e4%b8%8a%e6%89%be%e5%88%b0%e7%9a%84%e9%85%8d%e7%bd%aeapache%e7%9a%84%e5%8a%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>原来是GCC来编译C文件啊</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/05/14/%e5%8e%9f%e6%9d%a5%e6%98%afgcc%e6%9d%a5%e7%bc%96%e8%af%91c%e6%96%87%e4%bb%b6%e5%95%8a/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/05/14/%e5%8e%9f%e6%9d%a5%e6%98%afgcc%e6%9d%a5%e7%bc%96%e8%af%91c%e6%96%87%e4%bb%b6%e5%95%8a/#comments</comments>
		<pubDate>Wed, 14 May 2008 06:06:40 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/05/14/%e5%8e%9f%e6%9d%a5%e6%98%afgcc%e6%9d%a5%e7%bc%96%e8%af%91c%e6%96%87%e4%bb%b6%e5%95%8a/</guid>
		<description><![CDATA[今天写了个HELLOWORLD  有加&#60;stdio.h&#62;  有错误
后来去掉  还是有错误：
helloworld.c: 在函数‘main’中：
helloworld.c:3: 警告： 内建函数 ‘printf’ 不兼容的隐式声明
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld 返回 1
]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/05/14/%e5%8e%9f%e6%9d%a5%e6%98%afgcc%e6%9d%a5%e7%bc%96%e8%af%91c%e6%96%87%e4%bb%b6%e5%95%8a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>今天学习了pico。</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/05/14/%e4%bb%8a%e5%a4%a9%e5%ad%a6%e4%b9%a0%e4%ba%86pico%e3%80%82/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/05/14/%e4%bb%8a%e5%a4%a9%e5%ad%a6%e4%b9%a0%e4%ba%86pico%e3%80%82/#comments</comments>
		<pubDate>Wed, 14 May 2008 03:32:03 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/05/14/%e4%bb%8a%e5%a4%a9%e5%ad%a6%e4%b9%a0%e4%ba%86pico%e3%80%82/</guid>
		<description><![CDATA[进入终端：pico就进入到pico编辑文本的界面了。
键入一些内容：Hello world! This is my first file in ubuntu.It is great fun.Oh , I like ubuntu!
Ctrl+O保存：键入名称first.txt  然后enter就保存了
Ctrl+X离开。
然后ls一下可以看到first.txt在你的文档里面。
more first.txt可以看到文件里面的内容。
pico first.txt可以进入pico继续编辑文件。
]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/05/14/%e4%bb%8a%e5%a4%a9%e5%ad%a6%e4%b9%a0%e4%ba%86pico%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux锐捷2.56认证客户端XMU-Ruijie&#8211;用python写的</title>
		<link>http://casual.blog.ubuntu.org.cn/2008/05/07/linux%e9%94%90%e6%8d%b7256%e8%ae%a4%e8%af%81%e5%ae%a2%e6%88%b7%e7%ab%afxmu-ruijie-%e7%94%a8python%e5%86%99%e7%9a%84/</link>
		<comments>http://casual.blog.ubuntu.org.cn/2008/05/07/linux%e9%94%90%e6%8d%b7256%e8%ae%a4%e8%af%81%e5%ae%a2%e6%88%b7%e7%ab%afxmu-ruijie-%e7%94%a8python%e5%86%99%e7%9a%84/#comments</comments>
		<pubDate>Wed, 07 May 2008 06:37:27 +0000</pubDate>
		<dc:creator>失意盎然</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://casual.blog.ubuntu.org.cn/2008/05/07/linux%e9%94%90%e6%8d%b7256%e8%ae%a4%e8%af%81%e5%ae%a2%e6%88%b7%e7%ab%afxmu-ruijie-%e7%94%a8python%e5%86%99%e7%9a%84/</guid>
		<description><![CDATA[Linux锐捷2.56认证客户端XMU-Ruijie&#8211;用python写的
               By
acevery
 on August 20, 2007  9:16 AM           &#124; Permalink              &#124; Comments (26)
用了一周多的时间，完成了
首先说一下XMU-Ruijie的意思。XMU是Xiaman University即厦门大学，偶的母校。因为这个客户端是为解决厦门大学众多Linux用户上校园网难的问题写的。Ruijie是锐捷的拼音。
接下来说说过程把。开始几天把锐捷2.56的算法学着用pyhon的类重写，中间发现在线包的算法错了。花了一个晚上研究以前抓的包，终于修正了算法。接下来的几天又陆续学了固定时间发包的实现，daemon方式，配置文件读取，昨晚继续奋战，终于把程序最后调试好了。
这个客户端最大的优点是什么？我的初衷是用python写，从而避免xsupplicant的编译问题。同时，因为这个客户端仅仅是用来进行锐捷认 证的，所以不包含其他功能的代码，体积比xsupplicant小了很多。与此同时，配置也简化到用户名，密码，网络界面，日志文件，pid文件（后两者 一般不需要修改）。同时锐捷的协议部分是用类写的，也就是说如果别人要改成其它MD5协议只要重写一个协议的类，嵌进去即可。
相比xrgsu，不会出现多网卡检测的错误，因为XMU-Ruijie是不检测多网卡的认证速度相当快，我在宿舍中不到1秒就认证好了，DHCP大概2秒。
功能上，只做一件事，完成认证。因为DHCP客户端功能我写的肯定没有dhcpcd和dhclient好了Gentoo用户直接下载ebuild安装。同时我写了一个bash的start-stop脚本（DHCP的）和bash的安装脚本，非gentoo的用户也方便很多了。这两个bash脚本都在压缩包里了。
Gentoo用户
安装
Gentoo的用户先下载好portage文件，并放到自己的portage-overlay中：



代码： 下载并解压portage文件，如portage-overlay为/usr/local/portage [...]]]></description>
		<wfw:commentRss>http://casual.blog.ubuntu.org.cn/2008/05/07/linux%e9%94%90%e6%8d%b7256%e8%ae%a4%e8%af%81%e5%ae%a2%e6%88%b7%e7%ab%afxmu-ruijie-%e7%94%a8python%e5%86%99%e7%9a%84/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
