星期二, 3月 29, 2016

Retrofit android restful https

Retrofit Android example | Web services using Retrofit
http://www.androidwarriors.com/2015/08/retrofit-android-example-web-services.html

Retrofit Android Tutorial to Get JSON from Server

Android Studio Parsing Json Using Retrofit


Retrofit — Basic Authentication on Android
https://futurestud.io/blog/android-basic-authentication-with-retrofit

Make Your First Android App: Part 3/3
https://www.raywenderlich.com/56111/make-first-android-app-part-3

星期一, 3月 28, 2016

User Story Good Articles

用户故事驱动的敏捷开发 – 1. 规划篇
http://devopshub.cn/2016/02/28/user-story-driven-agile-development-1-planning/


http://geek.csdn.net/news/detail/63625


http://devopshub.cn/2016/01/10/user-story-mapping-for-the-first-time/
http://devopshub.cn/2016/01/11/how-to-create-user-story-mapping/

星期六, 3月 26, 2016

在ubutnu 14.04安裝ffmpeg


http://www.faqforge.com/linux/how-to-install-ffmpeg-on-ubuntu-14-04/

sudo add-apt-repository ppa:mc3man/trusty-media

sudo apt-get update
sudo apt-get dist-upgrade
 
sudo apt-get install ffmpeg

Why redirect output to 2>&1 and 1>&2?

 Why redirect output to 2>&1 and 1>&2?

http://superuser.com/questions/436586/why-redirect-output-to-21-and-12

簡單的說,就是把stderr(2) 轉向到stdout(1), 讓一些命令可以進一步處理,例如grep就只能讀stdout的資料,如果我們想處理stderr的結果,就要2>&1

另外一種情況是想把stderr的錯誤也記錄下來到同一檔案, 可以一樣的做法。

ns2 codelite debug gdb ubutnu 14.04 Setting

  1. Create Project using Project Wizard, and then select custom Makefile since we already have one in ns-2.35 directory
  2. Go to project setting to set the working directory


  • Remember to modify Makefile add -g setting for debug


  

  •  Enable gdb debug, then you can add breakpoint like visual studio.



  • Remember to right click the project, and select to "Import File(Directorys)...", in the filter, remember to add "*.cc;*.tcl" to add cc and tcl scripts  
ref: gcc setting in ubuntu 14.04, I have setting to gcc-4.4 and g++4.4, you need to do yourself

http://stackoverflow.com/questions/7832892/how-to-change-the-default-gcc-compiler-in-ubuntu/7834049#7834049 

http://stackoverflow.com/questions/14997275/gdb-and-ns2-how-to-stop-program-at-some-function-call