Programming for fun and profit

Programming tutorials, problems, solutions. Always with code.

Bash Here Documents

Problem:

How to create Here/inline Documents in Bash?

Bash Here documents can be really helpful templating mechanism when used in Bash scripts. They can generate almost anything, even scripts to compile and run sample Java code!

Read More

Share with the World!

EmbedMongo error libssl libcrypto

Problem:

Running a test with EmbedMongo in Linux results in the following *error while loading shared libraries: libcrypto.so.10: cannot open shared object file*. The solution is simple!

Read More

Share with the World!

Java Literals

Java has very flexible literals for expressing different kinds of numbers. In this post we’ll go through all Java Literals one by one.

Read More

Share with the World!