Docker CheatSheet


Compilation of some of the most useful commands that I usually need for docker, that I keep on having to search google for. function gotonow(anch) { var curtop = 0; var obj = document.getElementById(anch); if (obj.offsetParent) { do { curtop += obj.offsetTop; } while (obj = obj.offsetParent); window.scroll(0, [curtop]); } return...

Read More


Understanding Static in Java


A very common question from beginners in Java is "What does Static means" or "What is Static in Java". It is actually very simple. Something that is Static in Java is something that belongs to the Class and not the objects of that Class type, hence it is shared across...

Read More


Java Tutorial 6 - Arrays


Introduction Arrays Lets talk Arrays Accessing values of an Array Setting values of elements Initing with values What is the size of this array? Accessing using invalid index References Introduction At this point we have all the knowledge we need to create Classes, methods, variables, instances of Objects, call methods,...

Read More


Java Tutorial 5 - Packages and Access Modifiers


Introduction Packages Overloading this Keyword Continuing the code Calling methods from Anywhere Access Modifiers Public Private Package-Protected Protected Using Access Modifiers What about Constructors? What about Methods Level Scope Variables? Many objects Introduction In this tutorial we'll finally look at Packages to organize our code, and also at Access Modifiers...

Read More


Java Tutorial 2 - Hello World


Introduction Hello World Java and Javac Looking at the Code A Class A Method Exercises Introduction To start this great journey, we'll use the typical "Hello World" program. Yes, it is not very exciting, not very motivational, but before we start running we must learn how to walk. At this...

Read More


Accessing Images in Android External Storage


To access the list of media files (such as Audio, Images and Video) from an External Storage device in android, the Media provider can be used. An example of using the Media provider to access all Image type files on the External Storage: Cursor mCursor = getContentResolver() .query( MediaStore.Images.Media....

Read More


Starting new Activity in Android


From an Activity To start a new Activity from another Activity: Intent intent = new Intent(this, OtherActivity.class); startActivity(intent); From a Service Intent intent = new Intent(this, OtherActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); (adsbygoogle = window.adsbygoogle || []).push({}); From somewhere else To start an Activity...

Read More