Tutorial by Examples: and

Create a New Project on Google Developer Console To integrate Android application with Google Drive, create the credentials of project in the Google Developers Console. So, we need to create a project on Google Developer console. To create a project on Google Developer Console, follow these steps:...
This is an example of a basic GUI with two buttons that change a value stored in the GUI's handles structure. function gui_passing_data() % A basic GUI with two buttons to show a simple use of the 'handles' % structure in GUI building % Create a new figure. f = figure(); ...
Define a custom loss function: import keras.backend as K def euclidean_distance_loss(y_true, y_pred): """ Euclidean distance loss https://en.wikipedia.org/wiki/Euclidean_distance :param y_true: TensorFlow/Theano tensor :param y_pred: TensorFlow/Theano ...
\documentclass[compress]{beamer} \mode\<presentation> \title[]{ABCDE for analysis of PQRS systems} \author[] { AA AAAA \inst{1} \and BB BBBB \inst{1} \and CC CCCC \inst{1} \and DD DDDD \inst{1} \and EE EEEE\inst{2} \and FF FFFF\i...
A search request can be executed purely using a URI by providing request parameters. Not all search options are exposed when executing a search using this mode, but it can be handy for quick "curl tests". GET Index/type/_search?q=field:value Another useful feature provided is highlight...
#include <iostream> int main() { int value; std::cout << "Enter a value: " << std::endl; std::cin >> value; std::cout << "The square of entered value is: " << value * value << std::endl; return 0; }
There is a limitation in Acumatica's SOAP Contract-Based API allowing to download attachments only for a top-level entity. Any attempt to use the GetFiles() method to get the attachments of a detail entity will, unfortunately, result in the error "Entity without screen binding cannot be used as...
In find and findstr, there are some special characters that require some caution on it. FIND There is only one character that needs escaping - " quote. To escape it, simply add another quote next to it. So " becomes "". Pretty simple. FINDSTR Findstr comes with plenty of ...
def versionPropsFile = file('version.properties') def versionBuild /*Setting default value for versionBuild which is the last incremented value stored in the file */ if (versionPropsFile.canRead()) { def Properties versionProps = new Properties() versionProps.load(new FileInputStream(ve...
each and eachWithIndex are methods to iterate over collections. each have it(default iterator) and eachWithIndex have it,index(default iterator, default index). We can also change the default iterator/index. Please see below examples. def list = [1,2,5,7] list.each{ println it } list.ea...
Here can be found the most comprehensive math library that emulates pen and paper calculations and allows working with bigger numbers. Here are another examples of pen and paper emulations: ADD , Comparison , Multiply Some math functions implementations can be found here.
#include <opencv2/opencv.hpp> #include using namespace cv; using namespace std; int main(int argc, char** argv) { Mat image; image = imread("C:\Users\Development\Documents\Visual Studio 2013\Projects\ImageIn.bmp", CV_LOAD_IMAGE_GRAYSCALE); // Read the file if (!image.data)...
This example will help to have the Edit text with the icon at the right side. Note: In this just I am using setCompoundDrawablesWithIntrinsicBounds, So if you want to change the icon position you can achieve that using setCompoundDrawablesWithIntrinsicBounds in setIcon. public class MKEditTe...
Using the POWERSHELL command, we can execute a 1-line command directly from a batch script, without any temporary file. Here's the syntax. powershell.exe -Command <yourPowershellCommandHere> You may also want to include other flags, like -Nologo to improve the actual outcome.
While adding the beamerposter package, provide the required parameters. \usepackage[orientation=landscape,size=a1]{beamerposter} You can also customize the size of the poster. \usepackage[orientation=portrait,size=custom,height=110,width=80,scale=1.4]{beamerposter} The height and width dimension...
\documentclass[12pt]{article} \usepackage{titleps} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{lipsum} % for dummy text \pagestyle{myheadings} \pagestyle{fancy} \fancyhf{} \setlength{\headheight}{30pt} \renewcommand{\headrulewidth}{4pt} \renewcommand{\footrulewidth}{2pt...
#include opencv2/opencv.hpp> #include vector> using namespace std; using namespace cv; int main() { Mat3b img = imread("test.jpg"); imshow("Original", img); // Cluster int K = 8; int n = img.rows * img.cols; Mat data = img.reshape(1, n); data.convertTo(data, CV_32F); ...
import tensorflow as tf # good idea tf.reset_default_graph() # DO MODEL STUFF # Pretrained weighting of 2.0 W = tf.get_variable('w', shape=[], initializer=tf.constant(2.0), dtype=tf.float32) # Model input x x = tf.placeholder(tf.float32, name='x') # Model output y = W*x y = tf.multiply(W,...
public static void main( String[] args ) throws IOException { // good idea to print the version number, 1.2.0 as of this writing System.out.println(TensorFlow.version()); final int NUM_PREDICTIONS = 1; // load the model Bundle try (SavedModelBundle b = SavedModelB...
Like list, simplest function over iolist and bitstring is: -spec loop(iolist()) -> ok | {ok, iolist} . loop(<<>>) -> ok; loop(<<Head, Tail/bitstring>>) -> loop(Tail); loop(<<Rest/bitstring>>) -> {ok, Rest} You can call it like this: lo...

Page 149 of 153