Tutorial by Examples: 0

//Header File <CallKit/CXCallObserver.h> CXCallObserver *callObserver = [[CXCallObserver alloc] init]; // If queue is nil, then callbacks will be performed on main queue [callObserver setDelegate:self queue:nil]; // Don't forget to store reference to callObserver, to prevent it ...
In this example we use Tensorflow to count to 10. Yes this is total overkill, but it is a nice example to show an absolute minimal setup needed to use Tensorflow import tensorflow as tf # create a variable, refer to it as 'state' and set it to 0 state = tf.Variable(0) # set one to a constan...
You must have 3.2 to be able to upgrade to 3.4. This example assumes you are using apt. sudo service mongod stop sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xeni...
How to find documents created 60 seconds ago seconds = 60 gen_time = datetime.datetime.today() - datetime.timedelta(seconds=seconds) dummy_id = ObjectId.from_datetime(gen_time) db.CollectionName.find({"_id": {"$gte": dummy_id}}) If you're in a different timezone, y...
Symfony 2.8 # AppBundle\Twig\AppExtension.php <?php namespace AppBundle\Twig; class AppExtension extends \Twig_Extension { /** * This is where one defines the filters one would to use in their twig * templates * * @return Array */ public function ...
SharePoint 2013: Access User Profile Service Data using JSOM in SharePoint 2013 ​ In this article, we will learn to manage or access User Profile Service(UPS) Application using JSOM (Javascript Object Model) and create a basic App. Before we start, lets go through basic UPS terminology first. Us...
Add any JSR 303 implementation to your classpath. Popular one used is Hibernate validator from Hibernate. <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>4.2.0.Final</version> </dependen...
{ "status": 200, "message": "OK", "data": [ { "name": "dignissimos", "description": "Maxime rerum molestias error a consequatur adipisci inventore corrupti.", ...
{ "status": 400, "message": "Bad Request", "errors": [ { "code": "E100", "message": "Missing First Name", "field": "first_name", ...
{ "status": 401, "message": "Unauthorized", "errors": [] }
Highlighting Top 5 Values With Range("E1:E100").FormatConditions.AddTop10 .TopBottom = xlTop10Top .Rank = 5 .Percent = False With .Font .Bold = True .ColorIndex = 3 End With End With
The first version of HTTP that came into existence is 0.9, often referred to as "HTTP As Implemented." A common description of 0.9 is "a subsect of the full HTTP [i.e. 1.0] protocol." However, this greatly fails to illustrate the disparity in capabilities between 0.9 and 1.0. Ne...
This will take about 30 minutes. We will be setting Ruby on Rails Development Environment on Ubuntu 16.10 Yakkety Yak. You'll want to download the latest Desktop version here: http://releases.ubuntu.com/17.04/ Open up your terminal using Ctrl + Alt + T. Installing Ruby The First step is to ins...
If you want to use Swift3.0 or Bitcode you can add this code in your podfile. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'YES' config.build_settings['SWIFT...
Suppose we have a simple class with validation annotations public class UserDTO { @NotEmpty private String name; @Min(18) private int age; //getters/setters } A controller to check the UserDTO validity. @RestController public class ValidationController { @Reque...
Run the following bash script as sudo #!/bin/bash # get deps apt -y install build-essential libncurses5-dev libxml2-dev libsqlite3-dev libssl-dev libsrtp0-dev uuid-dev libjansson-dev # download cd /usr/src wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14-current.tar.gz...
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_...
C++20 is the upcoming standard of C++, currently in development, based upon the C++17 standard. It's progress can be tracked on the official ISO cpp website. The following features are simply what has been accepted for the next release of the C++ standard, targeted for 2020. Language Extensions N...
Sometimes you want to return a 404 (Not Found) response, because the requested resource does not exist. Symfony allows you to do so by throwing a NotFoundHttpException. The Symfony base Controller exposes a createNotFoundException method which creates the exception for you: public function indexAc...
You can use UILocalNotification, old APIs also works fine with iOS10, but we had better use the APIs in the User Notifications framework instead. There are also some new features, you can only use with iOS10 User Notifications framework. This also happens to Remote Notification, for more informatio...

Page 10 of 11