- Get source code
git clone https://kiennguyen@github.com/kiennguyen/exo-oauth.git
- Review difference or create patch
git status
git diff file_or_folder
git show commit_hash_id
git format-patch
git show c3c3ff1e4a5b4cc6043150d7b22ed575fa593439 > EXOGTN-244.patch
git show --raw
- Commit code
git commit -a -m ""
- Commit code and push onto remote server
git push origin 3.2.x:3.2.x
git push URL current_local_branch:remote_branch
- Find information
git log --grep=EXOGTN-244
git log --oneline
- Switch branch
git checkout branche_name (such as master)
- Create new branch at local from remote address:
git checkout -b local_name remote_address
Ex: git checkout -b 3.2.x origin/3.2.x
- Add new remote branch to support pull:
git remote add trongtt_remote https://kiennguyen@github.com/trongtt/exogtn.git
- Update code to a commit: svn up -r 112212
git reset --hard f5bde1576744b66c13d2bbb4ba337cef006124bf
Thursday, March 17, 2011
How to run Shindig server for testing
1. Download Shindig server (.war file) from http://shindig.apache.org/download/index.html
2. Rename x.war file to ROOT.war and drop it into Tomcat webapps folder
3. Open browser and go to address http://localhost:8080/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
Note: We can test with some samples in container or samplecontainer folder (for Shindig-2.0.0)
examples: http://localhost:8080/container/sample1.html
2. Rename x.war file to ROOT.war and drop it into Tomcat webapps folder
3. Open browser and go to address http://localhost:8080/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
Note: We can test with some samples in container or samplecontainer folder (for Shindig-2.0.0)
examples: http://localhost:8080/container/sample1.html
Wednesday, March 16, 2011
Data caching technologies
- Memcached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load. You can think of it as a short-term memory for your applications.
- Radis
- Jboss Cache
- Radis
- Jboss Cache
Shindig resource links
- Apache Shindig:
Apache shindig svn: http://svn.apache.org/repos/asf/shindig/trunk
Apache shindig issues tracking: https://issues.apache.org/jira/browse/SHINDIG
Apache shindig fisheye: https://fisheye6.atlassian.com/browse/shindig/trunk
- GateIn shindig:
https://anonsvn.jboss.org/repos/gatein/components/shindig/trunk
Apache shindig svn: http://svn.apache.org/repos/asf/shindig/trunk
Apache shindig issues tracking: https://issues.apache.org/jira/browse/SHINDIG
Apache shindig fisheye: https://fisheye6.atlassian.com/browse/shindig/trunk
- GateIn shindig:
https://anonsvn.jboss.org/repos/gatein/components/shindig/trunk
Monday, March 14, 2011
Run GateIn tomcat bundle using HTTPS
- Create new key
keytool -genkey -alias serverkeys -keyalg RSA -keystore server.keystore -storepass changeit -keypass changeit -dname "CN=localhost, OU=MYOU, O=MYORG, L=MYCITY, ST=MYSTATE, C=MY"
Note: password of key need to be the same with password of keystore
- Import key into Sun JDk keystore
sudo /home/kiennguyen/java/software/jdk1.6.0_22/jre/bin/keytool -importkeystore -srckeystore /home/kiennguyen/java/eXoProjects/gatein/portal/branches/branch-GTNPORTAL/server.keystore -destkeystore /home/kiennguyen/java/software/jdk1.6.0_22/jre/lib/security/cacerts
Default password of jre cacerts: changeit
Password of source key store: changeit
- Edit server.xml file from Tomcat/conf folder
- comment: - uncomment:
- Open a web browser and run address: https://localhost:8443/portal
keytool -genkey -alias serverkeys -keyalg RSA -keystore server.keystore -storepass changeit -keypass changeit -dname "CN=localhost, OU=MYOU, O=MYORG, L=MYCITY, ST=MYSTATE, C=MY"
Note: password of key need to be the same with password of keystore
- Import key into Sun JDk keystore
sudo /home/kiennguyen/java/software/jdk1.6.0_22/jre/bin/keytool -importkeystore -srckeystore /home/kiennguyen/java/eXoProjects/gatein/portal/branches/branch-GTNPORTAL/server.keystore -destkeystore /home/kiennguyen/java/software/jdk1.6.0_22/jre/lib/security/cacerts
Default password of jre cacerts: changeit
Password of source key store: changeit
- Edit server.xml file from Tomcat/conf folder
- comment:
- Open a web browser and run address: https://localhost:8443/portal
Sunday, March 6, 2011
Running and testing openid4java open source library
- Download library from googlecode: http://code.google.com/p/openid4java/
- Put simple-openid.war into webapp folder of Tomcat
- Put simple-openid.war into webapp folder of Tomcat
- Test with url: http://localhost:8080/simple-openid
- Type some openid provider into OpenID textfield:
yahoo.com
http://me.yahoo.com
https://www.google.com/accounts/o8/id
http://kiennguyen.myopenid.com/
http://javainpassion.blogspot.com/
http://openid.aol.com
http://openid.aol.com/nguyenanhkien
Friday, February 25, 2011
Test Shindig server integration with cURL tool
Test RPC service:
curl -H "Content-Type: application/json" --data-binary '[{method:"gadgets.metadata", id:"test", params: {ids:["http://www.google.com/ig/modules/datetime_v2/datetime_v2.xml"], container:"default", language:"en", country:"US", view: "canvas"}}]' http://localhost:8080/gadgets/api/rpc
curl -H "Content-Type: application/json" --data-binary '[{method:"system.listMethods"}]' http://localhost:8080/gadgets/api/rpc
Test Metadata service:
curl -H Content-Type=application/json --data-binary '{context:{container:"default"}, gadgets:[{url:"http://www.google.com/ig/modules/datetime_v2/datetime_v2.xml",language:"en", country:"US"}]}' http://localhost:8080/gadgets/metadata
curl -H "Content-Type: application/json" --data-binary '[{method:"gadgets.metadata", id:"test", params: {ids:["http://www.google.com/ig/modules/datetime_v2/datetime_v2.xml"], container:"default", language:"en", country:"US", view: "canvas"}}]' http://localhost:8080/gadgets/api/rpc
curl -H "Content-Type: application/json" --data-binary '[{method:"system.listMethods"}]' http://localhost:8080/gadgets/api/rpc
Test Metadata service:
curl -H Content-Type=application/json --data-binary '{context:{container:"default"}, gadgets:[{url:"http://www.google.com/ig/modules/datetime_v2/datetime_v2.xml",language:"en", country:"US"}]}' http://localhost:8080/gadgets/metadata
Subscribe to:
Posts (Atom)