Bubbles of Happiness

Once there was a boy called The Boy
Always thinking about a Rare Toy

Which is made out of an imaginary alloy
When used, makes your loved one’s decoy

The very concept multiplied The Boy’s joy
But the poor boy didn’t know the dangerous ploy

That the decoy stayed lively only for a while to enjoy
Which annoyed hell out of the poor little boy

Frustrated now, the boy decided to kill the stupid toy
Never realizing that his brain was the imaginary alloy

Forced Inspiration

The life I am living is so dry and meaningless
That I am living it very thoughtless

Thinking about things which makes me numb
My brain don’t have anything else to pump

The air which is blowing in my way
I hope I get the answers from it as it sway

Time is passing by so fast
nothing but a rhythmic beat’s playing in my nest

A monotone called life asked me for motivation
I said, look for a forced inspiration

Facebook API for Dummies #2

Hope you guys had installed the web server (XAMPP hopefully) as we talked about in the first part. So once you have installed XAMPP it should be installed in C: most probably under XAMPP directory. If you are facing any issues in running the server, try to start the XAMPP control panel with administrator privileges. How do you do that? Simple: Right click on the control panel and click run as administrator. Hopefully you should not be getting any User Account Control restriction error. Also if you are using Skype with ports 80 and 443 for incoming connection, you should probably getting an error in starting up the Apache server since it uses these ports. I suggest you to un check the setting in Skype –> Tools–> Options –> Advanced. Now close both the skype and XAMPP and restart them. You should be fine now!

As I told you before even though the series is named Facebook API for Dummies we will be looking at the basics of programming initially. Lets start with some basic questions:

What is programming? (I am not an expert in computer science, I did not even study computer science but I write what I understand from my experience in layman terms)

question-mark-funny-face-11pyvyy-265x300

Programming is a way to solve the problems in a faster way. Suppose you want to multiply two numbers, lets say you want to multiply 2 and 3. Its no big deal right? What if the numbers keep on increasing? Its difficult to calculate right? So a calculator might come in handy at such situations. So how does a calculator do that? When a calculator was being designed certain set of rules are incorporated into its tiny memory. More specifically rules which define addition, subtraction, multiplication and division. This defined set of steps is called a program. In this case our calculator has been programmed for the basic mathematical operations and assigned buttons which trigger these programs. So whenever we enter a number and a button (in the present context multiply symbol) and another number it does the calculation and gives the output. So basically a program is nothing but a process which takes some input and does the required actions and gives back the output.

Why do we need it?

Simple. To make our life easy!! Anyways who wants to do multiplication of astronomical numbers.

What is computer programming?

As we have seen before a calculator has certain limitations. Not everything can be done on our little device. So we need something more powerful which can solve our various problems at a lightning speed. So our friend computer comes into the picture. I don’t want to go into the details of all the types of languages and their evolution. I suggest you to read it on Wiki (Reading is a good habit, you know! Try to read different stuff, it creates a perspective of your own). So basically  we write defined steps which the computer can understand.

What is an algorithm?

People talk a lot about algorithms. Whats the fuss about it? Algorithm is nothing but the sequence of steps we are following in writing our program which solves a problem. So if we want to find perimeter of a rectangle we can multiply either the length by breadth or breadth by length. These both are two different ways to solve our problem (even though they give us the same result the way we calculate differs). So for a problem there can be many algorithms that can solve it but some of them can be very long and time taking where as some can be very smart and quick. We should spend some time to understand which algorithm is best for us depending upon the situation.

What is web programming?

Whoa!! suddenly web programming!! Ok let us first understand what is Web and how it works. Web is basically a group of computers connected with each other. Each computer will have a unique address which is called IP address (Proxy networks are something else you need to study on wiki). So if you want to host a website, a web server should be installed on a computer where you want to host your website. In our series we are using XAMPP. Once you install a web server, when you type your computer’s IP address in the browser, whatever the documents presented under the htdocs directory of XAMPP are displayed in the browser. But remembering the ip addresses is pretty difficult, ain’t it? So there is something called a Domain Name. Readable address of a computer which can easily be remembered. For example Google might have been hosted on some server with IP address of some x.y.z. This IP address is mapped with the domain name google.com. So whenever you type the domain name in the browser, it resolves the IP address mapped to that domain name and displays the Web content in the htdocs (it varies with the web server)of that particular computer. That’s pretty much the background process of a website. Web programming is nothing but a set of documents we write that can be displayed on the browser.

I hope you are comfortable so far. We will discuss the different types of programming involved in building a website in the next tutorial. If you have any doubts do comment below.

Facebook API for Dummies #1

Hello everyone, its been a while since I posted something here. There was not much creative activity in my brain in the recent days, my blog looks empty. So I thought I should shake my brain and restart the blog and came across my tag poetry to hardcore science, which triggered me to start this tutorial series which I think will be helpful for some people who are interested in creating applications on web. Even though I named this series to be Facebook API for Dummies I will cover lots of basics of programming. If you find any blunders in my posts please feel free to point out them.

Prerequisites for this Tutorial Series:

  1. Understand the logic behind Programming (What the hell is this? Chill, it’s just understanding your requirements and converting them to a computer program. So if you want to build an application which can add two numbers, you should know the logic behind addition, how to add two numbers.)
  2. An Open Mind to learn new things like HTML, PHP, MYSQL (Don’t worry, I din’t know how to write a program once)

Question: So you are saying even if I don’t know how to operate a computer I can build Facebook applications?

Answer: Hypothetical Question! Since you are reading this on a computer I can fairly assume that you are a computer literate and since you have continued reading about this post till this line I can assume you are a bit interested in programming. If you are not you can safely close the browser and do something you like.

Some More Prerequisites:

  1. A decent computer which can run a web server (which cannot be a problem since the least of the computers now a days can run awesome games so running a mere web server should be cake walk for most of the present day computers)
  2. A good text editor. If you are a linux user, I hope “vi” should do or more specifically if you are a Ubuntu user, “gedit” is a blessing for you. If you are a Windows user which comes with the basic Notepad, it will be difficult and not so inpiring to write code on it. So I would suggest you to install “NotePad++” which is an awesome text editor.
  3.  A good web browser. I would suggest you to install either Google Chrome or Mozilla Firefox. I prefer Google Chrome. Please forget Internet Explorer (Uh oh, you need it to download Chrome or Firefox :P )!!
  4. A web server software. So basically this is the software which makes your computer work like a web server and which enables you to run awesome web applications on your local computer. I am a big supporter of open source and free software. I would suggest you to install XAMPP which works like a devil without consuming a lot of your CPU. So installing XAMPP is like installing a web server, PHP platform and a database (MySQL server).

HomeWork: Install XAMPP on your computer

If you have installed XAMPP correctly, the control panel should something like this. Please ignore the errors on the control panel :P

xampp-control-panelThat’s it! You are set to write awesome web applications and run them locally.

We will kick start the tutorial in the next post. Do write your experience in installations in the comments section.

Irregular and Fickle

This post contains words which are abusive in nature so if you feel you can handle them you can read it and don’t worry about the continuity babe.

Yes I am irregular and fickle minded. Aren’t everybody so? But why is religion is so important? Fuck all those who fight for religion as if religion has fought for them previously. Can you no no can someone please tell me think da think.. ya please tell me why religion is so important to you? I don’t understand the point. Okay I am not making sense. I should listen to some song. Ya Pani da rang vekh ke.. Yes Akshay moturi has inspired me to write this. Who is he? No one just a friend of mine. Ya coming to the point that Pani da rang vekh ke.. Pani da rang vekh ke.. why the heck does this song is on loop in my mind. I want to get this song out. I asked many people to suggest me a song to break the loop. Idiots no one has given me a perfect song. Yes Mr.SRK your Challa .. oh sorry ARR bhai.. it is your song right.. ya even that could not break the loop. Hope you should go and meet Ilayaraja and learn something. Okay why Ilayaraja suddenly because he is the only Composer from India. Okay thats too much. Whateeever. Spelling mistakes in typing no problem let the flow go. My hands are paining. So why does human body gets pained? Is there any reason. Don’t start the physics you know force applied or stress or some nonsense. I don’t want to listen to it. I just want peace. I want to die in peace. No don’t think about death. Oh why not…Steve Jobs has said live as if you are going to die today or something like that and as an ardent follower of him (though I use none of Apple products) I should be ashamed of myself. Yes I feel guilty for many stupid things I have done. I loved so many people and that I forgot to love myself. Hey stop it dont think that I am Gay. I am talking in higher sense you idiot. DUrrrrr……Brr……….. ya induction motor starts like that thanks to Mr. Sharman Joshi and 3 idiots. Yes  I have seen the trailer of The attacks of 26/11 by RGV. What the fuck is with people who abuse RGV as if they are Pathiths (okay if you are a non telugu.. leave it). Accepting yourself a hypocrite is a lot better than pretending some stupid things like assholes like me and some others. Okay that might include you, you see. I cant type. This is being typed on my wireless keyboard and shit I am 23 years old  and I did nothing man. Thuu Zuckerberg has become so rich when he was 23 years old. THuu on you again. Yes what was I talking about….?? No it was about me being an ardent fan of Steve JObs. I have decided to start a religon with 13 Principles or whatever principles by Steve Jobs and monotheism for sure. I will make it very competitive you see. If you have to use iPhone you need to convert to our religion you know. It makes you so human you see. No false promises. Fuck me I started with abusing religion and I am thinking of starting a religion. What an asshoel I am LOL? That punctuation mistake was deliberate. I know you might have noticed that. No!!? notice it now.. I thought so much for like 0.001 ms and came with such an awesome humorous line. Its 12 42 AM. I should sleep and you know what fuck this post. I am gonna delete NO WAY…. I MA not goingh to that you see. I want some comments I know you will like me. I know you will think of me “WOW He is different’..”" My *** thats for censor board you know.. WHat a sense of humor Ramu.. you are awesome I know but when will this world kome to know abt that?? Yes now with this post.. you seee..

Adios .. I am deliberately not remembering hte second word which is AMigos

I assembled my custom AMD rig – Part 1

I am a huge fan of Steve Jobs but never owned an Apple product. I thought of buying an entry level iMac which costs 65K INR ($1200) approximately. But for a average user like me the price is too high so I decided to go for a custom build for a lower price. So I have assembled a custom Desktop ordering different parts from flipkart.com. As for the configuration goes, for those who are interested to know, its a custom AMD rig. In this part I would like to describe what parts did I choose and some pointers to remember while choosing a component.

CPU (Central Processing Unit/Heart of the machine)
Initially I was under the impression to go with an Intel Core i5 or i7 series but a decent googling taught me a normal user like me doesn’t need the high end Core i7 series nor do I need to spend more than 15K INR on an Intel CPU. So I started reading about alternatives and thanks to tomshardware.com and flipkart.com reviews I finally chose an AMD FX 4100 Quad Core Processor (the cores needs to be unlocked once you install with a compatible motherboard) with a clock speed of 3.6 GHz (haven’t tried over clocking yet) and a AM3+ socket which came at a decent 6.4K bucks (less than
half the price of i5).

Motherboard (Your heart needs a body right?)
The next thing to chose logically was a compatible motherboard for the CPU I selected above. Again I went through a series of products and left with a Biostar motherboard and an ASUS motherboard. I went with an ASUS motherboard which had cost me 2.7K INR.

RAM (Pour the blood)
Now that I decided up on CPU and Motherboard the next possible thing would be a RAM. The ASUS motherboard I chose has two memory slots supporting upto 1866 MHz clock speed of RAM. While studying about RAM I came to know about an important factor which plays a major role in the speed. All these days I have been thinking that more the memory of RAM more the speed of my computer. WRONG! Its the clock speed which determines the speed. So a 4GB 2000+ MHz RAM outperforms a 8GB 1333MHz RAM easily. So whenever you are choosing a RAM look for these specs. Don’t just go with the memory. So yeah, I had to choose between G.SKill RipJaws and Corsair Vengeance. Eventhough G.Skill is a better device than Corsair Vengeance I was not sure about the compatibility of it with my motherboard so I decided upon a 8GB (1x8GB) Corsair Vengeance with 1600MHz speed. It cost me 3.6K

HardDisk (Need some brain to store memories)
Its 2012! and I’m going for a good custom desktop. So I decided to go for a hard drive with bigger capacity. I chose a 2 TB WD Cavier Green hard disk which had cost me 6.5K.

Power Unit (God’s touch to provide Life)
There are two major brands competing with each other in this category. Seasonic and Corsair. I chose a Seasonic PSU with 520W capacity which had cost me 4.5K

Graphic Card (Child needs some training to act faster)
I came to know about a crucial point about graphic cards while studying about them. Similar to RAM the memory doesn’t matter much with graphic cards too. If you want to play a game with high end graphics its not the memory that helps you its the stream processors that helps you in the game. So choose a graphic card which has more number of stream processors. A 1GB graphic card with 160+ stream processors outperforms a 2GB graphic card with 48 stream processors. I chose a Sapphire ATI Radeon HD 6570 1GB graphic card which had cost me 4.6K.

Optical Drive (Occasional training for reading and storing memories externally)
Since most of the times I use a pendrive for my files transfer and other things I chose a basic optical drive with CD and DVD RW Capability. I wanted to buy a ASUS DVD writer but due to unavailability of the model I had to choose LG GH24NS71 optical drive which had cost me 1K.

Cabinet (Getting up the body dressed up)
I used an assembled desktop in 2006 which was Pentium Dual Core with a flop motherboard model. The cabinet and my desktop looked terrible. The cabinet not only gives the look your system needs it also is a main component which takes care of various issues like heat, air flow and spacing between cables. So I thought I shouldn’t compromise on a cabinet since it can be useful if I am going to make another custom rig. So I chose a Corsair 400R Midtower cabinet which had cost me 5.8K.

Monitor (Give your memories a language, show them)
I should say the choice of monitor for me was like a cake walk. Its the awesome looking 20 INCH Dell LED Monitor which came at a 6.8K price. The minute I saw it I chose it for its curves.

Keyboard & Mouse (Take inputs from others properly)
I am a great fan of iMac. Its the simplistic construction of iMac which keeps it in a different league. The concept of wireless keyboard and mouse was not existent while I started using computer in 1999. I used to get frustrated with the number of cables behind the desktop and if there is some loose contact then our life becomes double awesome. I didn’t want to repeat that. I chose a Microsoft wireless Mouse and Keyboard which had cost me 1.5K.

Audio System (Voice your opinions louder)
I chose a basic Creative SBS 2.1 Sound system which had cost me 1.8K

So on the whole it had cost me approximately 45K INR ($820) to buy all the parts needed to build my custom AMD rig. I ordered all the products from Flipkart.com and the reviews on flipkart helped me a lot to understand some new concepts while selecting a component. I will share my experience of assembling the system in the next post.

P.S: The comparisons are just for fun. Please don’t point out the logic.

Truthful Person

No one is ready to hear you all the time
No one is ready to think about you all the time

No one will change themselves for you
No one will compromise on anything for you

No one is going to sacrifice anything for you
No one is going to look after you

No one does things for you out of pure love
No one loves you unconditionally

You will be there with yourself
In trouble
In happiness
In frustration
In sleep
In death
In everything

In a world full of materialistic people
You are the only person true to yourself

You are the only person true to yourself