Category: Informational

Installing Linode Longview on Fedora 28

This post talks about how you can install Linode Longview on Fedora 28. Why doesn’t the standard instructions work? It turns out that you cannot just install Linode Longview on Fedora 28 as it isn’t a supported operating system. When running the automatic install script the following error will appear. Failed to synchronize cache for

New website created

A slight deviation from my normal weekly posts to announce that the most recent update to has been uploaded! I have added a couple of pages including: Contact me page – A simple page with the easiest way contacting me Legal Stuff – Includes the software licence for code snippets on my blog and website

BIGINT Overflow Error Based SQL Injection

In MySQL 5.5+ you can abuse a new feature with BIGINT values. This involves a problem called integer rollover and your ability to run arbitrary SQL. The problem of integer rollover Integer rollover happens when a number is too big or small and is made bigger/smaller. In the case where the number is the highest

Why are PHP’s function names a mess?

I have always wondered this, its exceptionally hit and miss and there isnt any real standards. I recently found the reason on the internet Well, there were other factors in play there. htmlspecialchars was a very early function. Back when PHP had less than 100 functions and the function hashing mechanism was strlen(). In order to

Add a user to a group in Linux

How to add a user to a group in Linux usermod -a -G Its a simple as that. So for me adding the user “chewett” to the user “vboxusers” i run the command usermod -a -G vboxusers chewett The -a flag means that the new group is appended, without it you will overwrite your current

Location of GeoIP.dat for PHP

To find the location of GeoIP for PHP you can ssh into the server and use the “find” command. find / -iname GeoIP.dat Will return a list of file paths where the file with this name is found. In my case I found: /usr/share/GeoIP/GeoIP.dat /usr/local/share/GeoIP/GeoIP.dat /opt/geoip/share/GeoIP/GeoIP.dat In my case the bottom link was the one

Show trailing whitespace in Vim

Vim is a wonderful command line text editor with syntax highlighting and everything you could ask for provided you turn on the functionality. Recently i was shown that it was also show trailing whitespace with a quick addition to the .vimrc file. All you need to do is add the following: set list set listchars=tab:→\

Grace Hopper – Computer Science Legend

I’m relatively surprised that I hadn’t heard of her before a couple of weeks ago. While discussing small loop optimizations with some friends someone referenced her nanoseconds video (see below). This short video explains quite simply, the concept of a nanosecond. After seeing her talk about nanoseconds, I went to research her a bit further