旅游大军开拔

清晨8点50分,赶到 Avenue des Champs-Élysées 加入旅游团,顿时有找到组织的感觉。这是50多人的大团,我们坐一辆大巴,离开法国,首站比利时布鲁塞尔。 项目安排是在4天内拜访4个国家。尽管我羡慕老外多是清闲的度假方式,但我还处在旅游的初级阶段,有太多的好地方没去过,无法在一个地方耗磨时间,所以羡慕归羡慕,执行起来仍是选择蜻蜓点水式的项目。丽丽导游称此行是“印象之旅”,非常贴切。 团员以留法的中国学生为主,而且女生占绝大多数(不晓得为什么,难道男生不喜欢出游?)。导游介绍完行程后,请每个人做个自我介绍。其中一个小女生的介绍很有意思,她说她最近学习没学好,学英语嘛考了托福以7分之差挂了,学法语嘛也没通过学校的考试,她老爸说,“既然你没学好,那就去玩好吧”,于是她就入了这个团。我觉得她老爸给我点了一个子女教育的思路,只是不知道自己有没有魄力去贯彻这种思路。 在抵达布鲁塞尔之前,途经滑铁卢古战场短暂停留,然后进入欧洲首都布鲁赛尔市,游览原子球塔景区、中国楼、日本塔、独立门、王宫广场、市政厅、大广场、撒尿童等。夜宿布鲁塞尔 Holiday Inn Express。

Embracing Paris

I have been in Europe for long time, but never had a chance to visit mainland Europe. Too busy or no spare money seems to be the reasons. Today, after long time dreaming, my wife and I finally landed Paris Station (Gare du Nord) via eurostar on 9:00 am Paris time. We left language at… Continue reading Embracing Paris

Windows support hard link and symbolic link as well

很多地方在解释 Linux 软连接时都喜欢把它比作 Windows 的快捷方式(当然它们是有实质区别的),而且在解释硬连接时找不到 Windows 下的对应事物。 但,我绝没有想到 Windows XP 也能建立如同 Linux 下的硬连接(真正意义上的硬连接,最简单的办法就是下载 Link Shell Extension 来用),据说 Vista 还能建软连接。是不是我的思维太激进了,总认为 Windows 要成为末日黄花?我看到在 Linux 下很普通的技术在 Windows 里也有就觉得很惊奇。

Format date in merge field

Formating date correctly is one of the troublesome work in all computer languages because remembering how to format is difficult. In Microsoft Word, the formatting process is – Press Alt+F9 to show the merge field code Add the format string to {MERGEFIELD mydate } The code looks like {MERGEFIELD mydate \@ “dd/MM/yyyy” }

I can’t find a way to assign two handlers to a script

这可能是一个不可能实现的任务。 Actinic 的动态部分是 perl 写的,我不想触及 perl,陆陆续续做了很多 extensions,都是 php 写的。Actinic perl 有很多漏洞,其中一个就是会把我的 php 源码暴露。可能 Actinic 的目标用户都是 htmler,根本没指望 phper 会给它写 extensions(我也是没办法,早就不想干了)。我能做的,就是尽可能地调整 php 的代码方式,做到即使源码暴露了,也不包含机要信息。 我也不打算在 Actinic 浪费时间去研究怎么修改漏洞,只是最近把 apache module 研究了一遍,突然想重提这个历史遗留问题是否可以从 apache 方面给予弥补。漏洞的源头是 Actinic perl 读入我的 php script,当成 html 直接输出。如果能把 handler 再交给 php-cgi,那么 php tag 之间的内容就可以得到解析。 可是 apache 是以后缀推定 handler 的,那么某个后缀怎么可以有两个 cgi handlers?

PSP hidden fees

我们公司用着 PayPal。PayPal 问题很多,但我认为它仍不失为最好的 PSP (或者说最适合的)。 我老板不这么认为,他认为 PayPal 给顾客付款带来很多障碍(主要是限制已注册信用卡单独付款)。我认为这种限制是必要的,PayPal 不只是 PSP 产品,它要做 Express Checkout,它要给 seller protection (同时也给buyer protection),它必须改变常规信用卡付款的逻辑过程。 很多顾客不认可这种逻辑,也有顾客根本就反感 PayPal (总有些人在 PayPal 或 ebay 上有过失望或绝望的体验),导致我们最终决定换一个 PSP。如果当初走上 PayPal 算是我积极推荐的话,这次选择新的 PSP 我不想过多参与了。 最后选了个 Protx,因为它的收费太诱人了,每季度1000笔交易以下月费£20,以上10p每笔(似乎Protx的定价模型有问题,交易越多单笔交易反而更贵?不过我不去深究 Protx)。网上对 Protx 的评论都是正面的,我主要关心是否有 hidden fees,没见 Protx 负面报导。 于是老板着手落实。很快他就发现还有一个 IMA (internet merchant account) 费用没在 Protx 计算在内。这是一个灰色地带,因为我了解的 PSP 除了 PayPal 就是 WorldPay,它们都不牵涉 IMA(或者说它们本身就是 IMA),所以我是第一次听说从 PSP withdraw… Continue reading PSP hidden fees

I can’t find a way to group releted transactions in PayPal history download

I have tried all formats of PayPal Download History, and found “Comma Delimited – All Activity” is the most comprehensive one. I send it as an attachment for your review. My problem with this history is – every transaction has a different Transaction ID, it is not give me enough information to group related transactions.… Continue reading I can’t find a way to group releted transactions in PayPal history download

Zend PHP Server is out

事情总是很凑巧,这两天我在找 PHP Application Server,没找到理想的—— Phplens 虽然有我想要的功能,但做得太粗糙,而且不免费(免费的只支持30条记录,毫无用处)。 Zend Platform 高不可攀。 Phpappl 虽然免费,好多年前停止更新,不敢用。 今天 Zend 告诉我说,PHP Server 发布了(虽然还是测试版)。看来同我一样有这种需求的用户不少,被 Zend 盯上了。但各人对 application server 理解略有不同,不晓得 Zend PHP Server 是不是就是我想要的 PHP Application Server,得抽空试用一下。

Published
Categorized as 小小草 Tagged

Release on demand: new idea for courier service

On some ocassion, we need some kind service of “release on demand”. Courier service provider should think of offering it as a value added service. The scenario is – We have some customers are desparate for some products, but they can not pay the money up front. It is understandable. There may be a problem… Continue reading Release on demand: new idea for courier service

So many bugs in ispconfig

ispconfig 可以做 hosting account management,但给我的感觉是打磨得不够精致。如果把它应用到生产环境,如果不怕客户抱怨,如果喜欢捉虫游戏,那倒可以用 ispconfig,毕竟免费的嘛,我看功能跟 isp 自己开发的 control panel 差不多(如 godaddy 的 turbo panel)。我感觉 ispconfig 还无法跟 cPanel, plesk 相抗衡,用在开发环境还凑合。 凭我的肉眼,我就发现了以下几个说大不大,说小不小的毛病。 按 ispconfig installation on Fedora documentation 一步步安装完毕以后,其实并没有安装 mod_fastcgi 或 mod_fcgid (暂且算是 documentation 失误吧),但控制面板里已经可以选择 php 模式为 fastcgi。我只好自己摸索着装 mod_fcgid。 但未装 mod_fcgid 倒没有问题,装好 mod_fcgid 重启 apache 反而会出错。因为 ispconfig.conf 里预设的 <IfModule mod_fcgid.c> 生效了,而里面一条 FCGIWrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter .php 会出错。原因是 /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter… Continue reading So many bugs in ispconfig