James John – Software Engineer

Smoothing Fonts in GTK Apps in KDE

Smooth font is one the sleek things I like in graphics, even in my IDEs. Without them; there’s nothing I admire in a view. Moved to Fedora some time last week and I had to reinstall KDE – my favourite desktop, I lost my configurations because I needed a new and fresh install. I found […]

Plymouth – Installing and Configuring Boot Screen on Debian

By default Debian Distribution doesn’t come with a boot screen, but just bunch of debug messages on booting. I know I run a server-like distribution, but I like using it as a Desktop PC, Linux is Linux right? 😉 And there comes Plymouth Plymouth presents a graphic animation (also known as bootsplash) while the boot […]

How to Reset MySQL Root User Permissions and Password in Linux

Sometime ago, I tampered with my MySQL root permission; I was unable to grant permission to new users, which kept me wondering why I am the root user or is there any other person? :/ In this post, I will show you have to restore your MySQL root permission which might have been tampered, and […]

PHP-JSONDB: A PHP Class that Reads JSON File as Database

It’s funny though. One noon at Cafe Neo in Sabo, Yaba, I was waiting on my friend Magnus while he met his friend. Sipping my coffee and using my laptop, with the bad network there, I couldn’t browse with my GLO SIM; I then decided to play around. I exported my MySQL Database as JSON […]

huawei3gswitcher: My little Code that Switches Huawei Modem Network Mode

Okay! I found myself using GLO Network, probably because of the cheap Internet data. But that wasn’t enjoyable, as their network 3G is not stable, my device is always jumping from 3G to 2G vice versa all the time. This disturbs my browsing I don’t use Windows, so no software for me to keep this […]

Spoof HTTP Headers Using Squid Proxy Server

What are HTTP Headers? HTTP headers are the core part of these HTTP requests and responses, and they carry information about the client browser, the requested page, the server and more. Examples of HTTP Headers What your browser sends to the server:

This interprets, my browser requests for the directory / on the host […]

Downloading Package Source Files and Rebuilding in Debian/Ubuntu

Gets to a point you might want to rebuild a package, maybe to be modified. It is easily done in Debian based systems. We will be using nano for this post, we are going to download nano source and rebuild it to a .deb file. Before this is done, you have to add deb-src to […]

MySQL2MySQLi: A Small Program to Help Migrate from PHP mysql_* to mysqli_*

Stumbled upon a very monstrous PHP project, very old of course, the client complained that the web host refused to downgrade the server for them and this project doesn’t work anymore because it was written with bunch of mysql_* depreciated function. Now it was my job to start editing these files one after the other, […]

This Python Program will Set your DNS Servers in /etc/resolv.conf Accordingly

Etisalat Mobile Communication Network blocked OpenDNS Server which turns out to be the server I use most. So each time I connect to Etisalat, I will go to edit my /etc/resolv.conf and set it to Google Public DNS. Been doing this for months and I told myself, why not write a program to check this […]

Bluetooth: Fix a2dp-source profile connect failed for XX Protocol not available in Linux

Been a while I’ve always wanted my Android to stay connected to my Linux via Bluetooth but I always get this heartbroken error message. bluetoothd[778]: a2dp-source profile connect failed for XX:XX:XX:XX:XX:XX: Protocol not available Why This Error? Most bluetooth devices are connected to your PC to use as Multimedia device (Sound), but when it wants […]