RSS feed
<< Previous | Home

Connecting to couchdb using his API

An alternative approach to use Couchdb from Erlang

I am bulding a LYCE application (you already know about Linux-Yaws-Couchdb-Erlang?).  So I need to connect to couchdb from Erlang. The existing API are not so complete, so I am looking for a different approach.

Read more...

Patching the erlang.el mode

Let's have emacs to compile in ebin directory

When you use Emacs to develop erlang code, if you follow the standard convention, an annoying thing of the emacs mode is that it compiles the erlang source  in the same directory.

Usually you have a src directory where you put sources, but you expect that the compiled code (the .beam) goes in the ebin directory. So you should compile  in ../ebin, usually

Read more...

Tags :

The most frequent 3000 english words in VIDEO

A useful tool to memorize correct english spelling

Do you need help in memorize the correct pronunciation of the most frequent english words? I realized this video for my own use:

 

 

I put it in my mobile phone and listened several times. Then I found my english pronuciation improved, so I decided to share the video.

Log4J reloadable in JBoss

The big value of having a logging service

One of the most annoying and recurrent problem in deploying off-the-shelf  open source java application in JBoss is the log4j conflict.  For example I incurred in the problem trying to deploy JamWiki
Because JBoss provide his own version of the Log4J libraries, if you have in your application your log4j, there is usually a conflict.
There are ways of solve this problem, the simplest one is to remove Log4j from your application and use the JBoss one.
At  the first glance, this look as an ugly solution, but recently discovered a big value with it: if you use the JBoss provided log4j, the configuration is reloadable without having to restart the application server or redeploy the application,
This is a great advantage when you debug your application (I LOVE debug by logging). Instead of having all sort of debug enabled, just in case you miss some important informations, when running on JBoss you can safely turn off everything, or just enable what you consider always useful.
When you approach a buggy section, you can enable on-the-fly the debug log you need, just editing the log4j.xml file. And of course you can also easily create new appender, in order to save in a file some relevant detail of your application.
I fell in love with this idea so much that this is the main reason I will use JBoss instead of plain Tomcat (as I used to do in the past) in my future development.
Tags :

Mac Power Book, the universal machine

Why I switched to Mac after years of Windows and Linux

My machine is a MacBookPro since april. After carefully consideration, and considering my experience with It, I say why I don't think I will switch back.

Read more...

Tags :