Recently I stumble on one of the Java interview questions: “Implement List-Recently-Used (LRU) Cache using Java collection class?” If you have worked on similar problem before, then it is really easy for you. Otherwise you start thinking about the best collection class to implement LRU cache. Most of the people fail to recognize that LinkedHashMap […]

,

You may have stumbled on this MySQL error. If you have already seen this before, then it’s really easy to recognize this and fix it. But if you haven’t seen this error before, then it takes a little longer to troubleshoot the issue. I am listing down the steps to troubleshoot this issue. This issue […]

,

If you are trying to commit the source code in SVN very first time and you see the following error that means You have not set the correct editor for the SVN. If you look closely the SVN suggests the possible fixes. Possible fixes You can use either of the following options. Set the one […]

, ,

As the name suggests, it is a Python environment which is isolated from other python environments. This kind of environment is really handy when you are working on multiple projects but you don’t want to affect other project environments. Advantages of virtual environment. Isolated environment: It creates a self-contained Python instance. Whatever Python packages are […]

, ,

We often need command to recursively delete files from the current and sub-directories. Most of us execute the following command to do so. But to our utter surprise we find that it does not delete files from sub-directories. Well “r” option works only when you want to delete the directory. Use the following command to […]

,

Most of us know that history command on Ubuntu shows the list of previously executed commands. This command is really handy either to examine the previously executed command or re-execute the previous command. The default configuration just lists out the entry number and the commands. It doesn’t display the time of execution. This post provides […]

,