Tutorial by Examples

In android, every developer uses Anonymous Class (Runnable) at least once in a project. Any Anonymous Class has a reference to its parent (activity). If we perform a long-running task, the parent activity will not be destroyed until the task is ended. Example uses handler and Anonymous Runnable cla...
Abstract Class : package base; /* Abstract classes cannot be instantiated, but they can be subclassed */ public abstract class ClsVirusScanner { //With One Abstract method public abstract void fnStartScan(); protected void fnCheckForUpdateVersion(){ System....
Navigate to project's app module and create libs directory. Place your .aar file there. For example myLib.aar. Add the code below to android block of app level's build.gradle file. repositories { flatDir { dirs 'libs' } } This way you defined a new ext...
Sometimes you would want to start or remove an action on a specific node at a certain time. For example, you might want to stop a moving object when the user taps the screen. This becomes very helpful when a node has multiple actions and you only wants to access one of them. let move = SKAction.mov...
package main import ( "fmt" "k8s.io/client-go/1.5/kubernetes" "k8s.io/client-go/1.5/pkg/api/v1" "k8s.io/client-go/1.5/rest" ) func main() { config, err = rest.InClusterConfig() if err != nil { return nil, err } ...
Objectives: Using the Spring CLI, we will create a new Spring Boot application to be deployed to Elastic Beanstalk. We will edit the generated Spring Boot application so that it will: Create a jar named aws-eb-demo.jar. Listen on port 5000. Include a single web page named index.html. ...
Code echo get_permalink(); Output The link of the current page, for example: http://website.com/category/name-of-post/
Code echo get_permalink( 44 ); Output The link of the post id:44, for example: http://website.com/category/name-of-post/
Code echo get_permalink( 44 , false ); Output The link of the post id:44 without the name of the post, for example: http://website.com/category/%postname%/
To get OAuth2 access token simply do curl https://login.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=myclientid" -d "client_secret=myclientsecret" -d "[email protected]" -d "password=mypassword123456" Y...
Code $categories = get_the_category(); foreach( $categories as $category ) { echo $category->name . '<br />'; } Output All names of categories of the current page, one on each line.
Code $categories = get_the_category(); foreach( $categories as $category ) { echo $category->term_id . '<br />'; } Output All ids of categories of the current page, one on each line.
Before you can build anything, you are required to make your machine ready for building. For this you need to install a lot of libraries and modules. The most recommended Linux distribution is Ubuntu, so this example will focus on installing everything that is needed on Ubuntu. Installing Java Fir...
Sample Data: CREATE TABLE table_name ( id, list ) AS SELECT 1, 'a,b,c,d' FROM DUAL UNION ALL -- Multiple items in the list SELECT 2, 'e' FROM DUAL UNION ALL -- Single item in the list SELECT 3, NULL FROM DUAL UNION ALL -- NULL list SELECT 4, 'f,,g' FROM DUAL; -- NULL item...
Code the_title( ); Output The title of the current post or page
Code the_title( '<h1>', '</h1>' ); Output The title of the current post or page in h1 tags
Use dynamic_cast for converting pointers/references within an inheritance hierarchy. Use static_cast for ordinary type conversions. Use reinterpret_cast for low-level reinterpreting of bit patterns. Use with extreme caution. Use const_cast for casting away const/volatile. Avoid this unless you ar...
Code get_the_title(); Output The title of the current post or page
Code get_the_title( 44 ); Output The title of the post id:44.
Code <picture> <source media="(min-width: 600px)" srcset="large_image.jpg"> <source media="(min-width: 450px)" srcset="small_image.jpg"> <img src="default_image.jpg" style="width:auto;"> </picture> ...

Page 1158 of 1336