Category: Technology

Software, P2P, web, gadgets

【bbs】东拉西扯BBS (2)

趁开始忙之前集中灌几天水,东拉西扯想到哪说到哪 🙂

论坛里的生态角色

(纯粹一边喝白水一边瞎想出来的,请勿对号入座)

网上论坛虽然是虚拟社区,也是一个小社会,也有人间百态,每个人在里面轮番扮演不同的角色。

一篇帖子发出去,有叫好的,有拍砖的,有扯到其他话题上去的,当然还有只看贴不发言的沉默的大多数。

这帖子也是分原创和转贴。原创的作者这里通称写手或者大虾。

写手是论坛兴旺的根本--一个论坛要有一定数量的高质量原创写手才会吸引人来,这一点估计没有人反对。可是从长久来说,不能把希望寄托在个别大虾身上,不然大虾一走立马玩完。

注意我这里说的是“个别”而不是说写手这一群体: 在免费论坛上业余玩票性质的写作方式无法保证哪一个大虾哪天突然不来了--可能生活发生了变化,可能兴趣转移,可能热情的起伏,可能…you never know. 网络不是生活的全部,尤其在网络上写作不能带来任何经济效益的情况下。另外高手到一定水平,发表到传统平面媒体很可能带来更多的满足感和回报,…


Read More »

聊聊偶用过的讨论区系统(历史篇)

聊聊偶用过的讨论区系统(历史篇)

(1) 模拟电话线拨号BBS:

最早的BBS出现于internet还未出现的时候,那时候的BBS不在internet上只能靠电话线。具体来说开个论坛只要买台机器,装个架站软件,有个modem (modem组),几条电话线就可以了。

90 年代中期在下在深圳玩过一下这种电话线BBS中最流行的一种: Fidonet BBS. 机器里装个fidonet的客户端,然后拨号到某个电话号码,拨通然后就可以访问BBS了,界面形式跟internet 上telnet界面的BBS差不多。当时FidoNet已经比较先进了,在站与站之间还有自动转信功能。虽然如此,这种BBS系统使用者一般都是在些封闭的小圈子里, 一些发烧友发起,朋友之间介绍的。由于比较封闭估计比较适于反动分子秘密聚会聊天而不会被网警抓获。

但是比较麻烦的是一是系统不稳定经常掉线,二是业余的BBS站同时在线人数上限很小,三是只适于本地讨论--否则长途电话费会让你倾家当产。不知道现在国内还有没有人玩Fidonet了。

印象中珠海金山的求伯君当年也玩这种BBS, 金山公司还架过站,叫西点BBS什么的。

(2)…


Read More »

【BBS】论坛系统分析(1): 论坛外观的树形 vs 表格形式

表格形 (flat view) VS 树形 (threaded view, tree view)

树形和表格形各有其优缺点:

(1) 树形易于形成一个讨论的气氛。
(2) 与表格形比较,从点击量来说树形会使帖子的点击量看起来少许多,原因是树形统计点击量是单个帖子的点击量,而表格形是整个主题(主帖及其所有跟帖的点击数, 因为跟帖的点击数是无法统计的)。

举个例子,在树形下看这个帖子:http://www.haiguinet.com/bbs/viewtopic.php?p=969231 的点击数是8236; 如果切换成表格形,那么该主题的点击数则为37139.

所以如果你在天涯等论坛上看到一个点击数为上万的主题,其实际点击数不一定比海归网上一个点击几千的主帖多。

(3) 树形结构在跟帖不多的时候比较清晰,对讨论一目了然。就象看各人的对话一样。这是绝大多数人喜欢的树形显示的优点,但从另一个角度来说也是缺点:许多人干脆只看跟帖标题知道一个大概,而根本不点击阅读帖子本身。还有许多人回帖不看帖。

(4) 表格形不易搞清跟帖的关系:跟帖多了,搞不清是在跟谁的帖。

(5)…


Read More »

canoo web test 快速入门

这是我们实现Agile development重要的一环.

(0) 安装

— download jave runtime (JRE)
— download webtest: http://webtest.canoo.com/webtest/build.zip, 解压到本地目录 <WEBTEST_HOME> (例如, C:\webtest)
— Add <WEBTEST_HOME>\bin to your PATH (控制面板–>系统–>高级–>环境变量)
–cd <WEB_HOME>\doc\samples 运行:
webtest -buildfile installTest.xml

一般来说,运行test cases用这样的语法:
webtest -buildfile <testcasefile>

例如,

webtest -buildfile mytest.xml

(1)test cases目录结构

建立一个目录叫testcases,testcases放到该目录下面

testcases
includes: 包含文件


Read More »

notes on Visibroker Naming Service implicit object cluster and stale object references

Visibroker Naming Service (VBNS) is the Corba naming services provided by Borland Visibroker. It supports implicit object clustering which allows you to bind multiple object references under one name. This is not CORBA compliant, how ever it allows easy/transparent clustering of corba objects instead of explictly going through the hassle of ClusterManager.

Several things to note for implicit object cluster mode:
(1) if the peroperty “vbroker.naming.propBindOn” is set to 1, the implicit…


Read More »

Passing an array of objects when calling a document/literal web service with perl soap::lite

One recent problem I encountered was that I had to write a PERL client for an existing document/literal web service. The service is using polymorphism– there are two methods:

Product[] getProducts1(Products[] products1);
Product[] getProducts2();

“Product” is only an interface. Product1 and Product2 are concret classes that implement the “product’ interface. and the objects in the products array are either Product1 objects or Product2 objects;

Interface Product {
    public String getName();

Read More »

Specifying a Vector-type bean property in Spring bean config XML file

In Spring IOC framework you can define bean properties of some collection types, such as List, Set, Propertie and Map. For example, for a bean that has a property “theList” of type “java.util.ArrayList”, you can specify the value as below:

&lt;bean id="exampleBean" class="examples.ExampleBean"&gt;
&nbsp;&nbsp;  &lt;property name="theList"&gt;
&nbsp; &nbsp; &nbsp; &nbsp;       &lt;list&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;          &lt;value type="java.lang.String"&gt;a…

Read More »

html2opml — my html to opml converter

I tried to import my firefox bookmarks into blogrolling and found that it only accepts OPML but not html. So i wrote a small utility that converts html to opml.

html2opml is a php script that simply converts html to a opml file, and every URL in the HTML input will become an entry in the generated OPML. Since most entries in my bookmarks does not have RSS feeds only “link” type opml outlines with “Url” attribute are created.

The html2opml online utlility is at


Read More »

hacking ganux

Ganux simulates a linux terminal through a browser. According to the author: “I have changed it into a hacking-game. The objective of this game is to gain root of this “machine”. I can assure you that this’s not easy! A surprise will be given to those who can hack into it!”

So this is a minimum operating system running on the browser– quite interesting. I spent some time to look into the javascript code to find the secret there. Apparently it’s not difficult– basically it uses javascript to…


Read More »