dplyr verbs are particularly powerful when you apply them to grouped data frames (grouped_df
objects). This vignette shows you:
How to group, inspect, and ungroup with group_by()
and friends.
How individual dplyr verbs changes their behaviour when applied to grouped data frame.
How to access data about the “current” group from within a verb.
We’ll start by loading dplyr:
group_by()
The most important grouping verb is group_by()
: it takes a data frame and one or more variables to group by:
You can see the grouping when you print the data:
by_species
#> # A tibble: 87 x 14
#> # Groups: species [38]
#> name height mass hair_color skin_color eye_color birth_year sex gender
#> <chr> <int> <dbl> <chr> <chr> <chr> <dbl> <chr> <chr>
#> 1 Luke… 172 77 blond fair blue 19 male mascu…
#> 2 C-3PO 167 75 <NA> gold yellow 112 none mascu…
#> 3 R2-D2 96 32 <NA> white, bl… red 33 none mascu…
#> 4 Dart… 202 136 none white yellow 41.9 male mascu…
#> # … with 83 more rows, and 5 more variables: homeworld <chr>, species <chr>,
#> # films <list>, vehicles <list>, starships <list>
by_sex_gender
#> # A tibble: 87 x 14
#> # Groups: sex, gender [6]
#> name height mass hair_color skin_color eye_color birth_year sex gender
#> <chr> <int> <dbl> <chr> <chr> <chr> <dbl> <chr> <chr>
#> 1 Luke… 172 77 blond fair blue 19 male mascu…
#> 2 C-3PO 167 75 <NA> gold yellow 112 none mascu…
#> 3 R2-D2 96 32 <NA> white, bl… red 33 none mascu…
#> 4 Dart… 202 136 none white yellow 41.9 male mascu…
#> # … with 83 more rows, and 5 more variables: homeworld <chr>, species <chr>,
#> # films <list>, vehicles <list>, starships <list>
Or use tally()
to count the number of rows in each group. The sort
argument is useful if you want to see the largest groups up front.
by_species %>% tally()
#> # A tibble: 38 x 2
#> species n
#> <chr> <int>
#> 1 Aleena 1
#> 2 Besalisk 1
#> 3 Cerean 1
#> 4 Chagrian 1
#> # … with 34 more rows
by_sex_gender %>% tally(sort = TRUE)
#> # A tibble: 6 x 3
#> # Groups: sex [5]
#> sex gender n
#> <chr> <chr> <int>
#> 1 male masculine 60
#> 2 female feminine 16
#> 3 none masculine 5
#> 4 <NA> <NA> 4
#> # … with 2 more rows
As well as grouping by existing variables, you can group by any function of existing variables. This is equivalent to performing a mutate()
before the group_by()
:
You can see underlying group data with group_keys()
. It has one row for each group and one column for each grouping variable:
by_species %>% group_keys()
#> # A tibble: 38 x 1
#> species
#> <chr>
#> 1 Aleena
#> 2 Besalisk
#> 3 Cerean
#> 4 Chagrian
#> # … with 34 more rows
by_sex_gender %>% group_keys()
#> # A tibble: 6 x 2
#> sex gender
#> <chr> <chr>
#> 1 female feminine
#> 2 hermaphroditic masculine
#> 3 male masculine
#> 4 none feminine
#> # … with 2 more rows
You can see which group each row belongs to with group_indices()
:
by_species %>% group_indices()
#> [1] 11 6 6 11 11 11 11 6 11 11 11 11 34 11 24 12 11 11 36 11 11 6 31 11 11
#> [26] 18 11 11 8 26 11 21 11 10 10 10 38 30 7 38 11 37 32 32 33 35 29 11 3 20
#> [51] 37 27 13 23 16 4 11 11 11 9 17 17 11 11 11 11 5 2 15 15 11 1 6 25 19
#> [76] 28 14 34 11 38 22 11 11 11 6 38 11
And which rows each group contains with group_rows()
:
by_species %>% group_rows() %>% head()
#> <list_of<integer>[6]>
#> [[1]]
#> [1] 72
#>
#> [[2]]
#> [1] 68
#>
#> [[3]]
#> [1] 49
#>
#> [[4]]
#> [1] 56
#>
#> [[5]]
#> [1] 67
#>
#> [[6]]
#> [1] 2 3 8 22 73 85
Use group_vars()
if you just want the names of the grouping variables:
If you apply group_by()
to an already grouped dataset, will overwrite the existing grouping variables. For example, the following code groups by homeworld
instead of species
:
by_species %>%
group_by(homeworld) %>%
tally()
#> # A tibble: 49 x 2
#> homeworld n
#> <chr> <int>
#> 1 Alderaan 3
#> 2 Aleen Minor 1
#> 3 Bespin 1
#> 4 Bestine IV 1
#> # … with 45 more rows
To augment the grouping, using .add = TRUE
1. For example, the following code groups by species and homeworld:
To remove all grouping variables, use ungroup()
:
You can also choose to selectively ungroup by listing the variables you want to remove:
The following sections describe how grouping affects the main dplyr verbs.
summarise()
summarise()
computes a summary for each group. This means that it starts from group_keys()
, adding summary variables to the right hand side:
by_species %>%
summarise(
n = n(),
height = mean(height, na.rm = TRUE)
)
#> # A tibble: 38 x 3
#> species n height
#> <chr> <int> <dbl>
#> 1 Aleena 1 79
#> 2 Besalisk 1 198
#> 3 Cerean 1 198
#> 4 Chagrian 1 196
#> # … with 34 more rows
The .groups=
argument controls the grouping structure of the output. The historical behaviour of removing the right hand side grouping variable corresponds to .groups = "drop_last"
without a message or .groups = NULL
with a message (the default).
by_sex_gender %>%
summarise(n = n()) %>%
group_vars()
#> `summarise()` has grouped output by 'sex'. You can override using the `.groups` argument.
#> [1] "sex"
by_sex_gender %>%
summarise(n = n(), .groups = "drop_last") %>%
group_vars()
#> [1] "sex"
Since version 1.0.0 the groups may also be kept (.groups = "keep"
) or dropped (.groups = "drop"
).
by_sex_gender %>%
summarise(n = n(), .groups = "keep") %>%
group_vars()
#> [1] "sex" "gender"
by_sex_gender %>%
summarise(n = n(), .groups = "drop") %>%
group_vars()
#> character(0)
When the output no longer have grouping variables, it becomes ungrouped (i.e. a regular tibble).
select()
, rename()
, and relocate()
rename()
and relocate()
behave identically with grouped and ungrouped data because they only affect the name or position of existing columns. Grouped select()
is almost identical to ungrouped select, except that it always includes the grouping variables:
by_species %>% select(mass)
#> Adding missing grouping variables: `species`
#> # A tibble: 87 x 2
#> # Groups: species [38]
#> species mass
#> <chr> <dbl>
#> 1 Human 77
#> 2 Droid 75
#> 3 Droid 32
#> 4 Human 136
#> # … with 83 more rows
If you don’t want the grouping variables, you’ll have to first ungroup()
. (This design is possibly a mistake, but we’re stuck with it for now.)
arrange()
Grouped arrange()
is the same as ungrouped arrange()
, unless you set .by_group = TRUE
, in which case it will order first by the grouping variables.
by_species %>%
arrange(desc(mass)) %>%
relocate(species, mass)
#> # A tibble: 87 x 14
#> # Groups: species [38]
#> species mass name height hair_color skin_color eye_color birth_year sex
#> <chr> <dbl> <chr> <int> <chr> <chr> <chr> <dbl> <chr>
#> 1 Hutt 1358 Jabb… 175 <NA> green-tan… orange 600 herm…
#> 2 Kaleesh 159 Grie… 216 none brown, wh… green, y…  NA Mas … 196 none blue blue NA male
#> # … with 83 more rows, and 5 more variables: gender <chr>, homeworld <chr>,
#> # films <list>, vehicles <list>, starships <list>
Note that second example is sorted by species
(from the group_by()
statement) and then by mass
(within species).
mutate()
and transmute()
In simple cases with vectorised functions, grouped and ungrouped mutate()
give the same results. They differ when used with summary functions:
# Subtract off global mean
starwars %>%
select(name, homeworld, mass) %>%
mutate(standard_mass = mass - mean(mass, na.rm = TRUE))
#> # A tibble: 87 x 4
#> name homeworld mass standard_mass
#> <chr> <chr> <dbl> <dbl>
#> 1 Luke Skywalker Tatooine 77 -20.3
#> 2 C-3PO Tatooine 75 -22.3
#> 3 R2-D2 Naboo 32 -65.3
#> 4 Darth Vader Tatooine 136 38.7
#> # … with 83 more rows
# Subtract off homeworld mean
starwars %>%
select(name, homeworld, mass) %>%
group_by(homeworld) %>%
mutate(standard_mass = mass - mean(mass, na.rm = TRUE))
#> # A tibble: 87 x 4
#> # Groups: homeworld [49]
#> name homeworld mass standard_mass
#> <chr> <chr> <dbl> <dbl>
#> 1 Luke Skywalker Tatooine 77 -8.38
#> 2 C-3PO Tatooine 75 -10.4
#> 3 R2-D2 Naboo 32 -32.2
#> 4 Darth Vader Tatooine 136 50.6
#> # … with 83 more rows
Or with window functions like min_rank()
:
# Overall rank
starwars %>%
select(name, homeworld, height) %>%
mutate(rank = min_rank(height))
#> # A tibble: 87 x 4
#> name homeworld height rank
#> <chr> <chr> <int> <int>
#> 1 Luke Skywalker Tatooine 172 29
#> 2 C-3PO Tatooine 167 21
#> 3 R2-D2 Naboo 96 5
#> 4 Darth Vader Tatooine 202 72
#> # … with 83 more rows
# Rank per homeworld
starwars %>%
select(name, homeworld, height) %>%
group_by(homeworld) %>%
mutate(rank = min_rank(height))
#> # A tibble: 87 x 4
#> # Groups: homeworld [49]
#> name homeworld height rank
#> <chr> <chr> <int> <int>
#> 1 Luke Skywalker Tatooine 172 5
#> 2 C-3PO Tatooine 167 4
#> 3 R2-D2 Naboo 96 1
#> 4 Darth Vader Tatooine 202 10
#> # … with 83 more rows
filter()
A grouped filter()
effectively does a mutate()
to generate a logical variable, and then only keeps the rows where the variable is TRUE
. This means that grouped filters can be used with summary functions. For example, we can find the tallest character of each species:
by_species %>%
select(name, species, height) %>%
filter(height == max(height))
#> # A tibble: 35 x 3
#> # Groups: species [35]
#> name species height
#> <chr> <chr> <int>
#> 1 Greedo Rodian 173
#> 2 Jabba Desilijic Tiure Hutt 175
#> 3 Yoda Yoda's species 66
#> 4 Bossk Trandoshan 190
#> # … with 31 more rows
You can also use filter()
to remove entire groups. For example, the following code eliminates all groups that only have a single member:
slice()
and friendsslice()
and friends (slice_head()
, slice_tail()
, slice_sample()
, slice_min()
and slice_max()
) select rows within a group. For example, we can select the first observation within each species:
by_species %>%
relocate(species) %>%
slice(1)
#> # A tibble: 38 x 14
#> # Groups: species [38]
#> species name height mass hair_color skin_color eye_color birth_year sex
#> <chr> <chr> <int> <dbl> <chr> <chr> <chr> <dbl> <chr>
#> 1 Aleena Ratt… 79 15 none grey, blue unknown NA male
#> 2 Besali…  Mas … 196 NA none blue blue NA male
#> # … with 34 more rows, and 5 more variables: gender <chr>, homeworld <chr>,
#> # films <list>, vehicles <list>, starships <list>
Similarly, we can use slice_min()
to select the smallest n
values of a variable:
by_species %>%
filter(!is.na(height)) %>%
slice_min(height, n = 2)
#> # A tibble: 48 x 14
#> # Groups: species [38]
#> name height mass hair_color skin_color eye_color birth_year sex gender
#> <chr> <int> <dbl> <chr> <chr> <chr> <dbl> <chr> <chr>
#> 1 Ratt… 79 15 none grey, blue unknown NA male mascu…
#> 2 Dext… 198 102 none brown yellow NA male mascu…
#> 3 Ki-A… 198 82 white pale yellow 92 male mascu…
#> 4 Mas … 196 NA none blue blue NA male mascu…
#> # … with 44 more rows, and 5 more variables: homeworld <chr>, species <chr>,
#> # films <list>, vehicles <list>, starships <list>
Inside dplyr verbs, you can access various properties of the “current” group using a family of functions with the cur_
prefix. These functions are typically needed for everyday usage of dplyr, but can be useful because they allow you to free from some of the typical constraints of dplyr verbs.
cur_data()
cur_data()
returns the current group, excluding grouping variables. It’s useful to feed to functions that take a whole data frame. For example, the following code fits a linear model of mass ~ height
to each species:
by_species %>%
filter(n() > 1) %>%
mutate(mod = list(lm(mass ~ height, data = cur_data())))
#> # A tibble: 58 x 15
#> # Groups: species [9]
#> name height mass hair_color skin_color eye_color birth_year sex gender
#> <chr> <int> <dbl> <chr> <chr> <chr> <dbl> <chr> <chr>
#> 1 Luke… 172 77 blond fair blue 19 male mascu…
#> 2 C-3PO 167 75 <NA> gold yellow 112 none mascu…
#> 3 R2-D2 96 32 <NA> white, bl… red 33 none mascu…
#> 4 Dart… 202 136 none white yellow 41.9 male mascu…
#> # … with 54 more rows, and 6 more variables: homeworld <chr>, species <chr>,
#> # films <list>, vehicles <list>, starships <list>, mod <list>
cur_group()
and cur_group_id()
cur_group_id()
gives a unique numeric identifier for the current group. This is sometimes useful if you want to index into an external data structure.
by_species %>%
arrange(species) %>%
select(name, species, homeworld) %>%
mutate(id = cur_group_id())
#> # A tibble: 87 x 4
#> # Groups: species [38]
#> name species homeworld id
#> <chr> <chr> <chr> <int>
#> 1 Ratts Tyerell Aleena Aleen Minor 1
#> 2 Dexter Jettster Besalisk Ojom 2
#> 3 Ki-Adi-Mundi Cerean Cerea 3
#> 4 Mas Amedda Chagrian Champala 4
#> # … with 83 more rows
Note that the argument changed from add = TRUE
to .add = TRUE
in dplyr 1.0.0.↩


{% extends "base.html" %} {% load static %} {% block title %}{{ site_name }} | Google OAuth{% endblock %} {% block content %}
⚠ You have an existing API auth record with an access token and refresh token. Clicking the button below and completing authorization with Google will overwrite that record. ⚠


Module xplfilters
The filter object for xPL devices. It maintains a list of filters for matching incoming messages.
No global will be created, it just returns the filter class. The main xPL module will create a global xpl.classes.xplfilters
to access it.

An xpl filter is a set of xpl message elements; [msgtype].[vendor].[device].[instance].[schema-class].[schema-type]
For each element a '*
' can be used as a wildcard. Only arriving messages that match at least 1 filter entry will be dealt with by an xpl device.

 Example (assuming self
is an xpldevice
object)
 self.filter = xpl.classes.xplfilters:new({})
 self.filter:add("xpl-cmnd.*.*.*.homeeasy.basic")
 self.filter:add("xpl-cmnd.*.*.*.x10.*")

Copyright © 2011 Thijs Schreijer
Release: Version 0.1, LuaxPL framework.
Functions
| flt:add (flt) | Add a filter entry to the filter list. |
| flt:match (flt) | Checks if a filter matches any of the filters in the list. |
| flt:remove (flt) | Remove filter from list |
| flt:split (flt) | splits a filter string into a filter table. |
Tables
| filter-table | Internal representation of a filter entry. |
| xplfilter fields/properties | Members of the filter object |
Functions
- flt:add (flt)
-
Add a filter entry to the filter list. Duplicates will be silently dismissed (no error).
Parameters:
-
flt
: filter to add, either a filter string or a filter table
Return value:
- filter table added
See also:
-
- flt:match (flt)
-
Checks if a filter matches any of the filters in the list. Wildcards are allowed both in the list (obvious), but also in the filter being matched.
Parameters:
-
flt
: filter to match (either a string or a table)
Return value:
true
if the filter matches an entry in the list,false
otherwise. If the filter object does not contain any filters it willtrue
(default xpl behaviour with absent filters). -
- flt:remove (flt)
-
Remove filter from list
Parameters:
-
flt
: filter to remove, either a filter string or a filter table. If it doesn't exist no error will be thrown.
Return value:
true
-
- flt:split (flt)
-
splits a filter string into a filter table. A '-' between vendor and device is accepted. It can be called as a function or as a method, either way works (see example below).
Parameters:
-
flt
: Filter (string) as[msgtype].[vendor].[device].[instance].[class].[type]
Usage:
-- create a new filter object
local flt = xpl.classes.xplfilter()
-- call as a function
local f = flt.split("xpl-cmnd.vendor.device.instance.class.type")
-- call as a method
local f = flt:split("xpl-cmnd.vendor.device.instance.class.type")Return value:
- a filter table with 6 indices for each filter element, and the
filter
key with the full filter string valueSee also:
-
Tables
- filter-table
- Internal representation of a filter entry.
Fields:
-
filter
: the full filter string formatted as[msgtype].[vendor].[device].[instance].[schema-class].[schema-type]
-
1
: value for themsgtype
-
2
: value for thesource address vendor id
-
3
: value for thesource address device id
-
4
: value for thesource address instance id
-
5
: value for theschema class
-
6
: value for theschema type
-
- xplfilter fields/properties
- Members of the filter object
Fields:
-
list
: Table to store the individual filter entries, each filter-table in the list is keyed by its full filter string.
-


public class FeatureMap extends java.lang.Object implements java.io.Serializable
| Constructor and Description |
|---|
FeatureMap()
Creates a feature map and sets the feature counter to 1
|
| Modifier and Type | Method and Description |
|---|---|
int |
addIndex(int featurePosition,
int code)
Adds a mapping from a combination of the position in the column-based feature vector and the symbol code to
an index value suitable for liblinear and libsvm.
|
int |
addIndex(int featurePosition,
int code1,
int code2) |
void |
decrementfeatureCounter() |
int |
decrementIndex(java.lang.Long key) |
int |
getFeatureCounter() |
int |
getIndex(int featurePosition,
int code)
Return
|
int |
getIndex(int featurePosition,
int code1,
int code2) |
java.lang.Integer |
removeIndex(long key) |
java.lang.Long[] |
reverseMap() |
void |
setFeatureCounter(int featureCounter) |
int |
setIndex(long key,
int index) |
int |
size() |
public FeatureMap()
public int addIndex(int featurePosition, int code)
featurePosition
- a position in the column-based feature vectorcode
- a symbol codepublic int getIndex(int featurePosition, int code)
featurePosition
- the position in the column-based feature vectorcode
- the symbol code suitable for liblinear and libsvmpublic int addIndex(int featurePosition, int code1, int code2)
public int setIndex(long key, int index)
public int decrementIndex(java.lang.Long key)
public void decrementfeatureCounter()
public java.lang.Integer removeIndex(long key)
public int getIndex(int featurePosition, int code1, int code2)
public int size()
public java.lang.Long[] reverseMap()
public void setFeatureCounter(int featureCounter)
public int getFeatureCounter()
Copyright 2007-2014 Johan Hall, Jens Nilsson and Joakim Nivre.


base.py |
|
|---|---|
|
The base extension providing request, response, and core views. |
|
Imports |
from __future__ import unicode_literals
from io import IOBase
try:
IOBase = (IOBase, file)
except:
pass
try:
from collections import Generator
except ImportError:
|
def _tmp(): yield None # pragma: no cover
Generator = type(_tmp())
from os.path import getmtime
from time import mktime, gmtime
from datetime import datetime
from mimetypes import init, add_type, guess_type
from webob import Request, Response
from web.core.compat import str, unicode
from web.core.util import safe_name
|
|
Module Globals |
log = __import__('logging').getLogger(__name__)
|
Extension |
|
|
Base framework extension. This extension is not meant to be manually constructed or manipulated; use is automatic. |
class BaseExtension(object):
first = True # Must occur as early as possible in callback lists.
always = True # Always enabled.
provides = ["base", "request", "response"] # Export these symbols for use as other extension's dependencies.
|
Application-Level Callbacks |
|
def start(self, context):
if __debug__:
log.debug("Registering core return value handlers.")
|
|
|
This prepares the mimetypes registry, and adds values typically missing from it. |
init()
add_type('text/x-yaml', 'yml')
add_type('text/x-yaml', 'yaml')
|
|
Register the core views supported by the base framework. |
register = context.view.register
register(type(None), self.render_none)
register(Response, self.render_response)
register(str, self.render_binary)
register(unicode, self.render_text)
register(IOBase, self.render_file)
register(Generator, self.render_generator)
|
Request-Level Callbacks |
|
|
Add the usual suspects to the context. This adds |
def prepare(self, context):
if __debug__:
log.debug("Preparing request context.", extra=dict(request=id(context)))
|
|
Bridge in WebOb |
context.request = Request(context.environ)
context.response = Response(request=context.request)
|
|
Record the initial path representing the point where a front-end web server bridged to us. |
context.environ['web.base'] = context.request.script_name
|
|
Track the remaining (unprocessed) path elements. |
context.request.remainder = context.request.path_info.split('/')
if context.request.remainder and not context.request.remainder[0]:
del context.request.remainder[0]
|
|
Track the "breadcrumb list" of dispatch through distinct controllers. |
context.path = []
|
|
Called as dispatch descends into a tier. The base extension uses this to maintain the "current url". |
def dispatch(self, context, consumed, handler, is_endpoint):
request = context.request
if __debug__:
log.debug("Handling dispatch event.", extra=dict(
request = id(context),
consumed = consumed,
handler = safe_name(handler),
endpoint = is_endpoint
))
|
|
The leading path element (leading slash) requires special treatment. |
if not consumed and context.request.path_info_peek() == '':
consumed = ['']
if consumed:
|
|
Migrate path elements consumed from the |
if not isinstance(consumed, (list, tuple)):
consumed = consumed.split('/')
for element in consumed:
if element == context.request.path_info_peek():
context.request.path_info_pop()
|
|
Update the breadcrumb list. |
context.path.append((handler, request.script_name))
if consumed: # Lastly, update the remaining path element list.
request.remainder = request.remainder[len(consumed):]
|
Views |
|
|
Render empty responses. |
def render_none(self, context, result):
context.response.length = 0
context.response.body = b''
return True
|
|
Allow direct returning of WebOb |
def render_response(self, context, result):
context.response = result
return True
|
|
Return binary responses unmodified. |
def render_binary(self, context, result):
context.response.app_iter = iter((result, )) # This wraps the binary string in a WSGI body iterable.
return True
|
|
Return textual responses, encoding as needed. |
def render_text(self, context, result):
context.response.text = result
return True
|
|
Perform appropriate metadata wrangling for returned open file handles. |
def render_file(self, context, result):
if __debug__:
log.debug("Processing file-like object.", extra=dict(request=id(context), result=repr(result)))
response = context.response = Response(
conditional_response = True,
)
modified = mktime(gmtime(getmtime(result.name)))
response.last_modified = datetime.fromtimestamp(modified)
response.cache_control = 'public'
ct, ce = guess_type(result.name)
if not ct: ct = 'application/octet-stream'
response.content_type, response.content_encoding = ct, ce
response.etag = unicode(modified)
result.seek(0, 2) # Seek to the end of the file.
response.content_length = result.tell()
result.seek(0) # Seek back to the start of the file.
response.body_file = result
return True
|
|
Attempt to serve generator responses through stream encoding. This allows for direct use of cinje template functions, which are generators, as returned views. |
def render_generator(self, context, result):
context.response.encoding = 'utf8'
context.response.app_iter = (
(i.encode('utf8') if isinstance(i, unicode) else i) # Stream encode unicode chunks.
for i in result if i is not None # Skip None values.
)
return True
|


| Module | ActionController::Assertions::SelectorAssertions |
| In: |
vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb
|
Adds the assert_select method for use in Rails functional test cases.
Use assert_select to make assertions on the response HTML of a controller action. You can also call assert_select within another assert_select to make assertions on elements selected by the enclosing assertion.
Use css_select to select elements without making an assertions, either from the response HTML or elements selected by the enclosing assertion.
In addition to HTML responses, you can make the following assertions:
insertion operations.
for example for dealing with feed item descriptions.
Also see HTML::Selector for learning how to use selectors.
| RJS_STATEMENTS | = | { :replace => /Element\.replace/, :replace_html => /Element\.update/ |
| RJS_INSERTIONS | = | [:top, :bottom, :before, :after] |
| RJS_PATTERN_HTML | = | /"((\\"|[^"])*)"/ |
| RJS_PATTERN_EVERYTHING | = | Regexp.new("#{RJS_STATEMENTS[:any]}\\(\"([^\"]*)\", #{RJS_PATTERN_HTML}\\)", Regexp::MULTILINE) |
An assertion that selects elements and makes one or more equality tests.
If the first argument is an element, selects all matching elements starting from (and including) that element and all its children in depth-first order.
If no element if specified, calling assert_select will select from the response HTML. Calling assert_select inside an assert_select block will run the assertion for each element selected by the enclosing assertion.
For example:
assert_select "ol>li" do |elements| elements.each do |element| assert_select element, "li" end end
Or for short:
assert_select "ol>li" do assert_select "li" end
The selector may be a CSS selector expression (String), an expression with substitution values, or an HTML::Selector object.
The equality test may be one of the following:
To perform more than one equality tests, use a hash the following keys:
If the method is called with a block, once all equality tests are evaluated the block is called with an array of all matched elements.
# At least one form element assert_select "form" # Form element includes four input fields assert_select "form input", 4 # Page title is "Welcome" assert_select "title", "Welcome" # Page title is "Welcome" and there is only one title element assert_select "title", {:count=>1, :text=>"Welcome"}, "Wrong title or more than one title element" # Page contains no forms assert_select "form", false, "This page must contain no forms" # Test the content and style assert_select "body div.header ul.menu" # Use substitution values assert_select "ol>li#?", /item-\d+/ # All input fields in the form have a name assert_select "form input" do assert_select "[name=?]", /.+/ # Not empty end
# File vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb, line 174 174: def assert_select(*args, &block) 175: # Start with optional element followed by mandatory selector. 176: arg = args.shift 177: 178: if arg.is_a?(HTML::Node) 179: # First argument is a node (tag or text, but also HTML root), 180: # so we know what we're selecting from. 181: root = arg 182: arg = args.shift 183: elsif arg == nil 184: # This usually happens when passing a node/element that 185: # happens to be nil. 186: raise ArgumentError, "First arugment is either selector or element to select, but nil found. Perhaps you called assert_select with an element that does not exist?" 187: elsif @selected 188: root = HTML::Node.new(nil) 189: root.children.concat @selected 190: else 191: # Otherwise just operate on the response document. 192: root = response_from_page_or_rjs 193: end 194: 195: # First or second argument is the selector: string and we pass 196: # all remaining arguments. Array and we pass the argument. Also 197: # accepts selector itself. 198: case arg 199: when String 200: selector = HTML::Selector.new(arg, args) 201: when Array 202: selector = HTML::Selector.new(*arg) 203: when HTML::Selector 204: selector = arg 205: else raise ArgumentError, "Expecting a selector as the first argument" 206: end 207: 208: # Next argument is used for equality tests. 209: equals = {} 210: case arg = args.shift 211: when Hash 212: equals = arg 213: when String, Regexp 214: equals[:text] = arg 215: when Integer 216: equals[:count] = arg 217: when Range 218: equals[:minimum] = arg.begin 219: equals[:maximum] = arg.end 220: when FalseClass 221: equals[:count] = 0 222: when NilClass, TrueClass 223: equals[:minimum] = 1 224: else raise ArgumentError, "I don't understand what you're trying to match" 225: end 226: 227: # If we have a text test, by default we're looking for at least one match. 228: # Without this statement text tests pass even if nothing is selected. 229: # Can always override by specifying minimum or count. 230: if equals[:text] 231: equals[:minimum] ||= 1 232: end 233: # If a count is specified, it takes precedence over minimum/maximum. 234: if equals[:count] 235: equals[:minimum] = equals[:maximum] = equals.delete(:count) 236: end 237: 238: # Last argument is the message we use if the assertion fails. 239: message = args.shift 240: #- message = "No match made with selector #{selector.inspect}" unless message 241: if args.shift 242: raise ArgumentError, "Not expecting that last argument, you either have too many arguments, or they're the wrong type" 243: end 244: 245: matches = selector.select(root) 246: # Equality test. 247: equals.each do |type, value| 248: case type 249: when :text 250: for match in matches 251: text = "" 252: stack = match.children.reverse 253: while node = stack.pop 254: if node.tag? 255: stack.concat node.children.reverse 256: else 257: text << node.content 258: end 259: end 260: text.strip! unless match.name == "pre" 261: if value.is_a?(Regexp) 262: assert text =~ value, build_message(message, "<?> expected but was\n<?>.\n", value, text) 263: else 264: assert_equal value.to_s, text, message 265: end 266: end 267: when :html 268: for match in matches 269: html = match.children.map(&:to_s).join 270: html.strip! unless match.name == "pre" 271: if value.is_a?(Regexp) 272: assert html =~ value, build_message(message, "<?> expected but was\n<?>.\n", value, html) 273: else 274: assert_equal value.to_s, html, message 275: end 276: end 277: when :minimum 278: assert matches.size >= value, message || "Expecting at least #{value} selected elements, found #{matches.size}" 279: when :maximum 280: assert matches.size <= value, message || "Expecting at most #{value} selected elements, found #{matches.size}" 281: else raise ArgumentError, "I don't support the equality test #{key}" 282: end 283: end 284: 285: # If a block is given call that block. Set @selected to allow 286: # nested assert_select, which can be nested several levels deep. 287: if block_given? && !matches.empty? 288: begin 289: in_scope, @selected = @selected, matches 290: yield matches 291: ensure 292: @selected = in_scope 293: end 294: end 295: 296: # Returns all matches elements. 297: matches 298: end
Extracts the body of an email and runs nested assertions on it.
You must enable deliveries for this assertion to work, use:
ActionMailer::Base.perform_deliveries = true
assert_select "h1", "Email alert"
end
# File vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb, line 495 495: def assert_select_email(&block) 496: deliveries = ActionMailer::Base.deliveries 497: assert !deliveries.empty?, "No e-mail in delivery list" 498: 499: for delivery in deliveries 500: for part in delivery.parts 501: if part["Content-Type"].to_s =~ /^text\/html\W/ 502: root = HTML::Document.new(part.body).root 503: assert_select root, ":root", &block 504: end 505: end 506: end 507: end
Extracts the content of an element, treats it as encoded HTML and runs nested assertion on it.
You typically call this method within another assertion to operate on all currently selected elements. You can also pass an element or array of elements.
The content of each element is un-encoded, and wrapped in the root element encoded. It then calls the block with all un-encoded elements.
assert_select_feed :rss, 2.0 do # Select description element of each feed item. assert_select "channel>item>description" do # Run assertions on the encoded elements. assert_select_encoded do assert_select "p" end end end
# File vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb, line 449 449: def assert_select_encoded(element = nil, &block) 450: case element 451: when Array 452: elements = element 453: when HTML::Node 454: elements = [element] 455: when nil 456: unless elements = @selected 457: raise ArgumentError, "First argument is optional, but must be called from a nested assert_select" 458: end 459: else 460: raise ArgumentError, "Argument is optional, and may be node or array of nodes" 461: end 462: 463: fix_content = lambda do |node| 464: # Gets around a bug in the Rails 1.1 HTML parser. 465: node.content.gsub(/<!\[CDATA\[(.*)(\]\]>)?/m) { CGI.escapeHTML($1) } 466: end 467: 468: selected = elements.map do |element| 469: text = element.children.select{ |c| not c.tag? }.map{ |c| fix_content[c] }.join 470: root = HTML::Document.new(CGI.unescapeHTML("<encoded>#{text}</encoded>")).root 471: css_select(root, "encoded:root", &block)[0] 472: end 473: 474: begin 475: old_selected, @selected = @selected, selected 476: assert_select ":root", &block 477: ensure 478: @selected = old_selected 479: end 480: end
Selects content from the RJS response.
With no arguments, asserts that one or more elements are updated or inserted by RJS statements.
Use the id argument to narrow down the assertion to only statements that update or insert an element with that identifier.
Use the first argument to narrow down assertions to only statements of that type. Possible values are +:replace+, +:replace_html+ and +:insert_html+.
Use the argument +:insert+ followed by an insertion position to narrow down the assertion to only statements that insert elements in that position. Possible values are +:top+, +:bottom+, +:before+ and +:after+.
Without a block, assert_select_rjs merely asserts that the response contains one or more RJS statements that replace or update content.
With a block, assert_select_rjs also selects all elements used in these statements and passes them to the block. Nested assertions are supported.
Calling assert_select_rjs with no arguments and using nested asserts asserts that the HTML content is returned by one or more RJS statements. Using assert_select directly makes the same assertion on the content, but without distinguishing whether the content is returned in an HTML or JavaScript.
# Updating the element foo. assert_select_rjs :update, "foo" # Inserting into the element bar, top position. assert_select rjs, :insert, :top, "bar" # Changing the element foo, with an image. assert_select_rjs "foo" do assert_select "img[src=/images/logo.gif"" end # RJS inserts or updates a list with four items. assert_select_rjs do assert_select "ol>li", 4 end # The same, but shorter. assert_select "ol>li", 4
# File vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb, line 366 366: def assert_select_rjs(*args, &block) 367: arg = args.shift 368: 369: # If the first argument is a symbol, it's the type of RJS statement we're looking 370: # for (update, replace, insertion, etc). Otherwise, we're looking for just about 371: # any RJS statement. 372: if arg.is_a?(Symbol) 373: if arg == :insert 374: arg = args.shift 375: insertion = "insert_#{arg}".to_sym 376: raise ArgumentError, "Unknown RJS insertion type #{arg}" unless RJS_STATEMENTS[insertion] 377: statement = "(#{RJS_STATEMENTS[insertion]})" 378: else 379: raise ArgumentError, "Unknown RJS statement type #{arg}" unless RJS_STATEMENTS[arg] 380: statement = "(#{RJS_STATEMENTS[arg]})" 381: end 382: arg = args.shift 383: else 384: statement = "#{RJS_STATEMENTS[:any]}" 385: end 386: 387: # Next argument we're looking for is the element identifier. If missing, we pick 388: # any element. 389: if arg.is_a?(String) 390: id = Regexp.quote(arg) 391: arg = args.shift 392: else 393: id = "[^\"]*" 394: end 395: 396: pattern = Regexp.new("#{statement}\\(\"#{id}\", #{RJS_PATTERN_HTML}\\)", Regexp::MULTILINE) 397: 398: # Duplicate the body since the next step involves destroying it. 399: matches = nil 400: @response.body.gsub(pattern) do |match| 401: html = $2 402: # RJS encodes double quotes and line breaks. 403: html.gsub!(/\\"/, "\"") 404: html.gsub!(/\\n/, "\n") 405: matches ||= [] 406: matches.concat HTML::Document.new(html).root.children.select { |n| n.tag? } 407: "" 408: end 409: if matches 410: if block_given? 411: begin 412: in_scope, @selected = @selected, matches 413: yield matches 414: ensure 415: @selected = in_scope 416: end 417: end 418: matches 419: else 420: # RJS statement not found. 421: flunk args.shift || "No RJS statement that replaces or inserts HTML content." 422: end 423: end
Select and return all matching elements.
If called with a single argument, uses that argument as a selector to match all elements of the current page. Returns an empty array if no match is found.
If called with two arguments, uses the first argument as the base element and the second argument as the selector. Attempts to match the base element and any of its children. Returns an empty array if no match is found.
The selector may be a CSS selector expression (String), an expression with substitution values (Array) or an HTML::Selector object.
For example:
forms = css_select("form") forms.each do |form| inputs = css_select(form, "input") ... end
# File vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb, line 54 54: def css_select(*args) 55: # See assert_select to understand what's going on here. 56: arg = args.shift 57: 58: if arg.is_a?(HTML::Node) 59: root = arg 60: arg = args.shift 61: elsif arg == nil 62: raise ArgumentError, "First arugment is either selector or element to select, but nil found. Perhaps you called assert_select with an element that does not exist?" 63: elsif @selected 64: matches = [] 65: @selected.each do |selected| 66: subset = css_select(selected, HTML::Selector.new(arg.dup, args.dup)) 67: subset.each do |match| 68: matches << match unless matches.any? { |m| m.equal?(match) } 69: end 70: end 71: 72: return matches 73: else 74: root = response_from_page_or_rjs 75: end 76: 77: case arg 78: when String 79: selector = HTML::Selector.new(arg, args) 80: when Array 81: selector = HTML::Selector.new(*arg) 82: when HTML::Selector 83: selector = arg 84: else raise ArgumentError, "Expecting a selector as the first argument" 85: end 86: 87: selector.select(root) 88: end
assert_select and css_select call this to obtain the content in the HTML page, or from all the RJS statements, depending on the type of response.
# File vendor/rails/actionpack/lib/action_controller/assertions/selector_assertions.rb, line 530 530: def response_from_page_or_rjs() 531: content_type = @response.headers["Content-Type"] 532: if content_type && content_type =~ /text\/javascript/ 533: body = @response.body.dup 534: root = HTML::Node.new(nil) 535: while true 536: next if body.sub!(RJS_PATTERN_EVERYTHING) do |match| 537: # RJS encodes double quotes and line breaks. 538: html = $3 539: html.gsub!(/\\"/, "\"") 540: html.gsub!(/\\n/, "\n") 541: matches = HTML::Document.new(html).root.children.select { |n| n.tag? } 542: root.children.concat matches 543: "" 544: end 545: break 546: end 547: root 548: else 549: html_document.root 550: end 551: end


File spatialhash.lua
Functions
| SpatialHash (width, height, cellSize) | Instantiates a new spatial hash (synctactic shortcut to SpatialHash:new(). |
| SpatialHash:addShape (shape) | Adds a given shape in a SpatialHash. |
| SpatialHash:getCollidingPairs (shapes) | Returns a list of potentially colliding-pairs |
| SpatialHash:getCollidingWith (shape) | Returns a set of potentially colliding-pairs involving a given shape |
| SpatialHash:new (width, height, cellSize) | Instantiate a new spatial hash. |
| SpatialHash:removeShape (shape) | Removes a given shape from a SpatialHash. |
| SpatialHash:updateShape (shape) | Updates a given shape position in the hash. |
Tables
| spatialHash | a spatialHash instance. |
Functions
- SpatialHash (width, height, cellSize)
-
Instantiates a new spatial hash (synctactic shortcut to SpatialHash:new().
Parameters:
-
width
: the world space width -
height
: the world space height -
cellSize
: the square cell size of the grid. Must be larger than the largest shape in the space.
Return value:
- a SpatialHash
-
- SpatialHash:addShape (shape)
-
Adds a given shape in a SpatialHash. The given shape must implement a getAABB method returning rectangle bounding vertices coordinates, that is in order, the upper-left and lower-right corners coordinates
local shape = {x = 10, y = 10, w = 20, h = 20}
function shape:getAABB()
return (self.x, self.y, self.x+self.w,self.y+self.h)
endParameters:
-
shape
: a shape
-
- SpatialHash:getCollidingPairs (shapes)
-
Returns a list of potentially colliding-pairs
Parameters:
-
shapes
: an array list of shape objects
Return values:
- an array-list of pairs in mutual bounding-box collision
- the number of bounding-box collision checks made
-
- SpatialHash:getCollidingWith (shape)
-
Returns a set of potentially colliding-pairs involving a given shape
Parameters:
-
shape
: a shape
Return values:
- an array-list of shapes in bounding-box collision with a given shape
- the number of bounding-box collision checks made
-
- SpatialHash:new (width, height, cellSize)
-
Instantiate a new spatial hash.
Parameters:
-
width
: the world space width -
height
: the world space height -
cellSize
: the square cell size of the grid. Must be larger than the largest shape in the space.
Return value:
- a SpatialHash
-
- SpatialHash:removeShape (shape)
-
Removes a given shape from a SpatialHash.
Parameters:
-
shape
: a shape
-
- SpatialHash:updateShape (shape)
-
Updates a given shape position in the hash. Should be called each time the given shape position or geometry attributes changes.
Parameters:
-
shape
: a shape
-
Tables
- spatialHash
- a spatialHash instance. Although all attributes are accessible, those starting with __ should be considered as internal.
Fields:
-
width
: the world space width -
height
: the world space height -
cellSize
: the square cell size of the grid. Must be larger than the largest shape in the space. -
__cols
: the number of columns in the spatial grid -
__rows
: the number of rows in the spatial grid -
__size
: the number of buckets (i.e. cells) in the spatial grid -
__array
: the array-list holding the spatial grid buckets
-


b-event
Oops !
404 - Page Not Found
Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. Please
Go To Homepage


[#:html:head 'js' src='/res/desktop/Desktop.js'] [#:html:head 'css' src='/res/desktop/styles.css'] [#:into '/res/layouts/lsn/basic.xhtml' as 'body']


Invite
Home
Commands
Announcements
Important Announcements
Bot Vertification!
Krony got verified !
Publish Date : 03/5/2021


AUX
: auxiliary verb
We consider the verbs “volna”, “fog”, “talál” and “szokott” as AUX
in Hungarian.
Treebank Statistics (UD_Hungarian)
There are 7 AUX
lemmas (0%), 25 AUX
types (0%) and 153 AUX
tokens (0%).
Out of 16 observed tags, the rank of AUX
is: 14 in number of lemmas, 11 in number of types and 13 in number of tokens.
The 10 most frequent AUX
lemmas: van, lesz, fog, lehet, volna, elszenved, marad
The 10 most frequent AUX
types: volt, lesz, lenne, volna, legyen, lehet, voltak, lett, fog, fogja
The 10 most frequent ambiguous lemmas: van (VERB 86, AUX 69), lesz (AUX 49, VERB 42), fog (AUX 17, VERB 2), lehet (VERB 10, AUX 8), marad (VERB 11, AUX 1)
The 10 most frequent ambiguous types: volt (AUX 54, VERB 23, ADJ 8), lesz (AUX 15, VERB 7), lenne (AUX 9, VERB 3), volna (AUX 9, VERB 2), legyen (AUX 7, VERB 4), lehet (VERB 23, AUX 7), voltak (AUX 7, VERB 2), lett (AUX 6, VERB 4), lehetett (VERB 6, AUX 5), vagyok (AUX 3, VERB 1)
- volt
- lesz
- lenne
- volna
- legyen
- lehet
- voltak
- lett
- lehetett
- vagyok
Morphology
The form / lemma ratio of AUX
is 3.571429 (the average of all parts of speech is 1.471511).
The 1st highest number of forms (11) was observed with the lemma “lesz”: legyen, legyenek, lehet, lenne, lenni, lennének, lesz, lesznek, leszünk, lett, lettem.
The 2nd highest number of forms (7) was observed with the lemma “van”: vagyok, van, vannak, volna, volt, voltak, voltam.
The 3rd highest number of forms (4) was observed with the lemma “fog”: fog, fogja, fogják, fognak.
AUX
occurs with 7 features: hu-feat/Voice (153; 100% instances), hu-feat/Definite (151; 99% instances), hu-feat/Mood (151; 99% instances), hu-feat/Number (151; 99% instances), hu-feat/Person (151; 99% instances), hu-feat/Tense (151; 99% instances), hu-feat/VerbForm (136; 89% instances)
AUX
occurs with 15 feature-value pairs: Definite=Def
, Definite=Ind
, Mood=Cnd
, Mood=Imp
, Mood=Ind
, Mood=Pot
, Number=Plur
, Number=Sing
, Person=1
, Person=3
, Tense=Past
, Tense=Pres
, VerbForm=Fin
, VerbForm=Inf
, Voice=Act
AUX
occurs with 20 feature combinations.
The most frequent feature combination is Definite=Ind|Mood=Ind|Number=Sing|Person=3|Tense=Past|VerbForm=Fin|Voice=Act
(65 tokens).
Examples: volt, lett, lehetett
Relations
AUX
nodes are attached to their parents using 6 different relations: hu-dep/cop (128; 84% instances), hu-dep/aux (19; 12% instances), hu-dep/ccomp (3; 2% instances), hu-dep/advcl (1; 1% instances), hu-dep/ccomp:obl (1; 1% instances), hu-dep/conj (1; 1% instances)
Parents of AUX
nodes belong to 8 different parts of speech: ADJ (58; 38% instances), NOUN (51; 33% instances), VERB (22; 14% instances), PRON (10; 7% instances), ADV (4; 3% instances), PROPN (4; 3% instances), NUM (3; 2% instances), AUX (1; 1% instances)
144 (94%) AUX
nodes are leaves.
3 (2%) AUX
nodes have one child.
1 (1%) AUX
nodes have two children.
5 (3%) AUX
nodes have three or more children.
The highest child degree of a AUX
node is 5.
Children of AUX
nodes are attached using 10 different relations: hu-dep/xcomp (7; 26% instances), hu-dep/punct (4; 15% instances), hu-dep/advcl (3; 11% instances), hu-dep/advmod (3; 11% instances), hu-dep/nsubj (3; 11% instances), hu-dep/cc (2; 7% instances), hu-dep/mark (2; 7% instances), hu-dep/advmod:mode (1; 4% instances), hu-dep/aux (1; 4% instances), hu-dep/obj (1; 4% instances)
Children of AUX
nodes belong to 9 different parts of speech: VERB (10; 37% instances), ADV (4; 15% instances), PUNCT (4; 15% instances), CCONJ (2; 7% instances), PROPN (2; 7% instances), SCONJ (2; 7% instances), AUX (1; 4% instances), NOUN (1; 4% instances), PRON (1; 4% instances)
AUX in other languages: [am] [ar] [bg] [bxr] [ca] [ckb] [cop] [cs] [cu] [da] [de] [el] [en] [es] [et] [eu] [fa] [fi] [fo] [fr] [ga] [gl] [got] [grc] [he] [hi] [hr] [hu] [id] [it] [ja] [kk] [kmr] [ko] [la] [lv] [mr] [nl] [no] [pl] [pt] [ro] [ru] [sa] [sk] [sla] [sl] [so] [sr] [sv] [swl] [ta] [tr] [ug] [uk] [u] [urj] [ur] [vi] [yue] [zh]


{% extends "horizon/common/_modal_form.html" %} {% load i18n %} {% block modal-body-right %}
{% blocktrans %}
Run the diagnostic test and discovery on the Cinder node. The test includes
validating the entries in the "cinder.conf" file, and verifying the
HPE 3PAR client is installed on the system.
As a result of the test, Cinder backends and storage arrays will be discovered.
Warning - this test may take several minutes to complete.
{% endblocktrans %}


--- layout: page title: About header-img: "img/about-bg.png" ---
Student at Flatiron School. Former Fixed Income Trader.


{{ school.address }} ({{ school.city }}) - {{ school.country }}
Tlf: {{ school.phone }} CIF: {{ school.cif }}


My self jeshwanthkandukuri,here iam going to create a collapse component without using Bootstrap
I am using Js and jQuery functions to create this
I have a good interest on-
HTML
CSS
Javascript
JQuery
Email<EMAIL_ADDRESS>phone :<PHONE_NUMBER>


Alex Scott and Neil Jones stuck together after Strictly wardrobe ‘malfunction’
The couple could not untangle themselves after their fiery Argentine tango to the aptly-picked song Never Tear Us Apart.
Neil Jones had to carry Alex Scott across the dancefloor when their clothes became attached after their routine on Strictly Come Dancing on Saturday night.
The pair performed a fiery Argentine tango to Bishop Briggs’s version of Never Tear Us Apart, ending with a tight embrace and her leg around his waist.
However, instead of walking separately to the judges after the dance, Jones lifted the former footballer into his arms and carried her over to the panel.
Host Tess Daly was initially unaware as Scott and Jones tried to untangle themselves from each other before noticing their predicament.
Jumping in to help and working to detach them from each other for several seconds, Daly said: “OK we have a microphone malfunction, or is it a sequin malfunction?”
Scott tweeted after the show: “Yes this did happen through the dance but we tried our best to carry on and still do the routine the best we could.”
Their routine drew mixed results from the judges, receiving 26 points overall.
The former Lioness was criticised for looking like she was “churning butter” throughout the routine by judge Craig Revel Horwood, who scored her just four points.
Scott and Jones are now at risk of being eliminated from Strictly this week along with Saffron Barker, who is at the bottom of the leaderboard with them with 26 points.
YouTube star Barker and dancer AJ Pritchard performed a samba to Walking On Sunshine by the Take Me To Rio Collective.
The lower score for Barker comes a week after she was in the dance-off against Michelle Visage, who was booted from the competition.
At the top end of the leaderboard were Kelvin Fletcher and Karim Zeroual, who both scored 38 points from the judges.
Soap star Fletcher and his partner Oti Mabuse impressed the judges with a street/commercial routine to Frank Wilson’s Do I Love You (Indeed I Do), a song that the actor said meant a lot to him.
Children’s TV presenter Zeroual’s emotional contemporary dance to With Confidence hit Drops Of Jupiter with partner Amy Dowden almost had the judges in tears, and they were full of praise.
However, Revel Horwood did warn him that his performance lacked “emotional content” to boos from the audience.
It was the second week in a row that Fletcher and Zeroual both came in joint first place.
Comedian Chris Ramsey and his partner Karen Hauer came in third place with 31 points after he performed his most serious dance yet – a paso doble to Run Boy Run by Woodkid.
EastEnders star Emma Barton tackled a quickstep to Sparkling Diamonds by Nicole Kidman from the film Moulin Rouge! with Anton du Beke, for which they scored 29 points, a drop of eight after their score of 37 last week.
Judge Bruno Tonioli opened the show by singing a rendition of Can’t Take My Eyes Off Of You while the professional dancers performed a group routine in bright pink outfits.
Strictly Come Dancing: The Results will air at 7.15pm on Sunday on BBC One.


Preparation time
less than 30 mins
Cooking time
10 to 30 mins
Serves
Serves 4
For the sauce vierge, heat the oil in a pan, then add the tomatoes, shallots and capers. Season with salt and freshly ground black pepper and gently heat for two minutes, then stir in the lemon juice and chopped herbs.
For the vinaigrette, mix the olive oil, the vinegar, salt and freshly ground white pepper in a bowl. Mix well.
Push the garlic and thyme into a clean glass bottle. Pour the vinaigrette into the bottle.
For the potatoes, gently heat a little vinaigrette in a pan with the potatoes. (The leftover vinaigrette can be stored in the fridge for up to a week.) Crush the potatoes lightly with a fork. Add the black olives and chives to the crushed potatoes and season with salt and freshly ground black pepper.
For the sea bass, heat a little olive oil in a non-stick pan. Score the skin of the sea bass and season the flesh with salt and freshly ground black pepper. Place the fish, skin-side down, into the hot oil. Cook the sea bass for 4-6 minutes on the skin-side according to the thickness of the fish. Turn the fish onto its flesh side briefly to finish cooking it.
To serve, place a metal chef's ring in the middle of each plate and spoon the olive crushed potatoes into the rings. Carefully remove the rings. Take the sea bass off the heat and squeeze over the lemon juice. Place the fish, skin-side up, on top of the potatoes then spoon the warm sauce vierge over and around the fish.


The Dolphin Platform provides the optional dolphin-platform-bean-validation
module that adds Java Bean Validation (JSR 303) support to the model layer of the Dolphin Platform. To use the validation support the module must be added as a dependency to your project:
<dependency>
<groupId>com.canoo.dolphin-platform</groupId>
<artifactId>dolphin-platform-bean-validation</artifactId>
<version>DOLPHIN_PLATFORM_VERSION</version>
</dependency>
If you have defined a common module that contains the model descriptions and is shared between client and server you can simply replace the dolphin-platform-core
dependency with dolphin-platform-bean-validation
since the validation module adds a transitive dependency to the core module.
The dolphin-platform-bean-validation
module don’t depend on a JSR–303 implementation. If your application server don’t provide an implementation you need to add for example Hibernate Validation as a dependency. Here is an example for Maven:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.1.3.Final</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.el</artifactId>
<version>3.0.0</version>
</dependency>
If you depend on JavaEE your application container will automatically provide an implementation for you. In that case you don’t need to add a specific implementation as a dependency.
Once the module is added as a dependency the contrains annotations of JSR–303 can be used in Dolphin Platform models. To do so the Property
fields of a model bean must be annotated with the contrains annotations. Here is an example that defines a “not null” constrain for a String
property:
@DolphinBean
public class MyModel {
@NotNull
private Property<String> value;
public Property<String> valueProperty() {
return value1;
}
}
A general description of the Dolphin Platform model API can be found here.
By using a validator you can now easily validate instances of the model as described in the bean validation documentation or several tutorials. Here is a basic code snippet that creates a validator by hand and validates a Dolphin Platform model:
Configuration<?> validationConf = Validation.byDefaultProvider().configure();
Validator validator = validationConf.buildValidatorFactory().getValidator();
Set<ConstraintViolation<TestBean>> violations = validator.validate(dolphinModel);
if(!violations.isEmpty()) {
//Handle violations
}
Some platforms provide injection of a Validator
instance. In that case you don’t need to create a configuration and validator by hand.


» Select a piece by clicking, then click another piece and they will swap.
» Pieces will not swap if they don't have the same shape.
» The piece can not be selected if it's already on the right place or locked.
» Locked piece will be automatically released after 20 seconds.
» Red piece - locked by another player.
» Dim piece - isn't on its right place.
» Blue piece - selected by you.
» - loading.


118324611 - Links to my Heroku & Github!
Github
Heroku
My bootstrap isn't working on heroku but does work on netbeans
Return to home
Return to Main Menu


This page display by default the context main stock.
You can select a site with the scroll list or return to the main stock with
This page display something only if the main stock is defined for the current context.
This page display the stock sorted by type.
Each type has many informations :
You can consult movements history for a type by clicking on
This will display a window with the movements list sorted by descrescent date.
By default, the last 20 movements are displayed, you can change this value at the top of the page.
You could only display lines including the string entered in Search field


Social posts blame election results on unsubstantiated fraud
by AMANDA SEITZAs election results came in last week from Kentucky and Virginia, social media posts offered an unsubstantiated explanation for Republican losses: voter fraud.
The messages seized on small-scale voting issues or pushed inaccurate reports to question all the results, including the defeat of Kentucky Gov. Matt Bevin and the victory of Democrats who won control of the Virginia Legislature.
The posts claimed that thousands of dead people voted and that voters were turned away or given misprinted ballots. One Twitter user suggested that new voting machines led to sweeping errors.
Election officials say the elections experienced only minor disruptions, not widespread fraud.
Political science professor Charles Stewart III says the posts provide a glimpse into the type of misinformation that could cloud next year’s presidential race.
AMANDA SEITZ
DAVID KLEPPER


|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is designed to give a framework for all intelligence modules working with a character. In other words, each intelligence should perform the following actions in some way shape or form. This can be intelligent problem-solving, or it can be as simple as throwing some menus on the screen to prompt a human player.
| Method Summary | |
short |
ChooseAttack(DGBattle battle)
Chooses the special attack for the character to perform |
short |
ChooseAttackVictim(DGBattle battle,
DGAttack attack)
Chooses the victim for the character to attack. |
short |
ChooseCommand(DGBattle battle)
Chooses the action for the character to perform |
short |
ChooseItem(DGBattle battle)
Chooses an item for the character to use. |
short |
ChooseItemVictim(DGBattle battle,
DGItem itm)
Chooses a character for the character to use the given item on. |
short |
ChooseSummons(DGBattle battle)
Chooses a monster for the character to summon. |
| Method Detail |
public short ChooseAttack(DGBattle battle)
battle
- DGBattle
the character is acting inpublic short ChooseAttackVictim(DGBattle battle, DGAttack attack)
battle
- DGBattle
the character is acting inattack
- attack the character is usingpublic short ChooseCommand(DGBattle battle)
battle
- DGBattle
the character is acting inpublic short ChooseItem(DGBattle battle)
battle
- DGBattle the character is acting inpublic short ChooseItemVictim(DGBattle battle, DGItem itm)
battle
- DGBattle the character is acting initm
- item the character is usingpublic short ChooseSummons(DGBattle battle)
battle
- DGBattle the character is acting in
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Uses of Class
com.mxgraph.swing.mxGraphComponent
-
Packages that use mxGraphComponent Package Description com.mxgraph.swing This package contains the main component for JFC/Swing, namely the graph component and the outline component.com.mxgraph.swing.handler This package contains all classes required for mouse event handling in JFC/Swing.com.mxgraph.swing.util This package contains all utility classes that require JFC/Swing, namely for mouse event handling, drag and drop, actions and overlays.com.mxgraph.swing.view This package contains all classes required for interaction, namely the mxCellEditor used for in-place editing and the mxInteractiveCanvas, which defines the requirements for a canvas that supports hit-detection on shapes. -
-
Uses of mxGraphComponent in com.mxgraph.swing
Fields in com.mxgraph.swing declared as mxGraphComponent Modifier and Type Field Description protected mxGraphComponent
mxGraphComponent.mxMouseRedirector. graphComponent
protected mxGraphComponent
mxGraphOutline. graphComponent
Methods in com.mxgraph.swing that return mxGraphComponent Modifier and Type Method Description mxGraphComponent
mxGraphOutline. getGraphComponent()
mxGraphComponent
mxGraphComponent.mxGraphControl. getGraphContainer()
Methods in com.mxgraph.swing with parameters of type mxGraphComponent Modifier and Type Method Description void
mxGraphOutline. setGraphComponent(mxGraphComponent graphComponent)
Fires a property change event forgraphComponent
.Constructors in com.mxgraph.swing with parameters of type mxGraphComponent Constructor Description mxGraphOutline(mxGraphComponent graphComponent)
mxMouseRedirector(mxGraphComponent graphComponent)
-
Uses of mxGraphComponent in com.mxgraph.swing.handler
Fields in com.mxgraph.swing.handler declared as mxGraphComponent Modifier and Type Field Description protected mxGraphComponent
mxCellHandler. graphComponent
Reference to the enclosing graph component.protected mxGraphComponent
mxCellMarker. graphComponent
Holds the enclosing graph component.protected mxGraphComponent
mxConnectionHandler. graphComponent
protected mxGraphComponent
mxConnectPreview. graphComponent
protected mxGraphComponent
mxGraphHandler. graphComponent
Reference to the enclosing graph component.protected mxGraphComponent
mxInsertHandler. graphComponent
Reference to the enclosing graph component.protected mxGraphComponent
mxMovePreview. graphComponent
protected mxGraphComponent
mxPanningHandler. graphComponent
protected mxGraphComponent
mxRotationHandler. graphComponent
Reference to the enclosing graph component.protected mxGraphComponent
mxRubberband. graphComponent
Reference to the enclosing graph container.protected mxGraphComponent
mxSelectionCellsHandler. graphComponent
Reference to the enclosing graph component.Methods in com.mxgraph.swing.handler that return mxGraphComponent Modifier and Type Method Description mxGraphComponent
mxCellHandler. getGraphComponent()
mxGraphComponent
mxGraphHandler. getGraphComponent()
mxGraphComponent
mxInsertHandler. getGraphComponent()
mxGraphComponent
mxRotationHandler. getGraphComponent()
mxGraphComponent
mxSelectionCellsHandler. getGraphComponent()
Methods in com.mxgraph.swing.handler with parameters of type mxGraphComponent Modifier and Type Method Description mxGraphTransferable
mxGraphTransferHandler. createGraphTransferable(mxGraphComponent graphComponent, java.lang.Object[] cells, mxRectangle bounds, javax.swing.ImageIcon icon)
mxGraphTransferable
mxGraphTransferHandler. createGraphTransferable(mxGraphComponent graphComponent, java.lang.Object[] cells, javax.swing.ImageIcon icon)
javax.swing.ImageIcon
mxGraphTransferHandler. createTransferableImage(mxGraphComponent graphComponent, java.lang.Object[] cells)
protected java.lang.Object
mxGraphTransferHandler. getDropTarget(mxGraphComponent graphComponent, mxGraphTransferable gt)
Returns the drop target for the given transferable and location.protected java.lang.Object[]
mxGraphTransferHandler. importCells(mxGraphComponent graphComponent, mxGraphTransferable gt, double dx, double dy)
Gets a drop target using getDropTarget and imports the cells using mxGraph.splitEdge or mxGraphComponent.importCells depending on the drop target and the return values of mxGraph.isSplitEnabled and mxGraph.isSplitTarget.protected boolean
mxGraphTransferHandler. importGraphTransferable(mxGraphComponent graphComponent, mxGraphTransferable gt)
Returns true if the cells have been imported using importCells.protected void
mxKeyboardHandler. installKeyboardActions(mxGraphComponent graphComponent)
Invoked as part from the boilerplate install block.protected void
mxGraphTransferHandler. removeCells(mxGraphComponent graphComponent, java.lang.Object[] cells)
Constructors in com.mxgraph.swing.handler with parameters of type mxGraphComponent Constructor Description mxCellHandler(mxGraphComponent graphComponent, mxCellState state)
Constructs a new cell handler for the given cell state.mxCellMarker(mxGraphComponent graphComponent)
Constructs a new marker for the given graph component.mxCellMarker(mxGraphComponent graphComponent, java.awt.Color validColor)
Constructs a new marker for the given graph component.mxCellMarker(mxGraphComponent graphComponent, java.awt.Color validColor, java.awt.Color invalidColor)
Constructs a new marker for the given graph component.mxCellMarker(mxGraphComponent graphComponent, java.awt.Color validColor, java.awt.Color invalidColor, double hotspot)
Constructs a new marker for the given graph component.mxCellTracker(mxGraphComponent graphComponent, java.awt.Color color)
Constructs an event handler that highlights cells.mxConnectionHandler(mxGraphComponent graphComponent)
mxConnectPreview(mxGraphComponent graphComponent)
mxEdgeHandler(mxGraphComponent graphComponent, mxCellState state)
mxElbowEdgeHandler(mxGraphComponent graphComponent, mxCellState state)
mxGraphHandler(mxGraphComponent graphComponent)
mxInsertHandler(mxGraphComponent graphComponent, java.lang.String style)
mxKeyboardHandler(mxGraphComponent graphComponent)
mxMovePreview(mxGraphComponent graphComponent)
Constructs a new rubberband selection for the given graph component.mxPanningHandler(mxGraphComponent graphComponent)
mxRotationHandler(mxGraphComponent graphComponent)
Constructs a new rotation handler.mxRubberband(mxGraphComponent graphComponent)
Constructs a new rubberband selection for the given graph component.mxSelectionCellsHandler(mxGraphComponent graphComponent)
mxVertexHandler(mxGraphComponent graphComponent, mxCellState state)
-
Uses of mxGraphComponent in com.mxgraph.swing.util
Fields in com.mxgraph.swing.util declared as mxGraphComponent Modifier and Type Field Description protected mxGraphComponent
mxMorphing. graphComponent
Reference to the enclosing graph instance.Constructors in com.mxgraph.swing.util with parameters of type mxGraphComponent Constructor Description mxMorphing(mxGraphComponent graphComponent)
Constructs a new morphing instance for the given graph.mxMorphing(mxGraphComponent graphComponent, int steps, double ease, int delay)
Constructs a new morphing instance for the given graph. -
Uses of mxGraphComponent in com.mxgraph.swing.view
Fields in com.mxgraph.swing.view declared as mxGraphComponent Modifier and Type Field Description protected mxGraphComponent
mxCellEditor. graphComponent
protected mxGraphComponent
mxCellStatePreview. graphComponent
Methods in com.mxgraph.swing.view with parameters of type mxGraphComponent Modifier and Type Method Description boolean
mxInteractiveCanvas. contains(mxGraphComponent graphComponent, java.awt.Rectangle rect, mxCellState state)
boolean
mxInteractiveCanvas. hitSwimlaneContent(mxGraphComponent graphComponent, mxCellState swimlane, int x, int y)
Returns true if the given point is inside the content area of the given swimlane.boolean
mxInteractiveCanvas. intersects(mxGraphComponent graphComponent, java.awt.Rectangle rect, mxCellState state)
Constructors in com.mxgraph.swing.view with parameters of type mxGraphComponent Constructor Description mxCellEditor(mxGraphComponent graphComponent)
mxCellStatePreview(mxGraphComponent graphComponent, boolean cloned)
Constructs a new state preview.
-


Step 1: Invest some amount of Eth into the investment fund (sufficient to purchase a battery). (Click "Invest")
Step 2: Add one or more batteries to the battery array. Make sure you are in the account of the user who has deployed the contract (probably accounts[0]) to maintain admin permissions (Click "Add to array")
Virtual Power Plant Admin:
Step 3: Charge or discharge batteries based on the current price of electricity (Click "Execute Energy Transaction")
Battery currentFilled value will change by the battery's charge rate
battery title
Serial Number: abcd Capacity: 100 MWh Current Filled: 80 MWh Cost: 80 Eth Price Threshold: Warren, MI Eth/kWh Charge Rate: 5 MWh/hr


Congratulations! You successfully spoofed (and crafted) the UDID we were looking for. For your hard work, have the flag:
{{ FLAG }}
I'm sure some triple-letter agency (or Florida Man) is proud of you right now.


{% extends 'base.html'%} {% import 'macros.html' as macro%}
Medical Pitch
A healthy life is a necessity, Let's live healthy
This virus is super deadly
Mental health is the best gift ever
Eat healthy always


Create new motorhome
Return back
Brand:
Model:
Type:
Gas Type:
Number of Seats:
Odometer:
Year of manufacture:
Condition:
Additional info:
Code:
Status:
Create Motorhome


Hovering over each thumbnail in the slider will launch a Tooltip window that can display any HTML content.
Please visit Slider with Tooltip and Menucool Tooltip for detailed instructoins.
Using this demo requires two licenses: Menucool slider license and Menucool tooltip license.


BUYViewController Class Reference
| Inherits from | UIViewController |
|---|---|
| Conforms to | PKPaymentAuthorizationViewControllerDelegate |
| Declared in | BUYViewController.h |
delegate
Register yourself as a BUYViewControllerDelegate to handle all errors, and status changes.
@property (nonatomic, weak) id<BUYViewControllerDelegate> delegate
Declared In
BUYViewController.h
client
Set the BUYClient using the provided initializer method initWithClient:
or
if using Storyboards, override after Storyboard initialization.
@property (nonatomic, strong) BUYClient *client
Declared In
BUYViewController.h
shop
The associated shop. setting this prior to displaying will prevent another network request
@property (nonatomic, strong) BUYShop *shop
Declared In
BUYViewController.h
merchantId
The merchant ID used for Apple Pay
@property (nonatomic, strong) NSString *merchantId
Declared In
BUYViewController.h
isApplePayAvailable
Returns YES if the following conditions are met: - the device hardware is capable of using Apple Pay - the device has a payment card setup - the merchant ID has been set to use Apple Pay
@property (nonatomic, assign, readonly) BOOL isApplePayAvailable
Declared In
BUYViewController.h
allowApplePaySetup
If the merchantId is set and the device support Apple Pay but no credit card is present this allows the user to add a payment pass to the Wallet. The user is given the option to add a payment pass or continue with web checkout. Default is set to true. The Set Up Apple Pay button will, however still only show if [PKAddPaymentPassViewController canAddPaymentPass] returns true, merchantId is set and the app is running iOS 9.0 and above.
@property (nonatomic, assign) BOOL allowApplePaySetup
Declared In
BUYViewController.h
– canShowApplePaySetup
Whether the device is setup to show the Apple Pay setup sheet.
allowApplePaySetup
must be set to YES, and the merchantId
must also be set in addition to the
device settings for this method to return YES.
- (BOOL)canShowApplePaySetup
Return Value
YES if the Setup Apple Pay button should be shown
Declared In
BUYViewController.h
– shouldShowApplePayButton
Returns whether the Apple Pay button should be shown
- (BOOL)shouldShowApplePayButton
Return Value
YES if isApplePayAvailable
or canShowApplePaySetup
returns YES
Declared In
BUYViewController.h
– shouldShowApplePaySetup
Returns whether to show the Apple Pay setup button in place of the Apple Pay buy button
- (BOOL)shouldShowApplePaySetup
Return Value
YES if isApplePayAvailable
returns NO and canShowApplePaySetup
returns YES
Declared In
BUYViewController.h
checkout
The current checkout object
@property (nonatomic, strong, readonly) BUYCheckout *checkout
Declared In
BUYViewController.h
– loadShopWithCallback:
Loads the shop details
- (void)loadShopWithCallback:(void ( ^ ) ( BOOL , NSError *))block
Parameters
block |
callback block called on completion |
|---|
Declared In
BUYViewController.h
supportedNetworks
The supported credit card payment networks. iOS 8.3: PKPaymentNetworkAmex, PKPaymentNetworkMasterCard, PKPaymentNetworkVisa. iOS 9.0: PKPaymentNetworkAmex, PKPaymentNetworkDiscover, PKPaymentNetworkMasterCard, PKPaymentNetworkVisa.
@property (nonatomic, copy) NSArray *supportedNetworks
Declared In
BUYViewController.h
– paymentRequest
Override point to return a custom payment request
- (PKPaymentRequest *)paymentRequest
Return Value
a new payment request object
Discussion
The default merchantCapability is PKMerchantCapability3DS
Declared In
BUYViewController.h
– startApplePayCheckout:
Start an Apple Pay checkout with a BUYCheckout object. The checkout object will be created or updated on Shopify before proceeding with the Apple Pay checkout
- (void)startApplePayCheckout:(BUYCheckout *)checkout
Parameters
checkout |
A BUYCheckout object to start an Apple Pay checkout with |
|---|
Declared In
BUYViewController.h
– startWebCheckout:
Start a responsive web checkout with a BUYCheckout object. This call will jump out to Safari and the shop’s responsive web checkout. The checkout object will be created or updated on Shopify before proceeding with the responsive web checkout
- (void)startWebCheckout:(BUYCheckout *)checkout
Parameters
checkout |
A BUYCheckout object to start a web checkout with |
|---|
Declared In
BUYViewController.h
– checkoutCompleted:status:
Override this method if you want to perform any actions before information the delegate
- (void)checkoutCompleted:(BUYCheckout *)checkout status:(BUYStatus)status
Parameters
checkout |
The completed BUYCheckout |
|---|---|
status |
The status of the BUYCheckout |
Declared In
BUYViewController.h


|cFFFFD100Q:|r What causes an addon to be blocked from an action only available to the Blizzard UI?
|cFFFFD100A:|r Mostly this happens when the addon does something very innocuous but the Blizzard UI wasn't coded correctly to ignore the innocuous behavior.
|cFFFFD100Q:|r Is the addon trying to perform an action only available to the Blizzard UI?
|cFFFFD100A:|r No. It is actually Blizzard's UI code trying to perform the action. The error message is very misleading.
|cFFFFD100Q:|r Why was the issue unforeseen?
|cFFFFD100A:|r No reasonable amount of testing can uncover these kinds of issues nor are the tools available to predict and prevent them, but swift action can be taken when information is provided!
|cFFFFD100Q:|r What will you do with the information I provide?
|cFFFFD100A:|r I will look through it for the root cause of the issue or for the next clue on what may be several rounds of debugging. Once a root cause is found, I will report the finding to Blizzard so that they may have an opportunity to fix it on their end. Meanwhile, I will patch the addon so as to avoid the troubled section of the Blizzard UI.


Rocco customizable addon to generate docco style documentation in rails projects
Rocco is a quick-and-dirty, literate-programming-style documentation generator for Ruby. See the Rocco generated docs for more information:
<http://rtomayko.github.com/rocco/>
Rocco is a port of, and borrows heavily from, Docco -- the original quick-and-dirty, hundred-line-long, literate-programming-style documentation generator in CoffeeScript:
<http://jashkenas.github.com/docco/>
Add this lines to your application's Gemfile:
gem 'rocco', :git => "git://github.com/rtomayko/rocco.git"
gem 'rocco_rails', '~> 0.8.1'
To generate application's documentation into 'docs' directory just run:
rake rails:rocco
rocco_rails uses a rocco.yml config file inside gem directory. It can be customized by copying it to your application's config directory or running rake rails:rocco_setup.
Default rocco.yml:
output: docs
template: lib/templates/layout.mustache
resources_path: lib/templates/resources
excluded_items: config/, spec/, db/
index: README.rdoc
Your custom rocco.yml doesn't have to have all options. It will merge whit gem's config. Sample rocco.yml would be good if you don't have a custom template.
You can test your rocco.yml running
rake rails:test_rocco_config
And then, again
rake rails:rocco
Rocco gem that is actualy in rubygems doesn't have the option to select a stylesheet to use. If your generated docs seems to have no style, try to use rocco's github code (see Instalation)
README files (without extension) are not rendered well. Try to rename to README.rdoc
You can see a demo of autogenerated gem documentation in
http://mawi.github.com/rocco_rails/
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)


Please verify your email. Check out your e-mail
This is your temporary password
You can always change it later if need be...
Please verify your email. Check out your e-mail
This is your temporary password
You can always change it later if need be...


Plant-Based Protein Sources
As a plant-based college athlete who loves to lift, I know how important protein consumption can be for muscle growth. Being vegan, the first thing people ask me is, "Where do you get your protein?" A year ago, I'd tell you from my avocado toast I would have everyday at lunch. Now, I can confidently say that I consume 130-145g of protein daily! I am more knowledgeable regarding plant-based proteins and want to help others achieve their daily protein intake!
*My personal everyday protein sources
Thanks for visiting! If interested, DM @jaceylifts on Instragram if you have any questions regarding plant-based protein! Please leave a like and have a great day:)
This work is licensed under a Creative Commons Attribution 4.0 International License.


|
Eastern and Western Conceptions
of Justice and Suffering as Conveyed through Robocop and
Ghost in the Shell
by Timothy Cairo
Suffering, as a physical and
an emotional state plays a central philosophical role within
the conceptions of justice that exist in both Buddhism and Christianity.
But even though suffering is intimately tied to the notion of
justice in both, the role that suffering plays in regards to
each respective religion's notion of justice is extremely distinct
from one another. Within the context of Christianity, suffering
is often interpreted as stemming from some outside source of
conflict. Hence, the Christian conception of the Devil, the incarnation
of evil that is the malefactor of all our sinful behavior. As
a result of conceptualizing the source of suffering as extending
from an outside source in this manner, Christianity attempts
to curb this improper behavior with the threat of eternal damnation
for those who are seduced by the Devil's temptations. Buddhism
on the other hand, conceives of suffering in a very different
fashion. For the Buddhist, any suffering that is encountered
in his or her life is a direct result of some improper action
in which that person has him or herself partaken in. Hence, the
Buddhist belief in Karma, the concept that every voluntary act
will give rise to some result or reaction. Positive action begets
positive results and negative action begets negative results
(1). Thus, unlike Christianity, suffering
is not brought about by some external force but is instead a
direct effect of something that you have yourself done in the
past. Essentially, where Christianity places the accountability
for suffering elsewhere, Buddhism endeavors to make the individual
completely accountable for his or her actions in the absence
of any external scapegoats. The effect of these differing models
of suffering amounts to fundamentally different approaches to
the goals and administration of justice within each of these
varying belief systems. More specifically, where Christianity
takes a more punitive approach to the mitigation of suffering,
Buddhism proceeds with a much more holistic and compassionate
agenda. These differing approaches to justice are made more apparent
by undertaking an examination of the analogous cultural artifacts
that exist in Eastern and Western culture. In this instance,
the relationship between suffering and justice in Buddhism and
Christian can be illuminated through a comparison of Ghost
in the Shell and Robocop, two films that inhabit a
similar cultural space within their respective cultures.
Robocop and Ghost in
the Shell are most obviously analogous to one another by
the fact that they are both situated in the same, very specific
genre; that being the sci-fi cop film. The protagonists of both
films are cybernetic law enforcement officers that find themselves
in a state of suffering as a result of trying to come to terms
with their respective status as partially fabricated human beings.
In the exploration of such existential questions each film introduces
themes of religion to help address these broad queries. Not surprisingly,
the American film, Robocop introduces Christian motifs
while the Japanese Ghost in the Shell opts for more abstract
philosophies invoking Buddhism. The differing religious undertones
of the films are illustrated via each films' treatment of the
sources of the protagonists' partially mechanical cybernetic
bodies. In Robocop much time is dedicated to establishing
the corporation known as OCP as the origin of Robocop's mechanical
body. In fact, almost half the film is allotted to determining
Robocop's origin and conveying the fact that the creation of
Robocop was the result of a malevolent insurgence gaining momentum
within the boardroom of OCP. While providing this exposition
to the audience the film presents the office tower of OCP, as
what could easily be interpreted, as a metaphor for heaven. The
OCP headquarters exists as a pristine white walled oasis, the
tranquility of which towers and rules over the crime infested
dregs of Old-Detroit. The President of OCP is a benevolent and
good hearted old man, a God-like figure who struggles to do everything
in his power to try and save Old-Detroit from its own criminality.
In attempt to accomplish this goal the "Old Man", as
he is referred to in the film, creates Robocop, thus imposing
the Old Man's role as the giver of life. Robocop's quest to rid
Old-Detroit of its malice eventually leads him to the boardroom
of OCP where the heart of this evil is found to exist in the
form of Vice President Dick Jones. The deviant Jones intends
to usurp power from the benevolent President of OCP, making a
direct allusion to Lucifer's attempted coup of heaven in the
Old Testament. Thus, Robocop directly grounds the source
of the film's conflict firmly within the ambit of Christian religious
scripture.
Unlike Robocop, Ghost in the Shell does not find
some external source to be the generator of the suffering in
the film, but instead internalizes this conflict within the existential
angst of the film's protagonist, Major Kusunagi. This emphasis
on internal causality over Robocop's external conflict
parallels Ghost in the Shell closely with Buddhist philosophy:
They (Christianity and Brahmanism) all try to find out the
first cause and establish a law in which God's power controls
everything.  (2)
In
Ghost in the Shell, Major Kusunagi suffers as a result
of her on-going obsession with the nature of her own being and
whether her, almost entirely, cybernetic body exempts her from
being human. By foregrounding Kusunagi's mental and emotional
suffering as the film's main conflict Ghost in the Shell
roots itself directly within the context of Buddhist philosophy
which maintains that,
This kind of disharmony between the mind and the self is much
harder to overcome than the disharmony of the body. When the
body becomes sick, we can cure it with all kinds of medicines.
But when the mind is sick, it is not so easily cured
Our
mind is our worst enemy. Because we fight with our mind all the
time , therefore we suffer.(3)
Buddhist philosophy directly
distinguishes itself from Christianity by identifying suffering
as an internal emotional state rather than an external conflict.
In this way Ghost in the Shell mirrors the distinction
made by Buddhism by internalizing the external conflict found
in Robocop, and most other Hollywood movies, and identifying
suffering as an individual and internal emotional state.
By establishing an external threat to be the source of suffering
in Robocop, the film necessitates this source to be physically
removed in order for justice to be done. In Robocop the
source of suffering is established to be the corrupt element
that exists within the OCP Corporation, which causes a great
amount of societal suffering as well as the direct suffering
imposed on the film's protagonist. In regards to Robocop, the
Corporation has done him an injustice by stripping him of his
memory and transforming him into to an inhuman instrument of
law enforcement. Within the logic of the film, in order for justice
to be done and for Robocop to regain some semblance of his humanity
he must first dispose of the source of his suffering by ousting
Dick Jones from his position as Vice President of OCP.  Likewise, in Robocop
justice can only be done once Dick Jones is punished for his
crimes and banished from the white halls of OCP.
In Robocop the protagonist's quest for justice is directly
linked to his role as the vindicator of the humanity stolen from
him by the malevolent factions of OCP. This is illustrated by
the way that the film intricately links Robocop's re-discovery
of his humanity with the furtherance of his quest to punitively
bring the guilty parties to justice. As such, the closer Robocop
gets to punishing Dick Jones the more he finds out about his
former self. For instance, the first memories that return to
Robocop from his life as Officer Murphy are of him being killed
by OCP's minions. Thus, from the start, Robocop's quest to alleviate
his suffering and re-gain his humanity are linked to a recollection
of the crimes committed against him and a desire to vindicate
these actions. The next major step for Robocop towards re-acquiring
his humanity occurs when he is caught in a hail of bullets fired
at him by his former colleagues on the police department. By
formally breaking ties with OCP Robocop marches closer to bringing
those responsible for his fate to justice, and in turn marks
the first time the audience is shown Officer Murphy's face since
he became Robocop. Murphy's face acts as a symbol, not only,
of Robocop's break with the establishment and the furtherance
of his quest for justice, but also as a symbol of the re-propriety
of his humanity as well; once again conveying the idea that punitive
justice is required to alleviate Robocop's suffering and obtain
justice. It is only after Robocop severs his ties to OCP that
he endeavors to inquire into who he was before he became Robocop.
However, in this scene Robocop still refers to officer Murphy
in the third person, not yet associating himself with Murphy
and illustrating that it is not until he punishes Dick Jones
that he will be able fully regain his humanity and cease his
suffering. In the final scene of the film Robocop finally succeeds
in punishing Jones by physically banishing him from the heavenly
OCP office tower to the abyss below. It is only at this point,
once Jones has been punished, that when asked his name Robocop
replies "Murphy", conveying to the audience that the
transformation is complete and through the punishment of Dick
Jones justice has been done, suffering has been alleviated, and
the protagonist has regained his humanity as a result. Thus,
inline with the Christian notion of justice, suffering cannot
be alleviated in the film until the individual responsible has
been directly punished. It is not until Dick Jones, the Lucifer
figure in this Old Testament narrative, is banished to hell that
justice is in fact done.
The conclusion of Robocop is a very typical heroic ending,
recognizable to anyone familiar with Hollywood conventions. Ghost
in the Shell, on the other hand, ends in a manner that is
both unconventional and somewhat un-heroic from a conventional
Hollywood perspective. Aristotle distinguishes our Western notions
of courage and heroism to be antithetical to the emotion of compassion
(4), a distinction which appears to
be accurate when assessing why the conclusion of Ghost in
the Shell might initially seem un-heroic for a Western viewer.
Unlike Robocop where justice is attained by Robocop physically
punishing the ones responsible, the ending of Ghost in the
Shell is absent of any such confrontations. By internalizing
the conflict within the protagonist, the film makes it impossible
for Kusunagi to alleviate this suffering by engaging in any sort
of heroic confrontation. Rather than having a showdown with the
Puppet Master (the main source of physical antagonism in the
film) Kusunagi instead shows compassion for his situation, relating
it to her own, ultimately causing her to join forces with her
former enemy. From Aristotle's Western perspective this compassionate
conclusion might be interpreted as cowardly, however this is
not the case when it is put into the context of Buddhist philosophy.
Buddhist philosophy maintains that "The root of suffering
is the "self"-self- attachment, self love and self
view" (5). This is true also of
Kusunagi in Ghost in the Shell. Her internal suffering
is completely the product of her obsession with herself, and
continual questioning of who she is and whether or not she is
human. By rooting the Major's suffering internally around her
notions of her self the film directly aligns itself with Buddhist
philosophy and makes it impossible for justice to be achieved
via some physical confrontation as in Robocop. Instead
of punishing someone else as in Robocop, Kusunagi sacrifices
her own identity and merges with her former adversary in order
to alleviate her suffering and achieve justice. This notion of
sacrifice is also reciprocated by Buddhist philosophy:
A real Buddhist does not make unreasonable demands from the
Buddhas or Bodhisattvas. Instead, he should follow the way of
the Buddhist and Bodhisattvas, and be willing to sacrifice himself
for all beings.(6)
Indeed, this is reflected by
the ending of Ghost in the Shell. Rather than punishing
the Puppet-Master for what he has done, Kusunagi listens to his
woes, feels compassion for his plight, and understanding for
his cause. As a result, Kusunagi decides to sacrifice her own
identity in order to merge with the Puppet-Master to form a new
entity. Unlike the punitive approach to justice evidenced in
Christianity through Robocop, Ghost in the Shell employs
compassion to arrive at a conclusion that is centered around
the notion of selflessness. In linking compassion with selflessness
Ghost in the Shell again parallels Buddhist philosophy
in that "selflessness in Buddhism has the meaning of
great compassion"(7) . Thus, like
Robocop, at the end of Ghost in the Shell the protagonist's
suffering is alleviated and justice is done, however, unlike
Robocop, the film arrives at its ultimate goal through
a doctrine of compassion and self-sacrifice rather than through
the direct punitive action taken by Murphy.
Certainly, these films merely act as one example of how suffering
plays a role in different religions' conceptions of justice.
With that said, these films appear to be quite accurate manifestations
of the way that the predominate religions of the films' respective
nations of origin tie together notions of suffering and justice.
Both films employ almost direct quotations of their respective
religious texts and in doing so steep their conceptions of justice
and suffering directly in the religious milieu of their distinctive
cultures. As such we can directly relate the notions of justice
and suffering that arise within the films to be somehow representative
of the connections that exist between suffering and justice extant
in each religion. In the case of Buddhism and Ghost in the
Shell the connection is rooted in compassion and selflessness,
where Christianity and Robocop, instead, tie suffering
and justice together with notions of vindication and direct punitive
action.
(1)
Venerable Master Hsing Yun, Two Talks on Buddhism, (Hsing Yun:
Fo Kuang Publishers, 1987) at pg. 4
(2) Yun, supra at pg. 45
(3) Yun, supra p. 38
(4) Aristotle trans. W. Robert Rhys, Rhetoric Book II, online:
pg. 3
(5) Yun, supra at pg. 43
(6) Yun, supra at pg. 42
(7) Yun, supra at pg. 43
Posted November 30, 2004
|


Bias Variance Explorer
Training Data
Test Data
ROC Curve
Change Training Data
Save ROC Curve
K = 25
Run 100 Trials
Clear Stored ROCs


--- layout: post title: 'Amabuddy: Scan 2.0?' date: 2004-12-09 00:00:00 category: mobile ---
Amabuddy are doing something I seem to remember Scan Mobile doing back in 1999 - comparison shopping via mobiles.


Jerold Lewis' Web Design Portfolio
About Jerold Lewis Web Design
My name is Jerold Lewis, and I'm a Media and Information student at Michigan State University, specializing in I.T.
I've been passionate about technology since I was young, and my web design is the product of that passion.


| unitizer_demo {unitizer} | R Documentation |
unitizer
provides an interactive demo you can run with
demo("unitizer")
.
`[Press ENTER to Continue]`() show_file(f, width = getOption("width", 80L)) copy_fastlm_to_tmpdir() update_fastlm(dir, version) unitizer_check_demo_state() unitizer_cleanup_demo()
f |
path to a file |
width |
display width in characters |
dir |
path to the temporary package |
version |
one of "0.1.0", "0.1.1", "0.1.2" |
character(1L)
The demo centers around simulated development of the utzflm
package. unitizer
includes in its sources three copies of the source
code for the utzflm
package, each at a different stage of
development. This allows us to create reference unitizer
tests under
one version, move to a new version and check for regressions, and finally
fix the regressions with the last version. The version switching is
intended to represent the package development process.
The demo manages the utzflm
code changes, but between each
update allows the user to interact with unitizer
. The demo operates
under the assumption that the user will accept the first set of tests and
reject the failing tests after the first update. If the user does anything
different then the demo commentary may not apply anymore.
utzflm
utzflm
is a "dummy" package that implements a faster
computation of slope, intercept, and R^2 for single variable linear
regressions than is available via summary(lm()...)
.
copy_fastlm_to_tmpdir
copies the initial version of the
utzflm
sources to a temporary directory, show_file
displays the contents of a source code file, update_fastlm
changes the
source code of utzflm
, and unitizer_check_demo_state
and unitizer_cleanup_demo
perform janitorial functions. None of
these functions are intended for use outside of the unitizer demo.


Frequently Asked Questions
Q. How this blog website works?
This is a public blog website intended to write blogs and provide information from around the globe. Very soon, we are rolling out the feature where people will be able to login and post their own blog.
Q. What is Rendered?
RENDER refers to provide or give the information and that is what we do on Rendered. The mission is to provide you guys the most updated version of blogging and providing the latest information to all of our audience.
Q. Who made this site?
Davnish Singh is a founder and CEO of this website.
Q. When was the site started?
The site went live on March 13, 2018 at 6:30 PM.
Q. Is this a class project?
No, just to provide latest information to our audience.
Q. I have a question that is not covered in the FAQ. How can i ask it?
Just
email us.


This is an ionic-datepicker
bower component, which can be used in any Ionic framework’s application.
1) node.js, bower and gulp.
1) In your project repository install the ionic-datepicker using bower
bower install ionic-datepicker –save
This will install the latest version released.
2) Then you can see the following directory structure see in your project folder
Give the path of style.css, templates.js and ionic-datepicker.js
in your index.html
file.
<link href="lib/ionic-datepicker/dist/style.css" rel="stylesheet">
<!-- path to ionic/angularjs js -->
<script src="lib/ionic-datepicker/dist/ionic-datepicker.js"></script>
3) In your application module inject the dependency ionic-datepicker
, in order to work with the ionic time picker
javascript
angular.module('mainModuleName', ['ionic', 'ionic-datepicker']){
//
}
4) Use the below format in your template’s corresponding controller
$scope.currentDate = new Date();
$scope.title = "Custom Title";
$scope.datePickerCallback = function (val) {
if(typeof(val)==='undefined'){
console.log('Date not selected');
}else{
console.log('Selected date is : ', val);
}
};
a) currentDate
is the date object which we are passing to the ionic-datepicker
.
b) datePickerCallback
is the callback function which we have to pass to the ionic-datepicker
. This function takes an argument which will return undefined
if the user didnot selected any date. And returns a date
object, if the user selects any date.
c) title
is the string variable, which can be assigned to the datepicker modal’s title.
5) Then use the below format in your template / html file
<ionic-datepicker idate="currentDate" disablepreviousdates="true" disablefuturedates="false" callback="datePickerCallback" disableddates="disabledDates" title="title" mondayfirst="true">
<button class="button button-block button-positive"> {{ currentDate | date:'dd - MMMM - yyyy' }} </button>
</ionic-datepicker>
a) ionic-datepicker
is the directive, to which we can pass required vales.
b) idate
takes date object. If we don’t pass any value, the default value will be new Date()
.
c) disablepreviousdates
takes true or false. true
disables the past dates, and false
doesn’t.
c) disablefuturedates
takes true or false. true
disables the future dates, and false
doesn’t.
d) callback
takes the callback function name which will be called once the date picker has been closed.
e) title
takes a variable of string type. This will be displayed as a title to the datepicker modal. If this attribute is not present, then it will show ‘Select Date’ by default.
f) disableddates
is an array of dates to disable the particular dates.
Example : In your controller you can define disabledDates
as follows
$scope.disabledDates = [
new Date(2015,7,10), //months are 0-based, this is August, 10th!
new Date('Wednesday, August 12, 2015'), //Works with any valid Date formats like long format
new Date("08-14-2015"), //Short format
new Date(1439676000000) //UNIX format
];
g) mondayfirst
takes true or false. If the given values is true
, shows Monday as the first day of the week, and if the given value is false
, then Sunday will be first day of the week.
Once you are successfully done with the above steps, you should be able to see the below screen shots. I have used two buttons here.
The first screen shot shows only the buttons before clicking on them. Once you click on the button you should see the second screen shot.
The whole date picker functionality has been implemented, and can be installed with bower install ionic-datepicker --save
Bug Fix. This is the latest version of ionic-datepicker
component.
Bug Fix. If we don’t pass the date to the time picker it will pick the todays date by default.
Disabling previous dates functionality added.
a) User can select the years and months using the dropdown.
b) A callback function is added.
Features
a) Disabling future dates functionality added. You may use it for selecting DOB.
b) Customised title text for datepicker modal’s added.
BugFixes
a) Feature for disabling particular dates has been added.
b) CSS classes added for customisation.
a) Date selection color issue fixed.
b) Added feature to show Monday as the first day of the week.
gmail<EMAIL_ADDRESS>github : https://github.com/rajeshwarpatlolla
twitter : https://twitter.com/rajeshwar_9032
facebook : https://www.facebook.com/rajeshwarpatlolla
paypal : rajeshwar.patlolla@gmail.com