Create an Azure AD B2C Directory
Note the Domain name, it'll be used as the tenantName.
Register your application
Follow the instructions to create an application and enable both Web App and Native client. Refer Register a web application and Register a mobile/native application
Enter th...
The Azure AD B2C login screen can be customized to suit our branding. Refer Customizing the UI
Refer https://github.com/NewtonJoshua/Azure-ADB2C-Angularjs-sample
In this sample we have two customized UI screens,
AD B2C Sign in ansd Sign up page: adCustomPages/unified.html
AD B2C Password reset...
Step 1
Making the environment suitable for Notification. Make sure you enabled Background Modes and Push Notification
Step 2: Creating an UNNotificationContentExtension
Click on the + icon in the bottom which creates a target template and select Notification Content Extention -> next -> ...
let in Kotlin creates a local binding from the object it was called upon.
Example:
val str = "foo"
str.let {
println(it) // it
}
This will print "foo" and will return Unit.
The difference between let and also is that you can return any value from a let block. also ...
Refer the example here: https://github.com/NewtonJoshua/Azure-ADB2C-Angularjs-sample
Azure AD B2C
Azure AD B2C is a cloud identity management solution for your web and mobile applications. It is a highly available global service that scales to hundreds of millions of identities.
Mobile app - ADAL...
Refer the example in https://github.com/NewtonJoshua/Azure-ADB2C-Angularjs-sample
Web app implementation uses Hello.js that performs identity management with Azure AD B2C . Hello.js is a client-side JavaScript SDK for authenticating with OAuth2 web services and querying REST APIs.
jwtHelper of ang...
In this document we'll see how to create a Google Cloud SQL Instance and connect them in your Google App Engine application and MySQL Workbench admin tool.
Google Cloud SQL:
Google Cloud SQL is a fully-managed database service that makes it easy to set-up, maintain, manage and administer your rela...
This example explain how to use an Intent for start a new Activity.
You need two activities:
CurrentActivity
DestinationActivity
In CurrentActivity you have to created an Intent. For that you have to specify two arguments:
Context: It's CurrentActivity, because Activity is a subclass of C...
The documentation of apply says the following:
calls the specified function block with this value as its receiver and returns this value.
While the kdoc is not so helpful apply is indeed an useful function. In layman's terms apply establishes a scope in which this is bound to the object you ca...
{
"module": "amd", // Using AMD module code generator which works with requireJS
"rootDir": "./src", // Change this to your source folder
"outDir": "./view",
...
}
Camel's DSL (Domain Specific Language) is one of the features that makes Camel standout from other Integration frameworks. While some other frameworks also feature a DSL concept, typically in the form of a XML file, the DSL was in such cases always a custom based language.
Camel offers multiple DSL...
<provider
android:name=".DummyContentProvider"
android:authorities="sample.map.com.ipsyncadapter"
android:exported="false" />
<!-- This service implements our SyncAdapter. It needs to be exported, so that the system
sync f...
-- loop-based version
function hw_loop(v: std_logic_vector) return natural is
variable h: natural;
begin
h := 0;
for i in v'range loop
if v(i) = '1' then
h := h + 1;
end if;
end loop;
return h;
end function hw_loop;
-- recursive version
function hw_tree(v: std_...
Each element of text you want to use distinct formatting on should be added separately, by adding to the cell's RichText collection property.
var cell = ws.Cells[1,1];
cell.IsRichText = true; // Cell contains RichText rather than basic values
cell.Style.WrapText = true; // Required to honor n...
There are a number of properties that can be applied to sections of RichText.
var title = cell.RichText.Add("This is my title");
// Data Type: bool
// Default Value: false
title.Bold = true;
// Data Type: System.Drawing.Color
// Default Value: Color.Black
title.Color = C...
To enable disk persistence you should enable the flag persistenceEnabled in the FirebaseDatabaseInstance object of your application:
Android
FirebaseDatabase.getInstance().setPersistenceEnabled(true);
iOS
Database.database().isPersistenceEnabled = true //Swift
[FIRDatabase database].persisten...
Firebase synchronizes and stores a local copy of the data for active listeners when used on mobile devices. In addition, you can keep specific locations in sync.
Android :
DatabaseReference workoutsRef = FirebaseDatabase.getInstance().getReference("workouts");
scoresRef.keepSynced(true)...
Step 1: Download and extract Drupal
Drupal is available in two supported versions: the most recent and the previous. Currently that is Drupal 8 (released November 2015) and Drupal 7. The Recommended releases are the latest stable releases of either version. To learn more about versions, see the Dru...