Tagged: Java

0

SQLLine – One CLI for connecting to Relational Databases

f you are in the Python world (or not), you probably are using dbcli/pgcli for accessing the Postgres database. pgcli is Postgres CLI with autocompletion and syntax highlighting. Similarly, there are CLIs for MySQL, SQLite, Redis, etc. If you are in the mood to explore other CLI tools, you can trey SQLLine. It’s one CLI for many RDBMS.

0

JBang and My Own Custom Catalog

JBang, once installed, allows you to run any java file like a script. Superbly helpful if you want to hack something quickly. It can also install the same as app or binary so it can be found on your PATH. So you can forget about jbang and just run the app.

Logging uncaught exception (redirecting from sysout to logger) 0

Logging uncaught exception (redirecting from sysout to logger)

Uncaught exceptions in Java are handled by the System. The JVM usually logs the exception into the System.err and then shuts down. But in case of web applications its different. It logs the printstack trace to server console and then continues. Even though most of the time System.err is redirected to a file...

My code contribution during foss.in/2008 jFotoNotes 2

My code contribution during foss.in/2008 jFotoNotes

I am attending FOSS.IN/2008 virtually through twitter (unfortunately I could not attend due to work pressure). Here is my contribution to the FOSS world as part of FOSS.IN/2008. Go to jFotoNotes project page jFotoNotes is java implementation of famous FotoNotes in php. A variation of FotoNotes is also used by flickr. Fotonotes is...

Generic toString Method for Simple Java Beans 7

Generic toString Method for Simple Java Beans

I have seen developers writing toString method in each of their bean class. The purpose is to print the bean variables for logging or debugging purposes. I thought of reducing their effort by writing a generic toString method to have in their base bean class. It works for simple bean classes. Its no-brainer...

Chat with Greg Murray on Jmaki, ajax, comet etc 0

Chat with Greg Murray on Jmaki, ajax, comet etc

Myself and Veetrag caught up with Greg Murray sipping his coffee at Developers Summit. As usual we started talking and in between I realized, we could as well record it. Hence the start is abrupt and volume is low. Greg Murray is an AJAX architect at Sun. He is known for his contributions...