Tags » Java

Memories of Mount Bromo

We arrived late at our accomodation. It had been a long bumpy ride in a truly old jalopy. Some call it romantic, others called it uncomfortable. 319 more words

How to generate WAR for Dynamic Web Project via maven ?

Just add pom.xml inside project folder.

Add the following:

<project xmlns=“http://maven.apache.org/POM/4.0.0&#8221; xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance&#8221;

xsi:schemaLocation=“http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&#8221;>

<modelVersion>4.0.0</modelVersion>

<groupId>CrunchifyTutorial</groupId>

<artifactId>CrunchifyTutorial</artifactId>

<version>0.0.1–SNAPSHOT</version>

<packaging>war</packaging>

157 more words
Java

Using multiple threads to improve performance

Sometime your java application takes long time to process a task. And you want to speed  it up. You may need to use multiple threads to leverage the concurrency tasks and finally combine all outputs of those threads to have a final result. 208 more words

Java

Sum of Two Integers

Problem

Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.

Example:
Given a = 1 and b = 2, return 3. 15 more words

Geeky

BATIK

“Setiap motif batik klasik yang tercipta senantiasa melambangkan simbol-simbol atau perlambang tertentu yang digambarkan oleh pembatiknya.”

LELAKU PARA EMPU BATIK

Batik mempunyai makna filosofis berdasarkan pandangan hidup sebagai suatu kearifan lokal. 132 more words

Batik

Spock Testing - basic example

The scenario here is that we have a service, called imageService, that allows us to upload and save images to our site. We want to test that the image is persisted successfully. 392 more words

Java