Old is Gold: 90’s Childhood in Qatar

Nostalgia!!! I have had most of these…Oh and there was the Parachute Roundabout that was demolished too.

Contemplations of a Stranger

(All the images have been collected from Facebook. If you have objection to any of these images, please let me know so that I can remove it.)

The fancier box you had, the more popular you would be in the class.

The fancier box you had, the more popular you would be in the class.

The objective of buying toys was to break it and remove motors like these.

The objective of buying toys was to break them and remove motors like these.

Old notes.

Old notes.

In supermarket, whenever we would pass by this Nido color box set, it was difficult for us to take our eyes away from it.

In supermarket, whenever we would pass by this Nido color box set, we would struggle to take our eyes away from it.

Istimara time.

Istimara time.

View master.

View master.

Best snack ever.

Best snack ever.

Only the kids of 90's will know the relationship between this cassette and a pen.

Only the kids of 90’s will know the relationship between this cassette and a pen.

Old Qatari taxi.

Old Qatari taxi.

Our dream fountain pen.

Our dream fountain pen.

Before the cricket days, our attention was in football.

Before the cricket days, our attention was in football.

This roundabout does not exist anymore.

This roundabout does not exist anymore.

QTV logo.

QTV logo.

Tiffin time.

Tiffin time.

Aladdin Kingdom.

Aladdin Kingdom.

Old currency of Qatar.

Old currency of Qatar.

Legendary Chips Oman.

Legendary Chips Oman.

1185680_10153498771255445_627032000_n

Trademark iron.

Trademark iron.

Brick game.

Brick game.

Water gun.

Water gun.

If you have lived in Qatar in the 90's, I am sure you have seen notebooks like this.

If you have lived in Qatar in the…

View original post 500 more words

Loading, Editing, and Saving a Text File in HTML5 Using Javascript

This Could Be Better

The HTML and JavaScript code below makes use of some features of HTML5 (specifically the “Blob” object, the File API, and the “download” attribute of the “a” tag) to allow the user to load, edit, and save a text file on their local computer.  As of this writing, it works in both Chrome and Firefox browsers, though sadly it requires a little bit of custom code for each.

To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript.  Or, for an online version, visit http://thiscouldbebetter.neocities.org/texteditor.html.

<html> <body> <table> <tr><td>Text to Save:</td></tr> <tr> <td colspan="3"> <textarea id="inputTextToSave" style="width:512px;height:256px"></textarea> </td> </tr> <tr> <td>Filename to Save As:</td> <td><input id="inputFileNameToSaveAs"></input></td> <td><button onclick="saveTextAsFile()">Save Text to File</button></td> </tr> <tr> <td>Select a File to Load:</td> <td><input type="file" id="fileToLoad"></td> <td><button onclick="loadFileAsText()">Load Selected File</button><td> </tr> </table> <script type='text/javascript'> function saveTextAsFile() { var textToWrite = document.getElementById("inputTextToSave").value; var textFileAsBlob…

View original post 111 more words

Setup Aptana for JQuery Development

Leo is a Hacker.

Aptana is an excellent IDE for writing code for python/ruby/jquery, I don’t / wouldn’t to develop PHP :), mastering the programming languages like ruby/python/javascript and related tools is overhead enough for me.

Now, I will talk about setting up the Aptana 3.05+ for JQuery Development.

AutoComplete and Syntax Reference

We need to install Javascript-JQuery.ruble to support AutoComplete.

How to Install

From the meun Commands > Bundle Development, we can Install Bundle for JQuery, that Javascript-JQuery.ruble from GitHub will be installed. This project ( javascript-jquery.rulbe is ported from Textmate’s jquery bundle).

After that, right-click the project in project explorer, select menu item “Properties”, select the checkbox for correct JQuery version in Project Build Path, Done!

Now we have the inline code-assist and syntax prompt when writing the code.

Since the Aptana 3.0, Ruble (Ruby bundle) is introduced to developers. We can think it as a clone implementation of bundle from TextMate

View original post 210 more words

An Inspiration, Muniba Mazari

physical challenges can’t hinder your spirit

People From Pakistan

Muniba-Mazari-TEDx-Islamabad

“I am caged by my body but my mind is free and so is my soul and so is my spirit.”

Muniba Mazari is an artist and a writer. Pakistan’s 1st wheel chair bound model. She has planned to be 1st wheel chair bound tv host in Pakistan. She has 3 year old son. She believes in playing with vibrant colors and flawless portrayal of true emotions. Her work speaks her heart out and is all about people, their expressions, dreams and aspirations. Muniba Mazari was one of the guest speakers at TEDx Islamabad 2014 event where she portrayed her true emotions.

Although wheel chair bound, her spirit and artistry knows no bounds. In fact, she takes the agony of spinal cord injury as a challenge and is more determined to express her sentiments through her art work. About this she said “Although it is hard to paint…

View original post 184 more words

Implement Push Notifications in Android using Parse

just what I needed for my project!!

Explore yourself in android

What is Push Notifications?

Push notification allows an app to notify you of new messages or events without the need to actually open the application, similar to how a text message will make a sound and pop up on your screen. This is a great way for apps to interact with us in the background, whether it be a game notifying us of some event occurring in our game world .

In addition to pushing messages to the screen, push notification allows apps to display a number or ‘badge’ on the app’s icon. For example, the Mail icon will show the number four when we have four unread messages.

Benefits of Push Notifications:

  • Engage customers

  • Keep customers informed and connected

  • Guide customers to their business.

  • Lower cost and better tracking than SMS.

  • No cost to the customer for rich media, unlike MMS.

  • Can target to events and times when most…

View original post 1,180 more words

Forgotten

Soliloquies of a wanderer

Trails Unexplored

We’re trying so hard, all the time,

To be different – each one of us,

We’ve forgotten

All that we bear in common,

How beautiful we look

As one.

We’ve launched so many satellites

To find our way for us,

We have lost the art

Of getting wonderfully lost

On trails unexplored.

We’re so busy seeking

Likes, shares, comments; Mass approval

Of each rhyme, picture & experience

In a virtual world,

We’ve forgotten the grace

Of brutal honesty,

Of kindness never spoken of,

Of adventures lived, not captured.

We’ve loved and lost,

Loved and lost, loved and lost…

So many times over,

We no longer embark on a story

Believing in a forever.

We are so busy saving time,

All the time –

Faster processors, shorter routes, more MBs per sec,

We forget to live

The moments we save.

We’ve put on so many layers

To shield us from harm,

We fail…

View original post 48 more words

Midnight Express

Poems & People

Each dusk from hope outworn by day
a dawn is dreamt of as I lay,
yet bares it through not hourly veils
its visage for it night conceals,
instead what rushes through the dark
and sings out ceaseless as a lark
tis the midnight express steaming
keeping me from thusly dreaming;
Nowhere from and nowehere to
burdened by a soul nor reason,
it travels endless deserts through,
restless hermit fears no season.
In moments black and hours unholy
it awakens me and reminds me solely;
“rest can never come from resting
dawns are dreamt to not dreamt of,
life is from one breath nor many,
hope is worn by age and wisdom,
fear is for fools, sages and men
as freedom lies in the dark unknown.”

View original post

Spoj(DCEPC206) Its a Murder!

coding hangover

Problem link: http://www.spoj.com/problems/DCEPC206/

There is an nlogn solution for this problem. If you have already come across Inversion Count problem www.spoj.com/problems/INVCNT/ you will find this easy to solve.

All you have to do is to add 1 extra line in merge sort algorithm. In merge sort, we divide the array into subarrays recursively until there are just 2 elements in a subarray. We then arrange the subarray in sorted order and merge it with other subarrays.

Consider 2 subarrays arr[l…mid-1] and arr[mid…r] in the merge function which are sorted seperately and are ready to merge

i varies from l to mid-1

j varies from mid to r

i<j always

Let sum be the variable which holds the sum of all the numbers previously seen on the stairs which are smaller than the present number.

if(arr[i]<arr[j])

arr[i] comes before arr[j] in the input array and arr[i] is less than arr[j]. So we have…

View original post 44 more words