Technology

Statistical Analysis of the Holy Quran (Part 1)

Statistical Analysis of the Holy Quran (Part 1)

The English and Arabic corpus of the Holy Quran is a rich source for statistical analysis. For instance, the entire test corpora has half a million words and many thousand distinct words. A rich dataset such as the Holy Quran, therefore, provides for an exciting journey of data exploration. More

HTML Parsing in Python 3.4 using LXML

HTML Parsing in Python 3.4 using LXML

LXML is a nice little document parser for lightweight and effective HTML/XML parsing without using regular expressions. The module can be installed with relative ease using pip and works for Python 2 and 3. Let’s get the token and expire form values from NYTimes site for an example. More

Asynchronous HTTP Requests in Python 3.4

Asynchronous HTTP Requests in Python 3.4

I started learning Python last night. I will be lying if I say “it’s good”. I’ll tell you what, “it’s f**king good”. I am a polyglot programmer and diving in Python was a cinch. It felt as if I knew it already, because “it makes sense”. I’ve been playing around with Python 3.4 and here’s an experiment. More

Understanding the HTTP ETag using Graph API

Understanding the HTTP ETag using Graph API

Over the past week, I have been spending time refreshing my knowledge of HTTP caching. I knew what caching was, but only vaguely. Right now, I’m working on a project which involves implementing a caching layer, for performance and scalability. I am a visual learner, so I did a little experiment. More

Build a Website the Easy Way with WordPress

Build a Website the Easy Way with WordPress

Setting up a website with WordPress has several advantages. It is not an expensive option, so it is affordable for most budgets, and it can be used by both small and large businesses alike. WordPress sites also have plugins available that will do a lot of the SEO work for your site on your behalf. More

Playing with the Hacker News API using Guzzle

Playing with the Hacker News API using Guzzle

Hacker News released its API to the world a few days ago. Data geeks previously had to rely on web scraping and paginated results to obtain data from the Hacker News site, but things have changed now. With Hacker News’ official API, we have a structured way to tap into the data.  More

Geo-targeting your website to a specific country

Geo-targeting your website to a specific country

What if I could show you a way to restrict users on your website by geo-location? With just a few lines of PHP code, you can restrict, or depending on the situation, show, different content to users from different countries. I am sure you get the idea. More