Blog

An idea for a lightweight PHP CMS with .txt files and query strings

An idea for a lightweight PHP CMS with .txt files and query strings

Ali Gajani · August 10, 2014 · Originally from Mr. Geek

Laziness often helps you figure out funny ways to solve problems. Put it this way. I've found a hack to create a lightweight CMS in PHP that uses .txt files and query strings. Yes, you publish through a URL, and the persistence happens inside a text file. Not a MySQL database. Crazy! It works. I

Read more
Data mining 1.5 million tweets for Twitter sentiment analysis

Data mining 1.5 million tweets for Twitter sentiment analysis

Ali Gajani · August 6, 2014 · Originally from Mr. Geek

The contents of this blog post are inherited from a short research project by Group 10 of the Information Retrieval and Data Mining module at University College London. Instead of letting it rot in my Dropbox, I decide to free the knowledge and hope someone finds it useful. The research goal was to

Read more
Building a REST API using Hapi.js and MongoDB

Building a REST API using Hapi.js and MongoDB

Haseeb Khilji · August 3, 2014 · Originally from Mr. Geek

MongoDB and Hapi.js are two powerful technologies that allow working with REST API a cinch. You may already familiar with them, but let me do a quick review on it.  Hapi.js is a very rich node.js framework for building applications and services. Hapi enables developers to focus on writing reusable

Read more
Android L Hands On

Android L Hands On

noohkazi · August 1, 2014 · Originally from Mr. Geek

It’s been quite some time since Google rolled out the Android L Developer Preview for Nexus 5 and Nexus 7. We decided to boot it up and experience what's inside. The device used is a Nexus 7 2013 (Wi-Fi). The first dramatic differences when you boot up Android L are obvious. There is a complete UI

Read more
Managing Assets in Laravel 4 using Helpers and HTML Builder

Managing Assets in Laravel 4 using Helpers and HTML Builder

Ali Gajani · June 28, 2014 · Originally from Mr. Geek

Laravel 4 doesn't have a lot of documentation on managing assets such as stylesheets or Javascript files. Laravel 3's documentation did however, but it seems to have been omitted for the newer version somehow. Today, I'll be showing you some neat ways to manage assets using Helper functions and HTML

Read more
Dead simple CRUD in Laravel 4

Dead simple CRUD in Laravel 4

Ali Gajani · June 26, 2014 · Originally from Mr. Geek

I feel I've come late to the party. But they say, it's never too late. Laravel's community has matured and it's safe to say the framework has brought the sexy back to PHP. Laravel is dead simple. It's expressive, elegant, and extremely powerful at the same time.  CRUD operations are the core of any

Read more
FreeMyApps: Download Suggested Apps and Earn Rewards

FreeMyApps: Download Suggested Apps and Earn Rewards

Ali Gajani · June 26, 2014 · Originally from Mr. Geek

Wouldn't it be great if a service asks you to download some apps suggested by them, and in return you earn $$ or free items as reward. Freemyapps does just that. Read on to find out more. How FreeMyApps Works Some individual developers or companies that make Mobile apps (iOS and Android

Read more
Facebook buys Yo! app for $5 billion dollars

Facebook buys Yo! app for $5 billion dollars

Ali Gajani · June 20, 2014 · Originally from Mr. Geek

Our team of Silicon Valley insiders have just reported a major development in the area. Facebook has just finished a deal to acquire mobile app Yo! for approximately $5 billion in cash and stock. Yo! will remain an independently branded standalone app that’s separate from Facebook. The

Read more
What's new in Yosemite OS X 10.10 Beta 2 ?

What's new in Yosemite OS X 10.10 Beta 2 ?

Ali Gajani · June 18, 2014 · Originally from Mr. Geek

Cook and Co. just pushed their latest beta updates for iOS 8 and Yosemite OS 10.10. I've updated my Yosemite and here's a short review on what's changed. I am only documenting the visible changes, but I've provided a Pastebin of the full release notes in case you're interested. Wifi bug: The Wifi

Read more
How to update Homebrew in Yosemite?

How to update Homebrew in Yosemite?

Ali Gajani · June 11, 2014 · Originally from Mr. Geek

Yosemite uses Ruby 2.0 where as my previously installed Homebrew was set to use 1.8. I did an upgrade from Mavericks to Yosemite just last week, but it was today that I set out using brew commands and realized, oh no! But I have a 2 minute fix that works just fine.  Step 1 Change the first line of

Read more
How to fix the Wifi bug in Yosemite using Keychain reset?

How to fix the Wifi bug in Yosemite using Keychain reset?

Ali Gajani · June 8, 2014 · Originally from Mr. Geek

The Wifi bug in Yosemite's current beta release is irritating. I am back on Ethernet now that Yosemite won't let me connect to Wifi. Even when it does, it disconnects in a few minutes. Guess what - I've a bug fix that works. Step 1: Open Keychain using Spotlight (Cmd+Space). Step 2: Go to Keychain

Read more
Hands on with OS X 10.10 Yosemite by Mr. Geek

Hands on with OS X 10.10 Yosemite by Mr. Geek

Ali Gajani · June 3, 2014 · Originally from Mr. Geek

I've just downloaded Apple's OS X 10.10 Yosemite pre-release. You might ask, how did I get my hands on it? Well, as an owner of a Developer account, I have access to beta releases from Apple right from their developer portal. It costs 99 bucks a year but it's worth it. Here's a hands on review of

Read more
Improve your Chrome experience with Speed Dial 2

Improve your Chrome experience with Speed Dial 2

Ali Gajani · May 31, 2014 · Originally from Mr. Geek

I dislike Google Chrome's \"New Tab Page\". It's not aesthetically pleasing. Have a look at the image above. Can you see it? That's Speed Dial 2. It's by far the best replacement of the 'New Tab Page\". Speed Dial 2 gives you access to your favorite sites with a gorgeous, customizable user interface.

Read more
Setting up Laravel 4 on OS X 10.9 Mavericks

Setting up Laravel 4 on OS X 10.9 Mavericks

Ali Gajani · May 29, 2014 · Originally from Mr. Geek

I come from the world of CodeIgniter, the ailing framework who was once the Zeus of the PHP framework arena. I have written around 20,000 lines of code in CodeIgniter, and developed a marketplace platform back in 2012. CodeIgniter was love at first sight, but with its slow development pace, Laravel

Read more
Breakpoint Tester and FlatUI Colors

Breakpoint Tester and FlatUI Colors

Ali Gajani · May 17, 2014 · Originally from Mr. Geek

Wassup folks. Bob here, Mr. Geek's side-kick. I got some goodies for you today. Attention web artisans and pixel perfect designers, this blog post is for you. Over the past couple of years, Mr. Geek has collected links to tools on web design and development. I have finally persuaded him to allow me

Read more
How to open large text files (>5 GB) on a Mac ?

How to open large text files (>5 GB) on a Mac ?

Ali Gajani · May 14, 2014 · Originally from Mr. Geek

A month ago, I downloaded a large dataset from Twitter. The .txt file consisted of around 1.5 million tweets in JSON and weighed at 5.5 GB. I wanted to look at the structure of the JSON in order to design a parser for processing the tweets. I was then working on a Sentiment Analysis project. As I

Read more
12 Most Famous PhD Theses In History

12 Most Famous PhD Theses In History

Ali Gajani · April 15, 2014 · Originally from Mr. Geek

I have compiled a very solid list of the 12 most famous PhD theses (plural of thesis) in history. Do realize that this list includes 'PhD Theses' and not books/volumes (so Principia by Newton doesn't count).  This list is based entirely upon my general knowledge, so pardon me if I am limited in my

Read more
Graph Theory 101: Directed and Undirected Graphs

Graph Theory 101: Directed and Undirected Graphs

Ali Gajani · April 12, 2014 · Originally from Mr. Geek

This is a very short introduction to graph theory. We will be talking about directed and undirected graphs, the formulas to find the maximum possible edges for them and the mathematical proofs that underlie the philosophy of why they work. This is my first use of LaTeX on Mr. Geek. Graph Theory

Read more
Getting it Right When Choosing HR Software

Getting it Right When Choosing HR Software

Ali Gajani · March 27, 2014 · Originally from Mr. Geek

People are perhaps the most important element of any business, so it's vital to look after your employees properly. And when it comes to payroll and human resources software, it pays to choose a solution that not only meets your needs but can also grow with your organisation. Assessing your needs

Read more
Measuring influence in a group using social network analysis

Measuring influence in a group using social network analysis

Ali Gajani · March 2, 2014 · Originally from Mr. Geek

I have decided to publish the contents of my Complex Networks and Web coursework project here on Mr. Geek. The information contained in this post might be complex to some, but I assure you that this will be a good long read. I have included lots of pictures to make sure you don't get bored in the

Read more