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
| /** | |
| Example function which takes varargs | |
| */ | |
| def myfunc(name: String, others: String*) { // note the star after String | |
| println(s"$name") | |
| others.foreach(str => println(s" varag=$str") ) | |
| println(" ---") | |
| } |
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
| // | |
| // 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", |
| 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 { |
| #Add group | |
| sudo addgroup starjar | |
| #Change users primary group | |
| sudo usermod -g starjar peter | |
| 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 |
| 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) |
| 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. | |
| // 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 |