Tutorial by Examples

copy (select oid,relname from pg_class limit 5) to stdout;
This example shows you different ways to execute 'commands' for Minecraft from code: EntityPlayerSP player = Minecraft.getMinecraft().player; player.sendChatMessage("/Command here"); to send a command in SinglePlayer
https://api.telegram.org/bot*BOTTOKEN*/sendmessage?chat_id=exampleID&text=exampleText&parse_mode=HTML What does this do? With your parameters adjusted correctly this call will send a message to the exampleID user with the exampleText as message with an HTML encoding. Standard encoding is ma...
In Kotlin, we can declare variable which can hold null reference. Suppose we have a nullable reference a, we can say "if a is not null, use it, otherwise use some non-null value x" var a: String? = "Nullable String Value" Now, a can be null. So when we need to access value o...
Detailed instructions on getting greasemonkey set up or installed.
Function using promises: function myAsyncFunction() { return aFunctionThatReturnsAPromise() // doSomething is a sync function .then(result => doSomething(result)) .catch(handleError); } So here is when Async/Await enter in action in order to get clean...
Angular 2 wrapper library for Dropzone. npm install angular2-dropzone-wrapper --save-dev Load the module for your app-module import { DropzoneModule } from 'angular2-dropzone-wrapper'; import { DropzoneConfigInterface } from 'angular2-dropzone-wrapper'; const DROPZONE_CONFIG: DropzoneCon...
This covers how you can create a basic 2D game using SurfaceView. First, we need an activity: public class GameLauncher extends AppCompatActivity { private Game game; @Override public void onCreate(Bundle sis){ super.onCreate(sis); game = new Game(GameLauncher....
Prerequisites: Java is installed Selenium is extracted in a folder (Contains 2 files, and 1 folder) Follow these steps to set up IntelliJ Idea for Selenium. Click On "New Project". Choose Java < "Hello World" Application Type the name of the Project, and create it....
Prerequisites : ChromeDriver is downloaded Copy the following code into your class. public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "path of the exe file\\chromedriver.exe"); } If you're using linux, give the path to the ChromeDri...
We use the get method to go to a website. For Example, this would open google public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "path of the exe file\\chromedriver.exe"); WebDriver driver = new ChromeDriv...
Every Html-Element in Selenium is called a WebElement. For example, a p tag would be a WebElement, an a tag would be a WebElement, etc. Consider the following html Structure: <a id="link1" href="https://www.google.com">google</a> <p class="p1"> This...
Now that we know the basics of Selenium, we can make our own project. For this example, we'll be making a program, which finds the Newest questions on stack-overflow. We start easy, lets open stack-overflow. public static void main(String[] args) throws InterruptedException { System.setProper...
To get the attribute of a WebElement, we use getAttribute on that WebElement. For example, consider the following html tag <a id="click" href="https://www.google.com"> We can find the Element's href attribute by WebElement e = driver.findElement(By.id("click&quot...
This is a very simple image processing and computer vision Python exercise series, designed to introduce these topics with little practicals. I am sorry in advance for any rookie mistakes, it is still under development. In this series, I will be limiting digital images we can use to PNG files for t...
Intoduction Object Oriented Programming (mostly referred as OOP) is a programming paradigm for solving problems. The beauty an OO (object oriented) program, is that we think about the program as a bunch of objects communicating with each other, instead of as a sequential script following specific ...
`To calculate 1D convolution by hand, you slide your kernel over the input, calculate the element-wise multiplications and sum them up. The easiest way is for padding=0, stride=1 So if your input = [1, 0, 2, 3, 0, 1, 1] and kernel = [2, 1, 3] the result of the convolution is [8, 11, 7, 9, 4], whic...
Detailed instructions on getting openui5 set up or installed.
Steps: Generate a Base 64 keyfile for Mongo node authentication. Place this file in chef data_bags Go to chef suppermarket and download docker cookbook. Generate a custom cookbook (e.g custom_mongo) and add depends 'docker', '~> 2.0' to your cookbook's metadata.rb Create an attribu...
The GEODIST command allows a user to determine the distance between two members within a geospatial index while specifying the units. To find the distance between two meetup cities: GEODIST meetup_cities "San Francisco" "Denver" mi

Page 1255 of 1336