Skip to main content

Posts

Eclipse Open Implementation

Finally a much needed feature has been implemented in Eclipse 3.5 Control + Click on any method in an interface or class it shows two options - Open Declaration / Open Implementation. If more than one implemenation exists for a method then it shows Open Hierarchy.

Android's Home Screens

Physical layout of an Android Device Android devices use  touch screens . Most have no physical keyboard, but you can also find a number of models with a slide-out keyboard or an attachable keyboard dock for tablets. Around your device you'll find the ususal physical buttons for power on/off, volume on/off, audio connector, micro-USB (for charging, connecting to a PC and in some devices connecting to HDMI using an adapter). You'll typically have both back- and front-facing cameras. Home Screen Layout and Operations You just have to press the screen gently, no need to push hard, when you operate the device. After you've unlocked the device as described in the previous chapter then you'll be presented with the  home screen . In Android you have actually 3-7 home screens, depending on your Android device model. You move between them by sweeping the screen to the right or to the left. The one in the middle is often THE Home screen. Remember, Android is highly custo...

GIT Knowledge

#1  Git author Unknown Sets the name of the user  for all git instances on the system $ git config --global user.name "Firstname Lastname" $ git config --global user.email "your_email@youremail.com" [user] name = Bob Gilmore email = me@mydomain.com 3.3  get remote server  branch info 3.4  switch to branch #4  Git  fetch -- cache the info entered #6 Git check out #7 Git pull  you have to tell git where to pull from, in this case from the current directory/repository: git pull . master  but when working locally, you usually just call merge (pull internally calls merge): git merge master #8 git git-credentials #9 git merge Solution:  Or even better than running  git config , you can edit your  ~/.gitconfig  file directly. Look and see if there's a section for  [user]  with the relevant information. For example, my  ~/.gitconfig  has this... (There's no space in front of ...

Top 10 Algorithms for Coding Interview

http://www.programcreek.com/2012/11/top-10-algorithms-for-coding-interview/ The following are top 10 algorithms related concepts in coding interview. I will try to illustrate those concepts though some simple examples. As understanding those concepts requires much more effort, this list only serves as an introduction. They are viewed from a Java perspective and the following concepts will be covered: String Linked List Tree Graph Sorting Recursion vs. Iteration Dynamic Programming Bit Manipulation Probability Combinations and Permutations Other problems that need us to find patterns I will keep updating this list to add more classic problems and problems from Leetcode. 1. String Unlike in C++, a String is not a char array in Java. It is a class that contains a char array and other fields and methods. Without code auto-completion of any IDE, the following methods should be remembered. toCharArray ( ) //get char array of a String Arrays . sort ( ) //sort an a...