Tutorial by Examples: st

The Longest Increasing Subsequence problem is to find subsequence from the give input sequence in which subsequence's elements are sorted in lowest to highest order. All subsequence are not contiguous or unique. Application of Longest Increasing Subsequence: Algorithms like Longest Increasing Subs...
Page.html <div data-bind="foreach: blogs"> <br /> <span data-bind="text: entryPostedDate"></span> <br /> <h3> <a data-bind="attr: { href: blogEntryLink }, text: title"></a> </h3> ...
Blog.html <div data-bind="visible: isLoading()"> Loading... </div> <div data-bind="visible: !isLoading(), foreach: blogs"> <br /> <span data-bind="text: entryPostedDate"></span> <br /> <h3> ...
Usually, services call remote Api to retrieve/send data. But unit tests shouldn't do network calls. Angular internally uses XHRBackend class to do http requests. User can override this to change behavior. Angular testing module provides MockBackend and MockConnection classes which can be used to tes...
In vbscript, an object doesn't necessarily need a designated type. Similar to C#'s var variable. Dim ExampleString1 As String Dim ExampleString2
'Base string Dim exStr : exStr = " <Head>data</Head> " 'Left Dim res: res = Left(exStr,6) 'res now equals " <Head" 'Right Dim res: res = Right(exStr,6) 'res now equals "Head> " 'Mid Dim res: res = Mid(exStr,8,4) 'res now equals "data&quot...
Given a text file test.txt: Ford Jeep Honda The following script is processing this text file: 'Read in File Data to an array, separate by newline vb equivalent (vbcrlf) Dim car, cars Dim filefullname : filefullname = "C:\testenv\test.txt" cars = Split(CreateObject("Scriptin...
'Note: I use this method to extract non-html data in extracted GET telnet results 'This example effectively grabs every other vehicle that have start and finish 'characters, which in this case is "/". 'Resulting in an array like this: 'extractedData(0) = "/Jeep" 'extractedD...
Dim exStr : exStr = " <Head>data</Head> " Dim res res = Ucase(Replace(Mid(exStr, instr(exStr, ">")+1,4), "ata", "ark")) 'res now equals DARK 'instr(exStr, ">") returns 7 'Mid(" <Head>data</Head> ", 7+1,...
According to this approach all OpenCV binaries are included into your application package. It is designed mostly for development and debugging purposes. This approach is deprecated for the production code, async initialization is recommended. If your application project doesn’t have a JNI part, jus...
Due to way that the float type is represented in computer memory, results of operations using this type can be inaccurate - some values are stored as approximations. Good examples of this are monetary calculations. If high precision is necessary, other types should be used. e.g. Java 7 provides Big...
The following command lists out the queries that are currently being run on the server db.currentOp() The output looks something similar to this { "inprog" : [ { "opid" : "302616759", "active" : true, &...
(This assumes MySQL has been installed and that sudo is being used.) Generating a CA and SSL keys Make sure OpenSSL and libraries are installed: apt-get -y install openssl apt-get -y install libssl-dev Next make and enter a directory for the SSL files: mkdir /home/ubuntu/mysqlcerts cd /home...
To externalise a distributed systems configuration Spring Cloud Config provides server and client-side support needed for externalising and centralising your configuration. To get started quickly you could use Spring Initializr to bootstrap your server. Add the Config Server dependency to automatic...
To get started quickly you could use Spring Initializr to bootstrap your client. Add the Config Client to automatically generate a project with the needed dependencies. Or you could add the dependency manually to an existing Spring Cloud application. <dependency> <groupId>org.spri...
Detailed instructions on getting lambda set up or installed.
Detailed instructions on getting elastic-beanstalk set up or installed.
Introduction The following procedure was tested on a test instance in AWS, with Redhat and Solr 6.1.0. You may need to adjust the process to your operating system and environment accordingly. Prerequisites Make sure you use RedHat or a similar (Fedora-based) OS. cat /etc/redhat-release disp...
Team Foundation Server (commonly abbreviated to TFS) is a Microsoft product that provides source code management (either via Team Foundation Version Control or Git), reporting, requirements management, project management (for both agile software development and waterfall teams), automated builds and...
Once you have package control installed, it is super easy to install any plugin, theme, color scheme, syntax that you want! plugin: perform an action (compile your less code into css for example) theme: change the entire skin of sublime text (tabs, sidebar, command palette, etc) color scheme: c...

Page 273 of 369