tensorlayer.cost
¶
cross_entropy (output, target) |
Returns the cost function of Cross-entropy of two distributions, implement softmax internally. |
mean_squre_error (output, target) |
Return the cost function of Mean-squre-error of two distributions. |
li_regularizer (scale) |
li regularization removes the neurons of previous layer, ‘i’ represents ‘inputs’. |
lo_regularizer (scale) |
lo regularization removes the neurons of current layer, ‘o’ represents outputs |
maxnorm_regularizer ([scale]) |
Max-norm regularization returns a function that can be used to apply max-norm regularization to weights. |
maxnorm_o_regularizer (scale) |
Max-norm output regularization removes the neurons of current layer. |
maxnorm_i_regularizer (scale) |
Max-norm input regularization removes the neurons of previous layer. |
Cost functions¶
-
tensorlayer.cost.
cross_entropy
(output, target)[source]¶ Returns the cost function of Cross-entropy of two distributions, implement softmax internally.
- output : tensorflow variable
- A distribution with shape: [None, n_feature].
- target : tensorflow variable
- A distribution with shape: [None, n_feature].
>>> ce = tf.cost.cross_entropy(y_logits, y_target_logits)
About cross-entropy: wiki.
The code is borrowed from: here.
Regularization functions¶
-
tensorlayer.cost.
li_regularizer
(scale)[source]¶ li regularization removes the neurons of previous layer, ‘i’ represents ‘inputs’.
Returns a function that can be used to apply group li regularization to weights.
The implementation follows TensorFlow contrib.
- scale : float
- A scalar multiplier Tensor. 0.0 disables the regularizer.
A function with signature li(weights, name=None) that apply L1 regularization.
ValueError: If scale is outside of the range [0.0, 1.0] or if scale is not a float.
-
tensorlayer.cost.
lo_regularizer
(scale)[source]¶ lo regularization removes the neurons of current layer, ‘o’ represents outputs
Returns a function that can be used to apply group lo regularization to weights.
The implementation follows TensorFlow contrib.
- scale : float
- A scalar multiplier Tensor. 0.0 disables the regularizer.
A function with signature lo(weights, name=None) that apply Lo regularization.
ValueError: If scale is outside of the range [0.0, 1.0] or if scale is not a float.
-
tensorlayer.cost.
maxnorm_regularizer
(scale=1.0)[source]¶ Max-norm regularization returns a function that can be used to apply max-norm regularization to weights. About max-norm: wiki.
The implementation follows TensorFlow contrib.
- scale : float
- A scalar multiplier Tensor. 0.0 disables the regularizer.
A function with signature mn(weights, name=None) that apply Lo regularization.
ValueError: If scale is outside of the range [0.0, 1.0] or if scale is not a float.
-
tensorlayer.cost.
maxnorm_o_regularizer
(scale)[source]¶ Max-norm output regularization removes the neurons of current layer.
Returns a function that can be used to apply max-norm regularization to each column of weight matrix.
The implementation follows TensorFlow contrib.
- scale : float
- A scalar multiplier Tensor. 0.0 disables the regularizer.
A function with signature mn_o(weights, name=None) that apply Lo regularization.
ValueError: If scale is outside of the range [0.0, 1.0] or if scale is not a float.
-
tensorlayer.cost.
maxnorm_i_regularizer
(scale)[source]¶ Max-norm input regularization removes the neurons of previous layer.
Returns a function that can be used to apply max-norm regularization to each row of weight matrix.
The implementation follows TensorFlow contrib.
- scale : float
- A scalar multiplier Tensor. 0.0 disables the regularizer.
A function with signature mn_i(weights, name=None) that apply Lo regularization.
ValueError: If scale is outside of the range [0.0, 1.0] or if scale is not a float.


Glowkit 1.17-R0.1-SNAPSHOT API
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes relevant to advancements.
Classes relevant to attributes.
Classes used to manipulate the voxels in a
world
,
including special states.Classes relevant to banner blocks.
Generalized BlockData classes.
Specific BlockData classes relevant to only a given block or set of blocks.
Classes relevant to structure blocks.
Classes concerning the creation of boss bars that appear at the top of the
player's screen.
Classes relating to handling specialized non-chat player input.
Commands for emulating the Minecraft commands and other necessary ones for
use by a Bukkit implementation.
Classes dedicated to handling a plugin's runtime configuration.
Classes dedicated to facilitating
configurations
to be read and
stored on the filesystem.Classes dedicated to being able to perform serialization specialized for
the Bukkit
configuration
implementation.Classes dedicated to facilitate direct player-to-plugin communication.
Classes relating to the specialized enhancements to
item stacks
, as part of the meta data
.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Classes concerning an entity's persistent memory.
Interfaces for various
Minecart
types.Classes dedicated to handling triggered code executions.
Events
triggered from an enchantment table
.Events
relating to entities that hang
.Events
related to raids.Events
relating to programmatic state
changes on the server.Events
relating to vehicular entities
.Events
relating to weather.Classes to facilitate
world
generation
implementation.Classes used to manipulate the default command and topic assistance system.
Classes involved in manipulating player inventories and item interactions.
The interfaces used when manipulating extra data can can be stored inside
item stacks
.Classes that allow attaching custom data to items.
Classes relevant to loot table manipulation and generation.
Classes to facilitate plugin handling of
map
displays.Classes that represents various voxel types and states.
Classes relevant to specific material types.
Classes dedicated to providing a layer of plugin specified data on various
Minecraft concepts.
Classes dedicated to providing binary state properties to players.
Classes that allow attaching persistent data to various objects.
Classes specifically relating to loading software modules at runtime.
Classes for handling
plugins
written in
java.Classes dedicated to specialized plugin to client protocols.
Classes to represent various
potion
properties and manipulation.Classes to represent the source of a projectile
Classes dedicated to letting
plugins
run
code at specific time intervals, including thread safety.Interfaces used to manage the client side score display system.
Multi and single purpose classes to facilitate various programmatic
concepts.
Classes used to facilitate stream processing for specific Bukkit concepts.
Classes dedicated to facilitating deterministic noise.
Static methods for miscellaneous
permission
functionality.Spigot-specific classes.
Spigot-specific entity events.
Spigot-specific player events.


Fun Facts about Kate's Cats!
All you ever wanted to know about our furry friends.
Murray
-
Stats:
- Ladygirl
- Eyes: Green
- Fur: Gray and tan
- Age: 12
- Size: Very small
-
Favorite things:
- Chasing feathers
- Howling in the night
- Being a feist
Mr. Kitty
-
Stats:
- Chonkyboi
- Eyes: Yellow
- Fur: Black and brown stripes
- Age: 8
- Size: Planetary
-
Favorite things:
- Sleeping
- Eating
- Dreaming about how much he's going to eat when he wakes up


ICAT provides both a SOAP and a RESTful web service to communicate with the core ICAT code which makes calls to a relational DBMS. This document describes the RESTful interface but assumes some knowledge of ICAT as explained in the ICAT user manual.
In the case of an error from the ICAT code the returned json will be of the form: {"code":"BAD_PARAMETER", "message":"password too short", "offset":"0"} where the offset (which shows the offset to the entity which caused the error) will be omitted when it is not relevant. The status code will correspond to the type of the ICAT exception as shown by the code value. In the case of any other error, the code field will always be "INTERNAL", the offset will always be omitted and the status code will be 500 ("Internal Server Error"). Clients should always check the status code and if status/100 is not 2 then an error has occurred.
The @GET calls can be tried on a web browser and curl can be used to make any of the calls. For example a url of the form: https://example.com:443/icat/version will return some json such as {"version":"4.8.0"}
The first thing you will need is a session so please see the documentation on POST to a session resource.
The import and export calls make use of a special format to represent ICAT data efficiently. The file may contain line starting with a # sign. The first non-comment line contains the version number of the file format with major and minor parts. Each entity type is preceded by a blank line line followed by a one line entity descriptor and then a line for each entity of that type.
For example:
# Version of file format 1.0 Facility ( name:0, daysUntilRelease:1, createId:2, createTime:3) "Test port facility", 90, "Zorro", 1920-05-16T16:58:26.12Z InvestigationType (facility(name:0), name:1) "Test port facility", "atype" "Test port facility", "btype" Investigation(facility(name:0), name:1, visitId:2, type(facility(name:0), name:3), title:4) "Test port facility", "expt1", "one", "atype", "a title"
The entity descriptor starts with the name of the entity type followed by a comma separated list attribute of field names held inside parentheses. It is not necessary to include those which you don't wish to set as any that are not present and are allowed to be null will be set to null when importing. So we see that this file will create a Facility with fields: name, daysUntilRelease, createId and createTime. Following the field name is a colon and an integer showing the offset to the data field in each of the next set of rows. So a facility will be created with a name of "Test port facility" and with 90 daysUntilRelease. All strings must be enclosed in double quotes; to represent a a double quote within the string then it must be escaped with a back slash: \". The following escape sequences are available:
True, false and null literals are not case sensitive. The last two fields of the facility are createId and createTime. If you specify that you want all attributes and you are a "root user" then the values of createId and createTime will be respected otherwise the current time is used and the id is that of the user doing the import. Timestamp literals follow ISO 8601 and support fractional seconds and time zones. If the time zone is omitted it is interpreted as local time.
Now consider the InvestigationType for which we need to specify the facility to which it belongs and its name. The facility cannot be described by its id because we don't know what it is. So instead we list in parentheses the field names that define it. So name:0 is the name of the facility and name:1 is the name of the InvestigationType.
The next line shows the convenience of this syntax. The investigation has a facility (identified by its name:0) and the name:1 of the investigation and the visitId but it also has a type which is identified a facility (identified by its name:0) and by the name:3 of the type. Finally it has a title:4 field. Note that name:0 is used twice as in this case the investigation belongs to the same facility as its type. This works fine as long as we deal with entity types which have key fields. This is shown in the next snippet from an import file:
DataCollection(?:0) "a" "b" "c" DataCollectionDatafile(datafile(dataset(investigation(facility(name:0), name:1, visitId:2), name:3), name:4), dataCollection(?:5)) "Test port facility", "expt1", "one", "ds1", "df1", "a" "Test port facility", "expt1", "one", "ds1", "df2", "b" Job(application(facility(name:0), name:1, version:2), inputDataCollection(?:3), outputDataCollection(?:4)) "Test port facility", "aprog", "1.2.3", "a", "b"
Here we have the DataCollection which we imagine to be identified by the anonymous variable "?". This section of the file will create three DataCollection entries which we shall remember for the duration of the import process as "a", "b" and "c".
DataCollectionDatafiles are then associated with DataCollections "a" and "b" and a job is created with one DataCollection as input and one as output.
When performing export the same format is used however some values will be repeated - for example the facility name will appear many times in most rows.


scrollutil::scrollableframe
Commandscrollutil::scrollableframe
– Create and manipulate
scrollableframe widgetsscrollutil::scrollableframe pathName ?options?
-background -highlightbackground -relief -borderwidth -highlightcolor -xscrollcommand -cursor -highlightthickness -yscrollcommand
-contentheight
screenDistance
-contentwidth
screenDistance
-fitcontentheight
boolean
-fitcontentwidth
boolean
-height
screenDistance
-takefocus
0|1|""|command
-width
screenDistance
-xscrollincrement
screenDistance
-yscrollincrement
screenDistance
pathName attrib ?name
?value name value ...??
pathName autofillx
?boolean?
pathName autofilly
?boolean?
pathName autosize
?w|h|wh?
pathName cget
option
pathName configure
?option ?value option value ...??
pathName contentframe
pathName hasattrib
name
pathName scan option
args
pathName scan mark x y
pathName scan dragto x y
?gain?
pathName see widget
?nw|ne|sw|se?
pathName seerect x1
y1 x2 y2
?nw|ne|sw|se?
pathName unsetattrib
name
pathName xview
?args?
pathName xview
pathName xview units
pathName xview moveto
fraction
pathName xview scroll number
units|pages
pathName yview
?args?
pathName yview
pathName yview units
pathName yview moveto
fraction
pathName yview scroll number
units|pages
scrollutil::scrollableframe
– Create and manipulate
scrollableframe widgetsscrollutil::scrollableframe pathName ?options?
scrollutil::scrollableframe
command creates a
new window named pathName
and of the class
Scrollableframe
, and makes it into a
scrollableframe widget. Additional options, described below,
may be specified on the command line or in the option database to configure
aspects of the scrollableframe widget such as its width, height, and
scrolling increments. The
scrollutil::scrollableframe
command returns its
pathName
argument. At the time this command is
invoked, there must not exist a window named pathName
,
but pathName
's parent must exist.-xscrollcommand
and -yscrollcommand
configuration options and the associated Tcl command has the
xview
and yview
subcommands. The content frame may
contain any number of arbitrary widgets. In other words, the
scrollutil::scrollableframe
command implements a
scrollable widget container.contentframe
subcommand. Individual
widgets contained in it can be made visible in the scrollableframe window
with the aid of the see
subcommand. In addition to scrolling, scrollableframe widgets also
support scanning, with the aid of appropriate mouse event bindings that
invoke the scan
subcommand.set sa [scrollutil::scrollarea ...] set sf [scrollutil::scrollableframe $sa.sf ...] $sa setwidget $sf set cf [$sf contentframe] <populate the content frame> $sf autosize w update idletasks $sf configure -height ... -yscrollincrement ... pack $sa -expand yes -fill both
scrollutil::scrollableframe
command automatically
registers it for scrolling with the mouse wheel, by passing its path name
to the scrollutil::enableScrollingByWheel
command.-background -highlightbackground -relief -borderwidth -highlightcolor -xscrollcommand -cursor -highlightthickness -yscrollcommand
-background
,
-highlightbackground
,
-highlightcolor
, and
-highlightthickness
options are only supported by the
Scrollutil package, but not by Scrollutil_tile. They have the same
default values as the options of the same names for Tk frame widgets.
The default values of the remaining standard options are:-borderwidth 0 -cursor "" -relief flat -xscrollcommand "" -yscrollcommand ""
| Command-Line Name: | -contentheight |
| Database Name: | contentHeight |
| Database Class: | ContentHeight |
Specifies the desired height for the content frame in any of the forms acceptable to
Tk_GetPixels
. If the option's value is less than or equal to zero then the content frame's height is made just large enough to hold all its children. This option is only relevant if the value of the-fitcontentheight
option is false; otherwise the content frame will have the same height as the scrollableframe window (excluding the latter's border and highlight rectangle, if any), regardless of the value of the-contentheight
option. The default is0
, which is suitable for the vast majority of applications.
| Command-Line Name: | -contentwidth |
| Database Name: | contentWidth |
| Database Class: | ContentWidth |
Specifies the desired width for the content frame in any of the forms acceptable to
Tk_GetPixels
. If the option's value is less than or equal to zero then the content frame's width is made just large enough to hold all its children. This option is only relevant if the value of the-fitcontentwidth
option is false; otherwise the content frame will have the same width as the scrollableframe window (excluding the latter's border and highlight rectangle, if any), regardless of the value of the-contentwidth
option. The default is0
, which is suitable for the vast majority of applications.
| Command-Line Name: | -fitcontentheight |
| Database Name: | fitContentHeight |
| Database Class: | FitContentHeight |
Specifies a boolean value indicating whether or not the content frame should have the same height as the scrollableframe window (excluding the latter's border and highlight rectangle, if any). If true then the content frame's height will be kept in sync with that of the widget and the value of the
-contentheight
option will be ignored. The default is0
.
| Command-Line Name: | -fitcontentwidth |
| Database Name: | fitContentWidth |
| Database Class: | FitContentWidth |
Specifies a boolean value indicating whether or not the content frame should have the same width as the scrollableframe window (excluding the latter's border and highlight rectangle, if any). If true then the content frame's width will be kept in sync with that of the widget and the value of the
-contentwidth
option will be ignored. The default is0
.
| Command-Line Name: | -height |
| Database Name: | height |
| Database Class: | Height |
Specifies the desired height for the scrollableframe widget in any of the forms acceptable to
Tk_GetPixels
. Note that this sets the inner height, excluding the border and highlight rectangle (if any) drawn around the outside of the widget. The default is7c
, which should be overridden with a suitable application-specific value.
| Command-Line Name: | -takefocus |
| Database Name: | takeFocus |
| Database Class: | TakeFocus |
This option determines whether the scrollableframe widget accepts the focus during keyboard traversal. It is almost identical to the standard option of the same name (see the options manual entry for details). The only difference is that not the scrollableframe widget itself but its content frame will receive the focus during keyboard traversal with the standard keys (
Tab
andShift-Tab
). The default is0
, being that a scrollableframe widget is esentially a frame used as a view for its content frame component.
| Command-Line Name: | -width |
| Database Name: | width |
| Database Class: | Width |
Specifies the desired width for the scrollableframe widget in any of the forms acceptable to
Tk_GetPixels
. Note that this sets the inner width, excluding the border and highlight rectangle (if any) drawn around the outside of the widget. The default is10c
, which should be overridden with a suitable application-specific value.
| Command-Line Name: | -xscrollincrement |
| Database Name: | xScrollIncrement |
| Database Class: | ScrollIncrement |
Specifies an increment for horizontal scrolling, in any of the forms acceptable to
Tk_GetPixels
. If the value of this option is greater than zero then the horizontal view in the window will be constrained so that the x coordinate within the content frame at the left edge of the window is always an even multiple ofxScrollIncrement
; furthermore, the units for horizontal scrolling (see thexview
subcommad) will also bexScrollIncrement
. If the value is less than or equal to zero then the horizontal scrolling is unconstrained. The default is0
.
| Command-Line Name: | -yscrollincrement |
| Database Name: | yScrollIncrement |
| Database Class: | ScrollIncrement |
Specifies an increment for vertical scrolling, in any of the forms acceptable to
Tk_GetPixels
. If the value of this option is greater than zero then the vertical view in the window will be constrained so that the y coordinate within the content frame at the top edge of the window is always an even multiple ofyScrollIncrement
; furthermore, the units for vertical scrolling (see theyview
subcommad) will also beyScrollIncrement
. If the value is less than or equal to zero then the vertical scrolling is unconstrained. The default is0
.
scrollutil::scrollableframe
command creates a new
Tcl command whose name is pathName
. This
command may be used to invoke various operations on the widget. It
has the following general form:
pathName option ?arg arg ...?
option
and the arg
s determine
the exact behavior of the command. The following commands are
possible for scrollableframe widgets:pathName attrib
?name ?value name value ...??
name
is specified, the command returns a list of
pairs, each of which contains the name and the value of an attribute
for pathName
. If name
is
specified with no value
, then the command returns
the value of the one named attribute, or an empty string if no
corresponding value exists (you can use the hasattrib
subcommand to distinguish this
case from the one that the value of an existing attribute is an
empty string). If one or more
name
-value
pairs are specified,
then the command sets the given widget attribute(s) to the given
value(s); in this case the return value is an empty string. Each
name
may be an arbitrary string.pathName autofillx
?boolean?
-fitcontentwidth
option to true if
the content frame's requested width is less than the scrollableframe's
inner width and to false otherwise. Moreover, the command makes
sure that this action will be repeated whenever the content frame's
requested width or the scrollableframe's inner width changes. If
the optional argument is false then the command clears the flag that
controls this dynamic action. In both cases, the return value is
an empty string. Without the optional argument the command
returns the current value of the above-mentioned flag.pathName autofilly
?boolean?
-fitcontentheight
option to true if
the content frame's requested height is less than the scrollableframe's
inner height and to false otherwise. Moreover, the command makes
sure that this action will be repeated whenever the content frame's
requested height or the scrollableframe's inner height changes.
If the optional argument is false then the command clears the flag that
controls this dynamic action. In both cases, the return value is
an empty string. Without the optional argument the command
returns the current value of the above-mentioned flag.pathName autosize
?dimensions?
-width
and/or -height
option of the scrollableframe to the
requested width and/or height of its content frame, according to the
optional dimensions
argument, whose possible values
are w
(width), h
(height), and
wh
(width and height). The default is an
empty string, meaning that neither the width nor the height is
explicitly requested to be set. Note that if the value of
the -fitcontentwidth
option is true then the command sets the widget's inner width to the
requested width of its content frame, regardless of whether this was
explicitly specified or not. Similarly, if the value of
the -fitcontentheight
option is true
then the command sets the widget's inner height to the requested height
of its content frame, even if this was not explicitly
specified."after 100"
callback, to make sure that by
the time the widget's width and/or height are set, the geometry
management calculations in its content frame are finished.pathName cget
option
option
, which may have any of the values accepted
by the scrollutil::scrollableframe
command.pathName configure
?option ?value option value
...??
option
is specified, the command returns a
list describing all of the available options for
pathName
(see Tk_ConfigureInfo
for information on the format of this list). If
option
is specified with no
value
, then the command returns a list describing
the one named option (this list will be identical to the corresponding
sublist of the value returned if no option
is
specified). If one or more
option
-value
pairs are
specified, then the command modifies the given widget option(s) to have
the given value(s); in this case the return value is an empty
string. option
may have any of the values
accepted by the scrollutil::scrollableframe
command.pathName
contentframe
pathName hasattrib
name
1
if the attribute name
exists and 0
otherwise.pathName scan option
args
option
:pathName scan mark x
y
x
and y
and the
current view in the scrollableframe window; used in conjunction
with later scan dragto
commands. Typically this command is associated with a mouse
button press in the widget and x
and
y
are the coordinates of the mouse. It
returns an empty string.pathName scan dragto x y
?gain?
x
and y
arguments (which
are typically mouse coordinates) and the x
and
y
arguments to the last scan
mark
command for the widget. It then
adjusts the view by gain
times the difference
in coordinates, where gain
defaults to
10
. This command is typically associated with
mouse motion events in the widget, to produce the effect of
dragging the content frame at high speed through the window.
The return value is an empty string.pathName see widget
?corner?
widget
becomes visible in it. The
specified widget must be a descendant of the content frame and must
have the same toplevel. In addition, it must be managed by some
geometry manager (such as grid
,
pack
, place
,
text
, or canvas
). The
optional corner
argument specifies which corner of
widget
should become visible if it is too large to
fit into the window. The possible values are
nw
(north-west), ne
(north-east), sw
(south-west), and
se
(south-east). The default corner is
nw
.$w
is a descendant
of the content frame of the scrollableframe widget
$sf
(it is assumed that $sf
doesn't contain
%
characters):
bind $w <<TraverseIn>> [list $sf see %W]
$w
was embedded into a scrollarea via the latter's setwidget
subcommand, and
the scrollarea in turn is a descendant of the content frame, then it is
more user-friendly to bring the scrollarea into view rather than just
the widget:
bind $w <<TraverseIn>> [list seeScrollarea $sf %W]
proc seeScrollarea {sf w} { $sf see [scrollutil::getscrollarea $w] }
pathName seerect x1
y1 x2 y2 ?corner?
x1
,
y1
, x2
, and
y2
becomes visible in it. These coordinates
are relative to the content frame and specify two diagonally opposite
corners of the rectangle (which will include its upper and left edges
but not its lower or right edges). The optional
corner
argument specifies which corner of the
rectangle should become visible if it is too large to fit into the
window. The possible values are nw
(north-west), ne
(north-east),
sw
(south-west), and se
(south-east). The default corner is nw
.pathName
unsetattrib name
name
. Returns an
empty string.pathName xview
?args?
pathName xview
0
and 1
; together
they describe the horizontal span that is visible in the
window. For example, if the first element is 0.2
and the second element is 0.6
then 20% of the content
frame is off-screen to the left, the middle 40% is visible in the
window, and 40% of the content frame is off-screen to the
right. These are the same values passed to scrollbars via the
-xscrollcommand
option.pathName xview
units
units
is displayed at the
left edge of the window. This argument specifies a number of
units of the xScrollIncrement
option if it is
greater than zero, or of one-tenth the window's inner width
otherwise.pathName xview moveto
fraction
fraction
of the total width of the content
frame is off-screen to the left. fraction
must be a fraction between 0
and 1
.pathName xview scroll number
what
number
and
what
. number
must be
an integer or a float; if it is a float then it is converted to an
integer, rounded away from 0
.
what
must be either units
or pages
or an abbreviation of one of
these. If what
is
units
, the view adjusts left or right in units
of the xScrollIncrement
option if it is
greater than zero, or in units of one-tenth the window's inner
width otherwise. If what
is
pages
then the view adjusts in units of
nine-tenths the window's inner width. If
number
is negative then information farther to
the left becomes visible; if it is positive then information
farther to the right becomes visible.pathName yview
?args?
pathName yview
0
and 1
; together
they describe the vertical span that is visible in the
window. For example, if the first element is 0.2
and the second element is 0.6
then 20% of the content
frame is off-screen to the top, the middle 40% is visible in the
window, and 40% of the content frame is off-screen to the
bottom. These are the same values passed to scrollbars via
the -yscrollcommand
option.pathName yview
units
units
is displayed at the
top edge of the window. This argument specifies a number of
units of the yScrollIncrement
option if it is
greater than zero, or of one-tenth the window's inner height
otherwise.pathName yview moveto
fraction
fraction
of the total height of the content
frame is off-screen to the top. fraction
must be a fraction between 0
and 1
.pathName yview scroll number
what
number
and what
.
number
must be an integer or a float; if it is
a float then it is converted to an integer, rounded away from
0
. what
must be either
units
or pages
or an
abbreviation of one of these. If what
is
units
, the view adjusts up or down in units of
the yScrollIncrement
option if it is
greater than zero, or in units of one-tenth the window's inner
height otherwise. If what
is
pages
then the view adjusts in units of
nine-tenths the window's inner height. If
number
is negative then information farther to
the top becomes visible; if it is positive then information farther
to the bottom becomes visible.The scrollutil::scrollableframe widget was designed as a lightweight, theme-able, and full-featured replacement for BWidget ScrollableFrame and iwidgets::scrolledframe. The following table contains a comparison of the options and commands provided by the three widgets:
| scrollutil::scrollableframe | BWidget ScrollableFrame | iwidgets::scrolledframe |
|---|---|---|
-background |
-background |
-background |
-borderwidth |
-borderwidth |
|
-cursor |
-cursor |
|
-contentheight |
-areaheight |
[pathName component canvas] \ |
-contentwidth |
-areawidth |
[pathName component canvas] \ |
-fitcontentheight |
-constrainedheight |
bind [pathName component canvas]
<Configure> \ |
-fitcontentwidth |
-constrainedwidth |
bind [pathName component canvas]
<Configure> \ |
-height (sets the inner height,
excludingthe border and highlight rectangle, if any) |
-height (inner height = total height) |
-height (sets the total height,
includingthe border and horizontal scrollbar, if any) |
-highlightbackground |
||
-highlightcolor |
||
-highlightthickness |
||
-relief |
-relief |
|
-takefocus |
||
-width (sets the inner width,
excludingthe border and highlight rectangle, if any) |
-width (inner width = total width) |
-width (sets the total width,
includingthe border and vertical scrollbar, if any) |
-xscrollcommand |
-xscrollcommand |
|
-xscrollincrement |
-xscrollincrement |
-xscrollincrement for [pathName
component canvas] |
-yscrollcommand |
-yscrollcommand |
|
-yscrollincrement |
-yscrollincrement |
-yscrollincrement for [pathName
component canvas] |
attrib |
||
autosize |
||
autofillx |
||
autofilly |
||
cget |
cget |
cget |
configure |
configure |
configure |
contentframe |
getframe |
childsite |
hasattrib |
||
scan (with mouse event bindings) |
||
see widget
?nw|ne|sw|se? |
see widget
?top|bottom ?left|right?? |
|
seerect x1 y1 x2 y2
?nw|ne|sw|se? |
||
unsetattrib |
||
xview |
xview |
xview |
yview |
yview |
yview |
xview|yview units |
||
xview|yview moveto 0|1 |
xview|yview moveto 0|1 |
justify
left|right|top|bottom (shortcut for xview|yview
moveto 0|1 ) |
REMARK 1: For the see
command provided by
the BWidget ScrollableFrame widget one cannot specify the horizontal side
without the vertical one.
In addition, the command works only for direct children of the
ScrollableFrame widget's content frame.
REMARK 2: The iwidgets::scrolledframe widget has no
equivalents of the scrollutil::scrollableframe options
-contentheight
, -contentwidth
,
-fitcontentheight
, and
-fitcontentwidth
, but these can be emulated (using
undocumented internal information!) as shown above. It provides a
justify
command, which is, however, just a shortcut
for xview|yview moveto 0|1
.
What this widget is really missing, is a see
command for
making individual widgets visible in the window (which is important for
user-friendly keyboard navigation).


Try Haskell is currently under maintenance!
Check back in ten minutes!
You're seeing this message because this web site is under maintenance right now!.
Cool new features are probably being added. We just need to make sure it's right.
Meanwhile...
Real World Haskell! Get stuck into a book with Real World Haskell (readable online!) or Learn You a Haskell (readable online!). Checkout Haskell.org for more information about Haskell.


Mar 25, 2020
5 mins read
In 2009 A Tahitian Princess and a young American fell in love.
They both lived together in San Diego. The American went to College at UCSD, the Tahitian went to college at USD.
They both Traveled to Tahiti in 2011. This trip was the American’s first time in Tahiti and he loved the Island much.
The Family and he enjoy Tama’a Maitai and watched a Dance. They traveled the island and they spent their time with their family.
In December of 2012 until January of 2013 they went to New Zealand for a romantic get away.
There they traveled the country side visiting the rolling grass hills, seeing the glow in the dark worms, and staying the night at lake Taupo.
Later than year, in 2013 around April or May was their first encounter with the paranormal.
Someone had used a spiritual tool to split the two of them up emotionally in order for them to sleep with the Tahitian princess.
This Professor of hers from her school did not tell her, or her boy friend - The American - about what he was doing or what he was using to split the two of them up as well as to make her go with him.
The very next morning the Tahitian Princess messaged her American that she had wanted to die, and asked for a medicine to do it. She cried and begged, but this would be a large cut between the two.
It would later be found out this Professor was working with a secret group of others who used these types of tools to spiritually hurt, take advantage of, and manipulate the unaware. Attempting to take from them, their spiritual and ansestoral inheritance.
A similar section of the Christian Science faith had worked with them in manipulating the spiritual and occult in order to alter time and the future in their own favor, looking to instigate would be catostrophic events.
In 2015 the Tahitian Princess and the American reunited in San Francisco where they were married, in body and soul.
Meanwhile, they continued to be hunted down by participants in this larger hidden plot to manipulate the future and the planet by using these spiritual tools without the conset of knowledge of those they were manipulating.
It would appear as though many hopeful young individuals may have been pressed or tested to lean toward intoxicants, homelessness and financial instability in order for this groups inner plan to take root in reality and manifest itself once certain global events were instigated.
Married in San Francisco the tool and its code used to split them up and allure the Tahitian Princess into a Love Affair with even more powerful and dangerous suitors - connected with the American’s Government at the highest level.
Just married and with multiple men in careers, families and positions in this spiritual movement that threatened both of their freedom and love for each other.
As pressure intensified on us, the American was dangerously burglered and may have survived an attempt at murder near the Spring of 2016 with his iPhone6s.
Similarly, with our time in San Francisco, stress and drug usage grew at a significant growth. Eventually The American could no longer
After having difficulty in Los Angeles and nearly breaking up with each other due to a job she had in Long Beach - A job she did not want to accept and did not feel comfortable going into the interview; afterwhich she complained about the way she was treated in the interview, being teased for wearing her wedding ring and making fun of the last name she aqcuired through her husband.
July 28, 2021 (2nd) 12:07pm, As The American types this out in hopes of showing just how much damage has occured against these two, in the name of some spiritual movement; How much damage was intended for our planet through this designed course; and how much physical damage they were constantly doing to The American’s Body.
Now I sit here asking my friends and would be assialants to take a break with me, assess the information, and prepare for us to break bread and pursue our inevitable paths.
Together or apart there is something large a foot.
Can you feel it, the biggest shift in economic and spiritual power ever experienced in man kind. We have it at our feet.
Sharing is caring!


Our Next Free Gilt Tech Course: AngularJS on May 22
Open-source, powerful and easy to use, AngularJS is an amazingly useful tool for developing web applications. We thought we’d learn more about it, and so we’ve invited Angular expert Chris Nelson of Gaslight to lead our next free tech course! On Thursday, May 22, Chris will teach us the essentials of working with Angular. In this fast-paced, full-day session, we’ll cover:
- Test-driven Angular (unit and end-to-end)
- Controllers and scopes
- Using and writing filters
- Client-side routing
- Forms and validation
- Organizing your code with modules
- Dependency injection with services and factories
- Using and writing directives
- Talking to the server with
$http
and friends
When: Thursday, May 22, 2014 from 9:30 AM to 5:30 PM
Where: Gilt’s Manhattan offices
Cost: FREE (includes breakfast and lunch)
Who: Gilt technologists, maybe you?
Prerequisites: This course is appropriate for experienced front-end engineers. You should be familiar with JavaScript and jQuery or some other, similar DOM manipulation library
About the instructor:
Chris Nelson is a software developer who hails from the fair city of Cincinnati, Ohio. Though originally a violin performance major, he has been developing web applications for about 15 years and is passionate about finding better ways to do so. He’s spoken at most of the major Ruby and Java conferences and helped found Gaslightas a place for people to enjoy building amazing things together.He also regularly teaches classes around the country in Ruby, JavaScript, and AngularJS.
Fill out the form below to submit your contact info. (You must be age 18 or older to attend.) Please note that submitting this form does not guarantee you a seat—but we’ll do our best. We’ll also keep your contact info on file to let you know about future classes!
REGISTRATION IS NOW CLOSED. But go ahead and sign up for our next class!


local_precincts_2016.Rd
This dataset contains precinct-level returns for elections to local office.
Each record in the dataset gives the number of votes reported from a precinct for a candidate.
local_precincts_2016
A dataframe
with 37 variables:
year
Year of election.
state
State name.
state_postal
State U.S. Postal Service abbreviation (two-letter ISO 1366 code).
state_fips
Numeric state FIPS 5-2 code.
state_icpsr
Numeric ICPSR state code.
county_name
County name.
county_ansi
County ANSI code.
county_fips
Numeric FIPS 6-4 code, the concatenation of two-digit state_fips
and three-digit county FIPS codes.
county_lat
County latitude (decimal degrees).
county_long
County longitude (decimal degrees).
jurisdiction
The name of the administrative jurisdiction, typically a county, as it appeared in source data.
precinct
The name of the precinct, as it appeared in source data.
office
The office for which the candidate
ran.
district
District associated with the office
, where applicable.
stage
The electoral stage, either gen
for general elections or pri
for primary elections.
special
Whether the election was a special election, either TRUE
for special elections or FALSE
otherwise.
candidate
The name of the candidate.  This is a single word from candidate
, usually the last name, in lowercase. In the case of hyphenated names, only the final name is included.
candidate_full
Candidate's official full name.
candidate_suffix
Candidate name suffix.
candidate_nickname
Candidate's nickname.
candidate_fec
Candidate's [FEC identifier](https://www.fec.gov/data/advanced/?tab=candidates). Multiple FEC IDs appear concatenated, separated by a semicolon and space (;
).
candidate_fec_name
Candidate's name as it appears in FEC data.
candidate_google
Candidate's [Google Knowledge Graph](https://developers.google.com/knowledge-graph) entity identifier.
candidate_govtrack
Candidate's [GovTrack.us](https://www.govtrack.us) identifier.
candidate_icpsr
Candidate's [ICPSR](https://www.icpsr.umich.edu) identifier.
candidate_maplight
Candidate's [MapLight](https://maplight.org) identifier.
candidate_opensecrets
Candidate's [OpenSecrets.org](https://www.opensecrets.org) identifier.
candidate_wikidata
Candidate's [WikiData](https://www.wikidata.org) identifier.
candidate_party
Candidate's party affiliation. Values may differ from party
, which gives the candidate's party on the ballot.
writein
Whether the record describes a write-in candidate, either TRUE
or FALSE
.
party
Party of the candidate
, where applicable. Candidates may run on multiple party lines, so to compute two-party vote shares or candidate vote totals, aggregate over party
. Party names are standardized across jurisdictions.
mode
Vote mode, e.g., mail
or Election Day
.
votes
Number of votes received.
https://dx.doi.org/10.7910/DVN/Q8OHRS, version 2018-08-02.


The Enabling Languages Opensource Initiative is a loose affiliation of developers working on minority language support on computers, mobile devices and the web.
Dinka is a Nilotic dialect cluster spoken by the Dinka people, the major ethnic group of South Sudan.
Dinka is a Nilotic dialect cluster spoken by the Dinka people, the major ethnic group of South Sudan.


flibs/datastructures - Linked lists
The linkedlist.f90 source file allows you to implement linked lists of any (derived) type without having to edit the supplied source code. To this end a simple technique is used, which is best illustrated by an example:
module MYDATA_MODULE type MYDATA character(len=20) :: string end type MYDATA end module module MYDATA_LISTS use MYDATA_MODULE, LIST_DATA => MYDATA include "linkedlist.f90" end module MYDATA_LISTS
The above code defines a module MYDATA_MODULE with the derived type that is to be stored in the linked lists. The name of that derived type can be anything.
It also defines a module MYDATA_LISTS which will be the module that holds the functionality to use linked lists:
The module MYDATA_MODULE is used, but the derived type MYDATA is renamed to the (fixed) name LIST_DATA. (This is the name used in the generic source file.)
The source code for the actual routines is simply included via the INCLUDE statement.
Nothing more is required, we can close the source text for the module.
To use a single type of linked lists in a program, we can just use the MYDATA_LISTS module. If you need more than one type of data in linked lists, then apply the same renaming trick on using the specific linked lists modules.
In fact the example in the source file "two_lists.f90" shows the general technique of how to accomplish this.
The source file linkedlist.f90 provides the following routines:
Create a new list with one element. The given data are copied and stored in that element.
The variable that will be used for accessing the list
The data to be stored in the first element
Destroy the list. All elements contained in it will be destroyed as well.
The list to be destroyed
Function to return the number of elements in the list.
The list in question
Function to return the next element in the list. Note: it returns a pointer to the next element, so you must use =>.
The element in the list
Insert a new element (with the given data) into the list, after the given element.
The element in the list after which to insert a new one.
The data to be stored in the new element
Insert a new element (with the given data) before the head of list. The argument "list" will point to the new head.
The list in question
The data to be stored at the new head
Delete the given element from the list. The associated data will disappear.
The list in question
The element to be deleted
Copy the data belonging to the given element into the argument "data".
The element in question
The variable to hold the data
Copy the given data into the given element (overwriting the previous)
The element in question
The new data
Notes:
The lists can only store data of the same derived type. In that sense the code is not generic.
Currently, the lists can only store derived types that do not require an explicit destruction. If you want to store a derived type with pointers to allocated memory, you can do that however, by supplying an assignment operator. This would lead to a memory leak though. It is best to wait for the next version which will allow such derived types to be stored.
Copyright © 2005 Arjen Markus <arjenmarkus@sourceforge.net>


@@include('./_head.html', { "path": "../..", "title": "Pixel Documentation - Badges" })
MenuDocumentation and examples for badges, our small count and labeling component.
Bootstrap 4 documentationBadges scale to match the size of the immediate parent element by using relative font sizing and em
units.

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New

Badges can be used as part of links or buttons to provide a counter.
<button type="button" class="btn btn-primary">
Messages 9
</button>
Note that depending on how they are used, badges may be confusing for users of screen readers and similar assistive technologies. While the styling of badges provides a visual cue as to their purpose, these users will simply be presented with the content of the badge. Depending on the specific situation, these badges may seem like random additional words or numbers at the end of a sentence, link, or button.
Unless the context is clear (as with the “Notifications” example, where it is understood that the “4” is the number of notifications), consider including additional context with a visually hidden piece of additional text.
<button type="button" class="btn btn-primary">
Notifications 5
unread messages
</button>
Add any of the below mentioned modifier classes to change the appearance of a badge.
Primary
Secondary
Tertiary
Success
Danger
Warning
Info
Light
Dark
Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the
content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .sr-only
class.
Use the .badge-pill
modifier class to make badges more rounded (with a larger border-radius
and additional horizontal padding
).
Useful if you miss the badges from v3.
Primary
Secondary
Tertiary
Success
Danger
Warning
Info
Light
Dark
Using the contextual .badge-*
classes on an
element quickly provide actionable badges with hover and focus states.
Primary
Secondary
Tertiary
Success
Danger
Warning
Info
Light
Dark
Fancy larger or smaller badges? Add .badge-md
or badge-lg
for additional sizes.
Badge
Badge md
Badge lg


Interested to see how the webmail works? You’re welcome to try it out with the test account. Please feel free to play around, but keep in mind the mails in test account only has one hour life time
login with test account:
company: test username: tester password: P@55w0rd


Haiku
Please type in a haiku
in a pouch I grow, on a southern continent strange creatures I know.
Generate


All Classes
AddAppointmentController
AddRecordController
Appointment
C195AW
Contact
Country
Customer
CustomerMainScreenController
DBAppointments
DBConnection
DBContacts
DBCountry
DBCustomers
DBDivision
DBUser
Division
LoginController
ReportsFileController
TypeDisplay
UpdateAppointmentController
UpdateRecordController
User


Auto Mart
Post Ad
Explore
Login
Register
Admin
Post your ad
Title
Body Type
Manufacturer
Model
Price
State
New
Used
Status
Available
Sold
Image
Description
SUBMIT POST


Open Pampas [av25], plain, in Mandoria, peasants: 101
Last updated Turn #138
Open Pampas [av25], plain, in Mandoria, peasants: 101
------------------------------------------------------------------------
30: The fog has cleared.
Routes leaving Open Pampas:
North, mountain, to Mandor Mountains [au25], 10 days
East, plain, to Open Pampas [av26], 7 days
South, desert, to Empty Desert [aw25], 8 days
West, plain, to Open Pampas [av24], 7 days
Inner locations:
An Orc Stronghold [c48], orc-stronghold, defense 25, owner:
Stack of orcs [cr7f], orcs, number: 271
It is windy.
Seen here:
Stack of cyclops [ht9t], cyclops, number: 19
Stack of centaur [ag0j], centaurs, number: 32
Stack of orcs [cf0x], orcs, number: 254
Mob [fi5a], angry peasants, number: 32, on guard
Stack of cyclops [dl2t], cyclops, number: 7


Gradle
We can use ebean-init to automatically setup a Gradle application.
These are the instructions to setup a Gradle project without using ebean-init.
Add the Ebean plugin
Add the ebean
plugin that will perform enhancement during the gradle build.
plugins {
id('idea')
id('java')
id('io.ebean') version '13.6.5'
}
Add the Ebean dependencies
dependencies {
...
compile 'io.ebean:ebean:13.6.5'
// query bean generation
annotationProcessor 'io.ebean:querybean-generator:13.6.5'
testCompile 'io.ebean:ebean-test:13.6.5'
...
}
- querybean-generator - APT generation of the query beans
- ebean-test - testing including using docker containers
Kotlin
For Kotlin we change the annotationProcessor to kapt
as we see below
and use the kotlin-querybean-generator
which will generate the query beans as
Kotlin rather than Java.
dependencies {
...
compile 'io.ebean:ebean:13.6.5'
// query bean generation
kapt 'io.ebean:kotlin-querybean-generator:13.6.5'
testCompile 'io.ebean:ebean-test:13.6.5'
...
}
Option Ebean section
Add a ebean
section to control the debug level of enhancement.
ebean {
debugLevel = 1
}
Test output
Gradle by default suppresses output logging. If we want to see SQL, DDL, Transaction logging etc we
need to set testLogging.showStandardStreams = true
in the test section like:
test {
testLogging.showStandardStreams = true
}
Example projects
Test output
Below is a example output from ./gradlew clean test
. Specifically we can see:
- The classes being enhanced (due to ebean debugLevel = 1)
- The DDL, SQL and Transactions (controlled by logback-test.xml in this case)
$ ./gradlew clean test
> Task :compileJava
ebean-enhance> cls: org/example/domain/BaseDomain msg: enhanced
ebean-enhance> cls: org/example/domain/Customer msg: enhanced
> Task :test
enhancement prior to running tests
Gradle suite > Gradle test > org.example.domain.CustomerTest.saveAndFind STANDARD_OUT
14:48:49.900 [Test worker] INFO io.ebean.internal.DefaultContainer - DatabasePlatform name:db platform:h2
14:48:50.063 [Test worker] TRACE io.ebean.TXN - txn[1001] Begin
14:48:50.064 [Test worker] INFO io.ebean.DDL - Executing db-create-all.sql - 1 statements
14:48:50.064 [Test worker] DEBUG io.ebean.DDL - executing 1 of 1 create table customer ( id bigint auto_increment not...
14:48:50.076 [Test worker] DEBUG io.ebean.TXN - txn[1001] Commit
14:48:50.086 [Test worker] DEBUG io.ebean.SQL - txn[1002] insert into customer (name, start_date, comments, version) values (?,?,?,?); --bind(Hello Rob,2018-01-30,[LOB],1)
14:48:50.098 [Test worker] DEBUG io.ebean.SUM - txn[1002] Inserted [Customer] [1]
14:48:50.098 [Test worker] DEBUG io.ebean.TXN - txn[1002] Commit
14:48:50.122 [Test worker] DEBUG io.ebean.SQL - txn[1003] select t0.id, t0.name, t0.start_date, t0.version from customer t0 where t0.id = ? ; --bind(1, )
14:48:50.124 [Test worker] DEBUG io.ebean.SUM - txn[1003] FindBean type[Customer] origin[D88YBi.A.A] exeMicros[3052] rows[1] bind[1, ]
14:48:50.129 [Test worker] DEBUG io.ebean.SQL - txn[1004] select t0.id, t0.name, t0.start_date, t0.version from customer t0 where t0.id is not null ; --bind()
14:48:50.130 [Test worker] DEBUG io.ebean.SUM - txn[1004] FindMany type[Customer] origin[D88YBm.A.A] exeMicros[0] rows[0] predicates[t0.id is not null ] bind[]
hello Hello Rob
.. started on: 2018-01-30
14:48:50.136 [Test worker] DEBUG io.ebean.SQL - txn[1005] select t0.id, t0.name, t0.start_date, t0.version from customer t0 where t0.name like ? and t0.id > ? ; --bind(BatOutOfHell%,1)
14:48:50.136 [Test worker] DEBUG io.ebean.SUM - txn[1005] FindMany type[Customer] origin[D88YBj.A.A] exeMicros[1619] rows[0] predicates[t0.name like ? and t0.id > ? ] bind[BatOutOfHell%,1]
bats:BeanList size[0] list[]
BUILD SUCCESSFUL in 1s


FASMA
Fast Analysis of Spectra Made Automatically
Synthesis driver
Obtain stellar atmospheric parameters with synthetic fitting.
This is under construction!


Cheetah Blog
Time-Sensitive Microblogging for Parli
Other debate coming soon
Start
Stop
Clear
1AC
1NC
2AC
2NC
1NR
1AR


knit-engines.Rmd
This article introduces additional knit engines. Load atusydown
package primarily to enable features described here.
To learn more about language engines, refer to “Other language engines” section of the “R Markdown: The Definitive Guide”.
glue
The glue
engine is useful in programatically writing texts. As documented in ?glue::glue
,
Expressions enclosed by braces will be evaluated as R code. Long strings are broken by line and concatenated together. Leading whitespace and blank lines from the first and last lines are automatically trimmed.
For example, let’s substitute {name}
by “Atusy”.
First use r
engine like below.
And then use glue
engine like below. Note that echoes are suppressed.
```{glue}
> **My name is {name}.**
This output is powered by glue package!
```
My name is Atusy. This output is powered by glue package!
Nice text! The output text is rendered as Pandoc’s markdown.
Extra arguments of glue::glue()
can be controlled by specifying glue.args
. A following example replaces a expression enclosed by percents (%
and %
) instead of default braces ({
and }
)
```{glue, glue.args = list(.open = "%", .close = "%")}
> **My name is %name%.**
This output is powered by glue package!
```
My name is Atusy. This output is powered by glue package!
footnote
and fn
A footnote
engine and its alias fn
generates footnote whose label is inherited from chunk label1. The footnote
engine is powered by glue::glue()
, so that options are same as those of the glue engine. Note that echoes are suppressed.
```{fn fn-footnote}
knitr:::knit_code$get("fn-note")
```
note
The note
engine is for writing personal notes. Notes are excluded from output documents except for reveal.js slides by revealjs::revealjs_presentation()
. Note that echoes are suppressed.
When knitting reveal.js slides, notes are wrapped by aside
tags with a note
class like below.
```{note}
Here's some note.
```
Enable notes
plugin for example by a following YAML front matter to use speaker notes. For more documentations about plguins refer README of rstudio/revealjs
.
opts
The opts
engine returns chunk options of a current chunk.
By default, all the available options are returned. The output of opts
can be limited by specifying either "diff"
or "src"
to a chunk option called opts.show
.
The output of opts
is by default sorted by names. The sorting can be disabled by specifying opts.sort = FALSE
.
Note that echoes are suppressed.
```{opts}
The content of chunk is ignored.
```
#> List of 58
#> $ aniopts : chr "controls,loop"
#> $ autodep : logi FALSE
#> $ background : chr "#F7F7F7"
#> $ cache : num 0
#> $ cache.lazy : logi TRUE
#> $ cache.path : chr "knit-engines_cache/html/"
#> $ cache.rebuild: logi FALSE
#> $ cache.vars : NULL
#> $ child : NULL
#> $ code : chr "The content of chunk is ignored."
#> $ collapse : logi TRUE
#> $ comment : chr "#>"
#> $ dependson : NULL
#> $ dev : chr "png"
#> $ dev.args : list()
#> $ dpi : int 192
#> $ echo : logi TRUE
#> $ engine : chr "opts"
#> $ error : logi FALSE
#> $ eval : logi TRUE
#> $ external : logi TRUE
#> $ fig.align : chr "default"
#> $ fig.cap : NULL
#> $ fig.env : chr "figure"
#> $ fig.ext : chr "png"
#> $ fig.height : num 4.51
#> $ fig.keep : chr "high"
#> $ fig.lp : chr "fig:"
#> $ fig.path : chr "/home/rstudio/R/pkg/atusydown/docs/articles/knit-engines_files/figure-html/"
#> $ fig.pos : chr ""
#> $ fig.retina : int 2
#> $ fig.scap : NULL
#> $ fig.show : chr "asis"
#> $ fig.subcap : NULL
#> $ fig.width : num 7.29
#> $ highlight : logi TRUE
#> $ include : logi TRUE
#> $ interval : num 1
#> $ label : chr "options"
#> $ message : logi TRUE
#> $ out.extra : NULL
#> $ out.height : NULL
#> $ out.height.px: num 433
#> $ out.width : num 700
#> $ out.width.px : num 700
#> $ params.src : chr "options, engine=\"opts\""
#> $ prompt : logi FALSE
#> $ purl : logi TRUE
#> $ ref.label : NULL
#> $ render : NULL
#> $ results : chr "markup"
#> $ sanitize : logi FALSE
#> $ size : chr "normalsize"
#> $ split : logi FALSE
#> $ strip.white : logi TRUE
#> $ tidy : logi FALSE
#> $ tidy.opts : NULL
#> $ warning : logi TRUE
opts_chunk$get()
by opts.show = "diff"
Specifying ops.show = "diff"
as a chunk option returns chunk options of the source chunk which have different values from knitr::opts_chunk$get()
.
```{opts opts-diff, foo = "bar", opts.show = "diff"}
```
#> List of 11
#> $ cache : num 0
#> $ code : chr ""
#> $ dpi : int 192
#> $ engine : chr "opts"
#> $ foo : chr "bar"
#> $ label : chr "opts-diff"
#> $ opts.show : chr "diff"
#> $ out.height.px: num 433
#> $ out.width : num 700
#> $ out.width.px : num 700
#> $ params.src : chr "opts-diff, foo = \"bar\", opts.show = \"diff\", engine=\"opts\""
This is a footnote generated by fn
engine.↩


BASE
-LINE
PIN
Zoom:
bass
mids
treble
Normalize:
dB
Hz
Smooth:
╞ inspect
▭ label
⇩
screenshot
○ recolor
⊕
(or middle/ctrl-click when selecting; or pin other IEMs)
LOCK


--- layout: archive title: Zulip Chat Archive permalink: /stream/113488-general/topic/poor.20man's.20hint.20database.html ---
Is there a way to simulate Coq's hint database? For example, I often find myself writing simp [x₁, x₂, x₃, x₄]
, which I would like to replace with simp [x_lemmas]
where x_lemmas
is a sort of a "hint database" for lack of better term. (Do note that I don't want to designate xₙ
to be simp lemmas.)
there are simp sets, but we don't use them very often
you can write simp with x_lemmas
Where x_lemmas
is a "simp set"? Would it be weird for you to encounter that somewhere in Lean code - is that something to avoid?
The "default" simp set is not necessarily a superset of other simp sets, so it should be fine
It would be unusual, but not unheard of
good enough, thanks
It forms part of the public interface, so I don't use it for one off things
The "default" simp set is not necessarily a superset of other simp sets, so it should be fine
No. We have demonstrated more than once that using a simp set speeds things up.
I don’t know why you don’t like it.
?
what does that have to do with my quote
well that means the default simp set is much bigger
I said it is not a superset
{% endraw %}Last updated: Apr 24 2020 at 19:02 UTC


{% extends 'index.html' %} {% load comments %} {% block sidebar %} {#% if user.is_authenticated %#} {% get_comment_count for project as comment_count %} {% get_comment_list for project as comment_list %}
{{ comment_count }} comments have been posted.
{% for comment in comment_list %}{{ comment.comment }}


§490:10-103 General repealer. Except as provided in the following section, all acts and parts of acts inconsistent with this chapter are hereby repealed. [L 1965, c 208, §10-103; HRS §490:10-103]


Reference Manual
For the time being, CodeMirror 6 is published as a single package,
@codemirror/next
, of which the modules listed here are
subdirectories. So to, for example, load
the text
module, you'd import or
require "@codemirror/next/text"
.
(In the future, these will be published as separate npm packages.)
Each package exposes an ECMAScript module. You'll have to use some kind of bundler to run them in the browser.
The most interesting modules
are state
, which contains the data
structures that model the editor state,
and view
, which provides the UI
component for an editor.
A minimal editor might look like this:
import {EditorView} from "@codemirror/next/view"
import {EditorState} from "@codemirror/next/state"
let myView = new EditorView({state: EditorState.create({doc: "hello"})})
document.body.appendChild(myView.dom)
But such an editor is too primitive for real use. To get functionality like key bindings, highlighting, a line number gutter, or an undo history, you need to add various extensions to such a basic editor.
<


|
|
#define | MSP_ALIGN_FFT_Q15(n) (n*2) |
| | Calculate the alignment for a 16-bit real FFT from length parameter.
|
| |
|
#define | MSP_ALIGN_FFT_IQ31(n) (n*4) |
| | Calculate the alignment for a 32-bit real FFT from length parameter.
|
| |
|
#define | MSP_ALIGN_CMPLX_FFT_Q15(n) (n*4) |
| | Calculate the alignment for a 16-bit complex FFT from length parameter.
|
| |
|
#define | MSP_ALIGN_CMPLX_FFT_IQ31(n) (n*8) |
| | Calculate the alignment for a 32-bit complex FFT from length parameter.
|
| |
Support functions used for real and complex FFT functions. These functions do not need to be called outside of DSPLib.
Complex bit-reversal function.
- Details
- Inputs to the real and complex fft functions need to be in bit reversed order before the result can be computed. The DSPLib fft functions contain a parameter to perform the bit reversal and this API does not need to be invoked directly. Alternatively the application can store input in bit reversed order and skip this step although it may be more efficient to store in linear order using pointer increment or DMA copy and performing the bit reversal all at once.
- Pseudo code
y = bitrevorder(x)
- LEA Support
- This function is supported by LEA and requires data to be placed into shared LEA memory with 4-byte alignment.
- Parameters
-
| params | Pointer to the complex bit-reversal parameter structure. |
| src | Pointer to the complex data array to perform the bit-reversal on. |
- Returns
- Status of the operation.
Complex bit-reversal function.
- Details
- Inputs to the real and complex fft functions need to be in bit reversed order before the result can be computed. The DSPLib fft functions contain a parameter to perform the bit reversal and this API does not need to be invoked directly. Alternatively the application can store input in bit reversed order and skip this step although it may be more efficient to store in linear order using pointer increment or DMA copy and performing the bit reversal all at once.
- Pseudo code
y = bitrevorder(x)
- LEA Support
- This function is supported by LEA and requires data to be placed into shared LEA memory with 4-byte alignment.
- Parameters
-
| params | Pointer to the complex bit-reversal parameter structure. |
| src | Pointer to the complex data array to perform the bit-reversal on. |
- Returns
- Status of the operation.
Split operation for performing the final step of a real FFT.
- Details
- Performs the final stage of a discreet Fourier transform (DFT) of real inputs. First a complex FFT of size length/2 with must be performed before this function can be called. The DSPLib real fft functions invoke this function directly and this API does not need to be called directly from the application.
- Pseudo code
G(k) = 0.5*(X(k) + X*(N-k)) - 0.5*j*(e^-j2*pi*k/2N)*(X(k) - X*(N-k))
- LEA Support
- This function is supported by LEA and requires data to be placed into shared LEA memory with alignment equal to four times the data length (e.g. a 256-point real FFT requires 1024-byte alignment). When allocating data the MSP_ALIGN_FFT_IQ31 macro can be used to calculate correct alignment. The twiddle table pointer parameter is not used with LEA and can be null or uninitialized.
- Parameters
-
| params | Pointer to the split parameter structure. |
| src | Pointer to the data array to perform the split operation on. |
- Returns
- Status of the operation.
Split operation for performing the final step of a real FFT.
- Details
- Performs the final stage of a discreet Fourier transform (DFT) of real inputs. First a complex FFT of size length/2 with must be performed before this function can be called. The DSPLib real fft functions invoke this function directly and this API does not need to be called directly from the application.
- Pseudo code
G(k) = 0.5*(X(k) + X*(N-k)) - 0.5*j*(e^-j2*pi*k/2N)*(X(k) - X*(N-k))
- LEA Support
- This function is supported by LEA and requires data to be placed into shared LEA memory with alignment equal to twice the data length (e.g. a 256-point real FFT requires 512-byte alignment). When allocating data the MSP_ALIGN_FFT_Q15 macro can be used to calculate correct alignment. The twiddle table pointer parameter is not used with LEA and can be null or uninitialized.
- Parameters
-
| params | Pointer to the split parameter structure. |
| src | Pointer to the data array to perform the split operation on. |
- Returns
- Status of the operation.


{% extends 'full_width_base.html' %} {% load static %} {% block content %} TPP in the Media Keep up to date with the latest coverage on The People's Pantry and our community efforts.
Keep up to date with the latest coverage on The People's Pantry and our community efforts.
Learn more about The People's Pantry's mission and the wonderful people behind the project.
September 23, 2020
Here’s what we've been up to recently.
{{ story.outlet }}
{{ story.date }}
Help us deliver food to those in need.


{% extends '../layouts/dashboard.html' %} {% block title %}{{title}}{% endblock %} {% block content %}
Thanks for subscribing to the monthly plan!
Thanks for subscribing to the yearly plan!


♤ Hindustani Bhau SK LIVE CHECKER ♤
Modified by: Hindustani Bhau
Credits to
TEAM HINDUSTANI BHAU
Username @HindustaniBhau_XD
START
STOP
0
SK LIVES:
0
SK DEAD:
0
Loaded
DETAILS:
Live
Dead
Live -
0
Dead -
0


American Airlines passenger forces diversion to Tulsa after allegedly assaulting sleeping mother and daughter
by Michael BartiromoAn American Airlines flight from Charlotte, N.C., to Salt Lake City, Utah, was diverted to Tulsa International Airport late on Tuesday night after a "disruptive passenger" allegedly assaulted a mother and daughter.
The mother and daughter reportedly notified a flight attendant of the man’s behavior, claiming that he groped both of them while they slept, according to Fox 23. The pair was subsequently separated from the man by the crew as the flight prepared to divert.
SEE IT: WOMAN CLAIMS JETSTAR EMPLOYEE 'SLUT-SHAMED' HER FOR OUTFIT
The man, identified by James Cholewinski by police, per WCNC, was arrested upon landing at Tulsa International Airport on charges of public intoxication. The FBI is reportedly investigating the incident.
“American Airlines flight 807 from Charlotte to Salt Lake City diverted to Tulsa, Oklahoma Tuesday night due to a disruptive passenger,” American Airlines wrote in a statement to Fox News. “Law enforcement met the flight, removed the passenger, and the flight continued to Salt Lake City.”
CLICK HERE TO GET THE FOX NEWS APP
A representative for the Tulsa police was not immediately available to offer further comment.


Service Mocker Demos
Hello World
Basic Routing
Params
Multi Routers
Multi Servers
Forward Requests
Offline Storage


- path - Variable in class johneagle.routesolve.algorithm.Finder
-
- Pathfinding - Interface in johneagle.routesolve.interfaces
-
Interface for Pathfinding algorithm to tell how to build it commonly on classes.
- peek() - Method in interface johneagle.routesolve.interfaces.Pile
-
- peek() - Method in interface johneagle.routesolve.interfaces.Queue
-
- peek() - Method in class johneagle.routesolve.library.DataList
-
Looks the top/last element if not empty.
- peek() - Method in class johneagle.routesolve.library.MinHeap
-
Retrieves, but does not remove, the head of this queue,
or returns null
if this queue is empty.
- Pile<E> - Interface in johneagle.routesolve.interfaces
-
Interface for pile to demand important basic operations.
- poll() - Method in interface johneagle.routesolve.interfaces.Queue
-
- poll() - Method in class johneagle.routesolve.library.MinHeap
-
Retrieves and removes the head of this queue,
or returns null
if this queue is empty.
- pop() - Method in interface johneagle.routesolve.interfaces.Pile
-
- pop() - Method in class johneagle.routesolve.library.DataList
-
Removes the top/last element if there is any and returns that.
- prepare(int, int, int, int) - Method in class johneagle.routesolve.algorithm.Finder
-
Does the preparations for pathfinding algorithm.
- prepare(int, int, int, int) - Method in interface johneagle.routesolve.interfaces.Pathfinding
-
- push(E) - Method in interface johneagle.routesolve.interfaces.Pile
-
- push(E) - Method in class johneagle.routesolve.library.DataList
-
Adds the element top of the list and returns the new element back.


Reciept of new loans
Book Title
Loan Period
Title
Loan period
Renewed loans
Book Title
Original Return Date
New return date
Title
Return Date
DISABLED Return Date is set on copy only.
Not implemented
Sorry, it's all empty here.


Time for a short post on how I usually do the humble forward declare in C++. I guess this is not something new but it is something I usually do not see in others code so it feels worth sharing.
So lets start of with just defining what we are talking about just to get everyone on the same page, we are talking about declaring only a class/struct name to the compiler and not having to provide the entire class/struct declaration. Mostly used as a compile-time optimization or to handle circular deps etc.
A simple example:
// forward declare this struct.
struct a_forward_declared_struct;
struct my_struct
{
a_forward_declared_struct* a_forward_declared_pointer;
};
void my_func( a_forward_declared_struct* another_pointer );
We’re all used to see this kind of code, nothing new under the sun. I however like to write it like this:
struct my_struct
{
struct a_forward_declared_struct* a_forward_declared_pointer;
};
void my_func( struct a_forward_declared_struct* another_pointer );
I don’t know if inline-forward-declare is the correct term, but we’ll use that until I’m told otherwise ;)
So what is better with this more verbose variant? Well, I have 2 reasons:
- It do not “leak” definitions into the global namespace.
- When usage is removed, so is the forward declare.
Lets go through them one-by-one.
It do not “leak” definitions into the global namespace.
The big thing here is that we can’t break other code by removing our forward declares. Say that you have this code:
<header1.h>
struct a_forward_declared_struct;
void my_func1( a_forward_declared_struct* another_pointer );
<header2.h>
void my_func2( a_forward_declared_struct* another_pointer ); // OH NOES, we forgot our forward declare!
file.cpp
#include "header1.h"
#include "header2.h"
#include "a_forward_declared_struct.h" // defining the actual struct.
void a_function( a_forward_declared_struct* ptr )
{
my_func2( ptr );
}
Now we work with our code and refactor my_func1() to no longer take a pointer to a a_forward_declared_struct
and removing the forward declare.
By doing this we break file.cpp since “header2.h” is now “incomplete”. This might not be a big issue in a smaller code-base but in a bigger one
(especially one using unity-builds, batch-builds or whatever you want to call them ) this can pop up on another colleagues machine after you have
submitted your code.
If instead you would have used inline forward-declares header2.h would never have compiled to begin with so the initial implementer would not have missed the needed declarations.
When usage is removed, so is the forward declare.
The second improvement over the “ordinary” declarations is the fact that they are automatically removed when they are no longer needed since they are part of the actual code.
How many times haven’t we all found forward declares that no one uses ( and no one want to remove due to point 1 ;) ).
Some thing like:
class vec3;
struct i_have_no_vec3
{
int apa;
int kossa;
// I had a vec3 here a few years ago!
};
Final words
Are there any drawbacks? Well, except for being slightly more verbose, the only one I can think of is that it do not work together with namespaces. For me that is no real problem since I really do not like namespaces to begin with ( topic for another rant/blog-post? ) but if you do this tip is not as useful. If you mix and match I would still recommend using inline forward-declares where possible and fallback to namespace:d declares when you have to.
namespace foo
{
class bar;
};
Do you agree, am I totally wrong? Feel free to tell me on twitter!


For current pictures of our project please visit us at our Facebook page
If you have a question or would like more information, please fill out the form below


Company profile - Canadian Company Capabilities
Third-Party Information Liability Disclaimer
Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.
Iridia Medical
Mailing Address:
1644 3rd Ave WVANCOUVER, British Columbia
V6J 1K2
Location Address:
1644 3rd Ave WVANCOUVER, British Columbia
V6J 1K2
Tel.:<PHONE_NUMBER>
Tel.:<PHONE_NUMBER>
Fax:<PHONE_NUMBER>
Company Profile
In 1998, a British Columbia company suffered the tragic loss of two employees on its worksite due to Sudden Cardiac Arrest (SCA). Post incident, the company learned that the only treatment for SCA was the timely delivery of a shock from a defibrillator. Although local ambulances carried Automated External Defibrillators (AEDs) as standard issue, the worksite’s distance from the nearby town meant they would arrive too late to be effective. The only option was to position an AED onsite. Sadly, efforts to secure such a device were thwarted by regulations that didn’t permit the use of AEDs by non-medical personnel.
That same year, an emergency room physician heard about the company’s plight and was moved to act. He saw the life-saving potential of having AEDs broadly available in workplaces, airports, community facilities, etc. In response, he founded a company and became a distributor of AEDs outside of the medical community. That doctor was Dr. Allan Holmes, and the company was Global Medical Services.
In 2013, Global Medical Services became Iridia Medical, and identifying emerging needs and responding to them has defined Iridia’s way of doing business. Embracing this philosophy, Iridia Medical has grown to offer a broad cross-section of products and services to clients around the world. Iridia is:
• the second largest non-hospital AED distributor in Canada
• the leading provider of cardiac care education in British Columbia
• the biggest supplier of paramedics to oil and gas operators in BC, and
• a recognized name in both health and emergency preparedness consulting.
Our values reflect our desire to remain on the cutting edge of finding needs and meeting them in innovative ways, providing exceptional, client-focused service, and being a responsible employer and business. We fully anticipate that as our company grows, we’ll continue to identify needs and meet them to fulfill our vision.
On this journey, Iridia has gone from having one employee (Dr. Holmes himself) to more than 25 office staff, a dozen consultants, and over 100 paramedics. In the process, the company has been identified as one of the Fastest Growing Companies in British Columbia each year for the past three years and has been recognized as such in Profit 500 for the past two years.
Full profile
Full profile
Contact information
Company description
611430 - Professional and Management Development Training
611690 - All Other Schools and Instruction
621911 - Ambulance (except Air Ambulance) Services
Product / Service / Licensing
Iridia has extensive experience working with the public health care system and many private clinics in British Columbia. Our diverse consulting experience includes:
* Facilitation of working groups and public health care professionals
* Management of large health care data collection projects
* Developing protocols for Emergency Departments across BC
* Engaging physicians and stakeholders
* Creating CME courses
* Developing patient self-management programs
* Planning for natural and man-made disasters
* Developing exercises to test plans and systems
* Developing and delivering educational workshops that address issues affecting short and long term planning
* Providing 24/7 emergency medical consultation services
* Accreditation preparedness
6545-Medical Sets, Kits, and Outfits
AN00-Medical
G009-Other Health Services
R000-Professional, Administrative and Management Support Services
R019-Other Professional Services
U000-Educational and Training Services
U008-Training/Curriculum Development
U099-Other Education and Training Services
Sector information
Key / Major clients:
Follow this link for a current client list and project descriptions for Iridia Medical: http://www.iridiamedical.com/our-clients.htm.Testimonial:
Thank you all for coming out and having such a wonderful session. The notes from the evaluations really appreciate the takeaways and the practicalities of your approach to exercising a plan. I think Global is a leader in emergency management exercising and I hope to work with you in the future as well. If I get any inquiries about exercising plans I will be sure to send them your way. I also hope that some of our members work with your organization in the future.Rodney Nelson
Senior Manager, Executive Networks
The Conference Board of Canada
Third-Party Information Liability Disclaimer
Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.
Contacts
Contact information
Description
Company description
611430 - Professional and Management Development Training
611690 - All Other Schools and Instruction
621911 - Ambulance (except Air Ambulance) Services
Products, services and licensing
Product / Service / Licensing
Iridia has extensive experience working with the public health care system and many private clinics in British Columbia. Our diverse consulting experience includes:
* Facilitation of working groups and public health care professionals
* Management of large health care data collection projects
* Developing protocols for Emergency Departments across BC
* Engaging physicians and stakeholders
* Creating CME courses
* Developing patient self-management programs
* Planning for natural and man-made disasters
* Developing exercises to test plans and systems
* Developing and delivering educational workshops that address issues affecting short and long term planning
* Providing 24/7 emergency medical consultation services
* Accreditation preparedness
6545-Medical Sets, Kits, and Outfits
AN00-Medical
G009-Other Health Services
R000-Professional, Administrative and Management Support Services
R019-Other Professional Services
U000-Educational and Training Services
U008-Training/Curriculum Development
U099-Other Education and Training Services
Sector
Sector information
Key / Major clients:
Follow this link for a current client list and project descriptions for Iridia Medical: http://www.iridiamedical.com/our-clients.htm.Testimonial:
Thank you all for coming out and having such a wonderful session. The notes from the evaluations really appreciate the takeaways and the practicalities of your approach to exercising a plan. I think Global is a leader in emergency management exercising and I hope to work with you in the future as well. If I get any inquiries about exercising plans I will be sure to send them your way. I also hope that some of our members work with your organization in the future.Rodney Nelson
Senior Manager, Executive Networks
The Conference Board of Canada


This is the start of a new paragraph.
In early instance of this concept in literature may be found in Homer's Iliad. In Book XII, the Trojan prince Sarpedon delivers a famous speech in which he urges his comrade Glaucus to fight with him in the front ranks of battle. In Pope's translation, Sarpedon exhorts Glaucus thus:
'Tis ours, the dignity they give to grace The first in valour, as the first in place; That when with wondering eyes our confidential bands Behold our deeds transcending our commands, Such, they may cry, deserve the sovereign state, Whom those that envy dare not imitate!
In Le Lys dans la Vallée, written in 1835 and published in 1836, Honoré de Balzac recommends certain standards of behaviour to a young man, concluding: "Everything I have just told you can be summarized by an old word: noblesse oblige!"[1] His advice had included comments like "others will respect you for detesting people who have done detestable things."
he phrase is carved into Bertram Goodhue's Los Angeles Public Library on a sculpture by Lee Lawrie as part of Hartley Burr Alexander's iconographic scheme for the building.


---
layout: default
single: true
---
{% include article.html %}
If you like this you're welcome to follow me on Twitter and Codepen.
{% unless page.sharing == false %}
{% include post/sharing.html %}
{% endunless %}
{% if site.disqus_short_name and page.comments == true %}


Version.stores()
Syntax
version.stores(schemaDefinition);
Parameters
| schemaDefinition : Object | Object where each key represents the name of an object store and each value represents the primary and secondary indexes |
Return Value
Description
Specifies tables to be added, altered or deleted in this version. Each key in the schemaDefinition argument represents a table name and each value represents the primary key followed by the list of indexed properties. NOTE: Unlike SQL, you don’t need to specify all properties but only the one you wish to index.
WARNING
Never index properties containing images, movies or large (huge) strings. Store them in IndexedDB, yes! but just don’t index them!
db.version(1).stores({
friends: '++id, name, age' // don't index "picture"
});
db.friends.put({
name: 'Camilla',
age: 25,
picture: await getBlob('camilla.png') // but store it
});
Example how the “picture” property is stored without being indexed.
Writing this because there have been some issues on github where people index images or movies without really understanding the purpose of indexing fields. A rule of thumb: Are you going to put your property in a where(‘…’) clause? If yes, index it, if not, dont. Large indexes will affect database performance and in extreme cases make it unstable.
Changing the Schema
Please refer to Database Versioning that explains how to add, alter or remove a table using the Versioning framework in Dexie.
Schema Syntax
| ++ | Auto-incremented primary key |
| & | Unique index |
| * | Multi-entry index |
| [A+B] | Compound index or primary key |
Detail: Primary keys are implicitly marked as unique.
Indexable Types
Only properties of certain types can be indexed. This includes string, number, Date and Array but NOT boolean, null or undefined. Indexing a property path that turns out to hold a non-indexable type will have no effect. And using orderBy() with that property will NOT list that object.
Detailed Schema Syntax
The first entry in the schema string will always represent the primary key.
| Syntax For Primary Key | ||
| ++keyPath | Autoincrement primary key | Means that the primary key will be auto-incremented. Primary key must always be unique. |
| ++ | Hidden autoincremented primary key | Means that primary key is auto-incremented but not visible on the objects. |
| keyPath | Dont autoincrement primary key | Means that primary key can be any type and we have to provide it ourself |
| (blank) | Hidden primary key | Leaving the first entry blank means that primary key is hidden and not auto-incremented |
| Syntax For Indexes | ||
| keyPath | Means that keyPath is indexed | |
| &keyPath | Unique | Means that keyPath is indexed and keys must be unique |
| *keyPath | Multi-valued | Means that if key is an array, each array value will be regarded as a key to the object. |
| [keyPath1+keyPath2] | Compound | Defining a compound index for keyPath1 and keyPath2 |
NOTE: keyPath represents a property name or a dotted path to a nested property.
Sample
var db = new Dexie('MyDatabase');
db.version(1).stores({
friends: '++id,name,shoeSize', // Primary Key is auto-incremented (++id)
pets: 'id, name, kind', // Primary Key is not auto-incremented (id)
cars: '++, name', // Primary Key auto-incremented but not inbound
enemies: ',name,*weaknesses', // Primary key is neither inbound nor auto-incr
// 'weaknesses' contains an array of keys (*)
users: 'meta.ssn, addr.city', // Dotted keypath refers to nested property
people: '[name+ssn], &ssn' // Compound primary key. Unique index ssn
});
Detailed Sample
This sample shows how to define the schema of a given version:
var db = new Dexie("FriendsAndPetsDatabase");
db.version(1).stores({
users: "++id, name, &username, *email, address.city",
relations: "++, userId1, userId2, [userId1+userId2], relation"
});
db.open().catch(function (e) {
console.error("Open failed: " + e.stack);
})
db.transaction('rw', db.users, function () {
db.users.add({
name: "Zlatan",
username: "ibra",
email: [
<EMAIL_ADDRESS><EMAIL_ADDRESS>],
address: {
city: "Malmö",
country: "Sweden"
}
});
db.users.where("email").startsWith("zlatan")
.or("address.city").anyOf (["Malmö", "Stockholm", "Barcelona"])
.each(function (user) {
console.log("Found user: " + user.name);
});
}).catch (function (e) {
console.error(e.stack);
});
Detailed Sample Explained
- Table “users” has:
- an auto-incremented primary key named id.
- an index on the name property which could be of any type.
- a unique index on the username property.
- a multi index on the email property, meaning that it allow multiple emails and the possibility to index each of them and find the single user object. NOTE! This feature lacks support in IE.
- an index on the nested property ‘address.city’.
- Table “relations” doesn’t have a “visible” primary key (however, it must have one autoincremented internally).
- Table “relations” has index on the userId1, userId2 and relation properties.
- Table “relations” has a compound index of the properties userId1 and userId2 combined NOTE! This feature lacks support in IE.
Queries you could do with these indexes:
db.users.get(2)
will give you the user with id 2db.users.where('name').startsWithIgnoreCase('da')
- will give you all users starting with “da”db.users.where('username').equals('usrname').first()
- will give you the user with username ‘usrname’db.users.where('email').startsWith('david@').distinct()
- will give you the users that have any of their emails starting with ‘david@’db.users.where('address.city').equalsIgnoreCase('malmö')
- will give you all users residing in Malmö.db.relations.where('userId1').equals(2)
- will give you all relations that user with id 2 has to other usersdb.relations.where('relation').anyOf('wife', 'husband', 'son', 'daughter')
- will give you all family relations.db.relations.where('userId1').equals(2).or('userId2').equals(2)
- will give you all relations that user with id 2 has to other users or other users have to user 2db.relations.where('[userId1+userId2]').equals([2,3])
- will give you all the relations that user 2 has to user 3db.relations.where('[userId1+userId2]').equals([2,3]).or('[userId1+userId2]').equals([3,2])
- will give you all the relations that user 2 has to user 3 or user 3 has to user 2.
Table of Contents
- API Reference
- Best Practices
- Building Addons
- Collection
- Collection.and()
- Collection.clone()
- Collection.count()
- Collection.delete()
- Collection.desc()
- Collection.distinct()
- Collection.each()
- Collection.eachKey()
- Collection.eachPrimaryKey()
- Collection.eachUniqueKey()
- Collection.filter()
- Collection.first()
- Collection.keys()
- Collection.last()
- Collection.limit()
- Collection.modify()
- Collection.offset()
- Collection.or()
- Collection.primaryKeys()
- Collection.raw()
- Collection.reverse()
- Collection.sortBy()
- Collection.toArray()
- Collection.uniqueKeys()
- Collection.until()
- Compound Index
- Consuming Dexie as a module
- Deprecations
- Derived Work
- Design
- Dexie
- Dexie.AbortError
- Dexie.BulkError
- Dexie.ConstraintError
- Dexie.DataCloneError
- Dexie.DataError
- Dexie.DatabaseClosedError
- Dexie.IncompatiblePromiseError
- Dexie.InternalError
- Dexie.InvalidAccessError
- Dexie.InvalidArgumentError
- Dexie.InvalidStateError
- Dexie.InvalidTableError
- Dexie.MissingAPIError
- Dexie.ModifyError
- Dexie.NoSuchDatabaseErrorError
- Dexie.NotFoundError
- Dexie.Observable
- Dexie.Observable.DatabaseChange
- Dexie.OpenFailedError
- Dexie.PrematureCommitError
- Dexie.QuotaExceededError
- Dexie.ReadOnlyError
- Dexie.SchemaError
- Dexie.SubTransactionError
- Dexie.Syncable
- Dexie.Syncable.IDatabaseChange
- Dexie.Syncable.IPersistentContext
- Dexie.Syncable.ISyncProtocol
- Dexie.Syncable.StatusTexts
- Dexie.Syncable.Statuses
- Dexie.Syncable.registerSyncProtocol()
- Dexie.TimeoutError
- Dexie.TransactionInactiveError
- Dexie.UnknownError
- Dexie.UnsupportedError
- Dexie.UpgradeError()
- Dexie.VersionChangeError
- Dexie.VersionError
- Dexie.[table]
- Dexie.addons
- Dexie.async()
- Dexie.backendDB()
- Dexie.close()
- Dexie.currentTransaction
- Dexie.debug
- Dexie.deepClone()
- Dexie.defineClass()
- Dexie.delByKeyPath()
- Dexie.delete()
- Dexie.derive()
- Dexie.events()
- Dexie.exists()
- Dexie.extend()
- Dexie.fakeAutoComplete()
- Dexie.getByKeyPath()
- Dexie.getDatabaseNames()
- Dexie.hasFailed()
- Dexie.ignoreTransaction()
- Dexie.isOpen()
- Dexie.js
- Dexie.name
- Dexie.on()
- Dexie.on.blocked
- Dexie.on.error
- Dexie.on.populate
- Dexie.on.populate-(old-version)
- Dexie.on.ready
- Dexie.on.versionchange
- Dexie.open()
- Dexie.override()
- Dexie.semVer
- Dexie.setByKeyPath()
- Dexie.shallowClone()
- Dexie.spawn()
- Dexie.table()
- Dexie.tables
- Dexie.transaction()
- Dexie.transaction()-(old-version)
- Dexie.verno
- Dexie.version
- Dexie.version()
- Dexie.vip()
- Dexie.waitFor()
- DexieError
- Docs Home
- Download
- Export and Import Database
- Getting Started
- Hello World
- How To Use the StorageManager API
- Inbound
- IndexSpec
- Indexable Type
- IndexedDB on Safari
- Migrating existing DB to Dexie
- MultiEntry Index
- Promise
- Promise.PSD
- Promise.catch()
- Promise.finally()
- Promise.on.error
- Promise.onuncatched
- Questions and Answers
- Releasing Dexie
- Samples
- Simplify with yield
- Table
- Table Schema
- Table.add()
- Table.bulkAdd()
- Table.bulkDelete()
- Table.bulkGet()
- Table.bulkPut()
- Table.clear()
- Table.count()
- Table.defineClass()
- Table.delete()
- Table.each()
- Table.filter()
- Table.get()
- Table.hook('creating')
- Table.hook('deleting')
- Table.hook('reading')
- Table.hook('updating')
- Table.limit()
- Table.mapToClass()
- Table.name
- Table.offset()
- Table.orderBy()
- Table.put()
- Table.reverse()
- Table.schema
- Table.toArray()
- Table.toCollection()
- Table.update()
- Table.where()
- The three main limitations of IndexedDB
- Transaction
- Transaction.abort()
- Transaction.on.abort
- Transaction.on.complete
- Transaction.on.error
- Transaction.table()
- Tutorial
- Typescript
- Understanding the basics
- Version
- Version.stores()
- Version.upgrade()
- WhereClause
- WhereClause.above()
- WhereClause.aboveOrEqual()
- WhereClause.anyOf()
- WhereClause.anyOfIgnoreCase()
- WhereClause.below()
- WhereClause.belowOrEqual()
- WhereClause.between()
- WhereClause.equals()
- WhereClause.equalsIgnoreCase()
- WhereClause.inAnyRange()
- WhereClause.noneOf()
- WhereClause.notEqual()
- WhereClause.startsWith()
- WhereClause.startsWithAnyOf()
- WhereClause.startsWithAnyOfIgnoreCase()
- WhereClause.startsWithIgnoreCase()
- db.syncable.connect()
- db.syncable.delete()
- db.syncable.disconnect()
- db.syncable.getOptions()
- db.syncable.getStatus()
- db.syncable.list()
- db.syncable.on('statusChanged')
- db.syncable.setFilter()
- unhandledrejection-event


We recently started shipping our first round of our product to all of our backers and we could not be more excited.
When you get the first package make sure to open it and tell us what you think. I think you will be pleasantly surprised with the quality and care that went in to making each and every one of these for you.


Link to Sprint 1-Cultural Blog: Identity and Values Exploration
Link to Sprint 2-Cultural Blog: Learning Outcomes
Link to Sprint 3-Cultural Blog: EQ and IQ
Link to Sprint 4-Cultural Blog: Neuroplasticity and Growth Mindset
Link to Sprint 5-Cultural Blog: Time to reflect


- valueOf(String) - Static method in enum com.example.vybe.Models.SocSit
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.example.vybe.Models.Vibe
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.example.vybe.Models.SocSit
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.example.vybe.Models.Vibe
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- Vibe - Enum in com.example.vybe.Models
-
Enum representing a user's emotional state or "vibe" and all
functionality relating to using said vibe in reference to what a user has selected
- VibeCarouselDialogFragment - Class in com.example.vybe.AddEdit
-
VibeCarouselDialogFragment extends a DialogFragment and serves as a custom
picker for a user to decide which Vibe they want to have added to a Vibe Event
Functionality is similar to that of a DatePickerDialog
- VibeCarouselDialogFragment() - Constructor for class com.example.vybe.AddEdit.VibeCarouselDialogFragment
-
- VibeCarouselDialogFragment.OnVibeSelectedListener - Interface in com.example.vybe.AddEdit
-
- VibeEvent - Class in com.example.vybe.Models
-
A class that implements Serializable and keeps track of vibe events.
- VibeEvent() - Constructor for class com.example.vybe.Models.VibeEvent
-
Constructor called for serialization.
- VibeEvent(Vibe, Date, String, SocSit, String, String, Double, Double) - Constructor for class com.example.vybe.Models.VibeEvent
-
Default constructor for VibeEvent with provided vibe event parameters
- VibeEventConstructor_EmptyInit() - Method in class com.example.vybe.VibeEventTest
-
- VibeEventConstructor_FullInit() - Method in class com.example.vybe.VibeEventTest
-
- VibeEventHolder(View) - Constructor for class com.example.vybe.MyVibesAdapter.VibeEventHolder
-
- VibeEventListController - Class in com.example.vybe
-
This gets the user's vibe event list and their follower's vibe event list
This will be used by MyVibesActivity, MapActivity and SocialActivity
There should be getters and setters to allow the activities access to the data
- VibeEventListController.OnMyVibeEventsUpdatedListener - Interface in com.example.vybe
-
- VibeEventListController.OnSocialVibeEventsUpdatedListener - Interface in com.example.vybe
-
- VibeEventTest - Class in com.example.vybe
-
Tests the VibeEvent Class
- VibeEventTest() - Constructor for class com.example.vybe.VibeEventTest
-
- vibeFieldIsValid() - Method in class com.example.vybe.AddEdit.AddEditVibeEventActivity
-
- VibeFilterFragment - Class in com.example.vybe
-
Allows the user to filter the vibes they would like to view
- VibeFilterFragment() - Constructor for class com.example.vybe.VibeFilterFragment
-
- VibeFilterFragment.OnVibeSelectedListener - Interface in com.example.vybe
-
- VibeTest - Class in com.example.vybe
-
Tests the VibeFactory Class and Subclasses
These tests ensure that the data of a Vibe is properly stored and returned from a Vibe Object
- VibeTest() - Constructor for class com.example.vybe.VibeTest
-
- ViewProfileActivity - Class in com.example.vybe
-
This activity shows the user how many follwers they have, how many people they are following and the total amount of vibes they have
- ViewProfileActivity() - Constructor for class com.example.vybe.ViewProfileActivity
-
- ViewProfileActivityTest - Class in com.example.vybe
-
This tests for navigating to the profile page activity and verifying
a user's details are correct and is able to sign out and return to the login page
- ViewProfileActivityTest() - Constructor for class com.example.vybe.ViewProfileActivityTest
-
- ViewVibeActivity - Class in com.example.vybe
-
This Activity displays the screen for a vibe event and all its available details
- ViewVibeActivity() - Constructor for class com.example.vybe.ViewVibeActivity
-