Jul 15, 2017

Perspective is everything

The new job now takes me on a longer commute, through the insane Bangalore traffic at rush hours. Having avoided it for the last three years, thanks to Namma Metro, this was something I was dreading.

Podcasts to the rescue. There's nothing better than Radiolab and This American Life, with Snap Judgement and The Moth sprinkled in for good measure, to help endure the never-ending, bumper-to-bumper traffic and the ensuing road rage. I would strongly recommend these and a few others (refer sidebar for links) to make time on the road a little more bearable.

As Rory Sutherland so eloquently puts it in this video, perspective is everything.

Nov 24, 2015

Raspberry Pi 2 : Getting started

Not having played around with Linux for a long time, I finally decided to set up a Raspberry Pi 2 project. For $35, this tiny computer does pack a punch. This spec sheet details out everything. You can basically set up a small web, mail, or home automation server and more.

My idea was to turn it into a VPN gateway that sits between my TV and home router and serve up a US IP through OpenVPN. This will basically let me stream Netflix or Hulu directly on the TV, without the need of Miracast or DLNA devices/software.

Having dabbled with OpenVPN and basic routing when setting up my VPS, this was fairly straightforward. I was inspired by this Makezine guide, which used two Wifi dongles - one for connecting to the local network and the other for hosting the VPN access point. Picking the correct dongles is also important; it would need to support the soft AP function. I used an Edimax EW-7811 Un and a Tenda W311MI. Both are fairly cheap and robust, although the Edimax one seems to drop a lot of packets.

In addition to stock Raspbian (a Debian-based distro, optimized for Raspberry Pi), you would also need to install hostapd which will turn the dongle into an AP and also dnsmasq for basic DHCP and DNS for clients connecting to the AP. Once done, you would need to use iptables to do the routing, which basically takes the traffic from the wifi subnet and forwards it to the VPN tunnel. Any client connecting to the AP will have a public IP address of the VPN server.

Performance in terms of VPN throughput remains a concern. My Android phone, connected to the VPN directly, gives 18 Mbps down, whereas the Raspberry AP only gives 3 Mbps. Many discussions suggest this could be due to a bottleneck, as the Ethernet and USB ports share the same interface and the traffic has to traverse the bus twice. Switching the inbound interface from USB to Ethernet didn't improve the situation either; some commenters also suggest that the CPU itself could be a problem. However, 'top' didn't reveal much load on the CPU.

3 Mbps is barely enough to provide a SD stream, so HD is pretty much impossible. Still needs some digging around to identify where the bottleneck is. Even so, I would consider this project a 'fruit'ful one.

With the case open

Up and running

Jan 31, 2011

Kindle 3G - First impressions

Finally, after months of waiting, I have the Kindle 3G in my hands. And it has been well worth the wait.

The screen is a pleasure to read from, coming almost close to a printed book in terms of resolution and sharpness. Having read an e-book for more than an hour in a sitting, I came out of it without a headache or eyestrain. The Kindle truly delivers on Amazon's promise that within a few page turns (virtual, of course), you will disappear into the book. I know I did.

The experimental web browser is just that, experimental. The pages take some time to load, but it helps if images are turned of and you are reading the mobile version of the page. But then again, I didn't buy it for browsing the web, and it is more than a nice-to-have.

I only wish that Amazon brings down the Kindle book prices than their physical copies, still can't see the rationale of a digital copy costing as much as the real thing. However, if you are a bibliophile and can't have enough of the printed word, the Kindle is the best gift you could buy yourself.