每周散記 20181022

來源:互聯網
上載者:User

標籤:details   xtu   配置   decode   cat   add   fpm   ext   ant   

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
72900861
49493855

 

7.mfc 動態和靜態建立按鈕 即拖動放置按鈕還是代碼建立按鈕

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

 

每周散記 20181022

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.