France’s Atlantic coast braces itself for Storm Amélie
by RFI
Eight départments on the Atlantic coast have been put on orange alert as Amélie, the first storm of Autumn, is expected to hit in the early hours of Sunday.
Most storms in France are in the Autumn. Over the last 39 years there have been 39 storms in November.
So they're regular but they differ in intensity.

The weather office forecasts Amélie will hit the coast at around 1 a.m. on Sunday, bringing gales of up to 130km/h.
Eight départements have been placed on orange alert (the second highest): Charente-Maritime, Gironde, Vendée, Charente, Landes, Pyrénées-Atlantiques, Deux-Sèvres and Vienne.
People in those areas are advised to be vigilant and avoid travelling around.
The storm should subside by Sunday afternoon.


Appointa is an easy to use appointment scheduling software that allows users to create appointment anytime anywhere.
Appointa saves time by reducing the back and forth by offering users self-scheduling with real time availability.
Users can cancel appointments, search appointments history and receive messages from doctors.
Back End
Front End
Back End
Back End
Appointa is ever improving


The GeoMap control is really easy to customize, here
is a collection of maps around the world, you can also create your own.
GeoMaps are alpha, and they should have more features, create a new issue in the github repo with your ideas.
To keep this example always up to date it is directly pulled from the Github repository, the
repo for simplicity uses the UserControl class to wrap every example, but you can use any
container for your plots.


|
VirtualSCADA
1.0
VirtualSCADA Senior Design Project
|
Go to the source code of this file.

Definition at line 18 of file Functions.php.
| anything | ( | ) |
Returns a PHPUnit_Framework_Constraint_IsAnything matcher object.
Definition at line 32 of file Functions.php.
| arrayHasKey | ( | $key | ) |
Returns a PHPUnit_Framework_Constraint_ArrayHasKey matcher object.
| mixed | $key |
Definition at line 47 of file Functions.php.
| assertArrayHasKey | ( | $key, | |
| $array, | |||
$message = '' |
|||
| ) |
Asserts that an array has a specified key.
| mixed | $key | |
| array | ArrayAccess | $array | |
| string | $message |
Definition at line 63 of file Functions.php.
| assertArrayNotHasKey | ( | $key, | |
| $array, | |||
$message = '' |
|||
| ) |
Asserts that an array does not have a specified key.
| mixed | $key | |
| array | ArrayAccess | $array | |
| string | $message |
Definition at line 96 of file Functions.php.
| assertArraySubset | ( | $subset, | |
| $array, | |||
$strict = false , |
|||
$message = '' |
|||
| ) |
Asserts that an array has a specified subset.
| array | ArrayAccess | $subset | |
| array | ArrayAccess | $array | |
| boolean | $strict | Check for object identity |
| string | $message |
Definition at line 80 of file Functions.php.
| assertAttributeContains | ( | $needle, | |
| $haystackAttributeName, | |||
| $haystackClassOrObject, | |||
$message = '' , |
|||
$ignoreCase = false , |
|||
$checkForObjectIdentity = true , |
|||
$checkForNonObjectIdentity = false |
|||
| ) |
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains a needle.
| mixed | $needle | |
| string | $haystackAttributeName | |
| mixed | $haystackClassOrObject | |
| string | $message | |
| boolean | $ignoreCase | |
| boolean | $checkForObjectIdentity | |
| boolean | $checkForNonObjectIdentity |
Definition at line 117 of file Functions.php.
| assertAttributeContainsOnly | ( | $type, | |
| $haystackAttributeName, | |||
| $haystackClassOrObject, | |||
$isNativeType = null , |
|||
$message = '' |
|||
| ) |
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object contains only values of a given type.
| string | $type | |
| string | $haystackAttributeName | |
| mixed | $haystackClassOrObject | |
| boolean | $isNativeType | |
| string | $message |
Definition at line 136 of file Functions.php.
| assertAttributeCount | ( | $expectedCount, | |
| $haystackAttributeName, | |||
| $haystackClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
| integer | $expectedCount | |
| string | $haystackAttributeName | |
| mixed | $haystackClassOrObject | |
| string | $message |
Definition at line 154 of file Functions.php.
| assertAttributeEmpty | ( | $haystackAttributeName, | |
| $haystackClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts that a static attribute of a class or an attribute of an object is empty.
| string | $haystackAttributeName | |
| mixed | $haystackClassOrObject | |
| string | $message |
Definition at line 171 of file Functions.php.
| assertAttributeEquals | ( | $expected, | |
| $actualAttributeName, | |||
| $actualClassOrObject, | |||
$message = '' , |
|||
$delta = 0.0 , |
|||
$maxDepth = 10 , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Asserts that a variable is equal to an attribute of an object.
| mixed | $expected | |
| string | $actualAttributeName | |
| string | $actualClassOrObject | |
| string | $message | |
| float | $delta | |
| integer | $maxDepth | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 191 of file Functions.php.
| assertAttributeGreaterThan | ( | $expected, | |
| $actualAttributeName, | |||
| $actualClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts that an attribute is greater than another value.
| mixed | $expected | |
| string | $actualAttributeName | |
| string | $actualClassOrObject | |
| string | $message |
Definition at line 208 of file Functions.php.
| assertAttributeGreaterThanOrEqual | ( | $expected, | |
| $actualAttributeName, | |||
| $actualClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts that an attribute is greater than or equal to another value.
| mixed | $expected | |
| string | $actualAttributeName | |
| string | $actualClassOrObject | |
| string | $message |
Definition at line 225 of file Functions.php.
| assertAttributeInstanceOf | ( | $expected, | |
| $attributeName, | |||
| $classOrObject, | |||
$message = '' |
|||
| ) |
Asserts that an attribute is of a given type.
| string | $expected | |
| string | $attributeName | |
| mixed | $classOrObject | |
| string | $message |
Definition at line 242 of file Functions.php.
| assertAttributeInternalType | ( | $expected, | |
| $attributeName, | |||
| $classOrObject, | |||
$message = '' |
|||
| ) |
Asserts that an attribute is of a given type.
| string | $expected | |
| string | $attributeName | |
| mixed | $classOrObject | |
| string | $message |
Definition at line 259 of file Functions.php.
| assertAttributeLessThan | ( | $expected, | |
| $actualAttributeName, | |||
| $actualClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts that an attribute is smaller than another value.
| mixed | $expected | |
| string | $actualAttributeName | |
| string | $actualClassOrObject | |
| string | $message |
Definition at line 276 of file Functions.php.
| assertAttributeLessThanOrEqual | ( | $expected, | |
| $actualAttributeName, | |||
| $actualClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts that an attribute is smaller than or equal to another value.
| mixed | $expected | |
| string | $actualAttributeName | |
| string | $actualClassOrObject | |
| string | $message |
Definition at line 293 of file Functions.php.
| assertAttributeNotContains | ( | $needle, | |
| $haystackAttributeName, | |||
| $haystackClassOrObject, | |||
$message = '' , |
|||
$ignoreCase = false , |
|||
$checkForObjectIdentity = true , |
|||
$checkForNonObjectIdentity = false |
|||
| ) |
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain a needle.
| mixed | $needle | |
| string | $haystackAttributeName | |
| mixed | $haystackClassOrObject | |
| string | $message | |
| boolean | $ignoreCase | |
| boolean | $checkForObjectIdentity | |
| boolean | $checkForNonObjectIdentity |
Definition at line 314 of file Functions.php.
| assertAttributeNotContainsOnly | ( | $type, | |
| $haystackAttributeName, | |||
| $haystackClassOrObject, | |||
$isNativeType = null , |
|||
$message = '' |
|||
| ) |
Asserts that a haystack that is stored in a static attribute of a class or an attribute of an object does not contain only values of a given type.
| string | $type | |
| string | $haystackAttributeName | |
| mixed | $haystackClassOrObject | |
| boolean | $isNativeType | |
| string | $message |
Definition at line 334 of file Functions.php.
| assertAttributeNotCount | ( | $expectedCount, | |
| $haystackAttributeName, | |||
| $haystackClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts the number of elements of an array, Countable or Traversable that is stored in an attribute.
| integer | $expectedCount | |
| string | $haystackAttributeName | |
| mixed | $haystackClassOrObject | |
| string | $message |
Definition at line 352 of file Functions.php.
| assertAttributeNotEmpty | ( | $haystackAttributeName, | |
| $haystackClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts that a static attribute of a class or an attribute of an object is not empty.
| string | $haystackAttributeName | |
| mixed | $haystackClassOrObject | |
| string | $message |
Definition at line 369 of file Functions.php.
| assertAttributeNotEquals | ( | $expected, | |
| $actualAttributeName, | |||
| $actualClassOrObject, | |||
$message = '' , |
|||
$delta = 0.0 , |
|||
$maxDepth = 10 , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Asserts that a variable is not equal to an attribute of an object.
| mixed | $expected | |
| string | $actualAttributeName | |
| string | $actualClassOrObject | |
| string | $message | |
| float | $delta | |
| integer | $maxDepth | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 389 of file Functions.php.
| assertAttributeNotInstanceOf | ( | $expected, | |
| $attributeName, | |||
| $classOrObject, | |||
$message = '' |
|||
| ) |
Asserts that an attribute is of a given type.
| string | $expected | |
| string | $attributeName | |
| mixed | $classOrObject | |
| string | $message |
Definition at line 406 of file Functions.php.
| assertAttributeNotInternalType | ( | $expected, | |
| $attributeName, | |||
| $classOrObject, | |||
$message = '' |
|||
| ) |
Asserts that an attribute is of a given type.
| string | $expected | |
| string | $attributeName | |
| mixed | $classOrObject | |
| string | $message |
Definition at line 423 of file Functions.php.
| assertAttributeNotSame | ( | $expected, | |
| $actualAttributeName, | |||
| $actualClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts that a variable and an attribute of an object do not have the same type and value.
| mixed | $expected | |
| string | $actualAttributeName | |
| object | $actualClassOrObject | |
| string | $message |
Definition at line 440 of file Functions.php.
| assertAttributeSame | ( | $expected, | |
| $actualAttributeName, | |||
| $actualClassOrObject, | |||
$message = '' |
|||
| ) |
Asserts that a variable and an attribute of an object have the same type and value.
| mixed | $expected | |
| string | $actualAttributeName | |
| object | $actualClassOrObject | |
| string | $message |
Definition at line 457 of file Functions.php.
| assertClassHasAttribute | ( | $attributeName, | |
| $className, | |||
$message = '' |
|||
| ) |
Asserts that a class has a specified attribute.
| string | $attributeName | |
| string | $className | |
| string | $message |
Definition at line 473 of file Functions.php.
| assertClassHasStaticAttribute | ( | $attributeName, | |
| $className, | |||
$message = '' |
|||
| ) |
Asserts that a class has a specified static attribute.
| string | $attributeName | |
| string | $className | |
| string | $message |
Definition at line 489 of file Functions.php.
| assertClassNotHasAttribute | ( | $attributeName, | |
| $className, | |||
$message = '' |
|||
| ) |
Asserts that a class does not have a specified attribute.
| string | $attributeName | |
| string | $className | |
| string | $message |
Definition at line 505 of file Functions.php.
| assertClassNotHasStaticAttribute | ( | $attributeName, | |
| $className, | |||
$message = '' |
|||
| ) |
Asserts that a class does not have a specified static attribute.
| string | $attributeName | |
| string | $className | |
| string | $message |
Definition at line 521 of file Functions.php.
| assertContains | ( | $needle, | |
| $haystack, | |||
$message = '' , |
|||
$ignoreCase = false , |
|||
$checkForObjectIdentity = true , |
|||
$checkForNonObjectIdentity = false |
|||
| ) |
Asserts that a haystack contains a needle.
| mixed | $needle | |
| mixed | $haystack | |
| string | $message | |
| boolean | $ignoreCase | |
| boolean | $checkForObjectIdentity | |
| boolean | $checkForNonObjectIdentity |
Definition at line 540 of file Functions.php.
| assertContainsOnly | ( | $type, | |
| $haystack, | |||
$isNativeType = null , |
|||
$message = '' |
|||
| ) |
Asserts that a haystack contains only values of a given type.
| string | $type | |
| mixed | $haystack | |
| boolean | $isNativeType | |
| string | $message |
Definition at line 557 of file Functions.php.
| assertContainsOnlyInstancesOf | ( | $classname, | |
| $haystack, | |||
$message = '' |
|||
| ) |
Asserts that a haystack contains only instances of a given classname
| string | $classname | |
| array | Traversable | $haystack | |
| string | $message |
Definition at line 572 of file Functions.php.
| assertCount | ( | $expectedCount, | |
| $haystack, | |||
$message = '' |
|||
| ) |
Asserts the number of elements of an array, Countable or Traversable.
| integer | $expectedCount | |
| mixed | $haystack | |
| string | $message |
Definition at line 587 of file Functions.php.
| assertEmpty | ( | $actual, | |
$message = '' |
|||
| ) |
Asserts that a variable is empty.
| mixed | $actual | |
| string | $message |
| PHPUnit_Framework_AssertionFailedError |
Definition at line 602 of file Functions.php.
| assertEquals | ( | $expected, | |
| $actual, | |||
$message = '' , |
|||
$delta = 0.0 , |
|||
$maxDepth = 10 , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Asserts that two variables are equal.
| mixed | $expected | |
| mixed | $actual | |
| string | $message | |
| float | $delta | |
| integer | $maxDepth | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 639 of file Functions.php.
| assertEqualXMLStructure | ( | DOMElement | $expectedElement, |
| DOMElement | $actualElement, | ||
$checkAttributes = false , |
|||
$message = '' |
|||
| ) |
Asserts that a hierarchy of DOMElements matches.
| DOMElement | $expectedElement | |
| DOMElement | $actualElement | |
| boolean | $checkAttributes | |
| string | $message |
Definition at line 620 of file Functions.php.
| assertFalse | ( | $condition, | |
$message = '' |
|||
| ) |
Asserts that a condition is false.
| boolean | $condition | |
| string | $message |
| PHPUnit_Framework_AssertionFailedError |
Definition at line 669 of file Functions.php.
| assertFileEquals | ( | $expected, | |
| $actual, | |||
$message = '' , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Asserts that the contents of one file is equal to the contents of another file.
| string | $expected | |
| string | $actual | |
| string | $message | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 688 of file Functions.php.
| assertFileExists | ( | $filename, | |
$message = '' |
|||
| ) |
Asserts that a file exists.
| string | $filename | |
| string | $message |
Definition at line 703 of file Functions.php.
| assertFileNotEquals | ( | $expected, | |
| $actual, | |||
$message = '' , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Asserts that the contents of one file is not equal to the contents of another file.
| string | $expected | |
| string | $actual | |
| string | $message | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 722 of file Functions.php.
| assertFileNotExists | ( | $filename, | |
$message = '' |
|||
| ) |
Asserts that a file does not exist.
| string | $filename | |
| string | $message |
Definition at line 737 of file Functions.php.
| assertGreaterThan | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that a value is greater than another value.
| mixed | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 753 of file Functions.php.
| assertGreaterThanOrEqual | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that a value is greater than or equal to another value.
| mixed | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 769 of file Functions.php.
| assertInstanceOf | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that a variable is of a given type.
| string | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 785 of file Functions.php.
| assertInternalType | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that a variable is of a given type.
| string | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 801 of file Functions.php.
| assertJson | ( | $expectedJson, | |
$message = '' |
|||
| ) |
Asserts that a string is a valid JSON string.
| string | $filename | |
| string | $message |
Definition at line 816 of file Functions.php.
| assertJsonFileEqualsJsonFile | ( | $expectedFile, | |
| $actualFile, | |||
$message = '' |
|||
| ) |
Asserts that two JSON files are equal.
| string | $expectedFile | |
| string | $actualFile | |
| string | $message |
Definition at line 831 of file Functions.php.
| assertJsonFileNotEqualsJsonFile | ( | $expectedFile, | |
| $actualFile, | |||
$message = '' |
|||
| ) |
Asserts that two JSON files are not equal.
| string | $expectedFile | |
| string | $actualFile | |
| string | $message |
Definition at line 846 of file Functions.php.
| assertJsonStringEqualsJsonFile | ( | $expectedFile, | |
| $actualJson, | |||
$message = '' |
|||
| ) |
Asserts that the generated JSON encoded object and the content of the given file are equal.
| string | $expectedFile | |
| string | $actualJson | |
| string | $message |
Definition at line 861 of file Functions.php.
| assertJsonStringEqualsJsonString | ( | $expectedJson, | |
| $actualJson, | |||
$message = '' |
|||
| ) |
Asserts that two given JSON encoded objects or arrays are equal.
| string | $expectedJson | |
| string | $actualJson | |
| string | $message |
Definition at line 876 of file Functions.php.
| assertJsonStringNotEqualsJsonFile | ( | $expectedFile, | |
| $actualJson, | |||
$message = '' |
|||
| ) |
Asserts that the generated JSON encoded object and the content of the given file are not equal.
| string | $expectedFile | |
| string | $actualJson | |
| string | $message |
Definition at line 891 of file Functions.php.
| assertJsonStringNotEqualsJsonString | ( | $expectedJson, | |
| $actualJson, | |||
$message = '' |
|||
| ) |
Asserts that two given JSON encoded objects or arrays are not equal.
| string | $expectedJson | |
| string | $actualJson | |
| string | $message |
Definition at line 906 of file Functions.php.
| assertLessThan | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that a value is smaller than another value.
| mixed | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 922 of file Functions.php.
| assertLessThanOrEqual | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that a value is smaller than or equal to another value.
| mixed | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 938 of file Functions.php.
| assertNotContains | ( | $needle, | |
| $haystack, | |||
$message = '' , |
|||
$ignoreCase = false , |
|||
$checkForObjectIdentity = true , |
|||
$checkForNonObjectIdentity = false |
|||
| ) |
Asserts that a haystack does not contain a needle.
| mixed | $needle | |
| mixed | $haystack | |
| string | $message | |
| boolean | $ignoreCase | |
| boolean | $checkForObjectIdentity | |
| boolean | $checkForNonObjectIdentity |
Definition at line 957 of file Functions.php.
| assertNotContainsOnly | ( | $type, | |
| $haystack, | |||
$isNativeType = null , |
|||
$message = '' |
|||
| ) |
Asserts that a haystack does not contain only values of a given type.
| string | $type | |
| mixed | $haystack | |
| boolean | $isNativeType | |
| string | $message |
Definition at line 974 of file Functions.php.
| assertNotCount | ( | $expectedCount, | |
| $haystack, | |||
$message = '' |
|||
| ) |
Asserts the number of elements of an array, Countable or Traversable.
| integer | $expectedCount | |
| mixed | $haystack | |
| string | $message |
Definition at line 989 of file Functions.php.
| assertNotEmpty | ( | $actual, | |
$message = '' |
|||
| ) |
Asserts that a variable is not empty.
| mixed | $actual | |
| string | $message |
| PHPUnit_Framework_AssertionFailedError |
Definition at line 1004 of file Functions.php.
| assertNotEquals | ( | $expected, | |
| $actual, | |||
$message = '' , |
|||
$delta = 0.0 , |
|||
$maxDepth = 10 , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Asserts that two variables are not equal.
| mixed | $expected | |
| mixed | $actual | |
| string | $message | |
| float | $delta | |
| integer | $maxDepth | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 1024 of file Functions.php.
| assertNotFalse | ( | $condition, | |
$message = '' |
|||
| ) |
Asserts that a condition is not false.
| boolean | $condition | |
| string | $message |
| PHPUnit_Framework_AssertionFailedError |
Definition at line 1071 of file Functions.php.
| assertNotInstanceOf | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that a variable is not of a given type.
| string | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 1040 of file Functions.php.
| assertNotInternalType | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that a variable is not of a given type.
| string | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 1056 of file Functions.php.
| assertNotNull | ( | $actual, | |
$message = '' |
|||
| ) |
Asserts that a variable is not null.
| mixed | $actual | |
| string | $message |
Definition at line 1085 of file Functions.php.
| assertNotRegExp | ( | $pattern, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string does not match a given regular expression.
| string | $pattern | |
| string | $string | |
| string | $message |
Definition at line 1101 of file Functions.php.
| assertNotSame | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that two variables do not have the same type and value. Used on objects, it asserts that two variables do not reference the same object.
| mixed | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 1118 of file Functions.php.
| assertNotSameSize | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Assert that the size of two arrays (or Countable
or Traversable
objects) is not the same.
| array | Countable | Traversable | $expected | |
| array | Countable | Traversable | $actual | |
| string | $message |
Definition at line 1134 of file Functions.php.
| assertNotTag | ( | $matcher, | |
| $actual, | |||
$message = '' , |
|||
$isHtml = true |
|||
| ) |
This assertion is the exact opposite of assertTag().
Rather than asserting that $matcher results in a match, it asserts that $matcher does not match.
| array | $matcher | |
| string | $actual | |
| string | $message | |
| boolean | $isHtml |
Definition at line 1156 of file Functions.php.
| assertNotTrue | ( | $condition, | |
$message = '' |
|||
| ) |
Asserts that a condition is not true.
| boolean | $condition | |
| string | $message |
| PHPUnit_Framework_AssertionFailedError |
Definition at line 654 of file Functions.php.
| assertNull | ( | $actual, | |
$message = '' |
|||
| ) |
Asserts that a variable is null.
| mixed | $actual | |
| string | $message |
Definition at line 1170 of file Functions.php.
| assertObjectHasAttribute | ( | $attributeName, | |
| $object, | |||
$message = '' |
|||
| ) |
Asserts that an object has a specified attribute.
| string | $attributeName | |
| object | $object | |
| string | $message |
Definition at line 1186 of file Functions.php.
| assertObjectNotHasAttribute | ( | $attributeName, | |
| $object, | |||
$message = '' |
|||
| ) |
Asserts that an object does not have a specified attribute.
| string | $attributeName | |
| object | $object | |
| string | $message |
Definition at line 1202 of file Functions.php.
| assertRegExp | ( | $pattern, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string matches a given regular expression.
| string | $pattern | |
| string | $string | |
| string | $message |
Definition at line 1217 of file Functions.php.
| assertSame | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Asserts that two variables have the same type and value. Used on objects, it asserts that two variables reference the same object.
| mixed | $expected | |
| mixed | $actual | |
| string | $message |
Definition at line 1234 of file Functions.php.
| assertSameSize | ( | $expected, | |
| $actual, | |||
$message = '' |
|||
| ) |
Assert that the size of two arrays (or Countable
or Traversable
objects) is the same.
| array | Countable | Traversable | $expected | |
| array | Countable | Traversable | $actual | |
| string | $message |
Definition at line 1250 of file Functions.php.
| assertSelectCount | ( | $selector, | |
| $count, | |||
| $actual, | |||
$message = '' , |
|||
$isHtml = true |
|||
| ) |
Assert the presence, absence, or count of elements in a document matching the CSS $selector, regardless of the contents of those elements.
The first argument, $selector, is the CSS selector used to match the elements in the $actual document.
The second argument, $count, can be either boolean or numeric. When boolean, it asserts for presence of elements matching the selector (true) or absence of elements (false). When numeric, it asserts the count of elements.
assertSelectCount("#binder", true, $xml); // any? assertSelectCount(".binder", 3, $xml); // exactly 3?
| array | $selector | |
| integer | $count | |
| mixed | $actual | |
| string | $message | |
| boolean | $isHtml |
Definition at line 1282 of file Functions.php.
| assertSelectEquals | ( | $selector, | |
| $content, | |||
| $count, | |||
| $actual, | |||
$message = '' , |
|||
$isHtml = true |
|||
| ) |
assertSelectEquals("#binder .name", "Chuck", true, $xml); // any? assertSelectEquals("#binder .name", "Chuck", false, $xml); // none?
| array | $selector | |
| string | $content | |
| integer | $count | |
| mixed | $actual | |
| string | $message | |
| boolean | $isHtml |
Definition at line 1304 of file Functions.php.
| assertSelectRegExp | ( | $selector, | |
| $pattern, | |||
| $count, | |||
| $actual, | |||
$message = '' , |
|||
$isHtml = true |
|||
| ) |
assertSelectRegExp("#binder .name", "/Mike|Derek/", true, $xml); // any? assertSelectRegExp("#binder .name", "/Mike|Derek/", 3, $xml);// 3?
| array | $selector | |
| string | $pattern | |
| integer | $count | |
| mixed | $actual | |
| string | $message | |
| boolean | $isHtml |
Definition at line 1326 of file Functions.php.
| assertStringEndsNotWith | ( | $suffix, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string ends not with a given prefix.
| string | $suffix | |
| string | $string | |
| string | $message |
Definition at line 1342 of file Functions.php.
| assertStringEndsWith | ( | $suffix, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string ends with a given prefix.
| string | $suffix | |
| string | $string | |
| string | $message |
Definition at line 1358 of file Functions.php.
| assertStringEqualsFile | ( | $expectedFile, | |
| $actualString, | |||
$message = '' , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Asserts that the contents of a string is equal to the contents of a file.
| string | $expectedFile | |
| string | $actualString | |
| string | $message | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 1377 of file Functions.php.
| assertStringMatchesFormat | ( | $format, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string matches a given format string.
| string | $format | |
| string | $string | |
| string | $message |
Definition at line 1393 of file Functions.php.
| assertStringMatchesFormatFile | ( | $formatFile, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string matches a given format file.
| string | $formatFile | |
| string | $string | |
| string | $message |
Definition at line 1409 of file Functions.php.
| assertStringNotEqualsFile | ( | $expectedFile, | |
| $actualString, | |||
$message = '' , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Asserts that the contents of a string is not equal to the contents of a file.
| string | $expectedFile | |
| string | $actualString | |
| string | $message | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 1428 of file Functions.php.
| assertStringNotMatchesFormat | ( | $format, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string does not match a given format string.
| string | $format | |
| string | $string | |
| string | $message |
Definition at line 1444 of file Functions.php.
| assertStringNotMatchesFormatFile | ( | $formatFile, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string does not match a given format string.
| string | $formatFile | |
| string | $string | |
| string | $message |
Definition at line 1460 of file Functions.php.
| assertStringStartsNotWith | ( | $prefix, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string starts not with a given prefix.
| string | $prefix | |
| string | $string | |
| string | $message |
Definition at line 1476 of file Functions.php.
| assertStringStartsWith | ( | $prefix, | |
| $string, | |||
$message = '' |
|||
| ) |
Asserts that a string starts with a given prefix.
| string | $prefix | |
| string | $string | |
| string | $message |
Definition at line 1492 of file Functions.php.
| assertTag | ( | $matcher, | |
| $actual, | |||
$message = '' , |
|||
$isHtml = true |
|||
| ) |
Evaluate an HTML or XML string and assert its structure and/or contents.
The first argument ($matcher) is an associative array that specifies the match criteria for the assertion:
id
: the node with the given id attribute must match the corresponding value.tag
: the node type must match the corresponding value.attributes
: a hash. The node's attributes must match the corresponding values in the hash.content
: The text content must match the given value.parent
: a hash. The node's parent must match the corresponding hash.child
: a hash. At least one of the node's immediate children must meet the criteria described by the hash.ancestor
: a hash. At least one of the node's ancestors must meet the criteria described by the hash.descendant
: a hash. At least one of the node's descendants must meet the criteria described by the hash.children
: a hash, for counting children of a node. Accepts the keys:count
: a number which must equal the number of children that match
less_than
: the number of matching children must be greater than this numbergreater_than
: the number of matching children must be less than this numberonly
: another hash consisting of the keys to use to match on the children, and only matching children will be counted
// Matcher that asserts that there is an element with an id="my_id". $matcher = array('id' => 'my_id');
// Matcher that asserts that there is a "span" tag. $matcher = array('tag' => 'span');
// Matcher that asserts that there is a "span" tag with the content // "Hello World". $matcher = array('tag' => 'span', 'content' => 'Hello World');
// Matcher that asserts that there is a "span" tag with content matching // the regular expression pattern. $matcher = array('tag' => 'span', 'content' => 'regexp:/Try P(HP|ython)/');
// Matcher that asserts that there is a "span" with an "list" class // attribute. $matcher = array( 'tag'=> 'span', 'attributes' => array('class' => 'list') );
// Matcher that asserts that there is a "span" inside of a "div". $matcher = array( 'tag'=> 'span', 'parent' => array('tag' => 'div') );
// Matcher that asserts that there is a "span" somewhere inside a // "table". $matcher = array( 'tag' => 'span', 'ancestor' => array('tag' => 'table') );
// Matcher that asserts that there is a "span" with at least one "em" // child. $matcher = array( 'tag' => 'span', 'child' => array('tag' => 'em') );
// Matcher that asserts that there is a "span" containing a (possibly // nested) "strong" tag. $matcher = array( 'tag'=> 'span', 'descendant' => array('tag' => 'strong') );
// Matcher that asserts that there is a "span" containing 5-10 "em" tags // as immediate children. $matcher = array( 'tag' => 'span', 'children' => array( 'less_than'=> 11, 'greater_than' => 4, 'only' => array('tag' => 'em') ) );
// Matcher that asserts that there is a "div", with an "ul" ancestor and // a "li" parent (with class="enum"), and containing a "span" descendant // that contains an element with id="my_test" and the text "Hello World". $matcher = array( 'tag'=> 'div', 'ancestor' => array('tag' => 'ul'), 'parent' => array( 'tag'=> 'li', 'attributes' => array('class' => 'enum') ), 'descendant' => array( 'tag' => 'span', 'child' => array( 'id' => 'my_test', 'content' => 'Hello World' ) ) );
// Use assertTag() to apply a $matcher to a piece of $html. $this->assertTag($matcher, $html);
// Use assertTag() to apply a $matcher to a piece of $xml. $this->assertTag($matcher, $xml, '', false);
The second argument ($actual) is a string containing either HTML or XML text to be tested.
The third argument ($message) is an optional message that will be used if the assertion fails.
The fourth argument ($html) is an optional flag specifying whether to load the $actual string into a DOMDocument using the HTML or XML load strategy. It is true by default, which assumes the HTML load strategy. In many cases, this will be acceptable for XML as well.
| array | $matcher | |
| string | $actual | |
| string | $message | |
| boolean | $isHtml |
Definition at line 1637 of file Functions.php.
| assertThat | ( | $value, | |
| PHPUnit_Framework_Constraint | $constraint, | ||
$message = '' |
|||
| ) |
Evaluates a PHPUnit_Framework_Constraint matcher object.
| mixed$value | ||
| PHPUnit_Framework_Constraint | $constraint | |
| string | $message |
Definition at line 1653 of file Functions.php.
| assertTrue | ( | $condition, | |
$message = '' |
|||
| ) |
Asserts that a condition is true.
| boolean | $condition | |
| string | $message |
| PHPUnit_Framework_AssertionFailedError |
Definition at line 1668 of file Functions.php.
| assertXmlFileEqualsXmlFile | ( | $expectedFile, | |
| $actualFile, | |||
$message = '' |
|||
| ) |
Asserts that two XML files are equal.
| string | $expectedFile | |
| string | $actualFile | |
| string | $message |
Definition at line 1684 of file Functions.php.
| assertXmlFileNotEqualsXmlFile | ( | $expectedFile, | |
| $actualFile, | |||
$message = '' |
|||
| ) |
Asserts that two XML files are not equal.
| string | $expectedFile | |
| string | $actualFile | |
| string | $message |
Definition at line 1700 of file Functions.php.
| assertXmlStringEqualsXmlFile | ( | $expectedFile, | |
| $actualXml, | |||
$message = '' |
|||
| ) |
Asserts that two XML documents are equal.
| string | $expectedFile | |
| string | $actualXml | |
| string | $message |
Definition at line 1716 of file Functions.php.
| assertXmlStringEqualsXmlString | ( | $expectedXml, | |
| $actualXml, | |||
$message = '' |
|||
| ) |
Asserts that two XML documents are equal.
| string | $expectedXml | |
| string | $actualXml | |
| string | $message |
Definition at line 1732 of file Functions.php.
| assertXmlStringNotEqualsXmlFile | ( | $expectedFile, | |
| $actualXml, | |||
$message = '' |
|||
| ) |
Asserts that two XML documents are not equal.
| string | $expectedFile | |
| string | $actualXml | |
| string | $message |
Definition at line 1748 of file Functions.php.
| assertXmlStringNotEqualsXmlString | ( | $expectedXml, | |
| $actualXml, | |||
$message = '' |
|||
| ) |
Asserts that two XML documents are not equal.
| string | $expectedXml | |
| string | $actualXml | |
| string | $message |
Definition at line 1764 of file Functions.php.
| at | ( | $index | ) |
Returns a matcher that matches when the method it is evaluated for is invoked at the given $index.
| integer | $index |
Definition at line 1780 of file Functions.php.
| atLeastOnce | ( | ) |
Returns a matcher that matches when the method it is evaluated for is executed at least once.
Definition at line 1795 of file Functions.php.
| attribute | ( | PHPUnit_Framework_Constraint | $constraint, |
| $attributeName | |||
| ) |
Returns a PHPUnit_Framework_Constraint_Attribute matcher object.
| PHPUnit_Framework_Constraint | $constraint | |
| string | $attributeName |
Definition at line 1811 of file Functions.php.
| attributeEqualTo | ( | $attributeName, | |
| $value, | |||
$delta = 0.0 , |
|||
$maxDepth = 10 , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Returns a PHPUnit_Framework_Constraint_IsEqual matcher object that is wrapped in a PHPUnit_Framework_Constraint_Attribute matcher object.
| string | $attributeName | |
| mixed | $value | |
| float | $delta | |
| integer | $maxDepth | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 1833 of file Functions.php.
| callback | ( | $callback | ) |
Returns a PHPUnit_Framework_Constraint_Callback matcher object.
| callable | $callback |
Definition at line 1847 of file Functions.php.
| classHasAttribute | ( | $attributeName | ) |
Returns a PHPUnit_Framework_Constraint_ClassHasAttribute matcher object.
| string | $attributeName |
Definition at line 1862 of file Functions.php.
| classHasStaticAttribute | ( | $attributeName | ) |
Returns a PHPUnit_Framework_Constraint_ClassHasStaticAttribute matcher object.
| string | $attributeName |
Definition at line 1878 of file Functions.php.
| contains | ( | $value, | |
$checkForObjectIdentity = true , |
|||
$checkForNonObjectIdentity = false |
|||
| ) |
Returns a PHPUnit_Framework_Constraint_TraversableContains matcher object.
| mixed | $value | |
| boolean | $checkForObjectIdentity | |
| boolean | $checkForNonObjectIdentity |
Definition at line 1896 of file Functions.php.
| containsOnly | ( | $type | ) |
Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
| string | $type |
Definition at line 1912 of file Functions.php.
| containsOnlyInstancesOf | ( | $classname | ) |
Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
| string | $classname |
Definition at line 1927 of file Functions.php.
| equalTo | ( | $value, | |
$delta = 0.0 , |
|||
$maxDepth = 10 , |
|||
$canonicalize = false , |
|||
$ignoreCase = false |
|||
| ) |
Returns a PHPUnit_Framework_Constraint_IsEqual matcher object.
| mixed | $value | |
| float | $delta | |
| integer | $maxDepth | |
| boolean | $canonicalize | |
| boolean | $ignoreCase |
Definition at line 1946 of file Functions.php.
| exactly | ( | $count | ) |
Returns a matcher that matches when the method it is evaluated for is executed exactly $count times.
| integer | $count |
Definition at line 1962 of file Functions.php.
| fileExists | ( | ) |
Returns a PHPUnit_Framework_Constraint_FileExists matcher object.
Definition at line 1976 of file Functions.php.
| greaterThan | ( | $value | ) |
Returns a PHPUnit_Framework_Constraint_GreaterThan matcher object.
| mixed | $value |
Definition at line 1991 of file Functions.php.
| greaterThanOrEqual | ( | $value | ) |
Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_GreaterThan matcher object.
| mixed | $value |
Definition at line 2008 of file Functions.php.
| identicalTo | ( | $value | ) |
Returns a PHPUnit_Framework_Constraint_IsIdentical matcher object.
| mixed | $value |
Definition at line 2023 of file Functions.php.
| isEmpty | ( | ) |
Returns a PHPUnit_Framework_Constraint_IsEmpty matcher object.
Definition at line 2037 of file Functions.php.
| isFalse | ( | ) |
Returns a PHPUnit_Framework_Constraint_IsFalse matcher object.
Definition at line 2051 of file Functions.php.
| isInstanceOf | ( | $className | ) |
Returns a PHPUnit_Framework_Constraint_IsInstanceOf matcher object.
| string | $className |
Definition at line 2066 of file Functions.php.
| isJson | ( | ) |
Returns a PHPUnit_Framework_Constraint_IsJson matcher object.
Definition at line 2080 of file Functions.php.
| isNull | ( | ) |
Returns a PHPUnit_Framework_Constraint_IsNull matcher object.
Definition at line 2094 of file Functions.php.
| isTrue | ( | ) |
Returns a PHPUnit_Framework_Constraint_IsTrue matcher object.
Definition at line 2108 of file Functions.php.
| isType | ( | $type | ) |
Returns a PHPUnit_Framework_Constraint_IsType matcher object.
| string | $type |
Definition at line 2123 of file Functions.php.
| lessThan | ( | $value | ) |
Returns a PHPUnit_Framework_Constraint_LessThan matcher object.
| mixed | $value |
Definition at line 2138 of file Functions.php.
| lessThanOrEqual | ( | $value | ) |
Returns a PHPUnit_Framework_Constraint_Or matcher object that wraps a PHPUnit_Framework_Constraint_IsEqual and a PHPUnit_Framework_Constraint_LessThan matcher object.
| mixed | $value |
Definition at line 2155 of file Functions.php.
| logicalAnd | ( | ) |
Returns a PHPUnit_Framework_Constraint_And matcher object.
Definition at line 2169 of file Functions.php.
| logicalNot | ( | PHPUnit_Framework_Constraint | $constraint | ) |
Returns a PHPUnit_Framework_Constraint_Not matcher object.
| PHPUnit_Framework_Constraint | $constraint |
Definition at line 2184 of file Functions.php.
| logicalOr | ( | ) |
Returns a PHPUnit_Framework_Constraint_Or matcher object.
Definition at line 2198 of file Functions.php.
| logicalXor | ( | ) |
Returns a PHPUnit_Framework_Constraint_Xor matcher object.
Definition at line 2212 of file Functions.php.
| matches | ( | $string | ) |
Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.
| string | $string |
Definition at line 2227 of file Functions.php.
| matchesRegularExpression | ( | $pattern | ) |
Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
| string | $pattern |
Definition at line 2242 of file Functions.php.
| never | ( | ) |
Returns a matcher that matches when the method it is evaluated for is never executed.
Definition at line 2257 of file Functions.php.
| objectHasAttribute | ( | $attributeName | ) |
Returns a PHPUnit_Framework_Constraint_ObjectHasAttribute matcher object.
| string | $attributeName |
Definition at line 2272 of file Functions.php.
| once | ( | ) |
Returns a matcher that matches when the method it is evaluated for is executed exactly once.
Definition at line 2300 of file Functions.php.
| onConsecutiveCalls | ( | ) |
| mixed | $value,... |
Definition at line 2285 of file Functions.php.
| returnArgument | ( | $argumentIndex | ) |
| integer | $argumentIndex |
Definition at line 2315 of file Functions.php.
| returnCallback | ( | $callback | ) |
| mixed | $callback |
Definition at line 2330 of file Functions.php.
| returnSelf | ( | ) |
Returns the current object.
This method is useful when mocking a fluent interface.
Definition at line 2346 of file Functions.php.
| returnValue | ( | $value | ) |
| mixed | $value |
Definition at line 2361 of file Functions.php.
| returnValueMap | ( | array | $valueMap | ) |
| array | $valueMap |
Definition at line 2376 of file Functions.php.
| stringContains | ( | $string, | |
$case = true |
|||
| ) |
Returns a PHPUnit_Framework_Constraint_StringContains matcher object.
| string | $string | |
| boolean | $case |
Definition at line 2392 of file Functions.php.
| stringEndsWith | ( | $suffix | ) |
Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.
| mixed | $suffix |
Definition at line 2407 of file Functions.php.
| stringStartsWith | ( | $prefix | ) |
Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.
| mixed | $prefix |
Definition at line 2422 of file Functions.php.
| throwException | ( | Exception | $exception | ) |
| Exception | $exception |
Definition at line 2437 of file Functions.php.


Meeting List as of 3/13/2019
|
Day
arrow_drop_down
|
Time |
Type
arrow_drop_down
|
Info
arrow_drop_down
|


Hi there,
I’m Marcus. I’ve spent most part of my adult years traveling and working as an IT-consult.
Born and raised in a small Swedish town, live now days in Munich. Changing career to be part of this amazing community.
Here on my blog I share my experience and insights from the journey of becoming a better developer.


I'm excited to see Kevin's work on template plugins, and that the TurboGears plugin system is fully extracted into a generic plugin for templates. I think this will be an easy ad hoc standard to start supporting elsewhere. It should encompass all the "normal" templating languages that just take a bunch of variables (something like meld3 probably won't work with this, though). I doubt code can be very well neutral with respect to the template language it is feeding. Kid and Cheetah can have arbitrary Python to munge the data in them. ZPT can have Python expressions, but not statements or functions. Django and ClearSilver need data structures that require very little processing in the template, as they don't have generic expressions at all. So you can't exactly be neutral. But still this is an important step forward.
One of the big issues in making little apps is how to make them fit into a larger site. It's mostly fine if the internals of the pages are written by different templating languages. Standard conventions for CSS classes would be a tremendous boon, but a little sloppiness isn't that big a deal. But you still need an application that is well-wrapped in some template for your site. Each application may have a way to give a site template, but if they are all using different templating languages that means a lot of duplication. (And even if they are using the same templating language, some standard way to override templates is still needed, or else you have a mess of things to manage).
So... what to do...
I like HTTP, so I naturally go that direction for interoperability. Server-side includes provide a simple, relatively language-neutral way to handle templating. But they work textually, not based on markup, and there's lots of issues with the typical implementations. XSL applies well here, of course. I haven't used XSL for years, but my brief experiments with it left me so disheartened I simply can't imagine it being useful for templating.
But more primitive templating is quite possible. One of the interesting ideas I've seen (and I'm sure there's others -- if you have one, then do comment) is HTML overlays. This can be implemented on the client-side in Javascript, but of course it could be implemented as a filter easily enough as well.
Then applications would each take a site_template configuration parameter, and maybe a Javascript parameter if client-side overlays were going to be used (presumably any filter would simply notice the overlay and implement it). Then the application would put this in the head:
<link rel="overlay" type="text/x-im-not-sure" href="/configured-template-location" />
Actually I now think the type should be configurable too, allowing for other kinds of templates than just this implementation of overlays. Also overlays don't seem to have a way to pull in content, they only allow content to be pushed into them.
Obviously the Javascript can be applied to any site. A server-side filter could also be easily(ish) written in C as an Apache filter, or as libraries in a variety of frameworks and languages.
FYI. In respect of filters in Apache, there is an intention of making some improvements to mod_python's support of filters and also its interaction with mod_include (SSI) filter module.
In terms of server side includes, the intention is to allow Python code to be usable within a file passed through mod_include, much like how it can already be done with mod_perl. This would be more efficient than the current need to use "include virtual".
One could also explore whether a means could be provided of allowing whole new element tags to be defined where the callouts are implemented and processed within the context of mod_python.
From what I have seen at the moment, people using mod_python don't tend to use filters much at all. This is possibly partly because of mod_python's inability to dynamically register filters, or more likely because there isn't a good appreciation of how Apache filters could be used. But then, at the moment, some parts of mod_python don't even play nice with predefined filters like CONTENT_LENGTH.
http://issues.apache.org/jira/browse/MODPYTHON-107
Hi Ian,
Long time reader, first time poster (now I feel like I'm on radio call in show).
I agree that app developer can't really remain neutral as far as templating engines are concerned. However, toolkits and frameworks, like CherryPy and TurboGears, that want to intentionally remain neutral (or at least flexible) as far as templating languages go really stand to benefit from this plugin system. Plus, since there are so many "normal" templating languages, it is handy to have a common means of getting at their functionality. Since we've got a bazillion template languages in Python, we might as well put them to good use ;-)
Christian
Actually, I use XSLT for all my templating needs, and I love it. It's a standard, and it makes sure that there's also nice XML which I can use for other purposed or interesting REST-style interaction, and it forces me to keep the code and the templates very strictly separated.
See also http://manuzhai.nl/weblog/comments/the-power-of-xslt/
I'll add another vote for using xslt for server-side and client-side templating.
Though I recognize that it's not for everyone. To that end, I've been working on generating xsl templates using a ZPT like syntax.
I'll say "ZPT like" because there are some extensions that aren't available in ZPT.
I don't have anything to release yet, but it's an extension of the bitflux stuff
http://wiki.bitflux.org/Templates_TAL_Example
I have metal working, but it's a two step process to "compile" a set of .zpt files into an .xsl file.
The resulting .xsl file is then used on the server-side to render the html, or sent to the client so it can do it's own rendering. I use a Paste filter to generate .xsl files in-the-fly and cache them. And, another Paste filter to sniff client capabilities and determine if .xsl should be sent back to the client, or wether transformation should be done on the server.
I look at client-side XSLT rendering as very important. In a way, it can be a form of edge-side includes (ESI) http://www.esi.org/
This is done through the use of the document() xslt function on the client. For example, this fragment uses a relative path to retrieve an XML document from the server and set it's root element in a variable:

Regarding context.. XSL expects XML as input, so the context is passed to the template as XML. So, it must be pre-rendered that way by the web request handler. The downside of course is that the templating engine cannot call python objects for dynamic rendering. The upside to that is that anything rendered dynamically this way probably should be exposed using a REST style interface. Then that data can be retrieved by the client directly, not just rendered on the server (as the above example shows).
Here's an example fragment of a tal:repeat traversing the first 24 elements of an invoice:

 position()]" tal:sort="PICSEQ ascending" tal:attributes="class concat('R',position() mod 2)">
BO

And here's the example fragment of resulting .xsl (copied out of IE so not well formatted):
<xslout:for-each select="$order/OE0500[24 > position()]"> <xslout:sort select="PICSEQ" order="ascending" /> <xslout:variable name="li" select="." />
 <xslout:attribute name="class"> <xslout:value-of select="concat('R',position() mod 2)" /> </xslout:attribute>  <xslout:value-of select="$li/ITEM" /> 	  <xslout:value-of select="$li/LINENUM" /> 	  <xslout:value-of select="$li/DESC" /> 	  <xslout:value-of select="$li/QTYORDERED" />
BO

 </xslout:for-each>The 'li' placeholder variable is not necessary, but that's what the bitflux guys came up with, so I stuck with it.
This thing diverges from ZPT in a number of ways (like a sort option for tal:repeat).
Also, there's a way of creating "macros" that can receive arguments. That is, something like metal:define, but it doesn't repeat the macro contents in the output file. It's more for defining xsl templates.
So, I guess it's a frankenstein templating language. I still need to integrate with existing .xsl files (via xsl:includes or imports), but I like the ease of ZPT.
I should spend more time working on it so I can get some feedback. It's definately a niche thing.
However I still think for my clients, XSLT and XML is just too handy to pass up.
I can take "client-side" .xsl scraps and re-use them in Apache FOP.. its great.
# Brad Clements


Getting started with the Standard dialects in 5 minutes
This guide will take you through some of the most important concepts you need to know to understand a Thymeleaf template written in the Standard or SpringStandard dialects. It is not a substitute for the tutorials – which are much more comprehensive – but it will teach you enough for getting the feel of the technology.
Standard dialects?
Thymeleaf is very, very extensible, and it allows you to define your own sets of template attributes (or even tags) with the names you want, evaluating the expressions you want in the syntax you want and applying the logic you want. It’s more like a template engine framework.
Out of the box, nevertheless, it comes with something called the standard dialects (named Standard and SpringStandard) that define a set of features which should be more than enough for most scenarios. You can identify when these standard dialects are being used in a template because it will contain attributes starting with the th
prefix, like
.
Note that the Standard and the SpringStandard dialects are almost identical, except that SpringStandard includes specific features for integrating into Spring MVC applications (like, for example, using Spring Expression Language for expression evaluation instead of OGNL).
Also note we usually refer to features in the Standard dialects when we talk about Thymeleaf without being more specific.
Standard Expression syntax
Most Thymeleaf attributes allow their values to be set as or containing expressions, which we will call Standard Expressions because of the dialects they are used in. These can be of four types:
- Variable expressions
- Selection or asterisk expressions
- Text externalization or internationalization expressions
- URL expressions
Variable expressions
Variable expressions are OGNL expressions —or Spring EL if you’re using SpringStandard— executed on the map of context variables —also called model attributes in Spring jargon. They look like this:
${session.user.name}
And you will find them as attribute values or as a part of them, depending on the attribute:

Selection (asterisk) expressions
Selection expressions are just like variable expressions, except they will be executed on a previously selected object instead of the whole context variables map. They look like this:
*{customer.name}
The object they act on is specified by a th:object
attribute:

...
...
...

Text externalization expressions
Text externalization (often called internationalization) allows us to retrieve locale-specific messages from external sources (.properties
files), referencing them by a key and (optionally) applying a set of parameters.
#{main.title}
#{message.entrycreated(${entryId})}
You can find them in templates like:

...
...
...
...

URL expressions
URL expressions are meant to add useful context and session info to the URLs, a process usually called URL rewriting.
@{/order/list}
URLs can also take parameters:
@{/order/details(id=${orderId})}
And be relative (in which case no application context will be added to the URL):
@{../documents/report}
Let’s see these expressions in context:
<form th:action="@{/createOrder}">

From this last example, see how Thymleaf allows us to set an href
value for static prototyping, letting our templates link to each other nicely when directly open in a browser, and at the same time with th:href
we can specify the URL that will be set as href
when Thymeleaf really executes the template.
Literals and operations
A good bunch of types of literals and operations are available:
- Literals:
- Text literals:
'one text'
,'Another one!'
,… - Number literals:
0
,34
,3.0
,12.3
,… - Boolean literals:
true
,false
- Null literal:
null
- Literal tokens:
one
,sometext
,main
,…
- Text literals:
- Text operations:
- String concatenation:
+
- Literal substitutions:
|The name is ${name}|
- String concatenation:
- Arithmetic operations:
- Binary operators:
+
,-
,*
,/
,%
- Minus sign (unary operator):
-
- Binary operators:
- Boolean operations:
- Binary operators:
and
,or
- Boolean negation (unary operator):
!
,not
- Binary operators:
- Comparisons and equality:
- Comparators:
>
,<
,>=
,<=
(gt
,lt
,ge
,le
) - Equality operators:
==
,!=
(eq
,ne
)
- Comparators:
- Conditional operators:
- If-then:
(if) ? (then)
- If-then-else:
(if) ? (then) : (else)
- Default:
(value) ?: (defaultvalue)
- If-then:
Expression preprocessing
One last thing to know about expressions is there is something called expression preprocessing, specified between __
, which looks like this:
#{selection.__${sel.code}__}
What we are seeing there is a variable expression (${sel.code}
) that will be executed first and which result – let’s say, “ALL
” – will be used as a part of the real expression to be executed afterwards, in this case an internationalization one (which would look for the message with key selection.ALL
).
Some basic attributes
Let’s have a look at a couple of the most basic attributes in the Standard Dialect. Starting with th:text
, which just replaces the body of a tag (notice again the prototyping abilities here):

Welcome everyone!

Now th:each
, which repeats the element it’s in as many times as specified by the array or list returned by its expression, creating also an inner variable for the iteration element with a syntax equivalent to that of a Java foreach expression:

En las Orillas del Sar

Lastly, Thymeleaf includes lots of th
attributes for specific XHTML and HTML5 attributes which just evaluate their expressions and set the value of these attributes to their result. Their names mimic those of the attributes which values they set:
<form th:action="@{/createOrder}">
<input type="button" th:value="#{form.submit}" />

Want to know more?
Then the “Using Thymeleaf” tutorial is what you’re looking for!


OVMS V3 is based on metrics. Metrics can be single numerical or textual values or complex values
like sets and arrays. The web framework keeps all metrics in a global object, which can be read
simply by e.g. metrics["v.b.soc"]
.
Metrics updates (as well as other updates) are sent to all DOM elements having the
receiver
class. To hook into these updates, simply add an event listener for
msg:metrics
. Listening to the event is not necessary if all you need is some metrics
display. This is covered by the metric
class family as shown here.
All elements of class metric
in a receiver
are checked for the
data-metric
attribute. If no specific metric class is given, the metric value
is simply set as the element text: ?
is your current network provider.
number
& text
displays get the metric value set in their child of
class value
. They may additionally have labels and units. data-prec
can
be used on number
to set the precision, data-scale
to scale the raw
values by a factor. They have fixed min widths and float by default, so you can simply put
multiple displays into the same container:
Bootstrap progress
bars can be used as lightweight graphical indicators.
Labels and units are available, also data-prec
and data-scale
.
Again, all you need is a bit of markup:
The OVMS web framework has builtin support for the highly versatile Highcharts library
with loads of chart types and options. chart
metric examples:
For charts, a little bit of scripting is necessary. The scripts for these charts contain the chart configuration, part of which is the update function you need to define. The update function translates metrics data into chart data. This is trivial for single values like the throttle, the cell voltage chart is an example on basic array processing.
Also, while charts can be defined with few options, you'll love to explore all the features and fine tuning options provided by Highcharts. For inspiration, have a look at the Highcharts demos and the Highcharts documentation. We're using styled mode, so some options don't apply, but everything can be styled by standard CSS.


{%extends 'all-photos/base.html'%} {%block content%} {{block.super}}
{{photo.location}}
{{photo.category}}


Akan names are derived from Ghananian culture where children are given their first names as 'day name' which corresponds to the day of the week they were born.


Each content object is again a JSON object, consisting of 4 key-value pairs with the keys type, wikidata, properties and content.
Example: A content object may look like this:
{ "type" : "Apple HFS Plus", "wikidata" : "Q1071337", "properties" : { "volume_name" : "HFS Plus", "block_size" : "4096", "volume_size" : "8388608" }, "content" : [] }
type refers to the specific kind of structure found. This may be an hierarchical file system used by Apple, a FreeBSD boot loader, a MBR partition table or many more. In total there are about 80 different recognized structures which brings up several issues:
The naming: Apple HFS, HFS and Hierarchical File System all refer to the same file system, so which one shall be used and how is the machine supposed to know for which one to search for?
The mere number of different structures is to vast and therefore hardly manageable. Some generalization has to be done without any loss of information though. Also, each type of structure has some properties which makes the total number of properties even less manageable. Inheritance of properties according to the generalization of structures is required.
For these reasons, an external, easily accessable knowledge base that yields unique ids for the structures, deals with machine-readable generalization and therefore allows automatic inheritance of properties is needed. Wikidata is such a knowledge base.
wikidata therefore contains the entity ID of the wikidata item corresponding to the content object.
properties is the key to another JSON object containing more specific information about the structure. These properties are inherited along wikidata's instance of and subclass of statements.
The HFS Plus structure from the example above is in wikidata an instance of file system, that says it inherits all the properties from file system and may have some individual ones on top of that. In this case, all the properties in the example - volume_name, volume_size and block_size - are properties of file system. Note that only properties are added to the output for which disktype found any information. In fact, the content object above inherits even more properties from file system but they're left out in the JSON output since they're not filled with actual values.
content is again an array of content objects that are assigned to this one. In this case it's empty, since disktype didn't detect anything within the file system. In the example below though, there's a GPT partition map and a Partition found next to each other and inside the partition there's an Ext2 file system.
{ "file kind" : "Regular file", "path" : "/path/gpt.image", "size" : "8388608", "content" : [ { "type" : "GPT partition map", "wikidata" : "Q603889", "properties" : { "disk_size" : "8388608", "entries" : "128", "sector_size" : "512" }, "content" : [], }, { "type" : "Partition", "wikidata" : "Q255215", "properties" : { "sector_size" : "512", "size" : "8354304", "start_sector" : "34", "type_name" : "Basic Data", "name" : "test-ext2", "kind" : "gpt", "number" : "1" }, "content" : [ { "type" : "Ext2", "wikidata" : "Q283527", "properties" : { "block_size" : "1024", "volume_size" : "8353792" }, "content" : [] } ] } ] }
A list of all potentially detected content objects, their properties and the generalization is provided by the following chapter.


Equivalent to clicking the Group tool. Demotes, or groups, the selected rows or columns in an outline. Use DEMOTE to change the configuration of an outline by grouping rows or columns of information.
Syntax
DEMOTE(row_col)
DEMOTE?(row_col)
Row_col specifies whether to group rows or columns.
| Row_col | Demotes |
| 1 or omitted | Rows |
| 2 | Columns |
Remarks
If the selection consists of an entire row or rows, then rows are demoted even if row_col is 2. Similarly, selection of an entire column overrides row_col 1.
If the selection is unambiguous (an entire row or column), then DEMOTE? will not display the dialog box.
Related Functions
PROMOTE Promotes the selection in an outline
SHOW.DETAIL Expands or collapses a portion of an outline
SHOW.LEVELS Displays a specific number of levels of an outline
Return to index


Projects
Victor Tran
Hello!
Posts
Thoughts and news
Flagship:
theShell
Desktop Environment
Contemporary
Design Language
Apps:
theBeat
Audio Player
theSlate
Text Editor
thePhoto
Photo Manager
Smaller projects:
theTerminal
Terminal Emulator
theCalculator
Calculator
theFile
File Manager
theMedia
Media Player
theSafe
Backup Tool
Bug Reporter
Report a bug in an app
GitHub
Code Repositories


Administrator
Admin, Please Sign In
Username:
Wrong Format.
Password:
Wrong Format.
Sign in
Close
Incorrect username or password
User


Package org.drip.sample.algo
Cx Rx In-Place Manipulation
- Author:
- Lakshmi Krishnamurthy
-
Class Summary Class Description C1ArrayAnagramGenerator C1ArrayAnagramGenerator demonstrates the Functionality to generate Anagrams inside of a Word List (i.e., Sentence).C1ArrayTranslateShuffle C1ArrayTranslateShuffle demonstrates the Functionality that conducts an in-place Translation and Shuffling of a Big String Instance.FavoriteGenres FavoriteGenres is the most listened to genre.FreshPromotion FreshPromotion an integer 1 if the customer is a winner else return 0.KNearestServiceLocater KNearestServiceLocater demonstrates the Construction and the Usage of a k-Nearest Service Locator.LargestItemAssociation LargestItemAssociation returns a list of strings representing the largest association group sorted lexicographically.MoviesInFlightMatcher MoviesInFlightMatcher demonstrates the Construction and the Usage of a Flight Duration Movie Matching Algorithm.OptimalUtilization OptimalUtilization finds all elements from each of two arrays such that the sum of their values is less or equal to target and as close to target as possible.PartitionLabels PartitionLabels partitions a string of given of lower-case English letters into as many parts as possible so that each letter appears in at most one part, and return a list of integers representing the size of these parts.R1ArraySumPair R1ArraySumPair demonstrates the Functionality to identify the Pair of Numbers in the Array that add up to the specified Total.R2ArrayPathwiseProcessing R2ArrayPathwiseProcessing demonstrates the Functionality that conducts an in-place Path-wise Processing of an Instance of Big R2 Array.ShopkeeperSale ShopkeeperSale returns the total cost of all items.SubMatrixSetExtraction SubMatrixSetStringExtraction demonstrates the Extraction and Usage of the Inner Sub-matrices of a given Master Matrix.SubStringSetExtraction SubStringSetExtraction demonstrates the Extraction of Permuted and Contiguous Sub-string Sets.TickerPriceStatisticsRun TickerPriceStatisticsRun demonstrates the Console based Online Ticker Price Statistics Generation.TopKFrequentWords TopKFrequentWords demonstrates the Extraction of Top K Frequently Occuring Words.TopKFrequentWords.WordCount WordCount implements the Word Count Duo.TopNCompetitors TopNCompetitors returns a list of strings representing a company's top N competitors in order of most frequently mentioned to least frequent.ZombieInfector ZombieInfector demonstrates the Construction and the Usage of a Zombie Adjacency Migration.


--- layout: post title: "Unit bias against collections" description: "How do you get the value out of a collection? Mu. Which value?" date: 2020-04-20 6:27 UTC tags: [Code] --- {% include JB/setup %}
{{ page.description }}
The other day I was looking for documentation on how to write automated tests with a self-hosted ASP.NET Core 3 web application. I've done this numerous times with previous versions of the framework, but ASP.NET Core 3 is new, so I wanted to learn how I'm supposed to do it this year. I found official documentation that helped me figure it out.
One of the code examples in that article displays a motif that I keep encountering. It displays behaviour close enough to unit bias that I consider it reasonable to use that label. Unit bias is the cognitive tendency to consider a unit of something the preferred amount.
The sample code in the ASP.NET Core documentation differs in the type of dependency it looks for, but is otherwise identical to this:
var descriptor = services.SingleOrDefault( d => d.ServiceType == typeof(IReservationsRepository)); if (descriptor != null) { services.Remove(descriptor); }
The goal is to enable an automated integration test to run against a Fake database instead of an actual relational database. My production Composition Root registers an implementation of IReservationsRepository
that communicates with an actual database. In an automated integration test, I'd like to unregister the existing dependency and replace it with a Fake. Here's the code in context:
public class RestaurantApiFactory : WebApplicationFactory<Startup> { protected override void ConfigureWebHost(IWebHostBuilder builder) { if (builder is null) throw new ArgumentNullException(nameof(builder)); builder.ConfigureServices(services => { var descriptor = services.SingleOrDefault( d => d.ServiceType == typeof(IReservationsRepository)); if (descriptor != null) { services.Remove(descriptor); } services.AddSingleton<IReservationsRepository>( new FakeDatabase()); }); } }
It works as intended, so what's the problem?
The problem is that it's fragile. What happens if there's more than one registration of IReservationsRepository
?
This happens:
System.InvalidOperationException : Sequence contains more than one matching element
This is a completely avoidable error, stemming from unit bias.
A large proportion of programmers I meet seem to be fundamentally uncomfortable with thinking in multitudes. They subconsciously prefer thinking in procedures and algorithms that work on a single object. The programmer who wrote the above call to SingleOrDefault exhibits behaviour putting him or her in that category.
This is nothing but a specific instantiation of a more general programmer bias: How do I get the value out of the monad?
As usual, the answer is mu. You don't. The question borders on the nonsensical. How do I get the value out of my collection? Which value? The first? The last? Some arbitrary value at an unknown position? Which value do you want if the collection is empty? Which value do you want if there's more than one that fits a predicate?
If you can answer such questions, you can get 'the' value out of a collection, but often, you can't. In the current example, the code doesn't handle multiple IReservationsRepository
registrations.
It easily could, though.
The best answer to the question of how to get the value out of the monad (in this case, the collection) is that you don't. Instead, you inject the desired behaviour into it.
In this case, the desired behaviour is to remove a descriptor
. The monad in question is the collection of services
. What does that mean in practice?
A first attempt might be something like this:
var descriptors = services .Where(d => d.ServiceType == typeof(IReservationsRepository)); foreach (var descriptor in descriptors) services.Remove(descriptor);
Unfortunately, this doesn't quite work:
System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
This happens because descriptors
is a lazily evaluated Iterator over services
, and you're not allowed to remove elements from a collection while you enumerate it. It could lead to bugs if you could.
That problem is easily solved. Just copy the selected descriptors
to an array or list:
var descriptors = services .Where(d => d.ServiceType == typeof(IReservationsRepository)) .ToList(); foreach (var descriptor in descriptors) services.Remove(descriptor);
This achieves the desired outcome regardless of the number of matches to the predicate. This is a more robust solution, and it requires the same amount of code.
You can stop there, since the code now works, but if you truly want to inject the behaviour into the collection, you're not quite done yet.
But you're close. All you have to do is this:
services .Where(d => d.ServiceType == typeof(IReservationsRepository)) .ToList() .ForEach(d => services.Remove(d));
Notice how this statement never produces an output. Instead, you 'inject' the call to services.Remove
into the list, using the ForEach method, which then mutates the services
collection.
Whether you prefer the version that uses the foreach
keyword or the version that uses List<T>.ForEach
doesn't matter. What matters is that you don't use the partial SingleOrDefault
function.
It's a common code smell when programmers try to extract a single value from a collection. Sometimes it's appropriate, but there are several edge cases you should be prepared to address. What should happen if the collection is empty? What should happen if the collection contains many elements? What should happen if the collection is infinite? (I didn't address that in this article.)
You can often both simplify your code and make it more robust by staying 'in' the collection, so to speak. Let the desired behaviour apply to all appropriate elements of the collection.
Don't be biased against collections.
Comments
I concur that often the first element of a collection is picked without thinking. Anecdotally, I experienced a system that would not work if set up freshly because in some places there was no consideration for empty collections. (The testing environment always contained some data)
Yet I would reverse the last change (towards
.ForEach
). For one, because (to my biased eye) it looks side effect free but isn't. And then it does add value compared to a forech loop, also both solutions are needlessy inefficient. If you want to avoid the foreach, go for theRemoveAll()
method (also present on List<T>):Julius, thank you for writing. Yes, I agree that in C# it's more idiomatic to use
foreach
.How would using
RemoveAll
work? Isn't that going to remove the entries from theList
instead of fromservices
?Hi Mark,
As you"re calling
IServiceCollection.RemoveAll()
, it will remove it from the collection. I tried it, and to me it seems to be working. (As long as you are not copying the services into a list beforehand)But to your main point, I remember when I wrote
.Single()
once, and years later I got a bug report because of it. I see two approaches there: Fail as fast and hard as possible or check just as much as needed for the moment. Considering TDD in the former approach, one would need to write a lot of test code for scenarios, that should never happen to verify the exceptions happen. Still, in the latter approach, a subtle bug could stay in the system for quite some time... What do you prefer?Julius, thank you for writing. It turns out that
RemoveAll
are a couple of extension methods onIServiceCollection
. One has to importMicrosoft.Extensions.DependencyInjection.Extensions
with ausing
directive before one can use them. I didn't know about these methods, but I agree that they seem to do their job. Thank you for the tip.As for your question, my preference is for robustness. In my experience, there's rarely such a thing as a scenario that never happens. If the code allows something to happen, it'll likely happen sooner or later. Code changes, so even if you've analysed that some combination of input isn't possible today, a colleague may change the situation tomorrow. It pays to write that extra unit test or two to make sure that encapsulation isn't broken.
This is also one of the reasons I'm fond of property-based testing. You automatically get coverage of all sorts of boundary conditions you'd normally not think about testing.


The host District Deputy is responsible for securing a Second Degree Team if their district does not have a certified staff.
Letters to neighboring district deputies and councils should be sent at least four weeks prior to the date selected for your major degree. This letter must clearly state all charges to councils bringing candidates and for all other activities which may be planned in conjunction with the exemplification.
At least two weeks prior to the date of the exemplification, the host district deputy should contact the grand knights of his district and those of neighboring districts to determine the approximate number of candidates each are planning to bring.
The week before the ceremonials, another survey of the councils should be taken in order to determine the approximate size of the class. If it appears that there will be less than (10) candidates, cancellation of degree should be considered.
Ten days prior to the degree date, the district deputy must contact the assigned Conferring Officer giving him directions and details for the day.
On the day of the degree, a member should be assigned to watch for the Conferring Officer and staff and escort them to a room where they can dress and make preparations for the ceremonial.
The district deputy should ask grand knights to encourage attendance by their membership. This could be done through the council bulletin, church bulletin, or by a telephone committee. Candidates are always impressed when a large group of members are present to observe the exemplification.
Proposer should contact their candidates well in advance of the exemplification date to confirm their availability on the scheduled date. Then on the day of the degree the proposer must personally pick up and accompany the candidate to the ceremonial. If the proposer is unable to do this, the grand knight or membership director should assign a member to act in his place. Never let a candidate go to a degree by himself.
Charges for a Third Degree staff are set by the Kansas State Council. These charges are $150.00 plus $5.00 for each third degree medallion per new member. As a courtesy, it is suggested that team members be provided free refreshments and lunch, if one is being served.
Host councils may charge $10.00 total per candidate, $5.00 per candidate participating in the Third Degree and $5.00 per candidate for the medallion. Anything above that must be agreed upon by all councils bringing candidates prior to the degree.
Charges for a Second Degree team coming from another district are to be set and determined by the district deputies involved. The Kansas State Council does not do this since the ideal situation is for every district to have its own Second Degree staff. Some compensation should be considered for a Second Degree staff from another district.
If a district has its own Second Degree staff, councils within the district are not to be charged for bringing their candidates to the Second Degree. Councils from outside of the district may be charged a maximum of $2.00 per candidate. If a district has to bring in a Second Degree staff outside of his district then all councils are subject to the $2.00 per candidate charge.
© Knights of Columbus - Kansas State Council
For comments or questions please email webmaster@kansas-kofc.org


A useful, sheltered port on the northern coast.
Location 55°12.5'N, 06°14.3'W
The harbour has been recently developed and is now also a ferry port for services to the Mull of Kintyre and the off lying island of Rathlin.
The marina entrance is sharply to port round the southern breakwater. Visitors berth on the first pontoon. Gate to pontoons and the separate marina facilities block are controlled by pin number. If arriving "Out of hours", ask another boat owner for the number or you may have difficulty re-entering.


please rotate your device to play
rock
paper
scissors
throw
rock
computer
rock
rolls: 0
user: 0
comp: 0


Name of the Student : Class : (Select One) Pre-Nursery Nursery Prep. I II III IV V VI VII VIII IX X XI XII Section : (Select One) A B C D E F
Name of the Parent :


This is flame hover
Flame chart is loading ...
You need JavaScript enbaled for flame chart to function
It may take couple of minutes


--- layout: page title: About header-img: "img/about-bg.png" ---
A collection of posts discussing my progress in software development. Explores both personal reflections/thoughts and relevant technical topics.


Regular Quality Assurance Engineer
Misys International Financial Systems, Bucharest
Development and creation of project design and testing environments in line with users requirements.
Assembly of software programs in coherent and integrated systems with the purpose of testing and validating clients' specifications.
Execute all types of testing (functional, regression, automated, performance, documentation).
Perform quality assurance activities in agile iterations throughout all the phases of the product lifecycle.
Maintain and develop automated GUI and API test cases.
Work with subject-matter experts to develop real business test cases.


---
layout: minimal
title: "About Haskel"
permalink: /about/index.html
description: "Just a dude who loves developing for iOS"
---
About Haskel
Coming soon...
Skills
- Swift - Objective-C
- UIKit
- XCTest
- AFNetworking
- CoreData
- GCD
- Ruby - RSpec - Haml - ERB
- HTML - CSS
- Git
- Heroku
- TDD & Continuous Integration
- Agile Methodology
Projects


Do you ever think about living in, working in, or traveling to space? People continue to explore space and conduct research aboard the International Space Station (ISS), but there are also private companies promoting the idea of space tourism. So come along for the ride and see where it can take you . . . maybe someday you'll cruise to space and wave to the ISS crew members as you pass one another!
During this first week of the ZR program, you will learn more about the SPHERES satellites and learn all about the ZR game and computer programming. You will also be introduced to the ISS, where the SPHERES are used.
By the end of this week, you should:
Why do we explore space, and what is the space we explore? First, learn from NASA why we explore space by watching the Why We Explore video. Then take a look at the universe with this video on the solar system.
On February 15, 2013, news of a meteor streaking through the Russian sky and slamming into the Earth, injuring almost 1,000 people, broke worldwide. The sight of the meteor captivated people across the globe but this event was a far cry from the potential impact of an asteroid hitting the planet.
Have you ever heard of the movies Armageddon and Deep Impact? Both of these 1998 films focus on asteroids on a collision course with Earth and the actions of people to try to save our planet from the devastating results. While we don't know of any asteroids headed for Earth that could harm us, there are plenty of huge asteroids, called Potentially Hazardous Asteroids (PHAs), that have or soon will pass not too far away from the planet. PHAs are space rocks of a certain size (larger than 100 m or about 325 ft) that might pass within 100 million miles of Earth. (While that may sound like a pretty far distance from us, the Moon is about 250,000 miles from Earth.)
On January 7, 2013 there were 1,364 known PHAs and astronomers are constantly finding new ones.
Note: LD means "Lunar Distance" (the distance between Earth and the Moon)
Look at some of the following video clips and other multimedia highlighting space and space exploration, such as the Mars rover landing.
Find out by looking at the ISS Facts slideshow.
To get started, you'll need to create an account on the ZR site so that you can access your workbench, the ZR Integrated Development Environment (ZR IDE).
Follow the directions provided in the Create an Account tutorial, and you will be ready to go!
Educators: To add students to your team, use the directions provided in the How to Invite Students to Your Team tutorial.
Now you will design, build, and launch your very own rocket.
The first step is to design your rocket.  What shape do you want your fins? What about your nose cone–long and skinny or short and fat? It's all up to you, but you should remember that these parts have specific jobs–to make the bottle rocket stable and aerodynamic. Find out more by exploring these links:
Once you have finished designing and building your rocket, you will get to go outside and launch it!
NOTE: When your bottle rocket is pressurized, it can be a very dangerous object and can cause serious injury. Stay well back from the rocket and be careful.
If you cannot complete the bottle rocket activity, you might try one of the following rocket activities from NASA:
Now, make your own SPHERE using the following directions and image. Give yourself some time, as this isn't as easy to do as you might think!
To program the SPHERES satellites, you will need to learn a whole new language: C++, a computer programming language. Complete the steps in the Getting to Know the ZR IDE tutorial to begin learning and practicing this new language!
Get to know a bit more about how to move the SPHERES satellites by learning about grids and coordinates (you will need some clues for your Coordinate Hunt!). You might also want to try out a game of Battleship or an interactive game on coordinates.
To begin, see what this is all about with the ZR Game Introduction.
The Middle School ZR Game is not just a test or a problem that has already been solved–it is a real challenge for you! To prepare young people to be innovative problem-solvers who can do creative work in our highly technical world (and to give you an idea of how exciting this work can be), we are asking you to help solve a major challenge–so you can see whether you have the right stuff to be part of our future technical workforce!
Now, check out the Game Overview slideshow to review some of the game details.
What does making sandwiches have to do with computer programming? Find out with this slideshow.
An array is a data type that stores multiple pieces of data in one place. See some examples and then try your hand at using them in ZR with the Introduction to Arrays and the setPositionTarget tutorial.
Learn about rotating the SPHERES satellites and complete a two-part tutorial, More Simple Arrays and the setAttitudeTarget Function and More Simple Arrays–Another Way to Initialize Variables, to learn more about how to use arrays to move the satellites.


Credit Ratings Assigned By Rating Agencies
Ziraat Bank’s performance is rated by Fitch Ratings, Moody’s and JCR Eurasia Ratings. In annual meetings held with these agencies, the Bank provides detailed and transparent information on its brand positioning, progress achieved in core lines of business, its funding ability and capital structure.
Credit ratings assigned to the Bank as of 31 December 2014 are presented below:
| Rating Agency | Category | Rating | Date |
| Fitch Ratings1 | Foreign Currency Long-Term | BBB- | November 2014 |
| Outlook | Stable | ||
| Foreign Currency Short-Term | F3 | ||
| Local Currency Long-Term | BBB | ||
| Outlook | Stable | ||
| Local Currency Short-Term | F3 | ||
| National Long-Term | AAA (tur) | ||
| Outlook | Stable | ||
| Support Rating | 2 | ||
| Support Rating Floor | BBB- | ||
| Financial Viability Rating | bbb- | ||
| Moody’s2 | Long-Term Foreign Currency Deposits | Baa3 | December 2014 |
| Outlook | Negative | ||
| Short-Term Foreign Currency Deposits | P-3 | ||
| Long-Term Local Currency Deposits | Baa3 | ||
| Outlook | Negative | ||
| Short-Term Local Currency Deposits | P-3 | ||
| Financial Strength | D+ | ||
| Outlook | Negative | ||
| Baseline Credit Assessment | ba1 | ||
| JCR Eurasia3 | Long-Term Foreign Currency Rating | BBB - | November 2014 |
| Outlook | Stable | ||
| Long-Term International Local Currency Rating | BBB - | ||
| Outlook | Stable | ||
| Long-Term National Rating | AAA (Trk) | ||
| Outlook | Stable | ||
| Short-Term International Foreign Currency Rating | A - 3 | ||
| Outlook | Stable | ||
| Short-Term International Local Currency Rating | A - 3 | ||
| Outlook | Stable | ||
| Short-Term National Rating | A-1+ (Trk) | ||
| Sponsored Support | 1 | ||
| Stand-Alone Rating | A |
1) Fitch Ratings confirmed and did not change Ziraat Bank’s ratings on 24 November 2014.
2) Moody’s decreased the Bank’s Short and Long Term Local Currency Deposit Rating from Baa2/Prime 2 to Baa3/Prime3 on 3 June 2014. Moody’s confirmed the Bank’s other ratings and transformed all rating outlook to negative. On 1 December 2014, Moody’s confirmed and did not change the Bank’s ratings.
3) JCR Eurasia Rating confirmed the Bank’s ratings on 10 November 2014 and considered the Bank under the category of investible at highest level.


Barbados hit by two days of power outages
by MARIA BRADSHAW(BARBADOS NATION) — Prime Minister Mia Amor Mottley has lit a fire under the Barbados Light & Power Co. Ltd (BL&P), telling the Canadian-owned company that it must do all in its power over the next few weeks to rectify the problems at its Spring Garden plant which has led to islandwide outages for the past two days.
She also told the company, owned by Emera Corporation, its plans to change its problem-plagued equipment in the next 12 to 18 months was “completely untenable”.
She said the company must explore all options to rectify the problem in a shorter period.
Mottley met with the top brass of the electric company, including chairman Rick Janega and managing director Roger Blackman, at Government Headquarters for almost two hours late yesterday evening, minutes after she arrived from an overseas assignment.
Headline News
-
National Students’ Council elects new executive November 20, 2019 1:14 AM
-
Qiana Joseph to participate in Women’s T20 Grand Slam Franchise Tournament November 20, 2019 12:55 AM
-
Saint Lucia misses Gold Cup playoffs after falling to Montserrat November 20, 2019 12:08 AM
-
US government warns of travel to Dominica; calls for restraint November 19, 2019 6:34 PM
-
Dominica’s opposition leader strikes back; blames police for unrest in Roseau November 19, 2019 6:19 PM
-
OECS chairman calls for “calm” in Dominica November 19, 2019 5:19 PM
-
UPDATE: Dominica’s PM condemns unrest in Roseau; blames opposition UWP (see video) November 19, 2019 4:23 PM
-
Saint Lucian in Taiwan’s top TV singing contest November 19, 2019 8:06 AM
-
Turmoil in Dominica as protesters and police clash (see video) November 19, 2019 7:55 AM


Use the arrow keys to collect all the coins you can!
Watch out for the monster!
Stay in the middle to get more points!
Hold the shift key to sprint!
Press the alt key to shield yourself from the monster! No middle points for cowardice though! Move again to get rid of the shield!
Written in javascript to test my skills!


O gladsome light,
pure brightness of the everliving Father in heaven,*
O Jesus Christ, holy and blessed!
Now as we come to the setting of the sun,
and our eyes behold the vesper light,*
we sing your praises, O God: Father, Son, and Holy Spirit.


This is a feature release of Google Play Music Desktop Player
Here is a quick run down of all things that have changed.
- NEW: Allow custom CSS injection. Style the app however you want
- NEW: The window title bar is now themed on macOS
- NEW: The new PlaybackAPI now exposes a library endpoint
- NEW: We now have an updated authenticode certificate for code signing on windows
- FIX: Now playing highlight color has been fixed
- FIX: GPM no longer reloads when reconnecting to the WiFi
Thanks to all the people who have helped with these features and fixes.


Go to index page.
gifovly
This program takes a multi-image GIF file and generates a single GIF
consisting of all the images overlayed. Each image's screen position
is used. Thus, you can use this together with gifpos and gifasm to
paste together images.
Usage:
gifovly [-s TransparentColor] [-h]
The GIF to be operated is read in from stdin. The result GIF is written to
stdout.
Memory required:
Proportional to the size of the input file.
Options:
- [-t num]
- If this index is given, any pixel in images after the first that
has this value is not copied.
- [-h]
- Print one line of command line help, similar to Usage above..
Author:
Eric S. Raymond<EMAIL_ADDRESS>Eric S. Raymond <esr@snark.thyrsus.com>


I currently live in Redwood City in the Bay Area, and have been here for about 6 month. I moved here from Reno, NV after having spent the past several years jumping between office positions and temp jobs. After I got tired of working hard and never getting ahead, I decided to move to California where I was closer to family and could further my education and career prospects.
Hobbies & Interests
- Fencing
- Writing
- Gaming (tabletop and video)
- Freelance Publishing
- Wine
Education
I hold an associate degree in psychology from Truckee Meadows Community College in Reno, and I've completed coursework in psychology, biology, and German at the University of Nevada - Reno.
A Little Something Interesting
As I mentioned above, I'm a bit of a freak about gaming. I've been very passionate about running (and sometimes playing in) tabletop RPGs such as Dungeons and Dragons, Pathfinder, Amber, and Shadowrun. Being a bit of a horror movie fan, one of my favorite things is to mix in bits of psychological terror into my games to give my players some unease. Tell all your players to make a listen check some time, and suddenly they're all nervous.


Amity Software testing Club & Amity Computer Architecture Club is jointly organising an event on the importance of Competitive coding to ace technical interviews and get started with coding!
Topics covered will be:
- How to start programming on online platorm
- Career Options
- Choosing projects
- Working on Data Structure and Algorithms
- Building a good Resume


--- layout: page title: About header-img: "img/about-bg.png" ---
My name is Oscar Zapata and I love technology.


Square Roots
• Square root of an odd n-digit number has (n+1)/2 digits before decimal point. In case of even number of digits, results has n/2 digits.
• Start by grouping digits from right to left in pairs of two, and draw a vertical line reaching the most significant digits
• Write down the square root of the number to the left of the line and twice as the divisor
• Henceforth, the technique is similar to division, except that every climb operation subtracts the V(.) of the numbers after the vertical line (refer to multiplication for V(.))
Example : 63214 = ?


25
More Proverbs of Solomon
1 These also are proverbs of Solomon which the men of Hezekiah king of Judah copied.
2 It is the glory of God to conceal things,
but the glory of kings is to search things out.
3 As the heavens for height, and the earth for depth,
so the heart of kings is unsearchable.
4 Take away the dross from the silver,
and the smith has material for a vessel;
5 take away the wicked from the presence of the king,
and his throne will be established in righteousness.
6 Do not put yourself forward in the king's presence
or stand in the place of the great,
7 for it is better to be told, “Come up here,”
than to be put lower in the presence of a noble.


Bubble indicate an application
Bubble size, total size of packets
from 200 M records
from 2012
video
Large average size
Large total size
Few users
web
Similar average size
Similar total size
# of users varies
system
small average size
small total size
# of users stable


--- layout: default title: newhaven.io ---
newhaven.io is an aggregator for all hacker-related stuff going on in New Haven, CT. We’re just getting started and could use your help. If you’re interested in programming, the intertubes, and whatnot, please get in touch. Please follow us on Twitter at @newhavenio; subscribe to our Google Group; and join the Meetup.com Group.
If you want to help us build something here, please start contributing to our repo on GitHub.
newhaven.io is made by people from:
{[{event.venue.name}]}
{[{event.venue.address_1}]}
{[{event.time | date:'EEE MM/dd @ h:mma'}]} TODAY! TOMORROW!
RSVP on Meetup.com
({[{event.yes_rsvp_count}]} already RSVP'd)


A Cup Of
Tea
About the
project
This is a site about tea, for instance, the healthy benefits and caffeine levels in different kinds of tea. I collected as much more information as I could, also went to some teashops in Auckland, meanwhile I made a survey on SurveyMonkey.
UI / UX / HTML+CSS / Sass / jQuery / WordPress
UX & UI
Design Process
Survey
I made a survey which included ten questions and 12 people joined the survey
Content Hierarchy
Based on the feedbacks from the survey I sketched the site map and wireframes for phone size, also marked the animation places out.
Wireframes Mock-up
I mocked up the wireframes for phone ,tablet and desktop size.
WordPress / Content Management
I rebuilt this site on WordPress and uploaded the images and texts on WordPress. Anyone who use this site could change the image or texts on WordPress dashboard. It`s a good practice to know the content management.


Weak 11: Empty Seats Abound as NFL Heads Down the Final Stretch
As Week 11 came to a close, it was clear that many fans are still avoiding stadiums all across the country even as the league looks to expand its influence to foreign nations such as Mexico and the U.K.
by Warner Todd HustonThe Detroit Lions were defeated by the Dallas Cowboys, 35-27, at Ford Field, but some fans noticed that the seats seemed a bit empty:
While the Baltimore Ravens totally trounced the Houston Texans 41-7, there were those who felt that there were an awful lot of empty seats at M&T Bank Stadium.
The Cardinals and 49ers struggled to pack the house as well.
Raymond James Stadium also came in for some criticism as the Tampa Bay Buccaneers lost at home to the New Orleans Saints, 34-17:
As always, the Washington Redskins were slammed for the attendance at FedEx Field. The Skins also lost to the Jets, 34-17:
The Miami Dolphins had detractors for the turnout at Hard Rock Stadium. The Buffalo Bills didn’t mind, though. They beat the Dolphins 37-20.
Finally, the Carolina Panthers hit the field at home in Bank of America Stadium when the Atlanta Falcons came to town to demolish the home team 29-3. Ouch. But many fans wondered where everyone was:
Follow Warner Todd Huston on facebook.com/Warner.Todd.Huston.