Website: | http://nitstorm.github.io/ |
---|---|
Location: | Chennai, India |
Sometimes you want to make a gazillion little commits to keep track of your project and then later on you wish you could combine them into a single commit. This comes in especially handy when you are working on code in a public repository. You don't want to see every little change you make reflected in the logs, it's just ...
You might have seen me blogging regularly the last three weeks. That's thanks to James Clear's advice on forming new habits. I am trying to keep the "blog every saturday morning" habit this week with a short post on things I learnt to do with Git's Checkout command. So here we go! Reverting to an old commit To revert back ...
We code, we fork, we code again, submit pull requests and the cycle goes on and on. Welcome to the world of Open Source. You fork a project to add some upgrade or feature and submit a pull request. However, when you're new like me, one big question that arises is - how do we keep the forked repo up-to-date ...
Generally, browsers will not allow you to make AJAX calls to your scripts that reside on another domain because of the Same-Origin Security policy present by default. This can be circumvented by using JSONP and stuff, but what if your script only returned text as output? You could tweak your script to wrap the text output in JSON which would ...
This post is another in the series where I experiment with Django being a total newbie. Things got a little messy when I wanted to try and use MongoDB in Django, (things tend to get messy when you are a complete noob, I know :P ). Anyways, here is the error I encountered when I tried installing django-mongodb-engine: ImportError: Could ...
Sometimes installing the specific packages and then discovering you require another set of packages for one application you're developing(or trying to develop, atleast) can all be a bit overwhelming, especially for a Python newbie. I recently discovered Virtualenv, Virtualenvwrapper and pip which have made my life much, much easier. Yes, I know these have been the Python developer's tools for ...
Yesterday night, my internet crapped out on me and I was offline the whole night without any access to the Bootstrap documentation online. It's easy if you Jekyll installed on your machine properly, so let's deal with installing it on Ubuntu 13.10 first. Installing Jekyll on Ubuntu 13.10: The jekyll package present by default in the Ubuntu repositories is a ...
Just a heads up to those of you running Ubuntu 13.04, Raring Ringtail - no more software and security upgrades. Ringtail officially reaches end of support today. So please consider upgrading to Ubuntu 13.10, Saucy Salamander or patiently wait for Ubuntu 14.04 - Trusty Tahr (which has just reached it's Alpha 2 milestone and soon will be available in Beta). ...
What is a loop? A loop is a control structure that allows for a piece of code to be repeated continually. In other words, the piece of code present inside a loop is executed until a preset condition is not met. For example, let's write an algorithm for a cookie monster: until no cookie in jar: eat cookie; The first ...
If you've encountered a .bin file and were wondering how to mount it on a Linux box, the iat tool is the answer you've been waiting for. (It's been around for a long time, but hey! You only look for something if you need it and that's why I am writing this post now :P ) Converting from .bin to ...
If you're ever stuck on a computer that has no EPUB reader but you need to read one, you don't need to worry about downloading an EPUB reader. What you should realise is that EPUB is just compressed archive of HTML files. So uncompressing it, reveals it's contents and you can read them with any web-browser. Here's an example. I'll ...
You are able to transfer files from your computer to your mobile device using bluetooth, but are unable to do it the other way around (Mobile device to computer), you get a "Unable to Connect" or "File sending failed" or some other similar error message and you are puzzled. Well, the solution is as simple as tweaking a single setting ...
I read, write, code and teach