An interesting proof for Pythagoras’s theorem

I recently saw an interesting proof for Pythagoras’s theorem in the MathHistory series which I wanted to share with y’all :-)

So a quick reminder, Pythagoras’s theorem says that if we have a right-angle (90 degree) triangle, then there is the following relation between the length of the ...

more ...


The limits of science

In a lot of ways Science has become the religion of the day. We can’t go more than a day to hear / see / read a “news” story about “scientists” saying something about something important. We can’t help but feel dazzled, confused, perplexed, overwhelmed by these announcements. And we ...

more ...


On benchmarks

Numbers every programmer should know and their impact on benchmarks

Disclaimer: I don’t mean to be picking on the particular organizations / projects / people who I’ll mention below. They are just examples of a larger trend I observed.

Sometimes (most of the times?) we forget just how powerful the ...

more ...

Proxying pypi / npm / etc for fun and profit!

Package managers for source code (like pypi, npm, nuget, maven, gems, etc) are great! We should all use them. But what happens if the central repository goes down? Suddenly all your continious builds / deploys fail for no reason. Here is a way to prevent that:

Configure Apache as a caching ...

more ...

Programming advent calendars for 2013

Programming advent calendars are posts/articles for a particular topic posted daily between the 1st and 24th of December. They are modeled on the advent calendars received by children on some countries which contain 24 doors for the 24 days of advent and behind each door is a piece of ...

more ...


Capturing your screen on Ubuntu - with sound

Today I have a short script which I cobbled together from Google searches to do screen captures / screen casts with Ubuntu (including audio in so that you can narrate what is going on):

1
2
3
4
#!/bin/bash
Xaxis=$(xrandr -q | grep '*' | uniq | awk '{print $1}' |  cut -d 'x ...
more ...