Skip to content

Instantly share code, notes, and snippets.

package is.rebbi.core.formatters;
import java.text.FieldPosition;
import java.text.Format;
import java.text.ParsePosition;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
import java.util.Objects;
public class DateTimeFormatterWrapper extends Format {
package strimillinn.core.ocr;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.LongAdder;
import org.apache.cayenne.query.SelectQuery;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public static ServerRuntime createServerRuntime() {
return ServerRuntime
.addConfig( "cayenne-project.xml" )
.addModule( b -> b.bind( DataSourceFactory.class ).to( AppDataSourceFactory.class ) )
private static class AppDataSourceFactory implements DataSourceFactory {
View 1. Starting a new maven

Getting started with WO Development using Maven

This tutorial focuses on getting started with Maven in Eclipse/Development. Eclipse comes bundled with Maven and the Maven integration plugin so you don't need to install anything additional.

We don't cover Maven building on the CLI nor do we discuss concepts or how any of this actually works. This just gets the darned thing up and running, we can talk concepts and understanding later. So:

Let's set it up

1. Let Maven know WO/Wonder exists

Maven needs to know where to fetch the WO/Wonder frameworks and jars. If you're starting fresh, that means copying settings.xml (seen below in this gist) into ~/.m2/settings.xml. Now Maven knows where WOCommunity keeps it's stuff.

View Migrating an existing Fluffy Bunny Application project to Maven standard


To prepare, turn off automatic builds in Eclipse (otherwise, Eclipse is going to be really, really "helpful" by creating folders, modifying .classpath etc.). Keep automatic builds off until you've at least finished step 2 (changing your configuration files.

Once you've changed the configuration files, close the project and open it again, then turn on the Eclipse builds again.

1. Creating folders and moving stuff around

Here are the modifications you have to do to your project's layout, expressed in bash (as if your working directory is your project's root).

package nb;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Properties;
package nb.db;
import java.util.Iterator;
import java.util.List;
import org.apache.cayenne.access.translator.batch.BatchTranslator;
import org.apache.cayenne.access.translator.batch.DefaultBatchTranslatorFactory;
import org.apache.cayenne.access.translator.batch.UpdateBatchTranslator;
import org.apache.cayenne.dba.DbAdapter;
import org.apache.cayenne.dba.QuotingStrategy;
package nb;
import java.time.LocalDateTime;
import org.apache.cayenne.BaseDataObject;
import org.apache.cayenne.annotation.PostAdd;
import org.apache.cayenne.annotation.PreUpdate;
import jambalaya.interfaces.DateTimeStampedCreation;
import jambalaya.interfaces.DateTimeStampedModification;
hugith / Rafrænir
Last active Jul 1, 2020
Almenn umfjöllun um rafræna reikninga, kröfur sem eru gerðar til þeirra o.fl.
View Rafrænir

Rafrænir reikningar fyrir forritara

// FIXME: Hvers vegna

Aðilar sem taka við rafrænum reikningum


// FIXME: Kennitölur stofnana, kröfulisti


// FIXME: Kennitölur, listi yfir sveitarfélög. Mismunandi kröfur milli sveitarfélaga.

View settings.xml
<settings xmlns=""