MQH Blog
user

MQH Blog

Yet Another Programming Blog :-)


Featured

PrettyPi, Raspberry Pi,

PrettyPi: A TODO List for Raspberry Touchscreen with Web Interface

Posted on .

I would like to introduce the first release of PrettyPi. It’s a todo list application which is intended to by used in Raspberry Pi with Touchscreen, it can be used with normal screens also. I needed a way to always remember my tasks by showing them in front of me all the time, to realize that I used Raspberry Pi with its official Touchscreen and PrettyPi and I got some good results :-)

Featured

EasyJekyll,

EasyJekyll: A GUI Frontend for Jekyll

Posted on .

Hi All. I would like to announce the first release 0.0.1 of EasyJekyll. It is a simple GUI front-end for Jekyll to let you edit your blog’s posts easily. Written using Java/Swing and its license is GNU GPL 3.

Featured

Virtual Machines,

Live Storage Migration in Virtual Machines and VMWare Example

Posted on .

In Virtual Machine Monitors’ world there is a term called “Live Migration”. In this post I’m going to explain what do “Live Migration” and “Live Storage Migration” mean, then I’m going to show how does VMWare implements its Live Storage Migration and finally I’m going to share with you a simple implementation of VMWare’s Live Storage Migration.

Featured

FUSE, Linux, Filesystem, C,

Writing a Simple Filesystem Using FUSE in C

Posted on .

FUSE (Filesystem in Userspace) is an interface that let you write your own filesystem for Linux in the user space. Of course being in the user space is a big advantage, you could use any of available libraries when you build your own filesystem in contrast of kernel space which needs a deep understand of the kernel which you are working with. Actually you can’t build a native filesystem which can store data to disk directly [1] instead you need to use an already exist filesystem to do so [2]. However; you still could build interesting stuff, for example GDFS is a filesystem which let you mount your Google Drive in your system and access the files there as normal files. You can find a list of filesystems that implemented using FUSE here. For me I found ext4fuse really interesting.

Featured

PHP, Telegram Bot,

Writing Telegram Bot with PHP using Guzzle

Posted on .

Several months ago Telegram started to support bots which is, in my opinion, really an interesting feature for a chat application to come with. Anyone could create his/her own bot and of course to make the bot functional a code should be written for it :-). In this post I’m going to explain how to write a simple Telegram bot with PHP using Guzzle HTTP Client. Your bot’s code must reside on your own server which must support HTTP connections and obviously PHP scripts; a shared host is enough but you will need a SSL/TLS if you’re planning to use web hook for you bot, more details about web hook will be presented in this post. You can read the official guide if you don’t know what exactly bots are.

Featured

Java,

Three Days with Java: Day 2

Posted on .

The Initial Position of Swing Application Window

Because I already wrote applications for GTK I have the habit of showing the main window of the application when the user starts it in a position which is close to the mouse pointer and I wanted to implement that with Swing.

Featured

Java,

Three Days with Java: Day 1

Posted on .

Introduction

Three years ago I started with my first project in Java. It was a desktop application which depends on database to store its data and retrieve them according to some business rules. Through the development of this project and because I worked a little bit with Java before, I had many questions of the kind “How to do X in Java?” of course I needed to do some researches to find the answers; that was easy due the simplicity of my questions :-)

Featured

Welcome to MQH Blog!

Posted on .

Welcome to Mohammed Q. Hussain’s blog. I’m going to talk about programming stuff here :-). Enjoy!