Archive for March, 2009

Groovy and ORM

Posted by pebuchmann_super on 27 Mar 2009 | Tagged as: Software Development

Great article on groovy’s Object Relational Mapper GORM and the difference between using ORM in  statically typed languages as opposed to a dynamical envrionment such as Groovy.

Groovy and JPA

Posted by pebuchmann_super on 21 Mar 2009 | Tagged as: Software Development

Tutorial about how to use Hibernate from within Groovy making use of Groovy Templating: import javax.persistence.* class JpaTemplate { EntityManagerFactory emf EntityManager em JpaTemplate(pu) { if (!pu) pu = “default” emf = Persistence.createEntityManagerFactory(pu) } void doInEntityManager(c, shutdown) { em = emf.createEntityManager() em.getTransaction().begin() c(em) em.getTransaction().commit() em.close() if (shutdown) shutdown() } void shutdown() { emf.close() } } [...]

Installing OpenOffice 3 on Ubuntu 8.10

Posted by pebuchmann_super on 15 Mar 2009 | Tagged as: Uncategorized

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.

MySQL Basics on Ubuntu 8.10

Posted by pebuchmann_super on 15 Mar 2009 | Tagged as: Ubuntu

Information taken from help.ubuntu.com Starting  mysql  shell mysql -u root mysql> SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(‘yourpassword’); With password mysql -u root -p Create a mysql database mysql> CREATE DATABASE database1; Create a mysql user mysql> GRANT ALL PRIVILEGES ON *.* TO ‘yourusername’@'localhost’ IDENTIFIED BY ‘yourpassword’ WITH GRANT OPTION; mysql> GRANT SELECT, INSERT, UPDATE, DELETE, [...]

Postgres Basics on Ubuntu 8.10

Posted by pebuchmann_super on 15 Mar 2009 | Tagged as: Ubuntu

Installation sudo apt-get install postgresql postgresql-client postgresql-contrib Changing the User Password sudo -u postgres psql postgres ALTER USER postgres WITH ENCRYPTED PASSWORD ‘<***password***>’; \q Creating a New DB sudo -u postgres createdb dev Setting up PgAdmin III Don’t know exactly what this is good for, better performance? sudo -u postgres psql < /usr/share/postgresql/8.3/contrib/adminpack.sqll Installing PgAdmin [...]

Installing Java on Ubuntu

Posted by pebuchmann_super on 14 Mar 2009 | Tagged as: Ubuntu

This is a short and to the point instcruction about how to install Java on an Ubuntu system: http://www.javadesign.info/SystemsHardware/OS/Ubuntu/install-java-on-ubuntu List the installed Java versions: update-java-alternatives -l Change from one version to another: sudo update-java-alternatives -s <JRE Version>

JBoss Seam: @create= true and @Autocreate

Posted by pebuchmann_super on 06 Mar 2009 | Tagged as: Uncategorized

The difference between @create= true and @Autocreate in JBoss Sea,