Tutorial by Examples

Steps to create MYSQL database Login to amazon account and select RDS service Select Launch DB Instance from the instance tab By defaul MYSQL Community Edition will be selected, hence click the select button Select the database purpose, say production and click next step Provide the mysql ver...
This post shows how to use most of the functions in the Regex class, work with null safely related to the Regex functions, and how raw strings makes it easier to write and read regex patterns. The RegEx class To work with regular expressions in Kotlin, you need to use the Regex(pattern: String) cl...
Asymmetric encryption is often regarded as preferable to Symmetric encryption for transferring messages to other parties. This is mainly because it negates many of the risks related to the exchange of a shared key and ensures that whilst anyone with the public key can encrypt a message for the inten...
Shopify themes can also be developed locally. Follow the steps below to setup local development environment: Install Shopify Theme Kit Get API Access Use a new theme or Configure an existing theme with theme kit Explanation of the above steps are as follows: Install Shopify Theme Kit A...
To list available mix tasks use: mix help To get help on a specific task use mix help task e.g.: mix help cmd
Detailed instructions on getting boto3 set up or installed.
import { Injectable } from '@angular/core'; import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { UserService } from '../services/user.service'; import { Observable } from 'rxjs/Observable'; @Injectable() export class AuthHeaderInterceptor imple...
Events triggered by actions inside a HTML form (applies to almost all HTML elements, but is most used in form elements): AttributeDescriptiononblurFires the moment that the element loses focusonchangeFires the moment when the value of the element is changedoncontextmenuScript to be run when a conte...
AttributeDescriptiononkeydownFires when a user is pressing a keyonkeypressFires when a user presses a keyonkeyupFires when a user releases a key
To find whether an object was constructed by a certain constructor or one inheriting from it, you can use the instanceof command: //We want this function to take the sum of the numbers passed to it //It can be called as sum(1, 2, 3) or sum([1, 2, 3]) and should give 6 function sum(...arguments) {...
It is occasionally desirable to deny a certain Permission to some ProtectionDomain, regardless of any other permissions that domain accrues. This example demonstrates just one of all the possible approaches for satisfying this kind of requirement. It introduces a "negative" permission clas...
Note, if you are not familiar with the google maps api, you may read the precedent example (basics) in order to understand this little example. First, initialize the map. You may add an map's element in your HTML code and a bite of CSS like this: <!DOCTYPE html> <html> <h...
Shifting bits left (right) is equivalent to multiplying (dividing) by 2. It's the same in base 10: if we "left-shift" 13 by 2 places, we get 1300, or 13 * (10 ** 2). And if we take 12345 and "right-shift" by 3 places and then remove the decimal part, we get 12, or Math.floor(1234...
First of all, I will use Netbeans for this tutorial and this Windows version. Intall Scene Builder: When you have installed Netbeans on your computer, you must install Gluon Scene Builder. Nowadays, Oracle does´t work with Scene Builder and they made it Open Source, to work with the Gluon versi...
Sometimes you'll need to execute synchronous code from within an asynchronous task. To do this, simply schedule a synchronous task from within the asynchronous block. Bukkit.getScheduler().runTaskTimerAsynchronously(VoidFlame.getPlugin(), () -> { Bukkit.getScheduler().runTask(VoidFlame.ge...
An Annotation parameter can accept multiple values if it is defined as an array. For example the standard annotation @SuppressWarnings is defined like this: public @interface SuppressWarnings { String[] value(); } The value parameter is an array of Strings. You can set multiple values by u...
- (NSString *) UTIforFileExtension:(NSString *) extension { NSString * UTIString = (NSString *)UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, (CFStringRef)extension, ...
<key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeIconFile</key> <string>Icon file for associated file</string> <key>CFBundleTypeName</key> <string>My file format</string>...
NSString * htmlString = @"<html><body> <b> Example bold text in HTML </b> </body></html>"; NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[htmlString dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAt...
The first step you need to preform is to create a NSMutableAttributedString object. The reason we create a NSMutableAttributedString instead of NSAttributedString is because it enables us to append string to it. NSString *fullStr = @"Hello World!"; NSMutableAttributedString *attString =[...

Page 1332 of 1336