Preparing pdf-documents for the ebook reader

Briss Getting the best resolution for pdf-documents on the an ebook reader like kindle isn’t always easy, but there’s a great program available for “trimming” your pdfs. With the Java-based open-source software Briss, you can remove unnecessary margins by cropping the even and odd pages of a pdf-document. The end-result is a pdf-document that better… Continue reading Preparing pdf-documents for the ebook reader

Setting up an Ant build script for your Scala project

Introduction This is a small writeup which gives one way of setting up a build system for your Scala project. Here Apache Ant is used for managing this process, where the whole configuration is contained within a single build.xml file placed in the project’s root directory. Execution is done from command line or within your… Continue reading Setting up an Ant build script for your Scala project

@tuple – experimenting with lisp-like syntax as XML replacement

Motivation The following post describes an experimental format which has a lisp-like syntax, with hints of JSON, for storing tree-structured data as text. The main motivation was a need to have a less verbose alternative to XML, but still be readable and editable, support pattern matching and transformation, include common binary datatypes, and enable structural… Continue reading @tuple – experimenting with lisp-like syntax as XML replacement

Trait-like CSS on HTML

Defining some CSS types One way of structuring the CSS is to define some types over the CSS classes. What these types might be may be is open, but one instance might be Behaviour, Layout and Roles. The types are not used explicitly in the CSS, but are there to help organize and abstract the… Continue reading Trait-like CSS on HTML

Reminders on Scala syntax

Reminders The companion object (both for own code and Scala’s API) Setter and getter functions are defined implicitly for val, var and referenced arguments in primary constructor. To set these manually Adding indexing operators Binding a variable during pattern matching Defining an extractor for pattern matching (example lacks validation) Imports can be grouped Types can… Continue reading Reminders on Scala syntax