GoodBye Akamai

Posted: 18th April 2013 by Javid in akamai
Tags: , , ,

The title says it all, Today is my last working day at Akamai and I have decided to pursue my career somewhere else, I have spent nearly 2 and a half years at Akamai, and it always felt like I have joined a few days back. I have enjoyed my tenure at Akamai and always loved working with all there. Over the past couple of years at Akamai I have developed Interests in HTML5 and JavaScript, I think these are the technology for tomorrow, so I want to pursue my Interests in that.
Read the rest of this entry »

In continuation with the previous post where I showed how to parse a jQuery RSS feed, Let’s take the same concept to the next level. Lets make a cross domain request with jQuery ajax function using JSONP protocol. RSS has just XML nodes and JSON is a much better way to present data than XML. We will parse the JSON data coming from a cross domain server. Speaking in terms of browsers, it is not possible to parse an XML data from a cross domain, but however if we apply the same concept as what is used for JSONP(JSON with Padding),
Read the rest of this entry »

Parse an RSS Feed with jQuery

Posted: 13th January 2013 by Javid in ajax, html, jquery, xml
Tags: , , ,

Let’s take a generic RSS feed and see how we can parse this XML feed in jQuery. By parsing I mean extracting the relevant information from the xml nodes and putting this information in to an html page. The XML individual nodes will be parsed to html divs or anchor items depending on what we have in XML node, link or text or date.

The generic RSS Item looks like this, I have taken this sample XML node from cricinfo RSS feeds. This code block contains two Identical Items and, since both have relevant information except that link has a query string, I will just Ignore the <guid></guid> node.

<item>
<title>Retiring Hussey steers Australia to victory</title>
<description>Michael Hussey is one of cricket's finest finishers, so it was only fitting that he ended his international career by steering Australia to victory and a series clean-sweep over Sri Lanka</description>

<link>http://www.espncricinfo.com/australia-v-sri-lanka-2012/content/story/599810.html?CMP=OTC-RSS</link>

<guid>http://www.espncricinfo.com/australia-v-sri-lanka-2012/content/story/599810.html</guid>
<pubDate>Sun, 06 Jan 2013 06:37:04 GMT</pubDate>
</item>

Read the rest of this entry »

Background of a page can be set with CSS via one line of code like

body{background:#990000;}

But what if you want to have your page change the background color every 5 seconds, CSS falls short here and you need to do this via javascript.

To do this via javascript, I am going to take an array of color codes and our javascript code will pick on of the color codes and apply this as a page background. I will First use Math.random() function that will return me a random number between 0 and 1(Math.random() always returns a floating point number between 0(inclusive) and 1(exclusive)). I will multiple this number by the no. of color codes that are in my array. I will get the no. of color codes in my array by using length property of array. This will again give me the floating point no. To convert this to Integer I will use Math.floor() method something like below: Read the rest of this entry »

JavaScript Arrays

Posted: 8th October 2012 by Javid in arrays, javascript
Tags: ,

In this post I am going to talk about JavaScript arrays. Arrays are fundamental to every language and JavaScript is no exception. JavaScript arrays are a must for every programmer as their application is vast and is used in most of the programs we write. First I will walk you through the basics of arrays and then we will discuss the methods like

1: push();
2: pop();
3: shift();
4: unshift();
5: slice();
Read the rest of this entry »

Lesser known facts about HTML

Posted: 16th September 2012 by Javid in html, lesser known facts

HTML has been around ages and has gone a lot of revision since the markup was introduced. While there is no doubt that HTML is easy to learn and almost every developer will know a bit of html. But do you know how well you know html. Front end developers may take this with a pinch of salt but I am pretty sure most of the front-end-developers may not know some of the features about HTML. In this post I am going to talk about a few of those html features which most of the developers don’t know.
Read the rest of this entry »

Computer Science Problems are mainly categorized into the types of complexities involved in solving them. Yes I am talking about Big Oh Notations and all that. But this tutorial will not focus into Big Oh Notation rather it gives a general idea about the various types of problems in Computer Sciences with a special emphasis on NP Complete Problems(hey I will explain below what is NP Complete).
Read the rest of this entry »

Hello world!

Posted: 24th August 2012 by Javid in Uncategorized

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!