BMTD 's Yard of Fun

    Technology, Sports, Music, Chinese Essays

    Browsing Posts in Software

    my first iphone app, for haiguinet.com…. It’s in app store now: http://itunes.apple.com/us/app/id438046601 我得第一个iphone app : 海龟网iphone app正式上线, 可从app store 免费下载安装 大家可以在iphone上的app store 里搜索“归网”,然后免费下载安装。谢谢各位支持。 请在此报告问题或建议。 注: 在ios4.2 以上版本的iphone/ipod touch 上测试过。其他版本的ios未经测试。 开发感想: -- 虽然海归网总的感觉是在没落中,但是还是有不少的新老id在这里玩。。。这种亲切感挥不掉。希望通过这个小程序让大家玩得更方便一点。 -- 很不喜欢apple的xcode, 特别是interface builder. 个人觉得很垃圾。 -- objective-c 本身还是不错的语言,有不少好的动态特性;但内存管理比较乱,初学者很易摆乌龙。这点来说要不象c/c++那样完全显式分配、释放内存,要不象java/.net那样garbage collection; objective-c 的ref count 以及assign/copy之类很容易让人晕坨坨. --这是第一个moble app. 主要是体会一下在移动平台上开发的感觉,为有朝一日真正做商业产品的时候积累些经验。 -- 以后再做手机程序,除非用到一些特别功能, 可能最好用一些跨平台开发工具, 比如说 phonegap( http://www.phonegap.com) , [...]

    前一段时间做一个中文全文检索的东东需要一个中文的停用词表 (stopwords list), 网上搜索了半天找到了一些但都不是很满意,于是干脆自己根据词性加手工筛选,再加上英文的还有网上找到的, 合在一起作了一个新的stopwords文件。 有需要的朋友可以从这里下载: http://www.smartpeer.net/files/stopwords-utf8.txt 注意这是utf-8编码的,下载后根据自己的需要转成gbk/big5或其他编码。

    每次运行之前需要在数据库里populate需要的测试数据,这个可以用SQL ant task自动在test case里实现--相关test case第一步就是作数据初始化。 步骤: (1) 建议先写好SQL script,把这些sql文件放在单独的SQL目录里。(optional) (2) 把 mysql jdbc driver 文件 “mysql-connector-java-5.0.4-bin.jar”拷贝到 webtest的lib目录下,并且加入到java classpath (或者 webtest.sh /webtest.bat 的calsspath里) 哪里找文件 mysql-connector-java-5.0.4-bin.jar呢? --先从这里下载mysql-connector-java-5.0.4.zip : http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.0.4.zip/from/http://mirror.services.wisc.edu/mysql/ ,解压后你会看到mysql-connector-java-5.0.4-bin.jar. (3)写SQL task: 一个简单的SQL ant task是这样的: <sql driver="com.mysql.jdbc.Driver" url="jdbc:mysql://host:port/database" userid="sa" password="pass" src="data.sql" /> 意思是链接到位于 host:port的mysql数据库里的"database" schema, 用sa/pass登陆,然后运行 "data.sql"文件。 或者这样直接写sql语句: <sql driver="com.mysql.jdbc.Driver" url="jdbc:mysql://host:port/database" userid="sa" password="pass" ><![CDATA[ update some_table set [...]

    这是我们实现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: 包含文件 properties: 存储一些与环境相关或常变化的测试数据 modules:小的可重用的测试模块 UseCases : 对应于use cases的test cases TestResults: 存放测试结果和报告. [...]

    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 [...]

    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 [...]

    how to easily specify a Vector type bean property in Spring bean config XML file

    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 [...]

    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 [...]

    quoted from Greasemonkey’s web site (http://greasemonkey.mozdev.org/) : Greasemonkey is a Firefox extension which lets you to add bits of DHTML (“user scripts”) to any webpage to change it’s behavior. In much the same way that user CSS lets you take control of a webpage’s style, user scripts let you easily control any aspect of a [...]