Rewriting applications to use pax-jdbc-config and liquibase steinar.bang.priv.no/?p=292 -jdbc -jdbc-config After creating the post Pluggable databases for apache karaf applications I posted a link to the blog post in the karaf user mailing list, and the immediate response was, “why didn’t I just pax-jdbc-config instead?“. The answer to that is that I didn’t know a

How I learned about linux’ “OOM Killer” steinar.bang.priv.no/?p=286 This blog post describes how I discovered a linux feature called “OOM Killer” that can have strange effects if it interrupts a program at a place where it really shouldn’t be interrupted. I have a low-end VPS (Virtual Private Server), or at least: it used to be low-end, now it’s at least one step above … Conti

Pluggable databases for apache karaf applications steinar.bang.priv.no/?p=265 -jdbc Edit: I no longer use this approach. I use pax-jdbc-config instead.  See the article Rewriting applications to use pax-jdbc-config and liquibase for details When creating databases for my apache karaf based web applications, I want the following things: A database-independent schema cr

A Java programmer’s guide to delivering webapp frontends steinar.bang.priv.no/?p=269 -maven-plugin When I started investigating (googling) web frontends, I found tutorials for various frameworks and I found tutorials using node.js to deliver frontends to web browsers on localhost. What I did not find, w

Use Jersey to provide REST APIs from karaf applications steinar.bang.priv.no/?p=261 Edit: creating a REST API using jersey has been made simpler, see Simplified REST APIs from karaf using Jersey for details. The sample application github.com/steinarb/jersey-dem demonstrates how to use Jersey to provide a REST API from a

Deliver react.js from apache karaf steinar.bang.priv.no/?p=255 -maven-plugin -router .js -saga Edit: delivering react.js has been made simpler, see Simplified delivery of react.js from apache karaf for details. A small barebones demo application/testbed, delivering a single-page web application from apache karaf,

Faking a debian repository for package development steinar.bang.priv.no/?p=250 -get I use aptly to deliver my unofficial debian packages both to myself and others that might be interested. However I’ve found that using aptly to do package development is a bad idea, because you can’t (by design, probably) overwrite packages in an aptly archive.  You can only create new versions. For some installati

Develop OSGi applications using karaf steinar.bang.priv.no/?p=238 Apache Karaf is a good platform for deploying OSGi based applications. Karaf is also a good platform for testing and debugging these applications. This article describes how to test and debug OSGi bundles and OSGi applications with karaf and eclipse. The basic flow of development, is: Build the application with maven

Installing apache karaf on debian steinar.bang.priv.no/?p=224 Until the RFP (Request For Packaging) bug for karaf in the debian bug tracker is resolved, here is an APT archive with a karaf package for debian (architecture “all”).  The package is created using native debian packaging tools, and buil

Packaging karaf with native debian packaging tools steinar.bang.priv.no/?p=223 Note! This is an improvement over the packaging in  Installing apache karaf on debian stretch, this package is packaged using native debian packaging tools instead of fpm, and is built from the karaf source tarball instead of the karaf binary tarball. Apache karaf is an OSGi container and application s

Setting up a debian package archive with aptly steinar.bang.priv.no/?p=214 This article describes how to set up a debian archive with aptly on a debian 9 “stretch” computer, served by an nginx web server. Initial setup Add a DNS alias for your virtual nginx web site (outside of the scope of this blog post). The examples below assume that apt.mydomain.com is the DNS alias Install the … Continue rea

Installing apache karaf on debian stretch steinar.bang.priv.no/?p=209 Edit: It is now possible to install karaf on debian without building it yourself, the package installed is not the one described here, but the new and improved package built from source with native debian packaging tools, that can be found here  github.com/steinarb/karaf-debi Apache

Til minne om kaninen Daisy steinar.bang.priv.no/?p=196 Jeg tar et avbrekk fra postinger om datateknikk til å minnes kaninen Daisy. En liten svart og hvit løvehodekanin. Hun ble født i november 2009 og døde 29. august 2017, litt over 7,5 år gammel. Ungene fikk først hilse på henne den 22. desember 2009. Fra rett over nyttår 2010 og fram til hun døde … Continue reading Til minne om kaninen Daisy →

Sign nginx website and dovecot imap server on debian with let’s encrypt steinar.bang.priv.no/?p=191 If you have a setup with a single server with multiple services (web, IMAP etc.), and one CNAME per service (www.somedomain.com, imap.somedomain.com), and you would like to get the services signed in a manner that doesn’t give warnings or errors in browsers  (especially brow

Jeg forholder meg til sosiale medier som til hundedressur:

Belønn ønsket oppførsel og ignorer feil oppførsel

Making a Java windows service in 10 minutes steinar.bang.priv.no/?p=171 This blog post describes how to create a windows service from a Java application, it is a slightly more fleshed out version of the JavaZone 2016 lightning talk “A Java windows service in 10 minutes”. A problem sometimes encountered by a Java programmer, is to make your Java pro

Get update notifications in the MATE desktop on debian jessie steinar.bang.priv.no/?p=165 -update-icon One thing I have been missing since Gnome 2 was suceeded by the (IMO) horrible Gnome 3, is a tool tray notification icon for pending debian updates. When someone continued Gnome 2 as MATE and M

Logging to persistent tmpfs on Raspbian “jessie” steinar.bang.priv.no/?p=83 The article describes how to set up logging to tmpfs with persistent storage to the sd card on a raspberry pi with raspbian 8 "jessie".

Sign nginx website and dovecot imap server on debian with let’s encrypt steinar.bang.priv.no/?p=191 #8 If you have a setup with a single server with multiple services (web, IMAP etc.), and one CNAME per service (www.somedomain.com, imap.somedomain.com), and you would like to get the services signed in a manner that doesn’t give warnings or errors in browsers 

Using a Raspberry Pi 2 Model B as a router/firewall for the home LAN steinar.bang.priv.no/?p=66 #8 Since 1999 I have been using a 1996 vintage DEC PII desktop as the router/firewall between the internet and my home network.  The DEC computer came to me with Win95 (or possibly Win98) in 1998, got SuSE linux and started its mission as router and

Show more
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!