BMTD 's Yard of Fun

    Technology, Sports, Music, Chinese Essays

    Browsing Posts in Technology

    ASP.NET: by default app pool identity ASP/CGI: impersonated as authenticated user FASTCGI ( PHP fastcgi): app pool identity in order for php fastcgi to impersonate as authenticated user like cgi, need to set the following in php.ini: fastcgi.impersonate = 1

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

    Looking at cheap storage for hosting backup/archive… driving force: cost.  NetApp is too expensive. The following can be taken into consideration: – Amazon S3 web services. Since it’s only used for backup/archive the cost should not be too high. Need to analyze the cost though. Another potential issue is legal/privacy…      Technically the best way [...]

    got an error capturing an remote image using microsoft automated deploument service (ADS): the capture job failed with the error message: “Device or service connection does not exist”… Here is the sequence what I did: (1) on the reference win2003 system (remote target), installed ADS admin agent and started it (2) on the remote target, [...]

    前一段时间做一个中文全文检索的东东需要一个中文的停用词表 (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 [...]

    东拉西扯BBS

    BBS history

    BBS表格形 (flat view) VS 树形 (threaded view, tree view)的比较

    这是我们实现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: 存放测试结果和报告. [...]