synthetic module¶
-
class
simdna.synthetic.
AbstractApplySingleMutationFromSet
(setOfMutations, name=None)[source]¶ Bases:
simdna.synthetic.AbstractTransformation
Class for applying a single mutation from a set of mutations; used to transform substrings generated by another method
Parameters: - setOfMutations – instance of
AbstractSetOfMutations
- name – see
DefaultNameMixin
.
- setOfMutations – instance of
-
class
simdna.synthetic.
AbstractBackgroundGenerator
[source]¶ Bases:
object
Returns the sequence that
AbstractEmbeddable
objects are to be embedded into.
-
class
simdna.synthetic.
AbstractEmbeddable
[source]¶ Bases:
object
Represents a thing which can be embedded.
An
AbstractEmbeddable
+ a position = anEmbedding
-
canEmbed
(priorEmbeddedThings, startPos)[source]¶ Checks whether embedding is possible at a given pos.
Accepts an instance of
AbstractPriorEmbeddedThings
and astartPos
, and checks ifstartPos
is viable given the contents ofpriorEmbeddedThings
.Parameters: priorEmbeddedThings – instance of startPos: int; the position you are considering embedding self atReturns: A boolean indicating whether self can be embedded at startPos, given the things that have already been embedded.
-
embedInBackgroundStringArr
(priorEmbeddedThings, backgroundStringArr, startPos)[source]¶ Embed self in a background string.
Will embed self at
startPos
inbackgroundStringArr
, and will updatepriorEmbeddedThings
accordingly.Parameters: priorEmbeddedThings – instance of AbstractPriorEmbeddedThings
- backgroundStringArr: an array of characters representing
- the background
- startPos: integer; the position to embed self at
-
-
class
simdna.synthetic.
AbstractEmbeddableGenerator
(name)[source]¶ Bases:
simdna.synthetic.DefaultNameMixin
Generates an embeddable, usually for embedding in a background sequence.
-
generateEmbeddable
()[source]¶ Generate an embeddable object.
Returns: An instance of AbstractEmbeddable
-
-
class
simdna.synthetic.
AbstractEmbedder
(name)[source]¶ Bases:
simdna.synthetic.DefaultNameMixin
Produces
AbstractEmbeddable
objects and embeds them in a sequence.-
embed
(backgroundStringArr, priorEmbeddedThings, additionalInfo=None)[source]¶ Embeds things in the provided
backgroundStringArr
.Modifies backgroundStringArr to include whatever has been embedded.
Parameters: - backgroundStringArr – array of characters representing the background string
- priorEmbeddedThings – instance of
AbstractPriorEmbeddedThings
- additionalInfo – instance of
AdditionalInfo
; allows the embedder to send back info about what it did
Returns: The modifed
backgroundStringArr
-
-
class
simdna.synthetic.
AbstractLoadedMotifs
(fileName, pseudocountProb=0.0, background=OrderedDict([('A', 0.27), ('C', 0.23), ('G', 0.23), ('T', 0.27)]))[source]¶ Bases:
object
Class representing loaded PWMs.
A class that contains instances of
pwm.PWM
loaded from a file. The pwms can be accessed by name.Parameters: - fileName – string, the path to the file to load
- pseudocountProb – if some of the pwms have 0 probability for some of the positions, will add the specified
pseudocountProb
to the rows of the pwm and renormalise. - background – a dictionary with ACGT as the keys and the frequency as the values. Defaults to
util.DEFAULT_BACKGROUND_FREQ
-
getJsonableObject
()[source]¶ Get JSON object representation.
Returns: A json-friendly object (built of dictionaries, lists and python primitives), which can be converted to json to record the exact details of what was simualted.
-
getReadPwmAction
(recordedPwms)[source]¶ Action performed when each line of the pwm text file is read in.
This function is to be overridden by a specific implementation. It is executed on each line of the file when it is read in, and when PWMs are ready they will get inserted into
recordedPwms
.Parameters: recordedPwms – an OrderedDict
that will be filled with PWMs.The keys will be the names of the PWMs and the values will be instances of
pwm.PWM
-
class
simdna.synthetic.
AbstractPositionGenerator
(name)[source]¶ Bases:
simdna.synthetic.DefaultNameMixin
Generate a start position at which to embed something
Given the length of the background sequence and the length of the substring you are trying to embed, will return a start position to embed the substring at.
-
generatePos
(lenBackground, lenSubstring, additionalInfo=None)[source]¶ Generate the position to embed in.
Parameters: - lenBackground – int, length of background sequence
- lenSubstring – int, lenght of substring to embed
- additionalInfo – optional, instance of
AdditionalInfo
. Is used to leave a trace that this positionGenerator was called
Returns: An integer which is the start index to embed in.
-
-
class
simdna.synthetic.
AbstractPriorEmbeddedThings
[source]¶ Bases:
object
Keeps track of what has already been embedded in a sequence.
-
addEmbedding
(startPos, what)[source]¶ Records the embedding of a
AbstractEmbeddable
.Embeds
what
fromstartPos
tostartPos+len(what)
. Creates anEmbedding
object.Parameters: - startPos – int, the starting position at which to embed.
- what – instance of
AbstractEmbeddable
-
canEmbed
(startPos, endPos)[source]¶ Test whether startPos-endPos is available for embedding.
Parameters: - startPos – int, starting index
- endPos – int, ending index+1 (same semantics as array-slicing)
Returns: endPos is available for embedding
Return type: True if startPos
-
-
class
simdna.synthetic.
AbstractQuantityGenerator
(name)[source]¶ Bases:
simdna.synthetic.DefaultNameMixin
Class for sampling values from a distribution.
-
class
simdna.synthetic.
AbstractSequenceSetGenerator
[source]¶ Bases:
object
A generator for a collection of generated sequences.
-
class
simdna.synthetic.
AbstractSetOfMutations
(mutationsArr)[source]¶ Bases:
object
Represents a collection of
Mutation
objects.Parameters: mutationsArr – array of Mutation
objects
-
class
simdna.synthetic.
AbstractSingleSequenceGenerator
(namePrefix=None)[source]¶ Bases:
object
Generate a single sequence.
Parameters: namePrefix – the GeneratedSequence object has a field for the object’s name; this is the prefix associated with that name. The suffix is the value of a counter that is incremented every time -
generateSequence
()[source]¶ Generate the sequence.
Returns: An instance of GeneratedSequence
-
-
class
simdna.synthetic.
AbstractSubstringGenerator
(name)[source]¶ Bases:
simdna.synthetic.DefaultNameMixin
Generates a substring, usually for embedding in a background sequence.
-
generateSubstring
()[source]¶ Returns: A tuple of (string, stringDescription)
; the result can bewrapped in an instance of
StringEmbeddable
.stringDescription
is a short descriptor that does not contain spaces and may be prefixed in front of string when generating the __str__ representation forStringEmbeddable
.
-
-
class
simdna.synthetic.
AbstractTransformation
(name)[source]¶ Bases:
simdna.synthetic.DefaultNameMixin
Class representing a transformation applied to a character array.
Takes an array of characters, applies some transformation.
-
class
simdna.synthetic.
AdditionalInfo
[source]¶ Bases:
object
Used to keep track of which embedders/ops were called and how many times.
- An instance of AdditionalInfo is meant to be an attribute of
- a
GeneratedSequence
object. It keeps track of things like embedders, position generators, etc. - Has self.trace which is a dictionary from operatorName->int
- and which records operations that were called in the process of embedding things in the sequence. At the time of writing, operatorName is typically just the name of the embedder.
-
class
simdna.synthetic.
AllEmbedders
(embedders, name=None)[source]¶ Bases:
simdna.synthetic.AbstractEmbedder
Wrapper around a list of embedders that calls each one in turn.
Useful to nest under a
RandomSubsetOfEmbedders
Parameters: embedders – an iterable of AbstractEmbedder
objects.
-
class
simdna.synthetic.
BernoulliQuantityGenerator
(prob, name=None)[source]¶ Bases:
simdna.synthetic.AbstractQuantityGenerator
Generates 1 or 0 according to a bernoulli distribution.
Parameters: prob – probability of 1
-
class
simdna.synthetic.
BestHitPwm
(pwm, bestHitMode='pwmProb', name=None)[source]¶ Bases:
simdna.synthetic.AbstractSubstringGenerator
Always return the best possible match to a
pwm.PWM
when called.Parameters: - pwm – an instance of
pwm.PWM
- bestHitMode – one of the values in
pwm.BEST_HIT_MODE
. IfpwmProb
then the best match will be determined according what is most likely to be sampled from the pwm matrix (this is the default). If
logOdds
, then the best match will be determined according to what would result in the best match according to the log-odds matrix (so, taking the background into account).name: seeDefaultNameMixin
- pwm – an instance of
-
class
simdna.synthetic.
BestHitPwmFromLoadedMotifs
(loadedMotifs, motifName, bestHitMode='pwmProb', name=None)[source]¶ Bases:
simdna.synthetic.BestHitPwm
Instantiates
BestHitPwm
using aLoadedMotifs
file. Analogous toPwmSamplerFromLoadedMotifs
.
-
class
simdna.synthetic.
ChooseMutationAtRandom
(setOfMutations, name=None)[source]¶ Bases:
simdna.synthetic.AbstractApplySingleMutationFromSet
Selects a mutation at random from self.setOfMutations to apply.
-
class
simdna.synthetic.
ChooseValueFromASet
(setOfPossibleValues, name=None)[source]¶ Bases:
simdna.synthetic.AbstractQuantityGenerator
Randomly samples a particular value from a set of values.
Parameters: setOfPossibleValues – array of values that will be randomly sampled from.
name: seeDefaultNameMixin
.
-
class
simdna.synthetic.
DefaultNameMixin
(name)[source]¶ Bases:
object
Basic functionality for classes that have a self.name attribute.
The self.name attribute is typically used to leave a trace in an instance of
AdditionalInfo
Parameters: name – string
-
class
simdna.synthetic.
EmbedInABackground
(backgroundGenerator, embedders, namePrefix=None)[source]¶ Bases:
simdna.synthetic.AbstractSingleSequenceGenerator
Generate a background sequence and embed smaller sequences in it.
Takes a backgroundGenerator and a series of embedders. Will generate the background and then call each of the embedders in succession. Then returns the result.
Parameters: - backgroundGenerator – instance of
AbstractBackgroundGenerator
- embedders – array of instances of
AbstractEmbedder
- namePrefix – see parent
-
generateSequence
()[source]¶ Produce the sequence.
Generates a background using self.backgroundGenerator, splits it into an array, and passes it to each of self.embedders in turn for embedding things.
Returns: An instance of GeneratedSequence
- backgroundGenerator – instance of
-
class
simdna.synthetic.
EmbeddableEmbedder
(embeddableGenerator, positionGenerator=<simdna.synthetic.UniformPositionGenerator object>, name=None)[source]¶ Bases:
simdna.synthetic.AbstractEmbedder
Embeds an instance of
AbstractEmbeddable
at a sampled pos.Embeds instances of
AbstractEmbeddable
within the background sequence, at a position sampled from a distribution. Only embeds at unoccupied positions.Parameters: - embeddableGenerator – instance of
AbstractEmbeddableGenerator
- positionGenerator – instance of
AbstractPositionGenerator
- embeddableGenerator – instance of
-
class
simdna.synthetic.
Embedding
(what, startPos)[source]¶ Bases:
object
Represents something that has been embedded in a sequence.
Think of this as a combination of an embeddable + a start position.
Parameters: - what – object representing the thing that has been embedded. Should have`` __str__`` and
__len__
defined. Often is an instance ofAbstractEmbeddable
- startPos – int, the position relative to the start of the parent sequence at which seq has been embedded
-
classmethod
fromString
(string, whatClass=None)[source]¶ Recreate an
Embedding
object from a string.Parameters: - string – assumed to have format:
description[-|_]startPos[-|_]whatString
, wherewhatString
will be provided towhatClass
- whatClass – the class (usually a
AbstractEmbeddable
) that will be used to instantiate the what from the whatString
Returns: The Embedding class called with
what=whatClass.fromString(whatString)
andstartPos=int(startPos)
- string – assumed to have format:
- what – object representing the thing that has been embedded. Should have`` __str__`` and
-
class
simdna.synthetic.
FixedQuantityGenerator
(quantity, name=None)[source]¶ Bases:
simdna.synthetic.AbstractQuantityGenerator
Returns a fixed number every time generateQuantity is called.
Parameters: quantity – the value to return when generateQuantity is called.
-
class
simdna.synthetic.
FixedSubstringGenerator
(fixedSubstring, name=None)[source]¶ Bases:
simdna.synthetic.AbstractSubstringGenerator
Generates the same string every time.
When generateSubstring() is called, always returns the same string. The string also serves as its own description
Parameters: - fixedSubstring – the string to be generated
- name – see
DefaultNameMixin
-
class
simdna.synthetic.
GenerateSequenceNTimes
(singleSetGenerator, N)[source]¶ Bases:
simdna.synthetic.AbstractSequenceSetGenerator
Call a
AbstractSingleSequenceGenerator
N times.Parameters: - singleSetGenerator – an instance of
AbstractSequenceSetGenerator
- N – integer, the number of times to call singleSetGenerator
- singleSetGenerator – an instance of
-
class
simdna.synthetic.
GeneratedSequence
(seqName, seq, embeddings, additionalInfo)[source]¶ Bases:
object
An object representing a sequence that has been generated.
Parameters: - seqName – string representing the name/id of the sequence
- seq – string representing the final generated sequence
- embeddings – an array of
Embedding
objects. - additionalInfo – an instance of
AdditionalInfo
-
class
simdna.synthetic.
InsideCentralBp
(centralBp, name=None)[source]¶ Bases:
simdna.synthetic.AbstractPositionGenerator
For embedding within only the central region of a background.
- Returns a position within the central region of a background
- sequence, sampled uniformly at random
Parameters: - centralBp – int, the number of bp, centered in the middle of the background, from which to sample the position. Is NOT +/- centralBp around the middle (is +/- centralBp/2 around the middle). If the background sequence is even and centralBp is odd, the shorter region will go on the left.
- name – string - see
DefaultNameMixin
-
class
simdna.synthetic.
IsInTraceLabelGenerator
(labelNames)[source]¶ Bases:
simdna.synthetic.LabelGenerator
LabelGenerator where labels match which embedders are called.
- A special kind of LabelGenerator where the names of the labels
- are the names of embedders, and the label is 1 if a particular embedder has been called on the sequence and 0 otherwise.
-
class
simdna.synthetic.
LabelGenerator
(labelNames, labelsFromGeneratedSequenceFunction)[source]¶ Bases:
object
Generate labels for a generated sequence.
Parameters: - labelNames – an array of strings that are the names of the labels
- labelsFromGeneratedSequenceFunction – function that accepts
an instance of
GeneratedSequence
and returns an array of the labels (eg: an array of ones and zeros indicating if the criteria for various labels are met)
-
generateLabels
(generatedSequence)[source]¶ calls self.labelsFromGeneratedSequenceFunction.
Parameters: generatedSequence – an instance of GeneratedSequence
-
class
simdna.synthetic.
LoadedEncodeMotifs
(fileName, pseudocountProb=0.0, background=OrderedDict([('A', 0.27), ('C', 0.23), ('G', 0.23), ('T', 0.27)]))[source]¶ Bases:
simdna.synthetic.AbstractLoadedMotifs
A class for reading in a motifs file in the ENCODE motifs format.
This class is specifically for reading files in the encode motif format - specifically the motifs.txt file that contains Pouya’s motifs (http://compbio.mit.edu/encode-motifs/motifs.txt)
Basically, the motif declarations start with a >, the first characters after > until the first space are taken as the motif name, the lines after the line with a > have the format: “<ignored character> <prob of A> <prob of C> <prob of G> <prob of T>”
-
class
simdna.synthetic.
MinMaxWrapper
(quantityGenerator, theMin=None, theMax=None, name=None)[source]¶ Bases:
simdna.synthetic.AbstractQuantityGenerator
Compress a distribution to lie within a min and a max.
Wrapper that restricts a distribution to only return values between the min and the max. If a value outside the range is returned, resamples until it obtains a value within the range. Warns every time it tries to resample 10 times without successfully finding a value in the correct range.
Parameters: quantityGenerator – instance of AbstractQuantityGenerator
.Used to draw samples from the distribution to truncate
theMin: can be None; if so will be ignored.
theMax: can be None; if so will be ignored.
-
class
simdna.synthetic.
Mutation
(index, previous, new, parentLength=None)[source]¶ Bases:
object
Represent a single bp mutation in a motif sequence.
Useful for creating simulations involving SNPs.
Parameters: - index – the position idx within the motif of the mutation
- previous – character, the previous base at this position
- new – character, the new base at this position after the mutation
- parentLength – optional; length of the motif. Used for assertion checks.
-
applyMutation
(stringArr)[source]¶ Set the base at the position of the mutation to the mutated value.
Modifies stringArr which is an array of characters.
Parameters: stringArr – an array of characters, which gets modified.
-
class
simdna.synthetic.
OutsideCentralBp
(centralBp, name=None)[source]¶ Bases:
simdna.synthetic.AbstractPositionGenerator
For embedding only OUTSIDE a central region of a background seq.
- Returns a position OUTSIDE the central region of a background sequence,
- sampled uniformly at random. Complement of InsideCentralBp.
Parameters: centralBp – int, the centralBp to avoid embedding in. See the docs for InsideCentralBp
for more details (this is the complement).
-
class
simdna.synthetic.
PairEmbeddable
(string1, string2, separation, embeddableDescription, nothingInBetween=True)[source]¶ Bases:
simdna.synthetic.AbstractEmbeddable
Embed two strings with some separation. To be deprecated.
To be deprecated in favour of PairEmbeddable_General.
Parameters: - string1 – first string to be embedded
- string2 – second string to be embedded
- separation – int of positions separating string1 and string2
- embeddableDescription – a concise descriptive string prefixed in front when generating a __str__ representation of the embeddable. Should not contain a hyphen.
- nothingInBetween – if true, then nothing else is allowed to be embedded in the gap between string1 and string2.
-
embedInBackgroundStringArr
(priorEmbeddedThings, backgroundStringArr, startPos)[source]¶ See superclass.
If
self.nothingInBetween
, then all the intervening positions between the two embeddables will be marked as occupied. Otherwise, only the positions occupied by the embeddables will be marked as occupied.
-
class
simdna.synthetic.
PairEmbeddableGenerator
(substringGenerator1, substringGenerator2, separationGenerator, name=None)[source]¶ Bases:
simdna.synthetic.AbstractEmbeddableGenerator
- Embed a pair of substrings with some separation. This class needs
- to be deprecated in favour of just using
PairEmbeddableGenerator_General
Parameters: - substringGenerator1 – instance of
AbstractSubstringGenerator
- substringGenerator2 – instance of
AbstractSubstringGenerator
- separationGenerator – instance of
AbstractQuantityGenerator
- name – string, see
DefaultNameMixin
-
class
simdna.synthetic.
PairEmbeddableGenerator_General
(embeddableGenerator1, embeddableGenerator2, separationGenerator, name=None)[source]¶ Bases:
simdna.synthetic.AbstractEmbeddableGenerator
- Embed a pair of embeddables with some separation. This class needs
- to eventually replace
PairEmbeddableGenerator
Parameters: - emeddableGenerator1 – instance of
AbstractEmbeddableGenerator
- embeddableGenerator2 – instance of
AbstractEmbeddableGenerator
- separationGenerator – instance of
AbstractQuantityGenerator
- name – string, see
DefaultNameMixin
-
class
simdna.synthetic.
PairEmbeddable_General
(embeddable1, embeddable2, separation, embeddableDescription, nothingInBetween=True)[source]¶ Bases:
simdna.synthetic.AbstractEmbeddable
Embed two embeddables with some separation.
Parameters: - embeddable1 – first embeddable to be embedded
- embeddable2 – second embeddable to be embedded
- separation – int of positions separating embeddable1 and embeddable2
- embeddableDescription – a concise descriptive string prefixed in front when generating a __str__ representation of the embeddable. Should not contain a hyphen.
- nothingInBetween – if true, then nothing else is allowed to be embedded in the gap between embeddable1 and embeddable2.
-
embedInBackgroundStringArr
(priorEmbeddedThings, backgroundStringArr, startPos)[source]¶ See superclass.
If
self.nothingInBetween
, then all the intervening positions between the two embeddables will be marked as occupied. Otherwise, only the positions occupied by the embeddables will be marked as occupied.
-
class
simdna.synthetic.
PoissonQuantityGenerator
(mean, name=None)[source]¶ Bases:
simdna.synthetic.AbstractQuantityGenerator
Generates values according to a poisson distribution.
Parameters: mean – the mean of the poisson distribution
-
class
simdna.synthetic.
PriorEmbeddedThings_numpyArrayBacked
(seqLen)[source]¶ Bases:
simdna.synthetic.AbstractPriorEmbeddedThings
A numpy-array based implementation of
AbstractPriorEmbeddedThings
.Uses a numpy array where positions are set to 1 if they are occupied, to determine which positions are occupied and which are not. See superclass for more documentation.
Parameters: seqLen – integer indicating length of the sequence you are embedding in
-
class
simdna.synthetic.
PwmSampler
(pwm, name=None)[source]¶ Bases:
simdna.synthetic.AbstractSubstringGenerator
Samples from a pwm by calling
self.pwm.sampleFromPwm
Parameters: - pwm – an instance of
pwm.PWM
- name – see
DefaultNameMixin
- pwm – an instance of
-
class
simdna.synthetic.
PwmSamplerFromLoadedMotifs
(loadedMotifs, motifName, name=None)[source]¶ Bases:
simdna.synthetic.PwmSampler
Instantiates a
PwmSampler
from aLoadedEncodeMotifs
file.Convenience wrapper class for instantiating
PwmSampler
by pulling the pwm.PWM object using the provided name from anAbstractLoadedMotifs
objectParameters: - loadedMotifs – instance of
AbstractLoadedMotifs
- motifName – string, name of a motif in
AbstractLoadedMotifs
- name – see
DefaultNameMixin
- loadedMotifs – instance of
-
class
simdna.synthetic.
RandomSubsetOfEmbedders
(quantityGenerator, embedders, name=None)[source]¶ Bases:
simdna.synthetic.AbstractEmbedder
Call some random subset of supplied embedders.
Takes a quantity generator that generates a quantity of embedders, and executes that many embedders from a supplied set, in sequence
Parameters: - quantityGenerator – instance of
AbstractQuantityGenerator
- embedders – a list of
AbstractEmbedder
objects
- quantityGenerator – instance of
-
class
simdna.synthetic.
RepeatedEmbedder
(embedder, quantityGenerator, name=None)[source]¶ Bases:
simdna.synthetic.AbstractEmbedder
Call an embedded multiple times.
Wrapper around an embedder to call it multiple times according to samples from a distribution. First calls
self.quantityGenerator
to get the quantity, then callsself.embedder
a number of times equal to the value returned.Parameters: - embedder – instance of
AbstractEmbedder
- quantityGenerator – instance of
AbstractQuantityGenerator
- embedder – instance of
-
class
simdna.synthetic.
RepeatedSubstringBackgroundGenerator
(substringGenerator, repetitions)[source]¶ Bases:
simdna.synthetic.AbstractBackgroundGenerator
Repeatedly call a substring generator and concatenate the result.
Can be used to generate variable-length sequences.
Parameters: - substringGenerator – instance of
AbstractSubstringGenerator
- repetitions – instance of
AbstractQuantityGenerator
. If pass an int, will create aFixedQuantityGenerator
from the int. This will be called to determine the number of times to generate a substring fromself.substringGenerator
Returns: The concatenation of all the calls to
self.substringGenerator
- substringGenerator – instance of
-
class
simdna.synthetic.
ReverseComplementWrapper
(substringGenerator, reverseComplementProb=0.5, name=None)[source]¶ Bases:
simdna.synthetic.AbstractSubstringGenerator
Reverse complements a string with a specified probability.
Wrapper around an instance of
AbstractSubstringGenerator
that reverse complements the generated string with a specified probability.Parameters: - substringGenerator – instance of .AbstractSubstringGenerator
- reverseComplementProb – probability of reverse complementation.
Defaults to 0.5.
name: seeDefaultNameMixin
.
-
class
simdna.synthetic.
RevertToReference
(setOfMutations, name=None)[source]¶ Bases:
simdna.synthetic.AbstractTransformation
For a series of mutations, reverts the supplied character to the reference (“unmutated”) string.
Parameters: - setOfMutations – instance of AbstractSetOfMutations
- name – see
DefaultNameMixin
.
-
class
simdna.synthetic.
SampleFromDiscreteDistributionSubstringGenerator
(discreteDistribution)[source]¶ Bases:
simdna.synthetic.AbstractSubstringGenerator
Generate a substring by sampling from a distribution.
If the “substrings” are single characters (A/C/G/T), can be used in conjunction with
RepeatedSubstringBackgroundGenerator
to generate sequences with a certain GC content.Parameters: discreteDistribution – instance of util.DiscreteDistribution
-
class
simdna.synthetic.
StringEmbeddable
(string, stringDescription='')[source]¶ Bases:
simdna.synthetic.AbstractEmbeddable
A string that is to be embedded in a background.
Represents a string (such as a sampling from a pwm) that is to be embedded in a background. See docs for superclass.
Parameters: - string – the core string to be embedded
- stringDescription – a short descriptor prefixed before the __str__ representation of the embeddable. Should not contain a hyphen.
-
embedInBackgroundStringArr
(priorEmbeddedThings, backgroundStringArr, startPos)[source]¶ See superclass.
-
classmethod
fromString
(theString)[source]¶ Generates a StringEmbeddable from the provided string.
Parameters: theString – string of the format stringDescription-coreString
. Will then return:StringEmbeddable(string=coreString, stringDescription=stringDescription)
Returns: An instance of StringEmbeddable
-
class
simdna.synthetic.
SubstringEmbeddableGenerator
(substringGenerator, name=None)[source]¶ Bases:
simdna.synthetic.AbstractEmbeddableGenerator
Generates a
StringEmbeddable
Calls
substringGenerator
, wraps the result in aStringEmbeddable
and returns it.Parameters: substringGenerator – instance of AbstractSubstringGenerator
-
class
simdna.synthetic.
SubstringEmbedder
(substringGenerator, positionGenerator=<simdna.synthetic.UniformPositionGenerator object>, name=None)[source]¶ Bases:
simdna.synthetic.EmbeddableEmbedder
Used to embed substrings.
Embeds a single generated substring within the background sequence, at a position sampled from a distribution. Only embeds at unoccupied positions
Parameters: - substringGenerator – instance of
AbstractSubstringGenerator
- positionGenerator – instance of
AbstractPositionGenerator
- name – see
DefaultNameMixin
.
- substringGenerator – instance of
-
class
simdna.synthetic.
TransformedSubstringGenerator
(substringGenerator, transformations, transformationsDescription='transformations', name=None)[source]¶ Bases:
simdna.synthetic.AbstractSubstringGenerator
Generates a substring and applies a series of transformations.
Takes a substringGenerator and a set of AbstractTransformation objects, applies the transformations to the generated substring
Parameters: - substringGenerator – instance of
AbstractSubstringGenerator
- transformations – an iterable of
AbstractTransformation
- transformationsDescription – a string that will be prefixed in front of
substringDescription
(generated bysubstringGenerator.generateSubstring())
to produce thestringDescription
. - name – see
DefaultNameMixin
.
- substringGenerator – instance of
-
class
simdna.synthetic.
UniformIntegerGenerator
(minVal, maxVal, name=None)[source]¶ Bases:
simdna.synthetic.AbstractQuantityGenerator
Randomly samples an integer from minVal to maxVal, inclusive.
Parameters: - minVal – minimum integer that can be sampled
- maxVal – maximum integers that can be sampled
- name – See superclass.
-
class
simdna.synthetic.
UniformPositionGenerator
(name=None)[source]¶ Bases:
simdna.synthetic.AbstractPositionGenerator
Sample position uniformly at random.
- Samples a start position to embed the substring in uniformly at random;
- does not return positions that are too close to the end of the background sequence to embed the full substring.
Parameters: name – string, see DefaultNameMixin
-
class
simdna.synthetic.
XOREmbedder
(embedder1, embedder2, probOfFirst, name=None)[source]¶ Bases:
simdna.synthetic.AbstractEmbedder
Calls exactly one of the supplied embedders.
Parameters: - embedder1 – instance of
AbstractEmbedder
- embedder2 – instance of
AbstractEmbedder
- probOfFirst – probability of calling the first embedder
- embedder1 – instance of
-
class
simdna.synthetic.
ZeroInflater
(quantityGenerator, zeroProb, name=None)[source]¶ Bases:
simdna.synthetic.AbstractQuantityGenerator
Inflate a particular distribution with zeros.
Wrapper that inflates the number of zeros returned. Flips a coin; if positive, will return zero - otherwise will sample from the wrapped distribution (which may still return 0)
Parameters: - quantityGenerator – an instance of
AbstractQuantityGenerator
; represents the distribution to sample from with probability1-zeroProb
- zeroProb – the probability of just returning 0 without sampling from
quantityGenerator
- name – see
DefaultNameMixin
.
- quantityGenerator – an instance of
-
class
simdna.synthetic.
ZeroOrderBackgroundGenerator
(seqLength, discreteDistribution=<simdna.util.DiscreteDistribution object>)[source]¶ Bases:
simdna.synthetic.RepeatedSubstringBackgroundGenerator
Returns a sequence with a certain GC content.
Each base is sampled independently.
Parameters: - seqLength – int, length of the background
- discreteDistribution – instance of
util.DiscreteDistribution`, defaults to ``util.DEFAULT_BASE_DISCRETE_DISTRIBUTION
-
simdna.synthetic.
getEmbeddingsFromString
(string)[source]¶ Get a series of
Embedding
objects from a string.- Splits the string on commas, and then passes the comma-separated vals
- to
Embedding.fromString()
Parameters: string – The string to turn into an array of Embedding objects Returns: an array of Embedding
objects
-
simdna.synthetic.
printSequences
(outputFileName, sequenceSetGenerator, includeEmbeddings=False, labelGenerator=None, includeFasta=False, prefix=None)[source]¶ Print a series of synthetic sequences.
- Given an output filename, and an instance of
AbstractSequenceSetGenerator
, will call the sequenceSetGenerator and print the generated sequences to the output file. Will also create a file “info_outputFileName.txt” in the same directory as outputFileName that contains all the information about sequenceSetGenerator.
Parameters: - outputFileName – string
- sequenceSetGenerator – instance of
AbstractSequenceSetGenerator
- includeEmbeddings – a boolean indicating whether to print a column that lists the embeddings
- labelGenerator – optional instance of
LabelGenerator
- includeFasta – optional boolean indicating whether to also print out the generated sequences in fasta format (the file will be produced with a .fa extension)
- prefix – string - this will be prefixed in front of the generated sequence ids, followed by a hyphen
-
simdna.synthetic.
sampleIndexWithinRegionOfLength
(length, lengthOfThingToEmbed)[source]¶ Uniformly at random samples integers from 0 to
length
-lengthOfThingToEmbedIn
.Parameters: - length – length of full region that could be embedded in
- lengthOfThingToEmbed – length of thing being embedded in larger region


Status Flow History
Home Page
Manual Ops
Config
Status
Graphs
Set Operating Mode
Manage Rain Day
Manage Derating Factor
Status Event History
Home Page
Manual Ops
Config
Status
Graphs
Set Operating Mode
Manage Rain Day
Manage Derating Factor
Alarm History
Home Page
Manual Ops
Config
Status
Graphs
Set Operating Mode
Manage Rain Day
Manage Derating Factor


Sample
H1 Tag Testing
print("This is the code part!");
Strong Text testing
Horizontal line below Testing.


Biology
Applied Bio
CCP Bio
YL Bio
About Mrs. Kizer
(current)
Tools and Resources
Grade Calculator
Grade Calculator
For Sanford High School
Calculate Semester Grade
Quarter 1
40%
Quarter 2
40%
Exam
20%
Check if no exam
Submit
Clear
Semester Grade:
Letter Grade:


The Twilight Saga: Breaking Dawn - Part 1
The Twilight Saga: Breaking Dawn - Part 1 is a movie starring Kristen Stewart, Robert Pattinson, and Taylor Lautner. The Quileutes close in on expecting parents Edward and Bella, whose unborn child poses a threat to the Wolf Pack...


Toggle navigation
Logo
Settings
Action
Another action
Something else here
Separated link
What do you want to know?
Go


HTML and Web Basics
The World Wide Web is a collection of HTML documents. HTML stands for hypertext markup language; it is the code behind HTML documents that tells computers and browsers how to display information. HTTP stands for hypertext transfer protocol; it defines the rules for transferring files among computers and software (like browsers) on the world wide web.
HTML is composed of the following:Tags may have multiple attributes which add or change the functionality of an element.
In general, don't worry about memorizing bits of code; anything you haven't memorized by common use is easily found with a Google search.


scikit-image Code of Conduct¶
scikit-image adopts the SciPy code of conduct.
Introduction¶
This code of conduct applies to all spaces managed by the scikit-image project, including all public and private mailing lists, issue trackers, wikis, blogs, Twitter, and any other communication channel used by our community. The scikit-image project does not organise in-person events, however events related to our community should have a code of conduct similar in spirit to this one.
This code of conduct should be honored by everyone who participates in the scikit-image community formally or informally, or claims any affiliation with the project, in any project-related activities and especially when representing the project, in any role.
This code is not exhaustive or complete. It serves to distill our common understanding of a collaborative, shared environment and goals. Please try to follow this code in spirit as much as in letter, to create a friendly and productive environment that enriches the surrounding community.
Specific Guidelines¶
We strive to:
Be open. We invite anyone to participate in our community. We prefer to use public methods of communication for project-related messages, unless discussing something sensitive. This applies to messages for help or project-related support, too; not only is a public support request much more likely to result in an answer to a question, it also ensures that any inadvertent mistakes in answering are more easily detected and corrected.
Be empathetic, welcoming, friendly, and patient. We work together to resolve conflict, and assume good intentions. We may all experience some frustration from time to time, but we do not allow frustration to turn into a personal attack. A community where people feel uncomfortable or threatened is not a productive one.
Be collaborative. Our work will be used by other people, and in turn we will depend on the work of others. When we make something for the benefit of the project, we are willing to explain to others how it works, so that they can build on the work to make it even better. Any decision we make will affect users and colleagues, and we take those consequences seriously when making decisions.
Be inquisitive. Nobody knows everything! Asking questions early avoids many problems later, so we encourage questions, although we may direct them to the appropriate forum. We will try hard to be responsive and helpful.
Be careful in the words that we choose. We are careful and respectful in our communication and we take responsibility for our own speech. Be kind to others. Do not insult or put down other participants. We will not accept harassment or other exclusionary behaviour, such as:
Violent threats or language directed against another person.
Sexist, racist, or otherwise discriminatory jokes and language.
Posting sexually explicit or violent material.
Posting (or threatening to post) other people’s personally identifying information (“doxing”).
Sharing private content, such as emails sent privately or non-publicly, or unlogged forums such as IRC channel history, without the sender’s consent.

Excessive profanity. Please avoid swearwords; people differ greatly in their sensitivity to swearing.
Repeated harassment of others. In general, if someone asks you to stop, then stop.
Advocating for, or encouraging, any of the above behaviour.
Diversity Statement¶
The scikit-image project welcomes and encourages participation by everyone. We are committed to being a community that everyone enjoys being part of. Although we may not always be able to accommodate each individual’s preferences, we try our best to treat everyone kindly.
No matter how you identify yourself or how others perceive you: we welcome you. Though no list can hope to be comprehensive, we explicitly honour diversity in: age, culture, ethnicity, genotype, gender identity or expression, language, national origin, neurotype, phenotype, political beliefs, profession, race, religion, sexual orientation, socioeconomic status, subculture and technical ability, to the extent that these do not conflict with this code of conduct.
Though we welcome people fluent in all languages, scikit-image development is conducted in English.
Standards for behaviour in the scikit-image community are detailed in the Code of Conduct above. Participants in our community should uphold these standards in all their interactions and help others to do so as well (see next section).
Reporting Guidelines¶
We know that it is painfully common for internet communication to start at or devolve into obvious and flagrant abuse. We also recognize that sometimes people may have a bad day, or be unaware of some of the guidelines in this Code of Conduct. Please keep this in mind when deciding on how to respond to a breach of this Code.
For clearly intentional breaches, report those to the Code of Conduct committee (see below). For possibly unintentional breaches, you may reply to the person and point out this code of conduct (either in public or in private, whatever is most appropriate). If you would prefer not to do that, please feel free to report to the Code of Conduct Committee directly, or ask the Committee for advice, in confidence.
You can report issues to the scikit-image Code of Conduct committee, at<EMAIL_ADDRESS>Currently, the committee consists of:
Emmanuelle Gouillart<EMAIL_ADDRESS>(chair)
Carol Willing<EMAIL_ADDRESS>François Boulogne<EMAIL_ADDRESS>Egor Panfilov<EMAIL_ADDRESS>If your report involves any members of the committee, or if they feel they have a conflict of interest in handling it, then they will recuse themselves from considering your report. Alternatively, if for any reason you feel uncomfortable making a report to the committee, then you can also contact:
Any member of the scikit-image Steering Council, or
Senior NumFOCUS staff<EMAIL_ADDRESS>Incident reporting resolution & Code of Conduct enforcement¶
This section summarizes the most important points, more details can be found in the reporting manual.
We will investigate and respond to all complaints. The scikit-image Code of Conduct Committee and the scikit-image Steering Committee (if involved) will protect the identity of the reporter, and treat the content of complaints as confidential (unless the reporter agrees otherwise).
In case of severe and obvious breaches, e.g. personal threat or violent, sexist or racist language, we will immediately disconnect the originator from scikit-image communication channels; please see the manual for details.
In cases not involving clear severe and obvious breaches of this code of conduct, the process for acting on any received code of conduct violation report will be:
acknowledge report is received
reasonable discussion/feedback
mediation (if feedback didn’t help, and only if both reporter and reportee agree to this)
enforcement via transparent decision (see Resolutions) by the Code of Conduct Committee
The committee will respond to any report as soon as possible, and at most within 72 hours.
Endnotes¶
We are thankful to the groups behind the following documents, from which we drew content and inspiration:


Get All Todos
Json will go here:
status:
get todos by status
limit:
get todos by limit
contains:
get todos by finding if it contains a specified string
id:
get todos by id
category:
get todos by category
owner:
get todos by owner


|
UMC
1.0
|
This interface represents Video Source of UMC. More...
#include <IVideoSource.h>
Public Member Functions | |
| virtual void | SetVideoEditRate (const EditRate &editRate)=0 |
| Set the video edit rate for the video source. More... | |
| virtual EditRate | GetVideoEditRate () const =0 |
| Get the video edit rate for the video source. More... | |
| virtual void | SetAudioEditRate (const EditRate &editRate)=0 |
| Set the audio edit rate for the video source. More... | |
| virtual EditRate | GetAudioEditRate () const =0 |
| Get the audio edit rate for the video source. More... | |
| virtual void | SetInCount (const EditUnitInCount &inCount)=0 |
| Set the edit incount for the video source. More... | |
| virtual EditUnitInCount | GetInCount () const =0 |
| Get the incount for the video source. More... | |
| virtual void | SetDuration (const EditUnitDuration &duration)=0 |
| Set the duration for the video source. More... | |
| virtual EditUnitDuration | GetDuration () const =0 |
| Get the duration for the video source. More... | |
| virtual void | SetTimeCode (const TimeCode &timeCode)=0 |
| Set the time code for the video source. More... | |
| virtual TimeCode | GetTimeCode () const =0 |
| Get the time code for the video source. More... | |
| virtual | ~IVideoSource ()=0 |
| Public Member Functions inherited from UMC::ISource | |
| virtual void | SetClipName (const std::string &clipName)=0 |
| Set the clip name of the source. More... | |
| virtual std::string | GetClipName () const =0 |
| Get the clip name of the source. More... | |
| virtual eSourceTypes | GetType () const =0 |
| Get the type of the source. More... | |
| virtual | ~ISource ()=0 |
| Public Member Functions inherited from UMC::IUMCNode | |
| virtual eNodeTypes | GetNodeType () const =0 |
| Get the node type of the node. More... | |
| virtual const std::string & | GetUniqueID () const =0 |
| Get the unique id of the node. More... | |
| virtual bool | SetUniqueID (const std::string &uniqueID)=0 |
| Set the unique id of the node. More... | |
| virtual std::string | GetParsedID () const =0 |
| Get the parsed id of the node. More... | |
| template<typename requiredNodeType > | |
| weak_ptr< requiredNodeType > | GetParent () |
| Get the parent node of the current node. More... | |
| template<typename requiredNodeType > | |
| weak_ptr< const requiredNodeType > | GetParent () const |
| Get the parent node of the current node. More... | |
| template<typename requiredNodeType > | |
| shared_ptr< requiredNodeType > | GetChild (const std::string &uniqueID) |
| Get the child node of the current node with a particular unique id. More... | |
| template<typename requiredNodeType > | |
| shared_ptr< const requiredNodeType > | GetChild (const std::string &uniqueID) const |
| Get the child node of the current node with a particular unique id. More... | |
| template<typename requiredNodeType > | |
| shared_ptr< requiredNodeType > | GetDecendant (const std::string &uniqueID) |
| Get the descendant node of the current node with a particular unique id param[in] uniqueID A value of type std::string indicating the unique id of the descendant node to be found. More... | |
| template<typename requiredNodeType > | |
| shared_ptr< const requiredNodeType > | GetDecendant (const std::string &uniqueID) const |
| Get the descendant node of the current node with a particular unique id param[in] uniqueID A value of type std::string indicating the unique id of the descendant node to be found. More... | |
| virtual wpcIUMCNode | GetParentNode () const =0 |
| Get the parent node of the current node. More... | |
| virtual wpIUMCNode | GetParentNode ()=0 |
| Get the parent node of the current node. More... | |
| virtual spcIUMCNode | GetDecendantNode (const std::string &uniqueID) const =0 |
| Get the descendant node of the current node with a particular unique id. More... | |
| virtual spIUMCNode | GetDecendantNode (const std::string &uniqueID)=0 |
| Get the descendant node of the current node with a particular unique id param[in] uniqueID A value of type std::string indicating the unique id of the descendant node to be found. More... | |
| virtual spcIUMCNode | GetChildNode (const std::string &uniqueID) const =0 |
| Get the child node of the current node with a particular unique id. More... | |
| virtual spIUMCNode | GetChildNode (const std::string &uniqueID)=0 |
| Get the child node of the current node with a particular unique id. More... | |
| virtual NodeList | GetAllChildren ()=0 |
| Get the list of all the children of the node. More... | |
| virtual cNodeList | GetAllChildren () const =0 |
| Get the list of all the children of the node. More... | |
| virtual NodeList | GetAllDecendants ()=0 |
| Get the list of all the descendants of the node. More... | |
| virtual cNodeList | GetAllDecendants () const =0 |
| Get the list of all the descendants of the node. More... | |
| virtual size_t | GetReferenceCount () const =0 |
| Get the reference count of the node based on the unique id of the node. More... | |
| virtual std::string | Serialize () const =0 |
| Get the serialized XMP representation of the node. More... | |
| virtual spICustomData | GetCustomData (const std::string &customDataNameSpace, const std::string &customDataName)=0 |
| Get the custom data associated with the node having a certain namespace and name. More... | |
| virtual spcICustomData | GetCustomData (const std::string &customDataNameSpace, const std::string &customDataName) const =0 |
| Get the custom data associated with the node having a certain namespace and name. More... | |
| virtual bool | SetCustomData (const std::string &customDataNameSpace, const std::string &customDataName, const spICustomData &customData)=0 |
| Add the custom data associated with the node having a certain namespace and name. More... | |
| virtual INT_UMC::pIUMCNodeI | GetInternalNode ()=0 |
| Get the pointer to the internal node object. More... | |
| virtual INT_UMC::pcIUMCNodeI | GetInternalNode () const =0 |
| Get the pointer to the internal node object. More... | |
Additional Inherited Members | |
| Public Types inherited from UMC::ISource | |
| enum | eSourceTypes { kSourceTypeVideo = 0, kSourceTypeAudio = 1, kSourceTypeVideoFrame = 2, kSourceTypeImage = 3, kSourceTypeAll = Max_UMC_Uns32 - 1, kSourceTypeMaxValue = Max_UMC_Uns32 } |
| Public Types inherited from UMC::IUMCNode | |
| enum | eNodeTypes { kNodeTypeNone = 0, kNodeTypeSource = 1, kNodeTypeOutput = 2, kNodeTypeTrack = 4, kNodeTypeShot = 8, kNodeTypeShotSource = 16, kNodeTypeFrame = 32, kNodeTypeUMC = 64, kNodeTypeAll = 0xFFFFFFFF } |
| Indicates various types of node available in UMC. More... | |
| typedef std::vector< spIUMCNode > | NodeList |
| typedef std::vector< spcIUMCNode > | cNodeList |
This interface represents Video Source of UMC.
Provides all the functions to get and set various properties of the video source.
Definition at line 26 of file IVideoSource.h.
|
inlinepure virtual |
Definition at line 96 of file IVideoSource.h.
|
pure virtual |
Get the audio edit rate for the video source.
|
pure virtual |
Get the duration for the video source.
|
pure virtual |
Get the incount for the video source.
|
pure virtual |
Get the time code for the video source.
|
pure virtual |
Get the video edit rate for the video source.
|
pure virtual |
Set the audio edit rate for the video source.
| [in] | editRate | A value of type EditRate indicating the audio edit rate for the video source |
|
pure virtual |
Set the duration for the video source.
| [in] | duration | A value of type EditUnitDuration indicating the duration of the video source |
|
pure virtual |
Set the edit incount for the video source.
| [in] | inCount | A value of type EditUnitInCount indicating the incount for the video source |
|
pure virtual |
Set the time code for the video source.
| [in] | timeCode | A value of type TimeCode indicating the time code of the video source |
|
pure virtual |
Set the video edit rate for the video source.
| [in] | editRate | A value of type EditRate indicating the video edit rate for the video source |


HR for Small Business
Our best selling HR Protection Service will make your business fully compliant with all employment legislation and regulations, and will also advise, guide and support you through all HR issues or difficulties that may arise in your business.
HR for Large Business
The larger the company, the greater the HR need. At the HR Company we have the capacity to provide you with the level of HR support you deserve. This is a highly-effective way of getting the best HR service possible for your company.
HR for Multinational Corporations
For organisations requiring face-to-face, on site support, we have the answers you need.


|
HE_Mesh
6.0.1
|
Public Member Functions | |
| double | getLength2D () |
| double | getSqLength2D () |
| double | getDistance2D (final WB_Coord p) |
| double | getSqDistance2D (final WB_Coord p) |
| double | getAngle (final WB_Coord p) |
| double | getAngleNorm (final WB_Coord p) |
| double | getHeading2D () |
| WB_Coord | getOrthoNormal2D () |
| boolean | isZero () |
| boolean | isCollinear2D (WB_Coord p, WB_Coord q) |
| boolean | isParallel2D (WB_Coord p) |
| boolean | isParallel2D (WB_Coord p, double tol) |
| boolean | isParallelNorm2D (WB_Coord p) |
| boolean | isParallelNorm2D (WB_Coord p, double tol) |
| boolean | isOrthogonal2D (WB_Coord p) |
| boolean | isOrthogonal2D (WB_Coord p, double tol) |
| boolean | isOrthogonalNorm2D (WB_Coord p) |
| boolean | isOrthogonalNorm2D (WB_Coord p, double tol) |
Interface for implementing metric operations on 2D coordinates.
None of the operators change the calling object.
| double wblut.geom.WB_CoordinateMetric2D.getAngle | ( | final WB_Coord | p | ) |
Angle between two vectors.
| p |
Implemented in wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.
| double wblut.geom.WB_CoordinateMetric2D.getAngleNorm | ( | final WB_Coord | p | ) |
Angle between two normalized vectors.
| p |
Implemented in wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.
| double wblut.geom.WB_CoordinateMetric2D.getDistance2D | ( | final WB_Coord | p | ) |
2D distance to coordinate
| p |
Implemented in wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.
| double wblut.geom.WB_CoordinateMetric2D.getHeading2D | ( | ) |
| double wblut.geom.WB_CoordinateMetric2D.getLength2D | ( | ) |
| WB_Coord wblut.geom.WB_CoordinateMetric2D.getOrthoNormal2D | ( | ) |
Get 2D vector perpendicular and CCW to this one.
Implemented in wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.
| double wblut.geom.WB_CoordinateMetric2D.getSqDistance2D | ( | final WB_Coord | p | ) |
Square 2D distance to coordinate.
| p |
Implemented in wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.
| double wblut.geom.WB_CoordinateMetric2D.getSqLength2D | ( | ) |
Square length of 2D coordinate.
Implemented in wblut.geom.WB_Vector, and wblut.geom.WB_Vector2D.
Is this point collinear with two other points?
| p | |
| q |
| boolean wblut.geom.WB_CoordinateMetric2D.isOrthogonal2D | ( | WB_Coord | p | ) |
Is this vector perpendicular to other vector?
| p |
| boolean wblut.geom.WB_CoordinateMetric2D.isOrthogonal2D | ( | WB_Coord | p, |
| double | tol | ||
| ) |
Is this vector, within a given tolerance, perpendicular to other vector?
| p | |
| tol |
| boolean wblut.geom.WB_CoordinateMetric2D.isOrthogonalNorm2D | ( | WB_Coord | p | ) |
Is this normalized vector perpendicular to other normalized vector?
| p |
| boolean wblut.geom.WB_CoordinateMetric2D.isOrthogonalNorm2D | ( | WB_Coord | p, |
| double | tol | ||
| ) |
Is this normalized vector, within a given tolerance, perpendicular to other normalized vector?
| p | |
| tol |
| boolean wblut.geom.WB_CoordinateMetric2D.isParallel2D | ( | WB_Coord | p | ) |
Is this vector parallel with other vector?
| p |
| boolean wblut.geom.WB_CoordinateMetric2D.isParallel2D | ( | WB_Coord | p, |
| double | tol | ||
| ) |
Is this vector, within a given tolerance, parallel with other vector?
| p | |
| tol |
| boolean wblut.geom.WB_CoordinateMetric2D.isParallelNorm2D | ( | WB_Coord | p | ) |
Is this normalized vector parallel with other normalized vector?
| p |
| boolean wblut.geom.WB_CoordinateMetric2D.isParallelNorm2D | ( | WB_Coord | p, |
| double | tol | ||
| ) |
Is this normalized vector, within a given tolerance, parallel with other normalized vector?
| p | |
| tol |
| boolean wblut.geom.WB_CoordinateMetric2D.isZero | ( | ) |
Is this a degenerate vector?
Implemented in wblut.geom.WB_Vector, wblut.geom.WB_Vector2D, and wblut.geom.WB_CoordinateMetric3D.


Click on the picture to stop from the slide show!


Start by filling out your information here. This is what will be auto-filled into your attendance forms.
Put the URLs to your attendance forms here. This can be found by going into Schoology, going to your attendance form like usual, and copying the link near the top of your web browser.
Put the URLs to your video meetings here. This can be found by going into Schoology, going to your Google Meet/Zoom meeting like usual, and copying the link near the top of your web browser.
This allows you to create aliases for your classes. For example, a class can be labeled as "World History" instead of just "Period 1." In the fields below, input the names of classes you'd like to see appear instead of the generic period name.
This adds a button to the popup that, when pressed, will automatically fill out every single form for the day. Please note that this feature is currently experimental and may not function perfectly in every circumstance. When using this feature, it is recommended to leave the browser alone for about 30 seconds as it goes through its processes. Also, for people with a slower computer or internet, the extension may switch to the next attendance form before its completed with the first. In this situation, adjust the Page Change Delay below to a higher number. If you're not experiencing issues, just leave the delay on the default setting. Also, none of the Generic Preferences will work if this is enabled.
Some teachers don't have permanent links for their Google Meet conferences. If you have one of these teachers, this option is perfect for you. In short, you to set a link to the homepage of Google Meets on your student account. The extension will then be able to automatically fill out the meeting code to bring you into the conference. There is a short video here that explains this feature in greater detail.
2.2
2.1
2.0
1.1
1.0
Created by Mitch Zakocs.
Please contact<EMAIL_ADDRESS>with any feature requests or bug reports.
If you're interested, check out the project on GitHub!


Wesley is an amazing faith community of diverse people who are committed to making faithful followers of Jesus. We do this by Growing Faith, Building Relationships, and Serving the Community. All of us are on the same journey, trying to learn more about who God has made us to be. There are ministries here for everyone- children, youth, and adults.


--- layout: post title: "Week in Review" date: 2017-11-19 08:10:00 +0000 tags: image: https://s3.amazonaws.com/audreywatters/2017-11-19-nyc.jpg imagecredits: https://www.flickr.com/photos/25141069@N02/5449135977/ ---
Icon credits: The Noun Project


|
libcoap
4.3.0
|
Structure to hold large body (many blocks) client receive information. More...
#include <coap_block_internal.h>
Data Fields | |
| struct coap_lg_crcv_t * | next |
| uint8_t | observe [3] |
| Observe data (if set) (only 24 bits) More... | |
| uint8_t | observe_length |
| Length of observe data. More... | |
| uint8_t | observe_set |
| Set if this is an observe receive PDU. More... | |
| uint8_t | etag_set |
| Set if ETag is in receive PDU. More... | |
| uint8_t | etag_length |
| ETag length. More... | |
| uint8_t | etag [8] |
| ETag for block checking. More... | |
| uint16_t | content_format |
| Content format for the set of blocks. More... | |
| uint8_t | last_type |
| Last request type (CON/NON) More... | |
| uint8_t | initial |
| If set, has not been used yet. More... | |
| uint8_t | szx |
| size of individual blocks More... | |
| size_t | total_len |
| Length as indicated by SIZE2 option. More... | |
| coap_binary_t * | body_data |
| Used for re-assembling entire body. More... | |
| coap_binary_t * | app_token |
| app requesting PDU token More... | |
| uint8_t | base_token [8] |
| established base PDU token More... | |
| size_t | base_token_length |
| length of token More... | |
| uint8_t | token [8] |
| last used token More... | |
| size_t | token_length |
| length of token More... | |
| coap_pdu_t | pdu |
| skeletal PDU More... | |
| coap_rblock_t | rec_blocks |
| coap_tick_t | last_used |
| < list of received blocks More... | |
| uint16_t | block_option |
| Block option in use. More... | |
Structure to hold large body (many blocks) client receive information.
Definition at line 99 of file coap_block_internal.h.
| coap_binary_t* coap_lg_crcv_t::app_token |
app requesting PDU token
Definition at line 113 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::base_token[8] |
established base PDU token
Definition at line 114 of file coap_block_internal.h.
| size_t coap_lg_crcv_t::base_token_length |
length of token
Definition at line 115 of file coap_block_internal.h.
| uint16_t coap_lg_crcv_t::block_option |
Block option in use.
Definition at line 121 of file coap_block_internal.h.
| coap_binary_t* coap_lg_crcv_t::body_data |
Used for re-assembling entire body.
Definition at line 112 of file coap_block_internal.h.
| uint16_t coap_lg_crcv_t::content_format |
Content format for the set of blocks.
Definition at line 107 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::etag[8] |
ETag for block checking.
Definition at line 106 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::etag_length |
ETag length.
Definition at line 105 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::etag_set |
Set if ETag is in receive PDU.
Definition at line 104 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::initial |
If set, has not been used yet.
Definition at line 109 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::last_type |
Last request type (CON/NON)
Definition at line 108 of file coap_block_internal.h.
| coap_tick_t coap_lg_crcv_t::last_used |
< list of received blocks
Last time all data sent or 0
Definition at line 120 of file coap_block_internal.h.
| struct coap_lg_crcv_t* coap_lg_crcv_t::next |
Definition at line 100 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::observe[3] |
Observe data (if set) (only 24 bits)
Definition at line 101 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::observe_length |
Length of observe data.
Definition at line 102 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::observe_set |
Set if this is an observe receive PDU.
Definition at line 103 of file coap_block_internal.h.
| coap_pdu_t coap_lg_crcv_t::pdu |
skeletal PDU
Definition at line 118 of file coap_block_internal.h.
| coap_rblock_t coap_lg_crcv_t::rec_blocks |
Definition at line 119 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::szx |
size of individual blocks
Definition at line 110 of file coap_block_internal.h.
| uint8_t coap_lg_crcv_t::token[8] |
last used token
Definition at line 116 of file coap_block_internal.h.
| size_t coap_lg_crcv_t::token_length |
length of token
Definition at line 117 of file coap_block_internal.h.
| size_t coap_lg_crcv_t::total_len |
Length as indicated by SIZE2 option.
Definition at line 111 of file coap_block_internal.h.


{{ 'membership-subscription.title' | translate }}
0"
[type]="'success'">
{{ 'membership-subscription.you_already_have_a_membership' | translate }}
0"
class="membership-subscription-page__nb_days">
{{ 'membership-subscription.you_can_renew_your_membership' | translate: ({daysBeforeEnd: profile.getTimeBeforeEndMembership()})}}
{{ membership.price }} $+txs
{{ 'membership-subscription.new_end_date' |
translate: ({'nb_days': nb_days_with_new_membership, 'end_date' : nb_end_date_with_new_membership})}}
30"
class="membership-subscription-page__to_soon">
{{ 'membership-subscription.to_soon_message' | translate }}


Power Assert in Swift. Provides descriptive assertion messages through standard assert interface.
Power assertions (a.k.a. diagrammed assertions) augment your assertion failures with information about values produced during the evaluation of a condition, and presents them in an easily digestible form. github.com/kishikawakatsumi/SwiftPowerAssert
import Foundation import XCTest let a = 4 let b = 7 let c = 12 XCTAssert(max(a, b) == c) XCTAssert(a + b > c) struct Person { let name: String let age: Int var isTeenager: Bool { return age <= 12 && age >= 20 } } let john = Person(name: "John", age: 42) let mike = Person(name: "Mike", age: 13) XCTAssert(john.isTeenager) XCTAssert(mike.isTeenager && john.age < mike.age)
XCTAssert(max(a, b) == c) | | | | | 7 4 7 | 12 false XCTAssert(a + b > c) | | | | | 4 | 7 | 12 11 false XCTAssert(john.isTeenager) | | | false Person(name: "John", age: 42) XCTAssert(mike.isTeenager && john.age < mike.age) | | | | | | | | | false | | 42 | | 13 | | | | Person(name: "Mike", age: 13) | | | false | | Person(name: "John", age: 42) | false Person(name: "Mike", age: 13)


Put Us to Work
Read more >
•
•
•
•
Put Us to Work
Read more >
Tenant Resources, at Your Fingertips
Read more >
1`
Apply for a Property Today
Read more >
Submit a Maintenance Request Online
Read more >


Mixpanel Tools
This page has been moved. Please click
here
to go to the new page OR Wait for sometime to redirect.


{% extends "base/index.html" %} {%block nav%}{%endblock%} {% block title_for_page %} Feed - Logout Successfully {%endblock%} {% block content %}
Logged out successfully!


| reverting_id | reverting_user_text | rev_user_text | reverting_comment | diff | |
|---|---|---|---|---|---|
| 94167 | 86929654 | 718 Bot | ImageRemovalBot | Reverted edits by [[Special:Contributions/ImageRemovalBot|ImageRemovalBot]] ([[User talk:ImageRemovalBot|talk]]) to last version by Dissolve | --- \n +++ \n @@ -34,7 +34,7 @@\n ==Photo gallery== - +Image:Adventures_SideA.jpg| Image:Adventures_SideB.jpg| Image:Adventures 3inch.JPG| Image:Adventures_12inch.JPG| |


The Life of Poncho Villa
A picture of Poncho Villa mounting on horseback
Here is a link for more info about Poncho Villa


Girl Develop It is here to provide affordable and accessible programs to learn software through mentorship and hands-on instruction.
Some "rules"
Tell us about yourself.
Open up your terminal and install all of the following packages that are not already on your computer:
pip: for mac users - run the command below
For windows users - copy the text from here, save it to a
python file, then run python (filename)
ipython and pandas: run the commands below
sudo easy_install pip
pip install ipython
pip install pandas
Running sudo the first time will ask you for your computer password
If the pip commands say permission denied, run with sudo pip instead
Our data is stored in the folder gdi-intro-pandas/example_data/
Once in that folder, open up the file purchases.csv
In your terminal run ipython. Let's import pandas and try out tab completion
In [1]: import pandas
In [2]: pandas.read_
Now let's import our data with read_csv
In [3]: purchases = pandas.read_csv('~/gdi-intro-pandas/example_data/purchases.csv')
You now have a pandas dataframe called purchases
A major advantage of pandas is being able to see your data without ever opening a file
Here are some useful commands for summarizing your dataframe
In [4]: purchases.head()
In [5]: purchases.tail(2)
In [6]: purchases.shape
In [7]: purchases.columns
Use the read_csv command to import our example data members.csv
Print out the columns of your members dataframe
Print out the top 10 rows of your dataframe
Find out how many rows are in your dataframe
You can quickly delete columns and add new columns to your dataframe
Deleting columns is done with the command del
You can also create a new column by simply adding two existing columns together
In [8]: purchases['total_price'] = purchases['price'] + purchases['tax']
In [9]: purchases.head()
In [10]: del purchases['tax']
In [11]: purchases.head()
Notice how referencing a dataframe column looks a lot like referencing a dictionary key
If your data came with empty cells, pandas will fill it in with NaN.
This can cause an error if you are trying to add two integer columns together.
To solve this, we can use the fillna() command to replace NaN with whatever we choose.
Notice that I refer to the first_name column as purchases.first_name. That is also accepted syntax in pandas.
In [12]: purchases.first_name.fillna(' ')
You can sort your data by any row
Sorting will default to ascending=True, so if you want to sort descending, you have to specify in your parameters ascending=False
Let's take a quick look at the pandas documentation for more information
In [13]: purchases.sort_values(by='date', index=False)
In [14]: purchases = purchases.sort_values(by=['date', 'price'], ascending=False,
index=False)
Now that we've made some changes to our dataframe, let's save it to a new csv
Similarly to how we imported the data, we have the command to_csv to export it.
Check out tab complete after to_
to see your
other options!
In [15]: purchases.to_csv('~/gdi-intro-pandas/example_data/export_purchases.csv')
Take your dataframe members and do the following:
Create a new column, which will read as First Name Last Name
Delete the column for phone number
Fill in the NaN rows of the total spent column with 0
Sort data by birthday
Save your dataframe as a csv called members_by_birthday.csv" in the same folder
When importing data, you may see your totals column imported as a string, but you need it to be a float.
pandas as a function astype() that lets you change the data type of your column.
Let's try turning our number of visits into a string, and then into a float
In [16]: purchase.visits = purchases.visits.astype(str)
In [17]: purchase.visits = purchases.visits.astype(float)
You may come across situations where you want one column as a python list to use for outside analysis.
pandas makes it easy with a tolist() function
In [18]: ids_list = purchases.member_id.tolist()
In [19]: len(ids_list)
pandas filtering can look a little funny, but it is extremely useful
Let's look at the following code and break down exactly what is happening
In [20]: large_purchases = purchases[purchases['price'] > 100.0]
You want to look from inside out
We are looking at the price column
We are only looking at rows where the price column is greater than 100 dollars.
We are keeping all of purchases where price is greater than 100 dollars.
Let's create a new dataframe named small_purchases where total_price is less than 50 dollars.
Get a list of all the member ids in small_purchases
To concatinate dataframes means to take two dataframes with the same columns and putting together the rows
Let's import the csv purchases-october.csv
Since this csv has the columns as purchases, we can concatinate the two dataframes like so:
In [21]: pandas.concat(purchases, purchases-october)
You can think of merging dataframes a lot like SQL joins
You can use a column (or a list of columns) to merge two dataframes together.
Let's merge purchases and members on the column member_id
In [22]: merged = purchases.merge(members, how='left', on='member_id')
The how parameter is comparable to the type of join you would use in SQL.
on decides the column or columns (as a list) that you want to merge on
groupby allows you to group by 1 or more columns to get a more top-level view of your data
There are a couple of ways to do this, but here is one recommended way.
Either way, you will need the as_index=False
In [23]: prices_avg_by_date = purchases.groupby('date', as_index=False)[['price', 'total_price']].avg()
In [24]: total_by_member_and_date = purchases.groupby(['date', 'member_id'], as_index=False)['total_price'].sum()
Import items.csv as a pandas dataframe
Merge items with purchases by item_id
Group this new dataframe by item type and date, sum the total cost
*Challenge* Find out the member name who has spent the most on sale
itemsThanks for attending Intro to Pandas!
Your input is invaluable for the improvement of this workshop
Please take a minute and click here to fill out our survey


Self-Update: Reducing Error Messages
And what's next
February, 2017
The Main Problem
- Self-Update is included in SLE 12 SP2 but disabled by default
- In some scenarios is too intrusive
The Worst Case
- Installing behind a firewall which prevents access to your DNS
- Packages are simply drop
- You get 3 pop-ups:
- Network error
- Could not get updates repositories: falling back to control file
- Could not access to fallback repository
- And more than 30 seconds timeout
- Check the video
What's next?
Just some ideas
- Reducing timeouts
- Adjust the amount of times/retries
- Should we fallback to the control file at all?
- Define whether self-update is enabled/disabled through the control file
- Consider adding information in case of a successful update
- Include self-update options in the boot menu


Background
Thor is the Asgardian strongest god of thunder son of Odin and possesses the enchanted hammer Mjolnir, which grants him the ability of flight and weather manipulation, keen senses that allow him to track objects traveling faster than light and hear cries from the other side of the planet. Thor has the ability to travel through time.Thor has shown the ability to regenerate wounded portions of his body, he has superhuman speed, agility, and reflexes, enabling him to deflect bullets with his hammer. Like all Asgardians, he has immunity to all Earthly diseases and some resistance to magic. Exceptionally powerful magic can overwhelm Odin's enchantment that transforms him between Asgardian and mortal forms.
Asgard


ABANDONED CAT
Cat found dumped in Ayr street next to dog poo with netting wrapped around its neck
by Justin BowieA CAT was found dumped next to dog poo with netting wrapped around its neck in Ayr.
The poor feline was abandoned in a carrier by a member of the public in Maybole Road in the town, near Halfords, on November 19.
After finding her the kind-hearted local gave the cat some chicken while waiting for the Scottish SPCA to arrive.
The moggy, who is now affectionately known as Bessie, was left with “scabby skin” after being dumped.
But rescuers say she was found “just in the time” as the netting she was entangled in had not yet broken her skin.
The Scottish SPCA launched a probe after the horrific discovery as they appeal to the public for information.
Animal rescue officer Sheena McTaggart said: “The female cat was found in a carrier with no door.

“Luckily, the netting had only rubbed away her fur and not broken the skin so we found her just in time.
“We are grateful to the member of the public who found her and fed her some chicken while he waited for us to arrive.
“One of our animal rescue and rehoming centres is providing the care she needs.
“The team have affectionately named her Bessie.
“We’re keen to find out more about the circumstances that led to her becoming entangled in the net and subsequently ending up abandoned.
“If anyone has any information, we would urge them to call our confidential animal helpline on 03000 999 999.”
We told on Wednesday how a tiny kitten was left blind after being neglected by its owner and sold online at just four-weeks-old.
The cat, named Cookie, was sold to a buyer who was unaware of the animal's critical eye condition.
The malnourished moggy has now been left with horror wounds and unable to see.


Matching tree:
JSON data
dot data
could be opened with
DotEditor
For more details, please go to
nools-ts


Your Session ID:
Loading...
Your Set Name:
Loading...
First Visit Time:
Loading...
Current Time:
{$php.view_time}
Your Name:


--- layout: page title: About header-img: "img/about-bg.png" ---
Flatiron School Software Engineering student hoping to help give insight and inspire his fellow humans who may be thinking about a career in programming!


MARKUP Setup
MARKUP is not a plugin for Sphinx and is not installed to your system. Instead, it is downloaded as a complete set of directories and files from GitHub.
Required
MARKUP requires the following applications to be installed on your machine:
Recommended
MARKUP recommends the following:
Download Theme
MARKUP can be downloaded from GitHub.
To download the MARKUP theme
- Open https://github.com/markup-theme/markup-theme in a web browser.
- Click Clone or download, and then select Download ZIP.
- Open the downloaded ZIP file and move its contents to a location on your local machine.
Environment Setup
The following setup instructions assume the following:
- You are installing on Mac OS
- You are able to run the pip command (for non-Sass applications)
- You are able to install Rubygems (for Sass)
For all other installation scenarios, the steps are similarly easy. Please refer to the linked setup docs for each application for the correct information.
To set up your MARKUP theme environment
Install Sphinx:
Install Sass:
Install Hieroglyph:
Install the Recommonmark docutils-compatibility bridge:
$ pip install recommonmark
A documentation project that supports Markdown authoring must add the following elements to the conf.py file:
Under import sys, os
add:
from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify
source_parsers = {
'.md': CommonMarkParser,
}
Change source_suffix = '.rst'
to source_suffix = ['.rst', '.md']
.
At the bottom of the Options for HTML output configuration section, add:
def setup(app):
app.add_config_value('recommonmark_config', {
'enable_eval_rst': True,
}, True)
app.add_transform(AutoStructify)
Install WeasyPrint:
and then run $ weasyprint --version
to verify.
Note
In some cases, you will need to make sure that the user running the WeasyPrint installation command can write to the install directory. By default, that requires a command similar to:
$ sudo chown -R $USER:admin /usr/local
Localhost Setup
MARKUP must be run as an actual website to ensure certain behaviors, especially for top-level navigation linking, left-side navigation linking, correct highlighting in the left-side navigation. This is true even for local development. You can view any HTML page in any browser to read and verify rendering of formatting elements on the pages themselves—notes, warnings, code blocks, tables, etc.—but linking to other pages and/or using the navigation will not behave correctly. Use localhost to enable correct website behaviors on your local machine.
Mac OS machines have built-in localhost abilities that can be enabled.
To set up localhost on Mac OS
Run the following command:
Open the configuration file:
$ sudo nano /etc/apache2/httpd.conf
Enable PHP 7.1 by removing the #
from this line:
#LoadModule php7_module libexec/apache2/libphp7.so
Restart Apache.
Open the configuration file:
$ sudo nano /etc/apache2/httpd.conf
and then update DocumentRoot
and <Directory
to have the path to the /output
directory for MARKUP:
$ DocumentRoot "/path/to/markup_theme/output/"
<Directory "/path/to/markup_theme/output/">
Restart Apache.
Build MARKUP
MARKUP includes five documentation projects that are designed to fit together to show the entire output of MARKUP, including linked top-level navigation, site-specific left-side navigation, presentations, and PDFs, all built from one source repository, using a common toolset, and with the same user experience.
MARKUP has a default structure of:
$markup_theme
│ _ext
│ _templates
│ _themes
│───docs
│ ├── ...
│ ├── md
│ ├── pdf
│ ├── rst
│ ├── slides
│ images
│ markup_md
│ markup_pdf
│ markup_rst
│ markup_slides
│ markup_theme
│ misc
│ README.md
│ shared
│ tokens
Output Directories
The output directories are the locations to which Sphinx will put successfully built files. This section describes how to create an output directory structure named /docs
that exists alongside the document source to enable use for GitHub pages.
Note
The output location is specified as a parameter of the sphinx-build
command and, as such, can be any location you want.
Create the top-level /docs
directory:
$ sphinx-build -b html markup_theme/markup_theme/source/ markup_theme/docs/
Create the /output/md
directory:
$ sphinx-build -b html markup_theme/markup_md/source/ markup_theme/docs/md/
Create the /output/rst
directory:
$ sphinx-build -b html markup_theme/markup_rst/source/ markup_theme/docs/rst/
Create the /output/slides
directory:
$ sphinx-build -b html markup_theme/markup_slides/source/ markup_theme/docs/slides/
Create the /output/pdf
directory:
$ sphinx-build -b html markup_theme/markup_pdf/source/ markup_theme/docs/pdf/
This is the directory from which PDFs are printed.
Note
When you are using MARKUP, you do not have to use this exact process for building PDFs. What you need to do is build the HTML to a location that is available to the weasyprint
command as a URL. This can at a localhost URL, a local file:///
path, an actual staging URL on an internal corpnet website, a public URL, and so on. The PDF should be built from the source at that URL to a location in the /output
or copied there.
To print a PDF, assuming the source HTML output is located at http://localhost/pdf/
and is built to that, same directory as a PDF file, for md.html
:
$ weasyprint http://localhost/pdf/md.html markup_theme/docs/pdf/md.pdf
Repeat this for rst.html
:
$ weasyprint http://localhost/pdf/rst.html markup_theme/docs/pdf/rst.pdf
This should build a website that looks similar to:


back to index
Overview page
scripts/ui/options.js
Options object, which contains options such as database keys, points, etc.
Dependencies
No Dependencies
Functions
Options.toBlob = function ()
Options.fromBlob = function (blob)
Options.reset = function ()
Metrics


This page is strictly dedicated to the privacy policy for the CodeDojo official website. Because this site is hosted using an SSL connection (Secure Sockets Layer), or HTTPS, we try to add on to how safe you feel on this site. All cookies will be acknowledged on this page here.
All ages are welcome to visit this site at any time. We just wish that users under the age of 16 do not download anything off this site without parental permission. All programs are guaranteed ad-free, with downloaded games costing money. Anybody under the age of 13 must have a parent buy the game for them. We do not recommend downloading games from people other than us on this site.
We promise to use cookies only for the purpose of storing things like the purchases made on the device. We will not use them to store any personal information. If we do, it will be mention in the cookies section of this page. Personal information is not taken from your device using JavaScript, PHP, or any other server-side scripting language. This is a guarantee
Cookies are a way of storing data to be used by the server, stored on the user's device. We do use cookies on this site. A total of 1 cookie so far. If you have a browser that shows you the cookies in use, and it says 3 are in use, it isn't kidding. But the other two are stored just for the site existing. Below is a list of cookies in use on this website.
Your collected data is used only for system purposes. We do not give your information to any third-party companies.
We promise to use Google Analytics data only for improving site quality. We will not use it any where else. We will track things like how many clicks you have made, pages viewed, users on the website, and time spent on the site. Your personal data is not truly tracked by this cookie.
Contact us at<EMAIL_ADDRESS>for help with your personal information or concerns you may have. Thanks!


More...
|
| virtual string | Serialize () |
| |
|
virtual bool | HasExplicitValue (string name) |
| |
|
| override ConfigOptionsCollection | ConfigOptions [get] |
| |
| virtual bool | Alternate [get, set] |
| | Used in conjunction with iterations to reverse the animation each time an iteration completes. More...
|
| |
| virtual int | Delay [get, set] |
| | Time to delay before starting the animation. Defaults to 0. More...
|
| |
|
virtual int | Iterations [get, set] |
| |
| virtual bool | Dynamic [get, set] |
| | Currently only for Component Animation: Only set a component's outer element size bypassing layouts. Set to true to do full layouts for every frame of the animation. Defaults to false. More...
|
| |
|
virtual bool | Reverse [get, set] |
| |
| JFunction | Callback [get, set] |
| | A function called when the effect is finished. Note that effects are queued internally by the Fx class, so do not need to use the callback parameter to specify another effect – effects can simply be chained together and called in sequence (e.g., el.slideIn().highlight();). The callback is intended for any additional code that should run once a particular effect has completed. The Element being operated upon is passed as the first parameter. More...
|
| |
| int | Duration [get, set] |
| | Time in milliseconds for a single animation to last. If the iterations property is specified, then each animate will take the same duration for each iteration. More...
|
| |
| Easing | Easing [get, set] |
| | A valid Easing value for the effect More...
|
| |
| string | Scope [get, set] |
| | The scope of the effect function More...
|
| |
| virtual ConfigOptionsCollection | ConfigOptions [get] |
| |
| virtual ConfigOptionsExtraction | ConfigOptionsExtraction [get] |
| |
| virtual DefaultValueMode | DefaultValueMode [get, set] |
| |
| ConfigOptionsCollection | ConfigOptions [get] |
| |
| ConfigOptionsExtraction | ConfigOptionsExtraction [get] |
| |
| DefaultValueMode | DefaultValueMode [get, set] |
| |
◆ Serialize()
| virtual string Ext.Net.Mobile.ElementFxConfig.Serialize |
( |
| ) |
|
|
inlinevirtual |
◆ Alternate
| virtual bool Ext.Net.Mobile.ElementFxConfig.Alternate |
|
getset |
Used in conjunction with iterations to reverse the animation each time an iteration completes.
◆ Callback
| JFunction Ext.Net.Mobile.ElementFxConfig.Callback |
|
getset |
A function called when the effect is finished. Note that effects are queued internally by the Fx class, so do not need to use the callback parameter to specify another effect – effects can simply be chained together and called in sequence (e.g., el.slideIn().highlight();). The callback is intended for any additional code that should run once a particular effect has completed. The Element being operated upon is passed as the first parameter.
◆ ConfigOptions
◆ Delay
| virtual int Ext.Net.Mobile.ElementFxConfig.Delay |
|
getset |
Time to delay before starting the animation. Defaults to 0.
◆ Duration
| int Ext.Net.Mobile.ElementFxConfig.Duration |
|
getset |
Time in milliseconds for a single animation to last. If the iterations property is specified, then each animate will take the same duration for each iteration.
◆ Dynamic
| virtual bool Ext.Net.Mobile.ElementFxConfig.Dynamic |
|
getset |
Currently only for Component Animation: Only set a component's outer element size bypassing layouts. Set to true to do full layouts for every frame of the animation. Defaults to false.
summary> Run the animation from the end to the beginning. Defaults to false. /summary>
◆ Easing
| Easing Ext.Net.Mobile.ElementFxConfig.Easing |
|
getset |
A valid Easing value for the effect
◆ Scope
| string Ext.Net.Mobile.ElementFxConfig.Scope |
|
getset |
The scope of the effect function
The documentation for this class was generated from the following files:
- Factory/ConfigOptions/ElementFxConfigConfigOptions.cs
- Utility/Fx.cs


WAG THE DOG (R)
Directed by Barry Levinson Running Time: 97 minutes Originally Released: January 9, 1998
Reviewed by E. Benjamin Kelsey
* * * (out of four)
It's a good thing WAG THE DOG didn't use some of the special effects Robert Zemeckis favors (and heavily showed off in CONTACT), because if President Clinton had been "morphed" into the film, Barry Levinson may have become the Nostradamus of modern political scandal. Perhaps a sequel is in order, and this time we *can* put Clinton in it, and this time we'll also show the President's mistress (Monica Lewinsky superimposed into the scene), and this time when Bubba bares all, we'll simply call it FLUBBER 2. Or, with Clinton and Lewinsky both blended into the picture, maybe the suitable title will be SPLICE WORLD. Oh what fun we can have watching Bill do a bad Blues Brother impression, blaring on his saxophone while Lewinsky sings a catchy dance-pop tune. ("If you wanna be my lover, you gotta get with the Pres"?)
One must admit, the latest White House scandal riding the coattails of WAG THE DOG's national release is more than interesting. Who would've thought this movie would serve as the opening act to a scandal that has gone on to dominate headlines and news magazines for the past few months? I can only assume it has helped WAG THE DOG bring in more business as residents of the good ole U.S.A. flock into theaters to see how closely the outside world parallels that on the big screen. But WAG THE DOG's focus remains more on covering the scandal than on the scandal itself. When the President is accused of sexual misconduct around election time, he enlists the aid of the White House's top spin doctor, Conrad Brean (Robert De Niro), to deviate the public's attention from such crushing allegations. In turn, Conrad enlists the aid of acclaimed Hollywood producer Stanley Motts (Hoffman) to fabricate some overseas conflicts . . . not quite a war, but a "pageant".
Picking Albania as the hot spot to ensure Americans' knowledge will remain minimal, Motts hires some of his best to create "genuine" news footage, legendary heros, and even an overly patriotic theme song. The acting is sharp, the script clever, but there is also plenty to improve on. WAG THE DOG is too much idea and not enough story. The pacing is hectic, creating the right atmosphere for what's going on onscreen, but as beautifully presented as it is, it would work much better as a thirty minute short. While one can easily walk away from this film appreciating its biting satire and powerful cast, it doesn't stretch far beyond a really, really good idea. Speaking for myself, I want just a bit more.
De Niro has received quite a bit of praise for his role here, and although he was delightfully on key, it is Hoffman who gives the only truly stellar performance. It's obvious this project was a bit of a trip to the candy store for both Levinson and Hoffman. The acting adrenaline is high, and Hoffman reflects it well. On the other hand, we also have Anne Heche as White House aide Winifred Ames. If you believe this movie, it appears that White House aides do nothing more than sit around looking bored out of their minds. Heche seems to add nothing more than a tranquil backdrop to an otherwise eccentric cast of chatter-box characters.
Not only the direction of the film is hectic - the camera work by Robert Richardson is also a bit hyper, with sudden unnecessary zooms and pans that made me dizzy. It's a bit distracting when you feel like you're watching a political documentary shot by Mtv. Still, the intelligent comedy is a rare thing nowadays, and this one is incredibly smart. For that aspect alone, WAG THE DOG is one to see. With all the hoopla over Clinton going on however, it's not much of an escape from the real world.
January 17, 1998
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Swastikas found on Worcester State University restroom door
by EndPlayWORCESTER, Mass. (AP) - Swastikas were found on the door of a men's restroom at a Worcester State University, according to an email from the school's dean of students.
The swastikas were found on the third floor of the school's Learning Resource Center by an employee, the Telegram & Gazette reported. The email said the swastikas were reported around 3:30 p.m. Friday and removed by facilities staff.
"Worcester State University does not condone offensive symbols, language or artifacts that disparage or otherwise target an individual, protected group or diverse segments of our population," the email said. "The University strives to create a welcoming, inclusive learning environment where all students, staff and faculty - regardless of background - can thrive."
University representatives did not return the Telegram & Gazette's requests for comment.
The incident remains under investigation.


ofLog
ofLog provides an interface for writing text output from your app. It's basically a more useful version of cout or printf where output can be filtered and written to the console or to a file.
Sometimes you want to be able to see when something has happened inside the code, but don't need to draw something visually. Oftentimes it's more then enough to print out the state of a few variables when debugging. Other times you need to know if a crash happened while your app was running somewhere, so you log messages and variables to a file you can read after the program crashes.
Log Levels
You can also set the logging level so only messages above a certain priority are shown. This is useful if you want see lots of messages when debugging, but then set a higher level so only warnings and errors appear for users. See ofSetLogLevel(logLevel) for more detail.
Log levels are (in order of priority):
OF_LOG_VERBOSE
OF_LOG_NOTICE
OF_LOG_WARNING
OF_LOG_ERROR
OF_LOG_FATAL_ERROR
OF_LOG_SILENT
Note: OF_LOG_SILENT
is a special value which disables all messages.
Usage
There are 2 ways you can use ofLog:
Functional: as a function taking a message
// send a single string message, setting the log level
ofLog(OF_LOG_NOTICE, "the number is " + ofToString(10));
// the legacy printf style
ofLog(OF_LOG_NOTICE, "the number is %d", 10);
See ofLog(logLevel, &message) & ofLog(logLevel, format*, …) for more details.
Stream: as a stream using the << stream operator
// the stream style, setting the log level
ofLog(OF_LOG_NOTICE) << "the number is " << 10;
// this is the same as the last line, but only sends at log level notice
ofLog() << "the number is " << 10;
// there are also log level specific stream objects,
// one for each level except OF_LOG_SILENT
ofLogVerbose() << "a verbose print"
ofLogNotice() << "a regular notice print";
ofLogWarning() << "uh oh, a warning";
ofLogError() << "oh no, an error occurred!";
ofLogFatalError() << "accckkk, a fatal error!!";
Note: The log level specific stream objects also take a string argument for the "module". A module is a string that is added to the beginning of the log line and can be used to separate logging messages by setting an independent log level for that module only. This module-specific log level has no effect on other modules. See ofSetLogLevel(module, logLevel) for more detail.
// log to a module called "Hello"
ofLogWarning("Hello") << "a warning print";
Warning: It is important to understand that the log level specific stream objects take the module name as an argument and the log messages via the << operator. Putting your message as a string argument inside the parentheses uses that message as a module and so nothing will be printed:
// this prints a warning message
ofLogWarning() << "a warning print";
// !!! this does not print a message as the string "a warning print" is the module argument !!!
ofLogWarning("a warning print");
// this prints a warning message to the "Hello" module
ofLogWarning("Hello") << "a warning print";
Log Message Redirection
Last, it's useful to be able to record log messages to a file or send them to a custom destination. For log redirection see ofLogToFile(), ofLogToConsole(), & ofSetLoggerChannel() in the ofLog functions.
ofLog methods
setChannel(...)
void ofLog::setChannel(ofPtr< ofBaseLoggerChannel > channel)
Sets the logging channel that receives log messages. This is analogous to ofSetLoggerChannel().
See ofSetLoggerChannel() for more detail.
ofLog functions
ofGetLogLevel()
ofLogLevel ofGetLogLevel()
Get the current log level. This is useful when combined with ofGetLogLevelName() if you want to print the current log level:
ofLogLevel currentLevel = ofGetLogLevel();
ofLog() << "The current log level is " << ofGetLogLevelName(currentLevel);
ofGetLogLevelName(...)
string ofGetLogLevelName(ofLogLevel level)
Returns the given log level as a string. This is useful if you want to print the current log level:
ofLogLevel currentLevel = ofGetLogLevel();
ofLog() << "The current log level is " << ofGetLogLevelName(currentLevel);
See ofSetLogLevel(logLevel) for the log level values.
ofLogToFile(...)
void ofLogToFile(const string &path, bool append=false)
Enable logging to a file instead of the console. Set the path and name of the log file and it will be created if it doesn't exist. If it does exist, it will be overwritten unless you set append to true, whereas new lines will be added to the bottom of the file.
// logs to the console
ofLog() << "a test string";
// enable file logging, append text
// the log file will be created in the data directory
ofLogToFile("myLogFile.txt", true);
// now logs to the file
ofLog() << "a test string";
Note: When file logging is enabled, will not see log messages on the console!
ofSetLogLevel(...)
void ofSetLogLevel(ofLogLevel logLevel)
Sets the logging level so only messages above a certain priority are shown. This is useful if you want see lots of messages when debugging, but then set a higher level so only warnings and errors appear for users.
logLevel values are (in order of priority):
OF_LOG_VERBOSE
OF_LOG_NOTICE
OF_LOG_WARNING
OF_LOG_ERROR
OF_LOG_FATAL_ERROR
OF_LOG_SILENT
Following priority, setting a log level of OF_LOG_ERROR
, means only error & fatal error messages will be printed. Conversely, setting OF_LOG_VERBOSE
means all log level messages will be printed.
Here's a code example:
// set to warning level
ofSetLogLevel(OF_LOG_WARNING);
ofLogWarning() << "a warning print"; // this prints
ofLogNotice() << "test print"; // this doesn't
ofLogVerbose() << "a verbose print"; // this doesn't either
// set to notice level
ofSetLogLevel(OF_LOG_NOTICE);
ofLogWarning() << "a warning print"; // this still prints
ofLogNotice() << "test print"; // this does too
ofLogVerbose() << "a verbose print"; // this doesn't
The default log level is OF_LOG_NOTICE
.
OF_LOG_SILENT
is a special value which disables all messages.


Check this option to delete all files in the output directories. Do not check this option, if the output directory
contains files IntelliJ IDEA is not aware of, like resources, etc. If there is any intersection of source and output
paths, you will be prompted to resolve the issue by separating source and output directories, or ignore the
issue.


{% autoescape true %}
Knowlarity TT/Foosball Leaderboard
Home
Create Team
Record Match Scores
Team Name
Player 1 Name
Player 2 Name
Submit
{% endautoescape %}