MapDB example

Simple MapDB example program   package org.ragin.mapdb; import org.apache.commons.lang3.StringEscapeUtils; import org.apache.log4j.Logger; import org.apache.log4j.PropertyConfigurator; import org.mapdb.*; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.*; import java.util.concurrent.ConcurrentMap; /** * Hello world! * */ public class MapDBInformant {     public static final String MAPDBINFORMANT = "MapDBInformant";     public static final String CFG_LOG4J_PROPERTIES…

Read More

The Node Beginner Book

  Great book for node.js newcomers. Minor bugs in the example sources, find working examples attached. Source Code for the Node Beginner Book from M. Kiessling 

Read More

Log4J Logging with categories

Procedure Create the following directories: c:\demo c:\demo\com c:\demo\com\mobilefish c:\demo\com\mobilefish\bean Create the file c:\demo\com\mobilefish\bean\Message.java. package com.mobilefish.bean; import org.apache.log4j.Logger; public class Message { Logger log = Logger.getLogger("com.mobilefish.bean.Message"); private String msg; public void setMessage(String msg) { this.msg = msg; log.debug("This is my debug message."); log.info("This is my info message."); log.warn("This is my warn message."); log.error("This is my error…

Read More