AJT 1.14 released

The Abeel Java Toolkit version 1.14 has been released, providing a number of new utilities.

The Abeel Jave Toolkit 1.14 is available for download , with new documentation.

- ColumnIterator class to iterate over columns in a file one line at a time
- Copier class to make deep copies of objects
- AutoHelpCmdLineParser that automatically generates a help option for command line programs.

Restore sessions at Firefox start-up

This tutorials shows how to restore all tabs that were open when you closed Firefox.

Go to about:config, this should be typed in the address bar.
Go to the section with that starts with browser.sessionstore and set the values to the whatever you like.

Determine uncompressed size of GZIP file

For some applications it is useful to determine the uncompressed size of a file that has been compressed by the gzip algorithm. From the command line this can be done by using the -l option of the gzip program. But this is less straightforward using the Java API's. The GZIPInputStream class does not provide a method to query the original file size. However the information is present in the GZIP file for files that were originally smaller than 4 Gb and can be extracted.

AJT 1.13 released

This release of our tools library mainly extends the functionality of existing classes and fixes some bugs.

The Abeel Jave Toolkit 1.13 is available for download , with new documentation.

Create a bold or italic column in a latex table or tabular environment

To create a table in latex one can use the tabular environment and surround it with a table block to add a caption and make it floating.

The table below starts with a column that is left-aligned, then there is a a column that will be in bold and is centered and finally there is an italic column that is right-aligned.


\begin{table}
\begin{tabular}{l>{\bfseries}c>{\italic}r}
apple & red & round\\
melon & green & round\\
cookie & brown & square\\
\end{tabular}
\caption{Some objects, their color and their shape.}
\end{table}

Java Machine Learning Library 0.0.16 released

The Java Machine Learning Library 0.0.16 is available for download , with new documentation.

The main new feature of this release is a bridge to WEKA. It is now possible to use all algorithms implemented in WEKA from inside Java-ML, using the same interfaces.

AJT 1.12 released

The new version is available for download with updated documentation.

This release contains mainly new features: a new tutorial on how to use the GraphicsFileExport in combination with the JFreeChartWrapper, a new factory class was added to create LineIterators from ZIP and GZIP files and a triplet class that implements a triplet (like a pair, but then with three elements).

Timing runtime in Linux

When writing new software or implementing new algorithms it is always nice to know how long it takes to process a certain data set. Alternatively it is just good to know how much time a program consumed when you let it run overnight. Did it take till 7 am in the morning or was it finished five minutes after you left your desk.

Linux has a very straighforward way to time your applications. The command is simply called time.

Simply put time in front of your program or script when calling in and you well get some information regarding the runtime it took.

Recursively renaming files in Linux

This tutorial explains how to rename all files in a directory and its subdirectories. Or just how to rename multiple files at once in Linux.

This can be done with one very simple command:

rename some other `find . -name '.*'`

This will replaces all occurences of 'some' in file names with 'other'.

A simple example: rename all htm files to html.

rename htm html `find . -name '*.html'`

The rename command takes 3 arguments:

  1. thing to replace
  2. thing to replace it with
  3. a list of files to apply it to

Reducing Firefox memory use

After a while every Firefox user notices that FF uses copious amounts of memory. Below are some tricks to remedy the large amounts of memory Firefox consumes.

While these tricks reduce the amount of memory that Firefox hogs, in general revisiting pages will be slower because Firefox caches less data.

Syndicate content