Author: 芳草苑主

  • English chocolate

    有朋友从香港来,问我有什么英国特产可以带回去。我爱吃巧克力,脱口而出第一项就是巧克力,但仔细一想,其实我的最爱是瑞士三角巧克力(Toblerone)。

    我只知道英国以手工巧克力见长,但有哪些品牌呢?我一下子说不上来,回来做了功课,记录如下,可以应对访客了。

    • Bendicks: 御用巧克力
    • Amelia Rope: BBC 厨师大赛冠军之作
    • Thorntons: 最好吃的英国巧克力
    • Charbonnel et Walker: 英国老字号,电影《浓情巧克力》赞助商
    • Hotel Chocolate: 走高端路线,花式繁多
    • Demarquette: 奢华和艺术的结合
    • Montezuma’s: 便宜的奢侈巧克力
    • Cadbury: 畅销的大众品牌
    • Rococo Chocolate: 英国的法国味
    • Paul A Young Fine Chocolate: 味道好、得过奖
  • Is tethering available on GiffGaff Goodybags

    网络上信息丰富,但也滋生以讹传讹。

    GiffGaff Goodybags 能否做 Wi-Fi hotspots (tethering)?我搜来基本都说定量数据套餐的 GiffGaff Goodybags 可以 tethering,无限量数据套餐(12镑/月)不可以 tethering。我当时就对这种说法表示怀疑。

    从情理上说,这可以理解。但从技术上,GiffGaff 如何准确探测 tethering,从而限制 tethering 而不影响正常的手机上网流量,我认为是不可能的。

    或许 GiffGaff 可以从浏览器请求的 header 分辨 mobile browser 还是 desktop browser,但是 header 是可以自定义的,mobile browser 也可以 request desktop site,所以 GiffGaff 不能准确的判断流量来自 tethering 还是手机本身。

    今天,我激活了一张 GiffGaff SIM,£12 Goodybags with unlimited data,然后 tethering 测试了一下网速。结果是 tethering 毫无困难地连上了,上行速度 7.05 Mbps,下行速度 1.33 Mbps,相当不错,比我们家的 ADSL 实际速度还要快很多。

    GiffGaff network speed test
    GiffGaff network speed test
    Home ADSL speed
    Home ADSL speed
    Home ADSL speed test
    Home ADSL speed test
  • Why does screen scroll for no reason?

    近段时间用电脑上网,网页自动滚屏。我以为是无意中打开了 Firefox 自动滚屏的选项,找了一圈,发现 Firefox 确实有此类选项,不过我的 autoscrolling 并未选中,smooth scrolling 倒是选中的。我不清楚它们的区别,不过即使把两个 scrolling 都去除,网页仍在滚屏。后来发现,不光 Firefox 在滚屏,Chrome 也滚屏;LibreOffice 是来回跳屏,PDF Document Viewer 却是正常;打开地址栏下拉列表,立马自动关闭;打开菜单,却是正常。

    Firefox preference for autoscrolling
    Firefox preference for autoscrolling

    我转而搜索电脑无故滚屏或跳动的原因。网上有微弱的线索指向“鼠标滚轮出问题了”。我握在手中的是 Microsoft Wireless Mobile Mouse 3500,我以为是电力不足了。关闭了鼠标电源,问题依旧。

    我再仔细一看,这个电脑上还插着一个 PS2 鼠标,只不过搁置着,把它拔了,一切正常了。

  • Remove php-eaccelerator before updating php 5.3 to 5.4

    今天用 yum update 升级基于 CentOS 的服务器碰到一系列的 errors。

    Yum update errors
    Yum update errors

    我用了 –skip-broken 这个开关,不能解决问题。

    因为 errors 太多,我实在没兴致仔细看,曾经想重装 OS 得了。但终究有一条 error 引起我的注意:

    Error: Package: 1:php-eaccelerator-0.9.6.1-17.el6.remi.x86_64 (@remi)
    Requires: php-common(x86-64) = 5.3.16

    我尝试着卸载了 php-eaccelerator:

    
    yum remove php-eaccelerator
    
    

    然后再升级:

    
    yum update
    
    

    竟然错误没有了。升级成功!

    那就再把 php-eaccelerator 装回去吧。

    
    yum install php-eaccelerator
    
    

    装不上。可能是 remi 的 php 和 epel 的 php-eaccelerator 不兼容吧。

  • Find and share in Google Drive

    我今天才意识到,Google 域用户 Google Drive 共享设置里的 People at some domain find and view / find and edit,指的是用 link 去 find。我一直误以为是可以按 keyword 去 find,或许它会自动出现在域内所有用户的 Shared with me 列表里。

    Google drive share setting
    Google drive share setting

    如果做域内用户共享,应该手动发送 link 给他们;任何一个用户访问过该 link 以后,他的账号会出现在 Who has access 列表里。

    如果手动添加用户账号在 Who has access 里,他才能在 Shared with me 里看到该共享资源。这大概是 Shared with me 之所以叫 Shared with me 而不叫 Shared with us 的原因吧。

  • Social login plugin for WordPress, which one is the best?

    My client is asking a way to manage 3 WordPress sites in one place. I could use WordPress multisite feature by creating a network of sites. However, I felt difficult to control those sites when WordPress multisite was turned on. I would rather have those sites installed into separate databases but have a SSO feature. It is actually what my client is asking for.

    I started looking for a social login plugin for WordPress. I shortlisted four plugins.

    Social login plugins for WordPress
    Social login plugins for WordPress
    • Social Login
    • Social Login for wordpress (LoginRadius)
    • Social Login & Social Sharing by Janrain (Janrain Engage)
    • WordPress Social Login (WP Social Login)

    All installation, I found the first three plugins require create an account with a federal login service provider site of the author, I assume. Although a basic account accommodate 2,500 users or less is free, I do not want to create such an account. It adds risk – everyone can not login if the federal login service provider server is down. Meanwhile, social login is to eliminate create more and more account. I do not want to achieve this goal by creating an intermediate account myself.

    Luckily, I have the forth plugin – WordPress Social Login. It asks me to create Application ID and Applicate Secret with each login service provider. That is what I was expecting.

    It is a coincidence that all the first three social login plugins sit themselves in a top level menu in WordPress sidebar. Are they so important? I am not an aggressive person and I do not like aggressive software.

    WP Social Login modestly sit under Setting menu. That is the way I like!

  • Wasted 3 hours to save $1

    今年以来 GoDaddy 狠命促销新注册 .com 域名,推出好多 $0.99, $1.99, $2.99 就可以注册一年 .com 的优惠券。

    今天我需要新注册两个 .com。我不能免俗,首先是去用最大幅度的 $0.99 优惠券。试了好几个,终于有一个被 GoDaddy shopping cart 认可了。可是我在订单的最后一步卡住了,GoDaddy 在最后一页本该显示确认付款成功的时候说,无法接受这种方式的付款。

    网上有人提到这个优惠券在 checkout 什么阶段输入也很有讲究,他给出了 1234567 的步骤,我照着做了两遍,都不成功。我又怀疑是卡号信息输入错误,重输若干次仍不成功。换了几张卡来回试,也不成功。难道是 GoDaddy 账户个人信息长期不更新无法作 Whois 档案?我去更新了,依旧不成功。退出 GoDaddy 再登录,仍然不成功。清空历史、关闭浏览器、重新打开,不成功。换个浏览器,依然不成功。难道是 GoDaddy 支付网关系统维护中?睡了一觉继续付款,还是不成功。

    最后我只好打个电话给 GoDaddy,客服告诉我,我用的 $0.99 优惠券已经作废────可是它是被 GoDaddy shopping cart 接受的呀────不管啦,反正它是作废了。

    后来我也没找到更好的 $0.99 优惠券,只好用了一个 $1.99 优惠券,毫无悬念,成功了!此时已浪费了约三小时。

  • When will I get my £200 credit from O2?

    In June, 2012 I visited the O2 shop in 49 George Street, Hove, BN3 3YB, enqurying about opening an account and getting two Samsung S3 mobile phones. David told me I could get the phones virtually free by paying £99.99 upfront and he would credit me £100 into my account for each phone. I still keep his written notes, luckily.

    O2 credit promise
    O2 credit promise

    On the next day or two, I revisited the shop. I paid £199.98 for two phones. Christina went through the contract procedure with me. She was fully aware of the £200 credit. However, she told me, she could not add £200 to my account while I was there, because I was porting the numbers from Vodafone to O2. She had to wait a few days until the porting process finished and then my account was active. She said she would add £200 credit in a few days. So I left the shop with two new phones happily.

    I have no way to check if O2 has put £200 into my account or not. Only at the time O2 monthly direct debit shows on the bank statement, I know the credit has not been credited. I started tracing the credit in August, 2012. At first, I thought it is a piece of cake to get it back. I did not trace O2 hard. I popped into the O2 shop occasionally when I was on George Street for something else. Sometime I had chance to speak to David, sometime I did not. David never denied his promise – how can he? I am glad I have not thrown away these pieces of little notes.

    David asked me at least twice to write down my company name, address, account number, contact number. He always said someone would contact me. From my ten times visits, I received only one call from O2 in October, 2012 (or so, I can’t remember). But he did not sort out my issue straight away, instead he promised another call back within a week. Well, I never received a call back since then.

    My last visit to the O2 shop was three weeks ago. I met David. David must think he should do something differently this time. He composed an email to the Area Manager reporting this issue, and clicked “Send” in front of me. I took it that David wanted to correct an error happened 7 month ago, he need some kind of authorisation. David said someone, probably the Area Manager, would contact me by the Friday within that week.

    Well, more than a week passed. I had not been contacted by “someone”. I was not surprised this time. I must be a very patient man, but I lost my patience with O2 after half a year tracing the credit. I did something I was reluctant to do. I started a complaint procedure.

    I am annoyed at being badly serviced by O2 for 2 aspects.

    • Why O2 always ignore my queries? Why should I spend so much my valuable time tracing £200 credit? O2 wasted me much more than £200 worth of my time.
    • O2 customer services seem do not bother with what is happening in the O2 shop. They said to me “the O2 shop is franchised – you have to sort your credit with the shop”. It sounds like “it’s none of my business”. I regard the O2 shop part of O2. Whatever the O2 shop is doing wrongly will ruin the reputation of O2. O2 is responsible for all outlet channels. Even if O2 customer services are not able to sort out the credit alone. They should liaison with the shop instead of asking me to go to the shop.
  • Awful Baidu login

    我见百度文库上一篇文章不错,想要下载。这时百度提示我要登录:

    Baidu login prompt
    Baidu login prompt

    我是最烦注册登录的,但看到百度说可以使用QQ账号登录,我开心地登录了QQ。

    Baidu still require me to create an account after I have logged in QQ
    Baidu still require me to create an account after I have logged in QQ

    等一下,这是什么?!登录了QQ以后,百度仍然顽强地要我关联一个百度账号。那叫我使用QQ账号登录的意义何在?!是 Open Login 还是 Awful Login? 为了拉拢用户,却不注重用户体验,愚蠢的百度逻辑!

  • Streaming YouTube to an Android set top box

    I have an outdated LCD TV and a nearly outdated Android smart TV set top box. I mean, this Android smart TV set top box was bought a year ago, and it works very slow compared to current market products.

    I want to combine these two equipment to make a smart TV. Actually, the only functionality I need out of a smart TV is a DLNA/UPnP player. To be more specific, a DLNA/UPnP player for YouTube.

    I want to search for videos on YouTube using my mobile phone, stream to TV, and watch on TV. I do not want to search on this nearly outdated set top box because it is slow, and it accepts input via a fly mouse rather than a touch screen.

    At first, I tried to install a few apps (iMediaShare Lite, aMPdroid, DLNA Server) on the set top box, but none of them is a DLNA/UPnP player.

    Then I installed XBMC on the set top box, set it can be remotely controlled by UPnP. I also installed Beam on my mobile. Now I can stream YouTube video to my TV. However, XBMC is not reliable on this set top box, most likely due to some bug – this player is not always shown on the list of available DLNA/UPnP players. Every time I have to untick and retick “remotely controlled by UPnP” to force it.

    So I have not found a perfect solution for streaming YouTube video to an Android device. I may have to buy a new TV with DLNA/UPnP player built-in.