Archive for April, 2009

整理一下lighttpd+php在iPhone上的安装的方法

> Win32使用putty,linux和mac osx使用ssh连接到iPhone;

> 安装php和lighttpd;

apt-get update; apt-get install php; apt-get install lighttpd

> 创建布署目录;

mkdir -p /var/www/htdocs

> 修改lighttpd配置;

vi /usr/local/etc/lighttpd.conf

修改:

server.document-root = "/var/www/htdocs"
server.modules = ( "mod_fastcgi" )
server.tag = "lighttpd 1.4.18/PHP 5.2.8 (cgi-fcgi)"   #此处可以随意填写
server.pid-file = "/var/run/lighttpd.pid"
index-file.names = ( "index.php", "index.py", "index.html", "index.htm" ) #根据自己需要填写
static-file.exclude-extensions = ( ".php", ".fcgi", ".cgi", ".py" )
fastcgi.map-extensions = ( ".php3"=>".php" )
fastcgi.server = (
    ".php"=>((
        "host"=>"127.0.0.1",
        "port"=>9000,
        "broken-scriptfilename"=>"enable",
        "fix-root-scriptname"=>"enable"
    ))
)

cgi.assign = (
     ".py" => "/usr/bin/python"  # 如果安装python的话,可以考虑添加这行
)

#其它保持不变
memetype.assign ...

> 运行;

php-cgi -b 127.0.0.1:9000 &

lighttpd -f /usr/local/etc/lighttpd.conf &

> 测试;

echo "<?php phpinfo(); ?>" > /var/www/htdocs/info.php

打开safari,输入地址 http://localhost/info.php

 

以上操作必备条件,jb过的iPhone,已经安装unix subsystem,mobile terminal,cydia,openssl,openssh。

Cydia开发者投靠M$

Cydia首页发表声明,Cydia开发者Jay Freeman(saurik)已经将iPhone上最好的第三方在线软件管理器Cydia出售给Microsoft,并表示自己将致力于.NET与Objective-C连接器的开发(用.NET开发iPhone GUI应用)和Silverlight的iPhone移植工作 ......

原文:

ok, don't hate me: I totally sold Cydia to Microsoft, and am now working on a .NET to Objective-C connector with the eventual goal of porting Silverlight.

Apparently, Microsoft has a booth here at CTIA, and Bill Gates decided to show up in order to make the deal himself: he feels thy need this to compete with Apple's mobile strategy.

I'm not exactly certain what this will mean for Cydia, but I'm certain that it will be positive: probably a new look based on Aero and integrated support for VBScript control files. I'm excited!

 

cydia

cydia

microsoft

microsoft

 

Read more »

Flash毒药收集

第一剂:

new Matrix3D().append(null);

杀伤力: 4星
辐射面: flash cs4, flashplayer 10.*, as3
症状: flash cs4 意外退出,flashplayer 10.*直接crash
来源: D.S

第二剂:

var a=<a><n/></a>
a.@* = a.@*;
a.toString();

杀伤力: 5星
辐射面: flash cs3/4, flashplayer 9/10, as3
症状: flash cs3, 4 crash,flashplayer9以上播放swf时直接crash
来源: Ticore's Blog

第三剂:

Object['isPrototypeOf']();
Object['hasOwnPrototype']();
Object['propertyIsEnumerable']();
Object['setPropertyIsEnumerable']();

//(以上任意一行)

杀伤力: 5星
辐射面: flash cs3/4, flashplayer 9/10, as3
症状: flash cs3, 4 crash,flashplayer9以上播放swf时直接crash
来源: Ticore's Blog