Tutorial by Examples

Do not use registry:latest! This image points to the old v1 registry. That Python project is no longer being developed. The new v2 registry is written in Go and is actively maintained. When people refer to a "private registry" they are referring to the v2 registry, not the v1 registry! do...
Configuring a private registry to use an AWS S3 backend is easy. The registry can do this automatically with the right configuration. Here is an example of what should be in your config.yml file: storage: s3: accesskey: AKAAAAAACCCCCCCBBBDA secretkey: rn9rjnNuX44iK+26qpM4cDEo...
IISNode allows Node.js Web Apps to be hosted on IIS 7/8 just like a .NET application would. Of course, you can self host your node.exe process on Windows but why do that when you can just run your app in IIS. IISNode will handle scaling over multiple cores, process manageement of node.exe, and auto...
To get this example working, you'll need to create an IIS 7/8 app on your IIS host and add the directory containing the Node.js Web App as the Physical Directory. Ensure that your Application/Application Pool Identity can access the Node.js install. This example uses the Node.js 64-bit installation....
Using a Virtual Directory or Nested Application in IIS is a common scenario and most likely one that you'll want to take advantage of when using IISNode. IISNode doesn't provide direct support for Virtual Directories or Nested Applications via configuration so to achieve this we'll need to take adv...
To get Socket.io working with IISNode, the only changes necessary when not using a Virtual Directory/Nested Application are within the Web.config. Since Socket.io sends requests starting with /socket.io, IISNode needs to communicate to IIS that these should also be handled IISNode and aren't just s...
//conform the NSURLConnectionDelegate protocol. @interface ViewController : UIViewController<NSURLConnectionDelegate> { NSMutableData *_responseData; } //Implementation of the NSURLConnection protocol methods. #pragma mark NSURLConnection Delegate Methods - (void)connection:(NS...
NSURLRequest * urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://google.com"]]; NSURLResponse * response = nil; NSError * error = nil; NSData * data = [NSURLConnection sendSynchronousRequest:urlRequest returningResponse:&a...
// 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]
The TLC5940 is a handy item to have when you run out of PWM ports on the Arduino. It has 16 channels, each individually controllable with 12 bits of resolution (0-4095). An existing library is available at http://playground.arduino.cc/Learning/TLC5940. It is useful for controlling multiple servos or...
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...

Page 832 of 1336