Tutorial by Examples: o

You can also set multiple sort descriptors, to sort by one attribute within another. For example, return all entries ordered by date, and by name within each date: let fetchRequest = NSFetchRequest(entityName: "NAME_OF_ENTITY") let sortDescriptor1 = NSSortDescriptor(key: "name"...
You can set the path to bcomp.exe git config --global difftool.bc3.path 'c:\Program Files (x86)\Beyond Compare 3\bcomp.exe' and configure bc3 as default git config --global diff.tool bc3
The keywords can also create scopes in order to (un)check multiple operations. short m = 32767; short n = 32767; checked { int result1 = (short)(m + n); //will throw an OverflowException } unchecked { int result2 = (short)(m + n); // will return -2 }
If you have code (a routine) you want to execute under a specific (constraint) context, you can use dependency injection. The following example shows the constraint of executing under an open SSL connection. This first part would be in your library or framework, which you won't expose to the client...
Installing software via APT (Advanced Package Tool) also know as 'apt-get'. To install Mozilla Firefox: Open a Terminal (Ctrl+Alt+T) Type sudo apt-get install firefox Hit Enter When it asks to install type 'Y' to confirm. Software will be downloaded and installed.
Consider a communication happening between a Employee and its HR Department. Broadly these are explained in the following six steps when a message is passed to the actor: Employee creates something called an ActorSystem. It uses the ActorSystem to create something called as ActorRef. Th...
set wildmenu to turn on completion suggestions for command line. Execute the following set wildmenu set wildmode=list:longest,full Now if you do say, :colortab, You'll get 256-jungle Benokai BlackSea C64 CandyPaper Chasing_Logic ChocolateLiquor :color 0x7A69_dark
#include <vtkAutoInit.h> VTK_MODULE_INIT(vtkRenderingOpenGL2); VTK_MODULE_INIT(vtkRenderingFreeType); VTK_MODULE_INIT(vtkInteractionStyle); #include <vtkSmartPointer.h> #include <vtkTextActor.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include ...
In this example we will implement a custom Checkbox for Android and iOS. Creating the Custom Control namespace CheckBoxCustomRendererExample { public class Checkbox : View { public static readonly BindableProperty IsCheckedProperty = BindableProperty.Create<Checkbox, bool&gt...
Add the following dependency to your pom.xml file: <dependency> <groupId>com.couchbase.client</groupId> <artifactId>java-client</artifactId> <version>2.3.1</version> </dependency> You can check the maven repository for the latest version....
String bucketName = "default"; String bucketPassword = ""; List<String> nodes = Arrays.asList("127.0.0.1"); // IP or hostname of one or more nodes in the cluster Cluster cluster = CouchbaseCluster.create(nodes); Bucket bucket = cluster.openBucket(bucketName,...
Printing webview console messages to logcat To handle console messages from web page you can override onConsoleMessage in WebChromeClient: final class ChromeClient extends WebChromeClient { @Override public boolean onConsoleMessage(ConsoleMessage msg) { Log.d( &quot...
Eclipse would provide its own embedded Maven enviroment out-of-the-box, which is not recommended whenever a certain Maven version must be used or further configuration must be performed (proxy, mirrors and so on): that is, to have full control over which Maven environment would be used by the IDE. ...
.server - create a debugging server .clients - list debugging clients connected to the server .endsrv - end a debugging server .servers - list debugging server connections .remote - start a remote.exe server .noshell - prevent shell commands
We are going to say Hello as a message box. function helloWorld() { Browser.msgBox("Hello World"); } To execute the script, either click ▶ or select the menu item Run -> helloWorld
Transaction using JDBC driver is used to control how and when a transaction should commit and rollback. Connection to MySQL server is created using JDBC driver JDBC driver for MySQL can be downloaded here Lets start with getting a connection to database using JDBC driver Class.forName("com.m...
A confusion matrix can be used to evaluate a classifier, based on a set of test data for which the true values are known. It is a simple tool, that helps to give a good visual overview of the performance of the algorithm being used. A confusion matrix is represented as a table. In this example we w...
/_build /cover /deps erl_crash.dump *.ez # Common additions for various operating systems: # MacOS .DS_Store # Common additions for various editors: # JetBrains IDEA, IntelliJ, PyCharm, RubyMine etc. .idea
project structure (ansible best practice). project/ group_vars/ development inventory.development playbook.yaml it all starts with inventory.development [development] dev.fakename.io [development:vars] ansible_host: 192.168.0.1 ansible_user: dev ansible_pass: pass ansible...
Apache 2.4 provides the following 6 directives via the mod_rewrite module: RewriteBase RewriteCond RewriteEngine RewriteMap RewriteOptions RewriteRule The following directives, available previously in Apache 2.2 have been removed: RewriteLock RewriteLog RewriteLogLevel All the dir...

Page 633 of 1038