First of all, I will use Netbeans for this tutorial and this Windows version.
Intall Scene Builder:
When you have installed Netbeans on your computer, you must install Gluon Scene Builder.
Nowadays, Oracle does´t work with Scene Builder and they made it Open Source, to work with the Gluon versi...
Sometimes you'll need to execute synchronous code from within an asynchronous task. To do this, simply schedule a synchronous task from within the asynchronous block.
Bukkit.getScheduler().runTaskTimerAsynchronously(VoidFlame.getPlugin(), () -> {
Bukkit.getScheduler().runTask(VoidFlame.ge...
In this example we are going to implement spring-data-elasticsearch project to store POJO in elasticsearch. We will see a sample maven project which does the followings:
Insert a Greeting(id, username, message) item on elasticsearch.
Get All Greeting items which have been inserted.
Update a Gr...
In this example we are going to see a maven based spring boot application which integrates spring-data-elasticsearch. Here, we will do the followings and see the respective code segments.
Insert a Greeting(id, username, message) item on elasticsearch.
Get all items from elasticsearch
Update a s...
In the following code you need to replace fontsname by the name of the font you would like to use:
TextView lblexample = (TextView) findViewById(R.id.lblexample);
lblexample.setTypeface(Typeface.createFromFile("/system/fonts/" + "fontsname" + ".ttf"));
To remote tracking between local and deleted remote branches use
git fetch -p
you can then use
git branch -vv
to see which branches are no longer being tracked.
Branches that are no longer being tracked will be in the form below, containing 'gone'
branch 12345e6 [origin/bran...
mView.afterMeasured {
// inside this block the view is completely drawn
// you can get view's height/width, it.height / it.width
}
Under the hood
inline fun View.afterMeasured(crossinline f: View.() -> Unit) {
viewTreeObserver.addOnGlobalLayoutListener(object : ViewTreeObserver.OnGlob...
Moving Average of last 30 Items sold
SELECT
value_column1,
( SELECT
AVG(value_column1) AS moving_average
FROM Table1 T2
WHERE ( SELECT
COUNT(*)
FROM Table1 T3
WHERE date_column1 BETWEEN T2.date_column1...
For very first step please make sure your java version is based on Oracle's JDK since the OpenJDP does not support JavaFX yet.
So, go to the Oracle Java download page and download JDK suitable for your operating system and computer architecture.
If you want to study Oracle's java examples, find th...
The first program one typically writes in any language is the "hello world" script. This example demonstrates how to write this program and debug it using Visual Studio Code (I'll refer to Visual Studio Code as VS Code from now on).
Create The Project
Step 1 will be to create a new proje...
This example introduces you to the basic functionality of VS Code by demonstrating how to write a "hello world" program in C++. Before continuing, make sure you have the "ms-vscode.cpptools" extension installed.
Initialize the Project
The first step is to create a new project. ...