sshfs allows to mount a remote filesystem over the internet easily, provided that you’ve ssh access to it. Here I will go through all the steps necessary to mount a remote filesystem with Ubuntu Linux.
1. installing the software
To check whether sshfs is already installed, just type sshfs on the command line, if you . . . → Read More: Mounting a remote filesystem with sshfs
I wrote another simple Groovy script to remove one or more dependencies from a pom.xml – Here is how to use it:
$ pomRm rdbms org.datanucleus:datanucleus-rdbms:3.0.4 $ pomRm rdbms rm org.datanucleus:datanucleus-rdbms:3.0.4 REMOVED
The first form just lists the matching artifacts, without changing the pom.xml, while adding ‘rm’ in the command line as second parameter, actually . . . → Read More: Remove a dependency from pom.xml
Taking advantage of the easy XML processing, built in regular expressions I wrote a short script in Groovy to check and modify artifacts version in a pom.xml (Maven).
For example to show all dependencies with the word datanucleus in it, and display them in compact form (groupId:artifactId:version)
$ pomVersions datanucleus com.google.appengine.orm:datanucleus-appengine:2.0.0-RC2 org.datanucleus:datanucleus-core:3.0.4 org.datanucleus:datanucleus-api-jpa:3.0.4 org.datanucleus:datanucleus-rdbms:3.0.4
I . . . → Read More: Check and Modify Artifacts versions in a pom.xml
This post is just to have a copy of my init.el. I will keep it updated. Last update 18 March 2012.
(add-to-list ‘load-path "~/.emacs.d/elisp") (load "php-mode") ; (load "groovy-mode") ; turn on syntax highlighting (global-font-lock-mode 1) ; use groovy-mode when file ends in .groovy or has #!/bin/groovy at start (autoload ‘groovy-mode "groovy-mode" "Major mode for . . . → Read More: my Emacs init.el
Normally I would run IE inside a Virtual Machine. I need IE to test my web applications with it. However I wanted to try to run IE7 and IE8 inside Wine (I tried with version 1.3.28). After installing wine and winetricks, from the command line:
export WINEPREFIX=~/.wine_ie7 winetricks ie7 export WINEPREFIX=~/.wine_ie8 winetricks ie8
I’ve then . . . → Read More: Installing IE7 and IE8 in Linux with Wine
I tried three UML tools to build a simple Use Case Diagram: PlantUML, BOUML and Visual Paradigm.
PlantUML License: GPL
PlantUML uses a simple textual description. It’s a very interesting concept, as it can be embedded everywhere, for example in a word document, or in the JavaDoc. Also the fact that there is no visual . . . → Read More: An UML Use Case Diagram with PlantUML, BOUML and Visual Paradigm
Often I would like to reformat XML, so that is properly indented. It’s important that a tool does this, because if done manually is prone to mistakes. Automatic reformat makes it easier to find issues, and in any case it will make the file more readable.
If I’m inside Eclipse, I just open the file . . . → Read More: Formatting XML
Since I’ve already wrote about PostgreSQL and H2 Hibernate configuration, I thought it’s a good idea to add MySQL too for my reference.
First I’ve added the dependency to Maven’s pom.xml (see the Maven repository for the latest version).
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.18</version> </dependency>
The second step is Hibernate configuration, here is an example:
. . . → Read More: Hibernate and MySQL
H2 is a small embeddable Java Database that supports a in memory mode (it also has a server mode). It’s a great choice for testing, since it doesn’t require any DB set up.
To try it out, the first step is adding the dependency to Maven’s pom.xml (see the Maven Repository for the latest version).
. . . → Read More: Hibernate and H2
I’m finally fluent in Spring and Spring-MVC and I am studying Hibernate. If I think about DBMS that I’ve been using, I can recall SQL Server, Oracle and a lot of MySQL. As for PostgreSQL, I kept on hearing good news about how robust and standard based it is, but I’ve never had a chance . . . → Read More: Hibernate and PostgreSQL