Posts

error: device offline

Whenever you get "error: device offline" means that connection with emulator & adb bridge has been broken due to time taken in emulator startup. Need not to restart the emulator at this point just run below commands... adb kill-server adb start-server Thanks, Jak

Eclipse useful shortcuts

Ctrl+Shift+R Find Resource Use this to look for XML files, text files, or files of any other type. which are in your workspace. Ctrl+O Quick Outline Use this to find a method or a member variable in a class. Start typing to limit the choices. Press Ctrl+O a second time to include inherited methods. Ctrl+Shift+T Find Java Type Start typing the name and the list gets smaller. Try typing the capital letters of the class only (e.g. type "CME" to find "ConcurrentModificationException") Ctrl+E Open Editor Drop-Down Presents a popup window listing currently opened files. Start typing to limit the list or simply use the down arrow key. Ctrl+Space Content Assist Context sensitive content completion suggestions while editing Java code. Ctrl+Shift+Space Context Information ...

Scrum Master vs Product Owner

The most common confusion in the 2 roles of Agile-SCRUM is between Scrum Master & Product Owner. The Scrum Master is in charge of making sure the Scrum process is followed. The Product Owner (PO) is the person in charge of making sure the product succeeds in the direction the company wants to go. The PO does this by setting priorities of product backlog items, making sure all needed parties are there for both the sprint planning and sprint review (both are very important). If something occurs and either the scope explodes or decisions need to be made, the PO is the person who gives the answers to the decisions. Product owner act as the feature prioritize(r) and main point of contact between business/customer and IT team. If product not succeed and probably reason is prioritization issue then product owner may be "single wringable neck" person. The Scrum Master is making sure the process gets followed and working through the adaptation of Scrum to your organization. By do...

Orientation change shortcuts for emulator and simulator

Image
Android Emulator: For Mac:     ctrl+fn+F11 to change the landscape to portrait and vice versa. For Windows 7:   left-ctrl+F11 FOr Linux: ctrl+F11 Note: Mac users, you only need to use the fn key if the setting "Use all F1, F2 etc. keys as function keys" (under System Preferences -> Keyboard) is checked. iPhone Simulator: Cmd-Left and Cmd-Right will rotate the virtual phone (simulator).

CSS : dot (.) vs hash (#)

CSS : dot (.) vs hash (#) . => class selector # => id selector so .lblClass { width:20dp; } -> <label class="lblClass"/> #lblID {widh: 10dp;} -> <label id="lblID"/> PS. The # symbol is called an octhrope

How to create a bash profile

A typical install of OS X won't create a .bash_profile for you. When you want to run functions from your command line, this is a must have. Start Terminal Type "cd ~/" to go to your home folder Type "touch .bash_profile" to create your new file. Open the file " open -e .bash_profile" . it will open in TextEdit Type ". .bash_profile" or "source ~/.bash_profile" to reload .bash_profile and update any functions you add. You can add functions as below: ANDROID_NDK=/Applications/android-ndk PATH=$ANDROID_NDK:/Application/apache-ant/bin:/Applications/android-sdk/tools:/Applications/android-sdk/platform-tools:~/Library/Application\ Support/Titanium/mobilesdk/osx/2.0.1.GA2:$PATH alias ddms="/Applications/android-sdk/tools/ddms" alias titanium="/Users/jakir.hussain/Library/Application\ Support/Titanium/mobilesdk/osx/2.0.1.GA2/titanium.py"

To delete all .svn folder in Linux

To delete all .svn folder in Linux just follow the steps below:- Start Terminal change your current directory to your project folder (ex: /Users/me/Sites/project_a) type find ./ -name ".svn" | xargs rm -Rf and enter. Done, all your .svn folder has been deleted. By the way, you also can apply this method to remove all .svn folder in Mac machine.