Tutorial by Examples: df

Here the steps required to create a Firebase project and to connect with an Android app. Add Firebase to your app Create a Firebase project in the Firebase console and click Create New Project. Click Add Firebase to your Android app and follow the setup steps. When prompted, enter yo...
Prerequisites git clang and clang++ 3.4^ or gcc and g++ 4.8^ Python 2.6 or 2.7 GNU Make 3.81^ Get source Node.js v6.x LTS git clone -b v6.x https://github.com/nodejs/node.git Node.js v7.x git clone -b v7.x https://github.com/nodejs/node.git Build cd node ./configure make -jX su...
Memoizing is basically a way to cache method results. This can be useful when a method is often called with the same arguments and the calculation of the result takes time, therefore increasing performance. Starting from Groovy 2.2, methods can be annoted with the @Memoized annotation. Imagine the...
The RequiredFieldValidator control ensures that the required field is not empty. It is generally tied to a text box to force input into the text box. The syntax of the control is as given: <asp:RequiredFieldValidator ID="rfvcandidate" runat="server" ControlToValidate =&...
To turn a Javascript Date object into a moment (moment object) just call moment and pass the Date as a argument moment(new Date()); // Moment {_isAMomentObject: true, _i: Sun Jul 31 2016 11:08:02 GMT+0300 (Jerusalem Daylight Time), _isUTC: false, _pf: Object, _locale: Locale…} To turn the momen...
1) Services A service is a constructor function that is invoked once at runtime with new, just like what we would do with plain javascript with only difference that AngularJs is calling the new behind the scenes. There is one thumb rule to remember in case of services Services are constructors...
Use the tar (tape archive) command to compress your files and folders. It is similar to creating .ZIP files in Windows environment. Syntax: tar -zcvf <output tar file> <source file> Example: tar -zcvf outputfile.tar.gz source file Here’s what those switches actually mean: -c: Cr...
Inbound filter is applied when item is added to the search index and allows to specify whether item is included to the index or not. Examples when inbound filter can be used - do not include standard values and previous versions of the item in the index. Inbound filters are set in configuration: ...
Outbound filter can be used to filter the search results. One of the examples of outbound filter usage is removing items which user doesn't have access to from search results. Outbound filters are set in the configuration: <indexing.filterIndex.outbound> <processor type="Sitecore....
AdfELContext adfELContext = AdfmfJavaUtilities.getAdfELContext(); MethodExpression me; me = AdfmfJavaUtilities.getMethodExpression(<binding>, Object.class, new Class[] { }); me.invoke(adfELContext, new Object[] { }); "binding" indicates the EL expression from wh...
To simulate paging using REST you can do the following: Use the $skip=n parameter to skip the first n entries according to the $orderby parameter Use the $top=n parameter to return the top n entries according to the $orderby and $skip parameters. var endpointUrl = "/_api/lists('g...
System Requirements: Node JS Getting Started First Go to Firebase Console and Create New Project. After Creating the project, in project click on settings icon besides project Name in left sidebar and select Permissions. On Permissions Page Click on Service accounts in left sidebar then c...
A lot of emoji consist of more than one code point. 🇯🇵: A flag is defined as a pair of "regional symbol indicator letters" (🇯 + 🇵) 🙋🏿: Some emoji may be followed by a skin tone modifier: 🙋 + 🏿 😀︎ or 😀️: Windows 10 allows you to specify if an emoji is colored or black/white b...
XML <GrandFather name="Bardock" gender="male" spouse="Gine"> <Dad name="Goku" gender="male" spouse="Chi Chi"> <Me name="Gohan" gender="male" /> <brother name="Goten" gender=&q...
buildscript { repositories { jcenter() } dependencies { classpath 'io.spring.gradle:dependency-management-plugin:0.5.4.RELEASE' } } apply plugin: 'io.spring.dependency-management' apply plugin: 'idea' apply plugin: 'java' dependencyManagement { imp...
/* SD card file dump This example shows how to read a file from the SD card using the SD library and send it over the serial port. The circuit: * SD card attached to SPI bus as follows: ** MOSI - pin 11 ** MISO - pin 12 ** CLK - pin 13 ** CS - pin 4 created 22 December 20...
LaraDock is a Laravel Homestead like development environment but for Docker instead of Vagrant. https://github.com/LaraDock/laradock Installation *Requires Git and Docker Clone the LaraDock repository: A. If you already have a Laravel project, clone this repository on your Laravel root director...
This example shows how to take image and display it correctly on the Android device. Firstly we have to create sample application with one button and one imageview. Once user clicks on the button camera is launched and after user selects picture it will be displayed with the proper orientation on ...
TFRecord files is the native tensorflow binary format for storing data (tensors). To read the file you can use a code similar to the CSV example: import tensorflow as tf filename_queue = tf.train.string_input_producer(["file.tfrecord"], num_epochs=1) reader = tf.TFRecordReader() key, s...
The FIXED function rounds a number to the specified number of decimals defined by the decimals parameter, formats the number in decimal format using a comma as a separator unless specified as not required defined by the parameter no_commas, and returns the result as text. The decimals parameter is o...

Page 14 of 21