小编Pai*_*dee的帖子

在新的Flash播放器14中,什么是"ExternalInterface使用JSON约定转义字符串"?

我使用ExternalInterface时出现错误,如下所示:

警告:对于内容定位Flash Player版本14或更高版本,ExternalInterface使用JSON约定转义字符串.为了保持兼容性,发布到早期Flash Player版本的内容将继续使用旧版转义行为.

我该怎么做才能防止出现警告以及我应该使用什么"遗留逃避"而不是"JSON约定"?

flash actionscript-3

7
推荐指数
2
解决办法
3395
查看次数

无法为HG的大文件扩展名使用过滤器模式

我的hgrc配置文件如下:

[扩展名]大文件=

[大文件]模式= * .jpg * .png * .bmp * .gif * .mp3 * .a * .jar * .psd * .ai * .unity * .ttf * .zip * .rar

我通过创建一个文件进行测试a.jpg,hg add --large a.jpg,文件已经.hglf正确创建。我创建了b.jpg,hg add b.jpg,文件也已经.hglf正确创建。

如果我不先添加--large a.jpg,则由于某种原因该操作将失败。

接下来,我创建了子目录,在其中创建了c.jpg文件,在其中添加c.jpg,在.hglf中未创建任何内容。这使得过滤器模式在子目录中后不再起作用。我应该怎么做才能为回购中的所有文件“ hg add *”,并正确过滤哪个是文本文件,哪个是二进制文件作为.hgrc配置文件中的配置文件。

mercurial hgrc

3
推荐指数
1
解决办法
249
查看次数

使用php-fpm的Nginx错误

我从nginx的错误日志继续说:

[错误] 82305#0:*542243 connect()到unix:/var/run/php5-fpm.sock连接上游时失败(146:连接被拒绝)

大约每30秒.但是,我的php-fpm日志在该错误期间没有显示任何内容.只有nginx显示日志.我的php-fpm的nginx配置如下:

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass   unix:/var/run/php5-fpm.sock;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_read_timeout 1200s;
        include        /opt/local/etc/nginx/fastcgi_params;
    }
Run Code Online (Sandbox Code Playgroud)

编辑:刚添加nginx和php-fpm的完整配置:

user   www  www;
worker_processes  4;
worker_rlimit_nofile 65536;

#error_log  /var/log/nginx/error.log;                                                                                                                                                                           
#error_log  /var/log/nginx/error.log  notice;                                                                                                                                                                   
#error_log  /var/log/nginx/error.log  info;

#pid        /var/db/nginx/nginx.pid;

events {
    # After increasing this value You probably should increase limit
    # of file descriptors (for example in start_precmd in startup script)
    worker_connections  1024;
}


http {
    include       /opt/local/etc/nginx/mime.types;
    default_type  application/octet-stream;
    client_max_body_size 100m;

    #log_format  main  '$remote_addr - $remote_user …
Run Code Online (Sandbox Code Playgroud)

php nginx

2
推荐指数
1
解决办法
2万
查看次数

在unity3d 4.3中spritesheet动画中每秒的帧数是多少?

在unity3d 4.3中spritesheet动画中每秒的帧数是多少?或者我可以手动设置吗?我想知道我是否有30帧,完成spritesheet动画需要多少时间.

2d sprite-sheet unity-game-engine

1
推荐指数
1
解决办法
7770
查看次数