wayofjsl.blogspot.com
[ C ] http request to server via TCP socket note ~ charles.world
http://wayofjsl.blogspot.com/2015/04/c-http-request-to-server-via-tcp-socket.html
去做,才會有經驗 ; 付出,才會有力量". 星期四, 4月 30, 2015. C ] http request to server via TCP socket note. Make a socket client to connect to server , and send a http-request. 星期四, 4月 30, 2015 by. 12304; المستقبل 】 (σ゚∀゚)σ. 訂閱: 張貼留言 (Atom). 12304; المستقبل 】 (σ゚∀゚)σ. Don‘t try so hard,the best things come when you least expect them to. C ] http request to server via TCP socket note. Linux ] bashrc note. Linux ] errno dont be changed in fork mode. Nodejs ] upload file to http server. Nodejs ] express mysql notes.
wayofjsl.blogspot.com
Reverse SSH Tunnel Note ~ charles.world
http://wayofjsl.blogspot.com/2015/03/reverse-ssh-tunnel-note.html
去做,才會有經驗 ; 付出,才會有力量". 星期一, 3月 16, 2015. Reverse SSH Tunnel Note. Reverse SSH Tunnel Simple Note. Local PC A : 192.168.11.9 Remote PC : 10.32.3.120 How to Remote ssh - Local PC A Local PC A : ssh -R 2222:localhost:22 charleslin@10.32.3.120 Remote PC : netstat -tnl grep 127.0.0.1 ssh charleslinLocalPCA@127.0.0.1 -p 2222. 星期一, 3月 16, 2015 by. 12304; المستقبل 】 (σ゚∀゚)σ. 訂閱: 張貼留言 (Atom). 12304; المستقبل 】 (σ゚∀゚)σ. Don‘t try so hard,the best things come when you least expect them to. Linux ] tar tar tar notes.
wayofjsl.blogspot.com
little-endian or big-endian ~ charles.world
http://wayofjsl.blogspot.com/2015/03/little-endian-or-big-endian.html
去做,才會有經驗 ; 付出,才會有力量". 星期二, 3月 17, 2015. 透過小程式確認device little-endian or big-endian. Int a = 0x12345678; int b = htonl(a); char *ptr = (char *)&a; if (*ptr = 0x12) printf("Big Endian n"); else if(*ptr = 0x78) printf("Little Endian n"); if(b= a) printf("Big Endian n"); else printf("Little Endian b %d a %d n",b,a); return 0;. 星期二, 3月 17, 2015 by. 12304; المستقبل 】 (σ゚∀゚)σ. 訂閱: 張貼留言 (Atom). 12304; المستقبل 】 (σ゚∀゚)σ. Don‘t try so hard,the best things come when you least expect them to. Arduino ] 入手玩玩.非常不習慣.
wayofjsl.blogspot.com
[ node.js ] express , easy way to setup web server ~ charles.world
http://wayofjsl.blogspot.com/2015/04/nodejs-express-easy-way-to-setup-web.html
去做,才會有經驗 ; 付出,才會有力量". 星期二, 4月 14, 2015. Nodejs ] express , easy way to setup web server. Express 1.js ). Vim express 1.js var express = require('express'); var app = express(); app.get('/',function(req,res){ res.send('Hello node.js! Var server = app.listen(3000, function(){ var host = server.address().address; var port = server.address().port; console.log('Express sample listening at http:/ %s:%s',host,port); });. Run express 1.js ). Node express 1.js Express sample listening at http:/ : :3000.
wayofjsl.blogspot.com
[ libcurl ] cookie 事件簿 ~ charles.world
http://wayofjsl.blogspot.com/2015/03/libcurl-cookie.html
去做,才會有經驗 ; 付出,才會有力量". 星期三, 3月 18, 2015. Libcurl ] cookie 事件簿. 剛好同事要在 header 加上 cookie 資訊. 當然是使用 curl easy setopt - set options for a curl easy. CURLcode curl easy setopt(. CURL *handle, CURLoption option, parameter);. 結果設定cookie . 但是header並沒有include.天殺的.怎麼可能. 兩台不同device type,卻有不一樣的結果.一台正常,另一台就像老大似的不給設定. CURLcode curl easy setopt(CURL *handle, CURLOPT HTTPHEADER, struct curl slist *headers);. 後來就使用設定 header list方式來處理.就成功啦. 感覺是兩間不一樣廠商,提供的lib版本不同造成.沒有仔細去追究.只能猜想. 星期三, 3月 18, 2015 by. 訂閱: 張貼留言 (Atom).
wayofjsl.blogspot.com
[Ubuntu] 透過Debootstrap 建立一ubuntu chroot環境 ~ charles.world
http://wayofjsl.blogspot.com/2013/12/ubuntu-debootstrap-ubuntu-chroot.html
去做,才會有經驗 ; 付出,才會有力量". 星期四, 12月 19, 2013. Ubuntu] 透過Debootstrap 建立一ubuntu chroot環境. 2 使用Debootstrap 建立一個基本的Linux Ubuntu系統. Building the LFS System. 星期四, 12月 19, 2013 by. 12304; المستقبل 】 (σ゚∀゚)σ. 訂閱: 張貼留言 (Atom). 12304; المستقبل 】 (σ゚∀゚)σ. Don‘t try so hard,the best things come when you least expect them to. Ubuntu] 透過Debootstrap 建立一ubuntu chroot環境. Mac] Macbook Pro install Ubuntu using refind boot. Raspberry 丌] ARM 開發板 Raspberry Pi Start. 3GS facetime with MBP. Android-x86 @ generic x86 version.
wayofjsl.blogspot.com
[ Arduino ] 入手玩玩...非常不習慣. ~ charles.world
http://wayofjsl.blogspot.com/2015/03/arduino.html
去做,才會有經驗 ; 付出,才會有力量". 星期日, 3月 22, 2015. Arduino ] 入手玩玩.非常不習慣. New Toys : Arduino. 這是一塊 microcontroller board , 想起以前念研究所時候.天天在碰. 把塵封已久的 Raspberry Pi 拿出來研究! 今天入手新玩具 Arduino 來撿回記憶 只是開發環境和方法.好不習慣. 這是購買的 入門開發套件 有很多套件可以用於 Raspberry Pi! 或許 兩塊板子 可以合作無間 找個案子來玩看看囉! 星期日, 3月 22, 2015 by. 12304; المستقبل 】 (σ゚∀゚)σ. 訂閱: 張貼留言 (Atom). 12304; المستقبل 】 (σ゚∀゚)σ. Don‘t try so hard,the best things come when you least expect them to. Linux ] tar tar tar notes. Arduino ] 入手玩玩.非常不習慣. Linux ] ctags and cscope. Design by WP Lift.
wayofjsl.blogspot.com
[ Linux ] ctags & cscope ~ charles.world
http://wayofjsl.blogspot.com/2015/03/linux-ctags-cscope.html
去做,才會有經驗 ; 付出,才會有力量". 星期六, 3月 21, 2015. Linux ] ctags and cscope. 筆記一下 ctags and cscope 指令 , 每次要用都忘記. Vim build dev env.sh. Find -name "*.h" -o -name "*.c" -o -name "*.cc" cscope.files. Cscope -Rbkq cscope.files. Ctags -R - c -kinds= p - fields= iaS - extra= q . CentOS$ find . -name "*.h" -o -name "*.c" -o -name "*.cc" cscope.files. CentOS$ cscope -Rbkq cscope.files. CentOS$ ctags -R - exclude=.git. CentOS$ mkdir /.vim. CentOS$ cd /.vim. CentOS$ tar zxvf taglist.tar.gz . 星期六, 3月 21, 2015 by.
wayofjsl.blogspot.com
[誒克斯摳] JB後免年費運用xcode ~ charles.world
http://wayofjsl.blogspot.com/2013/12/jbxcode.html
去做,才會有經驗 ; 付出,才會有力量". 星期一, 3月 16, 2015. 假如有著iOS 6.1.2版本以下的朋友,你JB了嗎? Device: iPad 2 JB , iOS 6.1.2 (還好我沒升777). Xcode : 4.6.3. 軟體源建議改用 repo.hackyouriphone.org. AppSync for iOS 6" (看你的Device version來安裝). 修改Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk下的. 接下來修改Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform下的Info.plist. 開啟你的專案.將Code Signing Identity都改成剛剛製作的fake憑證!! Failed to get the task for process". 只要在專案增加一個 Entitlements.plist檔案!就可以解決! 星期一, 3月 16, 2015 by.
wayofjsl.blogspot.com
[ Network ] use getaddrinfo to practice ~ charles.world
http://wayofjsl.blogspot.com/2015/03/network-use-getaddrinfo-to-practice.html
去做,才會有經驗 ; 付出,才會有力量". 星期二, 3月 17, 2015. Network ] use getaddrinfo to practice. 好少使用 getaddrinfo api to get information. 最近正在看 Beej's Guide to Network Programming. 就來個筆記一下,嘗試用新方法來建置 network programming. 文中提到的舊方法.我平時都這樣用.我已經老了嗎- -;. Showip example on gist. 星期二, 3月 17, 2015 by. 12304; المستقبل 】 (σ゚∀゚)σ. 訂閱: 張貼留言 (Atom). 12304; المستقبل 】 (σ゚∀゚)σ. Don‘t try so hard,the best things come when you least expect them to. Linux ] tar tar tar notes. Arduino ] 入手玩玩.非常不習慣. Linux ] ctags and cscope. Design by WP Lift.