My solutions to some not-so-common problems

Using node.js packages with meteorjs

Posted: May 5th, 2012 | Author: | Filed under: meteorjs, Ubuntu | Tags: , | No Comments »

I got following error when tried to use node.js package (installed with npm) in meteorjs application on my Ubuntu:


node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead. 

You can find sample code causing error here.

I’ve tried setting NODE_PATH in bash but with no success.

Then I’ve looked into meteor script (under /usr/bin) and saw that meteor is setting NODE_PATH by itself (it is pointing to /usr/lib/meteor/lib/node_modules directory). I cloned required package directly from github into /usr/lib/meteor/lib/node_modules directory and my application run wihout any errors.


Problem with sqlite3.dll

Posted: September 17th, 2010 | Author: | Filed under: Rails | Tags: , , | No Comments »

After successfully installed Rails I’ve created clean project using

rails new helloworld_project

command and installed sqlite3 gem.

Read the rest of this entry »


Using gem from behind a proxy

Posted: September 17th, 2010 | Author: | Filed under: Rails | Tags: , , , | No Comments »

Lately I’ve changed computer to new one and I’ve lost my Rails installation. Today I decided to recreate my environment. My computer is behind a HTTP proxy so I’ve knew that I will have some problems with installing Rails using gem installer.

Read the rest of this entry »


Getting started with Google App Engine and JSF

Posted: March 25th, 2010 | Author: | Filed under: Java | Tags: , , | 6 Comments »

Some time ago I decided to familiarize with Google App Engine capabilities. Lately I read a document about GAE Java SDK version capabilities. I was surprised that a big part of JEE stack is supported e.g.: JPA and JSF. That moment I decided to make simple JSF-based demo application.

Read the rest of this entry »


Enabling SLF4J logging in EclipseLink

Posted: March 15th, 2010 | Author: | Filed under: Java | Tags: , , , | No Comments »

I’m using EclipseLink as JPA provider in some of my OSGi based projects. Latelly I also switched from Apache Commons Logging to SLF4J (shortly speaking not to be forced to write LOG.isDebugEnabled() in case of debug messages in my code). Then I found out, that EclipseLink is using it’s own logger which can not be configured using standard log4j.xml file.

Read the rest of this entry »