<?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>程序如此灵动！ &#187; 苏南</title>
	<atom:link href="http://newsn.net/author/admin/feed" rel="self" type="application/rss+xml" />
	<link>http://newsn.net</link>
	<description>苏南的网络日记本本  O(∩_∩)O  哈哈~</description>
	<lastBuildDate>Mon, 13 Jul 2009 02:59:32 +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>Fatal error: Allowed memory size of 8388608 bytes exhausted</title>
		<link>http://newsn.net/20090701/730.html</link>
		<comments>http://newsn.net/20090701/730.html#comments</comments>
		<pubDate>Wed, 01 Jul 2009 09:25:47 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[服务器软件]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://newsn.net/20090701/730.html</guid>
		<description><![CDATA[Php报错，Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 40961 bytes)
 
修改了php.ini中的
memory_limit = 12M
就行了…，不过程序貌似耗费de资源太多了…
]]></description>
		<wfw:commentRss>http://newsn.net/20090701/730.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关闭xampp（linux版）自带的ftp服务</title>
		<link>http://newsn.net/20090701/729.html</link>
		<comments>http://newsn.net/20090701/729.html#comments</comments>
		<pubDate>Wed, 01 Jul 2009 09:20:58 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[服务器软件]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://newsn.net/20090701/729.html</guid>
		<description><![CDATA[ xampp（linux版）自带了proftpd，但是作为一个测试环境来说，这个服务我们并不需要。官方说明中提供了一个很简便的关闭这项服务的方法。
 

在xampp启动后，执行
./lampp stopftp

以后就再次启动xampp的时候，就没有ftp这个东东了。hoho~
]]></description>
		<wfw:commentRss>http://newsn.net/20090701/729.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>强制修改wordpress的正文链接为新开窗口打开</title>
		<link>http://newsn.net/20090629/725.html</link>
		<comments>http://newsn.net/20090629/725.html#comments</comments>
		<pubDate>Mon, 29 Jun 2009 00:14:44 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://newsn.net/20090629/725.html</guid>
		<description><![CDATA[WordPress的正文做链接的时候，默认是本页打开的，用livewriter写博客的时候也是默认本页打开。当然据说这样更符合国际化标准，但是好像对中国人的习惯新开页面得习惯有点水土不服。而且外带我很懒的去给所有的链接去增加target=’_blank’属性。今天说的是，批量修改这些页面链接，强制新开页面。
 
     一、写在前面     本文主要使用了一个函数，getElementsByClassName，这个是prototy.js中的一个标准函数，但是单独运行版却是多种多样，而且兼容性很差，本来想扩展object.prototype.getElementsByClassName，但是发现时好时坏，兼容性很差。后来就google到了这么一个函数，貌似很不错的说。     http://robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/     http://code.google.com/p/getelementsbyclassname/          二、不多说，上代码       getElementsByClassName:
var getElementsByClassName = function (className, tag, elm){
	if (document.getElementsByClassName) {
		getElementsByClassName = function (className, tag, elm) {
			elm = elm [...]]]></description>
		<wfw:commentRss>http://newsn.net/20090629/725.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>那只囧猫干的那些囧事</title>
		<link>http://newsn.net/20090628/722.html</link>
		<comments>http://newsn.net/20090628/722.html#comments</comments>
		<pubDate>Sun, 28 Jun 2009 15:24:44 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[点滴生活]]></category>
		<category><![CDATA[非常可乐]]></category>
		<category><![CDATA[cat]]></category>

		<guid isPermaLink="false">http://newsn.net/20090628/722.html</guid>
		<description><![CDATA[从飞信上面看到的一组猫猫照片，挺好玩的。 转载一下。    照片中的主角很像我以前养过的大白猫“老白”，很有意思，一起看看：

 

拿大顶！还有就是它的眼睛就没睁开过！    &#160; 
有时喜欢把自己打扮成印度阿叉          
偶尔还会cosplay一把杨二          
有时扎小辫          
有时随意          
有时扮小甜甜    [...]]]></description>
		<wfw:commentRss>http://newsn.net/20090628/722.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在cakephp中使用paginate的简要使用方法小结</title>
		<link>http://newsn.net/20090626/690.html</link>
		<comments>http://newsn.net/20090626/690.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 07:47:53 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[paginate]]></category>

		<guid isPermaLink="false">http://newsn.net/20090626/690.html</guid>
		<description><![CDATA[paginate是cakephp里面用来取数据列表的重要方法，本文中主要讨论的是他的简单使用方法，并不涉及高级复杂的使用。当然本文的范例也并没有什么实际意义，说明问题而已。
 
一、数据结构             二、相关文件       controllers/mylists_controller.php
&#60;?php
class MylistsController extends AppController{
	var $name=&#34;Mylists&#34;;
	var $uses=array(&#34;Mylist&#34;);
	var $layout=&#34;mylayout&#34;;
	var $paginate = array(
		'conditions' =&#62; array(&#34;id &#60;=&#34;=&#62;&#34;20&#34;),
        	'fields' =&#62; array('id', 'name'),
	        'limit' =&#62; 1,
 [...]]]></description>
		<wfw:commentRss>http://newsn.net/20090626/690.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>andlinux2中用cake bake 命令生成的文件用Eclipse（win版）保存出错</title>
		<link>http://newsn.net/20090626/685.html</link>
		<comments>http://newsn.net/20090626/685.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 01:53:22 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[easyeclipse]]></category>

		<guid isPermaLink="false">http://newsn.net/20090626/685.html</guid>
		<description><![CDATA[不知道系统出了什么问题，andlinux2下用cake bake生成的文件用windows下的easyeclipse不能编辑保存了，提示“save could not be completed”，很是郁闷。以下是改问题的相关解决过程：
 
一、文件截图      &#160; &#160; 用其他软件编辑都能保存，就是 eclipse （win）不能保存…，真是郁闷。     二、问题解决      发现居然是文件属性的问题，在cmd下面执行attrib命令，结果如下：          这些不能编辑的文件都有个 &#34;system&#34; 属性，当去掉这个属性的时候，Eclipse就能顺利编辑保存了。     &#160; 这个问题出的很奇怪，但是目前也只能这样。     三、使用linux下面的Eclipse    不过还好，用linux下面的Eclipse没有这个问题，我已经改用linux下的Eclipse了，在andlinux下面的启动菜单里面加了个Eclipse的快捷方式，很简单，就能启动了。不用到console下面去敲命令行。哈哈 [...]]]></description>
		<wfw:commentRss>http://newsn.net/20090626/685.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>清空andlinux的回收站</title>
		<link>http://newsn.net/20090626/674.html</link>
		<comments>http://newsn.net/20090626/674.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 01:16:19 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[andlinux]]></category>
		<category><![CDATA[trash]]></category>

		<guid isPermaLink="false">http://newsn.net/20090626/674.html</guid>
		<description><![CDATA[ andlinux运行久了，有很多东西在回收站里面。昨天提示我说，回收站已满…。这到底怎么清空andlinux的回收站呢？本文说的就是这个问题。
 
一、提示截图    &#160;
二、找了一下trash的位置    看来还是有很多回收站的说,我的操作目标也锁定到了 root/.local/share/trash    &#160; 里面看起来有2个系统文件，（home就是root…….）
三、命令行下清空一下     
rm –rf *
全部清空，再去删除目标文件到回收站的时候，提示：
&#160; 不要紧，一会系统就会自动修复生成files和info两个文件夹，然后就可以进行删除到回收站操作了。
hoho~，没招的话，自己新建2个同名文件夹吧。或者上一步清空的时候，分别进入files和info两个文件夹进行清空好了。
]]></description>
		<wfw:commentRss>http://newsn.net/20090626/674.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>andlinux beta2 中用root权限运行资源管理器konqueror</title>
		<link>http://newsn.net/20090624/661.html</link>
		<comments>http://newsn.net/20090624/661.html#comments</comments>
		<pubDate>Wed, 24 Jun 2009 03:37:32 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[andlinux]]></category>
		<category><![CDATA[konqueror]]></category>

		<guid isPermaLink="false">http://newsn.net/20090624/661.html</guid>
		<description><![CDATA[andlinux升级到beta2后，菜单里面的程序因为不是用root登陆的ssh的缘故，缺少了很多可以进行的操作，非常的不方便，例如在linux下面的konqueror里面，很多粘贴操作都不能进行。本文主要说明如何用root账户启动Konqueror。
 
一、权限对比      普通账户在root根目录下的右键菜单              root权限在root根目录下的右键菜单       &#160;
二、实现方法      编辑Program Files\andLinux\Launcher\menu.txt&#160; 
-
FileBrowser;konqueror.ico;konqueror -profile filemanagement
FileBrowser(SuDo);konqueror.ico;kdesudo &#34;konqueror -profile filemanagement&#34;
Konqueror;konqueror.ico;konqueror
-
对应菜单如下：
     
在执行sudo的时候，就会提示输入密码， 
然后就是root权限的资源管理器了。不错的说。
 
关键语句是： 
kdesudo，估计其他需要root权限的程序也是可以这么配置的。呵呵~
]]></description>
		<wfw:commentRss>http://newsn.net/20090624/661.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TortoiseSVN的基本使用</title>
		<link>http://newsn.net/20090623/617.html</link>
		<comments>http://newsn.net/20090623/617.html#comments</comments>
		<pubDate>Tue, 23 Jun 2009 05:28:00 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://newsn.net/20090623/617.html</guid>
		<description><![CDATA[自从项目从cvs转移到了svn，我也就安装了个svn软件。用了些日子了，写下点小小的使用心得体会。这个软件叫做TortoiseSVN，和windows的资源管理器还是集成在一起的，挺好用的说。

 

一、下载toroisesvn     http://tortoisesvn.net/downloads     只有windows的版本，没有linux的版本，下载个32bit的就行了。 这个是使用过程中会出现的图标，代表着不同的含义。截止到发文tortoisesvn的最新版本是1.6.3.16613。
&#160;         svn项目其实也可以直接在浏览器地址栏里面打开，不用这个软件也是可以查看的。     地址类似于：http://xxx.xxx.xxx.xxx/repos/project/trunk/，输入用户名和密码就可以看了。          二、基本操作      1、update、commit 及右键菜单&#160; &#160;


update和commit时候的用户信息保存后可以在右键菜单里面的settings的saved data里面进行清除。
2、show log      &#160;
在show log的基础上可以看到版本变更信息，点击对应条目的右键，可以查看历史版本并进行对比。  [...]]]></description>
		<wfw:commentRss>http://newsn.net/20090623/617.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cakephp的debugkit在ie下的再次修正</title>
		<link>http://newsn.net/20090623/616.html</link>
		<comments>http://newsn.net/20090623/616.html#comments</comments>
		<pubDate>Tue, 23 Jun 2009 03:39:15 +0000</pubDate>
		<dc:creator>苏南</dc:creator>
				<category><![CDATA[IT.IT]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[debugkit]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[prototype]]></category>

		<guid isPermaLink="false">http://newsn.net/20090623/616.html</guid>
		<description><![CDATA[Cakephp的debugkit在ie下面已经修正一次，可以正常显示toolbar，今天用了一下，发现还是有点问题，不能点击开具体页面中的小箭头显示详细内容，就再次修正增加了个event的target属性，具体如下：
 
一、写在前面      在msdn上面看到了这篇文章，应该是对ie下面的prototype进行修正的比较权威的文章。网上的文章都是在讲如何让ff支持ie的属性的，这里反其道而行，讲ie如何支持ff的属性。     http://msdn.microsoft.com/en-us/library/dd229916(VS.85).aspx
二、本次更新主要修改的问题     &#160; 这里的小箭头不能点开。    
三、增加后的代码     plugins\debug_kit\vendors\js\js_debug_toolbar.js
if (document.all){
	Event.prototype.preventDefault = function () {
	  this.returnValue = false;
	};
	Object.defineProperty(Event.prototype, 'target', {
	  get: function() {
	    return this.srcElement;
	  }
	});
}
这里面已经包含了上次对debugkit的更新修正。使用方法一样，放到这个js文件的开头就行了。
  这段JS的功用是： 
当前浏览器是IE(document.all)的时候,使得event这个类先增加一个方法叫做preventDefault，然后增加一个属性值叫做target。因为这2个东东都是ff特有的，ie不认识，而这个debugkit又是针对ff所写的，所以有此hook。
]]></description>
		<wfw:commentRss>http://newsn.net/20090623/616.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
