Monday, January 28, 2008
Stick to commen-sense conventions
Wednesday, January 23, 2008
XCS clustering problem
Removing XmotionSessionCache-service.xml stoppedt his.
Thursday, January 17, 2008
java.lang.OutOfMemoryError: PermGen space
Tuesday, January 15, 2008
wire up your relationships!
I never understood why I need to do a ds.getGeoFences().add(gf). I thought this should be magically looked after whenever I create a gf with gf.setDataSet(ds). In particular what I saw was, I would do the following within a transaction
em.persist(gf)
em.flush()
and then
for (gf : ds.getGeoFences() )
in a separate transaction. Since my collection was lazy-loaded, I expected the newly added gf to be in that collection, since it should have been loading the collection from the database, but it didn't. It looks like the entity manager knows whether to read in collection or not. It seems to keep track of the ds verison number and the last gf id it should know about.
Sunday, January 13, 2008
sql server and collation
http://blogs.msdn.com/michkap/archive/2005/11/08/490305.aspx
http://www.madprops.org/cs/blogs/mabster/archive/2007/07/02/sql-collation-made-easy.aspx
Default collation depends on how sql server was installed.
Looks like SQL collations were just for sql server, and windows collations are for the whole of windows.
Monday, December 17, 2007
Hiding and Showing table rows
document.getElementById('radiusRow').style.display = ''
Wednesday, December 5, 2007
RMI lookupds using 192.168.0.3 instead of localhost
The problem was resolved by restarting XCS and is explained as follows: with RMI, the client asks uses java.naming.provider.url for a remote reference, the server responds with a server hostname and port to use to get that object. XCS was sending back its server hostname of 192.168.0.3, it hadn't updated itself since my ip changed.
From http://java.sun.com/j2se/1.4.2/docs/guide/rmi/faq.html#nethostname
For an RMI client to contact a remote RMI server, the client must first hold a reference to the server. The Naming.lookup method call is the most common mechanism by which clients initially obtain references to remote servers. Remote references may be obtained by other means, for example: all remote method calls can return remote references. This is what Naming.lookup does; it uses a well-known stub to make a remote method call to the rmiregistry, which sends back the remote reference to the object requested by the lookup method.
Every remote reference contains a server hostname and port number that allow clients to locate the VM that is serving a particular remote object. Once an RMI client has a remote reference, the client will use the hostname and port provided in the reference to open a socket connection to the remote server.
Current goals
- jquery
- javascript
- rubyrails
Labels
- bad
- caching
- classpath
- convetion
- cucumber
- cygwin
- design
- django
- eclipse
- ejb
- exceptions
- filter
- geo
- git
- gwt
- gwtt
- idioms
- ie
- integration
- issue
- ivy
- java
- javascript
- jaxb
- jboss
- jbosscache
- jdbc
- jee
- junit
- linking
- linux
- maps work
- mouse
- mvc
- netbeans
- organise
- os
- performance
- programming
- python
- rails
- regex
- rmi
- rspec
- ruby
- rubyrails
- security
- sicp
- software
- sqlserver
- syntax
- testing
- todo
- transactions
- uglycode
- vim
- web
- wifi
- ws