Tutorial by Examples: er

Suppose you need to work on three different projects project A, project B and project C. project A and project B need python 3 and some required libraries. But for project C you need python 2.7 and dependent libraries. So best practice for this is to separate those project environments. For creati...
class ConversationsTableViewController: UITableViewController, NSFetchedResultsControllerDelegate { private var fetchedResultsController: NSFetchedResultsController<Conversation>! override func viewDidLoad() { super.viewDidLoad() initializeFetchedResultsController() } private...
Supervised learning is a type of machine learning algorithm that uses a known data-set (called the training data-set) to make predictions. Category of supervised learning: Regression: In a regression problem, we are trying to predict results within a continuous output, meaning that we are trying...
Unsupervised learning allows us to approach problems with little or no idea what our results should look like. We can derive structure from data where we don't necessarily know the effect of the variables. Example: Clustering: Is used for exploratory data analysis to find hidden patterns or groupi...
To get started, create a new Maven webapp (how to do this is outside the scope of this example). In your pom.xml, add the following two dependencies <dependency> <groupId>org.glassfish.jersey.containers</groupId> <artifactId>jersey-container-servlet</artifactId&...
The most common use of formatting is to control display of numeric information contained in the cells in a consistent format, such as currency, a certain number of digits to the right of the decimal point, etc. There are several categories for numbers, such as Currency, Accounting, Percentage, and ...
Calendar : Key : Privacy - Calendars Usage Description Value : $(PRODUCT_NAME) calendar events Reminder : Key : Privacy - Reminders Usage Description Value : $(PRODUCT_NAME) reminder use Contact : Key : Privacy - Contacts Usage Description Value : $(PRODUCT_...
In DRF, serializer validation is run in a specific, undocumented order Field deserialization called (serializer.to_internal_value and field.run_validators) serializer.validate_[field] is called for each field. Serializer-level validators are called (serializer.run_validation followed by seriali...
It is possible to DELETE data from a table if it matches (or mismatches) certain data in other tables. Let's assume we want to DELETEdata from Source once its loaded into Target. DELETE FROM Source WHERE EXISTS ( SELECT 1 -- specific value in SELECT doesn't matter FROM Target ...
The NSInteger is just a typedef for either an int or a long depending on the architecture. The same goes for a NSUInteger which is a typedef for the unsigned variants. If you check the NSInteger you will see the following: #if __LP64__ || (TARGET_OS_EMBEDDED && !TARGET_OS_IPHONE) || TARGET_...
Here is an example of custom UITextField that takes only numerical text and discards all other. NOTE: For iPhone it is easy to do this using Number type keyboard, but for iPad there is no keyboard with Numbers only class NumberTextField: UITextField { required init(coder aDecoder: NSCoder) ...
Function xyz returns two values a and b: def xyz(): return a, b Code calling xyz stores result into one variable assuming xyz returns only one value: t = xyz() Value of t is actually a tuple (a, b) so any action on t assuming it is not a tuple may fail deep in the code with a an unexpecte...
%TYPE: Used to declare a field with the same type as that of a specified table's column. DECLARE vEmployeeName Employee.Name%TYPE; BEGIN SELECT Name INTO vEmployeeName FROM Employee WHERE RowNum = 1; DBMS_OUTPUT.PUT_LINE(vEmp...
Parameter TypesReturn TypeInterface()voidRunnable()TSupplier()booleanBooleanSupplier()intIntSupplier()longLongSupplier()doubleDoubleSupplier(T)voidConsumer<T>(T)TUnaryOperator<T>(T)RFunction<T,R>(T)booleanPredicate<T>(T)intToIntFunction<T>(T)longToLongFunction<T>(...
General Imports, using jinja2 to populate templates into htmls. import jinja2 import webapp2 Important import to use Users API: from google.appengine.api import users Setting of Jinja environment: [into the example the tehcnology selected to populate the information into the frontend] JINJ...
Simple extract of index.html: <div class="sign-in"> {% if user %} [Passing the url we have the opportunity to logout the user] <a href="{{ url|safe }}">LOG OUT</a> [You can include here operations for user authenticated] ...
Once you're up with a new project with the basic template provided in the Introduction, you should be able to add a LUISRecognizer like so - var model = '' // Your LUIS Endpoint link comes here var recognizer = new builder.LuisRecognizer(model); Now, recognizer is a LUISRecognizer and can pa...
Assume that, we implement a simple API and we have the following models. class Parent(models.Model): name = models.CharField(max_length=50) class Child(models.Model): parent = models.ForeignKey(Parent) child_name = models.CharField(max_length=80) And we want to return a respo...
Datepicker allow the user to select date and time. <md2-datepicker [(ngModel)]="date"></md2-datepicker> see for more details here
DirectByteBuffer is special implementation of ByteBuffer that has no byte[] laying underneath. We can allocate such ByteBuffer by calling: ByteBuffer directBuffer = ByteBuffer.allocateDirect(16); This operation will allocate 16 bytes of memory. The contents of direct buffers may reside outside ...

Page 392 of 417