<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[ofly'blog]]></title> 
<description><![CDATA[风划过水面后时间的简单记忆]]></description>
<link>http://ofly.org</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>

<item>
	<title>MySQL的MAX函数</title>
	<link>http://ofly.org/?post=144</link>
	<description><![CDATA[<p>
	开始用：select max(auth) from table发现查出的结果不正确，后来发现auth字段为char类型，MYSQL在进行聚合查询的时候是按字符串类型来处理的，结果自然不对，改为：select max(cast(auth as unsigned)) from table之后为正确结果。</p><p>
	如果对精度要求高的话，DECIMAL比较好</p><p>
	好好看手册<br />
	float类型不能用在这...</p><p><a href="http://ofly.org/?post=144">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Sat, 08 May 2010 21:50:24 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=144</guid>

</item>
<item>
	<title>当服务启动后，每隔一段时间扫描一次</title>
	<link>http://ofly.org/?post=143</link>
	<description><![CDATA[<p><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: ����, Tahoma; font-size: 12px; ">在服务程序的run过程中作如下修改即可 &nbsp;&nbsp;<br />
	&nbsp; void &nbsp; CServiceModule::Run() &nbsp;&nbsp;<br />
	&nbsp; { &nbsp;&nbsp;<br />
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _Module.dwThreadID &nbsp; = &nbsp; GetCurrentThrea...</span></p><p><a href="http://ofly.org/?post=143">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Sat, 01 May 2010 21:42:50 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=143</guid>

</item>
<item>
	<title>判断指定进程名的进程是否存在</title>
	<link>http://ofly.org/?post=142</link>
	<description><![CDATA[<p>
	&nbsp;</p><p>
	&nbsp;</p><p>
	DWORD GetProcessidFromName(LPCTSTR name)</p><p>
	{</p><p>
	&nbsp;PROCESSENTRY32 pe;</p><p>
	&nbsp;DWORD id=0;</p><p>
	&nbsp;HANDLE hSnapshot=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);</p><p>
	&nbsp;pe.dwS...</p><p><a href="http://ofly.org/?post=142">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Sat, 01 May 2010 19:45:44 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=142</guid>

</item>
<item>
	<title>用createprocess运行另外一个程序</title>
	<link>http://ofly.org/?post=141</link>
	<description><![CDATA[<p>
	&nbsp;</p><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: normal; zoom: 1; white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 22px; font-family: Arial; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Arial; line-height: 22px; ">可以利用CreateProcess API函数来创建相应的进程，该函数的原型如下：
    CreateProcess( 
             LPCWSTR lpszImageName, //指向可执行的模块的指针
             LPCWSTR lpszCmdLine, //指向可执行命令行字符串的指针
            LPSECURITY_A...</span></pre><p><a href="http://ofly.org/?post=141">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Sat, 01 May 2010 00:37:19 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=141</guid>

</item>
<item>
	<title>The 'InnoDB' feature is disabled</title>
	<link>http://ofly.org/?post=140</link>
	<description><![CDATA[<p><span style="COLOR: #ff0000">异常：java.sql.SQLException: The &#39;InnoDB&#39; feature is disabled; you need MySQL built with &#39;InnoDB&#39; to have it working</span><br /><br /><span style="COLOR: #ff0000">SQL:</span><span style="COLOR: #ff0000">&quot;CREATE TABLE `&quot;+time+&quot;` (&quot; +<br />
	&nbsp;&nbsp;&nb...</span></p><p><a href="http://ofly.org/?post=140">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Thu, 08 Apr 2010 22:39:57 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=140</guid>

</item>
<item>
	<title>PHP ASCII转十六进制 以及 十六进制转ASCII</title>
	<link>http://ofly.org/?post=139</link>
	<description><![CDATA[<pre class="code">&lt;?php
/**
*
* ASCII 转 十六进制 以及 十六进制 转 ASCII
* 非盈利组织或个人请放心转载，商业用途请征得作者同意
*
*/
//ASCII 转 十六进制
function asc2hex($str) {
return &#39;\x&#39;.substr(chunk_split(bin2hex($str), 2, &#39;\x&#39;)...</pre><p><a href="http://ofly.org/?post=139">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Fri, 02 Apr 2010 16:52:32 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=139</guid>

</item>
<item>
	<title>修改FreeBSD的系统时间</title>
	<link>http://ofly.org/?post=138</link>
	<description><![CDATA[<p>
	必须有root权限 <br />
	# date YYMMDDHHMM <br /><br />
	比如要修改时间为2007年4月15日7点52 <br />
	# date 0704150752 <br /><br />
	只改时间的话 <br />
	# date HHMM <br /><br />
	使用NTP服务器更新本地时间 <br />
	# ntpdate time.nist.gov <br /><br />
	常用的NTP服务器 <br />
	time.nist.gov <br />
	time.windows.com...</p><p><a href="http://ofly.org/?post=138">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Sun, 14 Mar 2010 10:59:38 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=138</guid>

</item>
<item>
	<title>PHP Memcached + APC + 文件缓存封装</title>
	<link>http://ofly.org/?post=137</link>
	<description><![CDATA[<p>
	使用方法：<br /><br />
	Memcached<br /><br />
	$cache = new Cache_MemCache();<br />
	$cache-&gt;addServer(&#39;www1&#39;);<br />
	$cache-&gt;addServer(&#39;www2&#39;,11211,20); // this server has double the memory, and gets double the...</p><p><a href="http://ofly.org/?post=137">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Tue, 09 Mar 2010 09:34:00 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=137</guid>

</item>
<item>
	<title>vc读写mysql</title>
	<link>http://ofly.org/?post=136</link>
	<description><![CDATA[<p>
	&nbsp;看过很多C或是C＋＋操作MySQL数据库的文章，大部分太吃力了，甚至有一部分根本没有很好的组织文字，初学者比较难以接受，即使是C++或是C高手也是比较难看懂。写这篇文章的目的不是别的，就一个，告诉您用MySQL的C API直接操作MySQL数据，并做了比较高效的封装，可以帮助开发人员大幅度提高采用MySQL的C API操作MySQL数据库的效率。<br />
	直接进入主题：<br />
	1、&n...</p><p><a href="http://ofly.org/?post=136">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Tue, 23 Feb 2010 11:43:06 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=136</guid>

</item>
<item>
	<title>把鸟枪改装成大炮</title>
	<link>http://ofly.org/?post=135</link>
	<description><![CDATA[<p>
	最近又把sablog2.0拿出来研究了一下，这个blog是一个经典的学习好教材，1.6以后作者开发速度很慢，也可能是目前blog在国内日渐衰败的原因吧，2.0现在一直是bata版，发现其中问题确实不少，处于自己的喜好打算把编辑器换掉，ajax的一些东西也修改了，在打算把自己之前做的分表存储和缓存技术也用上外加memcache，把鸟枪改装成大炮，有空把这东西写好了放出来测试测试。</p><p><a href="http://www.ofly.org/content/uploadfile/201002/f3ccdd27d2000e3f9255a7e3e2c4880020100219163445.jpg" id="ematt:23" target="_blank"><img alt="点击查看原图" border="0" src="http://www.ofly.org/content/uploadfile/201002/thum-f3ccdd27d2000e3f9255a7e3e2c4880020100219163445.jpg" /></a></p><p><a href="http://ofly.org/?post=135">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Fri, 19 Feb 2010 16:27:16 +0800</pubDate>
	<author>ofly</author>
	<guid>http://ofly.org/?post=135</guid>

</item></channel>
</rss>