Skip to content

Instantly share code, notes, and snippets.

View danhantao's full-sized avatar
🎯
Focusing

Jacob danhantao

🎯
Focusing
  • Jersey
  • 13:47 (UTC -12:00)
View GitHub Profile
https://github.com/roboguice/roboguice/wiki/CustomBinding
https://github.com/goodow/realtime-android/blob/v0.3.0/src/main/java/com/goodow/realtime/android/RealtimeApplication.java
https://github.com/goodow/drive-android/blob/v0.3.x/res/values/roboguice.xml
https://github.com/roboguice/roboguice
guice注入的三种方式
#http://book.51cto.com/art/200811/97246.htm
#http://dreamzhong.iteye.com/blog/1139484
http://dreamzhong.iteye.com/blog/1141335
sudo ssh -i '/home/xxx/dev/tools/bin/dev.pem' [email protected]
# ssh 用用户名密码登陆
sudo passwd root
vi /etc/ssh/sshd_config
找到 PasswordAuthentication no,把no改成yes
接下来,要重新启动下sshd
/sbin/service sshd restart
# service ssh restart
/etc/init.d/ssh restart
http://en.wikipedia.org/wiki/Operational_transformation
http://www.waveprotocol.org/whitepapers/operational-transform
http://sharejs.org/
https://www.facebook.com/pages/Operation-Transformation/227109470920
http://etherpad.org/
@danhantao
danhantao / word
Last active August 29, 2015 14:03
Protocol Specifications 协议规范
royalty-free n. 免版税
extremely adv. 非常,极其;极端地
code footprint 代码量
network bandwidth is at a premium 网络带宽非常宝贵
malformed adj. 畸形的,难看的
making its debut 首次亮相
quiesce vi. 静默
# 有道单词本
http://www.eclipse.org/paho/files/javadoc/index.html
http://www.infoq.com/articles/practical-mqtt-with-paho
http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html
@danhantao
danhantao / mven android plugin
Last active August 29, 2015 14:03
aar apklib maven android plugin
1.结论:无法使用apklib
apklib生成的R文件是final的,能打包成apklib。但是在drive-android里面引入的时候,报错依然说不是常量。
aar生成的R文件非final的,生成aar的时候就就提示,无法通过。
2.无法使用roboguice里面的一些注解。
这个可以用tag标签来解决。
3.Also, add this to the android-maven-plugin's <configuration> tag:
<attachSources>true</attachSources>
http://blog.csdn.net/codehxy/article/details/25641339
http://blog.csdn.net/adreamer_bj/article/details/10355409
https://github.com/commonsguy/cwac-richedit
Google Drive Realtime API的开源实现:
https://github.com/goodow/realtime-store
有JavaScript Android IOS 客户端。
在线演示:
http://realtimeplayground.goodow.com/
1.下载
wget http://gerrit-releases.storage.googleapis.com/gerrit-2.9-rc2.war
2.重命名
mv gerrit-2.9-rc2.war gerrit.war
3.
sudo adduser gerrit2 # 添加用户
sudo userdel gerrit2 # 删除用户
sudo su gerrit2
# install gcc
apt-get install -y gcc
# install make
apt-get install -y make
# install jdk
cd /usr/local/bin/
mkdir java
cd java/