Category Archives: Programming

All things to do with programming.

Rate limiting in Node.js with Promises

I’ve been re-familiarising myself with Node.js recently, and there’s a lot to catch up on since I last used it in anger. With the support for ES6 I’ve been looking through the changes listed and playing with features here and … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Remote Profiling the JVM through an SSH Tunnel

This one took a little time to figure out. I wanted to profile a remote JVM application using VisualVM locally, in a way that didn’t expose any ports to the outside world and has a reasonable level of security. An … Continue reading

Posted in Programming | Tagged , | Leave a comment

Could not find or load main class

I recently came across what seemed to be a fairly common error message while trying to run a Java jar on a newly installed Ubuntu 16.04 VM:

This is a pretty common issue that usually stems from incorrect classpaths … Continue reading

Posted in Programming | Tagged , | Leave a comment

Setting up Rocket.Chat in userspace on Ubuntu 12.04

Not too long ago I needed to set up Rocket.Chat for internal evaluation. At the time its installation process was not especially well documented and required some existing knowledge of its underlying stack in order to figure out how to … Continue reading

Posted in ops, Programming | Tagged | Leave a comment

Porting the Netty DiscardServer example to clojure

I recently looked at the Netty library as the basis of a server for work, so after a recent LambdaJam I was inspired to write their DiscardServer example in Clojure, on a basic, line-to-line basis. Has some issues, not the … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Creating numeric types from byte arrays in Clojure

While writing my Clojure-based Minecraft map reader and NBT library, carrit, I’ve need to do some messing around with binary files. For this library I’ve made the decision to implement what I can in Clojure’s available functions, dropping down into … Continue reading

Posted in Programming, Software | Tagged , , , | Leave a comment

Migrating from duck-streams/to-byte-array in Clojure 1.3

Just spent some time migrating my minecraft NBT library from to Clojure 1.2.1 to 1.3, had to make a few changes as many clojure.contrib 1.2.0 libraries were moved to separate modules or merged into core. The reliance on clojure.contrib.duck-streams was … Continue reading

Posted in Programming, Software | Tagged , | Leave a comment

HGFS on a Ubuntu 11.04 VM

Had some issues sharing a windows host directory with my Ubuntu 11.04 VM on VMware 6.5.5 – kept coming back with a “Unable to update run-time folder sharing status: Unknown Error”, which was unhelpful to say the least. I’d previously … Continue reading

Posted in Programming | Leave a comment

Logging in Clojure

Warning: Clojure newbie alert. Having some difficulty finding comprehensive examples of logging in Clojure, maybe I’m searching for the wrong things. All the clojure docs seem to be brief to say the least. What would be nice is to figure … Continue reading

Posted in Programming | Tagged , | Leave a comment

Hello world!

This is Taufiq’s blog. Not intended for anything other than my own brain dump, and as a place for keeping track of things I find useful.

Posted in Programming | Leave a comment