<?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>OGX-3　｜　妳木有小雞雞</title>
	<atom:link href="http://www.3ogx.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.3ogx.com</link>
	<description>死亡不是无知，而是不表态。</description>
	<lastBuildDate>Tue, 17 Aug 2010 07:33:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>有意栽花花不開，無心插柳柳成蔭。</title>
		<link>http://www.3ogx.com/archives/625</link>
		<comments>http://www.3ogx.com/archives/625#comments</comments>
		<pubDate>Tue, 17 Aug 2010 07:33:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工作中的那点破事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/?p=625</guid>
		<description><![CDATA[在線人數大約在3000左右，用兩臺機器跑，在高峰時會出現連不了memcache的情況，以前只是11211端口佔用比較多，但昨天出現不能連memcache。老問題了，一直因為非常重要或者很重要的事情而放到出現問題才會解決（11211端口的問題在很久以前就提出）。 連接memcached的地方有兩處，session和DB Cache，我先試著改session： function open() { global $_memcache; $_memcache = memcache_pconnect(HOST,PORT); } &#160; // session close function close() { global $_memcache; memcache_close($_memcache); } &#160; // session gc function gc($key) { global $_memcache; memcache_close($_memcache); } &#160; // session destroy function destroy($key) { global $_memcache; memcache_close($_memcache); } &#160; // session read function read($key) { global $_memcache; $_memcache-&#62;get($key); [...]]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/625/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>雷死人的hosts和resolv.conf</title>
		<link>http://www.3ogx.com/archives/622</link>
		<comments>http://www.3ogx.com/archives/622#comments</comments>
		<pubDate>Mon, 16 Aug 2010 10:19:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[关乎饭碗的算是个事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/?p=622</guid>
		<description><![CDATA[今天算是碰到怪事了，做的儲值模塊，因為代碼去抓取遠程資料庫的數據，在Server端已寫好api，直接調用就可以了。所以就用fsockopen來建立連接，問題出來了，不管怎麼寫，死活抓不到資料。 if (!$_fp) { &#160;&#160; &#160;throw new Exception($_error_msg.$_errorno.&#34;\n&#34;); } 一直提示 Connection timed out 110 換成curl後還是不可以~在命令行下運行 curl -G http://sub.domain.com/XX/xx/xx 出現couldn&#8217;t connect to host. 但是在內部的測試機卻是正常。就是說內部機訪問subdomain，dns可以正常解析，換服務器就不可以了。 在hosts中加入 192.X.X.X&#160; &#160;sub.domain.com 指定ip後再試，ok了。]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/622/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>整理的htc desire 大陆和香港间的差异</title>
		<link>http://www.3ogx.com/archives/618</link>
		<comments>http://www.3ogx.com/archives/618#comments</comments>
		<pubDate>Thu, 29 Jul 2010 00:21:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[关乎饭碗的算是个事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/?p=618</guid>
		<description><![CDATA[除了接口、htc 小工具、GPS，操作系统不一样，其他的都一样。 htc]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/618/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php5 iterator － 迭代器</title>
		<link>http://www.3ogx.com/archives/612</link>
		<comments>http://www.3ogx.com/archives/612#comments</comments>
		<pubDate>Mon, 26 Jul 2010 14:40:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[关乎饭碗的算是个事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/?p=612</guid>
		<description><![CDATA[php,spl,iterator]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/612/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>唠叨贴</title>
		<link>http://www.3ogx.com/archives/610</link>
		<comments>http://www.3ogx.com/archives/610#comments</comments>
		<pubDate>Thu, 22 Jul 2010 17:16:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工作中的那点破事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/?p=610</guid>
		<description><![CDATA[上面说了php的异常处理，现在来骂一下吧！ php本来是弱类型的语言，所有的异常信息都要我们自己来定义，加上php5.2 和php5.3 对错误纪别处理也不一样，在php5.3下可以正常运行的代码，在php5.2下一直报错，或者白屏，毛都被qi没了。 更加弱质的是，参数前如果加了类型，php5.3会正常，php5.2就不行，况方法的参数数量不一样，也会报错。php5.2 接口的使用还不能完整的使用。]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/610/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php异常处理</title>
		<link>http://www.3ogx.com/archives/608</link>
		<comments>http://www.3ogx.com/archives/608#comments</comments>
		<pubDate>Thu, 22 Jul 2010 17:03:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[关乎饭碗的算是个事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/?p=608</guid>
		<description><![CDATA[在开发中经常会碰到处理一些信息，提供给用户或者管理员。简单的直接输出就可以，如果遇到嵌套类中最内层的信息，就有些麻烦了，不得不直拉输出信息。 php5 引进异常处理，每当出的异常都会被catch语句块补获，并每一个 try必由一个catch来处理异常。 exception 是php标准的函数库，其定义如下： &#60;?php class Exception { &#160;&#160; &#160;protected $message = &#8216;Unknown exception&#8217;;&#160; &#160;// 异常信息 &#160;&#160; &#160;protected $code = 0;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // 用户自定义异常代码 &#160;&#160; &#160;protected $file;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // 发生异常的文件名 &#160;&#160; [...]]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/608/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu不支持ll 命令的解决办法</title>
		<link>http://www.3ogx.com/archives/605</link>
		<comments>http://www.3ogx.com/archives/605#comments</comments>
		<pubDate>Sun, 18 Jul 2010 06:55:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[关乎饭碗的算是个事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/?p=605</guid>
		<description><![CDATA[ubuntu，linux，shell]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/605/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>omg~pdo 数据抽象层 实例</title>
		<link>http://www.3ogx.com/archives/601</link>
		<comments>http://www.3ogx.com/archives/601#comments</comments>
		<pubDate>Wed, 09 Jun 2010 19:36:15 +0000</pubDate>
		<dc:creator>beiwei</dc:creator>
				<category><![CDATA[关乎饭碗的算是个事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/?p=601</guid>
		<description><![CDATA[defined("DSN") OR define("DSN","mysql:dbname=text;127.0.0.1"); defined("DB_USER") OR define("DB_USER","root"); defined("DB_PASSWORD") OR define("DB_PASSWORD",""); /** * 使用mysql的pdo驱动 * * @author * 单例模式 **/ class Db { /** * 类的实例 **/ private static $instance; /** * 构造函数，定义为私有防止类再外部被实例化 * * @example * $obj = new Db(); * **/ private function __construct(){} /** * 定义为私有确保实例不被clone **/ private function __clone(){} /** * 返回一个pdo的实例 * [...]]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/601/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>不关站升级数据库</title>
		<link>http://www.3ogx.com/archives/600</link>
		<comments>http://www.3ogx.com/archives/600#comments</comments>
		<pubDate>Sun, 06 Jun 2010 16:58:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[关乎饭碗的算是个事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/archives/600</guid>
		<description><![CDATA[下面是infoq的计划，我认为除了计划，每一条都是值得我借鉴的。 比如说：准备工作，要让服务提供商知道详细内容。呃，这一点我就不说了。安全可控的关闭mysql，停止web服务，保证所有事务已经提交，设置mysql为只读。innodb引擎的转换，这里提到mysql的Per-Table Tablespaces &#8211;innodb-file-per-table 设置项，是因为innodb默认把数据跟索引文件分成不同的表空间存放，这也就是为什么不能直接拷贝data目录下的文件来备份innodb的原因。至于备份这mysql的官网有详细的资料 innodb-file-pre-table 接着就是主从，除了主从还是主从。具体就要看怎么去想更好的方案。嗯，就这样，睡觉。]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/600/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>假想案例：不关站升级数据库</title>
		<link>http://www.3ogx.com/archives/598</link>
		<comments>http://www.3ogx.com/archives/598#comments</comments>
		<pubDate>Sun, 06 Jun 2010 12:58:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[关乎饭碗的算是个事]]></category>

		<guid isPermaLink="false">http://www.3ogx.com/archives/598</guid>
		<description><![CDATA[前段时间莫哥提到升级数据库失败问题，因为他所负责的项目会比较复杂，并且在安全性上要求比较高。并且还有其他的一些原因（开发新功能、修复bug之类），后来不知有没有升级成功。今天看到infoq升级数据库的文章，收获颇丰。借鉴infoq的案例和总结的经验，我觉得也非常适合莫哥负责的项目。并且也给新成长的站点有了借鉴的地方。 先来看看infoq的经验： 1、有详细的计划。（这点非常重要）要涉及到方方面面的问题：线路、机器、人工以及可能突发的状况和状况发生时的应急预案。 2、变化。记得在head first系列书里面有提到软件开发最普遍的就是变化（change），这尤其也是我后来一直拿来安慰别人和自我安慰的一个词。 3、适应变化。这点是我加上去的，因为我们在处理碰到的问题时，往往有些人还要比我们更没有耐心和浮躁。他们往往会在你紧绷神经时来找茬或者捣乱。 4、节省系统调试的时间。这点我苟且暂时认同，因为毕竟我还没达到那种保证事情99%正确的境界。如果调试（测试）不能发现问题，就别指望我们的其他工作人员找到问题。根据我自己的经历，某些大的问题往往都是用户直接反馈给我们的。 5、积极寻求反馈。这点可能再国内或者tw市场有点困难。因为亚洲人（至少是中国人)已经习惯了出钱就是爷的思维意识。我们获得反馈信息的途径也很有限，无非就是网站留言、电话、邮件、msn（少量）等几种，不像infoq上所说的google group、twitter等。国内少有的类似twitter的网站都具有阉割和自我阉割的功能，google group已经被墙，我估计以后的网民甚至不知道有google group这样一说。当然，这些只限在中国大陆。 接下来要讲一下infoq在升级方案，未完待续。]]></description>
		<wfw:commentRss>http://www.3ogx.com/archives/598/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
