Tarlog on Java

My blog on Java and other technical issues.

Saturday, October 13, 2018

Setting environment variable from code in Java

›
Normally the environment variables are set, as the name implies, but the environment. However, sometimes a code runs as part of some environ...
1 comment:
Wednesday, November 15, 2017

Why you should be careful when using Lombok or other code generation tools

›
Look at the following code: Will the testHashCode succeed or fail? The answer it will fail, since the second assert: assertTrue(set.co...
Friday, October 20, 2017

Running arbitrary command when using auto-completion in Zsh

›
Did you ever wanted to run an predefined command as auto-completion in zsh? For example, you may have a script that accepts only predefined...
Tuesday, October 10, 2017

How do I avoid the error "Unable to validate the following destination configurations" when using S3 event notifications in CloudFormation?

›
There is a very important post about avoiding the "Unable to validate the following destination configurations" in AWS. Too bad ...
1 comment:
Wednesday, October 4, 2017

CloudFormation Tips

›
Some tips of using the CloudFormation: 1. Don't specify a resource name, unless absolutely must doing so. This way you can avoid names...
1 comment:
Sunday, April 10, 2016

Print Gradle Dependencies

›
One way to print the project's Gradle dependencies is 'gradle dependencyReport'. However it creates a very large file with many...
Monday, November 23, 2015

Dropwizard: Add thread name to log

›
This should have been trivial, but somehow it isn't. So I'll put it here. Adding the thread name to Dropwizard logs:

Unix Shell: Use of functions to create complicated aliases

›
In *nix shells it sometimes useful to create aliases that receive parameters. This can be done using functions: Now you can type just s...
Sunday, January 18, 2015

Pretty Format of JSON in vim

›
Open ~/.vimrc Add the following line: command Json :%!python -m json.tool To format Json, type :Json Note: you need Python installed. ...
Wednesday, May 14, 2014

Monitor Java on Unix/Linux/Solaris

›
Just a short memo of useful commands that can help to troubleshoot Java on *nix: (Btw, most of them will also work on Windows, but who runs...
1 comment:
›
Home
View web version
Powered by Blogger.