Tutorial by Examples: n

A button can be disabled by Swift myButton.isEnabled = false Objective-C: myButton.enabled = NO; The button will become gray: If you don't want the button appearance to change when disabled set adjustsImageWhenDisabled to false / NO
Swift label.backgroundColor = UIColor.redColor() label.backgroundColor = .redColor() Swift 3 label.backgroundColor = UIColor.red Objective-C label.backgroundColor = [UIColor redColor];
Often we want to operate only on elements of an array that fulfill a specific condition: Select Will return elements that match a specific condition array = [1, 2, 3, 4, 5, 6] array.select { |number| number > 3 } # => [4, 5, 6] Reject Will return elements that do not match a specific c...
manifest.json gives information about the extension, such as the most important files and the capabilities that the extension might use. Among the supported manifest fields for extensions, the following three are required. { "manifest_version": 2, "name": "My Exte...
Suppose you have defined the following Person class: public class Person { String name; int age; public Person (int age, String name) { this.age = age; this.name = name; } } If you instantiate a new Person object: Person person = new Person(25, &qu...
Introduction SharePoint 2016 is the version 16 release of the SharePoint product family. It was released on May 4, 2016. This example covers the installation of SharePoint 2016 using the Single Server Farm configuration. This configuration covers the basics of setting up a SharePoint farm without t...
Detailed instructions on getting ironpython set up or installed. Install IronPython Just download the newest version from http://ironpython.net and follow the instructions from the msi package. This package will setup everything you need to start working with ironpython.
#include <stdlib.h> #include <lauxlib.h> #include <lua.h> #include <lualib.h> int main(void) { lua_State *lvm_hnd = lua_open(); luaL_openlibs(lvm_hnd); /* Load a standard Lua function from global table: */ lua_getglobal(lvm_hnd, "print&quot...
CommandDescription<Esc>Leaves insert mode, triggers autocommands and abbreviations<C-[>Exact synonymous of <Esc><C-c>Leaves insert mode, doesn't trigger autocommands Some people like to use a relatively uncommon pair of characters like jk as shortcut for <Esc> or <C...
There are many ways you can create a UIColor: Swift Using one of the predefined colors: let redColor = UIColor.redColor() let blueColor: UIColor = .blueColor() // In Swift 3, the "Color()" suffix is removed: let redColor = UIColor.red let blueColor: UIColor = .blue If the c...
Detailed instructions on getting access-vba set up or installed.
Requirements The following setup guide is for cakephp 2.8 and above. All cakephp versions lower than 2.8 are not compatible with php 7 HTTP Server. For example: Apache. Having mod_rewrite is preferred, but by no means required. PHP 5.5.9 or greater (including PHP 7). mbstring PHP extension in...
To create and manage Heroku apps locally you'll need the Heroku Toolbelt, here are some ways to get it. Download Download the Heroku Toolbelt installer from Heroku's website. Homebrew Install heroku with brew: brew install heroku Debian/Ubuntu Run this script: wget -O- https://toolbelt.her...
File f = new File(path); String content = new Scanner(f).useDelimiter("\\Z").next(); \Z is the EOF (End of File) Symbol. When set as delimiter the Scanner will read the fill until the EOF Flag is reached.
CSS div{ width: 150px; height:150px; background-color: red; transition: background-color 1s; } div:hover{ background-color: green; } HTML <div></div> This example will change the background color when the div is hovered the background-color change will...
Active patterns are a special type of pattern matching where you can specify named categories that your data may fall into, and then use those categories in match statements. To define an active pattern that classifies numbers as positive, negative or zero: let (|Positive|Negative|Zero|) num = ...
Inline SVG allows SVG markup, written within HTML, to generate graphics in the browser. When using SVG inline, a DOCTYPE is not strictly required. Instead just the <svg> opening and closing tags together with either a viewBox or width and height attributes will suffice: <svg width="1...
Detailed instructions on getting apache set up or installed. Ubuntu Installation sudo apt-get install apache2 Windows Installation Check out the WAMP stack. WAMP stands for Windows, Apache, MySQL, PhpMyAdmin. CentOS Installation Apache 2.2 comes with CentOS6, whereas 2.4 comes with Cen...
Directives are one of the most powerful features of angularjs. Custom angularjs directives are used to extend functionality of html by creating new html elements or custom attributes to provide certain behavior to an html tag. directive.js // Create the App module if you haven't created it yet va...
There are two common ways to install Groovy. Download The Groovy binary can be downloaded on the download page of the Groovy website. You can unpack archive and add path to %GROOVY_HOME%/bin/groovy.bat to the PATH system environment variable, where %GROOVY_HOME% is the directory where Groovy is un...

Page 98 of 1088