-
MongoDb Replica Set startup script
MongoDb Replica Set startup script I was doing some development in Python agains a MongoDb backend, and I needed a quick way to set up and initialize a Mongo DB replica set. This bash script is what I eventually came up with, still a bit rough around the edges (for example, it won’t let you…
-
MongoVision + logmonger: goodness for MongoDb & Python logs
I’ve recently come across these two projects and, while each on its own is real goodness, when combined together they seem to be better than the sum of the parts. MongoVision is a web front-end and visualization tool for MongoDB running on Prudence: logmonger is a Python library that writes log entries to a MongoDb…
-
Python Enums
Python Enums PEP-435, Python Enum, has been approved and will be implemented (apparently) in Python 3.4: this is quite a change and, at least in my opinion, a long overdue language feature. In future, one can avoid doing something ugly like this: (months.py) JANUARY = 1 FEBRUARY = 2 … DECEMBER = 12 then, in…
-
Android Studio
Today, at Google I/O, Android Studio was announced by Google as the main supported development platform for Android – moving away from Eclipse, to IntelliJ. This is pretty big news and a major nail in Eclipse’s coffin – I have moved away from Eclipse around a year ago, after more than 10 years of unwavering…
-
Dart – replacing Javascript
Personally, I find Javascript infuriating: the lack of consistency; its confusion between being a functional language, an object-oriented one, or neither; and the impossible-to-understand treatment of `this` in most contexts, make it a real pain to use. I have recently started a project that required my using it, and even with the help of jQuery…
-
Python Decorators
I’ve now been working in Python for more than a year and we have been doing some pretty crazy stuff, especially around decorators and authorization/permissions implementations. Admittedly, Python decorators are one of the bits of the language that can be best defined as ‘magic’ and certainly remains puzzling for someone like me, used to Java…
-
Fireside Chat with Jeff Bezos
AWS re:Invent post 3 of 3 A guiding principle for Amazon is its focus on “stuff that won’t change over time:” for example, it’s extremely unlikely that people will ever want stuff at higher prices or slower delivery. As an entrepreneur one should equally focus on the ‘basics’ of the respective problem domain: ask yourself, “what…
-
AWS re:Invent – my notes (post 2 of 3)
Note – the first post (Notes about the AWS JDK) can be found here The following are the (minimally edited) notes I’ve taken while attending the session at AWS re:Invent conference in Las Vegas, NV on 27-30 November, 2012. Keynote speech by Andy Jassy (Sr. Vice President, Amazon Web Services) It is clear we are still at…
-
Four Principles of Cloud Computing
From Werner Vogels (Amazon.com CTO) keynote speech at re:Invent: ControllableArchitect with cost in mind ResilientDon’t treat failure as an exception AdaptiveMake no assumptions Data DrivenPut everything in logs
-
AWS re:Invent Notes (1 of 3): SDK for Java
The following are my (only minimally edited) notes from the AWS re:Invent session (I highly recommend watching the recordings of the keynote sessions) There are two usage levels in the SDK: Low level access to AWS system APIs; and Higher level facilities, that make it easier to access the underlying services. Most notably, the SDK…