How to catch X11 Window Close Event

Working directly with X, Xlib, XUtils, and so on, is actually a lot more pleasant than I was lead to believe. However there are a couple of annoying bits. One of which, is handling events generated by XServer, and the WindowManager (WM) differently. Since the Chrome, or elements around your application, are supplied by the WM, you will need to listen to a message from it, and not a standard EventType from XServer.

Read More

Install Teamspeak 3 Server in 2 Minutes on Ubuntu 16.04

Teamspeak is an amazing piece of free software. While not Open Source, it does at least give you control over your data. In comparison to Skype and Discord, Teamspeak's performance is all up to you. You get to run the server, not relying on a third party to give you the bandwidth you need to have good quality audio.

Read More

1 Change to Reduce Pascal Executable Size

A lot of language battles and flame wars start by criticizing Pascal for its large file size, when the actual application is simple. For example a hello world application being 175KB, while C using GCC produces a 8.6KB executable. Pascal is capable of creating smaller files than the 175KB behemoth. Let's go over 1 change which make your Pascal Executable Size smaller.

Read More

Cloudflare Redirect Loop

Enabling Cloudflare on my website ourbusandus.com cause an odd issue, which I didn't expect. While it seemed to work correctly on this website, tazdij.com on Our Bus & Us it was causing a redirect loop. I thought it was a configuration issue, so I rewrote my nginx server configurations 3 or 4 times. Turns out it had to do with having SSL enabled and a server redirect. Let's take a quick look into the problem and solution.

Read More

How To: Mount Remote Folder via SFTP

Have you ever wanted to work with files on your remote server using your favorite text editor (which doesn't support SFTP)? I know this was a struggle for me, until I switched my laptop to Linux. Now I can just mount the folders from my server to my local filesystem, and use GEdit (gnuedit). Basically Linux (and other *nix OS) is Awesome! Being able to take small applications and make them work together is a huge benefit.

Read More