The uxFocusIndicator
directive allows you to easily determine when an element should receive focus indicator styling.
By default browsers will display a focus ring on any focusable element when it is clicked, navigated to via the keyboard or programmatically focused.
A common use case is to only show the focus ring when the user has navigated to an element by using the keyboard and preventing the focus ring
from appearing when the user has clicked on it.
The following options can be used to customize the behavior of the directive:
true
, this element will receive a focus indicator when any child element has focus.
true
, this element will receive a focus indicator when the element is clicked on.
true
, this element will receive a focus indicator when the element is focused using the keyboard.
true
, this element will receive a focus indicator when the element is touched.
true
, this element will receive a focus indicator when the element is programmatically focused.
The example above can be created using the following:
Alternatively, we provide a FocusIndicatorService
service for you to manually apply the focus indicator settings to an element.
This can be useful when creating a custom component and you which to target the host element.
The following functions are available in the service:
Below is an example of using the service:
There are occasions where an element is focused when it is first shown, for example when a modal is launched the primary
button might receive focus. Ideally the button would only show a focus indicator when the modal was opened using
the keyboard and not when trigged using a click. To achieve this behavior you can add the uxFocusIndicatorOrigin
directive to the element that indirectly causes the focus, e.g. the button that launches the modal.
The default options for the directive and service can optionally be configured for your entire application by
importing the AccessibilityModule
in your AppModule
and calling the static forRoot
function, passing it the desired AccessibilityOptions
.
The global configuration can be overriden on a element level by adding a uxFocusIndicatorOptions
to an element. This will provide all the inputs available to the uxFocusIndicator
.
These options will be applied to any child elements using the focus indicator.


|
SideCar
|
Go to the source code of this file.
Data Structures | |
| class | SideCar::IO::Decoder |
| Demarshalling class that converts raw bytes from readers into objects. More... | |
Namespaces | |
| Logger | |
| Namespace for the Log logging device and support classes. | |
| SideCar | |
| Namespace for all entities specific to the 331 SideCar project. | |
| SideCar::IO | |
| Namespace for entities that handle SideCar data I/O. | |


Meals
Attendees are offered complimentary breakfast, lunch. Check out the food menu below.
Breakfast
Mee beehon
Karipop
Kuih
Drinks
Teh / coffee
Lunch
Non-Vegetarian
Nasi Tomato
Ayam Makar Merah
Egg
Timun Nanas
Fruit
Drinks
Air sirap
* Vegetarian bento will be provided
Plan ahead, expect traffic delays, be patient, and consider carpooling.
Get transportation directions:
Limited parking lots are available at Wawasan Open University (RM5 per entry)


This documentation relates to Opera's now deprecated .oex Extension API framework for Opera versions <= 12.15 and also provided by our OEX2NEX shim library.
For the latest Opera Extensions API documentation for Opera versions > 12.15 please consult the latest Opera Extensions API documentation online.
The readonly locked
attribute exposes the locked state of the browser tab. On getting, the locked attribute returns true
if the tab is locked, otherwise it returns false
.
When specified as an item in a BrowserTabProperties
object, the locked
property indicates the desired locked state of a browser tab. The value true
indicates that the tab should be locked, whereas the value false
indicates that the tab should be unlocked.
When creating a browser tab, if this property is not specified, the default behaviour is the same as specifying false
.
When updating a browser tab, if this property is not specified, the default behaviour is to leave the locked state unchanged.
readonly boolean locked
boolean locked
The following example creates a button on the browser toolbar. When the button is clicked, the current tab is detected and is then locked (pinned).
//
// The background process (e.g. index.html)
//
// Specify the properties of the button before creating it.
var UIItemProperties = {
disabled: false,
title: "Example extension",
icon: "images/icon_18.png",
onclick: function() {
// Detect the currently selected tab
var thisTab = opera.extension.tabs.getSelected();
// Make the current tab locked (pinned)
thisTab.update({locked: true});
}
};
// Create the button and add it to the toolbar.
var button = opera.contexts.toolbar.createItem( UIItemProperties );
opera.contexts.toolbar.addItem(button);


Dialog Hill Options
You can reach this dialog via the button
Hill options
in the dialog
Key Entry: Hill
.


Tutorial example¶
For this example, we’ll calculate the distance to the nearest road using a global road raster derived from Open Street Map. Our goal will be to compute this at a 1km resolution in globally in the Molleweide equal-area projection, but we’ll approach the analysis in steps.
There are a couple extra dependencies: - We’ll use mahotas
to compute a fast distance transform. - We’ll also use shapely
and geopandas
to preview the geometries of the chunks.
[2]:
# Install the mahotas library if necessary
#!pip install --quiet mahotas shapely geopandas
import mahotas
import rasterio
import numpy as np
Setup¶
First we’ll define our output bounds, scale, and projection using a cog_worker.Manager
. You’ll use the manager to preview or execute the analysis.
[3]:
manager = Manager(
proj = "+proj=moll", # molleweide
scale = 1000, # meters
bounds = (-180, -90, 180, 90)
)
Writing a Worker function¶
Next we’ll try reading the COG. We write a function that will recieve a cog_worker.Worker
as its first parameter. The worker keeps track of the scope of the analysis and provides the cog_worker.Worker.read()
function that will automatically reproject and rescale the source data to the output that scope you’re tarketing.
We can preview this analysis at a reduced resolution by passing the function to the cog_worker.Manager.preview()
. When executing an analysis the Manger will create a cog_worker.Worker
, and pass it to your fuction.
[4]:
# Let's check what the roads raster looks like
def get_roads(worker):
# use the worker to read the COG, reprojecting and resampling as necessary
roads = worker.read('roads_cog.tif')
return roads
# Preview the analysis at a reduced scale
arr, bbox = manager.preview(get_roads, max_size=1024)
show(arr)
[4]:
<AxesSubplot:>
Let’s add some analysis. worker.read
returns a Numpy masked array so we can use many different libraries to operate on it.
[5]:
# Run a fast squared euclidian distance transform on the roads raster
def get_roads_dist(worker):
roads = worker.read('roads_cog.tif')
# compute squared distance from zeroed pixels
dist_2 = mahotas.distance(roads != 1)
# take the square-root to get euclidian distance
dist = np.sqrt(dist_2)
return dist
arr, bbox = manager.preview(get_roads_dist)
show(arr)
[5]:
<AxesSubplot:>
Next since we want to compute actual distance, we should multiple the result of the distance function, which measures pixels, by the current scale of the analysis.
[6]:
# Change from computing distance in pixels to meters,
# as the scale of pixels depends on if we're just previwing the image or running the full analysis.
def get_roads_dist_meters(worker):
roads = worker.read('roads_cog.tif')
dist_2 = mahotas.distance(roads != 1)
dist = np.sqrt(dist_2)
# convert from pixels to meters
dist_meters = dist * worker.scale
# truncate the results so that values above 10km get set to 10km
dist_clip = np.clip(dist_meters, 0, 10000)
return dist_clip
arr, bbox = manager.preview(get_roads_dist_meters)
show(arr)
[6]:
<AxesSubplot:>
Previewing analysis¶
You can try zooming in or modifying the parameters in other ways. The preview
function will change the scale to fit within 1024x1024px.
[7]:
# e.g. Italy
arr, bbox = manager.preview(get_roads_dist_meters, bounds=(10, 35, 20, 45))
show(arr)
# e.g. Lagos
arr, bbox = manager.preview(get_roads_dist_meters, bounds=(3, 6, 4, 7))
show(arr)
[7]:
<AxesSubplot:>
Executing analysis in chunks¶
If we’re satisfied with our analysis, the next step is to set up the full run.
We’ll use the cog_worker.Manager
to chunk our analysis into chunks of 4096x4096 px.
When dividing the analysis into chunks, we need to account for roads that might be outside the tile. We can do this by setting the buffer
relative to the scale of our analysis, and the maximum distance that we care about. The worker will read buffer
extra pixels outside of its bounds, make them available for computation, and then discard them before saving the results.
[8]:
max_dist = 10000 # meters
scale = 1000 # meters
buffer = int(max_dist / scale) # pixels
manager = Manager(
bounds = (-180, -90, 180, 90),
proj = "+proj=moll",
scale = scale,
buffer = buffer
)
[11]:
# we can preview how the manager will divide the world
import geopandas
from shapely import geometry
bboxes = [
geometry.box(*bbox)
for bbox in manager.chunks(chunksize=4096)
]
# Chunks in projected coordinates
geopandas.GeoDataFrame(geometry=bboxes).plot(alpha=0.5, edgecolor='000')
bboxes_lnglat = [
geometry.box(*manager.proj.transform_bounds(*bbox, direction='inverse'))
for bbox in manager.chunks(chunksize=4096)
]
# Chunks in lat-lng coordinates
geopandas.GeoDataFrame(geometry=bboxes_lnglat).plot(alpha=0.5, edgecolor='000')
[11]:
<AxesSubplot:>
Finally, execute the full analysis in 4096x4096 chunks saving the results to output.tif
[10]:
# this might take a while...
#manager.chunk_save('output.tif', get_roads_dist_meters, chunksize=4096)
This will compute each chunk one after the other. Numpy natively parallelizes array operations, if you need to scale up to run your analysis in a larger cluster, see: cog_worker.distributed.


Sorry, but we could not find any matching visualization for your dataset.
The current dataset contains a lot of data.
Consider aggregation or filtering to reduce the volume.
Visualizing datasets too large can cause problems and crash your browser.
Single-valued columns are omitted by the recommender.


Basic conversion functions between UTF-8, UTF-16 and UTF-32.
More...
|
| std::string | utf8::narrow (const wchar_t *s, size_t nch) |
| | Conversion from wide character to UTF-8. More...
|
| |
| std::string | utf8::narrow (const std::wstring &s) |
| | Conversion from wide character to UTF-8. More...
|
| |
| std::string | utf8::narrow (const char32_t *s, size_t nch) |
| | Conversion from UTF32 to UTF8. More...
|
| |
| std::string | utf8::narrow (const std::u32string &s) |
| | Conversion from UTF32 to UTF8. More...
|
| |
| std::wstring | utf8::widen (const char *s, size_t nch) |
| | Conversion from UTF-8 to wide character. More...
|
| |
| std::wstring | utf8::widen (const std::string &s) |
| | Conversion from UTF-8 to wide character. More...
|
| |
| std::u32string | utf8::runes (const char *s, size_t nch) |
| | Conversion from UTF-8 to UTF-32. More...
|
| |
| std::u32string | utf8::runes (const std::string &s) |
| | Conversion from UTF-8 to UTF-32. More...
|
| |
| char32_t | utf8::rune (const char *p) |
| | Return current Unicode code point. More...
|
| |
| char32_t | utf8::rune (const std::string::const_iterator &p) |
| | Return current Unicode code point. More...
|
| |
◆ narrow() [1/4]
| std::string utf8::narrow |
( |
const char32_t * |
s, |
|
|
size_t |
nch |
|
) |
| |
- Parameters
-
| s | UTF-32 encoded string |
| nch | number of character to convert or 0 if string is null-terminated |
- Returns
- UTF-8 encoded string
Each character in the input string should be a valid UTF-32 code point ( <0x10FFFF)
◆ narrow() [2/4]
| std::string utf8::narrow |
( |
const std::u32string & |
s | ) |
|
- Parameters
-
- Returns
- UTF-8 encoded string
Each character in the input string should be a valid UTF-32 code point ( <0x10FFFF)
◆ narrow() [3/4]
| std::string utf8::narrow |
( |
const std::wstring & |
s | ) |
|
- Parameters
-
- Returns
- UTF-8 character string
◆ narrow() [4/4]
| std::string utf8::narrow |
( |
const wchar_t * |
s, |
|
|
size_t |
nch |
|
) |
| |
- Parameters
-
| s | input string |
| nch | number of character to convert or 0 if string is null-terminated |
- Returns
- UTF-8 character string
◆ rune() [1/2]
| char32_t utf8::rune |
( |
const char * |
p | ) |
|
- Parameters
-
- Returns
- UTF-32 encoded character
◆ rune() [2/2]
| char32_t utf8::rune |
( |
const std::string::const_iterator & |
p | ) |
|
|
inline |
- Parameters
-
- Returns
- UTF-32 encoded character
◆ runes() [1/2]
| std::u32string utf8::runes |
( |
const char * |
s, |
|
|
size_t |
nch |
|
) |
| |
- Parameters
-
| s | UTF-8 encoded string |
| nch | number of characters to convert or 0 if string is null-terminated |
- Returns
- UTF-32 encoded string
◆ runes() [2/2]
| std::u32string utf8::runes |
( |
const std::string & |
s | ) |
|
- Parameters
-
- Returns
- UTF-32 encoded string
◆ widen() [1/2]
| std::wstring utf8::widen |
( |
const char * |
s, |
|
|
size_t |
nch |
|
) |
| |
- Parameters
-
| s | input string |
| nch | number of characters to convert or 0 if string is null-terminated |
- Returns
- wide character string
◆ widen() [2/2]
| std::wstring utf8::widen |
( |
const std::string & |
s | ) |
|
- Parameters
-
- Returns
- wide character string


CMS by Libris
Sign up
(current)
Login
Content Management System
Login to CMS
Provided you have signed up, please login for access to CMS
Email address or email address
Please enter email address used during Sign up
Password
Submit


Many communities are meant to deal with a specific topic, which nearly always would represent the only topic of conversation. We are not like this. By joining our community you will be able to interact with other people according to what you have in common. You will decide the topics and how to engage with other members.
Our final goal is to promote a positive and supportive environment in which everyone can feel at home.


| Programming with Ophis | ||
|---|---|---|
| <<< Previous | Example Programs | Next >>> |
.word $0801 .org $0801 .scope .word _next, 10 ; Next line and current line number .byte $9e," 2064",0 ; SYS 2064 _next: .word 0 ; End of program .scend .advance 2064 .require "kernal.oph" |
| <<< Previous | Home | Next >>> |
| tutor2.oph | Up | kernal.oph |


Challenge 6
Construct a function
intersection
that compares input arrays and returns a new array with elements found in all of the inputs. BONUS: Use reduce!


Breadcrumb
Video
Audio
HTML
Embed
Banner
Image Map
Grid
Linear
Tab
Video
Selector
Gallery
Content Strip Container
Content Strip Container
Card Strip
Common Widget
Common Widget
(
as Info WidgetPre WidgetPost WidgetError WidgetNo Data Widget
)
You can provide inputs in any one of the following ways.
Using HTML editor. (Within the editor, you may also copy paste the source code or modify it)
Use Mustache web template system to add your code. See documentation in
https://mustache.github.io/
Enter both HTML and JSON data.
Responsive container allows you to add different widgets for different devices.
Relevant widget will be chosen based on user’s screen resolution.
How to use this widget? :
Drag and Drop a widget and enter resolution information in the “Additional Information” section of the widget.
To add a new widget for different resolution, go to Edit section and Add a Child.
Container Style Data
CSS Class for Widgetinfo
Use pre-defined classes of Tailwind CSS framework. Click here to see its documentation
CSS Style for Widgetinfo
Enter proper css properties in key value pair inside the curly braces. e.g. {{'{'}} "background-color" :
"blue" {{'}'}}
Data
Gutter
Loader
Additional Information
Position Percentage
MobileSelect
{{i}}
TabletSelect
{{i}}
DesktopSelect
{{i}}
Big ScreensSelect
{{i}}
CSS Class for Widgetinfo
Use pre-defined classes of Tailwind CSS framework. Click here to see its documentation.
CSS Style for Widgetinfo
Enter proper css properties in key value pair inside the curly braces. e.g. {{'{'}} "background-color" :
"blue" {{'}'}}
Minimum Width (px)
The above field is required
Maximum Width (px)
The above field is required
Title
Description
Free Flow Editor
Not advisable to edit without prior knowledge of JSON
Change this if you know the required JSON structure. Incorrect syntax or data will not load properly.


Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
J
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
C
calculateMinPixelOnDrawChar(Font)
- Static method in class tools.
MyImage
HelperMethod calculateMinPixelOnDrawChar in Image
calendar2julianDay(GregorianCalendar)
- Method in class tools.
DateCalculator
calculates JulianDay Number from Input
calendar2string(GregorianCalendar)
- Method in class tools.
DateCalculator
cartesianAxis(int, int, int, int, int, int, String, String, Font, Color, Color, float)
- Static method in class tools.
MyImage
generate an image of an axis of cartesian coordinates
CelestialObject
- Class in
model
Proxy-Class for one Row from DataBase Table CELESTIALOBJECTS
CelestialObject()
- Constructor for class model.
CelestialObject
standart Constructor
CelestialObject(HashMap<String, Object>, boolean)
- Constructor for class model.
CelestialObject
CelestialObject(HashMap<String, Object>)
- Constructor for class model.
CelestialObject
CelestialObject(File)
- Constructor for class model.
CelestialObject
CelestialObjectTest
- Class in
model
CelestialObjectTest()
- Constructor for class model.
CelestialObjectTest
changeObsDateInFitsFile(String, Date)
- Static method in class tools.
ToolBox
change Obs-Date in FitsFile
clearTables()
- Method in class model.
DataBase
deletes the MaserJ DB-Tables-Content
closeDB()
- Method in class model.
DataBase
Close DB-Connection
ColorCodeImage
- Class in
view
ColorCodeImage(int, int)
- Constructor for class view.
ColorCodeImage
ColorCodeImageTest
- Class in
view
ColorCodeImageTest()
- Constructor for class view.
ColorCodeImageTest
colorCodeImg()
- Static method in class tools.
MyImage
colValueFromRow(String, HashMap<String, Object>)
- Method in class model.
DBTable
commitChanges(ArrayList<Object[]>)
- Method in class view.swing.
MaserComponentsTable
commitChanges()
- Method in class view.swing.
PositionEditor
save changed Values
common
- package common
compareHashMaps(HashMap<String, Object>, HashMap<String, Object>, boolean)
- Static method in class tools.
ToolBox
convenience method compare two HashMaps
by Keys & Values (Objects must not be nested)
compareImagesRawData(BufferedImage, BufferedImage)
- Static method in class tools.
MyImage
compareTimestamps(Timestamp, Timestamp)
- Static method in class tools.
DateCalculator
componentsFromFitsFile(File, Observation)
- Static method in class model.
Observation
componentsValuesByKey(String)
- Method in class model.
Observation
componentsValuesRange(String)
- Method in class model.
Observation
compose()
- Method in class view.
ColorCodeImage
compose this Image from the parts
compose()
- Method in class view.
GridImage
compose this Image from the parts
compose()
- Method in class view.
MaserComponentsImage
compose this Image from the parts
compose()
- Method in class view.
ObservationImage
compose this Image from the parts
controller
- package controller
controllerUpdate(ControllerEvent)
- Method in class view.
JpegImagesToMovie
Controller Listener.
countColorPixel(BufferedImage, Color)
- Static method in class tools.
MyImage
HelperMethod countColorPixels in Image
createComponent(MaserComponent)
- Method in class view.
MaserComponentsImage
createDirStruct(String, int, int, String[], boolean)
- Static method in class tools.
ToolBox
convenience method Create DirStruct with mutiple exampleFiles in subdirs.
createFitsFiles(File, File, Date[])
- Static method in class model.
ObservationTest
convenience method: create a bunch of FitsFiles as Input for Observation with this obsDates
createGridImage(int, int, int, int, String, Color)
- Method in class view.
GridImage
create a GridImage
createMediaLocator(String)
- Static method in class view.
JpegImagesToMovie
Create a media locator from the given string.
createObservationDirStruct(File)
- Static method in class tools.
ToolBox
convenience method Create random DirStruct with mutiple exampleFiles in subdirs.
createObservationDirStruct(File, int, String)
- Static method in class tools.
ToolBox
convenience method Create random DirStruct with mutiple exampleFiles in subdirs.
createRotatedStrImage(String, Font, Color, Color)
- Static method in class tools.
MyImage
Create an BufferedImage of the string rotated 90 degrees to the left.
createScale()
- Method in class view.
ColorCodeImage
create a scale-image for the ColorCode
CrossPlatform
- Class in
tools
CrossPlatform helper Class and methods
CrossPlatform()
- Constructor for class tools.
CrossPlatform
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
J
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y


My Application's Title (it's long so it will wrap)
Some Buttons For Folders and Files
Folders:
Folder One
Folder Two
Folder Three
Folder Four
Folder Five
Folder Six
Folder Seven
Here are some file details
A footer


Draw
Level
Amount
Draw
History
Card
Card
Card
Card
Card
Card
Redrow ($20)
Draw ($100)
1
Total Played
2
Total Earned
3
Current Amount
4
Current Level
5
Won/(-Loss)


The week in wildlife – in pictures
by Eric HilaireThe pick of the best flora and fauna photos from around the world, including foraging sparrows and a swimming beaver
A crested ibis flies over the Muma River in Hanzhong, north-west China’s Shaanxi province. Crested ibises, with their red crests and long black beaks, were thought to be extinct in the country until seven wild birds were observed in Shaanxi in 1981, a discovery that prompted captive breeding and enhanced protection of the species
Photograph: Tao Ming/Barcroft Media
A young nutria rat at the Mönchbruch nature reserve in Kelsterbach, western Germany
Photograph: Dorothee Barth/DP/AFP/Getty
Sparrows forage in a park in Bole, Xinjiang, China
Photograph: CostFoto/Barcroft Media
Fly agarics grow next to autumn-coloured plants in Ruppertstal, Germany
Photograph: Soeren Stache/DPA-Zentralbild/ZB
The National Trust is releasing beavers into large enclosures at two sites in the south of England next spring to bolster the region’s wildlife and help combat flooding
Photograph: David Chapman/PA
Common seal pups Buckbeak and Pixie have been released back into the wild near Sutton Bridge in Lincolnshire, UK, after being nursed to full health at an RSPCA sanctuary in Norfolk. Pixie was found in Happisburgh village, Norfolk, with puncture wounds around her mouth and muzzle after being attacked by a dog. Buckbeak was orphaned at Burnham-on-Crouch in Essex
Photograph: Joe Giddens/PA
Two grasshoppers mating at night in Spain. Scientists say light pollution is a significant but often overlooked driver of the rapid decline of insect populations
Photograph: Pedro Luna/Alamy
A lineated barbet (right) clashes with a jungle myna in the Morigaon district of Assam, India
Photograph: EPA
An injured koala receives treatment after being rescued from a bushfire at the Port Macquarie koala hospital, Australia
Photograph: Tao Shelan/VCG/Getty Images
A domestic reindeer, a species increasingly threatened by warming temperatures in Mongolia
Photograph: Julia Clark/Flinders University/PA
Egrets search for food in the polluted Brahmaputra River in Guwahati, India
Photograph: Anuwar Ali Hazarika/Barcroft Media
A recently emerged adult female western glacier stonefly in Glacier National Park, Montana. Warming temperatures are melting the glaciers and year-round snowfields the species relies on
Photograph: Joe Giersch/AP
Kangaroo survivors of a bushfire graze at Wollemi National Park in New South Wales, Australia. Rising temperatures and hot winds are again expected to fan wildfires in the state next week
Photograph: Jeremy Piper/EPA
A cape vulture eats a chick at the International Centre for Birds of Prey, a conservation centre in Newent, Gloucestershire
Photograph: Ben Birchall/PA
Kalmyk camels in a pasture in Yustinsky district, Russia. The Polynny farm is home to 400 camels, the largest population of the species in Kalmykia
Photograph: Valery Matytsin/TASS
A mass coral spawning has begun on Australia’s Great Barrier Reef, with early indications the annual event could be among the biggest in recent years
Photograph: Pablo Cogollos/Sunlover Moore Reef Marine Base/AFP/Getty Images
Gelada monkeys watch as the sun sets over the Simien Mountains, Ethiopia. A third of plant species in Africa are threatened with extinction, a study says. Ethiopia, west Africa, central Tanzania, and southern Democratic Republic of the Congo have a worryingly high proportion (40%) of potentially threatened species
Photograph: Giedrius Stakauskas/Golden Turtle/Bav Media
A wedge-tailed eagle walks at Alice Springs Desert Park, Australia. Conservationists have called for a Victorian landowner to face charges under the Wildlife Act after he admitted to killing 420 wedge-tailed eagles in 18 months
Photograph: Samantha Ohlsen/Alamy
Workers dump dying birds in a truck at Sambhar Salt Lake in India’s northern state of Rajasthan. Thousands of migratory birds were found dead recently from suspected botulism
Photograph: Himanshu Sharma/AFP via Getty Images
Hunter, a young Belgian malinois, keeps an eye on Jazz, a nine-day-old giraffe, at the Rhino Orphanage in the Limpopo province of South Africa. Jazz, who was brought in after being abandoned at birth by her mother, is being looked after at the orphanage and has been befriended by Hunter and his sibling Duke
Photograph: Jérôme Delay/AP


circuit_breaker
Simple Implementation of the circuit breaker pattern in Crystal.
Given a certain error threshold, timeframe and timeout window, a breaker can be used to monitor criticial command executions. Circuit breakers are usually used to prevent unnecessary requests if a server ressource et al becomes unavailable. This protects the server from additional load and allows it to recover and relieves the client from requests that are doomed to fail.
Wrap API calls inside a breaker, if the error rate in a given time frame surpasses a certain threshold, all subsequent calls will fail for a given duration.
Installation
Add to your shard.yml
dependencies:
circuit_breaker:
github: tpei/circuit_breaker
branch: master
and then install the library into your project with
$ crystal deps
Usage
Create a new breaker:
require "circuit_breaker"
breaker = CircuitBreaker.new(
threshold: 5, # % of errors before you want to trip the circuit
timewindow: 60, # in s: anything older will be ignored in error_rate
reenable_after: 300 # after x seconds, the breaker will allow executions again
)
Then wrap whatever you like:
breaker.run do
my_rest_call()
end
The Breaker will open and throw an CircuitOpenException for all subsequent calls, once the threshold is reached. You can of course catch these exceptions and do whatever you want :D
begin
breaker.run do
my_rest_call()
end
rescue exc : CircuitOpenException
log "happens to the best of us..."
42
end
After the given reenable time, the circuit will transition to "half open". This will completely reset the circuit if the next execution succeeds, but reopen the circuit and reset the timer if the next execution fails.
If you are feeling really funky, you can also hand in exception classes to monitor. You might want to catch RandomRestError
, but not ArgumentError
, so do this:
breaker = CircuitBreaker.new(
threshold: 5,
timewindow: 60,
reenable_after: 300,
handled_errors: [RandomRestError.new]
)
breaker.run
raise ArgumentError.new("won't count towards the error rate")
end
Of course you can also add custom errors to ignore and count all others:
breaker = CircuitBreaker.new(
threshold: 5,
timewindow: 60,
reenable_after: 300,
ignored_errors: [ArgumentError.new]
)
breaker.run
raise ArgumentError.new("won't count towards the error rate")
end
Unfortunately this both won't match against exception subclasses just yet, so at the moment you have to specify the exact class to monitor and can't just use RestException
to match every subclass like RestTimeoutException < RestException
...
Thanks
Special thanks goes to Pedro Belo on whose ruby circuit breaker implementation (CB2) this is loosely based.


{% extends "base.html" %} {% block content %}
This site uses standard rst2html.py script Source code to this site: https://github.com/destrangis/rsted


Subscription
Home
(current)
Account
Account
Another action
View On Etherscan
Contract
View On Etherscan
Account Type
×
Kindly choose a account type.
Dealer
Service Center
Driver


There are many forms of therapy for those who suffer from mental illnesses - both psychotherapeutic ("talk therapy") and psychopharmacological ("medication"). Psychotherapy is highly effective for a majority of those suffering from illnesses such as depression, anxiety, bipolar disorder, and many other mood and thought disorders. Medications may or may not be helpful but can help the recovery process. A psychiatrist is your best resource for adding medication and finding the one that is right for you. An important thing to remember is that rapport is important when finding a provider for therapeutic and psychiatric services. You may need to try different therapists, psychiatrists, medications, and talk-therapy modalities before finding the best path forward. The following section will highlight the forms of talk therapy that are available and activities that can be done at home to get well. An important message: stick with your quest to get well. It may take time and require that you try different paths.


Input data and parameters
QualiMap command line
| qualimap bamqc -bam /scratch/034idSEARCH-5361-SAN_L001_L002_L003_L004/034idSEARCH-5361-SAN_L001_L002_L003_L004.sorted.bam -nw 400 -hm 3 |
Alignment
| Command line: | minimap2 -t 1 -a -x sr /scratch/reference/NC_045512.2.fas.mmi /scratch/034idSEARCH-5361-SAN_L001_L002_L003_L004/fastq/034idSEARCH-5361-SAN_L001_L002_L003_L004_R1.fastq.gz /scratch/034idSEARCH-5361-SAN_L001_L002_L003_L004/fastq/034idSEARCH-5361-SAN_L001_L002_L003_L004_R2.fastq.gz |
| Draw chromosome limits: | no |
| Analyze overlapping paired-end reads: | no |
| Program: | minimap2 (2.17-r941) |
| Analysis date: | Thu Mar 04 01:15:42 UTC 2021 |
| Size of a homopolymer: | 3 |
| Skip duplicate alignments: | no |
| Number of windows: | 400 |
| BAM file: | /scratch/034idSEARCH-5361-SAN_L001_L002_L003_L004/034idSEARCH-5361-SAN_L001_L002_L003_L004.sorted.bam |
Summary
Globals
| Reference size | 29,903 |
| Number of reads | 2,652,903 |
| Mapped reads | 2,649,850 / 99.88% |
| Unmapped reads | 3,053 / 0.12% |
| Mapped paired reads | 2,649,850 / 99.88% |
| Mapped reads, first in pair | 1,325,349 / 49.96% |
| Mapped reads, second in pair | 1,324,501 / 49.93% |
| Mapped reads, both in pair | 2,647,657 / 99.8% |
| Mapped reads, singletons | 2,193 / 0.08% |
| Secondary alignments | 0 |
| Supplementary alignments | 3,361 / 0.13% |
| Read min/max/mean length | 25 / 151 / 147.07 |
| Duplicated reads (estimated) | 2,622,014 / 98.84% |
| Duplication rate | 95.47% |
| Clipped reads | 27,679 / 1.04% |
ACGT Content
| Number/percentage of A's | 115,060,761 / 29.57% |
| Number/percentage of C's | 71,367,151 / 18.34% |
| Number/percentage of T's | 125,960,096 / 32.37% |
| Number/percentage of G's | 76,780,020 / 19.73% |
| Number/percentage of N's | 22,782 / 0.01% |
| GC Percentage | 38.07% |
Coverage
| Mean | 13,015.7991 |
| Standard Deviation | 9,970.7669 |
Mapping Quality
| Mean Mapping Quality | 59.26 |
Insert size
| Mean | 325.7 |
| Standard Deviation | 519.39 |
| P25/Median/P75 | 228 / 296 / 377 |
Mismatches and indels
| General error rate | 0.25% |
| Insertions | 10,425 |
| Mapped reads with at least one insertion | 0.39% |
| Deletions | 11,210 |
| Mapped reads with at least one deletion | 0.42% |
| Homopolymer indels | 73.34% |
Chromosome stats
| Name | Length | Mapped bases | Mean coverage | Standard deviation |
| NC_045512.2 | 29903 | 389211440 | 13,015.7991 | 9,970.7669 |


{% extends 'base.html' %} {% block content %}
There has been some sort of the error, please try again later.


Rock & Code
Front-End development
Technical summary:Website built in HTML & CSS (use of SASS as CSS pre-processor), following responsive design principles. Use of flexbox and grid as web layout systems. Built by a 5-developers-team, following agile principles & scrum methodologies.
Usage:Showcasing the first development team created at our front-end training. Describes the team in different scrollable sections, including the team mission, its strengths and weaknesses and a personalized space for each team member. Contact section with form using formspread.
Features: - Responsive website - One scrollable page - Navigation menu - Form to contact with the team


Potato Salad2.95Vivian's French Fries5.50Huevos Rancheros6.50Two Eggs, any style2.99Vivian's Famous Peppers and Eggs6.29Bowl of fruit4.99French toast3.25Croissant1.99Grilled Chicken Sandwich5.99Tuna Melt4.99Pasta Salad5.39New York Steak8.99Chilean Sea Bass10.99Linguini with Grilled Porcini Mushroom7.79
Welcome to Vivian's Cafe
Select your entrees from the menu below. To calculate the amount of the bill,
click the Calculate Bill button. Check the " Highlight Vegetarian Meals "
box to highlight vegetarian dishes.


GameBops
Find Game Soundtracks
×
Use the SearchBar to find your favorite games and gaming soundtracks!!
×
That title is already in your favorites!!
Use the SearchBar to find your favorite games and gaming soundtracks!!
That title is already in your favorites!!


fitAlgs.fitSims module¶
- Author
Dominic Hunt
-
class
fitAlgs.fitSims.
FitSim
(participant_choice_property='Actions', participant_reward_property='Rewards', model_fitting_variable='ActionProb', task_stimuli_property=None, fit_subset=None, action_options_property=None, float_error_response_value=1e-100)[source]¶ Bases:
object
A class for fitting data by passing the participant data through the model.
This has been setup for fitting action-response models
- Parameters
participant_choice_property (string, optional) – The participant data key of their action choices. Default
'Actions'
participant_reward_property (string, optional) – The participant data key of the participant reward data. Default
'Rewards'
model_fitting_variable (string, optional) – The key to be compared in the model data. Default
'ActionProb'
task_stimuli_property (list of strings or None, optional) – The keys containing the stimuli seen by the participant before taking a decision on an action. Default
None
action_options_property (string or None or list of ints, optional) – The name of the key in partData where the list of valid actions can be found. If
None
then the action list is considered to stay constant. If a list then the list will be taken as the list of actions that can be taken at each instance. DefaultNone
float_error_response_value (float, optional) – If a floating point error occurs when running a fit the fitter function will return a value for each element of fpRespVal. Default is
1/1e100
fit_subset (
float('Nan')
,None
,"rewarded"
,"unrewarded"
,"all"
or list of int, optional) – Describes which, if any, subset of trials will be used to evaluate the performance of the model. This can either be described as a list of trial numbers or, by passing -"all"
for fitting all trials -float('Nan')
or"unrewarded"
for all those trials whose feedback wasfloat('Nan')
-"rewarded"
for those who had feedback that was notfloat('Nan')
DefaultNone
, which means all trials will be used.
-
Name
¶ The name of the fitting type
- Type
string
See also
fitAlgs.fitAlg.FitAlg
The general fitting class
-
fitness
(*model_parameters)[source]¶ Used by a fitter to generate the list of values characterising how well the model parameters describe the participants actions.
- Parameters
model_parameters (list of floats) – A list of the parameters used by the model in the order previously defined
- Returns
model_performance – The choices made by the model that will be used to characterise the quality of the fit.
- Return type
list of floats
See also
fitAlgs.fitSims.FitSim.participant()
Fits participant data
fitAlgs.fitAlg.fitAlg()
The general fitting class
fitAlgs.fitAlg.fitAlg.fitness()
The function that this one is called by
-
fitted_model
(*model_parameters)[source]¶ Simulating a model run with specific parameter values
- Parameters
*model_parameters (floats) – The model parameters provided in the order defined in the model setup
- Returns
model_instance
- Return type
model.modelTemplate.Model class instance
-
get_model_parameters
(*model_parameters)[source]¶ Compiles the model parameter arguments based on the model parameters
- Parameters
model_parameters (list of floats) – The parameter values in the order extracted from the modelSetup parameter dictionary
- Returns
parameters – The kwarg model parameter arguments
- Return type
-
get_model_properties
(*model_parameters)[source]¶ Compiles the kwarg model arguments based on the model_parameters and previously specified other parameters
- Parameters
model_parameters (list of floats) – The parameter values in the order extracted from the modelSetup parameter dictionary
- Returns
model_properties – The kwarg model arguments
- Return type
-
info
()[source]¶ The dictionary describing the fitters algorithm chosen
- Returns
fitInfo – The dictionary of fitters class information
- Return type
-
static
participant_sequence_generation
(participant_data, choice_property, reward_property, stimuli_property, action_options_property)[source]¶ Finds the stimuli in the participant data and returns formatted observations
- Parameters
participant_data (dict) – The participant data
choice_property (string) – The participant data key of their action choices.
reward_property (string) – The participant data key of the participant reward data
stimuli_property (string or None or list of strings) – A list of the keys in partData representing participant stimuli
action_options_property (string or None or list of strings, ints or None) – The name of the key in partData where the list of valid actions can be found. If
None
then the action list is considered to stay constant. If a list then the list will be taken as the list of actions that can be taken at every trialstep. If the list is shorter than the number of trialsteps, then it will be considered to be a list of valid actions for each trialstep.
- Returns
participant_sequence – Each list element contains the observation, action and feedback for each trial taken by the participant
- Return type
list of three element tuples


Go & secondary groups: a kaniko adventure!
Originally posted on my personal blog in April 2020
I wanted to get my feet wet with understanding Kaniko, an open-source in-cluster builder for Docker images. I happen to work with one of the maintainers, Tejal, and I asked her if there was any interesting UNIX-internals sort of bugs that might be interesting.
Here’s the mystery issue: “The USER command does not set the correct gids, so extra groups are dropped”. Here’s an example to reproduce it:
FROM ubuntu:latest
RUN groupadd -g 20000 bar
RUN groupadd -g 10000 foo
RUN useradd -c "Foo user" -u 10000 -g 10000 -G bar -m foo
RUN id foo
USER foo
RUN id
In an ideal world, both “id” commands should give the same output, but the second one did not include foo
’s membership in bar
. This definitely sounded
like a secondary group issue. I happened to know that secondary groups were bolted onto the UNIX implementation some 10 years later than primary groups (SVR4, by way of BSD).
How to reproduce
First, get a shell into the Kaniko debug image, mounting in the out/ and integration/ subdirectory:
docker run -it --entrypoint /busybox/sh -v "$HOME"/.config/gcloud:/root/.config/gcloud -v (pwd)/integration:/workspace -v (pwd)/out:/out gcr.io/kaniko-project/executor:debug
I placed their Dockerfile into kaniko/integration/1097
, which was mounted as /workspace
. I could then trivially reproduce their case using kaniko:
/kaniko/executor -f 1097 --context=dir://workspace --destination=gcr.io/kaniko/test --tarPath=/tmp/image.tar --no-push
Finding the culprit
The first question was: how does Kaniko implement user switching? Are they switching in such a way that populates secondary groups? I ask because the standard syscalls (seteuid
, setegid
) do not implement secondary groups: one has to instead call setgroups
. Here’s what I found:
cmd.SysProcAttr.Credential = &syscall.Credential{Uid: uid, Gid: gid}
[SysProcAttr](https://golang.org/pkg/syscall/#SysProcAttr)
is not exactly a well-known feature in Go, but it’s perfect for setting exec attributes such as:
Chroot
- lock the process into a directoryPdeathsig
- Signal that the process will get when its parent dies (Linux only)- … and many options for user namespacing: handy for container tools.
So, I figured it would be easy enough to improve the function in such a way that performs secondary group impersonation. The trick to you, dear reader, is to find the flaw!
func impersonate(userStr string) (*syscall.Credential, error) {
...
groups := []uint32{}
gidStr, err := u.GroupIds()
logrus.Infof("groupstr: %s", gidStr)
for _, g := range gidStr {
i, err := strconv.ParseUint(g, 10, 32)
if err != nil {
return nil, errors.Wrap(err, "parseuint")
}
groups = append(groups, uint32(i))
}
return &syscall.Credential{
Uid: uid,
Gid: gid,
Groups: groups,
}, nil
}
After running make
, I hop back into the container to run the repro case, and I’m perplexed by the log message:
INFO[0013] u.GroupIds returned: []
Is kaniko running in some alternate chroot universe where it can’t see? I double check by adding a shell command:
out, err = exec.Command("grep", "foo", "/etc/group").Output()
The answer is no. At this point, there are only two options in my mind. Either this is a Go bug, or, if Go is using libc to make this call (likely), it’s a libc bug, or at least a disagreement between the two systems. As soon as you have made the decision to blame the compiler, it’s time to gather evidence, typically by making a simpler test case. I opt first to investigate if Go is using libc to look up the list of secondary groups, starting with:
A couple of nested functions later, and you can see that it’s calling:
static int mygetgrouplist(const char* user, gid_t group, gid_t* groups, int* ngroups) {
return getgrouplist(user, group, groups, ngroups);
}
This is almost the same implementation you see in busybox’s id
command source
static int get_groups(const char *username, gid_t rgid, gid_t *groups, int *n)
{
int m;
if (username) {
m = getgrouplist(username, rgid, groups, n);
return m;
}
Now, it’s possible that Go is setting ngroups
to 0, so we just build a little test case program:
func main() {
u, err := user.Lookup(os.Args[1])
if err != nil {
panic(fmt.Sprintf("lookup failed: %v", err))
}
The test program runs great on macOS, but when I use xgo to cross-compile it for Linux, all it outputs is:
-rwxr-xr-x 1 0 0 2125099 Mar 28 20:26 ggroups-linux-amd64
# ./ggroups-linux-amd64
/busybox/sh: ./ggroups-linux-amd64: not found
If you ever see this error in UNIX, it usually means one of three things:
- The program specifies an invalid
#!
line - The binary needs a shared library that does not exist
- The binary is for the wrong architecture
In this case, I suspected #2, because I see that busybox is in use, chances are pretty high that this Docker image lacks libc. This environment
does not have ldd
, but it has strings
, so I can get some hints about the binary that was built:
strings /out/ggroups-linux-amd64 | head
bhkFaBAPgWy3KAp2RQcd/llKGprZSMM7cCxIzwmJ9/0QgnPM9q9pk--9IIyIXn/X9bTurj9MBmKtnVL-ANT
/lib64/ld-linux-x86-64.so.2
ATUSH
It looks like the right architecture, but yeah, that library doesn’t exist. Just to confirm my sanity, I confirmed this program works great in an ubuntu container. I immediately suspect that either kaniko’s user environment is trash, or kaniko is up to shenanigans in their Makefile
. The easier is easier to check, and it doesn’t take long to notice:
out/executor: $(GO_FILES)
GOARCH=$(GOARCH) GOOS=linux CGO_ENABLED=0 go build -ldflags \
$(GO_LDFLAGS) -o $@ $(EXECUTOR_PACKAGE)
God damnit. kaniko works because they disable cgo
to workaround the lack of a libc environment. Look back at listgroups_unix.go - it uses C code, and the build rule specifically states only to build with cgo. If we look at the fallback implementation, we see:
func listGroups(*User) ([]string, error) {
if runtime.GOOS == "android" || runtime.GOOS == "aix" {
return nil, fmt.Errorf("user: GroupIds not implemented on %s", runtime.GOOS)
}
return nil, errors.New("user: GroupIds requires cgo")
}
But wait - we didn’t see an error in our impersonate function! I try to compile it without cgo:
env CGO_ENABLED=0 go run ggroups.go root
panic: groupids failed: user: GroupIds requires cgo
goroutine 1 [running]:
main.main()
/Users/tstromberg/src/ggroups/ggroups.go:18 +0x117
exit status 2
The mystery deepens
If you see an error in one environment, and not the other, chances are either:
- A compiler error
- A kernel error
- You forgot to check the error code.
It’s almost always the last option. Sure enough:
gidStr, err := u.GroupIds()
logrus.Infof("groupstr: %s", gidStr)
As soon as I noticed this, I walked away from my computer for an hour. I suggest you do the same.


--- layout: archive title: Zulip Chat Archive permalink: /stream/198800-Big-Proof-2019/topic/lunch.html ---
Are there people around Pollocks hall of residence who want to have lunch before going to ICMS ?
I'm working right now in the lounge area of the hotel near the reception desk. Happy to go for a light lunch before things start up.
{% endraw %}Last updated: Apr 24 2020 at 19:02 UTC


Labradoodle. The Labradoodle is a cross between a Labrador Retriever and a Miniature or Standard Poodle. Like both of his parent breeds, he's intelligent, friendly, and at least moderately active. He has a shaggy or curly coat that requires maintenance.
A Labradoodle is happiest when they're with the people they love, and they'll shower their family with affection and devotion. With the energy of the Labrador Retriever and the work ethic of both the Lab and the Poodle, they're a joy. They may soon end up as one of the most popular mixed breeds around.


◆ TcpLogger()
| ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.TcpLogger |
( |
long |
flowId, |
|
|
boolean |
isReceiver |
|
) |
| |
◆ callBeforeClose()
| void ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.callBeforeClose |
( |
| ) |
|
◆ logCongestionWindow()
| void ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.logCongestionWindow |
( |
double |
congestionWindow | ) |
|
Log the congestion window of a specific flow at a certain point in time.
- Parameters
-
| congestionWindow | Current size of congestion window |
◆ logMaxFlowlet()
| void ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.logMaxFlowlet |
( |
long |
flowlet | ) |
|
Log the maximum flowlet identifier observed acknowledged.
- Parameters
-
| flowlet | Flowlet identifier |
◆ logPacketBurstGap()
| void ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.logPacketBurstGap |
( |
long |
gapNs | ) |
|
Log the packet burst gap (ns).
- Parameters
-
| gapNs | Packet burst gap in nanoseconds |
◆ congestionWindowWriter
| final BufferedWriter ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.congestionWindowWriter |
|
private |
◆ flowId
| final long ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.flowId |
|
private |
◆ isReceiver
| final boolean ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.isReceiver |
|
private |
◆ logCongestionWindowEnabled
| final boolean ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.logCongestionWindowEnabled |
|
private |
◆ logPacketBurstGapEnabled
| final boolean ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.logPacketBurstGapEnabled |
|
private |
◆ maxFlowlet
| long ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.maxFlowlet |
|
private |
◆ maxFlowletWriter
| final BufferedWriter ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.maxFlowletWriter |
|
private |
◆ packetBurstGapWriter
| final BufferedWriter ch.ethz.systems.netbench.xpt.tcpbase.TcpLogger.packetBurstGapWriter |
|
private |
The documentation for this class was generated from the following file:


| Interface | Description |
|---|---|
| DependencyExplorer.Factory | |
| ImplicitBindingCreator.Factory | |
| UnresolvedBindingValidator.Factory |
| Class | Description |
|---|---|
| BindingResolver |
Drives the top level Binding Resolution algorithm.
|
| DependencyExplorer |
Explores the unresolved dependencies for a given Ginjector and builds the
DependencyGraph
representing all of the implicit bindings that need to be created to satisfy the dependencies. |
| DependencyExplorer.DependencyExplorerOutput |
Class that packages up all the output of exploring the unresolved dependencies for a Ginjector.
|
| DependencyGraph |
A graph of the dependency information between types that need to be injected
at a given injector, called the origin.
|
| DependencyGraph.Builder | |
| DependencyGraph.GraphPruner | |
| EagerCycleFinder |
Searches for "eager" cycles in the dependency graph.
|
| ImplicitBindingCreator |
Class responsible for creating implicit bindings.
|
| PathFinder |
Finds the shortest path from the edges in the root set to any of one or more destination keys.
|
| RequiredKeySet |
Computes the set of required keys in a given
DependencyGraph . |
| ResolutionModule |
Bindings for components of the resolver.
|
| UnresolvedBindingValidator |
Finds and reports errors in the dependency information.
|
| UnresolvedBindingValidator.InvalidKeys |
Container for information about invalid keys.
|
| Exception | Description |
|---|---|
| ImplicitBindingCreator.BindingCreationException |
Exception thrown to indicate an error occurred during binding creation.
|


Summary. With the shenfun
Python module (github.com/spectralDNS/shenfun) an effort is made towards automating the implementation of the spectral Galerkin method for simple tensor product domains, consisting of (currently) one non-periodic and any number of periodic directions. The user interface to shenfun
is intentionally made very similar to FEniCS (fenicsproject.org). Partial Differential Equations are represented through weak variational forms and solved using efficient direct solvers where available. MPI decomposition is achieved through the mpi4py-fft
module (bitbucket.org/mpi4py/mpi4py-fft), and all developed solvers may, with no additional effort, be run on supercomputers using thousands of processors. Complete solvers are shown for the linear Poisson and biharmonic problems, as well as the nonlinear and time-dependent Ginzburg-Landau equation.
Introduction
Spectral Galerkin Method
Shenfun
Classes for basis functions
Classes for matrices
Variational forms in 1D
Poisson equation implemented in 1D
Tensor product spaces
Other functionality of shenfun
Ginzburg-Landau equation
Conclusions
Acknowledgements
Bibliography


|
|||
|
Enter your twitter account to get the insert code for adding your custom twitter signature image.
|
|
|||
|
Enter your twitter account to get the insert code for adding your custom twitter signature image.
|
© Copyright 2007 HalOtis. All Rights Reserved.


Name
Description
Price
Product Thumbnail
Product Feature
Name
Description
Price
Actions
{{artisanProduct.name}}
{{artisanProduct.description}}
{{artisanProduct.price | currency:"USD$"}}
Delete
Edit
Previous
{{page.number + 1}}
Next
Please Confirm


fastgac.peak_and_cluster.find_peaks_from_accumulator¶
-
fastgac.peak_and_cluster.
find_peaks_from_accumulator
(gaussian_normals_sorted, accumulator_normalized_sorted, find_peaks_kwargs={'distance': 4, 'height': 0.05, 'prominence': 0.07, 'threshold': None, 'width': None}, cluster_kwargs={'criterion': 'distance', 't': 0.15}, average_filter={'min_total_weight': 0.2})¶ Used 1D peak detection on the Gaussian Accumulator sorted by Space Filling Curve index (hilbert curve or S2ID).
By nature of this being a 1D signal of a 2D Manifold in 3D, multiple peaks close in 2D space will be detected.
Group these detected peaks using Agglomerative Hierarchal Clustering (AHC),
After things are grouped, take weighted average of the group and filter any that don’t meet a criteria.
- Parameters
gaussian_normals_sorted (np.ndarray) – NX3 Array of the unit normals
accumulator_normalized_sorted (np.ndarray) – NX1 array of the normalized counts for each unit normal
find_peaks_kwargs (dict, optional) – 1D Signal Detector kwargs, see scipy.signal.find_peaks. Defaults to dict(height=0.05, threshold=None, distance=4, width=None, prominence=0.07).
cluster_kwargs (dict, optional) – AHC cluster kwargs. See scipy.spatial.fcluster Defaults to dict(t=0.15, criterion=’distance’).
average_filter (dict, optional) – Each group must have this much normalized value at min. Defaults to dict(min_total_weight=0.2).
- Returns
integer index of peaks in gaussian_normals_sorted, interger groups by AHC, detected peak normals, the weights of the peaks
- Return type
(np.ndarray, np.ndarray, np.ndarray, np.ndarray)


Feel free to submit your comments on ways in which I can improve this website. If you feel I missed something important let me know! If you feel like you have a better build video let me know! I will take your comments into consideration when furthering the development of this application.


TREE - Tuition Reimbursement Enquiry Environment
Sign In
Sign Up
TREE provides reimbursements for university courses, seminars, certification preparation classes, certifications, and technical training.


This demo shows Dojo Offline's SQL encryption technologies. In the table below, we have a sample SQL table that has three columns of data: a last name, a first name, and a social security number. We don't want to store the social security numbers in the clear, just in case they are downloaded for offline use to a laptop and the laptop is stolen.
To use this demo, enter a password and press the ENCRYPT button to see the Social Security column encrypt. Enter the same password and press DECRYPT to see it decrypt. If you enter an incorrect password and press DECRYPT, the Social Security column will remain encrypted and only show gibberish.
Under the covers we use 256-bit AES encryption and your password to derive the crypto key; we use a facility in Google Gears to do the cryptography in such a way that the browser does not lock up during processing. Dojo Offline ties this cryptography into Dojo SQL, providing convenient ENCRYPT() and DECRYPT() SQL keywords you can use to easily have this functionality in your own offline applications. To learn how you can use this feature see here.


Welcome!
Thank you for choosing The Orange Alliance!
You will need to remain connected to the Internet while the event is running.
Thank you for choosing The Orange Alliance!
You will need to remain connected to the Internet while the event is running.


|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
This class provides a separate new-able instance of the Velocity template engine. The alternative model for use is using the Velocity class which employs the singleton model. Please ensure that you call one of the init() variants. This is critical for proper behavior. Coming soon : Velocity will call the parameter-less init() at the first use of this class if the init() wasn't explicitly called. While this will ensure that Velocity functions, it almost certainly won't function in the way you intend, so please make sure to call init().
| Constructor Summary | |
|---|---|
|
VelocityEngine() Initializes a new instance of the VelocityEngine class. |
| Property Summary | |
|---|---|
| Commons.Collections.ExtendedProperties |
ExtendedProperties
Set an entire configuration at once. This is useful in cases where the parent application uses the ExtendedProperties class and the velocity configuration is a subset of the parent application's configuration. |
| Method Summary | |
|---|---|
| void |
AddProperty(string key, object value_Renamed) Add a Velocity Runtime property. |
| void |
ClearProperty(string key) Clear a Velocity Runtime property. |
| void |
Debug(object message) Log a debug message. |
| void |
Error(object message) Log an error message. |
| bool |
Evaluate(NVelocity.Context.IContext context, System.IO.TextWriter writer, string logTag, System.IO.TextReader reader) Renders the input reader using the context into the output writer. To be used when a template is dynamically constructed, or want to use Velocity as a token replacer. |
| bool |
Evaluate(NVelocity.Context.IContext context, System.IO.TextWriter writer, string logTag, System.IO.Stream instream) Renders the input stream using the context into the output writer. To be used when a template is dynamically constructed, or want to use Velocity as a token replacer. |
| bool |
Evaluate(NVelocity.Context.IContext context, System.IO.TextWriter out_Renamed, string logTag, string instring) renders the input string using the context into the output writer. To be used when a template is dynamically constructed, or want to use Velocity as a token replacer. |
| object |
GetProperty(string key) Get a Velocity Runtime property. |
| NVelocity.Template |
GetTemplate(string name, string encoding) Returns a Templatefrom the Velocity resource management system. |
| NVelocity.Template |
GetTemplate(string name) Returns a Templatefrom the Velocity resource management system. |
| void |
Info(object message) Log an info message. |
| void |
Init(Commons.Collections.ExtendedProperties p) initialize the Velocity runtime engine, using default properties plus the properties in the passed in java.util.Properties object |
| void |
Init(string propsFilename) initialize the Velocity runtime engine, using default properties plus the properties in the properties file passed in as the arg |
| void |
Init() initialize the Velocity runtime engine, using the default properties of the Velocity distribution |
| bool |
InvokeVelocimacro(string vmName, string logTag, string[] params_Renamed, NVelocity.Context.IContext context, System.IO.TextWriter writer) Invokes a currently registered Velocimacro with the parms provided and places the rendered stream into the writer. Note : currently only accepts args to the VM if they are in the context. |
| bool |
MergeTemplate(string templateName, string encoding, NVelocity.Context.IContext context, System.IO.TextWriter writer) merges a template and puts the rendered stream into the writer |
| bool |
MergeTemplate(string templateName, NVelocity.Context.IContext context, System.IO.TextWriter writer) merges a template and puts the rendered stream into the writer |
| void |
SetApplicationAttribute(object key, object value_Renamed) Set the an ApplicationAttribue, which is an Object set by the application which is accessable from any component of the system that gets a RuntimeServices. This allows communication between the application environment and custom pluggable components of the Velocity engine, such as loaders and loggers. Note that there is no enfocement or rules for the key used - it is up to the application developer. However, to help make the intermixing of components possible, using the target Class name (e.g. com.foo.bar ) as the key might help avoid collision. |
| void |
SetProperty(string key, object value_Renamed) Set a Velocity Runtime property. |
| bool | TemplateExists(string templateName) |
| void |
Warn(object message) Log a warning message. |
| Methods inherited from class System.Object |
|---|
| Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
| Constructor Detail |
|---|
public VelocityEngine()
Initializes a new instance of the VelocityEngine class.
| Property Detail |
|---|
public Commons.Collections.ExtendedProperties ExtendedProperties
Set an entire configuration at once. This is useful in cases where the parent application uses the ExtendedProperties class and the velocity configuration is a subset of the parent application's configuration.
Parameters:
ExtendedProperties
- configuration
| Method Detail |
|---|
public void AddProperty(string key, object value_Renamed)
Add a Velocity Runtime property.
Parameters:
String
- key
Object
- value
public void ClearProperty(string key)
Clear a Velocity Runtime property.
Parameters:
key
- of property to clear
public void Debug(object message)
Log a debug message.
Parameters:
Object
- message to logpublic void Error(object message)
Log an error message.
Parameters:
Object
- message to logpublic bool Evaluate(NVelocity.Context.IContext context, System.IO.TextWriter writer, string logTag, System.IO.TextReader reader)
Renders the input reader using the context into the output writer. To be used when a template is dynamically constructed, or want to use Velocity as a token replacer.
Parameters:
context
- context to use in rendering input string
out
- Writer in which to render the output
logTag
- string to be used as the template name for log messages
in case of error
reader
- Reader containing the VTL to be rendered
public bool Evaluate(NVelocity.Context.IContext context, System.IO.TextWriter writer, string logTag, System.IO.Stream instream)
Renders the input stream using the context into the output writer. To be used when a template is dynamically constructed, or want to use Velocity as a token replacer.
Parameters:
context
- context to use in rendering input string
out
- Writer in which to render the output
logTag
- string to be used as the template name for log messages
in case of error
instream
- input stream containing the VTL to be rendered
public bool Evaluate(NVelocity.Context.IContext context, System.IO.TextWriter out_Renamed, string logTag, string instring)
renders the input string using the context into the output writer. To be used when a template is dynamically constructed, or want to use Velocity as a token replacer.
Parameters:
context
- context to use in rendering input string
out
- Writer in which to render the output
logTag
- string to be used as the template name for log
messages in case of error
instring
- input string containing the VTL to be rendered
public object GetProperty(string key)
Get a Velocity Runtime property.
Parameters:
key
- property to retrieve
public NVelocity.Template GetTemplate(string name, string encoding)
Returns a
Templatefrom the Velocity resource management system.
Parameters:
name
- The file name of the desired template.
encoding
- The character encoding to use for the template.
public NVelocity.Template GetTemplate(string name)
Returns a
Templatefrom the Velocity resource management system.
Parameters:
name
- The file name of the desired template.
public void Info(object message)
Log an info message.
Parameters:
Object
- message to logpublic void Init(Commons.Collections.ExtendedProperties p)
initialize the Velocity runtime engine, using default properties plus the properties in the passed in java.util.Properties object
Parameters:
p
- Proprties object containing initialization propertiespublic void Init(string propsFilename)
initialize the Velocity runtime engine, using default properties plus the properties in the properties file passed in as the arg
Parameters:
propsFilename
- file containing properties to use to initialize
the Velocity runtimepublic void Init()
initialize the Velocity runtime engine, using the default properties of the Velocity distribution
public bool InvokeVelocimacro(string vmName, string logTag, string[] params_Renamed, NVelocity.Context.IContext context, System.IO.TextWriter writer)
Invokes a currently registered Velocimacro with the parms provided and places the rendered stream into the writer. Note : currently only accepts args to the VM if they are in the context.
Parameters:
vmName
- name of Velocimacro to call
logTag
- string to be used for template name in case of error
params[]
- args used to invoke Velocimacro. In context key format :
eg "foo","bar" (rather than "$foo","$bar")
context
- Context object containing data/objects used for rendering.
writer
- Writer for output stream
public bool MergeTemplate(string templateName, string encoding, NVelocity.Context.IContext context, System.IO.TextWriter writer)
merges a template and puts the rendered stream into the writer
Parameters:
templateName
- name of template to be used in merge
encoding
- encoding used in template
context
- filled context to be used in merge
writer
- writer to write template into
public bool MergeTemplate(string templateName, NVelocity.Context.IContext context, System.IO.TextWriter writer)
merges a template and puts the rendered stream into the writer
Parameters:
templateName
- name of template to be used in merge
context
- filled context to be used in merge
writer
- writer to write template into
public void SetApplicationAttribute(object key, object value_Renamed)
Set the an ApplicationAttribue, which is an Object set by the application which is accessable from any component of the system that gets a RuntimeServices. This allows communication between the application environment and custom pluggable components of the Velocity engine, such as loaders and loggers. Note that there is no enfocement or rules for the key used - it is up to the application developer. However, to help make the intermixing of components possible, using the target Class name (e.g. com.foo.bar ) as the key might help avoid collision.
Parameters:
key
- object 'name' under which the object is storedvalue
- object to store under this keypublic void SetProperty(string key, object value_Renamed)
Set a Velocity Runtime property.
Parameters:
String
- keyObject
- valuepublic bool TemplateExists(string templateName)
public void Warn(object message)
Log a warning message.
Parameters:
Object
- message to log
|
.NET Framework | |||||||||
| PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |


Toggle navigation
BCS Webapp
Dashboard
DPR
DTR
Profile
Admin
Logout
Your name here!
Please Provide the Information Below to Change it!
First Name
Last Name
Initials
Employee Id #
Cell #
Contact #
Company
Class
Journeyman
Apprentice
Update!


Destination
Search Places
About us
SNI-TRAVELS.

Explore Beautiful Cities Around The World
Africa
Toggle Dropdown
Johannesburg
Cairo
Lagos
Maputo
Casablanca
America
Toggle Dropdown
Las Vegas
San Francisco
New York City
Chicago
Miami
Asia
Toggle Dropdown
Maldives
Tokyo
Bali
Hong Kong
Singapore
Australia
Toggle Dropdown
Sydney
Fraser island
Cairns
Magnetic Island
Tasmania
Europe
Toggle Dropdown
Santorini
Paris
Venice
Athens
Budapest
CONTACT US AND LEAVE A FEEDBACK!
FirstName
LastName
Email address
Select Topic
QUESTIONS
FEEDBACK
BOOKING
CANCELATION
VISIT US
Message


Software Developer with a 1st class master's degree in Computer Science from the University of Durham
Projects
Through studying in the field of Computer Science, I've worked on numerous different projects, developing skills and gaining knowledge in a range of areas.
Studies
Throughout my time in education, I studied a wide and diverse range of subjects and modules.


 You and your adventuring companions can expect to receive free healing and care at a temple, shrine, or other established presence of your faith, though you must provide any material components needed for spells. Those who share your religion will support you (but only you) at a modest lifestyle.
You might also have ties to a specific temple dedicated to your chosen deity or pantheon, and you have a residence there. This could be the temple where you used to serve, if you remain on good terms with it, or a temple where you have found a new home. While near your temple, you can call upon the priests for assistance, provided the assistance you ask for is not hazardous and you remain in good standing with your temple.
Acolytes are shaped by their experience in temples or other religious communities. Their study of the history and tenets of their faith and their relationships to temples, shrines, or hierarchies affect their mannerisms and ideals. Their flaws might be some hidden hypocrisy or heretical idea, or an ideal or bond taken to an extreme.
| d8 | Personality Trait |
|---|---|
| 1 | I idolize a particular hero of my faith, and constantly refer to that person's deeds and example. |
| 2 | I can find common ground between the fiercest enemies, empathizing with them and always working toward peace. |
| 3 | I see omens in every event and action. The gods try to speak to us, we just need to listen. |
| 4 | Nothing can shake my optimistic attitude. |
| 5 | I quote (or misquote) sacred texts and proverbs in almost every situation. |
| 6 | I am tolerant (or intolerant) of other faiths and respect (or condemn) the worship of other gods. |
| 7 | I've enjoyed fine food, drink, and high society among my temple's elite. Rough living grates on me. |
| 8 | I've spent so long in the temple that I have little practical experience dealing with people in the outside world. |
| d6 | Ideal |
| 1 | Tradition. The ancient traditions of worship and sacrifice must be preserved and upheld. (Lawful) |
| 2 | Charity. I always try to help those in need, no matter what the personal cost. (Good) |
| 3 | Change. We must help bring about the changes the gods are constantly working in the world. (Chaotic) |
| 4 | Power. I hope to one day rise to the top of my faith's religious hierarchy. (Lawful) |
| 5 | Faith. I trust that my deity will guide my actions. I have faith that if I work hard, things will go well. (Lawful) |
| 6 | Aspiration. I seek to prove myself worthy of my god's favor by matching my actions against his or her teachings. (Any) |
| d6 | Bond |
| 1 | I would die to recover an ancient relic of my faith that was lost long ago. |
| 2 | I will someday get revenge on the corrupt temple hierarchy who branded me a heretic. |
| 3 | I owe my life to the priest who took me in when my parents died. |
| 4 | Everything I do is for the common people. |
| 5 | I will do anything to protect the temple where I served. |
| 6 | I seek to preserve a sacred text that my enemies consider heretical and seek to destroy. |
| d6 | Flaw |
| 1 | I judge others harshly, and myself even more severely. |
| 2 | I put too much trust in those who wield power within my temple's hierarchy. |
| 3 | My piety sometimes leads me to blindly trust those that profess faith in my god. |
| 4 | I am inflexible in my thinking. |
| 5 | I am suspicious of strangers and expect the worst of them. |
| 6 | Once I pick a goal, I become obsessed with it to the detriment of everything else in my life. |


usertypes¶
Perhaps the most powerful feature of sol2, usertypes
are the way sol2 and C++ communicate your classes to the Lua runtime and bind things between both tables and to specific blocks of C++ memory, allowing you to treat Lua userdata and other things like classes.
To learn more about usertypes, visit:
The examples folder also has a number of really great examples for you to see. There are also some notes about guarantees you can find about usertypes, and their associated userdata, below:
Containers get pushed as special usertypes, but can be disabled if problems arise as detailed here.
Certain operators are detected and bound automatically for usertypes
You can use bitfields but it requires some finesse on your part. We have an example to help you get started here, that uses a few tricks.
- All usertypes are runtime extensible in both Lua and C++
If you need dynamic callbacks or runtime overridable functions, have a
std::function
member variable and get/set it on the usertype objectstd::function
works as a member variable or in passing as an argument / returning as a value (you can even use it withsol::property
)You can also create an entirely dynamic object: see the dynamic_object example for more details
(Advanced) You can override the iteration function for Lua 5.2 and above (LuaJIT does not have the capability) as shown in the pairs example
You can use filters to control dependencies and streamline return values, as well as apply custom behavior to a functions return
- Please note that the colon is necessary to “automatically” pass the
this
/self
argument to Lua methods obj:method_name()
is how you call “member” methods in LuaIt is purely syntactic sugar that passes the object name as the first argument to the
method_name
functionmy_obj:foo(bar, baz)
is the same asmy_obj.foo(my_obj, bar, baz)
Please note that one uses a colon, and the other uses a dot, and forgetting to do this properly will crash your code
There are safety defines outlined in the safety page here
- Please note that the colon is necessary to “automatically” pass the
- You can push types classified as userdata before you register a usertype.
You can register a usertype with the Lua runtime at any time
You can retrieve a usertype from the Lua runtime at any time
Methods and properties will be added to the type only after you register the usertype with the Lua runtime
All methods and properties will appear on all userdata, even if that object was pushed before the usertype (all userdata will be updated)
- Types either copy once or move once into the memory location, if it is a value type. If it is a pointer, we store only the reference.
This means retrieval of class types (not primitive types like strings or integers) by
T&
orT*
allow you to modify the data in Lua directly.Retrieve a plain
T
to get a copyReturn types and passing arguments to
sol::function
-types use perfect forwarding and reference semantics, which means no copies happen unless you specify a value explicitly. See this note for details.
- You can set
index
andnew_index
freely on any usertype you like to override the default “if a key is missing, find it / set it here” functionality of a specific object of a usertype. new_index
andindex
will not be called if you try to manipulate the named usertype table directly. sol2’s will be called to add that function to the usertype’s function/variable lookup table.new_index
andindex
will be called if you attempt to call a key that does not exist on an actual userdata object (the C++ object) itself.If you made a usertype named
test
, this meanst = test()
, witht.hi = 54
will call your function, buttest.hi = function () print ("hi"); end
will instead set the keyhi
to to lookup that function for alltest
types
- You can set
The first
sizeof( void* )
bytes is always a pointer to the typed C++ memory. What comes after is based on what you’ve pushed into the system according to the memory specification for usertypes. This is compatible with a number of systems other than just sol2, making it easy to interop with select other Lua systems.- Member methods, properties, variables and functions taking
self&
arguments modify data directly Work on a copy by taking arguments or returning by value.
Do not use r-value references: they do not mean anything in Lua code.
Move-only types can only be taken by reference: sol2 cannot know if/when to move a value (except when serializing with perfect forwarding into Lua)
- Member methods, properties, variables and functions taking
The actual metatable associated with the usertype has a long name and is defined to be opaque by the Sol implementation.
The actual metatable inner workings is opaque and defined by the Sol implementation, and there are no internal docs because optimizations on the operations are applied based on heuristics we discover from performance testing the system.


|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.simpleframework.util.parse.Parser org.simpleframework.http.parse.PathParser
public class PathParser
This is used to parse a path given as part of a URI. This will read the path, normalize it, and break it up into its components. The normalization of the path is the conversion of the path given into it's actual path by removing the references to the parent directories and to the current dir.
If the path that this represents is /usr/bin/../etc/./README
then the actual path, normalized, is /usr/etc/README
. Once
the path has been normalized it is possible to acquire the segments as
an array of strings, which allows simple manipulation of the path.
Although RFC 2396 defines the path within a URI to have parameters this
does not extract those parameters this will simply normalize the path and
include the path parameters in the path. If the path is to be converted
into a OS specific file system path that has the parameters extracted
then the AddressParser
should be used.
| Field Summary |
|---|
| Fields inherited from class org.simpleframework.util.parse.Parser |
|---|
buf, count, off |
| Constructor Summary | |
|---|---|
PathParser()
The default constructor will create a PathParser that
contains no specifics. |
|
PathParser(java.lang.String path)
This is primarily a convineance constructor. |
| Method Summary | |
|---|---|
java.lang.String |
getDirectory()
This will return the highest directory that exists within the path. |
java.lang.String |
getExtension()
This will return the extension that the file name contains. |
java.lang.String |
getName()
This will return the full name of the file without the path. |
java.lang.String |
getPath()
This will return the normalized path. |
java.lang.String |
getPath(int from)
This will return the normalized path from the specified path segment. |
java.lang.String |
getPath(int from,
int count)
This will return the normalized path from the specified path segment. |
java.lang.String |
getRelative(java.lang.String path)
This will return the path as it is relative to the issued path. |
java.lang.String[] |
getSegments()
This method is used to break the path into individual parts called segments, see RFC 2396. |
protected void |
init()
This will initialize the parser so that it is in a ready state. |
protected void |
parse()
This will parse the path in such a way that it ensures that at no stage there are trailing back references, using path normalization. |
java.lang.String |
toString()
This will return the normalized path. |
| Methods inherited from class org.simpleframework.util.parse.Parser |
|---|
digit, ensureCapacity, parse, skip, space, toLower |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PathParser()
PathParser
that
contains no specifics. The instance will return null
for all the get methods. The PathParser
's get methods
may be populated by using the parse method.
public PathParser(java.lang.String path)
String
given to extract the specifics. This could be
achived by calling the default no-arg constructor and then using
the instance to invoke the parse
method on that
String
to extract the parts.
path
- a String
containing a path value| Method Detail |
|---|
protected void parse()
PathParser
will create the same String
path given a set of paths that have different back references. For
example the paths /path/../path
and /path
are the same path but different String
's.
This will NOT parse an immediate back reference as this signifies
a path that cannot exist. So a path such as /../
will
result in a null for all methods. Paths such as ../bin
will not be allowed.
parse
in class Parser
protected void init()
Parser.parse
method.
init
in class Parser
public java.lang.String getExtension()
file.en_US.extension
will produce an extension of extension
. This
will return null if the path contains no file extension.
getExtension
in interface Path
public java.lang.String getName()
/usr/README
the name is README
.
Also for directorys the name of the directory in the last
path segment is returned. This returns the name without any
of the path parameters. As RFC 2396 defines the path to have
path parameters after the path segments.
getName
in interface Path
public java.lang.String getPath()
/usr/../etc/./
the
path is /etc/
. If the path that this represents
is a path with an immediate back reference then this will
return null. This is the path with all its information even
the parameter information if it was defined in the path.
getPath
in interface Path
../
or ./
public java.lang.String getPath(int from)
substring
invocations. Of particular
interest is the extraction of context based paths. This is
the path with all its information even the parameter
information if it was defined in the path.
getPath
in interface Path
from
- this is the segment offset to get the path for
../
or ./
public java.lang.String getPath(int from, int count)
substring
invocations. Of particular
interest is the extraction of context based paths. This is
the path with all its information even the parameter
information if it was defined in the path.
getPath
in interface Path
from
- this is the segment offset to get the path forcount
- this is the number of path segments to include
../
or ./
public java.lang.String getDirectory()
/pub/./bin/README
would be to return
the highest directory path /pub/bin/
. The "/"
character will allways be the last character in the path.
getDirectory
in interface Path
public java.lang.String[] getSegments()
/usr/bin/../etc
then the segments
returned would be usr
and etc
as
the path is normalized before the segments are extracted.
getSegments
in interface Path
public java.lang.String getRelative(java.lang.String path)
getDirectory
. This is useful if paths
that are relative to a specific location are required. To
illustrate what this method will do the following example
is provided. If this object represented the path string
/usr/share/rfc/rfc2396.txt
and the issued
path was /usr/share/text.txt
then this will
return the path string /rfc/rfc2396.txt
.
getRelative
in interface Path
path
- the path prefix to acquire a relative path
public java.lang.String toString()
/usr/../etc/./
the
path is /etc/
. If the path that this represents
is a path with an immediate back reference then this will
return null. This is the path with all its information even
the parameter information if it was defined in the path.
toString
in interface Path
toString
in class java.lang.Object
../
or ./
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Score:
0
Coins:
0
/
Sorry your browser does not support canvas layers.
×
Credits:
First off a big thanks to Randall Munroe for his excellent
1110 comic
(license)
, which is the source of all of the background images (ie the world).
Assets:
Bomb
by
Yevhen Danchenko
(license)
Explosion
by
Bleed
(license)
Coin
by
Spring Enterprises Independent
(license)
Flame
by
Justin Jacobs
(license)
Flower
by
Lanea Zimmerman
with contributions from
Marcel
(license)
Sounds:
Flower sound
from
https://www.zapsplat.com
(license)
Squish sound
from
https://www.zapsplat.com
(license)
Coin sound
from
https://www.zapsplat.com
(license)
The Rest:
All other assets, music, and gameplay were created by
Nathan Jenkins
×
XKCD Mario-ish
Start
Load
Save
Credits


{{ block "main" . }}{{ end }}
{{/* Docs and Updates layouts include the site footer in a different location. */}}
{{ if not (in (slice "docs" "updates") .Type) }}
{{ partial "site_footer" . }}
{{ end }}
{{/* NOTE: remove class and div from footer, add main-wrapper, add class to
to make sticky footer work; move javascript to bottom of body; add .container if not home; */}} {{ partial "site_head" . }}


val mappedHits: Flow<T>
A Flow of T. Use this if you don't need the underlying SearchHit.
Flow
T
SearchHit


Websphere encodes passwords for datasources, security aliases, and other things in it's properties files. It uses a weak XOR encoder to do this.
This utility will allow you to decode XOR strings, and also encode your own plain text strings.
Enter encoded string: Decode
Enter plain text string: Encode


Privacy Choices
Privacy Choices is a JavaScript library that allows you to give the users of your website choices regarding the use of cookies and other web storage technologies on their device.
Live demo
This site is provided as a live demo of the library. Various configurations are available from the navigation bar to demonstrate all that the library has to offer.
Clear preferences
You may find it useful to clear preferences and reload the page as you explore these examples. Doing so will make it as if you have just come to the page for the very first time.
Notice when using these demos
Having different configurations of consent choice categories on the same domain isn't how this library should be used. Privacy Choices will ask the user for consent again if it detects a different set of consent categories in configuration compared to what is stored in the preferences cookie for a domain.
Therefore, as you browse these examples that are all hosted on the same domain you are likely to see the notification banner reappear very often as the library detects a mismatch between configuration and preferences. This is by design and will not be an issue in a production use case if implemented correctly.
Usage and source code
You can find full details of the project on GitHub.
License
Licensed under the MIT License.


I've followed with interest on Baron's Why don’t our new Nagios plugins use caching? and Sheeri's Caching for Monitoring: Timing is Everything. I wish to present my take on this, from mycheckpoint's point of view.
So mycheckpoint works in a completely different way. On one hand, it doesn't bother with caching. On the other hand, it doesn't bother with re-reads of data.
There are no staleness issues, the data is consistent as it can get (you can never get a completely atomic read of everything in MySQL), and you can issue as many calculations as you want at the price of one take of monitoring. As in Sheere's example, you can run Threads_connected/max_connections*100, mix status variables, system variables, meta-variables (e.g. Seconds_behind_master), user-created variables (e.g. number of purchases in your online shop) etc.
mycheckpoint's concept is to store data. And store it in relational format. That is, INSERT it to a table.
A sample-run generates a row, which lists all status, server, OS, user, meta variables. It's a huge row, with hundreds of columns. Columns like threads_connected, max_connections, innodb_buffer_pool_size, seconds_behind_master, etc.
mycheckpoint hardly cares about these columns. It identifies them dynamically. Have you just upgraded to MySQL 5.5?  No problem, mycheckpoint will notice it doesn't have the matching columns and will add them via ALTER TABLE. There you go, now we have a place to store them.
Running a formula like Threads_connected/max_connections*100 is as easy as issuing the following query:
SELECT Threads_connected/max_connections*100 FROM status_variables WHERE id = ...
Hmmm. This means I can run this formula on the most recent row I've just added. But wait, this also means I can run this formula on any row I've ever gathered.
With mycheckpoint you can generate graphs retroactively using new formulas. The data is there, vanilla style. Any formula which can be calculated via SQL is good to go with. Plus, you get the benefit of cross referencing in fun ways: cross reference to the timestamp at which the sample was taken (so, for example, ignore the spikes generated at this and that timeframe due to maintenance. Don't alert me on these), to system issues like load average or CPU usage (show me the average Seconds_behind_master when load average is over 8, or the average load average when slow query rate is over some threshold. You don't do that all the time, but when you need it, well, you can get all the insight you ever wanted.
Actually storing the monitored data in an easy to access format allows one to query, re-query, re-formulate. No worries about caching, you only sample once.
For completeness, all the above is relevant when the data is of numeric types. Other types are far more complicated to manage (the list of running queries is a common example).
comments powered by Disqus


Coded by Jason Kao
Written by William Soe, Chauncey Lau, and Jason Kao
Inspired by Mr. Sandler
Works Cited
Charlie Wilson’s War. Dir Mike Nichols. History Channel 2007. Film
Chasing the Frog. “Charlie Wilson’s War.” CTF. 2017: Web.
Conan, Neal. “The Real-Life Story Behind Charlie Wilson's War.” Audio blog post. Talk of the Nation.
copdr64d. “Stinger in Afghanistan.” Youtube. 10 October 2010: Web.
Crile, George. “Charlie did it.” The Financial Times. 6 June 2003: Web
Crile, George. “Charlie Wilson’s War: The Extraordinary Story of How the Wildest Man in Congress and a Rogue CIA Agent Changed the History of Our Times.” Grove Press. 6 November 2007: Book.
Johnston, David. “Wilson the Warrior.” New York Times. 25 May 2003: Web.
Kotkin, Jeremy. “Guest Post: R.I.P. Mr. Wilson, Father of the Taliban.” Registan. 13 February 2010: Web
Parry, Robert. Hollywood’s Dangerous Afghan Illusion: “Charlie Wilson’s War.” Global Research. 12 April 2013.
Tanner, Stephen. “A Military History from Alexander the Great to the Fall of the Taliban.” Da Capo Press: 2003.
The True Story of Charlie Wilson. History Channel 2007. Film.
Wolf, Paul. “Charlie did it.” Ratville Times. 7 June 2003: Web.


squeezeMerge.m
Copyright (C) 2017, Bank of Canada
This source code is licensed under the 3-Clause BSD License found in the LICENSE file in the root directory of this source tree.
This subroutine merges the training set results produced in separate blocks into a single file, in the desired dimensions.
Contents
1. Merge results from each training set block into a single training set file, in desired dimensions
mNames = fieldnames(m); for mm = 1:length(mNames) mField = getfield(m, mNames{mm}); if isa(mField, 'struct') %if the field in _m_ is also a structure mNames2 = fieldnames(mField); for mm2 = 1:length(mNames2) mField2 = getfield(mField, mNames2{mm2}); if isa(mField2, 'struct') %if field within the structure in _m_ is also a structure mNames3 = fieldnames(mField2); for mm3 = 1:length(mNames3) mField3 = getfield(mField2, mNames3{mm3}); m.(mNames{mm}).(mNames2{mm2}).(mNames3{mm3})... = squeeze(m.(mNames{mm}).(mNames2{mm2}).(mNames3{mm3})); end else %if field is not a structure m.(mNames{mm}).(mNames2{mm2})... = squeeze(m.(mNames{mm}).(mNames2{mm2})); end end else %if field is not a structure m.(mNames{mm})= squeeze(m.(mNames{mm})); end end


{% extends "base.html" %} {% block content %}
Thanks for spending some quality time with the Web site today.
Log in again


You walk into the lobby of the World of Coke. The large, open room is dusty and littered with the detritus of a thousand years. What might have been intricate floor tiling is now nothing but cracks and sharp edges. Miraculously, the large glass window panes that form the northern wall are mostly intact, leaving little in the way of weather to disturb the interior.
The architectural records you managed to scrounge up tell you that the entrance to the vault room should be on the southern wall, but part of the walkway above has collapsed, covering the door with rubble and steel girders. If you can’t get in from the normal entrance, maybe you can take advantage of the crumbling structure and enter from above?
My! This specimen is very well preserved! Polar bears were the guardians of the ancient Co’ca-Co’la fortress, where the alchemical formula is rumored to be stored. While their kind went extinct during the Great Change of Climate, during their existence they were considered to be equals with humans and shared their love of the sacred nectar.


14 May 2015
Tags: spring java| Author | Max Anderson |
| Jira Issue | PROJECT-TWO-42 |
| Docker | project-two |
NB! the content is copied from the [Revizor](https://github.com/w32blaster/revizor/wiki/How-to-prepare-developer-environment) wiki for demonstration purposes.
This article explains how to prepare your environment for the development in Grails and how to run the Revizor on your local machine.
I recommend to use tool called GVM (offsite). It allows you to install Groovy language and the Grails framework with only few commands. Please, follow instructions on the official website and install groovy and grails.
As a result, you should be able to run this commands from your console:
$ groovy -version
$ grails
Navigate to your project in the console and type the command:
grails -reloading run-app
After Grails sets up all the necessary dependencies, you will be asked to open http://localhost:8080/revizor/
URL in your browser.
In order to automate release process, I created a shell script release.sh (source code), but nevertheless I am going to explain the whole process in this chapter.
There are two options how you can deploy/execute the Revizor on your server: as standalone JAR file or as WAR archive.
To build JAR file please run this command:
grails prod build-standalone revizor.jar
As result, you will get the file revizor.jar in the target folder, that contains Jetty, database and all other settings and can be executed as simply:
java -jar revizor.jar
For all other properties, please, refer to the grails-standalone plugin manual
To build a WAR file simply run the command:
grails war
As result you will find revizor-[version].war file in the target directory. You can deploy this archive to any container you want.
Please refer to the Quick start page for details.
Generated: 06-Aug-2015


cells EPS viral expression gene cell FLUAV Figure virus OpenUrl infection type EPS-edited infected host CrossRef influenza using WSN lines uncoating wild cellular analysis correlation factors infection. (mean NCI- SD). staining Influenza cells. data protein entry nuclear replication Science fusion Abstract Cells FREE Text activity early identified performed MOI Viral Web confirmed edited virion EPS. MDCK PASTN RNP assayed involved luciferase used A.M. Virol. compared inoculated stages (B) [[#xB]] assay infections replication. uncoating. G.P.L., assays detected hpi import indicated measured putative relative screen (A) (C) (D) Banerjee Cell FLUBV V.T., Virus Wild attachment cells, control encoding endosomal factor hours immunoblot. important panel pro-viral supplemented vRNPs virions ANOVA EPS, FVG-R PASTN, Tran VGM WSN-GFP assay. defects delayed diluted expressing functions growth identify infectivity levels localization nucleus one-way reporter specifically step susceptibility test washed (E) Acid HSD Helenius, Palese, Tukey analyzed assessed biological bioluminescent bypass complemented cytoplasmic decrease determined different diffuse function highly incoming independent infection, internalization knockout medium new overexpressing p<;., polymerase post-hoc previously quantified revealed screens stably steps suppressors titers transiently viruses Biol. COMPARE Gene PASN Polymerase Representative S.R.R., acidic actin aggresome canonical conducted core did does editing enhancers enhances entry, human identifies images incubated inoculating line lines, matrix membrane occurs overexpression post-fusion post-inoculation. results role similar stained susceptibility, time two-tailed unequal virions. °C. μg/ml (Invitrogen, (blue). ;<;span AlexaFluor Cancer D). D.M. Download FBS Host Infectious J.H.K., M-positive Mehle, Multiple Nano-Glo Nat. Open PASTN) PB, Quantification R.A. RNA RNPs Renilla S). S.Y., SRK Supplemental acid attachment, bound cancer changes cold comparisons complete confidence consistent cores crucial cycle data-hide-link-title=""> data-icon-position="" dynamics endosome entry. exhibited figure fixed flow grown hits immunofluorescence import. increased machinery normalized number physiological primary punctate recombinant reduced required resistant room significant. suggesting surface t-test, tab vRNP variance. viruses. xmlns=";http://www.w.org//xhtml";


Toggle navigation
Help
On this page the 3 recent best pictures.
The best picture is the one with most of the points.
To get back to the other Rankings click on the tab "Leaderboars" on the top menu.
Search for Users
About Us
Compare Pictures
Leaderboards
Profile
Menu
All Users
FAQ
AGB's
Best of the best
The 3 best pictures overall
No.1
No.2
No.3


---
name: inline-element
url: /inline-element
title: Inline Elements
---
## Inline Element
# Sample Component
***
### Basic HTML
You can create [Item] with this basic HTML
### Advanced HTML
You can create advanced versions of [Item] with this HTML
### Sass Variables
You can customize with...
```scss
```


About Us
Contact
Sign Up
Login
Login In
Sign Up
About Us
Contact
menu
Email
Password
Remember Me!
Login
I forgot my password
New?
Create an account
© Copyright 2019