Tutorial by Examples: er

A cycle in a directed graph exists if there's a back edge discovered during a DFS. A back edge is an edge from a node to itself or one of the ancestors in a DFS tree. For a disconnected graph, we get a DFS forest, so you have to iterate through all vertices in the graph to find disjoint DFS trees. ...
The bulleted list control creates bulleted lists or numbered lists. These controls contain a collection of ListItem objects that could be referred to through the Items property of the control. Basic syntax of a bulleted list: <asp:BulletedList ID="BulletedList1" runat="server&quo...
The HyperLink control is like the HTML element. Basic syntax for a hyperlink control: <asp:HyperLink ID="HyperLink1" runat="server"> HyperLink </asp:HyperLink> It has the following important properties: PropertiesDescriptionImageUrlPath of the image to be ...
Once you have node.js installed on your system, just follow the procedure below to get a basic web server running with support for both HTTP and HTTPS! Step 1 : Build a Certificate Authority create the folder where you want to store your key & certificate : mkdir conf go to tha...
Once you have a query, you can do more with it than just iterating the results in a for loop. Setup: from datetime import date class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) name = Column(Text, nullable=False) birthday = Column(Date) # ...
# Base image FROM python:2.7-alpine # Metadata MAINTAINER John Doe <[email protected]> # System-level dependencies RUN apk add --update \ ca-certificates \ && update-ca-certificates \ && rm -rf /var/cache/apk/* # App dependencies COPY requirements....
While the JavaScript tracking snippet described above ensures the script will be loaded and executed asynchronously on all browsers, it has the disadvantage of not allowing modern browsers to preload the script. The alternative async tracking snippet below adds support for preloading, which will pr...
The simplest form of wait statement is simply: wait; Whenever a process executes this it is suspended forever. The simulation scheduler will never resume it again. Example: signal end_of_simulation: boolean := false; ... process begin clock <= '0'; wait for 500 ps; clock <= '1...
<cffunction name="getUserById" access="public" returntype="query"> <cfargument name="userId" type="numeric" required="yes" hint="The ID of the user"> <cfquery name="local.qryGetUser" datasource...
Function Calls <!--- Load the user object based on the component path. ---> <cfset local.user = new com.User() /> <cfset local.allUsers = user.getAllUsers()> <cfset local.specificUser = user.getUserIdFromQry(qry = local.allUsers, userId = 1)> User.cfc <cfcompone...
1 cd my/project/dir 2 git clone git://github.com/zendframework/ZendSkeletonApplication.git 3 cd ZendSkeletonApplication 4 php composer.phar self-update 5 php composer.phar install
Like classes, interfaces can receive polymorphic parameters (aka Generics) too. Declaring Generic Parameters on Interfaces interface IStatus<U> { code: U; } interface IEvents<T> { list: T[]; emit(event: T): void; getAll(): T[]; } Here, you can see that our t...
<?php wp_enqueue_style('theme-five', get_template_directory_uri() . '/path/to/additional/css'); wp_style_add_data('theme-five', 'alt', true); wp_style_add_data('theme-five', 'title', __('theme-five.css', 'your-theme-name')); ?> wp_style_add_data
Here we use the object that we passed to render_template to display the pages, the current active page, and also a previous and next buttons if you can go to the previous/next page. <!-- previous page --> {% if users_list.has_prev %} <li> <a href="{{ url_for('users', page...
String jsonStr = "{\"name\" : \"Abcd\", \"greeting\": \"Hello\", }"; //Sample Json String Gson gson = new Gson(); // Creates new instance of Gson JsonElement element = gson.fromJson (jsonStr, JsonElement.class); //Converts the json string to Json...
It is common practice to use higher order functions instead of recursion, if there is a higher order function which expresses the right recursion pattern. In our case, sum-of-numbers can be defined using foldl: #lang racket (define (sum-of-numbers l) (foldl + 0 l)) (sum-of-numbers '(1 2 3 4 5)...
To update multiple documents in a collection, set the multi option to true. db.collection.update( query, update, { upsert: boolean, multi: boolean, writeConcern: document } ) multi is optional. If set to true, updates multiple documents that meet the query crit...
I find that the examples in the docker inspect documentation seem magic, but do not explain much. Docker inspect is important because it is the clean way to extract information from a running container docker inspect -f ... container_id (or all running container) docker inspect -f ... $(docker p...
A Sample class diagram based on which we will see JPA implementation. @Entity @Table(name = "VEHICLE") @Inheritance(strategy = InheritanceType.JOINED) @DiscriminatorColumn(name = "VEHICLE_TYPE") public abstract class Vehicle { @TableGenerator(name = "VEHICLE_GE...
public ActionResult Details( string product) { .... if (productNotFound) { // http://www.eidias.com/blog/2014/7/2/mvc-custom-error-pages Response.Clear(); Response.TrySkipIisCustomErrors = true; Response.Write(product + " product not exists"); ...

Page 278 of 417