Tutorial by Examples: st

Step 1: Creating Custom Error Logging Filter which will write Errors in Text Files According to DateWise. public class ErrorLogger : HandleErrorAttribute { public override void OnException(ExceptionContext filterContext) { string strLogText = ""; Excepti...
First lets create basic navbar.html with 3 options. (Home, List , Create) <nav class="navbar navbar-default" role="navigation"> <ul class="nav navbar-nav"> <li> <a id="home-navbar" routerLink="/home">Home</a> ...
run the follows commands at cmd npm install -g protractor webdriver-manager update webdriver-manager start **create protractor.conf.js file in the main app root. very important to decleare useAllAngular2AppRoots: true const config = { baseUrl: 'http://localhost:3000/', s...
Detailed instructions on getting kendo-asp.net-mvc set up or installed.
In the IF THEN ELSE statement the result can be either a single statement: DEFINE VARIABLE i AS INTEGER NO-UNDO. IF i = 0 THEN MESSAGE "Zero". ELSE MESSAGE "Something else". Or a block, for instance by adding a DO-block: DEFINE VARIABLE i AS INTEGER NO...
The DICOM Image file is a tagged image file; the file contains both an image (most of the time) and a collection of data about the image. The data in a DICOM image file is stored as a sequence of individual elements. Each element contains one item of information about the image or the image itself. ...
Tweepy can be installed from its PyPI repository using pip or easy_install: pip install tweepy or easy_install tweepy You can also download the source from GitHub and install it using setup.py: python setup.py install See the tweepy documentation for more.
The Search API provides access to recent tweets*. This is as opposed to the Stream API, which provides search results in real-time. <example> *Note that "the Search API is focused on relevance and not completeness" - Twitter Search API
The Stream API provides access to tweets in real-time. Streams can be filtered based on keywords, language, location, and more. Here's a simple example to track mentions of the word "tweepy": #set up a new class using tweepy.StreamListener class SimpleListener(tweepy.StreamListener): ...
app.module.ts import {routes} from "./app.routes"; @NgModule({ declarations: [AppComponent], imports: [BrowserModule, mainModule.forRoot(), RouterModule.forRoot(routes)], providers: [], bootstrap: [AppComponent] }) export class AppModule { } app.routes.t...
If you have successfully deployed the Lambda, you can also test it directly in the GUI. When you click the blue Test button for the first time, it presents you with a creation of a new test event. If you are testing the Java code from the Basic Lambda code in Java example, delete the whole body and...
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7' ) import groovyx.net.http.RESTClient try { def restClient = new RESTClient("http://weathers.co") def response = restClient.get(path: '/api.php', query: ['city': 'Prague']) prin...
UITabBarController building in Swift 3 Change image color and title according to selection with changing selected tab color. import UIKit class TabbarController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() self.navigationController?.isNavigat...
There are a number of functions and methods for working with comma (or other character) separated lists in Progress 4GL. NUM-ENTRIES Returns the number of entries in a list. You can optionally specify delimiter, comma is default NUM-ENTRIES(string [, delimiter]) Using comma, the default deli...
Set createScriptingFileSystemObject = CreateObject("Scripting.FileSystemObject") Tools> References> Microsoft Scripting Runtime Associated DLL: ScrRun.dll Source: Windows OS MSDN-Accessing Files with FileSystemObject The File System Object (FSO) model provides an object-base...
Type Casting Type casting is a way to check the type of an instance, or to treat that instance as a different superclass or subclass from somewhere else in its own class hierarchy. Type casting in Swift is implemented with the is and as operators. These two operators provide a simple and express...
Here is a Rules example in Rules export format: { "rules_display_userpoints_after_updating_content" : { "LABEL" : "Display userpoints after updating content", "PLUGIN" : "reaction rule", "OWNER" : "rules", &qu...
Let's create a small piece of code that throws an exception: private void button1_Click(object sender, EventArgs e) { string msg = null; msg.ToCharArray(); } If we execute this, we get the following Exception and stack trace: System.NullReferenceException: "Object reference not...
Detailed instructions on getting django-forms set up or installed.

Page 307 of 369