Wednesday, February 06, 2013

// // Leave a Comment

Discourse away

If you are a programmer, the chances are that you visit StackOverflow at least once a day (if not, then you must be in the '90s and using your boxed set of MSDN DVDs for reference). I'm a huge fan of The StackExchange platform and all the work done by the team. Jeff Atwood of Coding Horror fame was the co founder of Stack overflow and when he stepped away from it last year with this post, I was more than a little concerned about him retiring from the game.

Well - I was wrong. Yesterday he made an announcement about launching discourse by the same team. They intend to do for the forum format what they did for the Q&A format on the internet - Revolutionize it.

Discourse-logo-big




The goal of the company we formed, Civilized Discourse Construction Kit, Inc., is exactly that – to raise the standard of civilized discourse on the Internet through seeding it with better discussion software:
  • 100% open source and free to the world, now and forever.
  • Feels great to use. It's fun.
  • Designed for hi-resolution tablets and advanced web browsers.
  • Built in moderation and governance systems that let discussion communities protect themselves from trolls, spammers, and bad actors – even without official moderators.
http://www.codinghorror.com/blog/

Stack Exchange has had a major impact on my professional life and i hope discourse will do the same.

Forums suck, and have sucked for a long time. For example, one of the most popular forums, xda-developers, which is regularly visit to find solutions to my vast variety of android issues looks like this.
and



Let's see if discourse can achieve its aims as well as it did with SO

Read More

Tuesday, February 05, 2013

// // Leave a Comment

do you even curl, bro ?



I took far too long to discover curl, the command line tool for transferring data via different protocols. Now, I'm dependant on it. It's part of my journey to get closer to the nuts and bolts of the web. And curl -v does just that.

You could use one of the GUI tools to form a request, but that hides away some of the most interesting aspects of the communication.

I'm developing a a very un-microsoftish love towards command line utilities from the *nix world.

Read More
// // Leave a Comment

https, Whoa !

found this detailed article on what happens during the first few milliseconds of https connection. Reading through the entire article is a like a crash course on Public-Private key system and transport protocol basics.

http://www.moserware.com/2009/06/first-few-milliseconds-of-https.html

Summary of steps

  • https translates to 443 as per RFC 2818
  • Client sends Hello which contains
    • UTC time + random bits
    • Session ID (if any)
    • Cipher Suites
    • Server name extension
  • Server sends Handshake that contins
    • Hello 
      • UTC time
      • Session ID
      • the Cipher suite server side chose
    • Certificate
    • Hello done
      • Indicating that it won't require a client certificate
  • Client validated the certificate sent by the server
    • checks the time on the certificate to ensure it is not expired
    • computes a hash of the certificate using the certifying authorities public key to ensure that it was indeed signed by the said certifying authority
    • the browser trusts the certifying authority
  • Generate the Pre-master secret
    • a massive random number is generated
  • Trade secrets with the server
    • encrypt the secret generated using the server's public key
    • send to server
I've definitely simplified the last few steps as they involve a lot of mathematics, but all of the above happens in 220 ms! 




Read More

Monday, February 04, 2013

// // Leave a Comment

Yahtzee

This man validated my gaming preferences. For many years, I didn't feel like a real gamer because I wasn't into MMPORG, Sports Games, RTS, driving and simulation games. Our preferences converge on a narrow but deep appreciation of gore, fast paced violence and outdated things like, y'know - pacing, good plots, narration and general awesomeness.



Yahtzee reviews are an acquired taste, and you may have to hold on to your tears when he rips apart your beloved game to shreds. You don't even need to have played the game. Check it out

www.escapistmagazine.com/videos/view/zero-punctuation




Read More
// // Leave a Comment

Javascript Frameworks

Over the last couple of weeks, I've been looking into a lot of javascript frameworks. And there are a LOT out there. A couple of sites I've found useful for evaluating the frameworks -

http://addyosmani.github.com/todomvc/ - This one has the same sample application coded up in the different frameworks for comparison

http://codebrief.com/2012/01/the-top-10-javascript-mvc-frameworks-reviewed/ - a great starting point for comparison based on features. 

After playing around with a few of the frameworks, I'm sure that i want to work with a framework that has UI bindings. Using Silverlight for the last couple of years, I'm hooked onto the concept of two-way UI binding using the MVVM pattern. Anything less is just a lot more cumbersome wiring work. 

Just because of the sheer number of frameworks available, ramp-up time and learning curve become a factor. Knockout.js is a top contender simply based on the fact that they have an outstanding interactive tutorial system. 


Read More

Friday, September 14, 2012

// // Leave a Comment

NFC for Access Cards

Why not, indeed ? My phone is pretty much my life. I should be able to use that to swipe in to office.

Read More

Thursday, September 13, 2012

// // Leave a Comment

iPhone 5

A lot has been written about the iPhone 5; more than that can be justified from the features introduced. Very few people, though, have provided any insightful comments on the new Lightning adapter. So I’m going to speculate.

Why did apple feel the need to introduce the new adapter?
The stated explanation is that it enables the new lighter and slimmer hardware. This is arguable, but I find it hard to believe that Apple would make such a drastic change solely to produce the slimmer version. The cynical explanation is that the $29 adapter is pure, unadulterated revenue for APPLE Inc. , given the minimal cost of the hardware and even amortizing the R&D costs.
Both of the above explanations do not sit well with me and can only be considered as secondary benefits.
Speculation
An alternate explanation that occurs to me is that there is a new product in R&D phase that requires the much smaller, reversible connector. If the primary purpose was to make a smaller connector, then the reversibility aspect would not play and it would be more efficient to design a single sided connector. This means that reversibility is an integral part of the design.
What kind of a device would require a reversible connector ? A head-less device is one option.
Anyways – as I mentioned, more than is deserving has already been written about the new iPhone. ‘nuff said. literally.

EDIT: http://techcrunch.com/2012/09/16/nice-phone-apple-but-whats-the-deal-with-the-29-lightning-to-30-pin-adapter/

With micro USB compatibility, the scynical explanation is looking more likely.
Read More