Open the terminal app
ifconfig eth0 up <static ip> route add default gw <gateway ip> dev eth0 setprop net.dns1 <dns ip>
I recently installed MAMP (MySQL 5.5, PHP) on Mac OS for using MySQL together with Grails. Strangely, the Chinese and Japanese character input didn’t work as expected, something that I had never experienced problems with when working in Grails.
After having wasted the better part of an afternoon I finally found out that the problem occurred contrary to my initial suspicion not inside of the new Grails 1.4 release but between Grails and the MySQL database server. Adding useUnicode=true&characterEncoding=UTF8 to the connection URL did the trick, like so:
I found this useful hint on how to reset the password for any postgres user on Windows:
net user postgres postgres
Explanation for the “Version …” conflict error message when deplyoing a portlet to liferay:
To create a symbolic link:
ln -s /Volumes/Classic/ Classic
Classic -> /Volumes/Classic/
To get rid of the symbolic link:
This annoying error message when working with subversions is most likely due to locked files. To unlock files in a folder recursively use:
chflags -R nouchg [files]
More background information on the problem can be found at unlocking files on Mac OS X.
Found this great blog entry that explains the minutes of setting up an infrastructure on Mac OS X for working with the Apache build system.
When generating a Google AppEngine complient web app in Grails, there is a mistake in the MyApplication/target/war/WEB-INF/datastore-indexes.xml file which causes the shell script
from doing its job properly and eventually prevent you from deploying your application to the appengine.
You have to go into the datastore-indexes.xml file and remove the following line:
These are the steps I had to take to establish a connection from within NetBeans 6.7 to my Subversion Repository via a https connection.
Install svn -> sudo apt-get install svn
Install an svn client, I chose RapidSVN -> sudo apt-get install rapidsvn
In NetBeans select Team ＞ SVN＞Check out… and fill in the Form. The path to the RapidSVN executable is /usr/sbin.
Restart NetBeans and you should be able to proceed in the wizard.
This is the first of a series of articles explaining how testing on Android works.
Sadly, OpenOffice 3 didn’t make it into the official 8.10 release, but here is a link to a great tutorial on how to do the update.
As a Sean beginner I was wondering what exactly the @create= true annotation does inside of the @In injection declaration. Here is the mystery unveiled:
– When a Seam component is requested, the container looks into the lowest context to see if its there, if not the next context up in the hierarchy is searched.
– If no instance is found thats when the above mentioned annotations kick in:
- If the injection that triggered the search is declared as @create=true, the component is instantiated
- If the component is marked with a @Autocreate annotation on the class level, a new instance will be created in any case and the @create=true annotation becomes obsolete.