Maemo icon

RT @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 ....

2009-10-13 · wuan

如何在 Ubuntu 下配置 TOR Bridges

RT @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” 的邮件至 mailto:[email protected] Step2: 配置Tor网桥 首先,备份原Tor配置文件torrc至备份目录: sudo cp -p /etc/tor/torrc your-backup-directory 然后在torrc配置文件末尾添加"UseBridges 1"开关选项(默认是0, 即关闭状态), UseBridges 1 UpdateBridgesFromAuthority 1 最后,将 mailto:[email protected] 回复邮件中的 bridge 列...

2009-10-09 · wuan

about &

RT @http://www.ibm.com/developerworks/cn/linux/l-cn-nohup/ 这里还有一个关于 subshell 的小技巧。我们知道,将一个或多个命名包含在 “()” 中就 能让这些命令在子 shell中运行中,从而扩展出很多有趣的功能,我们现在要讨论的就是 其中之一。当我们将 “&” 也放入 “()” 内之后,我们就会发现所提交的作业并不在作业列 表中,也就是说,是无法通过 jobs 来查看的。让我们来看看为什么...

2009-08-19 · wuan

use x86 to test and armel only for cc

RT @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 ;)

2009-08-19 · wuan

结构数组的初始化方法

#include <iostream.h> 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 }, };

2009-08-19 · wuan