Tutorial by Topics: k

Mockito is a java Mocking framework that aims at providing the ability to write clean an readable unit tests by using it's simple API. It differs from other mocking frameworks by leaving the expect-run-verify pattern that most other frameworks use. Instead it only knows one way to mock (non-final...
Kivy is an open source Python library for the rapid development of cross-platform user interfaces. Kivy applications can be developed for Linux, Windows, OS X, Android and iOS using the same codebase. Graphics are rendered via OpenGL ES 2 rather than through native widgets, leading to a fairly u...
This topic consists of a wide variety of useful tips and tricks discovered by SO users through their experience in coding. These are often examples of ways to circumvent common frustrations or ways of using Excel in a more "clever" way.
public static int myVariable; //Declaring a static variable public static myMethod() { } //Declaring a static method public static final double MY_CONSTANT; //Declaring a constant variable that is shared among all instances of the class public final double MY_CONSTANT; // Declaring a constant ...
Backing up the filesystem instead of using pg_dumpall and pg_dump It's very important that if you use this, you call the pg_start_backup() function before and pg_stop_backup() function after. Doing filesystem backups is not safe otherwise; even a ZFS or FreeBSD snapshot of the filesystem backed u...
groovy.util.Node = node.find { childNode -> return true || false } node.append(nodeYouWantAsAChild) groovy.util.Node parsedNode = (new XmlParser()).parseText(someRawXMLString) ''' mutli-line string (not interpolated) ''' The three basic files of an IntelliJ project - the ipr, iws, and...
So while this Data Binding concept on a whole is easy on the developer, it is quite heavy on the Browser since Angular listens to every event change and runs the Digest Cycle. Because of this, whenever we attach some model to the view, make sure that Scope is as optimized as possible
When you support universal links, iOS 9 users can tap a link to your website and get seamlessly redirected to your installed app without going through Safari. If your app isn’t installed, tapping a link to your website opens your website in Safari. Generally, any supported link clicked in Safa...
The Facebook Graph API is one of the most useful tools available to app developers today. It is used to integrate Facebook functionality such as login or retrieving photos, friends and other data one might need from Facebook into one's own app.
This section provides an overview of what linux-kernel is, and why a developer might want to use it. It should also mention any large subjects within linux-kernel, and link out to the related topics. Since the Documentation for linux-kernel is new, you may need to create initial versions of thos...
const Type myVariable = initial; // Declares a const variable; cannot be changed const Type &myReference = myVariable; // Declares a reference to a const variable const Type *myPointer = &myVariable; // Declares a pointer-to-const. The pointer can change, but the underlying data member c...
checked(a + b) // checked expression unchecked(a + b) // unchecked expression checked { c = a + b; c += 5; } // checked block unchecked { c = a + b; c += 5; } // unchecked block
There a few things to note: The names args and kwargs are used by convention, they are not a part of the language specification. Thus, these are equivalent: def func(*args, **kwargs): print(args) print(kwargs) def func(*a, **b): print(a) print(b) You may...

Page 8 of 49