June 30, 2016 1:38 am

An introduction to Twig templating – Creating a Sentiment Analysis app


An introduction to Twig templating - Creating a Sentiment Analysis app
We will be building a simple app which takes from the user the id/name of a Facebook page (the name written in the URL when visiting a Facebook page) and shows some statistics related to the sentiment of the last 100 posts of that Facebook page. It shows whether the page is positive, negative or neutral, how many of the last one hundred posts are considered positive, negative or neutral and it pinpoint the total distribution of positivity, negativity and neutrality in those posts.

[ Read More ]



June 30, 2016 1:34 am

An introduction to sentiment analysis with phpInsight – Creating a Sentiment Analysis app


An introduction to sentiment analysis with phpInsight - Creating a Sentiment Analysis app
We will be building a simple app which takes from the user the id/name of a Facebook page (the name written in the URL when visiting a Facebook page) and shows some statistics related to the sentiment of the last 100 posts of that Facebook page. It shows whether the page is positive, negative or neutral, how many of the last one hundred posts are considered positive, negative or neutral and it pinpoint the total distribution of positivity, negativity and neutrality in those posts.

[ Read More ]



June 30, 2016 1:31 am

An introduction to Facebook’s PHP SDK- Creating a Sentiment Analysis app


An introduction to Facebook’s PHP SDK- Creating a Sentiment Analysis app

[ Read More ]



June 30, 2016 12:03 am

Creating a service which converts images to ASCII in PHP


Creating a service which converts images to ASCII in PHP
Have you ever wanted to send, display or use colored ASCII versions of real images? Well, it turns out this is not something very hard to achieve with PHP. In this tutorial, we are going to create a simple class which has the capabilities to convert all kinds of URLs to jpg/gif/png images to ASCII and show the ASCII in dimensions specified by the user (we shall resize the image to the specified by the user dimensions before converting it to ASCII). Furthermore, we will build a simple web interface where users can give URLs to images and their desired dimensions and see the ASCII output as well as the HTML code that they can use to add the ASCII elsewhere.

[ Read More ]



June 21, 2016 11:33 am

Making the most of the Google Maps API – Marking a path to a location


Making the most of the Google Maps API – Marking a path to a location
Our app takes advantage of a JSON file containing the different bus lines and arrays of geographic points, the combination of which forms the route of the busses. A part of the array with coordinate points looks like this:

[ Read More ]



June 20, 2016 11:16 am

Making the most of the Google Maps API – Keeping the user on the map


Making the most of the Google Maps API – Keeping the user on the map
Now that we have our map added to the webpage, centered on our desired location, and it takes the entire screen real estate we may want to customize it. Let us say that the application revolves around a particular city. We may want to show where the user is located in that city. For this purpose, we will just add a marker representing the user on the map. We will get the user’s location using HTML5’s Geolocation API and we will refresh his/her location on regular intervals so that his/her location stays updated.  When refreshing, we may want to remove the old marker because the user may already be in a different location and we do not want thousands of markers appearing as the user moves around the map.

[ Read More ]



June 19, 2016 10:39 am

Making the most of the Google Maps API – Adding a map


Making the most of the Google Maps API – Adding a map
The Google Maps API allows us to embed maps of arbitrary continents, countries, regions, cities and spots. It not only allows us to do this but it enables us to customize the returned maps and personalize them with our own functionality. Let us build a web app which uses the Google Maps API to not only show a map of a city but adds quite a few markers to it, lines and popups which show additional content when a marker is clicked.

[ Read More ]