CTKSound.org is currently offline. Please visit recordings.ctksound.org to see the recordings.
Redirecting in 5 seconds...


{% extends "base.html" %} {% block content %} {% if not face %}
Sensational news! British scientists discovered ultimate new formula for finding out which rage face you are. Only now and only for 10 days for free we can use this formula! So, don't wait anymore and click on the button below!
{% else %}{% endif %} {% endblock %}


[%- page.import({
title => 'Reading and writing a file with Perl',
section => 'examples',
}) -%]
Writing to a file
[% WRAPPER code_chunk -%]
[% INCLUDE "examples/script_head.html" -%]
use Path::Tiny;
use autodie; # die if problem reading or writing a file
my $dir = path("/tmp"); # /tmp
my $file = $dir->child("file.txt"); # /tmp/file.txt
# Get a file_handle (IO::File object) you can write to
# with a UTF-8 encoding layer
my $file_handle = $file->openw_utf8();
my @list = ('a', 'list', 'of', 'lines');
foreach my $line ( @list ) {
# Add the line to the file
$file_handle->print($line . "\n");
}
[%- END %]
Appending to a file
[% WRAPPER code_chunk -%]
# As above but use opena_utf8() instead of openw_utf8()
my $file_handle = $file->opena_utf8();
[%- END %]
Reading a file
[% WRAPPER code_chunk -%]
[% INCLUDE "examples/script_head.html" -%]
use Path::Tiny;
use autodie; # die if problem reading or writing a file
my $dir = path("/tmp"); # /tmp
my $file = $dir->child("file.txt");
# Read in the entire contents of a file
my $content = $file->slurp_utf8();
# openr_utf8() returns an IO::File object to read from
# with a UTF-8 decoding layer
my $file_handle = $file->openr_utf8();
# Read in line at a time
while( my $line = $file_handle->getline() ) {
print $line;
}
[%- END %]
[% PROCESS cpan_link module=>'Path::Tiny' %] makes working with
directories and files clean and easy to do. Use path() to create a
Path::Tiny object for any file path you want to operate on,
but remember if you are calling other Perl modules you may need
to convert the object to a string using 'stringify':
[% WRAPPER code_chunk -%]
$file->stringify();
$dir->stringify();
[% END %]
[% PROCESS cpan_link module=>'autodie' %] forces many functions
to die with a useful error message (instead of returning undef)
if they fail. This makes for cleaner code. To check for and
catch errors use [% PROCESS cpan_link module=>'Try::Tiny' %].


@(person: PersonSignup)(implicit request: play.api.mvc.RequestHeader) MyApplication Home About Us Contact Us Logout


|
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
| def | getChild |
| def | getChildCount |
| def | getParent |
| def | setParent |
| def | getChildIndex |
| def | setChildIndex |
| def | freshenParentAndChildIndexes |
| def | addChild |
| def | setChild |
| def | deleteChild |
| def | replaceChildren |
| def | isNil |
| def | getTokenStartIndex |
| def | setTokenStartIndex |
| def | getTokenStopIndex |
| def | setTokenStopIndex |
| def | dupNode |
| def | getType |
| def | getText |
| def | getLine |
| def | getCharPositionInLine |
| def | toStringTree |
| def | toString |
@brief Abstract baseclass for tree nodes. What does a tree look like? ANTLR has a number of support classes such as CommonTreeNodeStream that work on these kinds of trees. You don't have to make your trees implement this interface, but if you do, you'll be able to use more support code. NOTE: When constructing trees, ANTLR can build any kind of tree; it can even use Token objects as trees if you add a child list to your tokens. This is a tree node without any payload; just navigation and factory stuff.
| def google.appengine._internal.antlr3.tree.Tree.addChild | ( | self, | |
| t | |||
| ) |
Add t as a child to this node. If t is null, do nothing. If t is nil, add all children of t to this' children.
| def google.appengine._internal.antlr3.tree.Tree.freshenParentAndChildIndexes | ( | self | ) |
Set the parent and child index values for all children
| def google.appengine._internal.antlr3.tree.Tree.getChildIndex | ( | self | ) |
This node is what child index? 0..n-1
| def google.appengine._internal.antlr3.tree.Tree.getLine | ( | self | ) |
In case we don't have a token payload, what is the line for errors?
| def google.appengine._internal.antlr3.tree.Tree.getParent | ( | self | ) |
Tree tracks parent and child index now > 3.0
| def google.appengine._internal.antlr3.tree.Tree.getTokenStartIndex | ( | self | ) |
What is the smallest token index (indexing from 0) for this node and its children?
| def google.appengine._internal.antlr3.tree.Tree.getTokenStopIndex | ( | self | ) |
What is the largest token index (indexing from 0) for this node and its children?
| def google.appengine._internal.antlr3.tree.Tree.getType | ( | self | ) |
Return a token type; needed for tree parsing.
| def google.appengine._internal.antlr3.tree.Tree.isNil | ( | self | ) |
Indicates the node is a nil node but may still have children, meaning the tree is a flat list.
| def google.appengine._internal.antlr3.tree.Tree.replaceChildren | ( | self, | |
| startChildIndex, | |||
| stopChildIndex, | |||
| t | |||
| ) |
Delete children from start to stop and replace with t even if t is a list (nil-root tree). num of children can increase or decrease. For huge child lists, inserting children can force walking rest of children to set their childindex; could be slow.
| def google.appengine._internal.antlr3.tree.Tree.setChild | ( | self, | |
| i, | |||
| t | |||
| ) |
Set ith child (0..n-1) to t; t must be non-null and non-nil node
| def google.appengine._internal.antlr3.tree.Tree.setChildIndex | ( | self, | |
| index | |||
| ) |
This node is what child index? 0..n-1
| def google.appengine._internal.antlr3.tree.Tree.setParent | ( | self, | |
| t | |||
| ) |
Tree tracks parent and child index now > 3.0


Processing Video Streams
One of the really "fun" things that you can do with WebRTC and media capture in general, is to do some post-processing on the captured video.
As with other parts of the rtc.io suite, we've tried to make this as simple as possible, and much of the magic is achieved by using the rtc-canvas helper module.
The rtc-canvas
module allows you to render a captured rtc-media
stream to a virtual <video>
element which redraws it's content on a canvas. This virtual video element also has a processing pipeline that you can add manipulation methods to using the .pipeline.add(handler)
method.
For example, here is what you will commonly include if you wish to do some video manipulation using the rtc-canvas
module:
var crel = require('crel');
var media = require('rtc-media');
var videoproc = require('rtc-videoproc');
var video = crel('video');
var canvas = crel('canvas');
// set up the video processing
videoproc(video, canvas, {
filter: require('rtc-filter-grayscale')
});
// capture and render the video
media().render(video);
// add the canvas to the document body
document.body.appendChild(canvas);
In the code above, you can see that we are using a node style require
statement to include a grayscale filter into our processing code. Let's have a look at the implementation of that small module now:
module.exports = function(imageData) {
var channels = imageData.data;
var channelCount = channels.length;
// iterate through the data
for (var ii = 0; ii < channelCount; ii += 4) {
// update the values to the rgb average
channels[ii] = // update R
channels[ii + 1] = // update G
channels[ii + 2] = // update B
(channels[ii] + channels[ii + 1] + channels[ii + 2] ) / 3;
}
// return true to flag that we want to write our pixel data
// back to the canvas
return true;
};
This code takes the image data that has already been extracted via the canvas 2d context getImageData method and applies some processing to it (in this case a simple grayscale filter).
By returning true at the end of the function, we are flagging to the rtc-canvas
module that modifications have been made to the reference pixel data and that a putImageData call should be made to replace the contents of the canvas.
Adjusting the Capture Rate
By default, the canvas is set to capture at 25 fps, but this can be adjusted if you feel like giving your CPU a bit of a rest:
var crel = require('crel');
var media = require('rtc-media');
var videoproc = require('rtc-videoproc');
var video = crel('video');
var canvas = crel('canvas');
// set up the video processing
videoproc(video, canvas, {
fps: 5,
filter: require('rtc-filter-grayscale')
});
// capture and render the video
media().render(video);
// add the canvas to the document body
document.body.appendChild(canvas);


Our data centers are designed to use as little energy as possible
We drive down the cost and environmental impact of running our data centers by designing and building our own facilities. We install smart temperature controls, use “free-cooling” techniques like using outside air or reused water for cooling, and redesign how power is distributed to reduce unnecessary energy loss. We can only improve upon what we measure, so we calculate the performance of each facility using comprehensive efficiency measurements.


Format: ["dragon Id", "dragon name", "gender (M/F)", the location(start from zero) [line, row], "father's id", "mother's id"],
Split by ,
End without ,
Example as below


{% extends "app/layout.html" %} {% block content %}
This page allows you to search for courses.
Our First Course »


At DSR Moving, we pride ourselves in giving our customers the best possible experience at the best possible price! If there is anything that we can do to help you, please let us know!
We move to and from The Triangle Area (Raleigh, Durham, Chapel Hill) and the Triad (Greensboro, Winston Salem, High Point) and surrounding areas.
919-796-2673
International Drive, Morrisville NC
Mailing Address: 2730 Tucker St. Suite 501, Burlington, NC 27215
At DSR Moving, we pride ourselves in treating your move with caution and care. In the event that something gets damaged or lost, we will resolve the issue in the a fair and timely manner
File a Claim


Identify if a given news is fake or not
{% if tof %}
{{tof}} news!
{% endif %}
{% if author %}
The author(s) of the article is/are {{author}}
{% endif %}
{% if polar %}
This is a {{polar}} article
{% endif %}
{% if summary %}
The summary of the article is {{summary}}
{% endif %}
Accuracy of the model was 99% in validation set


The test tool is running as an OpenID Provider. This is implemented as a core consisting of the pyOIDC OP implementation and around that a shell that can modify incoming and outgoing messages. The behavior or this shell is governed by the behavior parameter in the test descriptions files.
The test description files are JSON documents. Each of these documents contains a JSON object with a set of keys and values. The possible keys are:
These will be described one by one below.
This is a list of identifiers. Each of them used in the code to decide on actions. This is exclusively used to make responses or requests not standard compliant.
This is used to decided what features the test tool (an OP) should support. Most commonly this is about which response_types that are supported.
Denotes whether claims returned should only be normal claims or aggregated and/or distributed.
A description aimed at the user of the test suite.
A description of the expected result.
Which group of tests the test belongs to. As of now the complete set is:
A link to the part of the standard that is being tested..
Short description of what the test tries to test.
Supports initiation of the SSO flow from a 3rd-party.
| Description | Exposes a ${THIRD_PARTY_INITIATED_LOGIN} endpoint that 3rd parties can use to start the SSO process. Initiated via: https://<rp_test_host>:<rp_test_port>/rp/<rp_id>/rp-3rd_party-init-login/<client_id> |
| Group | 3rd-Party Init SSO |
| Return Types |
|
| Modifiers | |
| Expected result | A successful Authentication Request to the OP triggered by accessing the ${THIRD_PARTY_INITIATED_LOGIN} URL. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated BackChannel Logout
| Description | Does an RP initiated BackChannel logout. |
| Group | RP Initiated BackChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | That the Single Sign On session on the OP disappears. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout, unsigned logout token
| Description | Does an RP initiated logout, unsigned logout token. |
| Group | RP Initiated BackChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | That the Single Sign On session on the OP disappears. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout, no event claim in the logout token
| Description | Does an RP initiated logout, no event claim in the logout token. |
| Group | RP Initiated BackChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | That the Single Sign On session on the OP disappears. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout, incorrect nonce in logout token
| Description | Does an RP initiated logout, incorrect nonce in logout token. |
| Group | RP Initiated BackChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | Error |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout, wrong signing algorithm was used for the logout token
| Description | Does an RP initiated logout, wrong signing algorithm was used for the logout token. |
| Group | RP Initiated BackChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | Error |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout, wrong audience in logout token
| Description | Does an RP initiated logout, wrong audience in logout token. |
| Group | RP Initiated BackChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | Error |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout, wrong event description in logout token
| Description | Does an RP initiated logout, Wrong event description in logout token. |
| Group | RP Initiated BackChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | Error |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout, wrong issuer in logout token
| Description | Does an RP initiated logout, wrong issuer in logout token. |
| Group | RP Initiated BackChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | Error |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can use Aggregated Claims
| Description | Make a ${USERINFO_REQUEST} and read the ${AGGREGATED_CLAIMS}. |
| Group | Claims Types |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Understand the aggregated claims in the ${USERINFO_RESPONSE}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can use Distributed Claims
| Description | Make a ${USERINFO_REQUEST} and read the ${DISTRIBUTED_CLAIMS}. |
| Group | Claims Types |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Understand the distributed claims in the ${USERINFO_RESPONSE}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can request and use claims in ID Token using the 'claims' request parameter
| Description | Ask for the claim 'name' using the ${CLAIMS_REQUEST_PARAMETER}. Retrieve the claim from an ID Token, either by making a ${TOKEN_REQUEST} or by using ${IMPLICIT_FLOW}. |
| Group | Claims Request Parameter |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An ${ID_TOKEN} containing the requested claim. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can request and use claims in UserInfo Response using the 'claims' request parameter
| Description | Ask for the claim 'name' using the ${CLAIMS_REQUEST_PARAMETER}. Retrieve the claims by making a ${USERINFO_REQUEST}. |
| Group | Claims Request Parameter |
| Return Types |
|
| Modifiers | NONE |
| Expected result | A ${USERINFO_RESPONSE} containing the requested claim. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects discovered issuer not matching provider configuration issuer
| Description | Retrieve ${OPENID_CONFIGURATION_INFORMATION} for OpenID Provider from the .well-known/openid-configuration path. Verify that the issuer in the ${PROVIDER_CONFIGURATION} matches the one returned by WebFinger. |
| Group | Discovery |
| Return Types |
|
| Modifiers | |
| Expected result | Identify that the issuers are not matching and reject the provider configuration. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Uses keys discovered with jwks_uri value
| Description | The Relying Party uses keys from the jwks_uri which has been obtained from the ${OPENID_PROVIDER_METADATA}. |
| Group | Discovery |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Should be able to verify signed responses and/or encrypt requests using obtained keys. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Uses Provider Configuration Information
| Description | Retrieve and use the ${OPENID_CONFIGURATION_INFORMATION}. |
| Group | Discovery |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Read and use the JSON object returned from the OpenID Connect Provider. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can discover OpenID providers using acct URI syntax
| Description | Use WebFinger (${RFC7033}) and ${ISSUER_DISCOVERY_DOC} to determine the location of the OpenID Provider. The discovery should be done using ${ACCT_SYNTAX} as user input identifier. Note that the local part of the acct value should adhere to the pattern |
| Group | Discovery |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An issuer location should be returned. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
href URLs must be HTTPS
| Description | href URLs must be HTTPS |
| Group | Discovery |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Complain about return URL being http |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
The webfinger response will contain a member that the client doesn't recognize
| Description | The webfinger response will contain a member that the client doesn't recognize |
| Group | Discovery |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An issuer location should be returned. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can discover OpenID providers using URL syntax
| Description | Use WebFinger (${RFC7033}) and ${ISSUER_DISCOVERY_DOC} to determine the location of the OpenID Provider. The discovery should be done using ${URL_SYNTAX} as user input identifier. |
| Group | Discovery |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An issuer location should be returned. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Front Channel Logout
| Description | Does an RP initiated Front Channel logout. |
| Group | RP Initiated FrontChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | That the Single Sign On session on the OP disappears. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Front Channel Logout, the front channel call has the wrong issuer
| Description | Does an RP initiated Front Channel logout, the front channel call has the wrong issuer. |
| Group | RP Initiated FrontChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | That the Single Sign On session on the OP disappears. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Front Channel Logout, the front channel call has the wrong sid
| Description | Does an RP initiated Front Channel logout, the front channel call has the wrong sid. |
| Group | RP Initiated FrontChannel Logout |
| Return Types |
|
| Modifiers | |
| Expected result | That the Single Sign On session on the OP disappears. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with invalid 'aud' claim
| Description | Request an ID token and compare its ${AUD} value to the Relying Party's '${CLIENT_ID}'. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify that the 'aud' value is missing or doesn't match the 'client_id' and reject the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with incorrect 'at_hash' claim when response_type='id_token token'
| Description | Make an authentication request using response_type='id_token token' for ${IMPLICIT_FLOW} or response_type='code id_token token' for ${HYBRID_FLOW}. Verify the 'at_hash' value in the returned ${ID_TOKEN}. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify the incorrect 'at_hash' value and reject the ID Token after doing ${ACCESS_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with incorrect 'c_hash' claim when hybrid flow is used
| Description | Retrieve Authorization Code and ID Token from the Authorization Endpoint, using ${HYBRID_FLOW}. Verify the ${C_HASH} value in the returned ID token. 'id_token_signed_response_alg' must NOT be 'none' |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify the incorrect 'c_hash' value and reject the ID Token after doing ${AUTHORIZATION_CODE_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with invalid asymmetric 'ES256' signature
| Description | Request an ID token and verify its signature using the keys provided by the Issuer. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify the invalid signature and reject the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with invalid symmetric 'HS256' signature
| Description | Request an ID token and verify its signature using the ${SYMMETRIC_SIGNATURES}. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify the invalid signature and reject the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with invalid asymmetric 'RS256' signature
| Description | Request an ID token and verify its signature using the keys provided by the Issuer. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify the invalid signature and reject the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token without 'iat' claim
| Description | Request an ID token and verify its '${IAT}' value. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify the missing 'iat' value and reject the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with incorrect 'iss' claim
| Description | Request an ID token and verify its '${ISS}' value. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify the incorrect 'iss' value and reject the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token without 'kid' claim in JOSE header if multiple JWKs supplied in 'jwks_uri'
| Description | Request an ID token and verify its signature using the keys provided by the Issuer. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify that the 'kid' value is missing from the JOSE header and that the Issuer publishes ${MULITPLE_KEYS_JWKS} (referenced by 'jwks_uri'). The RP can do one of two things; reject the ID Token since it can not by using the kid determined which key to use to verify the signature. Or it can just test all possible keys and hit upon one that works, which it will in this case. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Accepts ID Token without 'kid' claim in JOSE header if only one matching JWK is supplied in 'jwks_uri'
| Description | Request an ID token and verify its signature using a single matching key provided by the Issuer. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Use the single matching key out of the Issuer's published set to verify the ID Tokens signature and accept the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with incorrect 'at_hash' claim when response_type='id_token token'
| Description | Make an authentication request using response_type='id_token token' for Implicit Flow or response_type='code id_token token' for Hybrid Flow. Verify the 'at_hash' presence in the returned ID Token. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify missing 'at_hash' value and reject the ID Token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with missing 'c_hash' claim when hybrid flow is used
| Description | Retrieve Authorization Code and ID Token from the Authorization Endpoint, using Hybrid Flow. Verify the c_hash presence in the returned ID token. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify missing 'c_hash' value and reject the ID Token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can request and use signed and encrypted ID Token
| Description | Request an signed and encrypted ID Token. Decrypt the returned the ID Token and verify its signature using the keys published by the Issuer. |
| Group | ID Token |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Accept the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can request and use signed and encrypted ID Token using A128kw
| Description | Request an signed and encrypted ID Token. Decrypt the returned the ID Token and verify its signature using the keys published by the Issuer. |
| Group | ID Token |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Accept the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Accepts ID Token with valid asymmetric 'ES256' signature
| Description | Request an signed ID Token. Verify the signature on the ID Token using the keys published by the Issuer. |
| Group | ID Token |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Accept the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Accepts ID Token with valid symmetric 'HS256' signature
| Description | Accepts ID Token with valid symmetric 'HS256' signature. Verify the signature on the ID Token using the keys published by the Issuer. |
| Group | ID Token |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Accept the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can request and use unsigned ID Token
| Description | Use ${CODE_FLOW} and retrieve an unsigned ID Token. This test is only applicable when response_type='code' |
| Group | ID Token |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Accept the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Accepts ID Token with valid asymmetric 'RS256' signature
| Description | Request an signed ID Token. Verify the signature on the ID Token using the keys published by the Issuer. |
| Group | ID Token |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Accept the ID Token after doing ${ID_TOKEN_VALIDATION}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token without 'sub' claim
| Description | Request an ID token and verify it contains a ${SUB} value. |
| Group | ID Token |
| Return Types |
|
| Modifiers | |
| Expected result | Identify the missing 'sub' value and reject the ID Token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout
| Description | Does an RP initiated logout. |
| Group | RP Initiated Logout |
| Return Types |
|
| Modifiers | NONE |
| Expected result | That the Single Sign On session on the OP disappears. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout
| Description | Does an RP initiated logout. |
| Group | RP Initiated Logout |
| Return Types |
|
| Modifiers | |
| Expected result | The OP does not return the 'state' variable. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout
| Description | Does an RP initiated logout. |
| Group | RP Initiated Logout |
| Return Types |
|
| Modifiers | |
| Expected result | The OP returns random 'state' variable. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Does RP initiated Logout, watch for status changed
| Description | Does an RP initiated logout, watch for status changed. |
| Group | Session Management |
| Return Types |
|
| Modifiers | |
| Expected result | The OP Iframe receives a status check request |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Supports rotation of provider's asymmetric encryption keys
| Description | Fetch the issuer's keys from the 'jwks_uri' and make an ${ENCRYPTED_REQUEST} using the issuer's encryption keys. Fetch the issuer's keys from the jwks_uri again, and make a new encrypted request using the rotated encryption keys. |
| Group | Key Rotation |
| Return Types |
|
| Modifiers | |
| Expected result | A successful authentication response to both authentication requests encrypted using rotated encryption keys. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Supports rotation of provider's asymmetric signing keys
| Description | Request an ID Token and verify its signature. Make a new authentication request and retrieve another ID Token and verify its signature. |
| Group | Key Rotation |
| Return Types |
|
| Modifiers | |
| Expected result | Successfully verify both ID Token signatures, fetching the ${SIGNING_KEY_ROTATION} if the 'kid' claim in the JOSE header is unknown. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Supports rotation of provider's asymmetric signing keys, variant for 'native' apps
| Description | Request an ID Token and verify its signature. Will have to retrieve new keys from the OP to be able to verify the ID Token |
| Group | Key Rotation |
| Return Types |
|
| Modifiers | |
| Expected result | Successfully verify the ID Token signature, fetching the ${SIGNING_KEY_ROTATION} if the 'kid' claim in the JOSE header is unknown. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects ID Token with invalid 'nonce' when valid 'nonce' sent
| Description | Pass a ${NONCE_IMPLEMENTATION} in the Authentication Request. Verify the 'nonce' value returned in the ${ID_TOKEN}. |
| Group | nonce Request Parameter |
| Return Types |
|
| Modifiers | |
| Expected result | Identify that the 'nonce' value in the ID Token is invalid and reject the ID Token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Sends 'nonce' unless using code flow
| Description | Always send a ${NONCE_IMPLEMENTATION} as a request parameter while using implicit or hybrid flow. Verify the 'nonce' value returned in the ${ID_TOKEN}. |
| Group | nonce Request Parameter |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An ${ID_TOKEN}, either from the Authorization Endpoint or from the Token Endpoint, containing the same 'nonce' value as passed in the authentication request when using ${HYBRID_FLOW_ID_TOKEN} or ${IMPLICIT_FLOW_ID_TOKEN}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Uses dynamic registration
| Description | Use the ${CLIENT_REGISTRATION_ENDPOINT} in order to dynamically register the Relying Party. |
| Group | Dynamic Client Registration |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Get a ${CLIENT_REGISTRATION_RESPONSE}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can use request_uri request parameter with encrypted request
| Description | Pass a ${REQUEST_OBJECT_BY_REFERENCE}, using the request_uri parameter. ${ENCRYPT_THE_REQUEST_OBJECT} using the 'RSA1_5' and 'A128CBC-HS256' algorithms. |
| Group | request_uri Request Parameter |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An authentication response to the encrypted request passed using the request_uri request parameter. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can use request_uri request parameter with signed request
| Description | Pass a ${REQUEST_OBJECT_BY_REFERENCE}, using the request_uri parameter. ${SIGN_THE_REQUEST_OBJECT} using the 'RS256' algorithm. |
| Group | request_uri Request Parameter |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An authentication response to the signed request passed using the request_uri request parameter. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can use request_uri request parameter with signed and encrypted request
| Description | Pass a ${REQUEST_OBJECT_BY_REFERENCE}, using the request_uri parameter. ${SIGN_THE_REQUEST_OBJECT} using the 'RS256' algorithm, then ${ENCRYPT_THE_REQUEST_OBJECT} using the 'RSA1_5' and 'A128CBC-HS256' algorithms. |
| Group | request_uri Request Parameter |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An authentication response to the signed and encrypted request passed using the request_uri request parameter. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can use request_uri request parameter with unsigned request
| Description | Pass a ${REQUEST_OBJECT_BY_REFERENCE}, using the request_uri parameter. The Request Object should be signed using the algorithm 'none' (${UNSECURED_JWS}). |
| Group | request_uri Request Parameter |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An authentication response to the unsigned request passed using the request_uri request parameter. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make request using response_type='id_token token' and response_mode='form_post'
| Description | Make an authentication request with the ${RESPONSE_TYPE} set to 'id_token token' and the ${RESPONSE_MODE} set to ${FORM_POST}. |
| Group | Response Type and Response Mode |
| Return Types |
|
| Modifiers | NONE |
| Expected result | HTML form post response processed, resulting in query encoded parameters. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can consume an authentication error response with response_mode='form_post'
| Description | Construct and send an Authentication Request with ${RESPONSE_MODE} set to ${FORM_POST}, max_age=0 and prompt=none which results in the test suite returning an error because the requested conditions cannot be met. |
| Group | Response Type and Response Mode |
| Return Types |
|
| Modifiers | NONE |
| Expected result | The HTML form post authorization error response is consumed, resulting in an error screen shown to the user. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make request using response_type 'code'
| Description | Make an authentication request using the ${AUTHORIZATION_CODE_FLOW}. |
| Group | Response Type and Response Mode |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An ${CODE_AUTHENTICATION_RESPONSE} containing an authorization code. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make request using response_type 'code id_token'
| Description | Make an authentication request using the ${HYBRID_FLOW}, specifying the ${RESPONSE_TYPE} as 'code id_token' |
| Group | Response Type and Response Mode |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An ${IMPLICIT_AUTHENTICATION_RESPONSE} containing an ${ID_TOKEN} and an Authorization Code. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make request using response_type 'code id_token token'
| Description | Make an authentication request using the ${HYBRID_FLOW}, specifying the ${RESPONSE_TYPE} as 'code id_token token' |
| Group | Response Type and Response Mode |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An ${IMPLICIT_AUTHENTICATION_RESPONSE} containing an authorization code, an ${ID_TOKEN} and an Access Token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make request using response_type 'code token'
| Description | Make an authentication request using the ${HYBRID_FLOW}, specifying the ${RESPONSE_TYPE} as 'code token' |
| Group | Response Type and Response Mode |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An ${IMPLICIT_AUTHENTICATION_RESPONSE} containing an authorization code and an Access Token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make request using response_type 'id_token'
| Description | Make an authentication request using the ${IMPLICIT_FLOW}, specifying the ${RESPONSE_TYPE} as 'id_token'. |
| Group | Response Type and Response Mode |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An ${IMPLICIT_AUTHENTICATION_RESPONSE} containing an ${ID_TOKEN}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make request using response_type 'id_token token'
| Description | Make an authentication request using the ${IMPLICIT_FLOW}, specifying the ${RESPONSE_TYPE} as 'id_token token' |
| Group | Response Type and Response Mode |
| Return Types |
|
| Modifiers | NONE |
| Expected result | An ${IMPLICIT_AUTHENTICATION_RESPONSE} containing an ${ID_TOKEN} and an Access Token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can request and use claims using scope values
| Description | ${REQUEST_CLAIMS_USING_SCOPE_VALUES}. |
| Group | scope Request Parameter |
| Return Types |
|
| Modifiers | NONE |
| Expected result | A ${USERINFO_RESPONSE} containing the requested claims. If no access token is issued (when using ${IMPLICIT_FLOW} with response_type='id_token') the ${ID_TOKEN} contains the requested claims. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make Access Token Request with 'client_secret_basic' authentication
| Description | Use the '${CLIENT_SECRET_BASIC}' method to authenticate at the Authorization Server when using the token endpoint. |
| Group | Client Authentication |
| Return Types |
|
| Modifiers | NONE |
| Expected result | A ${TOKEN_RESPONSE}, containing an ID token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make Access Token Request with 'client_secret_jwt' authentication
| Description | Use the '${CLIENT_SECRET_JWT}' method to authenticate at the Authorization Server when using the token endpoint. |
| Group | Client Authentication |
| Return Types |
|
| Modifiers | NONE |
| Expected result | A ${TOKEN_RESPONSE}, containing an ID token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make Access Token Request with 'client_secret_post' authentication
| Description | Use the '${CLIENT_SECRET_POST}' method to authenticate at the Authorization Server when using the token endpoint. |
| Group | Client Authentication |
| Return Types |
|
| Modifiers | NONE |
| Expected result | A ${TOKEN_RESPONSE}, containing an ID token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can make Access Token Request with 'private_key_jwt' authentication
| Description | Use the '${PRIVATE_KEY_JWT}' method to authenticate at the Authorization Server when using the token endpoint. |
| Group | Client Authentication |
| Return Types |
|
| Modifiers | NONE |
| Expected result | A ${TOKEN_RESPONSE}, containing an ID token. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rejects UserInfo Response with invalid 'sub' claim
| Description | Make a ${USERINFO_REQUEST} and verify the 'sub' value of the ${USERINFO_RESPONSE} by ${USER_INFO_SUB_CLAIM}. |
| Group | UserInfo Endpoint |
| Return Types |
|
| Modifiers | |
| Expected result | Identify the invalid 'sub' value and reject the UserInfo Response. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can send Access Token as form-encoded body parameter
| Description | Pass the access token as a ${FORM_ENCODED_BODY_PARAMETER} while doing the ${USERINFO_REQUEST}. |
| Group | UserInfo Endpoint |
| Return Types |
|
| Modifiers | NONE |
| Expected result | A ${USERINFO_RESPONSE}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can send Access Token in the HTTP Authorization request header
| Description | Pass the access token using the ${BEARER_AUTH_SCHEME} while doing the ${USERINFO_REQUEST}. |
| Group | UserInfo Endpoint |
| Return Types |
|
| Modifiers | NONE |
| Expected result | A ${USERINFO_RESPONSE}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can request and use encrypted UserInfo Response
| Description | Request encrypted UserInfo. Decrypt the ${USERINFO_RESPONSE}. |
| Group | UserInfo Endpoint |
| Return Types |
|
| Modifiers | NONE |
| Expected result | A ${USERINFO_RESPONSE}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can request and use signed UserInfo Response
| Description | Request signed UserInfo. |
| Group | UserInfo Endpoint |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Successful signature verification of the ${USERINFO_RESPONSE}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Can request and use signed and encrypted UserInfo Response
| Description | Request signed and encrypted UserInfo. Decrypt the ${USERINFO_RESPONSE} and verify its signature. |
| Group | UserInfo Endpoint |
| Return Types |
|
| Modifiers | NONE |
| Expected result | Successful decryption and signature verification of the ${USERINFO_RESPONSE}. |
| Link to specification |
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Set signing algorithm to be none
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Modify the at_hash if present
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Set an invalid aud claim
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove frontchannel_logout_uri if one is specified
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Modify the c_hash if present
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove backchannel_logout_uri if one is specified
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove iat claim
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Mess with the signature of the JWS
Java Implementation Status: Status TDB
Link to Java code: Link TBD
??
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Mess with the iss value
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Return an incorrect issuer in the provider configuration
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove sub claim
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove the at_hash if present
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove the c_hash if present
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove a event specification from the JWT
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove key ID from keys
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove key ID from keys
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Remove nonce claim if present
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Make sure there is no 'state' in the request and as an effect of that none
in the logout token
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Put a faulty 'state' in the request and as an effect of that
in the logout token
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rollover encryption keys
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Rollover signing keys
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Set a faulty sub in the User Info
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Add a nonce to the logout token
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Figure out a alg I could use but that are not the one used
for ID Tokens. Pick one from id_token_signing_alg_values_supported
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Set wrong audience of the logout token
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Set the event to be something it should not be
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Set the wrong issuer on the logout token
Set the wrong issuer of the logout IFrame
Java Implementation Status: Status TDB
Link to Java code: Link TBD
Set the wrong session ID in the logout IFrame
Java Implementation Status: Status TDB
Link to Java code: Link TBD


Indian police baton charge students over fee protests
Indian police fought street battles in New Delhi on Monday with thousands of students who stepped up protests over fee increases at one of the country's top universities.
Police baton charged some groups of demonstrators and media reports said dozens of students from Jawaharlal Nehru University were detained.
The university is one of India's most prestigious and counts top politicians including Foreign Minister Subrahmanyam Jaishankar and this year's Nobel economics prize winner Abhijit Banerjee among past students.
Defying a ban on groups of more than four people, demonstrators started a march from the university to the parliament as part of their action against higher costs for accommodation as well as curfews and other restrictions on campus.
They broke through police barricades and police had to close three metro stations because of the troubles, which first erupted last week when police fired water cannon on the students.
While the government said it had created a three-member panel to hold talks with the students, the demonstrators have said they will not stop their action until the fee hike is rescinded.
"We will not end the protest till the police release the students who have been detained," added one protester, who only gave his name as Jitendra.
Teachers at the university have voiced concern over the way the government and police were handling what they called "peaceful" protests.


Voters Have Their Minds Made Up About Impeachment: Poll
by JON PARTON(CN) – As open hearings in President Donald Trump’s impeachment inquiry began on Capitol Hill, a poll released Wednesday finds that most voters have already made up their minds and are unlikely to change their opinion about impeachment.
The Politico/Morning Consult poll shows that 62% of voters supporting or opposing impeachment say nothing in the inquiry will change their minds. Only 19% said there is a “small chance” that their opinions could change, while 8% said there’s “some chance” and 2% who said there is a “strong chance.”
The poll comes as members of the House Intelligence Committee questioned top U.S. diplomats William Taylor and George Kent about the president withholding security aide to Ukraine in exchange for dirt on his political opponent, former Vice President Joe Biden.
Even as the major TV and cable news networks plan to devote coverage to the hearings, a third of respondents said they’re not likely to watch the broadcasts. Another 31% said it’s “somewhat likely” they’ll watch the proceedings, while only 27% said it’s “very likely.”
Support for the impeachment inquiry remains strong as 50% say they support it in the new poll, compared to 44% in opposition. In last month’s poll, 50% of those surveyed said they supported the inquiry while 41% said they opposed it.
As with previous polls, support for the inquiry runs along party lines, with 82% support among Democrats and 81% opposition from Republicans. Among independent voters, 47% support the inquiry while 37% oppose it.
When asked if President Trump “abused his power to influence the 2020 election,” 49% said they believe he did compared to 34% who said he “was acting within his power as president.”
Regardless of their opinion on the impeachment inquiry and Trump’s likelihood of wrongdoing, a majority of those surveyed said they don’t expect the president to be removed from office. Sixty-two percent of respondents said they don’t believe it’s likely that the Senate will vote to remove Trump even if the House votes to impeach. Just 8% said the Senate is “very likely” to remove him.
The impeachment inquiry will continue Friday when Marie Yovanovitch, former U.S. ambassador to Ukraine is expected to testify.
Copyright © 2019 courthousenews.com


{# nxpy documentation --------------------------------------------------------- Copyright Nicola Musatti 2012 Use, modification, and distribution are subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt) See http://nxpy.sourceforge.net for library home page. --------------------- #}


Responsive Css for a web site will increase a websites visitors by attracting the mobile and tablet visitors also along with the vistors who enjoy thier post in desktop version.Now the number of people who are using the tablets and mobiles to browse the web are increasing.Hence a web page layout should be adaptable for all the view port of the device in which the visitor views the webpage.Some of the tips and tricks for the designers to keep in mind when they design a responsive webpages are given below.This will be a prefect resource for responsive web design tutorial in web. First we should look at a website with responsive layout for inspiration and could analyse what all the things that are followed in it. In web there are lots of good responsive websites.One among is http://danielvane.com/ . Designer has really worked on its flexiblity.


{% extends 'portal.html' %} {% block title %} {{assessment}} | Literature Review | HAWC {% endblock %} {% block breadcrumbs %}
{{ need_import_count }} reference{{ need_import_count|pluralize }} marked for inclusion {{ need_import_count|pluralize:"is,are" }} ready for study evaluation and/or data-extraction. Prepare references
References manually added: {{manual_import.references.count}}
{% endblock %} {% block extrajs %} {% endblock extrajs %}


The parameter button is set depending on the current mode. In "single-button mode" (where the mouse is treated like a one-button mouse), button is set to 0 if all the mouse buttons are up, and 1 if any of the mouse buttons are down. In "multi-button mode", button is assigned the sum of 1 if the left button is down, 10 if the middle button is down, and 100 if the right button is down. Thus if button has the value of 101, then it means that the left and right mouse buttons were depressed.
var x, y, button : int
loop
Mouse.Where (x, y, button)
Text.Locate (1, 1)
if button = 0 then
put x : 4, " ", y : 4, " button up"
else
put x : 4, " ", y : 4, " button down"
end if
end loop
This means that you can only call the function by calling Mouse.Where, not by calling Where.


The pages is contained with landing page and about page without forgeting mentioning gallery page. This was about getting used to HTML and CSS. So, its fun of coding, just thinking idea and get down to the job create! I used the following technology
For more information on Github click Here
In any case, I would like to start appreciating you for granting me to join this Course. It is very potential to and I needed some new skills which will make me a competitive developer who can go out and strive what he has and try to solve a real problem for society.


Meta Commands
|
|
Backup DB (default "main") to FILE |
|
|
Stop after hitting an error. Default OFF |
|
|
List names and files of attached databases |
|
|
Dump the database in an SQL text format. |
|
|
Turn command echo on or off |
|
|
Exit this program |
|
|
Turn output mode suitable for EXPLAIN on or off. |
|
|
Turn display of headers on or off |
|
|
Shows this information. |
|
|
Import data from FILE into TABLE |
|
|
Show names of all indices |
|
|
Load an extension library |
|
|
Turn logging on or off. FILE can be stderr/stdout |
|
|
Set output mode where MODE is one of: csv, column, html, insert, line, list, tabs, tcl |
|
|
Print STRING in place of NULL values |
|
|
Send output to FILENAME |
|
|
Send output to the screen |
|
|
Replace the standard prompts |
|
|
Exit this program |
|
|
Execute SQL in FILENAME |
|
|
Restore content of DB (default "main") from FILE |
|
|
Show the CREATE statements |
|
|
Change separator used by output mode and .import |
|
|
Show the current values for various settings |
|
|
Turn stats on or off |
|
|
List names of tables |
|
|
Try opening locked tables for MS milliseconds |
|
|
Set column widths for "column" mode |
|
|
Turn the CPU timer measurement on or off |
Options
|
|
Read and execute commands from file , which can contain a mix of SQL statements and meta-commands. |
|
|
Print commands before execution. |
|
|
Turn headers on or off. |
|
|
Stop after hitting an error. |
|
|
Force interactive I/O . |
|
|
Force batch I/O . |
|
|
Query results will be displayed in a table like form, using whitespace characters to separate the columns and align the output. |
|
|
Set output mode to CSV (comma separated values). |
|
|
Query results will be output as simple HTML tables. |
|
|
Query results will be displayed with one value per line, rows separated by a blank line. Designed to be easily parsed by scripts or other programs |
|
|
Query results will be displayed with the separator (|, by default) character between each field value. The default. |
|
|
Set output field separator. Default is "|". |
|
|
Print memory stats before each finalize. |
|
|
Set string used to represent NULL values. Default is (empty string). |
|
|
Show SQLite version. |
|
|
Use name as the default VFS . |
|
|
Show help on options and exit. |
Notes
- Based on sqlite3 cheat sheet by richardjh


Class: PushNotifications
- Inherits:
-
Object
- Object
- PushNotifications
- Defined in:
- lib/resources/push_notifications.rb
Overview
Manage subscriptions of push notifications / web hooks / REST hooks about data changes. A subscription means a designated HTTP(S) endpoint which will receive a request every time a certain event happens on your Pipedrive account. E.g. when you have subscribed to receive events about all new deals ('deal.added'), this HTTP(S) will receive a request per each such event. See app.pipedrive.com/push_notifications#dialog:/push_notifications/help for detailed documentation of web hooks.


How do we make predictions of stock prices?
We here at StockStockr use a variety of machine learning algorithms to analyze the historical data of a stock. By analyzing how a stock has done in the past,
we can make some assumptions as to how it will preform in the future. While this is not a 100% accurate (nothing ever is) it does help compile many factors and provide a well educated prediction.
Below
is a line graph that appends the latest stock data (in black) with predicted data points (in green). This graph can help you visualize the general trend of a stock.
Our goal at StockStockr is to provide benefical stock analysis to individuals who may not have the time to do so on their own. It is not meant to be a magic machine that spits out money.
This is why we combine this method with other forms of analysis so that you can get a better look at the big picture surrounding a given stock.


- Focus on what you can control.
- "You become what you give your attention to." — Epictetus
- "We suffer more in imagination than in reality." — Seneca
- You can’t learn what you think you already know.
- Stop waiting to demand the best for yourself.
- "Be tolerant with others and strict with yourself." — Marcus Aurelius
- "Don’t explain your philosophy. Embody it." — Epictetus
- Associate only with people who improve you.
- "The greatest remedy for anger is delay." — Seneca
- Value time more than possessions.
- You always own the option of having no opinion.
- "Never be overheard complaining...even to yourself." — Marcus Aurelius
- Most of what we say and do is not essential.
- Difficulties show a person's character.
- "Limit yourself to the present." — Marcus Aurelius
- Receive without pride, let go without attachment.
- Stop caring about what other people say, think, or do.
- Anxiety is within you and your perceptions, not outside.
- Focus on effort, not results.
- To improve, you have to be OK with looking foolish.
- Build a life you don't need to escape from.
- "Don't be ashamed of needing help." — Marcus Aurelius
- No one can make you upset—you choose to be.
- Never look outside yourself for approval.
- Every human being is an opportunity for kindness.
- Say no to the things that don’t matter, so you can say yes to the things that do.
- Think progress, not perfection.
- Keep learning…to the end of your life.
- The obstacle is the way.
- Death is not in the distant future. We are dying every day.
credit -
ryan holiday


I'm a 17 year old lad from a small town in the middle of England, and have had experiences with Ecstasy, Speed, Cocaine, Ketamine, Mushrooms, Nutmeg and Salvia and am a heavy weed smoker. I had had the day off prior to the experience, and had taken 120mg of fexofenadine to control hay fever about 12 hours before ingesting the Tram.
Last night, I tried to get my hands on some Ecstasy, but after chasing several people down, it became apparent that there was no pills available in my small town. So a good friend T1 and I sat down in front of the TV, feeling quite let down, as we always do when the excitement of perhaps rolling that night becomes less and less likely. So we rolled a few joints (Soap bar hash cut with tobacco) and went out and smoked them, and as we walked back to my house, another good friend T2 rang T1, and told him he was outside my house. So we greeted him, talked about the gig he had been to earlier that night, and then when we told him about being let down about the E, he reminded us that a guy he had met in Macclesfield had given him 10 50mg Tramadol tablets, so being the kind of people we are, any state of mind that isn't sober is a bonus, we agreed to give them a try.
Now T2 had told us about the Tramadol a few days earlier, but when I tried to research more on the internet, I could not properly recall the name of the drug, and looked at a few different ones, and was a bit unsure about the whole thing. The guy that had given him the tram said 'try 1 at first, and if you like that, then try 3.' After a few minutes, I decided that I would insufflate the contents of 2 capsules. Here's how it went.
T+00HRS
All 3 of us have a 100mg pile of tram, I cut mine into 2 lines, while T1 cut his into 1 roughly 25 - 40mg line, and left the rest in the pile, and T2 cut his pile into 3 lines, as it was his first time snorting anything.  Any slight throat movement (breathing, swallowing) caused a very unpleasant chemical burning sensation where your nostrils connect to the back of your mouth. I snorted the second line roughly 5 minutes later, but snorted a small line of water immediately afterwards and that proved very affective in reducing pain. T1 and T2 both snorted there lines and found it that painful that T1 did not want to ingest any more of the tram because of the awful taste, and T2 found it quite unpleasant, so he scraped the rest of his powder and T1's powder into a glass with a mouth full of apple juice and necked it, which was a lot easier because the taste of the tram was covered by the strong taste of apple.
T+00:15
T1 Roles a joint, and we went out and smoked it. Effects include a sense of well being, feeling light and floaty, and slightly dopey/dizzy. After the joint was smoked, vision became picture-like, and colours became slightly brighter.
T+00:30
My vision has become very strange, whilst looking at something, a part of what I would be looking at would seem as if it shouldn't be there, looking unreal, but definitely not a hallucination. Long deep tunnels of thought start, and a noticeable desire to stay awake, even though I feel tired.
T+01:00
Tunnels of thought get to the point where I will think about something, then forget what I am doing and believe I am part of my thought, and then remember that I am sat in a chair watching TV and be thrust back into reality, I get this when trying to get to sleep when coming down off E. Just laying back and closing my eyes becomes quite attractive, and leaves me in a very warm and calm state of mind.
Effects stayed similar for the next 2 hours, and then I decided to take 100mg oral, by emptying the capsules into a drink. No noticeable effects were gained by doing this, and then I went to bed about 2 hours later. I slept for 2 hours then awoke as if I had slept for 20, completely refreshed, except for a confusing and clumsy come down, smoking tobacco over the next few days proved nice, giving a very stony feeling for approximately 5 minutes. No real trouble working or doing anything else though. I think I'd definitely try it again if it was offered.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


--- layout: default ---
In 2015 I was involved, with two other students from the Bocconi University, in the development of a new platform to promote the encounter between students and tutors, creating a new form of tutoring, a "Tutoring 2.0". (http://www.tenbuilders.it)
The idea that drove us is that tutoring can be extremely expensive and even unreliable in terms of expected outcome (i.e. grades). With Tenbuilders we wanted to create a platform in which only fresh, selected tutors can offer their knowledge of different areas of expertise for a modest price between 10-18€. The tutoring system was active in three main cities in Italy (Milan, Rome, Florence) and could be arranged via Skype call too.
For what concerns the development of the platform, we relied on a Wordpress theme with some useful plugins to build the front-end. The backend was simply a MySQL database with tutors records which were retrieved whenever a customer was looking for a tutoring session. We also used newly introduced CSS3 transitions to enhance the user experience in a lightweight way.
I also supervised the design of the platform, creating the logo which shows a "10" that is slowly built by solid bricks. This represents clearly the message of our platform: solid academic success can be achieved following the guidance of our tutors.


I started doing hackathons in 2013 and as of writing this I've completed 14 hackathons in total.
Here are some of the projects I worked on!
“Cue is a virtual reality tool designed to stamp out gender bias in the workplace. Our aim was to unearth hidden prejudices by plunging users into a scenario-based, immersive VR environment.” [News Link]
“Artemis is an Amazon Alexa experience that changes the way you engage in fitness and meal tracking. Just tell Artemis that you ate something, and she'll automatically record it for you, retrieve all pertinent nutrition information, and see how it stacks up with your daily goals.” [Devpost Link]
“Echo Chef guides you through recipes interactively, think of it as your personal assistant in the kitchen. Just add your favorite recipes to our web interface and they'll be available on your Amazon Echo! Ask for step by step instructions, preheat temperatures, and more!” [Devpost Link]
“Whiteboard Learning is a platform for classroom communities that utilizes both mobile devices and All in One PCs.”
“FitTV is a fitness application created for the Android TV that uses the motion and gesture capabilities of the Myo armband to keep count of your reps and ensure that you're performing the correct motions."
“Parsly allows users to retrieve important email data with only 1 bar of 2G data. Our PHP server in the background constantly polls for any text messages from your phone number and if it detects a valid command such as 'amazon' or 'itinerary' it will parse through your emails and send you the details that you want see.”
“SMS 911 is an android application made with public safety in mind. Send your contact information, location, and emergency situation to 911 operators in just three taps. Ideal for situations where time is limited or the user is unable to speak due to emergency circumstances. ”
“Project Eli is a webcam hack incorporated into a target practice game. Using real tennis balls, a projector, a screen, and a webcam, Project Eli is a game that projects moving targets onto the screen, making them appear life-sized. The player throws the balls at the targets on the screen and the webcam detects a "hit" or a "miss".”
“Envolve is a discussion platform for campus members to engage in honest conversations toward collectively building a sustainable university experience for all.”
“Coupinions is an android app where users vote on a few daily polls to earn easy-to-use coupons. Simple polls, instant mobile coupons on your phone. Perfect for a college student on the go. ”


Start the restservice which, by default, runs on port 18123. Once its running you can then perform JSONP requests by pressing the buttons below.


Before you can submit projects, your profile must be approved. Your profile is now waiting to be approved by one of our admins. Please try again in 24-48 hours.


Tuesday, May 4, 2017
Math Theory 101
Explore the latest in math theory.
Covers basic algebra and geometry concepts including number systems, polynomials, solving equations and inequalities, graphs, functions, lines, system of equations, sets and operations, ratios, proportions, measurement and percents.


Toggle navigation
Storyboards
Illustrations
Characters
Sketches
About Me
Contact
Contact Me
Amanda DePasquale<EMAIL_ADDRESS>Loading...


There is always a risk, at Hooting Yard, of creeping monomania. A bee finds its way into my bonnet, and buzzes about. Fortunately for readers, and for my own sanity, the bee tends to buzz off after a few hours or days and things get back to normal.
That by way of preamble to a note which might lead some to think this place has become AntiFry Central. The Most Intelligent Life-Form In The Known Universe was interviewed on BBC's Newsnight yesterday—mercifully briefly—about the MPs' expenses hoo-hah. He claimed that everybody, including himself, fiddled their expenses, that it was nothing to get worked up about, and that making a fuss about it was “bourgeois”. (This while suited and booted in black tie for some event he was attending.) Oh, how we vomited here at Haemoglobin Towers!
I have a new heroine, however. Back in the studio, discussing the same topic, the MP Kate Hoey referred contemptuously to “that actor, whoever he is” and how he was talking twaddle. Gold star for her.


I'm
so incredibly enourmously
extremely greatly hugely awfully
terribly exceptionally immensely
highly hugely intensely severely
terrifically totally violently very
Sorry!
... we failed to load this page ...


npm NodeJS / express / JADE HTML / CSS / JS JWT
Staffbase Plugins Client SDK for JavaScript
1. include: https://unpkg.com/@staffbase/plugins-client-sdk
2. declare: var PluginSDK = window['plugins-client-sdk'];
All links to external pages have the following attribute in order to open externally on desktop & native devices:
onclick="PluginSDK.openLinkExternal('LINK')"
* not included in Staffbase SDKs/dependencies
| Attribute | Value | |
|---|---|---|
| First Name | Daniel | |
| Last Name | Grosse | |
| Full Name | Daniel Grosse | |
| Role1 | editor | |
| Locale | lv_LV | |
| Staffbase User ID | 5f58a43f79dc23375a2881df | |
| User External ID |<EMAIL_ADDRESS>| |
| Primary Email Address2 |<EMAIL_ADDRESS>| |
| Username2 | ||
| Type3 | user | |
| Tags |
There are no tags. |
|
| Theme Text Color | #FFFFFF | |
| Theme Background Color | #00A4FD |
| Attribute | Value |
|---|---|
| Instance ID | 605c8323f828444c61394d75 |
| Instance Name | xxx |
| Attribute | Value | |
|---|---|---|
| Claim Audience | maximizeit.msacustomplugin | |
| Expire At | Thu Mar 25 2021 12:43:19 GMT+0000 (Coordinated Universal Time) |<PHONE_NUMBER> |
| Valid Not Before | Thu Mar 25 2021 12:43:19 GMT+0000 (Coordinated Universal Time) |<PHONE_NUMBER> |
| Issued At | Thu Mar 25 2021 12:43:19 GMT+0000 (Coordinated Universal Time) |<PHONE_NUMBER> |
| Issuer | staffbase-backend-dev | |
| Subject | 5f58a43f79dc23375a2881df |


Guard Jerin:
the mages of the Ivory Tower joined with the Elves to build the Protection Tower at the center of the Sea of Spores. It was supposedly erected to halt the spread of the Sea of Spores but there is no evidence it is working... I think it more likely they are up to something...
Return


Portfolio
See my GitHub Profile
Click the link to see my GitHub Profile and several links to coding examples
Link to GitHub ProfileWeather Tracker
Click on the buttons below to see the deployed application. Click the link below that one to see the code.
Link to deployed application Link to GitHub repositoryVideo Game Suggester
Enter your criteria to find video games you might like. The first link is to the deployed application. The one below it is to the repository. I worked on mainly the Javascript and my teammate the CSS and HTML.
Link to deployed application Link to repository If Chicken Coop endpoint is still down, use this link to see productSimple Scheduler
Click on the buttons below to see the deployed application. Click the link below that one to see the code.
Link to deployed application Link to GitHub repositoryBurger Logger
Enter your favorite burgers. Watch them show up on the left hand side of the screen. This means they've not yet been eaten. Eat a burger by clicking on the button DEVOUR!.
Link to deployed application Link to GitHub repositoryForum Blog
This is a blog forum, similar to Reddit--you can post a comment about a subject and you can also comment on what other people have posted. Right now, there are three categories: Sports, Books, and Movies. Enjoy!
Link to deployed application Link to GitHub repository


We help to create your digital business
Architecture / Wireframing
Branding design
User experience flow
Wireframing / Architecture


Embracing the Truth is a ministry of Plainfield Christian Church. One of our goals is "to educate others regarding issues in our culture so that they, armed with God's Word and information concerning challenges to our faith and families, can act as God would have them act."
Everyone is looking for answers. Questions such as Who am I?; Why am I here?; Why is there evil and suffering?; Did I evolve, or was I created?; What is truth?; Are morals relative or absolute?; Can I ever be good enough?; What happens when I die? How can I really know anything for certain? Do I really believe what I believe is really real? Society offers many answers to these questions and many "seem" right. But are they? With so many answers to choose from, how does anyone really know for certain which answers are true? We created this site to help you.
We’ve scoured the web looking for solid, biblical answers to your questions. Simply click on button next to the question and you will be transported to a website that answers your question – biblically and truthfully.


Blair Athol and Edradour distilleries in Pitlochry... Awesome morning for a scotch drinker. cc/ @_SamG
5/10/2014, 7:20:36 AM
Favs: 1
Retweets: 0
link--- layout: tweet ---
Blair Athol and Edradour distilleries in Pitlochry... Awesome morning for a scotch drinker. cc/ @_SamG
5/10/2014, 7:20:36 AM
Favs: 1
Retweets: 0
link


Details
Approval:
Status:
Assignee:
Labels
[labels]
Description
Permissions
Choose users:
Authorized users:


{{entry.name}}
{{entry.country}}
Established in {{ entry.year_established }}
Some quick example text to build on the card title and make up the bulk of the cards content.


English
Action
Another action
Something else here
Create a free account
Welcome to Binance
Email
Mobile
Email
Password
I have read and agreed to the Terms of Service.
Binance's Terms
Create Account
Already registered?
Log In
© 2017-2021. All rights reserved


Enumerable Methods: Group_by
Grouping Collections based on Criteria
November 1, 2014
Enumerable methods provide collections, such as arrays or hashes, with several ways to select, sort, or transform the elements of the collection. One less discussed, but particularly useful methods the Enumerable#group_by method, which when used on an array, iterates through the collection, passing each element to the code block, which contains the criteria by which the array will be grouped. The resulting output is a hash where the key represents each of the groups and the value is an array with all the elements of the input array that fit within that criteria. Essentially, the code runs through each element within the array; based on the requirements, Ruby places it within that group.
Think of it like when you were in elementary school and the teacher has each of the students in the classroom count off from 1 through 5. All of the one’s were in one group, all the two’s in another, and so on. The criteria was which number you were. And each of the groups of students were the resulting arrays.
Example 1:
If you have a collection of numbers and you wanted to group them by a certain criteria, say whether they were odd or even, you can use the group_by method. You iterate through each element with a code block (in this case, x % 2). Those with no remainder would be even, those with a remainder of 1 would be odd.
- Key 0 corresponds with the value - an array that includes all the numbers that had a remainder of 1 when divided by 2 (or even numbers).
- Key 1 corresponds with the value - an array that includes all the numbers that had a remainder of 1 when divided by 2 (or odd numbers).
Example 2:
With a group of people, you can iterate through the array based on certain criteria. With the following example, I’ve split the individuals based on the number of characters in length. Then I've grouped the individuals based on whether they had the letter "o" within their names
- Key 5 includes people whose names have 5 characters in length.
- Key 6 includes those whose names have 6 characters in length.
- Key False includes those who don't have the letter "o" in their names
- Key True includes those who do have the letter "o" in their names


|
Embedded Artistry Framework
Embedded Systems C++ Framework
|
Functions | |
| int | fls (int mask) |
| Finds the last (most significant) bit set in the given mask. More... | |
| int | flsl (long mask) |
| Finds the last (most significant) bit set in the given mask. More... | |
| int | flsll (long long mask) |
| Finds the last (most significant) bit set in the given mask. More... | |
| int fls | ( | int | mask | ) |
Finds the last (most significant) bit set in the given mask.
Finds the last (most significant) bit set in the given (int) mask and return the index of that bit.
Bits are numbered starting at 1, the least significant bit.
| mask | The bit mask |
| int flsl | ( | long | mask | ) |
Finds the last (most significant) bit set in the given mask.
Finds the last (most significant) bit set in the given (long) mask and return the index of that bit.
Bits are numbered starting at 1, the least significant bit.
| mask | The bit mask |
| int flsll | ( | long long | mask | ) |
Finds the last (most significant) bit set in the given mask.
Finds the last (most significant) bit set in the given (long long) mask and return the index of that bit.
Bits are numbered starting at 1, the least significant bit.
| mask | The bit mask |


{% extends "dbkeeper/student_test_base.html" %} {% block title %}Test Links {{ entity|title }}{% endblock %} {% block header %}Test Links {{ entity|title }}{% endblock %} {% block main %} {% csrf_token %}
Use SHIFT + Left Mouse and CTL + Left Mouse to select
multiple stations from the Station list.


Welcome to the Menu for the Western Deli
This site is currently under heavy construction, so it should not be any surprise that this site will change dramatically all the time. Please bear with us. Thank you for your patience
To go directly to the menu, click This link or the Menu link in the navigation bar at the top of the page


Ruleset Controversial Rules
Language -
Description
The Controversial Ruleset contains rules that, for whatever reason, are considered controversial. They
are separated out here to allow people to include as they see fit via custom rulesets. This ruleset was
initially created in response to discussions over UnnecessaryConstructorRule which Tom likes but
most people really dislike :-)
Rule UnnecessaryConstructor::
TOC
Description
This rule detects when a constructor is not necessary; i.e., when there's only one constructor,
it's public, has an empty body, and takes no arguments.
- Message
- Avoid unnecessary constructors - the compiler will generate these for you
- Class
- net.sourceforge.pmd.rules.XPathRule
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#UnnecessaryConstructor
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class Foo {
public Foo() {}
}
Properties
Following properties are defined:
- Name
- xpath
- Description
- -
- Value
-
//ClassOrInterfaceBody[count(ClassOrInterfaceBodyDeclaration/ConstructorDeclaration)=1]
/ClassOrInterfaceBodyDeclaration/ConstructorDeclaration
[@Public='true']
[not(FormalParameters/*)]
[not(BlockStatement)]
[not(NameList)]
[count(ExplicitConstructorInvocation/Arguments/ArgumentList/Expression)=0]
TOC
Rule NullAssignment::
TOC
Description
Assigning a "null" to a variable (outside of its declaration) is usually
bad form. Some times, the assignment is an indication that the programmer doesn't
completely understand what is going on in the code. NOTE: This sort of assignment
may in rare cases be useful to encourage garbage collection. If that's what you're using
it for, by all means, disregard this rule :-)
- Message
- Assigning an Object to null is a code smell. Consider refactoring.
- Class
- net.sourceforge.pmd.rules.design.NullAssignmentRule
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#NullAssignment
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class Foo {
public void bar() {
Object x = null; // This is OK.
x = new Object();
// Big, complex piece of code here.
x = null; // This is BAD.
// Big, complex piece of code here.
}
}
TOC
Rule OnlyOneReturn::
TOC
Description
A method should have only one exit point, and that should be the last statement in the method.
- Message
- A method should have only one exit point, and that should be the last statement in the method
- Class
- net.sourceforge.pmd.rules.design.OnlyOneReturnRule
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#OnlyOneReturn
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class OneReturnOnly1 {
public void foo(int x) {
if (x > 0) {
return "hey"; // oops, multiple exit points!
}
return "hi";
}
}
TOC
Rule UnusedModifier::
TOC
Description
Fields in interfaces are automatically public static final, and
methods are public abstract.
Classes or interfaces nested in an interface are automatically public
and static (all nested interfaces are automatically static).
For historical reasons, modifiers which are implied by the context
are accepted by the compiler, but are superfluous.
- Message
- Avoid modifiers which are implied by the context
- Class
- net.sourceforge.pmd.rules.UnusedModifier
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#UnusedModifier
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public interface Foo {
public abstract void bar(); // both abstract and public are ignored by the compiler
public static final int X = 0; // public, static, and final all ignored
public static class Bar {} // public, static ignored
public static interface Baz {} // ditto
}
public class Bar {
public static interface Baz {} // static ignored
}
TOC
Rule AssignmentInOperand::
TOC
Description
Avoid assignments in operands; this can make code more complicated and harder to read.
- Message
- Avoid assignments in operands
- Class
- net.sourceforge.pmd.rules.AssignmentInOperand
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#AssignmentInOperand
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class Foo {
public void bar() {
int x = 2;
if ((x = getX()) == 3) {
System.out.println("3!");
}
}
private int getX() {
return 3;
}
}
TOC
Rule AtLeastOneConstructor::
TOC
Description
Each class should declare at least one constructor.
- Message
- Each class should declare at least one constructor
- Class
- net.sourceforge.pmd.rules.XPathRule
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#AtLeastOneConstructor
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class Foo {
// no constructor! not good!
}
Properties
Following properties are defined:
- Name
- xpath
- Description
- -
- Value
-
//ClassOrInterfaceDeclaration
[not(ClassOrInterfaceBody/ClassOrInterfaceBodyDeclaration/ConstructorDeclaration)]
[@Interface='false']
TOC
Rule DontImportSun::
TOC
Description
Avoid importing anything from the 'sun.*' packages. These packages are not portable and are likely to change.
- Message
- Avoid importing anything from the 'sun.*' packages
- Class
- net.sourceforge.pmd.rules.imports.DontImportSun
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#DontImportSun
- TypeResolution
- -
- Priority
- 4
Example
Example code snippet of this rule.
import sun.misc.foo;
public class Foo {}
TOC
Rule SuspiciousOctalEscape::
TOC
Description
A suspicious octal escape sequence was found inside a String literal.
The Java language specification (section 3.10.6) says an octal
escape sequence inside a literal String shall consist of a backslash
followed by:
OctalDigit | OctalDigit OctalDigit | ZeroToThree OctalDigit OctalDigit
Any octal escape sequence followed by non-octal digits can be confusing,
e.g. "\038" is interpreted as the octal escape sequence "\03" followed by
the literal character "8".
- Message
- Suspicious decimal characters following octal escape in string literal
- Class
- net.sourceforge.pmd.rules.SuspiciousOctalEscape
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#SuspiciousOctalEscape
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class Foo {
public void foo() {
// interpreted as octal 12, followed by character '8'
System.out.println("suspicious: \128");
}
}
TOC
Rule CallSuperInConstructor::
TOC
Description
It is a good practice to call super() in a constructor. If super() is not called but
another constructor (such as an overloaded constructor) is called, this rule will not report it.
- Message
- It is a good practice to call super() in a constructor
- Class
- net.sourceforge.pmd.rules.XPathRule
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#CallSuperInConstructor
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class Foo extends Bar{
public Foo() {
// call the constructor of Bar
super();
}
public Foo(int code) {
// do something with code
this();
// no problem with this
}
}
Properties
Following properties are defined:
- Name
- xpath
- Description
- -
- Value
-
//ClassOrInterfaceDeclaration[ count (ExtendsList/*) > 0 ]
/ClassOrInterfaceBody
/ClassOrInterfaceBodyDeclaration
/ConstructorDeclaration[ count (.//ExplicitConstructorInvocation)=0 ]
TOC
Rule UnnecessaryParentheses::
TOC
Description
Sometimes expressions are wrapped in unnecessary parentheses,
making them look like a function call.
- Message
- This statement may have some unnecessary parentheses
- Class
- net.sourceforge.pmd.rules.XPathRule
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#UnnecessaryParentheses
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class Foo {
boolean bar() {
return (true);
}
}
Properties
Following properties are defined:
- Name
- xpath
- Description
- -
- Value
-
//ReturnStatement
/Expression
/PrimaryExpression
/PrimaryPrefix
/Expression[count(*)=1]
/PrimaryExpression
/PrimaryPrefix
TOC
Rule SingularField::
TOC
Description
A field that's only used by one method could perhaps be replaced by a local variable.
- Message
- Perhaps ''{0}'' could be replaced by a local variable.
- Class
- net.sourceforge.pmd.rules.SingularField
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#SingularField
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class Foo {
private int x;
public void foo(int y) {
x = y + 5;
return x;
}
}
TOC
Rule DefaultPackage::
TOC
Description
Use explicit scoping instead of the default package private level.
- Message
- Use explicit scoping instead of the default package private level
- Class
- net.sourceforge.pmd.rules.XPathRule
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#DefaultPackage
- TypeResolution
- -
- Priority
- 3
Properties
Following properties are defined:
- Name
- xpath
- Description
- -
- Value
-
//ClassOrInterfaceDeclaration[@Interface='false']
/ClassOrInterfaceBody
/ClassOrInterfaceBodyDeclaration
[
FieldDeclaration[@PackagePrivate='true']
or MethodDeclaration[@PackagePrivate='true']
]
TOC
Rule BooleanInversion::
TOC
Description
Use bitwise inversion to invert boolean values - it's the fastest way to do this.
See http://www.javaspecialists.co.za/archive/newsletter.do?issue=042&locale=en_US for specific details
- Message
- Use bitwise inversion to invert boolean values
- Class
- net.sourceforge.pmd.rules.XPathRule
- Reference
- -
- ExternalInfoUrl
- http://pmd.sourceforge.net/rules/controversial.html#BooleanInversion
- TypeResolution
- -
- Priority
- 3
Example
Example code snippet of this rule.
public class Foo {
public void main(bar) {
boolean b = true;
b = !b; // slow
b ^= true; // fast
}
}
Properties
Following properties are defined:
- Name
- xpath
- Description
- -
- Value
-
//AssignmentOperator[@Image="="]/../Expression/UnaryExpressionNotPlusMinus[@Image="!"]
TOC
Rule DataflowAnomalyAnalysis::
TOC
Description
The dataflow analysis tracks local definitions, undefinitions and references to variables on different paths on the data flow.
From those informations there can be found various problems.
1. UR - Anomaly: There is a reference to a variable that was not defined before. This is a bug and leads to an error.
2. DU - Anomaly: A recently defined variable is undefined. These anomalies may appear in normal source text.
3. DD - Anomaly: A recently defined variable is redefined. This is ominous but don't have to be a bug.
- Message
- Found ''{0}''-anomaly for variable ''{1}'' (lines ''{2}''-''{3}'').
- Class
- net.sourceforge.pmd.dfa.DaaRule
- Reference
- -
- ExternalInfoUrl
- -
- TypeResolution
- -
- Priority
- 5
Example
Example code snippet of this rule.
public class Foo {
public void foo() {
int buz = 5;
buz = 6; // redefinition of buz -> dd-anomaly
foo(buz);
buz = 2;
} // buz is undefined when leaving scope -> du-anomaly
}
Properties
Following properties are defined:
- Name
- maxviolations
- Description
- -
- Value
-
100
- Name
- maxpaths
- Description
- -
- Value
-
1000
TOC