Rails, Unicorn and Nginx on Slackware

I was trying to deploy a Rails application using Apache and got into some problems when I tried to configure the app so that Apache will be the one that serves the precompiled assets (javascripts, css, images and others). Since I’m on tight deadline (yeah, I should’ve tested production mode much more earlier), I tried my luck with Nginx and it worked easily without any hassle. So, this is how I did it.

Read more →

Getting Started with Xen on Slackware

Here’s a guide on how to setup Xen virtualization in Slackware.

Read more →

Corosync and Pacemaker in Slackware

This will be multi part post about high availability solution for Slackware. My first post will be about Corosync and Pacemaker.

You need to combine Corosync and Pacemaker with other distributed storage system such as DRBD/OCFS2/GFS. I’ll talk about these stacks in another post.

Read more →

Using GRUB instead of LILO in Slackware

These are the steps I used to replace LILO with GRUB as the boot manager after upgrading my kernel to v3.

Read more →

Upgrading to Kernel v3 for Slackware v13.37

It’s time for an upgrade!

Read more →

How to Read MyKad

I’ve decided to merge posts about reading MyKad from my previous blog into a single post.

Notes:

  1. The original codes were written by Xenon from Lowyat.net. Somehow, he managed to reverse engineer MyKad’s APDU so that we can read it without buying any SDK.

  2. This application only reads data from Jabatan Pendaftaran Negara (JPN).

Read more →

A Simple Working Example for Qt NCReport

This should help you with NCReport in Qt.

Read more →

Using Sybase with Ruby on Rails on Linux

This guide will help you (mostly will help me in the future) to configure your Ruby on Rails to support connection to Sybase.

Read more →

Running Multiple MySQL on a Single Server

I’m pretty sure I’m going to forget these steps, so, just to be safe, I’m putting it here. I’m dividing this tutorial into two sections, one for default MySQL that comes from Slackware and the other one is for new MySQL.

Read more →

Configuring Linux to work with NVidia Hybrid SLI Technology

First of all, at the time of this writing, NVIDIA Hybrid SLI Technology is not supported on Linux and without proper configuration, you won’t even be able to load your Desktop Environment such as Xfce.

Read more →

How to Enable MySQL Support in Qt SDK for Linux

Known to work with:

  • Slackware v13.37
  • Qt SDK v1.1.5 (32 bit)
  • Qt v4.8.0
  • MySQL v5.5.18
Read more →

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

Install CUPS-PDF based on your distro, you can download if from here. Go to http://localhost:631. If the page requested a username and password, just enter your root as username and password for your root. Go to Administration > Add Printer. In the Add Printer page, put a name for your virtual PDF printe, any name will do. Then click Continue.
Read more →

Printing to Zebra S4M Using Java

Apparently there’re some codes scattered on the net telling people that you can print to a Zebra printer by sending ZPL II codes using PrintService. But the problem is, it’s not working, I don’t know why, maybe because of a different version of printer or model but I’m pretty sure the thing that came out from the printer are just ordinary texts not barcode which is what the code was supposed to output.

Read more →