Tips, Tricks & Hacks

This category contains 18 posts

Computer Science – good free online learning resources

MIT: Stanford: Courses from other universities available at: Courses from Indian institutes – IIT & IISc:    

git Primer : Quick Reference Guide

All Important Book: Install Latest Version sudo add-apt-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git Intial Configuration git config –global “Prashant Parashar” git config –global “” git config –global core.editor vim To use https URL of repository and cache password: git config –global credential.helper cache git config –global credential.helper ‘cache –timeout=86400’ […]

Remove .svn files recursively on linux

find . -type d -name .svn -exec rm -rf {} \;  

Introduction to Agile

Introduction to Agile Practices from cspag67

Track Multiple Domains and Use Multiple Google Analytics Accounts

Tracking multiple domains on the same google Analytics is not a big deal but is a little tricky. If you haven’t checked all the boxes, you might not get it up and running. Here are the basic steps to track multiple websites. Have the site up with default profile using basic GA setup. Now make […]

Minimum Viable Blog Posts

Blogs are to books what Agile SaaS products are to Enterprise Suites. Well, everybody faces the writers block. Not because they don’t have enough ideas, ┬ábut because they don’t think it’s ripe/finished yet to be published (err… released). A blog post is like a product that you are going to release. You keep on working […]

Tomcat – Sharing of Session Cookies across Subdomains

Since I have multiple microsites i.e. subdomains on , I needed a way for users to be logged-in to one subdomain and then access other subdomains without having to login again. I found out that it is fairly easy to achieve it through Tomcat context configuration. Here is the context configuration: <Context sessionCookiePath=”/” sessionCookieDomain=””> […]

Debian/Ubuntu Linux: Change Timezone to IST

Change timezone of Debian/Ubuntu machine to Asia/Kolkata or any other timezone mv /etc/localtime /etc/localtime.old ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime  

How To: Drop, Backup and Restore a MongoDB database

A quick note to self and other alike on how to drop a database, backup a database and restore a database in MongoDB. Drop Database Just use the command db.dropDatabase() from the mongo command line client. use db; db.dropDatabase(); Backup Database To backup a local mongo databse Use the command line utility mongodump. mongodump -d […]

Removing JSESSIONID from URLs for Spring Security 3.0+ applications

jsessionid in URLs look annoying, more so in search results. Disabling them from URL is just a configuration in your spring-security.xml file for Spring version 3.0 + : use the┬ádisable-url-rewriting=”true” in the security namespace for http tag. the http tag becomes: <security:http auto-config=”false” disable-url-rewriting=”true”> If you are not using http cofiguration and using FilterChainProxy, this […]