Tutorial by Examples: er

A job queue that maintains a worker pool, useful for doing things like background processing in web servers: package main import ( "fmt" "runtime" "strconv" "sync" "time" ) // Job - interface for job processing type Job interf...
Goal: <FruitBasket xmlns="http://www.fruitauthority.fake"> <Fruit> <FruitName>Banana</FruitName> <FruitColor>Yellow</FruitColor> </Fruit> <Fruit> <FruitName>Apple</FruitName> <FruitColor>Red<...
using System.ComponentModel.DataAnnotations.Schema; public class Department { ... public virtual ICollection<Employee> PrimaryEmployees { get; set; } public virtual ICollection<Employee> SecondaryEmployees { get; set; } } public class Employee { ...
The $User variable gives you access to all the standard and custom fields on the User object for the currently logged in user. You are logged in as a user from {!$User.CompanyName}.
sp_configure 'fill factor', 100; GO RECONFIGURE; The server must be restarted before the change can take effect.
USE master; GO -- Set recovery every 3 min EXEC sp_configure 'recovery interval', '3'; RECONFIGURE WITH OVERRIDE;
EXEC sp_configure 'xp_cmdshell', 1 GO RECONFIGURE
USE master EXEC sp_configure 'max server memory (MB)', 64 RECONFIGURE WITH OVERRIDE
EXEC sp_configure "number of checkpoint tasks", 4
The observer pattern is a software design pattern in which an object (called subject) maintains a list of its dependents (called observers), and notifies them automatically of any state changes, usually by calling one of their methods. Ruby provides a simple mechanism to implement the Observer desi...
If you want to extract a folder, but you want to exclude one or several folders during the extraction, you can use the --exclude option. tar -cf archive.tar ./my-folder/ --exclude="my-folder/sub1" --exclude="my-folder/sub3" With this folder tree : my-folder/ sub1/ su...
SELECT SERVERPROPERTY('ProductVersion') AS ProductVersion, SERVERPROPERTY('ProductLevel') AS ProductLevel, SERVERPROPERTY('Edition') AS Edition, SERVERPROPERTY('EngineEdition') AS EngineEdition;
This tutorial will guide you through the process from scratch. Please note some preliminary notes about this particular setup, useful in case that you already have some requested package: Is needed a version of php >=5.0 (I had troubles with php 7.0) Is requested any version of perl Is need...
To target Internet Explorer 6 and Internet Explorer 7, start your properties with *: .hide-on-ie6-and-ie7 { *display : none; // This line is processed only on IE6 and IE7 } Non-alphanumeric prefixes (other than hyphens and underscores) are ignored in IE6 and IE7, so this hack works for any...
To target Internet Explorer 8, wrap your selectors inside @media \0 screen { }: @media \0 screen { .hide-on-ie8 { display : none; } } Everything between @media \0 screen { } is processed only by I
Setup Espresso : androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2' androidTestCompile 'com.android.support.test:runner:0.5' ViewMatchers – A collection of objects that implement Matcher<? super View> interface. You can pass one or more of these to the onView met...
A Haskell's Functor allows one to map any type a (an object of Hask) to a type F a and also map a function a -> b (a morphism of Hask) to a function with type F a -> F b. This corresponds to a Category Theory definition in a sense that functor preserves basic category structure. A monoidal ca...
1067 This is probably related to TIMESTAMP defaults, which have changed over time. See TIMESTAMP defaults in the Dates & Times page. (which does not exist yet) 1292/1366 DOUBLE/Integer Check for letters or other syntax errors. Check that the columns align; perhaps you think you are putting i...
If you want to set some alias name to installed node version, do: nvm alias <name> <version> Similary to unalias, do: nvm unalias <name> A proper usecase would be, if you want to set some other version than stable version as default alias. default aliased versions are loade...
You can allow role to access some action on resource by: $acl->allow('Administrator', 'products', 'create'); You can deny role to access some action on resource by: $acl->deny('Customer', 'categories', 'create'); You can check if role is allowed to some action on resource by using: $a...

Page 227 of 417