Tutorial by Examples: 0

To use OpenGL ES in your application you must add this to the manifest: <uses-feature android:glEsVersion="0x00020000" android:required="true"/> Create your extended GLSurfaceView: import static android.opengl.GLES20.*; // To use all OpenGL ES 2.0 methods and constants...
This function will display the 404 error message supplied to it using the following error template: Path - application/errors/error_404.php The function expects the string passed to it to be the file path to the page that isn't found. Note that CodeIgniter automatically shows 404 messages if cont...
This shows how to create the demo database used in big parts of Progress documentation: sports2000. This assumes you have installed the Progress products with at least one type of database license. Run proenv script/bat-file that will give you a prompt with all environment variables set. Create ...
The core data structure of Keras is a model, a way to organize layers. The main type of model is the Sequential model, a linear stack of layers. For more complex architectures, you should use the Keras functional API. Here's the Sequential model: from keras.models import Sequential model = Sequ...
How to reference any accessible folder. How to get the full name of a referenced folder. A pair of routines that together will list every folder within every accessible store. A routine to move a folder from one parent folder to another.
All images are from UK versions of Outlook. I know that some names are translated into the local language for other versions and I assume that most of the names for the tabs are translated. Probably the sequence of tabs is unchanged in non-English versions. Alternatively, you will need to look at yo...
All images in this section are from the UK version of Outlook 2016. I know that some names are translated into the local language for other versions and I assume that most of the names for the tabs are translated. Probably the sequence of tabs is unchanged in non-English versions. Alternatively, you...
Incorrect code Sub DoSomething() On Error GoTo CleanFail DoSomethingElse CleanFail: Debug.Print Err.Number Resume Next End Sub Why doesn't this work? If the DoSomethingElse procedure raises an error, execution jumps to the CleanFail line label, prints the error number, a...
This will take about 30 minutes. We will be setting Ruby on Rails Development Environment on Ubuntu 16.10 Yakkety Yak. Open up your terminal using Ctrl + Alt + T. Installing Ruby The First step is to install Dependencies For Ruby. sudo apt-get update sudo apt-get install git-core curl zlib1g-...
Once the sports2000 database has been installed it's time to run it as a standalone server (and not connect to it as a file). Start proenv (proenv in the startmeny on Windows or /usr/install-directory/bin/proenv on Linux/Unix). This example is from Windows. Linux is the same but you need to change...
The 0.9 release of Kafka introduced a complete redesign of the kafka consumer. If you are interested in the old SimpleConsumer (0.8.X), have a look at this page. If your Kafka installation is newer than 0.8.X, the following codes should work out of the box. Configuration and initialization Kaf...
Configuration and initialization First, create a maven project and add the following dependency in your pom: <dependencies> <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> <version&...
/** * An example of nlapiLookupField to retrieve a single field from a related record */ // Get the Sales Rep record ID var repId = nlapiGetFieldValue("salesrep"); // Get the name of the Sales Rep var repName = nlapiGetFieldText("salesrep"); // Retrieve the email...
/** * 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", ...
/** * An example of nlapiLookupField to retrieve joined fields from a related record */ var repId = nlapiGetFieldValue("salesrep"); // Retrieve multiple fields from the associated Sales Rep var repData = nlapiLookupField("employee", repId, ["email", "f...
require(["N/search", "N/currentRecord"], function (s, cr) { /** * An example of N/search#lookupFields to retrieve a single field from a related record */ (function () { var record = cr.get(); // Get the Sales Rep record ID ...
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...
require(["N/search", "N/currentRecord"], function (s, cr) { /** * An example of N/search#lookupFields to retrieve joined fields from a related record */ (function () { var record = cr.get(); // Get the Sales Rep record ID var...
/** * A SuiteScript 1.0 example of using nlapiSubmitField to update a single field on a related record */ // From a Sales Order, get the Customer ID var customerId = nlapiGetFieldValue("entity"); // Set a comment on the Customer record nlapiSubmitField("customer", c...
/** * 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 8 of 11