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

  • 相关阅读:
    SQL SERVER 将表字段值0和1互转的几种方法
    JS 解决 IOS 中拍照图片预览旋转 90度 BUG
    Js利用Canvas实现图片压缩
    IIS 下调用证书出现异常解决方案 (C#)
    C# 如何防止重放攻击
    RSA,JAVA私钥加密,C#公钥解密
    C# 字符串按 ASCII码 排序,注意其中的小坑
    C# dynamic类型报错:“object”不包含“xxx”的定义
    Angularjs 实现移动端在线测评效果
    C# 利用VS自带的WSDL工具生成WebService服务类
  • 原文地址:https://www.cnblogs.com/swing07/p/9829413.html
Copyright © 2011-2022 走看看