February 8, 2009 – 9:58 pm | Comments: 11 |
My previous hosting service provider no longer offers VM for me, so I have moved my site back to a hosting service in China. Since packets are filtered in China, the site might not be accessable for some areas (I have no idea which areas are affected though), such areas might have problem using iLiberty+ payload retrieving facility. Sorry for the inconveniency.
UPDATE: If you’re getting 10060 error while accessing the payload repo, try change the URL to: http://iliberty.insideiphone.com/repo.plist
UPDATE: the old domain name (zjlotto.com) no longer works for me, if you’d like to download any files on this site, you have to change the URLs manually, replace any zjlotto.com with insideiphone.com. For example, change the URL http://iliberty.zjlotto.com/repo.plist to http://iliberty.insideiphone.com/repo.plist.
January 8, 2009 – 3:01 pm | Comments: 0 |
Recently I’m developing a server module with Python, the module will initiate thousands of connections to a Jabber server, and there’re many clients connect/disconnect to/from this module, so I’ve created a pool to hold all the connections.
To maintain such a pool, the module has to frequently construct object (when user connects) and deconstruct object (when user leaves), I implement the module using Twisted framework. After some tests, there seems memory leaks, this is not allowed for a server-side application, so I tried to hunt the leak down, after some tests I finally found where the problem exists.
Read More »
December 12, 2008 – 9:12 am | Comments: 5 |
Today I received a mail which offered an ‘opportuniy’ to make huge bucks from iPhone 3G unlock, the deal looked like this:
hi, hello, i got my version 2.0 3G 16GB black phone bought in gray market shop in malaysia fully unlock using iliberty plus. everyone was saying that 3G cannot be unlock, but i have dones it now. the system is still mines secret,but i have used your iliberty plus base only to success for unlock. this is first times in the whole worlds for 3G full scientific software unlock.if you are intereststed, we can discuss financial figures for passing the technologies over to youself. once time payment is required only, afterwords you can sell for million $$$$ to millions peoples waiting for so long for 3G unlock.
i have kept gmail i.d. error, we will contact in correct way, firstly you must post on your site to address ******, yes, we are interested in your tecnologies. then we will forward everyway.
regards, for quick action to paste “yes reply” on your site.
Is this a deal or a scam? You decide :) But I think it’s just someone who was trying to fake people that he/she owns my blog LOL.
November 17, 2008 – 1:20 pm | Comments: 1 |
NOTICE: This post is written in Chinese.
谷歌和百度
一直以来用Google的次数多,用Baidu的次数少,主要是搜索的资料经常是国外的,偶尔需要中文资料时才用用Baidu。另外,Baidu的竞价排名就是个垃圾,搜索出来的结果很多都是与搜索者本意没关联的。举个例子:今天看到个新闻,说是不要轻信网上搜索到的支付宝电话,我很好奇的分别在Google和Baidu试验了一下,得到了大相径庭的结果。
先看下面的Google搜索结果:

从Google的搜索结果里面可以看出,内容与搜索者本意非常贴切,直接反映了Google搜索的客观性和准确性。
Read More »
November 12, 2008 – 2:18 pm | Comments: 0 |
The QNAP NAS (in my case TS-209 II) uses an embedded Linux, during the system startup, a clean runtime environment is restored, then customized configurations are copied over to the default files, this makes a more stable system. After boot, the /etc folder is on a ramdisk (/dev/ram0), thus you can’t modify it as you usually do on a normal Linux.
If you wanna execute some custom scripts during system startup, you can’t simply edit /etc/rc*.d files because these files are on ramdisk. There’re some ways to let system execute your personal scripts during startup, the most dangerous way is to modify the initrd directly, in case you messed up something, your QNAP will be rendered useless unless doing a mtd restore through serial port.
I personally like to use pure software methods to do the trick.
Method 1
Utilize the autorun.sh script. This script is on /dev/mtdblock5, it is called each time system boots, so any modifications to it will take effect in the next reboot. To change its contents:
mount -o loop /dev/mtdblock5 /tmp/config
Then use your favorite editor to edit /tmp/config/autorun.sh, when you’re done, enter:
umount /tmp/config
This method is easy, but you can’t let the script do some cleanup before shutdown because the script is only called during system boot. If you would like some more controls, try the method shown below.
Read More »
November 11, 2008 – 5:08 pm | Comments: 37 |
This post introduces an ideal and safe method to change a TS-209 II into a TS-209 Pro II, the basic idea is to fake the hardware type during system startup, thus make a perfect hack.
There’s a utility /sbin/config_util which is used for many purposes, including get/set hardware signatures, we’ll use it to change the box type.
The Method
SSH onto your TS-209 II, then enter:
mount -o loop /dev/mtdblock5 /tmp/config
cd /tmp/config
Read More »
November 9, 2008 – 4:00 pm | Comments: 2 |
AD support is a feature available to QNAP TS-209 Pro II only. However, TS-209 II and TS-209 Pro II have exactly the same hardware specifications, the difference is in software. The two differences between a 209 II and a 209 Pro II are: support for NFS and AD (Active Directory).
I don’t know why QNAP sells the same thing in two prices. However, since they are only different in softwares, why pay extra $85 for the two additional software features when you can enable them by yourself ? In my last post I have described how to enable the NFS support on 209 II. This article describes how to enable the AD support on 209 II.
Read More »
November 7, 2008 – 1:57 am | Comments: 6 |
The QNAP TS-209 II and TS-209 Pro II have the same hardware specifications, however, the firmwares are slightly different, the main differences are: NFS and ADS support are only available on TS-209 Pro II. Afte some investigation, I found it’s easy to enable NFS on TS-209 II. This post describes the way to achieve it.
SSH to TS-209 II and then take the following steps:
1. Enable NFS support in system configuration
setcfg NFS Enable 1
This will create an NFS section in system configuration file (/etc/config/uLinux.conf) and add an item under the section which enables NFS during bootstrap.
2. Create user for NFS
TS-209 II defaults to run NFS with UID=500 and GID=20, so let’s create a user for it:
addgroup -g 20 nfsgroup
adduser -u 500 -G nfsgroup nfs
Read More »
November 5, 2008 – 3:01 pm | Comments: 0 |
An interesting picture from javaeye.com:

October 3, 2008 – 7:27 pm | Comments: 5 |
UPDATE: After replacing the screen, it works again. The replacement cost about US$175, half the price of V3.
I bought a Hanlin V3 eReader two weeks ago, it utilises e-ink technologies (vizplex), it has a 6″ screen, 512M memory, 800×600 resolution, 4 gray scales, and handles 13 file formats. It’s a product of Jinke. The device worked great, but yesterday it was broken when it hit to the ground from about 30 feet high (caused by my dog, last time he pushed my iPhone down to the ground).
The screen no longer reacts, here’s a photo of what it looks like now:

Before I sent it for screen replacement, I managed to take a look at what’s inside it, so I disassembled it and took some photos:
Read More »