1. nginx 配置支持flash跨域 在匹配的location 添加 

add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;

2. andriod 入门

http://www.runoob.com/w3cnote/android-tutorial-intro.html
http://coderpig.cn

3. 

sdl_image
http://www.libsdl.org/projects/docs/SDL_image/SDL_image_1.html#SEC1

sdl gui
http://sol.gfxile.net/imgui/

https://github.com/MetaCipher/sdl-2.0-textures

4. 通过ip判断运营商  调用api查询

$jsonStr = file_get_contents('http://ip.taobao.com/service/getIpInfo.php?ip='.$ip,0, stream_context_create(array(
'http' => array(
'timeout' => 7,
),
))
);
if(!empty($jsonStr)){
$data = json_decode($jsonStr,true);
if($data['data']['isp']=="移动") {
return 1;
}
if($data['data']['isp']=="电信") {
return 2;
}
if($data['data']['isp']=="联通") {
return 3;
}
}

return -1;

5.  linux 程序运行和配置

linux指定用户运行程序 可用
sudo -u user command

查看监听端口
netstat -tln
netstat -ant | grep 9000

nginx 连接php 错误
1. php-fpm 是否启动
2. 转发地址是否正确 是ip 还是 socket 检查php-fpm和nginx配置文件

 

6. 声音多通道的原因: 方位(相位),频率 人两只耳朵听出方位。

https://zhidao.baidu.com/question/360325075866283852.html
https://blog.csdn.net/STN_LCD/article/details/72900861
https://blog.csdn.net/wishfly/article/details/49493855

 

7.mfc 动态和静态创建按钮 即拖动放置按钮还是代码创建按钮

https://blog.csdn.net/phenixyf/article/details/72760391

8.网盘现在不限速软件

http://pandownload.com/document/download.html

 

9.  linux 删除七天

find /var/www/html/hlsrecord/ -mindepth 2 -type d -name '11*' -ctime +3 | xargs rm -rf

10 4 * * * find /var/www/html/hlsrecord/ -mindepth 2 -type d -name '20*' -ctime +2 | xargs rm -rf

 

posted on 2018-10-22 12:08  swing07  阅读(102)  评论(0编辑  收藏  举报