Sunday, August 15, 2010

git

If you want to remove a file from the repository, but keep it in your working directory, simply use:
git rm --cached

Wednesday, July 14, 2010

URI query string for POST

Question - is it ok to do a post with query parameters in the URI... eg. the URL people include in our notify POST - can it be http://bla.com/notify?applicationId=234324

Answer - the spec seems to allow it - it can be considered as extra "scoping" information in the URI

so the query string is used for scoping, the post body is the actual data that is being sent to the server

see

http://stackoverflow.com/questions/611906/http-post-with-url-query-parameters-good-idea-or-not

Sunday, April 25, 2010

Resetting oracle xe system password

sudo su - oracle
if $ORACLE_SID not set
cat /etc/oratab
ps -ef | grep smon


. oraenv

enter XE for the ORACLE_SID and set ORACLE_HOME as install dir (look it up in /etc/init.d/oracle-xe)

then run

sqlplus / as sysdba
alter user system identified by newpassword;

Tuesday, February 16, 2010

How do sessions work in java?

Are there any problems with using cookies?