Tutorial by Examples

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...
Go to the directory with the source code: cd freebsdsrc Go to the directory with the kernel's configuration code: # If your system is 32-bit. cd sys/i386/conf/ # If your system is 64-bit. cd sys/amd64/conf/ Get a copy of the GENERIC kernel (let's call it MODEDKERNEL). It will ...
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...
Let's configure the destination directory for the root filesystem of your new FreeBSD (for example /usr/home/beastie/MODEDKERNEL). Add the following lines to /etc/src.conf to set it up: .if ${KERNCONF} == "MODEDKERNEL" DESTDIR?=/usr/home/beastie/MODEDKERNEL MODULES_OVERRID...
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...
Spring is a vast framework, so the Spring framework has been divided in several modules which makes spring lightweight. Some important modules are: Spring Core Spring AOP Spring JDBC Spring Transaction Spring ORM Spring MVC All the modules of Spring are independent of each other except S...
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...
Tested with A.S. v1.4.1 but should work with newer versions too. Create a new Android Studio project using the project wizard (Menu:/File/New Project): Call it "cvtest1" Form factor: API 19, Android 4.4 (KitKat) Blank Activity named MainActivity You should have a cvtest1 dire...
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>>
To show contents of an RDD, it have to be printed: myRDD.foreach(println) To limit number of rows printed: myRDD.take(num_of_rows).foreach(println)
Portsnap portsnap fetch portsnap extract updating ports tree with portsnap portsnap update schedule cron job for daily updates 0 3 * * * root /usr/sbin/portsnap cron SVN head cd /usr/ports svnlite checkout https://svnweb.freebsd.org/ports/head . quaterly FreeBSD Ports team freeze...
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 ...

Page 951 of 1336