Desi Programmer @ Work

Filter crappy posted videos from Facebook feed

Once Facebook's feed used to be very useful informing you about the updates of friends by their status, . I feel my Facebook feed has been hijacked by redundant and time wasting posted videos. So I wrote a small GreaseMonkey script to filter out posted videos. Here it is:

 1 ...

Attempt Retries decorator in Python

In certain situations particularly when dealing with networks and distributed systems you'd want your program to retry certain a particular operation certain number of times in case it fails before giving up. For instance your program is trying to connect to a mail server which is due to network ...

Simple and Effective Uploading with Python Script and PSCP

Sometimes you want your File Transfer tool to map certain folders on your dev machine to remote folders on your different remote machines. Wouldn't it be great if you could choose a particular file in your project, click it and it automatically uploads in appropriate folder on desired server ...

Python: Copy to clipboard

I use this small utility function for debugging certain Python scripts, especially those for processing data, e.g. moving some bits of information to Excel. The idea is pretty simple. Just pass it some information and it'll be available in your clipboard.

 1
 2
 3
 4
 5
 6
 7 ...

Why Nerds are Unfit

A healthy body contains a healthier mind. Keeping this in mind, I floated an idea in front of my colleagues. Here was the conversation:

Me: I think we should form our pwn Cricket team and we should play regularly
PersonA: It won't be useful. No one would play eventually ...

Some good products by Microsoft

Microsoft is the company everyone loves to hate and I am not an exception. But I think we have gone a bit too far in our prejudice. Surely there are looser products by Microsoft such as Internet Explorer which do not care anything about users and prevent the market from ...

Recursion, Misunderstood

My experience with the Electrical Engineers in academics is that they usually view Computer Science in terms of circuits and details of how things work at the most tangible level. One hazard of using this approach in teaching is that many times you end up with some wrong core concepts ...

Installing OS with Bootable USB

Laziness is a quality of great programmers. I tried to be amongst them by not taking the headache of putting a DVD-ROM Drive in my new test server machine for installation of an Operating System. And who really wants to get bothered by unscrewing the case, connecting the drive's ...

django standalone scripts

Standalone scripts and cron jobs are integral part of any significantly complex web based application. We use them in our applications for health monitoring, mails sending, computing scores and ratings, deferred tasks and job queues such as video processing etc.

To make a python script work which uses django's ...

My first carputer - v0.1

Have you ever thought about putting a PC in your car? I did!

Lilliput Touchscreen

Navigation

Havit Keyboard

I’ve put my first carputer (car computer) into use in my Honda Civic EXI 96. The whole process which includes lots of Googling, forums readings, hectic trips to Hafeez Center and writing some code, too me ...

Wardriving Lahore

Ever wondered how many access points are there in your city? Last week I did an interesting thing: Wardriving in my city Lahore.

Wardriving is act of searching for WiFi wirless networks on the go using laptop or other mobile devices. It is legal in most parts of the world ...

Why we discontinued MapMyPakistan

Today is the day when I can better explain why we discontinued MapMyPakistan.Three years ago, when I was about to graduate from FAST-NU, I started working on an idea for a startup: Maps for Pakistan. At that time there were no street level maps available and their demand was ...

Lesson of the day

Lesson of the day: Get your site up before you make a sales callIt not just a good idea but a must-have that your site should be up before you ask someone to open it ... especially when you are making a sales call to a potential customer :D Me: XYZ ...

Security by obscurity works best sometimes

When I was graduating from FAST-NU, I designed a web based system in PHP/MySQL for collecting data for Yearbook of our batch. Each student of our batch was given a username and password using which s/he could enter the personal data, make comments about friends, give nicknames and ...

What Lisp & Assembly instill

My Assembly Programming Language teacher, Belal Hashmi Sahib said in the first lecture of the course, “Assembly is extremely simple. It is so simple that students don’t expect such simplicity and hence it starts appearing complex to them”. Then he wrote MOV AX, BX on the board, explained it ...

Secret Weapons for Java Programmers

Many great hackers and programmers do not consider Java programming language a good choice. The safety features of Java such as pure OO, strong typing etc. force its users to laboriously write lots of classes, declare and typecast variables, call extraneous methods to fetch simple data and puts under a ...

Prank @ LUMS on 1st April

![Media\_httpsharjeel2sc\_idboa][]

Who says Nerds have no life! Nerds have the most creative minds and come up with most interesting ideas. That's why they are Nerds. For instance MIT hackers pull the coolest hacks & pranks which fascinate people all over globe.This year on 1st April we (2 ...

2's Complement is growing!

Steve Jobs says that in order to succeed you have to hire people better than you (look who’s talking!). A-Class persons attract A-Class persons, B-Class persons attract C-Class persons and C-Class companies do not succeed.When Adil and I started 2’s Complement, we very understood it and aimed ...

The Starting Friction

“Get an MBA degree first. You have no business sense at all!”
“C’mon. You are going to ruin your life. You can easily get into Microsoft or Google”
“Nothing can work out in Pakistan”
“Only two years? You must have atleast six to ten years of experience in industry ...