How to obtain current location with Android (Java)

Suppose in your app you would like to obtain the current location of the device. In other words, obtaining stuff like latitude, longitude, and city. Its very simple to do so with Android. You’ll first need to import… To obtain the latitude and longitude To obtain the city Lastly, if you wanted to be even…

Using the ListBox control in .Net (C#)

In this tutorial, I will demonstrate a very simple example and use of the ListBox control. What we will be doing is loading a csv file full of data (cities worldwide) and populating the ListBox with the data read in from file. Afterwards we implement a simple search that lets the user search for a…

Client-Server chat in C++ using sockets

In this tutorial, I’ll demonstrate a simple Linux socket program that uses sockets to create a chat between a client and server. Before you read further into this, I recommend reading up on Linux socket programming and a bit on the layers of the internet for background. As this program uses Linux system calls, again,…

Interfaces – An Article

Really great article describing the importance of interfaces and example usage in software and in the real world. An interface can be though of as a contract between the system and the environment.  In a computer program, the ‘system’ is the function or module in question, and the ‘environment’ is the rest of the project.…