<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.blowfisher.net/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>blf-wiki</title>
        <description></description>
        <link>http://www.blowfisher.net/wiki/</link>
        <lastBuildDate>Fri, 02 May 2008 00:40:56 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://www.blowfisher.net/wiki/lib/images/favicon.ico</url>
            <title>blf-wiki</title>
            <link>http://www.blowfisher.net/wiki/</link>
        </image>
        <item>
            <title>有话跟我说? - 已恢复为旧版</title>
            <link>http://www.blowfisher.net/wiki/leave-me-a-message?rev=1209659672&amp;do=diff</link>
            <description>AntiTrust 是部电影？看起来似乎很专业的样子。。

呵呵，你也常用 GnuPlot ?我也是几乎天天和它打交道，R-Lang 的画图不好用，还是GnuPlot 好使。

自己用 python 写写小东西来处理CDN 发来的对各地 ping 的资料，来统计 ping 延时 和 packets loss rate,然后生成图表。</description>
            <author>blowfisher</author>
            <pubDate>Fri, 02 May 2008 00:34:32 +0800</pubDate>
        </item>
        <item>
            <title>tech Notes</title>
            <link>http://www.blowfisher.net/wiki/home?rev=1206962574&amp;do=diff</link>
            <description>home  Gallery | about  

 

tech Notes

	*  DokuWIKI 安装笔记 
	*  PGSQL 表空间存储开销参考数据
	*  GPT大卷分区备忘
	*  FreeBSD PPPoE 拨号配置
	*  FreeBSD 7.0 Online transaction processing benchmark
	*  PostgreSQL vs MySQL (tweakers.net做的对比测试)
	*  关于ThreadLocal概念</description>
            <author>blowfisher</author>
            <pubDate>Mon, 31 Mar 2008 19:22:54 +0800</pubDate>
        </item>
        <item>
            <title>遍历行并判断有效性</title>
            <link>http://www.blowfisher.net/wiki/py-demo/smart-readlines?rev=1201866472&amp;do=diff</link>
            <description>遍历行并判断有效性

方式1:


filey=file('num.txt','rw');

total=0;

while True:
 
    lineValue=filey.readline();
 
    if len(lineValue)==0:
         break;

    if 第一个字母不是“#”
       #处理开始...
       lineValueF=float(lineValue);
       total=lineValueF+total;
       #处理完毕.
    else:
       #do nothing...

filey.seek(0)  
LengthL=filey.readlines();
length=len(LengthL);
 
print &quot;The total is:&quot;, total;
print &quot;The length is:&quot;,length;
filey.close();</description>
            <author>blowfisher</author>
            <category>py-demo</category>
            <pubDate>Fri, 01 Feb 2008 19:47:52 +0800</pubDate>
        </item>
        <item>
            <title>PY DEMO</title>
            <link>http://www.blowfisher.net/wiki/py-demo?rev=1201865733&amp;do=diff</link>
            <description>PY DEMO

	*  遍历行并判断有效性
	*  遍历行并读行数-1
	*  遍历行并读行数-2</description>
            <author>blowfisher</author>
            <pubDate>Fri, 01 Feb 2008 19:35:33 +0800</pubDate>
        </item>
        <item>
            <title>遍历行并读行数</title>
            <link>http://www.blowfisher.net/wiki/py-demo/readlines2?rev=1201846648&amp;do=diff</link>
            <description>遍历行并读行数



filey=file('num.txt','rw');
 
total=0;
lines=0;
 
while True:
 
    lineValue=filey.readline();
 
    if len(lineValue)==0:
         break;
 
    lineValueF=float(lineValue);
    total=lineValueF+total;
    lines++;
 
#filey.seek(0)  
#LengthL=filey.readlines();
length=lines;
 
print &quot;The total is:&quot;, total;
print &quot;The length is:&quot;,length;
filey.close();</description>
            <author>blowfisher</author>
            <category>py-demo</category>
            <pubDate>Fri, 01 Feb 2008 14:17:28 +0800</pubDate>
        </item>
        <item>
            <title>遍历行并读行数 - 创建</title>
            <link>http://www.blowfisher.net/wiki/py-demo/readlines?rev=1201846488&amp;do=diff</link>
            <description>遍历行并读行数


filey=file('num.txt','rw');
 
total=0;
while True:
 
    lineValue=filey.readline();
 
 
    if len(lineValue)==0:
         break;
    lineValueF=float(lineValue);
    total=lineValueF+total;
 
filey.seek(0)  
LengthL=filey.readlines();
length=len(LengthL);
 
print &quot;The total is:&quot;, total;
print &quot;The length is:&quot;,length;
filey.close();</description>
            <author>blowfisher</author>
            <category>py-demo</category>
            <pubDate>Fri, 01 Feb 2008 14:14:48 +0800</pubDate>
        </item>
        <item>
            <title>关于 ThreadLocal 的一些概念</title>
            <link>http://www.blowfisher.net/wiki/tech0notes/threadlocal?rev=1201624928&amp;do=diff</link>
            <description>关于 ThreadLocal 的一些概念

1. 用以界定ThreadLocal作用域的当前线程的ID，在系统内是重复利用的。
 2. 系统的线程总数保持在一个限制总数量以下。
 3. 如果系统繁忙，线程实例多，可能每次操作都能拿到不同的线程ID，
 4. 如果系统很空闲，你的每次操作，很有可能看上去就只有1个ID在重复使用。
 5. 从概念上，尽管前后两次操作可能都是同一个ID，实际上是属于两个不同的ThreadL…</description>
            <author>blowfisher</author>
            <category>tech0notes</category>
            <pubDate>Wed, 30 Jan 2008 00:42:08 +0800</pubDate>
        </item>
        <item>
            <title>FreeBSD PPPoE 拨号配置备忘</title>
            <link>http://www.blowfisher.net/wiki/tech-notes/freebsd-pppoe-config?rev=1201533636&amp;do=diff</link>
            <description>/etc/rc.conf:
network_interfaces=&quot;lo0 tun0&quot;
ifconfig_tun0=
#router_enable=&quot;NO&quot;     # 注释掉
	*  按需拨号： 


ee /etc/start_if.tun0:
   ppp -auto mysystem


/etc/ppp/ppp.conf:

	*  注意缩进 


default:
  set log Phase tun command
  set ifaddr 10.0.0.1/0 10.0.0.2/0
  enable dns
my-adsl:
  set device PPPoE:em0  
  set authname your_login_name
  set authkey your_passwd
  set dial
  set login
  add default HISADDR</description>
            <author>blowfisher</author>
            <category>tech-notes</category>
            <pubDate>Mon, 28 Jan 2008 23:20:36 +0800</pubDate>
        </item>
        <item>
            <title>Blowfisher's Wiki - Links to blowfisher.net changed to home</title>
            <link>http://www.blowfisher.net/wiki/start?rev=1201237899&amp;do=diff</link>
            <description>Blowfisher's Wiki

 Enter</description>
            <author>blowfisher</author>
            <pubDate>Fri, 25 Jan 2008 13:11:39 +0800</pubDate>
        </item>
        <item>
            <title>DokuWIKI 安装笔记</title>
            <link>http://www.blowfisher.net/wiki/tech-notes/dokuwiki-install-notes?rev=1201234257&amp;do=diff</link>
            <description>安装 DokuWiki

 DokuWIKI可以不用数据库支持，
 用户管理可基于简单的文件形式，即可满足同时支持若干个维护/管理用户的基本需求

	*  下载地址: DokuWiki

	*  解压缩到www目录: wiki/

	*  初始化配置: &lt;http://www.your.domain/wiki/install.php&gt;</description>
            <author>blowfisher</author>
            <category>tech-notes</category>
            <pubDate>Fri, 25 Jan 2008 12:10:57 +0800</pubDate>
        </item>
        <item>
            <title>rsync exclude PATTERN 规则实例</title>
            <link>http://www.blowfisher.net/wiki/tech-notes/rsync-exclude-pattern?rev=1200552180&amp;do=diff</link>
            <description>Here are some exclude/include examples: 


 --exclude &quot;*.o&quot;   would exclude all filenames matching *.o
 --exclude &quot;/foo&quot;  would exclude a file in the base directory called foo
 --exclude &quot;foo/&quot;  would exclude any directory called foo.
 --exclude &quot;/foo/*/bar&quot;  would exclude any file called bar two levels below a base directory called foo.
 --exclude &quot;/foo/**/bar&quot; would exclude any file called bar two or more levels below a base directory called foo.
 --include &quot;*/&quot; --include &quot;*.c&quot; --exclude &quot;*&quot; w…</description>
            <author>blowfisher</author>
            <category>tech-notes</category>
            <pubDate>Thu, 17 Jan 2008 14:43:00 +0800</pubDate>
        </item>
        <item>
            <title>FreeBSD 7.0 Online transaction processing benchmark</title>
            <link>http://www.blowfisher.net/wiki/tech-notes/freebsd-7-benchmark?rev=1198839848&amp;do=diff</link>
            <description>&lt;http://www.blowfisher.net/gallery/v/fb7_0_db_pfm/&gt;</description>
            <author>blowfisher</author>
            <category>tech-notes</category>
            <pubDate>Fri, 28 Dec 2007 19:04:08 +0800</pubDate>
        </item>
        <item>
            <title>PostgreSQL MySQL 性能对比 - 创建</title>
            <link>http://www.blowfisher.net/wiki/tech-notes/postgresql-vs-mysql?rev=1198838658&amp;do=diff</link>
            <description>&lt;http://www.blowfisher.net/gallery/v/pg-vs-mysql&gt;

数据来自 tweakers.net</description>
            <author>blowfisher</author>
            <category>tech-notes</category>
            <pubDate>Fri, 28 Dec 2007 18:44:18 +0800</pubDate>
        </item>
        <item>
            <title>FreeBSD 大卷 GPT 分区备忘</title>
            <link>http://www.blowfisher.net/wiki/tech-notes/freebsd-gpt-partition?rev=1198830349&amp;do=diff</link>
            <description>FreeBSD 大卷 GPT 分区备忘

 man page: http://www.freebsd.org/cgi/man.cgi?query=gpt...

GPT 分区

	*  创建一个新的空的GPT


gpt create -f /dev/da5
   -f   清除MBR及分区表


	*  清除一个已经存在的非空的GPT


gpt destroy  /dev/da5</description>
            <author>blowfisher</author>
            <category>tech-notes</category>
            <pubDate>Fri, 28 Dec 2007 16:25:49 +0800</pubDate>
        </item>
        <item>
            <title>PostgreSQL表及索引存储开销</title>
            <link>http://www.blowfisher.net/wiki/tech-notes/postgresql-tablespace-cost?rev=1198827027&amp;do=diff</link>
            <description>总览


行数: 17,000,000
表大小: 2193M
索引: 4401M
------------------------------------
存储空间总计: 6594M


表结构


CREATE TABLE tb1
(
  id 	bigserial 	NOT NULL,
  b1 	bigint 		NOT NULL DEFAULT 0,
  b2 	bigint 		NOT NULL DEFAULT 0,
  b3 	bigint 		NOT NULL DEFAULT 0,
  n1 	integer 	NOT NULL DEFAULT 0,
  n2 	integer 	NOT NULL DEFAULT 0,
  s1 	smallint 	NOT NULL DEFAULT 0,
  s2 	smallint 	NOT NULL DEFAULT 0,
  s3 	smallint 	NOT NULL DEFAULT 0,
  s4 	smallint 	NOT NULL DEFAULT 0,…</description>
            <author>blowfisher</author>
            <category>tech-notes</category>
            <pubDate>Fri, 28 Dec 2007 15:30:27 +0800</pubDate>
        </item>
        <item>
            <title>ORACLE中用rownum分页并排序的SQL语句</title>
            <link>http://www.blowfisher.net/wiki/tech-notes/oracle-rownum-page?rev=1198814162&amp;do=diff</link>
            <description>ORACLE中用rownum分页并排序的SQL语句

&lt;http://www.blogjava.net/joessy/articles/1398.html&gt;


ORACLE中用rownum分页并排序的SQL语句

以前分页习惯用这样的SQL语句:

select * from
   (select t.*,rownum row_num from mytable t order by t.id) b
where b.row_num between 1 and 10

结果发现由于该语句会先生成rownum 后执行order by 子句,
因而排序结果根本不对,
后来在GOOGLE上搜到一篇文章,
原来多套一层select 就能很好的解决该问题,…</description>
            <author>blowfisher</author>
            <category>tech-notes</category>
            <pubDate>Fri, 28 Dec 2007 11:56:02 +0800</pubDate>
        </item>
        <item>
            <title>Windows 连接共享打印机</title>
            <link>http://www.blowfisher.net/wiki/print-share-setting?rev=1198566936&amp;do=diff</link>
            <description>Windows 连接共享打印机

	*  打开 IE 浏览器
	*  地址栏输入: \\10.1.1.2

    10.1.1.2为共享打印机IP 

	*  双击看到的打印机图标
	*  完成!</description>
            <author>blowfisher</author>
            <pubDate>Tue, 25 Dec 2007 15:15:36 +0800</pubDate>
        </item>
        <item>
            <title>Firefox 配置文件简易设置</title>
            <link>http://www.blowfisher.net/wiki/firefox-profile-setting?rev=1198566461&amp;do=diff</link>
            <description>Firefox 配置文件简易设置

 编辑 profiles.ini  位于:
C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox\
 修改:

IsRelative=0   -&gt; 不用相对路径
 Path=F:\my-firefox   -&gt; 你的配置文件所在位置

参考:</description>
            <author>blowfisher</author>
            <pubDate>Tue, 25 Dec 2007 15:07:41 +0800</pubDate>
        </item>
        <item>
            <title>Firefox 推荐插件一览</title>
            <link>http://www.blowfisher.net/wiki/firefox-plugins-screenshot?rev=1198563374&amp;do=diff</link>
            <description>Firefox 推荐插件一览

  Access Flickr: 绕开GFW，浏览Flickr图片

Array</description>
            <author>blowfisher</author>
            <pubDate>Tue, 25 Dec 2007 14:16:14 +0800</pubDate>
        </item>
    </channel>
</rss>
