Vern's Blog

2009-11-03

scrubbed

Nov 03 13:55:55.152 [warn] Failed to find node for hop 0 of our path. Discarding this circuit.
Nov 03 13:55:56.156 [warn] Failed to find node for hop 0 of our path. Discarding this circuit.
Nov 03 13:55:57.160 [warn] Failed to find node for hop 0 of our path. Discarding this circuit.
...
Nov 03 14:00:37.163 [notice] Tried for 120 seconds to get a connection to [scrubbed]:80. Giving up. (waiting for circuit)
Nov 03 14:00:37.163 [notice] Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Nov 03 14:00:37.163 [notice] Tried for 120 seconds to get a connection to [scrubbed]:443. Giving up. (waiting for circuit)
Nov 03 14:00:37.163 [notice] Tried for 120 seconds to get a connection to [scrubbed]:80. Giving up. (waiting for circuit)
Nov 03 14:00:37.163 [notice] Tried for 120 seconds to get a connection to [scrubbed]:80. Giving up. (waiting for circuit)
...
Nov 03 14:08:20.727 [notice] no known bridge descriptors running yet; stalling
Nov 03 14:08:21.731 [notice] We now have enough directory information to build circuits.

2009-10-24

QQ 内部版本号列表

FROM: http://bbs.cyboma.com/viewthread.php?tid=10738&extra=&page=1

193F=【QQ2009 正式版 SP2 性能优化测试版】
190F=【QQ2009 正式版 SP4】
1909=【QQ2009 正式版 SP4 试用版】
1843=【QQ2009 正式版 SP2 传文件夹测试版】
1837=【QQ2009 正式版 SP3】
1831=【QQ2009 正式版 SP3 试用版】
175F=【QQ Internation Beta1】
1759=【QQ2009 正式版 SP2】
1753=【QQ2009 正式版 SP2 试用版】
1663=【QQ2009 正式版 SP1】
165D=【QQ2009 正式版 SP1 试用版】
1651=【QQ2009 正式版音视频优化版】
164A=【TM2009 Beta1.X系列】
1645=【QQ2009 正式版】
1644=【TM2009 Beta1】
163F=【QQ2009 正式试用版】
163A=【QQ for Mac 1.0 Beta1】
1621=【QQ2009 Beta2】
161B=【QQ2009 Beta2 试用版】
160F=【QQ2009 Beta1 传文件优化版】
1549=【QQ2009 Beta1】
1525=【QQ2009 Preview4】
1519=【QQ2009 Preview3 Build 431/450】
1513=【QQ2009 Preview3 界面优化版】
150D=【QQ2009 Preview3 音视频优化版】
1501=【QQ2009 Preview3】
1447=【QQ2009 Preview2 Build 107/118】
1441=【QQ2009 Preview2】
1440=【TM2008 Beta1】
143C=【QQ for Mac 1.0 Preview3】
141D=【QQ2009 Preview1】
141C=【TM2008 Preview4】
1418=【QQ for Mac 1.0 Preview2】
1412=【QQ for Mac 1.0 Preview1】
140F=【TM2008 Preview3】
140D=【TM2008 Preview2】
140B=【TM2008 Preview1】
1407=【QQ2007 蜂鸟 Alpha1 Demo】
1334=【QQ腾讯客户管理系统(CRM)】
1251=【QQ2008II Beta1 SP1】
1237=【QQ2008II Beta1】
1235=【QQ2008II Beta1 会员体验版】
1233=【QQ2008II Beta1 内测版】
1221=【QQ2008I 正式版】
121F=【QQ2008I 正式试用版】
120B=【QQ2008I Beta2】
1205=【QQ2008I Beta1 祈福版】
1203=【QQ2008I Beta1】
1201=【QQ2008I Beta1 会员体验版】
1163=【QQ2008I 视频优化特别版V2】
1161=【QQ2008I 视频优化特别版V1】
115B=【QQ2008I 贺岁版】
1156=【QQ for Linux 1.0 Preview1 Build 106】
114D=【QQ2007II 正式版 KB1】
114B=【QQ2007II 正式版】
1149=【QQ2007II 正式会员体验版】
1147=【QQ2007II 正式试用版】
1141=【QQ2007II Beta2 SP2】
113F=【QQ2007II Beta2 SP1】
113D=【QQ2007II Beta2】
1133=【QQ2007II Beta1】
1131=【QQ for Linux 1.0 Preview1】
111D=【QQ2007I 正式版 KB1】
111B=【QQ2007I 正式版】
1119=【QQ2007I 正式试用修正版】
1117=【QQ2007I 正式会员体验版】
1115=【QQ2007I 正式试用版】
1105=【QQ2007I Beta4 KB1】
1103=【QQ2007I Beta4】
1101=【QQ2007I Beta4 会员体验版】
1053=【QQ2007I Beta3 KB1】
1051=【QQ2007I Beta3】
1037=【QQ2007I Beta2 KB1】
1035=【QQ2007I Beta2】
1033=【QQ2007I Beta2 内测版】
1031=【QQ企业空间版】
1023=【QQ2007I Beta1 KB1】
1021=【QQ2007I Beta1 Support Vista】
101F=【QQ2007I Beta1】
0FFB=【QQ2006 正式版】
0FF1=【QQ2006 正式泄露版】
0F5F=【QQ2006 正式试用版】
0F39=【QQ2006 Beta2 繁体版 SP1】
0F32=【TM2007 Beta1 SP1】
0F30=【TM2007 Beta1 Support Vista】
0F2E=【TM2007 Beta1】
0F0C=【TM2006 新春版 Build 05E8】

pidgin QQ 插件(2008)使用的版本号

2009-10-13

Maemo icon

FROM: http://thpinfo.com/2008/02/maemo-icon-sizes.html

I had a hard time finding out which icon sizes one has to provide and
where to install them for Maemo applications (I'm currently developing
for OS2008 "chinook", might be different for other releases). Here is
what I found out by looking at the contents of other GUI packages:

26x26 icon goes to /usr/share/icons/26x26/hildon/appname.png
40x40 icon goes to /usr/share/icons/40x40/hilson/appname.png
64x64 icon goes to /usr/share/icons/scalable/hildon/appname.png

The 64x64 icon will be used in the menu, so be sure to make it really
64x64, otherwise the icon will look out of place in the menu. Also, be
sure to create an executable "postinst" file in the "debian/"
subdirectory of your package source that has at least the following
two commands:

gtk-update-icon-cache -f /usr/share/icons/hicolor
maemo-select-menu-location appname.desktop

Where of course "appname" is the name of your application and how you
named your icon and .desktop file.

2009-10-09

如何在 Ubuntu下配置 TOR bridges

FROM: http://vangie.bothlog.com/2009/09/27/%E5%9C%A8ubuntu%E4%B8%8Btor%E9%85%8D%E7%BD%AEbridges%E7%A9%BF%E5%A2%99/

Step1: 获取网桥地址

用你的gmail帐号发送主题和内容为"get bridges"的邮件至bridges@torproject.org

Step2: 配置Tor网桥

首先,备份原Tor配置文件torrc至备份目录:

sudo cp -p /etc/tor/torrc your-backup-directory

然后在torrc配置文件末尾添加"UseBridges 1"开关选项(默认是0, 即关闭状态),

UseBridges 1

UpdateBridgesFromAuthority 1

最后,将bridges@torproject.org回复邮件中的bridge列表附加至torrc配置文件末尾,请按回复邮件中的bridge的原有格式添加,即:

bridge ip:port fingerprint

上述两篇博客中谈到的邮件中有fingerprint字段,我收到的邮件中没有,但是测试后发现同样有效

Step3: 重启Tor和Privoxy

sudo /etc/init.d/tor restart
sudo /etc/init.d/privoxy restart

2009-08-19

结构数组的初始化方法

typedef struct memory_area_struct {
unsigned int start;
unsigned int size;
int used;
} memory_area_t;

#define NUM_MEM_AREAS 10
memory_area_t memory_map[NUM_MEM_AREAS] = {
[0 ... (NUM_MEM_AREAS - 1)] = {
.start = 0,
.size = 0,
.used = 0
},
};

about &

FROM: http://www.ibm.com/developerworks/cn/linux/l-cn-nohup/

这里还有一个关于 subshell 的小技巧。我们知道,将一个或多个命名包含在"()"中就能让这些命令在子 shell
中运行中,从而扩展出很多有趣的功能,我们现在要讨论的就是其中之一。当我们将"&"也放入"()"内之后,我们就会发现所提交的作业并不在作业列表中,也就是说,是无法通过jobs来查看的。让我们来看看为什么这样就能躲过
HUP 信号的影响吧。

subshell 示例
[root@pvcent107 ~]# (ping www.ibm.com &)
[root@pvcent107 ~]# ps -ef | grep www.ibm.com
root 16270 1 0 14:13 pts/4 00:00:00 ping www.ibm.com
root 16278 15362 0 14:13 pts/4 00:00:00 grep www.ibm.com
[root@pvcent107 ~]#

从上例中可以看出,新提交的进程的父 ID(PPID)为1(init 进程的 PID),并不是当前终端的进程
ID。因此并不属于当前终端的子进程,从而也就不会受到当前终端的 HUP 信号的影响了。

use x86 to test and armel only for cc


FROM: http://n2.nabble.com/Not-getting-hildon-theme-for-Armel-terget-and-unable-to-build-for-Armel-terget-td2953653.html


please use the x86 target to test your applications and the armel target *only* for cross compiling. starting the window from the armel target will fail. For further information please have a look at the release notes [1].


And the mmap issue is handled here now [2] I guess ;)

[1] http://repository.maemo.org/stable/4.1.2/maemo-sdk-relnotes_4.1.2.txt

[2] http://maemo.org/community/maemo-developers/not_able_to_build_application_for_armel_terget

博客归档