Skip to content

Instantly share code, notes, and snippets.

Shed & Container notes

Move wooden shed.

  1. Empty

  2. Is it liftable?

  3. Prepare new site

    1. clear location of bramble

    2. Place and level blocks

2024-01-27 Maintenance

Thoughts and ideas for our maintenance/shed move day.

Parking area

// an attempt to convert
// https://github.com/jenetics/jenetics/blob/master/org.jenetics.example/src/main/java/org/jenetics/example/TravelingSalesman.java
// to scala
// does not compile.
package org.jenetics.example
import org.jenetics.EnumGene
import org.jenetics.Optimize
import org.jenetics.PartiallyMatchedCrossover
Install Ubuntu
sudo apt-get install synaptic
sudo synaptic
Find mythtv package and install it.
During the installation process it asked for a Mysql 'root' user password rember this.
@bollinger
bollinger / UserViewDropDown.scala
Created January 11, 2017 11:55
Example of backing a Wicket DropDownChoice with an ID
package com.starjar.samples
import com.googlecode.wicket.jquery.ui.form.dropdown.DropDownChoice
import com.starjar.web.Ldm
import org.apache.wicket.markup.html.form.ChoiceRenderer
import org.apache.wicket.markup.html.panel.Panel
import org.apache.wicket.model.IModel
case class UserId(pk: Int)
@bollinger
bollinger / gist:bb4786ade0caf31e23c8
Last active January 23, 2016 09:13 — forked from ilguzin/gist:6606011
How to convert Java Key Store file to pem/key for nginx
Variation to handle when the java key store has multiple aliases.
0. List the certificates in the java key store.
keytool -keystore oldkeystore.jks -list
1. Convert our ".jks" file to ".p12" (PKCS12 key store format):
keytool -importkeystore -srckeystore oldkeystore.jks -srcalias ??alias?? -destkeystore newkeystore.p12 -deststoretype PKCS12
#Add group
sudo addgroup starjar
#Change users primary group
sudo usermod -g starjar peter
@bollinger
bollinger / ActionImage
Created July 19, 2015 19:56
Wicket Resource for an image.
import java.io.File
import org.apache.wicket.request.resource.AbstractResource
import org.apache.wicket.request.resource.AbstractResource.ResourceResponse
import org.apache.wicket.request.resource.AbstractResource.WriteCallback
import org.apache.wicket.request.resource.IResource.Attributes
class ActionImage(actionId: Int) extends AbstractResource {
//
// run this code in the console for
// https://en.wikipedia.org/wiki/List_of_countries_by_tax_rates
// to only show the Telegraph top 10 happiest countries.
//
var countries = [
"Switzerland",
"Iceland",
"Denmark",
"Norway",