Tutorial by Examples: er

There are very good configurations to force typings and get more helpful errors which are not activated by default. { "compilerOptions": { "alwaysStrict": true, // Parse in strict mode and emit "use strict" for each source file. // If you have wrong c...
Sql Server 2016+ and Azure Sql database enables you to automatically filter rows that are returned in select statement using some predicate. This feature is called Row-level security. First, you need a table-valued function that contains some predicate that describes what it the condition that will...
Security policy is a group of predicates associated to tables that can be managed together. You can add, or remove predicates or turn on/off entire policy. You can add more predicates on tables in the existing security policy. ALTER SECURITY POLICY dbo.CompanyAccessPolicy ADD FILTER PREDICATE...
Access the RecyclerView in the NavigationView and add ItemDecoration to it. NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); NavigationMenuView navMenuView = (NavigationMenuView) navigationView.getChildAt(0); navMenuView.addItemDecoration(new DividerItemDecoration(thi...
Create a new SSDT project Import 3rd party DB Build project to create a dacpac Reference dacpac in other projects
Google Apps Script is a JavaScript based platform-as-a-service primarily used to automate and extend Google Apps. Apps Script runs exclusively on Google's infrastructure requiring no server provisioning or configuration. An online IDE serves as the interface to the entire platform connecting all the...
Random mask will show a rundom number from the specified range instead of the actual value: ALTER TABLE Product ALTER COLUMN Price ADD MASKED WITH (FUNCTION = 'random(100,200)') Note that is some cases displayed value might match actual value in column (if randomly selected number matches valu...
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...
#include <linux/init.h> #include <linux/module.h> /** * This function is called when the module is first loaded. */ static int __init hello_kernel_init(void) { printk("Hello, World!\n"); return 0; } /** * This function is called when is called if a...
We initialize the data we want to interpolate: x = 0:0.5:10; y = sin(x/2); This means the underlying function for the data in the interval [0,10] is sinusoidal. Now the coefficients of the approximating polynómials are being calculated: p1 = polyfit(x,y,1); p2 = polyfit(x,y,2); p3 = polyfit(...
I would venture to say that 80% of the processing that goes on in modern computing systems does not require user interaction, such as kernel code for Linux, OSX and Windows. For those that do, there are two fundamentals which are interactivity via keyboard (pointing devices) and console. This exampl...
To install/update MVC version, follow these steps: In visual studio, open the Package Manager console (use CTRL + Q, and type package manager console) In the console appearing, enter the following after the console cursor showing PM>: Install-Package Microsoft.AspNet.Mvc -Version 5.2.3...
override func viewDidLoad() { super.viewDidLoad() NotificationCenter.default.addObserver(self, selector: Selector(("batteryStateDidChange:")), name: NSNotification.Name.UIDeviceBatteryStateDidChange, object: nil) NotificationCenter.default.addObserver(self, selector: Selecto...
CloudFormer template translates the existing AWS entities to a generate new CloudFormation template to accelerate the time to recreate the environment. The CloudFormer launches in a default VPC which might not be suitable in the cases where the default VPC is deleted. This code base is fork from the...
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...
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...

Page 299 of 417