Tutorial by Examples: l

// Token from another example. This token is expired var tokenString = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIiLCJleHAiOjE1MDAwLCJpc3MiOiJ0ZXN0In0.HE7fK0xOQwFEr4WDgRWj4teRPZ6i3GLwD5YCm6Pwu_c" token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error...
Object pollAnswered = getCurrentSession().createSQLQuery( "select * from TJ_ANSWERED_ASW where pol_id = "+pollId+" and prf_log = '"+logid+"'").uniqueResult(); with this query, you get a unique result when you know the result of the query is always going to b...
For C# there exist many wrappers that offer an interface to communicate with OpenCL. OpenCL.NET: This is one of the most low level wrappers out there. It offers a complete implementation of the OpenCL API for C# without adding any abstraction at all. So C\C++ examples are easily ported for this ...
if I forget the password then I'll get error. $ mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) I tried to solve the issue by first knowing the status: $ systemctl status mysql.service mysql.service - MySQL Community ...
In order to show an alert dialog containing a link which can be opened by clicking it, you can use the following code: AlertDialog.Builder builder1 = new AlertDialog.Builder(youractivity.this); builder1.setMessage(Html.fromHtml("your message,<a href=\"http://www.google.com\"&gt...
<?php $con = mysqli_connect("localhost", "root", "", "database"); ?>
Atom is versatile and flexible text editor and has hundreds of community-made, open-source packages that can compile and run source files, for many languages. This guide will show how easy it is to code Python with the Atom editor. This guide assumes you do not have Python nor Atom installed in you...
$data = $result->mysqli_fetch_array(MYSQLI_NUM);
$data = $result->mysqli_fetch_array(MYSQLI_BOTH);
OpenCL Kernels can be either executed on the GPU or the CPU. This allows for fallback solutions, where the customer may have a very outdated system. The programmer can also choose to limit their functionality to either the CPU or GPU. To get started using OpenCL, you'll need a 'Context' and a 'Devi...
Kernels can be compiled at runtime on the target device. To do so, you need the kernel source code the target device on which to compile a context built with the target device A quick terminology update: A program contains a collection of kernels. You can think of a program as a complete C/C...
So now we come down to the real stuff, executing your kernels on the parallel device. Please read about the hardware basics to fully understand the kernel dispatching. First you'll need to set the kernel arguments before actually calling the kernel. This is done via err = Cl.SetKernelArg(_kernel, ...
Prepare helloworld.go (find below) package main import "fmt" func main(){ fmt.Println("hello world") } Run GOOS=linux GOARCH=arm go build helloworld.go Copy generated helloworld (arm executable) file to your target machine.
Detailed instructions on getting coded-ui-tests set up or installed.
Detailed instructions on getting Nokogiri set up or installed.
There isn't much to add to Nokogiri's "Parsing an HTML/XML Document" tutorial, which is an easy introduction to the subject, so start there, then return to this page to help fill in some gaps. Nokogiri's basic parsing attempts to clean up a malformed document, sometimes adding missing clo...
When allocating Memory you have the option to choose between different modes: Read only memory Write only memory Read/Write memory Read-only memory is allocated in the __constant memory region, while the other two are allocated in the normal __global region. In addition to the accessibility...
Lets build a kernel to generate a grayscale image. We will use image data which is defined using uints for each component and with order RGBA. __constant sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE | C...
Lets walk through the most simple kernel there is and some variations of it __kernel void myKernel() { } A kernel which can be started from your main code is identified by the __kernel keyword. A Kernel function can only have return type void. __kernel void myKernel(float a, uint b, byte c) { ...
To properly work with the data each thread needs to know its position in the threadblock/global thread pool. This can be archieved with get_local_id($dim); get_global_id($dim); Those two functions return the position of the thread relative to the threadblock or all threads. get_working_dim(); ...

Page 820 of 861