Tutorial by Examples: ti

#include <string.h> #include <gst/gst.h> #include <gst/app/gstappsrc.h> /* * an example application of using appsrc in push mode to create a file. * from buffers we push into the pipeline. */ /* S16LE 10ms frame audio */ #define BUFFER_SIZE 160 /* 300 frames =...
Executable C++ program code is usually produced by a compiler. A compiler is a program that translates code from a programming language into another form which is (more) directly executable for a computer. Using a compiler to translate code is called compilation. C++ inherits the form of its compi...
Selection of a Version Control System Of course many organisations or projects already have a preferred or selected version control system if this is the case for you just skip to client installation. There are a number of things to consider when selecting the version control system to use, given ...
A version control system allows a developer or development team access to essentially I time machine. If the source code, settings, etc., that were used to build a program or system are under version control then the developers can step back in time to recover lost functionality, trace how errors we...
You would need to install ruby before you can install rails. Mac already comes with ruby installed based on how recent your macOS is? Depending on what ruby version you want for your development, the best way to install Ruby is to use RVM. In your terminal, type the command below listed in step...
This example has been taken from here package com.reborne.SmartHibernateConnector.utils; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; public class LiveHibernateConnector implements IHiber...
The easiest way of installing Vala is to install your distribution-specific package. On Ubuntu: sudo apt install valac On Fedora: sudo dnf install vala On Arch: sudo pacman -S vala On OS X, with Homebrew: brew install vala On Windows, you can get an installer for the latest version ...
/** * An example of nlapiLookupField to retrieve multiple fields from a related record */ // Get the Sales Rep record ID var repId = nlapiGetFieldValue("salesrep"); // Retrieve multiple fields from the associated Sales Rep var repData = nlapiLookupField("employee", ...
require(["N/search", "N/currentRecord"], function (s, cr) { /** * An example of N/search#lookupFields to retrieve multiple fields from a related record */ (function () { var record = cr.get(); // Get the Sales Rep record ID v...
This is a variation on the generic example. You just need to import your app script and invoke it's run() method in the service's main() function. In this case we're also using the multiprocessing module due to an issue accessing WSGIRequestHandler. import win32serviceutil import win32service imp...
A function in a normal module (but not a Class module) can return an array by putting () after the data type. Function arrayOfPiDigits() As Long() Dim outputArray(0 To 2) As Long outputArray(0) = 3 outputArray(1) = 1 outputArray(2) = 4 arrayOfPiDigits = outputArray ...
Cassandra uses two kinds of keys: the Partition Keys is responsible for data distribution across nodes the Clustering Key is responsible for data sorting within a partition A primary key is a combination of those to types. The vocabulary depends on the combination: simple primary key: only...
This is my FirebaseMessagingService public class MyFirebaseMessagingService extends FirebaseMessagingService { Bitmap bitmap; @Override public void onMessageReceived(RemoteMessage remoteMessage) { String message = remoteMessage.getData().get("message"); //imageUri will ...
Returns the value of any OS environment variable. MESSAGE OS-GETENV ("OS") VIEW-AS ALERT-BOX. On a Windows machine: MESSAGE OS-GETENV ("SHELL") VIEW-AS ALERT-BOX. Result on a Linux machine with Bash as current shell: ┌────── Message ───────┐ ...
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://api.dropboxapi.com/2/files/list_folder"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CAINFO, "cacert.pem"); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOP...
As edgeapi suggests, it provides an interface for protecting attributes from end-user assignment. This makes Action Controller parameters forbidden to be used in Active Model mass assignment until they have been whitelisted. In addition, parameters can be marked as required and flow through a prede...
import javax.inject.Singleton; import dagger.Module; import dagger.Provides; @Module public class VehicleModule { @Provides @Singleton Motor provideMotor(){ return new Motor(); } @Provides @Singleton Vehicle provideVehicle(){ return new Vehicle(...
The connection between the provider of dependencies, @Module, and the classes requesting them through @Inject is made using @Component, which is an interface: import javax.inject.Singleton; import dagger.Component; @Singleton @Component(modules = {VehicleModule.class}) public interface Vehicl...
Now that you have every connection ready, you have to obtain an instance of this interface and invoke its methods to obtain the object you need: VehicleComponent component = Dagger_VehicleComponent.builder().vehicleModule(new VehicleModule()).build(); vehicle = component.provideVehicle(); Toast.m...
/** * A SuiteScript 1.0 example of using nlapiSubmitField to update multiple fields on a related record */ // From a Sales Order, get the Customer ID var customerId = nlapiGetFieldValue("entity"); // Set a Comment and update the Budget Approved field on the Customer record nlap...

Page 428 of 505