<?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>ubuntu,debian,redhat -linuxany.com</title>
	<atom:link href="http://www.linuxany.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Python 解析xml文件的2种方式</title>
		<link>http://www.linuxany.com/archives/1958.html</link>
		<comments>http://www.linuxany.com/archives/1958.html#comments</comments>
		<pubDate>Sun, 15 Jan 2012 09:41:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[ElementTree]]></category>
		<category><![CDATA[minidom]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1958</guid>
		<description><![CDATA[1.MiniDom方式解析xml 举例1：xml文件以data.xml为例，具体操作如下： &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;info&#62; &#160;&#160; &#60;intro&#62;用户信息&#60;/intro&#62; &#160; &#160; &#60;list&#160;id='001'&#62; &#160; &#160; &#160; &#160; &#60;head&#62;auto_userone&#60;/head&#62; &#160; &#160; &#160; &#160; &#60;name&#62;linuxany&#60;/name&#62; &#160; &#160; &#160; &#160; &#60;number&#62;12345678&#60;/number&#62; &#160; &#160; &#160; &#160; &#60;age&#62;20&#60;/age&#62; &#160; &#160; &#160; &#160; &#60;sex&#62;男&#60;/sex&#62; &#160; &#160; &#160; &#160; &#60;hobby&#62;上网&#60;/hobby&#62; &#160; &#160; &#60;/list&#62; &#160; &#160;&#160; &#60;list&#160;id='002'&#62; &#160; &#160; &#160; &#160; &#60;head&#62;auto_usertwo&#60;/head&#62; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1958.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python 执行js的2种解决方案</title>
		<link>http://www.linuxany.com/archives/1956.html</link>
		<comments>http://www.linuxany.com/archives/1956.html#comments</comments>
		<pubDate>Sun, 08 Jan 2012 08:23:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[PerlConnect]]></category>
		<category><![CDATA[SpiderMonkey]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1956</guid>
		<description><![CDATA[第1种方案 SpiderMonkey是Mozilla项目的一部分，是一个用C语言实现的JavaScript脚本引擎， 该引擎分析、编译和执行脚本，根据JS数据类型和对象的需要进行内存分配及释放操作；利用该引擎可以让你的应用程序具有解释JavaScript脚本的能力。 要想使用spidermonkey得先安装，方法如下： cd /home/linuxany.com/ wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz -O- &#124; tar xvz cd js/src make -f Makefile.ref mkdir -p /usr/include/smjs/ -v cp *.{h,tbl} /usr/include/smjs/ -v cd Linux_All_DBG.OBJ cp *.h /usr/include/smjs/ -v mkdir -p /usr/local/{bin,lib}/ -v cp js /usr/local/bin/ -v cp libjs.so /usr/local/lib/ -v 以上安装完成后，运行/usr/local/bin/js 就应该可以启动js解释运行引擎了. python使用举例： # coding:utf-8 import&#160;os import&#160;tempfile &#160; def&#160;call_js(js): &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1956.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 给服务器增添色彩</title>
		<link>http://www.linuxany.com/archives/1952.html</link>
		<comments>http://www.linuxany.com/archives/1952.html#comments</comments>
		<pubDate>Wed, 04 Jan 2012 05:08:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RedHat]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[Console]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1952</guid>
		<description><![CDATA[在/root/.bashrc下添加一行PS1=”\[\e[37;40m\][\[\e[32;40m\]\u\[\e[37;40m\]@\h \[\e[35;40m\]\W\[\e[0m\]]\\$ \[\e[33;40m\]“，然后退出重新login即可，效果图如下： 您还可能感兴趣的内容Linux console 的“資源回收筒”用 bootsplash 妝點 Linux Console]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1952.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python 模拟IE浏览器</title>
		<link>http://www.linuxany.com/archives/1947.html</link>
		<comments>http://www.linuxany.com/archives/1947.html#comments</comments>
		<pubDate>Sun, 25 Dec 2011 16:10:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[cPAMIE]]></category>
		<category><![CDATA[win32com]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1947</guid>
		<description><![CDATA[#天涯登陆地址&#160;&#160; tianyalogin = &#34;http://www.tianya.cn/&#34;&#160;&#160; tianya_user = &#34;xxxxx&#34;&#160;&#160; tianya_pw = &#34;xxxxx&#34;&#160;&#160; &#160; ie = win32com.client.Dispatch(&#34;InternetExplorer.Application&#34;)&#160;&#160; ie.Visible = 0&#160;&#160; #开始登陆&#160;&#160; ie.Navigate(tianyalogin)&#160;&#160; state = ie.ReadyState&#160;&#160; print&#160;&#34;打开登陆页面&#34; while 1:&#160;&#160; &#160; state = ie.ReadyState&#160;&#160; &#160; if&#160;state ==4:&#160;&#160; &#160; break&#160;&#160; &#160; sleep(1)&#160;&#160; &#160; print&#160;&#34;页面载入完毕，输入用户名密码&#34;&#160;&#160; state = None&#160;&#160; ie.Document.getElementById(&#34;text1&#34;).value=tianya_user&#160;&#160; ie.Document.getElementById(&#34;password1&#34;).value=tianya_pw&#160;&#160; ie.Document.getElementById(&#34;button1&#34;).click()&#160;&#160; &#160; while&#160;1:&#160;&#160; &#160; state = ie.ReadyState&#160;&#160; &#160; print&#160;state&#160;&#160; &#160; if&#160;state ==4 [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1947.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx concat模块减轻http请求连接数</title>
		<link>http://www.linuxany.com/archives/1937.html</link>
		<comments>http://www.linuxany.com/archives/1937.html#comments</comments>
		<pubDate>Tue, 20 Dec 2011 06:01:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[concat]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[request]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1937</guid>
		<description><![CDATA[nginx_concat_module是淘宝开发的基于Nginx减少HTTP请求数量的扩展模块,主要是用于合并减少前段用户Request的HTTP请求的数量。 taobao.com使用concat_module 进行css样式合并 安装： 可以从这里 checkout 最新的代码， svn checkout http://code.taobao.org/svn/nginx_concat_module/trunk/ $NGINX_CONCAT_MODULE 然后下载适合你自己版本的 nginx 源码包，在 ./configure 中增加参数 &#8211;add-module=$NGINX_CONCAT_MODULE cd /us/local/src wget http://nginx.org/download/nginx-1.0.10.tar.gz tar xzvf nginx-1.0.10.tar.gz cd nginx-1.0.10/ ./configure --user=www --group=www&#160; \ --prefix=/usr/local/nginx \ --with-http_stub_status_module&#160; \ --with-http_sub_module&#160; &#160; \ --with-http_flv_module&#160; &#160;\ --with-http_gzip_static_module&#160; &#160;\ --add-module=../nginx_concat_module/&#160; make &#38;&#38; make install 使用方法： location /temp/ { &#160;&#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1937.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS 清除页面中多余的样式</title>
		<link>http://www.linuxany.com/archives/1934.html</link>
		<comments>http://www.linuxany.com/archives/1934.html#comments</comments>
		<pubDate>Mon, 12 Dec 2011 08:05:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Html5/JS/CSS]]></category>
		<category><![CDATA[addons]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[stylesheet]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1934</guid>
		<description><![CDATA[一、Dust-Me selectors Dust-Me是一个很有用也很好用的Firefox插件，它可以分析到你的页面中调用的所有CSS文件并分析那些在页面中没有被用到。 支持本地和远程样式文件，包括使用&#60;link&#62;标签、&#60;?xml-stylesheet?&#62;处理指令、@import语句等方式引入的样式文件；(但是不支持页面中的&#60;style&#62;块和内联样式) 支持IE条件注释中引入的样式文件； 可以检查一个页面，也可以检查整个网站； 支持CSS1选择器、大部分CSS2和CSS3选择器； 理解通用的CSS hack，比如 “* html #fuck-ie”将会被认为是”html #fuck-ie”； 支持Firefox 3.5和Firefox 3.0，事实上得益于FF 3.5的js引擎的改进，FF 3.5中的性能比FF 3.0要高50%。 下载地址：https://addons.mozilla.org/en-us/firefox/addon/dust-me-selectors/ &#160; 二、Page Speed Page Speed是Google提供的一个前端性能分析工具，有些类似于YSlow，但是提供了一些比较个性且很有用的工具，比如Remove unused CSS： Page Speed和YSlow一样依赖Firebug。 下载地址：http://code.google.com/intl/zh-CN/speed/page-speed/download.html 您还可能感兴趣的内容Nginx 让浏览器告诉你负载均衡分到了哪台服务器完美实现垂直水平居中的 DIVjs和css文件混合方法兼容IE/Firefox的设为首页加入收藏(javascript)]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1934.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 数据库性能优化之SQL优化</title>
		<link>http://www.linuxany.com/archives/1926.html</link>
		<comments>http://www.linuxany.com/archives/1926.html#comments</comments>
		<pubDate>Sun, 04 Dec 2011 14:40:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[select]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1926</guid>
		<description><![CDATA[注：这篇文章是以 MySQL 为背景，很多内容同时适用于其他关系型数据库，需要有一些索引知识为基础 优化目标 减少 IO 次数 IO永远是数据库最容易瓶颈的地方，这是由数据库的职责所决定的，大部分数据库操作中超过90%的时间都是 IO 操作所占用的，减少 IO 次数是 SQL 优化中需要第一优先考虑，当然，也是收效最明显的优化手段。 降低 CPU 计算 除了 IO 瓶颈之外，SQL优化中需要考虑的就是 CPU 运算量的优化了。order by, group by,distinct … 都是消耗 CPU 的大户（这些操作基本上都是 CPU 处理内存中的数据比较运算）。当我们的 IO 优化做到一定阶段之后，降低 CPU 计算也就成为了我们 SQL 优化的重要目标 优化方法 改变 SQL 执行计划 明确了优化目标之后，我们需要确定达到我们目标的方法。对于 SQL 语句来说，达到上述2个目标的方法其实只有一个，那就是改变 SQL 的执行计划，让他尽量“少走弯路”，尽量通过各种“捷径”来找到我们需要的数据，以达到 “减少 IO 次数” 和 “降低 CPU 计算” 的目标 常见误区 [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1926.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

