This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Add group | |
| sudo addgroup starjar | |
| #Change users primary group | |
| sudo usermod -g starjar peter | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // 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", |
Download the 2014 Linux edition of the tools from here:
http://www.hmrc.gov.uk/payerti/payroll/bpt/paye-tools.htm#b
wget https://www.gov.uk/government/uploads/uploaded/hmrc/payetools-rti-14.0.14063.106-linux.zip
NewerOlder