Tutorial by Examples: 3

from the root of your project ./node_modules/.bin/ngc -p src where src is where all your angular 2 code lives. This will generate a folder called ngfactory where all your compiled code will live. "node_modules/.bin/ngc" -p src for windows
List of commonly used S3 AWS CLI Commands Create Bucket aws s3 mb s3://bucket-name Remove Bucket aws s3 rb s3://bucket-name List Buckets aws s3 ls List contents inside the bucket aws s3 ls s3://bucket-name List Bucket with a path aws s3 ls s3://bucket-name/path Copy file aws s3...
3D touch has been introduced with iPhone 6s Plus. There are two behaviors added with this new interface layer: Peek and Pop. Peek and Pop in a nutshell Peek - Press hard Pop - Press really hard Checking for 3D support You should check if the device has a 3D touch support. You can do this by che...
CakePHP 3.x has the ability to bake controllers, models, views and other framework defined objects. Note : If you have had some experience with the Laravel framework, the artisan component is similar to bake. The bake application is located in bin folder; the following are some of the availabl...
You can easily create tables for Your database or drop them if You want. If You wish to do that, You should learn how to write Migrations for desired database. Migrations files must be located in config/Migrations folder. File names can be in next formats: YYYYMMDDHHIISS_(Create|Alter|Delete)Ad...
Want to create a controller? There is 2 ways of creating it: Manually (You will be forced to manually create Controller file in src/Controller) Baked (Running bin/cake bake controller %controllerName% command from CLI) If You want to create it manually, go to src/Controller folder and create ...
Step 1: First of all follow these two steps to add in app functionality : 1. Add the library using : repositories { mavenCentral() } dependencies { compile 'com.anjlab.android.iab.v3:library:1.0.+' } 2. Add permission in manifest file. <u...
The HTTP response status code 301 Moved Permanently is used for permanent URL redirection, meaning current links or records using the URL that the response is received for should be updated. The new URL should be provided in the Location field included with the response. The 301 redirect is consider...
1 dimensional To integrate a one dimensional function f = @(x) sin(x).^3 + 1; within the range xmin = 2; xmax = 8; one can call the function q = integral(f,xmin,xmax); it's also possible to set boundarys for relative and absolute errors q = integral(f,xmin,xmax, 'RelTol',10e-6, 'AbsTo...
The iv is prefixed to the encrypted data aesCBC128Encrypt will create a random IV and prefixed to the encrypted code. aesCBC128Decrypt will use the prefixed IV during decryption. Inputs are the data and key are Data objects. If an encoded form such as Base64 if required convert to and/or from in ...
Here is the JSON File we will be using called animals.json { "Sea Animals": [ { "name": "Fish", "question": "How many species of fish are there?" }, { "name": "Sharks", ...
The iv is prefixed to the encrypted data aesCBC128Encrypt will create a random IV and prefixed to the encrypted code. aesCBC128Decrypt will use the prefixed IV during decryption. Inputs are the data and key are Data objects. If an encoded form such as Base64 if required convert to and/or from in ...
Create a new SSDT project Import 3rd party DB Build project to create a dacpac Reference dacpac in other projects
Password Based Key Derivation can be used both for deriving an encryption key from password text and saving a password for authentication purposes. There are several hash algorithms that can be used including SHA1, SHA256, SHA512 which are provided by this example code. The rounds parameter is use...
See Swift 3 example for usage information and notes func pbkdf2SHA1(password: String, salt: [UInt8], keyCount: Int, rounds: Int) -> [UInt8]? { return pbkdf2(CCPBKDFAlgorithm(kCCPRFHmacAlgSHA1), password:password, salt:salt, keyCount:keyCount, rounds:UInt32(rounds)) } func pbkdf2SHA256(p...
See Swift 3 example for usage information and notes func pbkdf2SHA1Calibrate(password:String, salt:[UInt8], msec:Int) -> UInt32 { let actualRoundCount: UInt32 = CCCalibratePBKDF( CCPBKDFAlgorithm(kCCPBKDF2), password.utf8.count, salt.count, CCPseudoRandom...
Determine the number of PRF rounds to use for a specific delay on the current platform. Several parameters are defaulted to representative values that should not materially affect the round count. password Sample password. salt Sample salt. msec Targeted duration we want to achieve f...
Here i am going to explain the ajax custom pagination in cakephp 3.2. This one is easier to use and understandable. Do this code inside any function and any controller you need. Make an ajax call for the pagination <script type="text/javascript"> $(document).ready(function ()...
The following should be added to your global .gitconfig file [merge] tool = kdiff3 [mergetool "kdiff3"] path = D:/Program Files (x86)/KDiff3/kdiff3.exe keepBackup = false keepbackup = false trustExitCode = false Remember to set the path property to point to th...
[diff] tool = kdiff3 guitool = kdiff3 [difftool "kdiff3"] path = D:/Program Files (x86)/KDiff3/kdiff3.exe cmd = \"D:/Program Files (x86)/KDiff3/kdiff3.exe\" \"$LOCAL\" \"$REMOTE\"

Page 6 of 11