About Ali Gajani

http://www.mrgeek.me

Hi. I am Ali Gajani. I started Mr. Geek in early 2012 as a result of my growing enthusiasm and passion for technology. I love sharing my knowledge and helping out the community by creating useful, engaging and compelling content. If you want to write for Mr. Geek, just PM me on my Facebook profile.

Posts by Ali Gajani:

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

PyMySQL: Pure Python MySQL client, perfect for Python 3+

PyMySQL: Pure Python MySQL client, perfect for Python 3+

It took me a while to get MySQL working on Python 3.4. I started with MySQLDB, but figured it doesn’t work on Python 3 and above. Then I stumbled upon a nice pure-python MySQL client called PyMySQL. Guess what. It works! Here’s a tutorial on how to set it up on your Mac. 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

Introducing Get STATUS: Use likes as a social currency

Introducing Get STATUS: Use likes as a social currency

Get Status is a social app especially designed for happy and positive people.  The premise of the idea is to use likes as a social currency. It’s the place where you can chat and make new friends, discover and share wonderful moments and and end up receiving tons of likes. More