Tutorial by Examples: o

// Create the request instance. NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://google.com"]]; // Create url connection and fire request NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest:request delegate:self];
Simulation environments A simulation environment for a VHDL design (the Design Under Test or DUT) is another VHDL design that, at a minimum: Declares signals corresponding to the input and output ports of the DUT. Instantiates the DUT and connects its ports to the declared signals. Instant...
This example deals with one of the most fundamental aspects of the VHDL language: the simulation semantics. It is intended for VHDL beginners and presents a simplified view where many details have been omitted (postponed processes, VHDL Procedural Interface, shared variables...) Readers interest...
Normal sorting Highlight the text to sort, and the type: :sort If you don't highlight text or specify a range, the whole buffer is sorted. Reverse sorting :sort! Case insensitive sorting :sort i Numerical sorting Sort by the first number to appear on each line: :sort n Remove duplicates a...
ASP.NET MVC is open source web application framework. MVC itself is a design pattern which is built around three main components: model-view-controller. Model - Models reflect your business objects, and are a means to pass data between Controllers and Views. View - Views are the pages that render ...
struct Fibonacci(u64, u64); impl Iterator for Fibonacci { type Item = u64; // The method that generates each item fn next(&mut self) -> Option<Self::Item> { let ret = self.0; self.0 = self.1; self.1 += ret; Some(ret) ...
The following codes will output the numbers 1 through 10 in the console, although console.log could be any function that accepts an input. Method 1 - Standard for x in [1..10] console.log x Method 2 - Compact console.log x for x in [1..10]
Bootstrap is an opinionated framework for HTML, CSS and Javascript. It contains basic styling and functionality for what have become accepted [User Interface] elements, such as form elements, buttons, modal windows and navigation elements. Bootstrap is a responsive web framework, meaning it is desi...
This is a statusbar that you see on top of your screen with icons of battry,clock ... . let frame = require("ui/frame"); Hide: frame.topmost().android.activity.getWindow(). getDecorView().setSystemUiVisibility(android.view.View.SYSTEM_UI_FLAG_FULLSCREEN); Show: frame.topmost()....
open APP_Resources/values/styles.xml and add the <item name="android:windowTranslucentStatus">true</item> in the <style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar"> </style> section.
Storage options in Azure provide a "REST" API (or, better, an HTTP API) The Azure SDK offers clients for several languages. Let's see for example how to initialize one of the storage objects (a queue) using the C# client libraries. All access to Azure Storage is done through a storage ac...
Triggers are an easy way to add some UX responsiveness to your application. One easy way to do this is to add a Trigger which changes a Label's TextColor based on whether its related Entry has text entered into it or not. Using a Trigger for this allows the Label.TextColor to change from gray (when...
-v, --version Added in: v0.1.3 Print node's version. -h, --help Added in: v0.1.3 Print node command line options. The output of this option is less detailed than this document. -e, --eval "script" Added in: v0.5.2 Evaluate the following argument as JavaScript. The modules whi...
AutoIt is intended for use on the Microsoft Windows operating system. It is compatible with versions from Windows XP onwards. Download the installation utility from https://www.autoitscript.com/site/autoit/downloads/ If installing on a 64-bit version of Windows, the user is prompted to choose a 6...
angular.module("app") .service("counterService", ["fooService", "barService", function(anotherService, barService){ var service = { number: 0, foo: function () { return fooService.bazMethod(); // Use of 'fooService' ...
From the Tools menu, select NuGet Package Manager > Package Manager Console. In the Package Manager Console window, type: Install-Package Microsoft.AspNet.Odata This command installs the latest OData NuGet packages.
For this tutorial, we'll use Entity Framework (EF) Code First to create the back-end database. Web API OData does not require EF. Use any data-access layer that can translate database entities into models. First, install the NuGet package for EF. From the Tools menu, select NuGet Package Mana...
Open the file App_Start/WebApiConfig.cs. Add the following using statements: using ProductService.Models; using System.Web.OData.Builder; using System.Web.OData.Extensions; Then add the following code to the Register method: public static class WebApiConfig { public static void Register...
A controller is a class that handles HTTP requests. You create a separate controller for each entity set in your OData service. In this tutorial, you will create one controller, for the Product entity. In Solution Explorer, right-click the Controllers folder and select Add > Class. Name the clas...
Querying the Entity Set Add the following methods to ProductsController. [EnableQuery] public IQueryable<Product> Get() { return db.Products; } [EnableQuery] public SingleResult<Product> Get([FromODataUri] int key) { IQueryable<Product> result = db.Products.Wher...

Page 637 of 1038