Tutorial by Examples: ti

Detailed instructions on getting opengl-es-2.0 set up or installed.
UILabel, UITextField, & UITextView classes have a new property starting from iOS 10 for automatically resizing their font when a user changes their preferred reading size named adjustsFontForContentSizeCategory. Swift @IBOutlet var label:UILabel! if #available(iOS 10.0, *) { label.adju...
Lets start installing the popular library Alamofire to our Xcode project! Lets first install CocoaPods by using the command: [sudo] gem install cocoapods Then let's create a new project in Xcode called Start! Navigate to the folder that contains the .xcodeproj and create a new text file called ...
(clj-time/date-time 2017 1 20) Gives you a Joda time of 20th Jan 2017 at 00:00:00. Hours, minutes and seconds can also be specified as (clj-time/date-time year month date hour minute second millisecond)
In the directory if the xcodeproj, create a new file called Podfile. The following is an example of a Podfile that installs the pod 'AFNetworking' version 1.0 to the app MyApp. target 'MyApp' pod 'AFNetworking', '~> 1.0'
Go to ActiveMQ Website and download latest stable version of activeMQ click here to activeMQ downloads after downloading, unzip it if you're using windows 32 Go to apache-activemq-5.14.3\bin\win32 if windows 64 apache-activemq-5.14.3\bin\win64 run the activemq batch file thats it...
Scala supports lazy evaluation for function arguments using notation: def func(arg: => String). Such function argument might take regular String object or a higher order function with String return type. In second case, function argument would be evaluated on value access. Please see the example...
These instructions are for a base install of Community Edition for local development purposes. Mac (Official documentation is maintained here) 1. Install Dependencies: Homebrew brew install arangodb If you don't want Homebrew or otherwise prefer a binary, you can download it instead here. 2...
Following points are to be kept in mind always: Take the PRD (Product Requirement Document from Business Analyst/Project Manager). If they don't have it, insist on a documentation since that will be the bible for your testing Once you get it, make sure to read it thoroughly. You will get comple...
Behat/Mink Install using composer (for other methods check ) behat.org If you using linux, please go sure that you have installed php-curl (normal curl installation won't work) Linux sudo apt-get install php5-curl If you are using Windows, make sure you have PHP, Curl and Git installed. You...
Internally, Django uses the Python logging system. There is many way to configure the logging of a project. Here is a base: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'default': { 'format': "[%(asctime)s] %(levelname)s [%(n...
In this example, we create an empty index (we index no documents in it) by defining its mapping. First, we create an ElasticSearch instance and we then define the mapping of our choice. Next, we check if the index exists and if not, we create it by specifying the index and body parameters that cont...
Deconstructing the use of an unsafe pointer in the Swift library method; public init?(validatingUTF8 cString: UnsafePointer<CChar>) Purpose: Creates a new string by copying and validating the null-terminated UTF-8 data referenced by the given pointer. This initializer does not try to rep...
extension Dictionary { func merge(dict: Dictionary<Key,Value>) -> Dictionary<Key,Value> { var mutableCopy = self for (key, value) in dict { // If both dictionaries have a value for same key, the value of the other dictionary is used. mu...
You can create a new paint with one of these 3 constructors: new Paint() Create with default settings new Paint(int flags) Create with flags new Paint(Paint from) Copy settings from another paint It is generally suggested to never create a paint object, or any other object in onDraw() as it ...
Text drawing settings setTypeface(Typeface typeface) Set the font face. See Typeface setTextSize(int size) Set the font size, in pixels. setColor(int color) Set the paint drawing color, including the text color. You can also use setARGB(int a, int r, int g, int b and setAlpha(int alpha) setLet...
setStyle(Paint.Style style) Filled shape FILL, Stroke shape STROKE, or both FILL_AND_STROKE setColor(int color) Set the paint drawing color. You can also use setARGB(int a, int r, int g, int b and setAlpha(int alpha) setStrokeCap(Paint.Cap cap) Set line caps, either ROUND, SQUARE, or BUTT (none)...
You can set the following flags in the constructor, or with setFlags(int flags) Paint.ANTI_ALIAS_FLAG Enable antialiasing, smooths the drawing. Paint.DITHER_FLAG Enable dithering. If color precision is higher than the device's, this will happen. Paint.EMBEDDED_BITMAP_TEXT_FLAG Enables the use o...
An Albers projection, or more properly, an Albers equal area conic projection, is a common conical projection and an official projeciton of a number of jurisdictions and organizations such as the US census bureau and the province of British Columbia in Canada. It preserves area at the expense of oth...
I use Spring Boot 1.4.4.RELEASE , with MySQL as the Database and Spring Data JPA abstraction to work with MySQL. Indeed ,it is the Spring Data JPA module that makes it so easy to set up Pagination in a Spring boot app in the first place. Scenario expose an endpoint /students/classroom/{id} . It wi...

Page 431 of 505