Author Archives: Programmer Olathe

How to get started chatting on freenode with XChat on Ubuntu

What’s needed ahead of time A computer with Ubuntu installed The ability to use sudo on Ubuntu An e-mail address to use for freenode account registration and for password recovery About half an hour (more in the unlikely event a … Continue reading

Posted in Ubuntu | Leave a comment

How to set up a minimalistic Lubuntu in VirtualBox

Set up the virtual machine Get the latest amd64 Lubuntu installer ISO. Get the latest amd64 Ubuntu mini-installer ISO. Create a Linux, Ubuntu (64 bit) virtual machine with no drive. In the virtual machine’s settings, create and attach a new … Continue reading

Posted in Ubuntu | Leave a comment

Unsigned comparisons in Java

You can perform unsigned comparisons of longs without using horribly inefficient BigIntegers. After testing a few ideas I came up with against some code by Tamutnefret of Freenode’s ##java, I found his code was fastest, so I’ve based the code … Continue reading

Posted in Java, Optimization | Leave a comment

How to compute 64-bit integer square roots very quickly

From an article section I’ve been working on for the past few days at code codex, The int version simply casts the result of StrictMath.sqrt to an int, giving us full hardware speed. The long version uses a trick by … Continue reading

Posted in Java, Optimization | Leave a comment

Showing the source code view of a Java String

Posted in Java | Leave a comment

HOWTO: Install irssi in full screen, translucent glory on Ubuntu 10.10

I recently switched to Ubuntu 10.10 from Windows XP and was trying to get irssi running in gnome-terminal in a certain way: Full screen so that it takes up an entire workspace. Translucent background so that I can see my … Continue reading

Posted in Ubuntu | Leave a comment

Monads: semantics for subroutines

Monads are fairly simple to understand. Each Monad specifies a different way to execute an imperative-style subroutine. Monads tell what happens between statements Monads are sometimes called “executable semicolons” because they control what nice automation happens between each and every … Continue reading

Posted in Haskell monads | Leave a comment

The List, ListState, and Player monads

If we want to use the nice, imperative do blocks of Haskell to produce a lazy list from another lazy list, we have a few options: the List monad, the ListState monad, and the Player monad. The List monad : is … Continue reading

Posted in Haskell monads | Leave a comment