code.deepinspace.net
code@deepinspace.net: September 2013
http://code.deepinspace.net/2013_09_01_archive.html
Monday, 30 September 2013. Revoking private key access to EC2 instances, and other random tips. Consider the following scenario. You have many EC2 instances running production code. Access to those instances is using a passphrase-protected key. A member of your operations team who has access to the key leaves so you have to change the key. Or, you need to change the existing key as a matter of some internal security policy. How do you do it? Generate a new keypair. Done The old key is useless now. AWS ke...
code.deepinspace.net
code@deepinspace.net: gcc does not check out of scope names in unreachable code
http://code.deepinspace.net/2011/01/gcc-does-not-check-out-of-scope-names.html
Sunday, 30 January 2011. Gcc does not check out of scope names in unreachable code. While attempting to write a small HTTP server in C, I copied some code over from a previously written C file and immediately noticed a bug. Include "./mynet.h". If(errno = EINTR) {. Yes it's a stupid beginner mistake - typing the assignment operator instead of the equals check. The thread of execution would never enter the else block. I corrected it, but the interesting part came when I tried to compile it. I would say ye...
code.deepinspace.net
code@deepinspace.net: Dreaming in Code
http://code.deepinspace.net/2010/02/dreaming-in-code.html
Monday, 1 March 2010. I finished reading Dreaming in Code. Last week. It's Scott Rosenberg's account of a software development team's effort to build the ultimate Personal Information Manager (PIM). Led and funded by Mitch Kapor of Lotus 1-2-3 fame, the team goes through endless cycles of redesign, people issues and other upheavals. Rosenberg follows the team very closely, participating in their meetings, interviewing them and filling the narrative with his own insights. Due to numerous reasons, Chandler...
code.deepinspace.net
code@deepinspace.net: December 2012
http://code.deepinspace.net/2012_12_01_archive.html
Saturday, 8 December 2012. Experiences in building a home NAS - Part 1. Some months back I had this email conversation with a friend about the best strategy for storing movies/music/photos at home. I was running out of space, again. One of my external 1TB drives had crashed. I finally went with this to avoid having to choose the non-storage hardware myself, being no expert in it. The specs for the N36L model were decent enough -. AMD Athlon II Neo (dual core) 1.8 GHz. 1 GB included RAM (max 8 GB). It has...
code.deepinspace.net
code@deepinspace.net: Do that side project
http://code.deepinspace.net/2009/12/do-that-side-project.html
Saturday, 12 December 2009. Do that side project. Do that side project. How many times have you told yourself. I'll start that open source project I've been thinking of. I'll write that utility which will make my job easier. I'll enroll for that course on Artificial Intelligence and write that amazing recommendation system. And then did nothing? Well, guess what. Time passes. Yes, really. How we spend our days is, of course, how we spend our lives.". Think about that for a moment. Ya I found time . I wro...
code.deepinspace.net
code@deepinspace.net: November 2012
http://code.deepinspace.net/2012_11_01_archive.html
Monday, 19 November 2012. Nagle's algorithm and delayed acks. Don't work well together. I finally understood why from Richard Steven's UNP. In a nutshell,. Posted by Hrishikesh Barua. Thursday, 15 November 2012. No more PermGen in the JDK. PermGen space is familiar to anybody who has debugged memory issues in large JEE applications. Starting with JDK 8, it is being removed. The JDK Enhancement Proposal. Says "remove", but it's more like it's being moved to native memory outside the JVM. The class metadat...
code.deepinspace.net
code@deepinspace.net: Graphite Tip: Disabling data averaging while viewing graphs
http://code.deepinspace.net/2013/11/graphite-tip-disabling-data-averaging.html
Saturday, 23 November 2013. Graphite Tip: Disabling data averaging while viewing graphs. The superb graphing tool, has gained a lot of popularity lately and with good reason. It's flexible, fairly easy to setup, very easy to use and has a thriving community with plugins for many monitoring systems. It can store any kind of numeric data over time. So you might end up seeing smaller values. Here is the same graph (same data for the time span) where the image width has been increased *. Click to view larger.
code.deepinspace.net
code@deepinspace.net: October 2012
http://code.deepinspace.net/2012_10_01_archive.html
Saturday, 20 October 2012. Lessons learned while managing technical operations. For a cloud based SaaS product, and which might be useful to you if you’re doing the same. There is no substitute to knowing your fundamentals. Whatever you’re managing - your own datacenter or a suite of apps on a public cloud - you have to know your Operating Systems, your Computer Networking, your Linux, your VMs. Know your industry. Study what others are doing, and why. Keep up to date. Know what is new in your field ...
code.deepinspace.net
code@deepinspace.net: Private Cloud Options with Amazon Web Services - Part 1
http://code.deepinspace.net/2013/09/private-cloud-options-with-amazon-web.html
Friday, 27 September 2013. Private Cloud Options with Amazon Web Services - Part 1. Amazon Web Services is the largest IaaS provider, according to this Gartner report. In terms of compute capacity. AWS also has a wider geographical presence than other similar companies. AWS offers an option to have a private cloud inside their public cloud. You can run this as a small personal cloud, or use one of Amazon's connectivity offerings to connect it securely to your existing infrastructure. The basic unit of a ...