Reading Mifare 1K Card using Java in Linux

The Story

At the end of last year, my friends and I were tasked to read our staff card. The main objective was pretty simple which is to create a library where we don’t have to depend on the vendor every time we want to read our own staff card and the library should also work in Linux and Windows (that means Java to us).

Read more

Printing to PDF using CUPS

  1. Install CUPS-PDF based on your distro, you can download if from here.

  2. Go to http://localhost:631.

  3. If the page requested a username and password, just enter your root as username and password for your root.

  4. Go to Administration > Add Printer.

  5. In the Add Printer page, put a name for your virtual PDF printe, any name will do. Then click Continue.

  6. For the Device for a, you should select CUPS-PDF (Virtual PDF Driver). If it’s not there, then you haven’t executed Step 1 successfully.

Read more

Java Printing Fix for Linux

Apparently, there’s a bug in Java where people using newer version of CUPS cannot print (can’t even display the print dialog) due to a null pointer exception and this is actually a known bug. So, how do we fix this? For people who use Gnome, you can refer to this page.

Read more