Understanding Python Decorators in 12 Easy Steps!

A really fantastic explanation to one of the more trickier concepts in Python. A must read if you want to either become a better Python Hacker or just learn better, more modern design principles!

simeonfranklin.com – Understanding Python Decorators in 12 Easy Steps!.

How To Get a Wikipedia Page?

How To Get a Wikipedia Page?

This is an old article I wrote for Yourstory.in when I was a pretty heavy contributor to Wikipedia.

Adding it here for archival purposes.

Concurrency Vs. Parallelism

Two related but dissimilar concepts. Rob Pike does a brilliant job of clearing the two out, with a little help from Gophers!

Arch-ing In

Alright, so I had an interesting day yesterday:

  • Opened my newly won laptop.
  • Booted Arch Linux from a USB Flash drive.
  • Setup wi-fi connectivity via terminal.
  • Installed the whole damn thing from a terminal (no GUI whatsoever!).
  • Did something dumb.
  • Erased the Window EFI System partition and hence the entry from the bootloader as a consequence of doing something dumb.
  • Managed to install an intermediate bootloader – Gummiboot (nice name).
  • Couldn’t boot into Windows at all.
  • Did a network boot to recover the Windows bootloader. May have to reinstall Gummiboot now.

So yeah, overall, a day of epic hacking around with some pretty cool learnings, such as how to manually set up mount points, create partition layouts, how the EFI bootloader works and why is it better than MBR and loads of other things.

Eviva!

Firefox: restore your lost tabs

Pretty sure a lot of us need this at one point of time.

Jabba Laci's avatarThe Ubuntu Incident

Problem
Over the last 1.5-2 years, I collected 700+ tabs in my Firefox 🙂 Maybe this summer I will have some time to sort them out. However, today when I switched my computer on, all my tabs were gone and I got a clean Firefox instance with one tab only. Hmm… I had a similar problem once and then I installed an add-on called “Session Manager”. In this add-on I made the setting to offer the list of previous sessions upon restart but it didn’t do anything! Damn, how to get back my tab collection?

Solution
In the .mozilla directory there is a file called sessionstore.js that stores — among others — the opened tabs. However, this file was very small, my previous tabs were clearly not in it. Thank God there was a backup copy of this file next to it called sessionstore.bak. It was a big file…

View original post 193 more words