Nitin Venkatesh
Last seen 1 week, 5 days ago

Location: Chennai, India

Monitoring webpages with Last-Modified and ETag headers
1 week, 3 days ago by Nitin Venkatesh

Most sites have a lot going on in their HTTP headers which can sometimes help us easily identify if the web page has changed since the last time we visited it. This ofcourse depends on if the server responds with these headers and has been configured correctly to reflect any changes in the headers. Enough said, so when we query ...

Viewing text files on Linux - cat, head, tail, more and less
2 weeks, 6 days ago by Nitin Venkatesh

A lot of times, we have the need to view text files on a Linux box, whether it be logs or scripts or what have you. This post is more like a cheat-sheet for me on using the cat, head, tail, more and less commands, but with examples and some screenshots. Short version head <filename>- View the top few lines ...

Installing PHPMyAdmin on Ubuntu
1 month ago by Nitin Venkatesh

I had to install PHPMyAdmin today and I encountered a little glitch. So here's me documenting it. It is assumed that you've already installed and setup your LAMP stack. If not, Step 0: Installing LAMP Stack $ sudo apt-get update && sudo apt-get install tasksel && sudo tasksel install lamp-server Step 1: Install PHPMyAdmin on Ubuntu $ sudo apt-get update ...

Writing Tools for the Modern Writer
3 months, 2 weeks ago by Nitin Venkatesh

There are quite a few tools dedicated for writing out there. But I was looking for something that supported Markdown, version control and sharing capabilities. I've rounded up the three services I liked most (and which I use for different scenarios - writing short documents, blog posts and a novel). So here they are (not ordered by ranking): Typewrite Draft ...

Free Book Sources
3 months, 3 weeks ago by Nitin Venkatesh

Here's a roundup of a few sites that offer a plethora of books and texts for your reading pleasure. For those of you with no time on your hands, here's the list: Project Gutenberg / Open Library WikiBooks Oreilly's OpenBook Goodreads ManyBooks Feedbooks Free Programming books on GitHub 1. Project Gutenberg Project Gutenberg is one of the biggest and ...

Squashing git commits with interactive rebase
3 months, 3 weeks ago by Nitin Venkatesh

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 ...

Reverting to an old commit & Grabbing changes from another branch : git checkout
4 months ago by Nitin Venkatesh

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 ...

Keeping your forked repo synced with the upstream source
4 months, 1 week ago by Nitin Venkatesh

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 ...

Making cross-domain AJAX possible with your PHP backend
4 months, 2 weeks ago by Nitin Venkatesh

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 ...

Installing Django and MongoDB in your virtualenv
5 months ago by Nitin Venkatesh

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 ...

Virtualenv, Virtualenvwrapper and Pip - A python newbie's best friends
5 months, 1 week ago by Nitin Venkatesh

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 ...

Accessing Bootstrap docs offline + Installing Jekyll on Ubuntu 13.10
5 months, 3 weeks ago by Nitin Venkatesh

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 ...

← Older

I read, write, code and teach