zoukankan      html  css  js  c++  java
  • 每周散记 20181022

    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

  • 相关阅读:
    python引用.py文件
    推荐系统之矩阵分解 转载 特别好
    数据挖掘之一元线性回归 python代码
    system服务文件讲解 转载
    bin sbin /usr/bin /usr/sbin区别 转载
    linux设置部门(或者学生部门)的共享目录
    Error establishing a database connection wordpress网站出现这个问题centos7的
    tomcat的java项目部署位置
    MAMP PRO教程
    MAMP使用简单教程
  • 原文地址:https://www.cnblogs.com/swing07/p/9829413.html
Copyright © 2011-2022 走看看