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...
This is the important configuration file where we need to specify the ViewResolver and View components.
The context:component-scan element defines the base-package where DispatcherServlet will search the controller class.
Here, the InternalResourceViewResolver class is used for the ViewResolver.
...
In this XML file, we are specifying the servlet class DispatcherServlet that acts as the front controller in Spring Web MVC. All the incoming request for the HTML file will be forwarded to the DispatcherServlet.
<?xml version="1.0" encoding="UTF-8"?>
<web-app version...
Code to take and save screenshot :
public class Sample
{
public static void main (String[] args)
{
*//Initialize Browser*
System.setProperty("webdriver.gecko.driver", "**E:\\path\\to\\geckodriver.exe**");
WebDriver driver = new FirefoxDriv...
Imagine that you need sort records by lowest value of either one of two columns.
Some databases could use a non-aggregated MIN() or LEAST() function for this (... ORDER BY MIN(Date1, Date2)), but in standard SQL, you have to use a CASE expression.
The CASE expression in the query below looks at th...
Right-click on the Toolbox, then click "Choose Items".
Select the COM Components tab, and then check Windows Media Player.
axWindowsMediaPlayer will be added to Toolbox.
Select this checkbox to use axWindowsMediaPlayer
Then you can use axWindowsMediaPlayer :)
AxWindowsMediaPlayer1.URL = "C:\My Files\Movies\Avatar.mp4"
AxWindowsMediaPlayer1.Ctlcontrols.play()
This code will play Avatar in the axWindowsMediaPlayer.
Lets say we want to build a paginated list of products, where the number of the page is passed as a query string parameter. For instance, to fetch the 3rd page, you'd go to:
http://example.com/products?page=3
The raw HTTP request would look something like this:
GET /products?page=3 HTTP/1.1
Ho...
PHP exposes a number of so-called global variables which contain information about the HTTP request, such as $_POST, $_GET, $_FILES, $_SESSION, etc. The Request class contains a static createFromGlobals() method in order to instantiate a request object based on these variables:
use Symfony\Componen...
Installation or Setup Slim framework
Install Composer
Open cmd
Go to Root directory of your Project Folder and Run Following Command.
composer require slim/slim "^3.0"
Now you will have vendor directory in your project
Next Create Index.php in root folder and add following co...
This is hello world code:
print("Hello World!")
How it works? It's simple!
Lua executes print() function and uses "Hello World" string as argument.
Launch screen is a screen which appears while launching app and lasts till first screen of app appears.
Learn more about Launch Screen and guidelines here.
Similar to AppIcons we have to mention in project settings about using image assets for launch screen image.
By default project settings are ...
In swift we can use both print() and NSLog() functions to print something on Xcode console.
But there are lot of differences in print() and NSLog() functions, such as:
1 TimeStamp: NSLog() will print timestamp along with the string we passed to it, but print() will not print timestamp.
e.g.
let ...
use \Psr\Http\Message\ServerRequestInterface as Request;
use \Psr\Http\Message\ResponseInterface as Response;
require 'vendor/autoload.php';
$app = new \Slim\App;
$app->get('/employee/view', function ($req, $res) {
$con = new mysqli('localhost','USERNAME','PASSWORD','DATABASE');
...
Sympy is made for symbolic math, so let's have a look at some basic integration and differentiation.
from sympy import symbols, sqrt, exp, diff, integrate, pprint
x, y = symbols(...
There are various types of inheritance and code reuse in Twig:
Include
The main goal is code reuse. Consider using header.html.twig & footer.html.twig inside base.html.twig as an example.
header.html.twig
<nav>
<div>Homepage</div>
<div>About</div>
</...
Using the command git tag lists out all available tags:
$ git tag
<output follows>
v0.1
v1.3
Note: the tags are output in an alphabetical order.
One may also search for available tags:
$ git tag -l "v1.8.5*"
<output follows>
v1.8.5
v1.8.5-rc0
v1.8.5-rc1
v1.8.5...