看看想想记记
2007-11-26Tech

2条评论
403 views

ajax提交和显示数据乱码?

最简单的办法是:

Apache2里面把httpd.conf设置

Defaultcharset GB2312

这样显示和提交就统一成GB2312….

2007-11-20Tech

没有评论
365 views

urlRewrite设置,这的确 是个好东东

前提是:Apache2
LoadModule rewrite_module???? modules/mod_rewrite.so

rewriteengine on
为开的情况,,如下:

放入虚拟主机中:


<VirtualHost *>
??? ServerAdmin webmaster@dummy-host.example.com
??? DocumentRoot E:\web\htdocs
??? ServerName www.XXX.com
<IfModule mod_rewrite.c>
??RewriteEngine On
#??RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2
#??RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
#??RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3
#??RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3
??RewriteRule ^/cha-(.+)$ /index.php?q=$1
?</IfModule>

所以情况是:
http://www.xxx.com/cha-jetwong
对应的地址就是
http://www.xxx.com/index.php?q=jetwong

当然也可以整成假html页面的。
</VirtualHost>

参考来源:

2007-11-05Symbian

没有评论
3,543 views

Fepexample真机调试~~

源起:
FORUM nokia 提供Symbian 3rd的源代码:

http://www.forum.nokia.com/info/sw.nokia.com/id/43ce27a1-ade6-4dbc-9450-932367982844/S60_Platform_FEP_Example_v2_0_en.zip.html

Carbide C++编译:
常见错误:修改FepExample_S60_3rd_ed.pkg
加入正确路径:
"\Symbian\9.2\S60_3rd_FP1\Epoc32\release\gcce\urel\FepExample.dll" -"!:\sys\bin\zhi6.dll"
"\Symbian\9.2\S60_3rd_FP1\Epoc32\Data\z\resource\plugins\FepExample.rsc" -"!:\Resource\Plugins\zhi6.rsc"

按照Developer Certificate证书在symbiansinged生成sisx
但是安装到选择安装目录时出现”未授予所需的程序接入权限”(Required application access not granted)

解决方案:

参考这个仁兄:http://discussion.forum.nokia.com/forum/showthread.php?t=119231

所以我们可以这样做:elftran这个程序:
1.选好:phone release(GCCE),pkg文件不要选

2.这一项最重要:cmd下命令:

C:\Documents and Settings\k>elftran -capabilities LocalServices+Location+Network
Services+PowerMgmt+ProtServ+ReadDeviceData+ReadUserData+SurroundingsDD+SwEvent+T
rustedUI+UserEnvironment+WriteDeviceData+WriteUserData C:\Symbian\9.2\S60_3rd_FP
1\Epoc32\release\gcce\urel\fepexample.dll

ELFTRAN – ELF file preprocessor V02.01 (Build 564)
Copyright (c) 1996-2006 Symbian Software Ltd.

3.再编译生成sis:
直接用carbide c++选pkg来build就OK

再把生成的sis自做签名:
signsis zhi63_071105_FepExample_S60_3rd_ed.sis zhi63_071105_FepExample_S60_3rd_ed.sisx my.cer key.key

上传到手机就OK~~~~不会再报错了….

其他相关文章:
1.symbian S60 v3刷机去掉权限限制:
Goodbye S60 Platform Security, Hello CAPABILITIES!

2.symbian签名绕开Manufacturer capability ,,,
How to grant any capability to self signed applications

3.S60 3rd MMP CAPABILITY的说明,很有意义
link here

4. the FepExample component has to be signed using the Manufacturer Approved Developer Certificate不是必须的,上面的做法就可以做到。。。

返回顶部