C++-unofficial.sh-600x600

Functors In C++

Originally posted on PERPETUAL ENIGMA:
When you look at the word “functor”, the first thing that comes to mind is that it looks very similar to “function”. The word actually comes from a field called category theory, which is an abstract branch of mathematics. A category basically consists of objects that are linked to each…

m8jf0po4imu8t5eemjdd

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…

csharp-logo

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…

Simple client-server chat sequence

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,…

interface-intersection

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.…