FREE Book Download From Amazon (True Story)

Hello! I apologize for taking a little too long to post something! I have been doing certain things (other side projects) and following the progress of my country’s election [Kenya]. I hope everything is going good for you.

Today(starting Wednesday 3/6/2013), I am going to give my book away for FREE on Amazon. I have been waiting for this for a while now and I figured I should do it now and then extend my reach to other platforms like smashwords and Barnes and Noble. So here is what I am going to do:

Object-oriented Programming In PHP – Part II

Yesterday I created a post on OOP and had to split it in two to avoid making it too long. Today, I am going to finish up the remaining part before starting other stuff! So, let us get started here.

object-oriented-programming

Controlling Visibility Through Inheritance With private and protected

While writing code using OOP, you can use private and protected visibility modifiers to control what gets inherited. Attributes or methods declared as private will not be inherited. If an attribute or a method is marked as protected, it will not be visible outside the class (like private) but will be inherited. Example:

Reusing Code and Writing Functions – PHP

Hello! One thing you will hear everywhere you go as a coder is code reuse – the idea that if someone has already written some code that you need, you might want to consider using it instead of spending so much time writing from scratch. You could choose to repeat the process but your boss might not like it very much!

Quora, Mozilla, Smarterer – My 3 Friends

Hello! Today, am just going to step a side(from code) and share with you some of the coolest things I have in my pocket! First of all, let us both agree that the web is too big to beat and you could spend the rest of your life roaming around in search for the right information!

quora-smarterer-blogging

I don’t know about you but I face information overload quite often and I end up not getting the answers to my questions even though I have the whole day to sit in front a computer. You are probably thinking, ‘what about just opening a browser and typing some key words into Google ?’ Yeah, trust me, you can do that and still find nothing useful.

A simple python script to find bloggers on twitter

Hi! I know you are probably asking what the heck is he doing? I will be honest here, this is not a tutorial but a simple quick fix to a problem I faced last night. I was invited by an author to take part in the so called blog hopping. One of the requirements was to find at least five other authors with blogs to join the adventure. So, I asked myself, how could I make this as much fun as possible and learn something at the same time?

The Force Is Strong With This One

So, we are almost at the end of the journey here and I am so excited to do so. In my previous post, I demonstrated how to pick up the pieces from the returned data and put them into a single file. That was easy right?

The problem is that if someone else wanted to use my code, they would have to change parts of the code every time, which is not very smart! Today, I am going to put our code together, encapsulate it in a function that will take one parameter from the user and perform the tricks behind the scenes and boom, you get clean tweets containing the query keyword you entered. I know, I should stop talking and show you what I did: