Child Watches, Child Learns

By taha No comments

I was sitting on the upper deck of the tram on my way to a friend’s place earlier today. It was raining heavily and it was a pleasure to hear the pattering outside, but my attention was drawn towards the very front. A very agitated kid of around 18 was standing in front of his […]

Using OpenCV to use great circle plots for horizon detection

By taha No comments

Now that we have a way to plot great circles on to equirectangular planes, how do we use that to detect the pitch and roll of the camera and consequently stabilise the video? Draw Curves First, we need to draw the curves as opencv images: We calculate the curves according to the roll and pitch […]

Python for Great Circle Projections – Part 2

By taha No comments

Python to plot projections of great circles on to equirectangular planes

Python for Great Circle Projections – Part 1

By taha No comments

Python to plot projections of great circles on to equirectangular planes

Password Recovery Best Practices

By taha No comments

Some insights on implementing a password recovery system securely.

Event-Driven Design for DOM Manipulation

By taha No comments

After one of the projects in my company had reached a point where refactor was not only recomended, but necessary to clean up the code and make it maintainable, I decided to use a different approach for DOM manipulation in the client facing web app. Since we were doing a major refactor (yes, it does […]

Javascript Web Application Development Flow

By taha No comments

Recently, I was asked a question about Javascript development: how are modules used in ES6 and then how do they magically become one .js file when deployed. Since I have been using a workflow which answers both of these, I am going to write it up here for anyone who wants to know. Big projects […]

Terrains using Three.js and SRTM Data

By taha No comments

Let’s jump right in to three.js plane buffer geometry. Three.js offers a buffer geometry object which is a simple array of height maps, much like our binary file we used from the SRTM data. Compared to the normally used plane geometry, buffer geometry uses much less overhead and is significantly faster if the object does […]

Using SRTM Elevation Data in Javascript

By taha No comments

1 arc second SRTM Data was made [publicly available] (http://www2.jpl.nasa.gov/srtm/) by NASA a few months ago. SRTM Data is collected by the Shuttle Radar Topography Mission. It sweeps the surface of the earth to find irregularities which form the height map. According to the mission website: To acquire topographic (elevation) data, the SRTM payload was […]

WGS84 Projections

By taha No comments

A short tutorial to do localised projections for WGS84 (lat,lng) data