Secure your nginx Site with letsencrypt free certificates

In this tutorial ,we are configuring ssl certificates for our nginx based website.We are using letsencrypt and showing how to automate the certificate renewal process.We assume you have some linux system administration skills.Also you must have a domain name with dns resolution already taken care of to proceed with this tutorial.Lets get started. Continue reading

Posted in Servers, Tips and tricks | Tagged , , | Leave a comment

Create a database for your wordpress site and load the db backup

This snippet shows how to create the database and load an .sql backup file .It is kept here as I tend to forget these things as time goes by. Continue reading

Posted in Servers, Tips and tricks | Tagged , , , | Leave a comment

Setup nginx to serve two or more domains on a single host

Goal : We want our single host with a fictional IP address of 333.333.333.333 to serve two domains.For example and Continue reading

Posted in Servers, Tips and tricks, Tutorials | Tagged , , , | Leave a comment

Modifications on nginx conf file to make wordpress work.

Change your nginx.conf according to the snippet below.More details can be found on the codex page. The snippet is left here for convenience. Continue reading

Posted in Programming, Tips and tricks | Leave a comment

HTTP Potocol : Writting a simple Client using Qt QTCPSocket and troubleshooting using telnet

http_tute_telnet_terminal_processedI have been reading the specification for the HTTP protocol lately for my projects needs and found that one needs an easy way to test the features you read about very easily either by using readily available tools or even writing your own in code.I cover both approaches in this tutorial.First I show you how to use telnet ,a command line tool you can use to interact with your server to exchange protocol data ,and after that ,show you how you can build your own reaaaaally stripped down version of a GUI telnet client using Qt. Continue reading

Posted in Networking, Programming | Tagged , , , | Leave a comment

Android Smack XMPP Introduction:Building a Simple Client

rooster_full_chat_processedXmpp is a protocol for Presence and Messaging , and Smack is a Java/android implementation of the protocol that helps developers build fast client applications.When one embarks on the journey to build android chat apps based on xmpp using Smack ,there are a lot of pitfalls one can come across as you are trying to combine the three worlds of Java , Android and the Xmpp protocol itself to build one coherent product.This tutorial aims at documenting these and possible ways to mitigate them.By the end of this tutorial ,you will have an android chat client that can connect to and XMPP server , send and receive messages .Most importantly ,you will learn the android plumbing necessary to get all this rolling.Lets get started.Shall we. Continue reading

Posted in android, Tutorials, xmpp | Tagged , , , | 36 Comments

Qt C++ QTranslator tutorial

qtlanguistIn this (video) tutorial I go through the steps and tools involved in the process of writing international applications with the Qt toolkit.By the end ,you will be able to effectively use lupdate ,lrelease and Qt Languist to write an app that runs in english ,french and chinese!The video can be accessed through the links below: (Youtube and Youku). Continue reading

Posted in Programming, Tutorials | Tagged , , | 1 Comment

Android Health App Design : Saving Data in SQLite Database

android_sqliteThe last tutorial left our health android app ,Imirire usable by the user for the first time .Users could select foods , input gram counts and have the total calorie count displayed right away.Did we mention that it was more pleasing to the eye? 😉 ,In this tutorial we are going to improve the model of our application and let it save its data in an SQLite database.Along the way ,we ll discuss some practical tips to go by when debugging database applications on the android platform. Continue reading

Posted in android, Tutorials | Tagged , , | Leave a comment

Android Health App : Handling User Input

android_imirire_user_input_events_menu_displayedThe last turorial in this series left us with a pretty user interface that is dumb in one way : it didn’t handle user input ,in other words we want the calorie total count to be constantly updated as users input grams in EditTexts for chosen foods.We are going to change that in this tutorial.We will also look at how ridiculously easy it is to add menus to your apps so the user can perfrom other stuff on your app.Let’s get our hands dirty making our app better. Continue reading

Posted in android, Tutorials | Tagged , , , | Leave a comment

Android Health App Design : User Interface Made Beautiful

android_imirire_add_foodsThe previous tutorial of our series left imirire list view showing up nice and clean but it is no secret it looks awful .In this article we are going to fix that.In that regard ,we modify the text display to resemble a calculator display screen ,change the lists items so they fill up the width of the screen and fill our model with more realistic data the user can work with.Lets just jump right in. Continue reading

Posted in android, Tutorials | Tagged , , | Leave a comment