Tutorial by Examples: a

A decision tree is a classifier which uses a sequence of verbose rules (like a>7) which can be easily understood. The example below trains a decision tree classifier using three feature vectors of length 3, and then predicts the result for a so far unknown fourth feature vector, the so called te...
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...
SVN FreeBSD project use SVN as default SCM. Source could be download with svnlite software. Get Current cd /usr/src svnlite checkout https://svn.freebsd.org/base/head . Get Releases cd /usr/src svnlite checkout https://web.freebsd.org/base/release/11.0.0 . Tarball (http & ftp) You c...
Build the world Go to the freebsdsrc/ (the root directory of the FreeBSD source tree you've already downloaded) and build the world: sudo make -j${NUMBER_OF_PROCESSORS} buildworld KERNCONF=MODEDKERNEL -DNO_CLEAN Estimated time Estimated time on Hasee Q540S running on a one processor: 8 hours...
Install the world sudo make installworld KERNCONF=MODEDKERNEL Estimated time on Hasee Q540S: 5 minutes. Install the kernel sudo make installkernel KERNCONF=MODEDKERNEL Estimated time on Hasee Q540S: a few seconds.
The preserveAspectRatio attribute has an optional parameter: meet | slice. The default behavior is meet which stretches the content in both the x and y dimension until it fills either the width or height of the viewBox. The alternative - slice preserves the aspect ratio of the content but scales up ...
identification division. program-id. deleting. environment division. configuration section. input-output section. file-control. select optional indexed-file assign to "indexed-file.dat" status is indexing-status organization is ind...
Spring is a framework, which provides bunch of classes, by using this we don't need to write boiler plate logic in our code, so Spring provides an abstract layer on J2ee. For Example in Simple JDBC Application programmer is responsible for Loading the driver class Creating the connection Cre...
What happens when we execute python -m SimpleHTTPServer 9000? To answer this question we should understand the construct of SimpleHTTPServer (https://hg.python.org/cpython/file/2.7/Lib/SimpleHTTPServer.py) and BaseHTTPServer(https://hg.python.org/cpython/file/2.7/Lib/BaseHTTPServer.py). Firstly, P...
// Default UINavigationBar appearance throughout the app [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName : [UIFont fontWithName:@"HelveticaNeue-CondensedBold...
Keychain.h #import <Foundation/Foundation.h> typedef void (^KeychainOperationBlock)(BOOL successfulOperation, NSData *data, OSStatus status); @interface Keychain : NSObject -(id) initWithService:(NSString *) service_ withGroup:(NSString*)group_; -(void)insertKey:(NSString *)key with...
You can push tasks or data to the firebase realtime database and run a worker which listens to the firebase queue to run some background processess Setup firebase Create a Firebase project in the Firebase console, if you don't already have one. If you already have an existing Google project a...
Expression<Func<int, bool>> checkEvenExpression = i => i%2 == 0; // lambda expression is automatically converted to an Expression<Func<int, bool>>
keyword search cd /usr/ports make search key=apache name search cd /usr/ports make search name=apache24 Using fresports Official FreeBSD ports website (http://freshports.org/) give you a nice way to find ports and all information concerning it.
If you have found your software in the ports tree, now its the time to build it. Simple build and install with manual configuration cd /usr/ports/www/apache24 make make install Simple build and install with automatic configuration cd /usr/ports/www/apache24 make BATCH=yes make install ...
If you want custom configuration from ports, you can configure it before building it make config. All ports configuration are stored in /var/db/ports/${CATEGORY_NAME}/options as makefile. Configuring www/apache24 cd /usr/ports/www/apache24 make config make make install This configuration wil...
Manual packaging You can make your own package based on ports. cd /usr/ports/www/apache24 make package BATCH=yes This command will store your package in /usr/ports/packages/All. Using poudriere poudriere is currently the official package builder for FreeBSD. Installing poudriere pkg instal...
A jail is simply a chroot with strong isolation. So, if you want to create jail, you simply need to create an alternative root and starting a new jail in it. Simple jail deployment from binaries # create our alternative root path JAILROOT="/path/to/my/jail" mkdir -p "${JAILROOT}&q...
FreeBSD jails can have fine grained networking configuration. By default, every jails use the same network configuration than host. Removing network support jail -c name="nonetwork" path="/path/to/your/jail" ip4=disable ip6=disable Allowing only IPv4 networking jail -c name...

Page 776 of 1099