Iterating over a list is one of the most common tasks that is required for writing any program. This post will focus on the different ways of iterating over a List in java. It will cover the aspects that should be considered while iterating over the list using a particular method. For all the examples … Continue reading Iterating over a list in Java
Category: Tech Tips
The Magic of Final Keyword in Java
In this post, we will discuss all things final in Java. Final Classes, Final Methods, Final Variables and finally Final Arguments. Final Classes Let us look at an example. We have a class A that is declared as final. https://gist.github.com/anjanashankar9/8adc9729a7b4d26d9bb110767b10d1fc Now let us try to create a subclass of A https://gist.github.com/anjanashankar9/5ad56b973687dab6c5bd60042ea5403a This will give a … Continue reading The Magic of Final Keyword in Java
Absolute Git Essentials
Working with Git. Here are 5 must have settings that make you life so much easier
Do you ssh too often and to many different machines?
It's been a long time, since I last wrote a post. And this is going to be a short one. At my recent job, we have all these test environments (about 3500 of them) that have the same username and password. I kind of got tired typing the username and password every time I had … Continue reading Do you ssh too often and to many different machines?
10 Intellij Idea Must Know Shortcuts on Ubuntu
Optimizing imports - Ctrl + Alt+ O Auto Imports - Alt+enter System.out.println - type sysout, then press tab Open a file - Ctrl+N GoTo Function in class - Ctrl + F12 Auto Indent - Ctrl + Alt + I Basic Code Completion - Ctrl + Space Comment a line of code - Ctrl + / … Continue reading 10 Intellij Idea Must Know Shortcuts on Ubuntu
Mount a Remote system as a drive on OSx using SSH
Recently I ran into a situation where I needed to mount a remote system folder on my OSx for ease of sharing and convenience. You can totally do without this by just using the terminal. However, writing this hoping to help those who need to do this for one or the other reason. 1. Install … Continue reading Mount a Remote system as a drive on OSx using SSH
Managing Multiple Github Accounts from a single machine
Recently, I ran into a situation where I needed to manage multiple Github accounts from a single computer. I have two github account, one related to work and the other for my personal repositories.It is a very simple combination of ssh and git config. Before I start explaining the steps for the same, let me … Continue reading Managing Multiple Github Accounts from a single machine
Setting up Mac OSx for Foundation5
Foundation is an open source responsive front end framework maintained by zurb.com. It has a seemingly endless list of features that allows you to build responsive web applications within no time. In this post, we will set up our Mac OSx for developing foundation projects. For foundation you need the following packages to be installed … Continue reading Setting up Mac OSx for Foundation5
Mastering Diff and patch
Diff and patch are essential if you are working on a large project with multiple contributors. They are a boon for programmers distributed across the globe and wanting to work on a single project. These tools are present by default on a linux or Unix based operating system. Diffing individual file $diff -u originalFile modifiedFile … Continue reading Mastering Diff and patch
Archives using TAR
If you are running a Linux Distribution, a Mac OS X or other Unix-like operating system, your system certainly has the tar program on it already.You can see the tar manual by typing '$man tar'. Unpacking a tarball To unpack a tarball, use $ tar xvf <tarball> The x stands for extract.The v stands for … Continue reading Archives using TAR
You must be logged in to post a comment.