- AbstractGraphicContextSanityTest - Class in de.slothsoft.charts.test
-
We can't really tests
GraphicContext
s without a sophisticated algorithm to
verify the resulting images (which is probably better done by a human looking over the
images from example-generator), but we can sanity check if calling all methods of the
GC will work without an exception.
- AbstractGraphicContextSanityTest() - Constructor for class de.slothsoft.charts.test.AbstractGraphicContextSanityTest
-
- addBar(double) - Method in class de.slothsoft.charts.barchart.BarChart
-
Creates a new
Bar
and adds it to this chart.
- addBars(double...) - Method in class de.slothsoft.charts.barchart.BarChart
-
Creates some new
Bar
s and adds them to this chart.
- addLine(Line) - Method in class de.slothsoft.charts.linechart.LineChart
-
Adds a line to the chart.
- addLines(Line...) - Method in class de.slothsoft.charts.linechart.LineChart
-
Adds some lines to the chart.
- addRefreshListener(RefreshListener) - Method in class de.slothsoft.charts.barchart.Bar
-
Adds a refresh listener that is called whenever the source needs to be redrawn by
the GUI.
- addRefreshListener(RefreshListener) - Method in class de.slothsoft.charts.Chart
-
Adds a refresh listener that is called whenever this
Chart
needs to be
redrawn by the GUI.
- addRefreshListener(RefreshListener) - Method in class de.slothsoft.charts.common.Axis
-
- addRefreshListener(RefreshListener) - Method in class de.slothsoft.charts.common.Border
-
- addRefreshListener(RefreshListener) - Method in class de.slothsoft.charts.common.Title
-
- addRefreshListener(RefreshListener) - Method in interface de.slothsoft.charts.Drawable
-
Adds a refresh listener that is called whenever this
Drawable
needs to be
redrawn by the GUI.
- addRefreshListener(RefreshListener) - Method in class de.slothsoft.charts.internal.RefreshListeners
-
Adds a refresh listener that is called whenever the source needs to be redrawn by
the GUI.
- addRefreshListener(RefreshListener) - Method in class de.slothsoft.charts.linechart.Line
-
- addRefreshListener(RefreshListener) - Method in class de.slothsoft.charts.piechart.PieSlice
-
Adds a refresh listener that is called whenever the source needs to be redrawn by
the GUI.
- addSlice(double) - Method in class de.slothsoft.charts.piechart.PieChart
-
Creates a new
PieSlice
and adds it to this chart.
- addSlices(double...) - Method in class de.slothsoft.charts.piechart.PieChart
-
Creates some new
PieSlice
s and adds them to this chart.
- alignment(TextAlignment) - Method in class de.slothsoft.charts.common.Title
-
Sets the alignment of the title.
- AllMethodsChart - Class in de.slothsoft.charts.test
-
- AllMethodsChart() - Constructor for class de.slothsoft.charts.test.AllMethodsChart
-
- apply(double) - Method in interface de.slothsoft.charts.linechart.FunctionLine.Function
-
Applies this function to the given argument.
- Area - Class in de.slothsoft.charts
-
A simple class representing an area with start and end point.
- Area() - Constructor for class de.slothsoft.charts.Area
-
Constructor that sets start and end points to 0|0.
- Area(double, double) - Constructor for class de.slothsoft.charts.Area
-
Constructor that sets start point to 0|0.
- Area(double, double, double, double) - Constructor for class de.slothsoft.charts.Area
-
Constructor.
- area(Area) - Method in class de.slothsoft.charts.PaintInstructions
-
Sets the area to draw on.
- arrowSize(double) - Method in class de.slothsoft.charts.common.Axis
-
Sets the size of the arrow at the end of the graph.
- Axis - Class in de.slothsoft.charts.common
-
The X or Y axis of a
Chart
.
- Axis() - Constructor for class de.slothsoft.charts.common.Axis
-
Creates an axis using no converters for the coordinates.
- Axis(DoubleUnaryOperator, DoubleUnaryOperator) - Constructor for class de.slothsoft.charts.common.Axis
-
Creates an axis using converters for the coordinates.
- calculateDisplayedArea() - Method in class de.slothsoft.charts.linechart.LineChart
-
- calculateGraphArea(double, double) - Method in class de.slothsoft.charts.Chart
-
Calculates the graph area by removing the
ChartPart
s from the entire width
and height.
- calculateHeight() - Method in class de.slothsoft.charts.Area
-
- calculateTextSize(String) - Method in interface de.slothsoft.charts.GraphicContext
-
Calculates the size of the text.
- calculateTextSize(String) - Method in class de.slothsoft.charts.internal.DelegatingGraphicContext
-
- calculateTextSize(String) - Method in class de.slothsoft.charts.internal.LogGraphicContext
-
- calculateTextSize(String) - Method in class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
- calculateTextSize(String) - Method in class de.slothsoft.charts.swt.SwtGraphicContext
-
- calculateWidth() - Method in class de.slothsoft.charts.Area
-
- Chart - Class in de.slothsoft.charts
-
This is the base class this library is for.
- Chart() - Constructor for class de.slothsoft.charts.Chart
-
Default constructor.
- ChartControl - Class in de.slothsoft.charts.swing
-
A Swing control displaying a
Chart
and hooking it to the Swing framework.
- ChartControl() - Constructor for class de.slothsoft.charts.swing.ChartControl
-
Default constructor without model.
- ChartControl(Chart) - Constructor for class de.slothsoft.charts.swing.ChartControl
-
Default constructor.
- ChartControl - Class in de.slothsoft.charts.swt
-
A SWT control displaying a
Chart
and hooking it to the SWT framework.
- ChartControl(Composite, int) - Constructor for class de.slothsoft.charts.swt.ChartControl
-
Constructs a new instance of this class given its parentand a style value
describing its behavior and appearance.
- ChartPart - Interface in de.slothsoft.charts
-
This class represents a part of the
Chart
that is not used for the actual
graph.
- clip(Area) - Method in interface de.slothsoft.charts.GraphicContext
-
Restricts which area of the context can be used to drawn on.
- clip(Area) - Method in class de.slothsoft.charts.internal.DelegatingGraphicContext
-
- clip(Area) - Method in class de.slothsoft.charts.internal.LogGraphicContext
-
- clip(Area) - Method in class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
- clip(Area) - Method in class de.slothsoft.charts.swt.SwtGraphicContext
-
- color(int) - Method in class de.slothsoft.charts.barchart.Bar
-
Sets the color as ARGB int, e.g.
- color(int) - Method in class de.slothsoft.charts.common.Title
-
Sets the color as ARGB int, e.g.
- color(int) - Method in class de.slothsoft.charts.linechart.Line
-
Sets the color as ARGB int, e.g.
- color(int) - Method in class de.slothsoft.charts.piechart.PieSlice
-
Sets the color as ARGB int, e.g.
- containsPoint(double, double) - Method in class de.slothsoft.charts.Area
-
Returns true, if this area contains the point.
- convertToChartX(double) - Method in class de.slothsoft.charts.linechart.LineChart
-
Converts a graph coordinate to a chart one.
- convertToChartY(double) - Method in class de.slothsoft.charts.linechart.LineChart
-
Converts a graph coordinate to a chart one.
- convertToGraphCoordinates(double, double) - Method in class de.slothsoft.charts.linechart.LineChart
-
Converts chart coordinates to a graph ones.
- convertToGraphX(double) - Method in class de.slothsoft.charts.linechart.LineChart
-
Converts a chart coordinate to a graph one.
- convertToGraphY(double) - Method in class de.slothsoft.charts.linechart.LineChart
-
Converts a chart coordinate to a graph one.
- copy() - Method in class de.slothsoft.charts.Area
-
Creates a copy of this class.
- copy() - Method in class de.slothsoft.charts.PaintInstructions
-
Creates a copy of this class.
- createImage(Chart, int, int) - Static method in class de.slothsoft.charts.swing.SwingChartUtil
-
- createImage(Chart, int, int) - Static method in class de.slothsoft.charts.swt.SwtChartUtil
-
Creates an Image
from a chart.
- getAlignment() - Method in class de.slothsoft.charts.common.Title
-
Returns the alignment of the title.
- getArea() - Method in class de.slothsoft.charts.PaintInstructions
-
Returns the area to draw on.
- getArrowSize() - Method in class de.slothsoft.charts.common.Axis
-
Returns the size of the arrow at the end of the graph.
- getAxis() - Method in class de.slothsoft.charts.barchart.BarChart
-
Returns the axis of this line chart.
- getBackgroundColor() - Method in class de.slothsoft.charts.Chart
-
Returns the color as ARGB int, e.g.
- getBigTickSize() - Method in class de.slothsoft.charts.common.Axis
-
Returns the size of the big ticks in pixels.
- getBigTickSteps() - Method in class de.slothsoft.charts.common.Axis
-
Returns the range after which a big tick is painted on the graph.
- getBorder() - Method in class de.slothsoft.charts.Chart
-
Returns the border this chart has.
- getColor() - Method in class de.slothsoft.charts.barchart.Bar
-
Returns the color as ARGB int, e.g.
- getColor() - Method in class de.slothsoft.charts.common.Title
-
Returns the color as ARGB int, e.g.
- getColor() - Method in interface de.slothsoft.charts.GraphicContext
-
Returns the color as ARGB int, e.g.
- getColor() - Method in class de.slothsoft.charts.internal.DelegatingGraphicContext
-
- getColor() - Method in class de.slothsoft.charts.internal.LogGraphicContext
-
- getColor() - Method in class de.slothsoft.charts.linechart.Line
-
Returns the color as ARGB int, e.g.
- getColor() - Method in class de.slothsoft.charts.piechart.PieSlice
-
Returns the color as ARGB int, e.g.
- getColor() - Method in class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
- getColor() - Method in class de.slothsoft.charts.swt.SwtGraphicContext
-
- getDefaultBarColor() - Method in class de.slothsoft.charts.barchart.BarChart
-
Returns the default color of the bars as ARGB int, e.g.
- getDelegate() - Method in class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
Returns the Graphics2D.
- getDelegate() - Method in class de.slothsoft.charts.swt.SwtGraphicContext
-
Returns the GC.
- getDisplayedArea() - Method in class de.slothsoft.charts.linechart.LineChart
-
Returns the displayed area of this chart, i.e.
- getEndX() - Method in class de.slothsoft.charts.Area
-
- getEndY() - Method in class de.slothsoft.charts.Area
-
- getFont() - Method in class de.slothsoft.charts.common.Title
-
Returns the font used to paint the title.
- getFont() - Method in interface de.slothsoft.charts.GraphicContext
-
Returns the font as an enum with the font properties as hints for the actual font
used by the GUI.
- getFont() - Method in class de.slothsoft.charts.internal.DelegatingGraphicContext
-
- getFont() - Method in class de.slothsoft.charts.internal.LogGraphicContext
-
- getFont() - Method in class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
- getFont() - Method in class de.slothsoft.charts.swt.SwtGraphicContext
-
- getLog() - Method in class de.slothsoft.charts.internal.LogGraphicContext
-
- getModel() - Method in class de.slothsoft.charts.swing.ChartControl
-
Returns the
Chart
that gets displayed by this control.
- getModel() - Method in class de.slothsoft.charts.swt.ChartControl
-
Returns the
Chart
that gets displayed by this control.
- getMovementMouseButton() - Method in class de.slothsoft.charts.swing.MoveLineChartByMouseListener
-
Returns the button that needs to be pressed to move the chart.
- getMovementMouseButton() - Method in class de.slothsoft.charts.swt.MoveLineChartByMouseListener
-
Returns the button that needs to be pressed to move the chart.
- getPieBorder() - Method in class de.slothsoft.charts.piechart.PieChart
-
Returns the pie's border size.
- getPieColor() - Method in class de.slothsoft.charts.piechart.PieChart
-
Returns the color of the pie as ARGB int, e.g.
- getPosition() - Method in class de.slothsoft.charts.common.Title
-
Returns the position of the title.
- getPosition() - Method in class de.slothsoft.charts.linechart.XAxis
-
Returns the position of the x axis.
- getPosition() - Method in class de.slothsoft.charts.linechart.YAxis
-
Returns the position of the y axis.
- getPreferredArea() - Method in class de.slothsoft.charts.linechart.FunctionLine
-
Returns the area this line would like to display.
- getSize() - Method in class de.slothsoft.charts.common.Title
-
Returns the height of the title, if one is drawn.
- getSize() - Method in enum de.slothsoft.charts.Font
-
Returns the size hint.
- getSource() - Method in class de.slothsoft.charts.RefreshListener.Event
-
The source of the event.
- getSpaceOnBottom() - Method in class de.slothsoft.charts.common.Border
-
Return the border size on the bottom.
- getSpaceOnLeft() - Method in class de.slothsoft.charts.common.Border
-
Return the border size on the left.
- getSpaceOnRight() - Method in class de.slothsoft.charts.common.Border
-
Return the border size on the right.
- getSpaceOnTop() - Method in class de.slothsoft.charts.common.Border
-
Return the border size on the top.
- getStartAngle() - Method in class de.slothsoft.charts.piechart.PieChart
-
Returns the angle the pie starts drawing its slices.
- getStartX() - Method in class de.slothsoft.charts.Area
-
- getStartY() - Method in class de.slothsoft.charts.Area
-
- getStepSize() - Method in class de.slothsoft.charts.linechart.FunctionLine
-
- getText() - Method in class de.slothsoft.charts.common.Title
-
Returns the text that is the title or null
to show there is no title.
- getTickSize() - Method in class de.slothsoft.charts.common.Axis
-
Returns the size of the ticks in pixels.
- getTickSteps() - Method in class de.slothsoft.charts.common.Axis
-
Returns the range after which a tick is painted on the graph.
- getTitle() - Method in class de.slothsoft.charts.Chart
-
Returns the title this chart has.
- getValue() - Method in class de.slothsoft.charts.barchart.Bar
-
Sets the value this represents.
- getValue() - Method in class de.slothsoft.charts.piechart.PieSlice
-
Sets the value this slice represents.
- getXAxis() - Method in class de.slothsoft.charts.linechart.LineChart
-
Returns the x axis of this line chart.
- getYAxis() - Method in class de.slothsoft.charts.linechart.LineChart
-
Returns the y axis of this line chart.
- getZoomFactor() - Method in class de.slothsoft.charts.linechart.LineChart
-
Returns the factor which should be used to zoom the graph area.
- GraphicContext - Interface in de.slothsoft.charts
-
Something you can draw on.
- Graphics2DGraphicContext - Class in de.slothsoft.charts.swing
-
- Graphics2DGraphicContext(Graphics2D) - Constructor for class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
- scale(double) - Method in interface de.slothsoft.charts.GraphicContext
-
Scales the drawing canvas with the factor.
- scale(double, double) - Method in interface de.slothsoft.charts.GraphicContext
-
Scales the drawing canvas with the factor.
- scale(double) - Method in class de.slothsoft.charts.internal.DelegatingGraphicContext
-
- scale(double, double) - Method in class de.slothsoft.charts.internal.DelegatingGraphicContext
-
- scale(double, double) - Method in class de.slothsoft.charts.internal.LogGraphicContext
-
- scale(double, double) - Method in class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
- scale(double, double) - Method in class de.slothsoft.charts.swt.SwtGraphicContext
-
- setAlignment(TextAlignment) - Method in class de.slothsoft.charts.common.Title
-
Sets the alignment of the title.
- setArea(Area) - Method in class de.slothsoft.charts.PaintInstructions
-
Sets the area to draw on.
- setArrowSize(double) - Method in class de.slothsoft.charts.common.Axis
-
Sets the size of the arrow at the end of the graph.
- setBackgroundColor(int) - Method in class de.slothsoft.charts.Chart
-
Sets the color as ARGB int, e.g.
- setBigTickSize(int) - Method in class de.slothsoft.charts.common.Axis
-
Sets the size of the big ticks in pixels.
- setBigTickSteps(int) - Method in class de.slothsoft.charts.common.Axis
-
Sets the range after which a big tick is painted on the graph.
- setColor(int) - Method in class de.slothsoft.charts.barchart.Bar
-
Sets the color as ARGB int, e.g.
- setColor(int) - Method in class de.slothsoft.charts.common.Title
-
Sets the color as ARGB int, e.g.
- setColor(int) - Method in interface de.slothsoft.charts.GraphicContext
-
Sets the color as ARGB int, e.g.
- setColor(int) - Method in class de.slothsoft.charts.internal.DelegatingGraphicContext
-
- setColor(int) - Method in class de.slothsoft.charts.internal.LogGraphicContext
-
- setColor(int) - Method in class de.slothsoft.charts.linechart.Line
-
Sets the color as ARGB int, e.g.
- setColor(int) - Method in class de.slothsoft.charts.piechart.PieSlice
-
Sets the color as ARGB int, e.g.
- setColor(int) - Method in class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
- setColor(int) - Method in class de.slothsoft.charts.swt.SwtGraphicContext
-
- setDefaultBarColor(int) - Method in class de.slothsoft.charts.barchart.BarChart
-
Sets the default color of the bars as ARGB int, e.g.
- setDelegate(Graphics2D) - Method in class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
Sets the Graphics2D.
- setDelegate(GC) - Method in class de.slothsoft.charts.swt.SwtGraphicContext
-
Sets the GC.
- setDisplayedArea(Area) - Method in class de.slothsoft.charts.linechart.LineChart
-
Sets the displayed area of this chart, i.e.
- setEndX(double) - Method in class de.slothsoft.charts.Area
-
- setEndY(double) - Method in class de.slothsoft.charts.Area
-
- setFont(Font) - Method in class de.slothsoft.charts.common.Title
-
Sets the font used to paint the title.
- setFont(Font) - Method in interface de.slothsoft.charts.GraphicContext
-
Sets the font as an enum with the font properties as hints for the actual font used
by the GUI.
- setFont(Font) - Method in class de.slothsoft.charts.internal.DelegatingGraphicContext
-
- setFont(Font) - Method in class de.slothsoft.charts.internal.LogGraphicContext
-
- setFont(Font) - Method in class de.slothsoft.charts.swing.Graphics2DGraphicContext
-
- setFont(Font) - Method in class de.slothsoft.charts.swt.SwtGraphicContext
-
- setModel(Chart) - Method in class de.slothsoft.charts.swing.ChartControl
-
Sets the
Chart
that gets displayed by this control.
- setModel(Chart) - Method in class de.slothsoft.charts.swt.ChartControl
-
Sets the
Chart
that gets displayed by this control.
- setMovementMouseButton(int) - Method in class de.slothsoft.charts.swing.MoveLineChartByMouseListener
-
Sets the button that needs to be pressed to move the chart.
- setMovementMouseButton(int) - Method in class de.slothsoft.charts.swt.MoveLineChartByMouseListener
-
Sets the button that needs to be pressed to move the chart.
- setPieBorder(double) - Method in class de.slothsoft.charts.piechart.PieChart
-
Sets the pie's border size.
- setPieColor(int) - Method in class de.slothsoft.charts.piechart.PieChart
-
Sets the color of the pie as ARGB int, e.g.
- setPosition(Title.Position) - Method in class de.slothsoft.charts.common.Title
-
Sets the position of the title.
- setPosition(XAxis.Position) - Method in class de.slothsoft.charts.linechart.XAxis
-
Sets the position of the x axis.
- setPosition(YAxis.Position) - Method in class de.slothsoft.charts.linechart.YAxis
-
Sets the position of the y axis.
- setPreferredArea(Area) - Method in class de.slothsoft.charts.linechart.FunctionLine
-
Sets the area this line would like to display.
- setSize(double) - Method in class de.slothsoft.charts.common.Title
-
Sets the height of the title, if one is drawn.
- setSpace(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size in all four directions.
- setSpaceOnBottom(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size on the bottom.
- setSpaceOnLeft(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size on the left.
- setSpaceOnRight(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size on the right.
- setSpaceOnTop(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size on the top.
- setStartAngle(double) - Method in class de.slothsoft.charts.piechart.PieChart
-
Sets the angle the pie starts drawing its slices.
- setStartX(double) - Method in class de.slothsoft.charts.Area
-
- setStartY(double) - Method in class de.slothsoft.charts.Area
-
- setStepSize(double) - Method in class de.slothsoft.charts.linechart.FunctionLine
-
- setText(String) - Method in class de.slothsoft.charts.common.Title
-
Sets the text that is the title or null
to show there is no title.
- setTickSize(int) - Method in class de.slothsoft.charts.common.Axis
-
Sets the size of the ticks in pixels.
- setTickSteps(int) - Method in class de.slothsoft.charts.common.Axis
-
Sets the range after which a tick is painted on the graph.
- setUp() - Method in class de.slothsoft.charts.test.AbstractGraphicContextSanityTest
-
- setValue(double) - Method in class de.slothsoft.charts.barchart.Bar
-
Sets the value this represents.
- setValue(double) - Method in class de.slothsoft.charts.piechart.PieSlice
-
Sets the value this slice represents.
- setZoomFactor(double) - Method in class de.slothsoft.charts.linechart.LineChart
-
Sets the factor which should be used to zoom the graph area.
- size(double) - Method in class de.slothsoft.charts.common.Title
-
Sets the height of the title, if one is drawn.
- snipNecessarySpace(Area) - Method in interface de.slothsoft.charts.ChartPart
-
This method removes space from the existing area to make room for this part.
- snipNecessarySpace(Area) - Method in class de.slothsoft.charts.common.Border
-
- snipNecessarySpace(Area) - Method in class de.slothsoft.charts.common.Title
-
- space(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size in all four directions.
- spaceOnBottom(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size on the bottom.
- spaceOnLeft(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size on the left.
- spaceOnRight(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size on the right.
- spaceOnTop(int) - Method in class de.slothsoft.charts.common.Border
-
Sets the border size on the top.
- startAngle(double) - Method in class de.slothsoft.charts.piechart.PieChart
-
Sets the angle the pie starts drawing its slices.
- startX(double) - Method in class de.slothsoft.charts.Area
-
- startY(double) - Method in class de.slothsoft.charts.Area
-
- stepSize(double) - Method in class de.slothsoft.charts.linechart.FunctionLine
-
- SwingChartUtil - Class in de.slothsoft.charts.swing
-
Some util classes to generate stuff surrounding the
Chart
in Swing.
- SwtChartUtil - Class in de.slothsoft.charts.swt
-
Some util classes to generate stuff surrounding the
Chart
in SWT.
- SwtGraphicContext - Class in de.slothsoft.charts.swt
-
A
GraphicContext
implementation using the SWT
GC
to draw on whatever
you like.
- SwtGraphicContext(GC) - Constructor for class de.slothsoft.charts.swt.SwtGraphicContext
-
Constructor.
- value(double) - Method in class de.slothsoft.charts.barchart.Bar
-
Sets the value this represents.
- value(double) - Method in class de.slothsoft.charts.piechart.PieSlice
-
Sets the value this slice represents.
- valueOf(String) - Static method in enum de.slothsoft.charts.common.Title.Position
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.slothsoft.charts.Font
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.slothsoft.charts.linechart.XAxis.Position
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.slothsoft.charts.linechart.YAxis.Position
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.slothsoft.charts.TextAlignment
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum de.slothsoft.charts.common.Title.Position
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.slothsoft.charts.Font
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.slothsoft.charts.linechart.XAxis.Position
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.slothsoft.charts.linechart.YAxis.Position
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.slothsoft.charts.TextAlignment
-
Returns an array containing the constants of this enum type, in
the order they are declared.


Welcome to WRC
WRC Technologies is a custom software development company with core expertise in developing high-performance web-based software applications utilising the leading software technologies to build complete web applications for technology-based business management.


Hands-On Continuous Integration and Delivery
There are several terms that are important when trying to learn about Continuous Integration and Continuous Delivery:
Definition of Automation
Automation is essentially any task that is completed without human interaction. Let us say that you manually test a UI feature, if you write a script instead of manually test it than it can be said that you have automated the task.
Definition of Continuous Integration
Continuous Integration can be viewed as a software engineering task where source code is merged and tested in a version controlled project such as Git.
Usually a Continuous Integration Build is triggered via source control management, meaning a developer pushes a commit to a version control system such as git.
A Continuous Integration Build is more than just a compilation step. It can consist of a compilation step, a testing phase, a code inspection phase, and a deployment phase.
A Continuous Integration Build can act as a kind of verification step that checks that your software is working as a cohesive unit.
Definition of Continuous Delivery
Continuous Delivery (CD) is the point at which you deliver a software product to your end users.
A product is only useful if your intended users can actually use the product.
Business Impact of CI/CD and automation
Good CI/CD practices can fundamentally change the way an organization runs.
If automation practices are effectively added on a CI/CD pipeline the quality of the software product will improve drastically.
It is important to have a good set of unit tests in the first build of a CI/CD pipeline.
We may add additional CI builds that serve as a full regression test suite for our software product.
Later builds may incorporate Load Tests and Smoke Tests.
Using Jenkins for CI/CD
You can use freestyle scripting in Jenkins and the new Jenkins 2.0 Pipeline Syntax along with Docker to create a more declarative CI Build System.
Here is an example of a Jenkins Pipeline File:
pipeline {
agent {
docker {
image 'node:10-alpine'
args '-v /Users/jean-marcelbelmont/jenkins_data'
}
}
stages {
stage('Build') {
steps {
sh 'npm install'
}
}
stage('Cucumber Tests') {
steps {
sh 'npm run acceptance:tests'
}
}
}
}
Here we create a series of stages with the first stage creating a docker image to setup our environment.
Notice that the docker block has image for the docker image and args for the arguments which in this case specify the location of the data mount.
In the next stage of the pipeline we get our environment ready to build by issuing the command npm install
In the last stage we run an acceptance test suite.
Here is a screenshot of the Jenkins Pipeline:
Using Travis CI for CI/CD
Travis CI is a hosted and automated solution for CI Builds.
The main difference between Travis CI and Jenkins is that Jenkins is a self managed automation solution for CI/CD. You can configure Jenkins in a fully customized manner whereas Travis CI is generally used in open source software projects.
Here is a .travis.yml script to show a possible CI/CD setup:
language: go
services:
- docker
go:
- 1.9.x
os:
- linux
sudo: false
env:
matrix:
- PORT=8080 ENVIRONMENT_NAME=travis
global:
secure: AvDa6vD77eIF3JifNegQ0cat2SS0vZpa9ami7E8LqYcnl4iJ3D47RHpR1eSkRrSwT6hJIsSG93y8Yi3WRSI3N8UkAuPs/tbr6mpaFwAHpZ0A+gxOf0Xt/SdV7xc2JEOuBjlwAoK23EXvvNyJwJxzAmg+ye5OzTv57LZu7tbWDoCT5Y1D8WD4IkDoFJUSDoG6SLwY0MWgd8YblhnpSIdWxn7H8cadJsjqhvnTkdyslx7s0rtpLsslNmBOgKu9yHdxAtxHXgBZnLHC9xLv41MDKJ1YNU6PqI/JUK4zHgWEHzXd4ZEATdDiq29WKtMIyJvcoVV8Kr8Tcm41ZuyFH6ZtzQGZOj1lyCmrI+qenMEhr7CvsPFOHpx0zZFQkjPYN9qDQAexzs5zEODMA9qjwpaaBXYm3xC7GHxLYUlXB+LpgB8bgmGIy0jax8Eyqlw8VRsmqyLBuPr5VU4W2ZV7GNYladNCLsNk/0VKWb6qdwzt4nXvCUZwbLeG8+TPIvceItxPA9MBxqdydVyfmwUB4aZSs76KJiALTxn0RcthgN+PE4RP6rcHlmsksd3/uup/LBASaK3yZH+DfFRh5VdzHGSqsYwP1Y2vxmnnWNltUfZMBW3WgPEO2sN29aMplcSFAVK8O2RNbBC2PDPRbmLzT7vrVZYKwCDQi6ywCVeS0xuv7js=
# This creates the following global variable `COVERALLS_TOKEN`
before_install:
- export PATH=$PATH:$HOME/gopath/bin
install:
- make travis-install
before_script:
- echo -e "Host github.com\n\tHostName github.com\n\tIdentityFile ~/.ssh/id_rsa\n" >> ~/.ssh/config
script:
- make travis-script
after_success:
- if [ -n "$TRAVIS_TAG" ]; then rm -rf ./bin; fi
- if [ -n "$TRAVIS_TAG" ]; then curl -sL https://git.io/goreleaser | bash; fi
Here is a breakdown of the travis yml script:
In the language field we specify the programming language which is Golang
In the services field we specify the services we expect the Travis Virtual Machine to start on each CI build for us.
In the go field we specify the go version we want to use
In the os field we specify the operating system we expect to use which can be mac or linux which you can read more about in Travis Docs
In the sudo field you specify the following values:
- required
- You will get a fully virtualized environment
- false
- You will get a container based environment
In the env field we specify environment variables to be set for our CI build, which in this case consist of a matrix field which has the environment variables of PORT and ENVIRONMENT. The global field has an encrypted variable that we created with the travis cli.
There are several lifecycle events that we can use in travis ci:
before_install lifecycle event
This event is useful when you want to set some values and/or install some dependencies before the actual default install lifecycle event
install lifecycle event
This event is done on every build and essentially gets the environment ready for use to run your tests, lint code and more.
before_script lifecycle event
This event is useful when you want to run some actions before the actual script lifecycle event.
script lifecycle event
This event will comprise the bulk of the actions you will do in your CI build
after_success lifecycle event
This event is used when you want to do some actions on a successful CI build.
Notice that we are using Makefile tasks in the script section.

In the travis-script makefile task we run a lint task, run tests, and push a code coverage report.
Using Circle CI for CI/CD
Circle CI like Travis CI is a hosted and managed automation solution.
Circle CI uses a yaml syntax like Travis CI but has a very nice dashboard for viewing CI Builds.
Here is a sample yml file with CI/CD tasks:
version: 2
jobs:
build:
working_directory: /go/src/github.com/packtci/go-template-example-with-circle-ci
docker:
- image: circleci/golang:1.9
steps:
- checkout
- run:
name: "Print go version"
command: go version
- run:
name: "Run Unit Tests"
command: go test
integration:
docker:
- image: cypress/base:8
environment:
## this enables colors in the output
TERM: xterm
steps:
- checkout
# special step to restore the dependency cache
- restore_cache:
key: v2-{{ checksum "package.json" }}
- run: npm install
# special step to save the dependency cache
- save_cache:
key: v2-{{ checksum "package.json" }}
paths:
- ~/.npm
- ~/.cache
- run:
name: "Run Integration Tests"
command: npm test
deploy:
docker:
- image: buildpack-deps:trusty
steps:
- checkout
- run:
name: Deploy Master to Heroku
command: |
git push<EMAIL_ADDRESS>master
workflows:
version: 2
build_integration_and_deploy:
jobs:
- build
- integration:
requires:
- build
- deploy:
requires:
- integration
Notice that here we create several steps for the CI/CD build.
This is using a yaml syntax like Travis CI with different fields obviously.
The version field is where we specify the particular version of Circle CI syntax.
The jobs field is where we specify each job we want to run for Circle CI.
Using the docker field we can specify the particular docker images we need for our CI builds.
The workflows field is where we can schedule the jobs to run.
Here is a screenshot of the Circle CI build steps:
Hands On Continuous Integration and Delivery
You can read more about Continuous Integration and Delivery by reading my books:


Student Details
Please fill in the following details:
Student Name
Register Number
Computer Graphics
Analysis and Design of Algorithms
System Programming
Web Programming


Hit the Sigma/Sum button, ∑, then enter the LaTeX markup of a math expression.
For example, try entering this:
c = \pm\sqrt{a^2 + b^2}
or this:
f(x) = \int_{-\infty}^\infty \hat f(\xi)\,e^{2 \pi i \xi x} \,d\xi
But make sure you select a good spot for it down here somewhere, as it will insert inline.


new secret_share(jiff, ready, promise, value, holders, threshold, Zp) → {secret-share}
Create a new share.
A share is a value wrapper with a share object, it has a unique id
(per computation instance), and a pointer to the instance it belongs to.
A share also has methods for performing operations.
Parameters:
| Name | Type | Description |
|---|---|---|
jiff |
jiff-instance | the jiff instance. |
ready |
boolean | whether the value of the share is ready or deferred. |
promise |
promise | a promise to the value of the share. |
value |
number | the value of the share (null if not ready). |
holders |
array | the parties that hold all the corresponding shares (must be sorted). |
threshold |
number | the minimimum number of parties needed to reconstruct the secret. |
Zp |
number | the modulos under which this share was created. |
- Source:
Returns:
the secret share object containing the give value.
- Type
- secret-share
Members
holders :array
Type:
- array
- Source:
id :string
Type:
- string
- Source:
jiff :jiff-instance
Type:
- jiff-instance
- Source:
promise :promise
Type:
- promise
- Source:
ready :boolean
Type:
- boolean
- Source:
threshold :array
Type:
- array
- Source:
value :number
Type:
- number
- Source:
Zp :number
Type:
- number
- Source:
Methods
add(o) → {share-object}
Generic Addition.
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
cadd(cst) → {share-object}
Addition with a constant.
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant to add. |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
ceq(cst, l) → {share-object}
Equality test with a constant.
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant to compare with. |
l |
number | the maximum bit length of this share. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 0 if this = o, and 1 otherwise.
- Type
- share-object
cgt(cst, l) → {share-object}
Greater than with a constant.
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant to compare with. |
l |
number | the maximum bit length of this share. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 1 if this > cst, and 0 otherwise.
- Type
- share-object
cgteq(cst, l) → {share-object}
Greater than or equal with a constant.
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant to compare with. |
l |
number | the maximum bit length of this share. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 1 if this >= cst, and 0 otherwise.
- Type
- share-object
clt(cst, l) → {share-object}
Less than with a constant.
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant to compare with. |
l |
number | the maximum bit length of this share. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 1 if this < cst, and 0 otherwise.
- Type
- share-object
clteq(cst, l) → {share-object}
Less than or equal with a constant.
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant to compare with. |
l |
number | the maximum bit length of this share. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 1 if this <= cst, and 0 otherwise.
- Type
- share-object
cmult(cst) → {share-object}
Multiplication by a constant.
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant to multiply to this share. |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
cneq(cst, l) → {share-object}
Unequality test with a constant.
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant to compare with. |
l |
number | the maximum bit length of this share. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 0 if this = o, and 1 otherwise.
- Type
- share-object
csub(cst) → {share-object}
Subtraction with a constant.
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant to subtract from this share. |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
cxor_bit(cst) → {share-object}
bitwise-XOR with a constant (BOTH BITS).
Parameters:
| Name | Type | Description |
|---|---|---|
cst |
number | the constant bit to XOR with (0 or 1). |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
eq(o, l) → {share-object}
Generic Equals.
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
error()
Logs an error.
- Source:
gt(o, l) → {share-object}
Generic Greater than.
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
gteq(o, l) → {share-object}
Generic Greater or equal.
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
lt(o, l) → {share-object}
Generic Less than.
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
lteq(o, l) → {share-object}
Generic Less or equal.
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
mult(o) → {share-object}
Generic Multiplication.
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
neq(o, l) → {share-object}
Generic Not Equals.
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
not() → {share-object}
Negation of a bit.
This has to be a share of a BIT in order for this to work properly.
- Source:
Returns:
this party's share of the result (negated bit).
- Type
- share-object
open(success, error) → {promise}
Reveals/Opens the value of this share.
Parameters:
| Name | Type | Description |
|---|---|---|
success |
function | the function to handle successful open. |
error |
function | the function to handle errors and error messages. [optional] |
- Source:
Throws:
error if share does not belong to the passed jiff instance.
Returns:
a (JQuery) promise to the open value of the secret.
- Type
- promise
open_to(parties, success, error)
Reveals/Opens the value of this share to a specific array of parties.
Parameters:
| Name | Type | Description |
|---|---|---|
parties |
array | the ids of parties to reveal secret to. |
success |
function | the function to handle successful open. |
error |
function | the function to handle errors and error messages. [optional] |
- Source:
pick_promise(o) → {promise}
Joins the pending promises of this share and the given share.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the other share object. |
- Source:
Returns:
the joined promise for both shares (or whichever is pending).
- Type
- promise
receive_share(value)
Receives the value of this share when ready.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
number | the value of the share. |
- Source:
refresh() → {secret-share}
Reshares/refreshes the sharing of this number, used before opening to keep the share secret.
- Source:
Returns:
a new share of the same number.
- Type
- secret-share
sadd(o) → {share-object}
Addition of two secret shares.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the share to add to this share. |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
seq(o, l) → {share-object}
Equality test with two shares.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the share to compare with. |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 1 if this = o, and 0 otherwise.
- Type
- share-object
sgt(o, l) → {share-object}
Greater than with another share.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the other share. |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 1 if this > o, and 0 otherwise.
- Type
- share-object
sgteq(o, l) → {share-object}
Greater than or equal with another share.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the other share. |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 1 if this >= o, and 0 otherwise.
- Type
- share-object
slt(o, l) → {share-object}
Less than with another share.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the other share. |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 1 if this < o, and 0 otherwise.
- Type
- share-object
slteq(o, l) → {share-object}
Less than or equal with another share.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the other share. |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 1 if this <= o, and 0 otherwise.
- Type
- share-object
smult(o) → {share-object}
Multiplication of two secret shares through Beaver Triplets.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the share to multiply with. |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
sneq(o, l) → {share-object}
Unequality test with two shares.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the share to compare with. |
l |
number | the maximum bit length of the two shares. [optional] |
- Source:
Returns:
this party's share of the result, the final result is 0 if this = o, and 1 otherwise.
- Type
- share-object
ssub(o) → {share-object}
Subtraction of two secret shares.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the share to subtract from this share. |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
sub(o) → {share-object}
Generic Subtraction.
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
sxor_bit(o) → {share-object}
bitwise-XOR of two secret shares OF BITS.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
share-object | the share to XOR with. |
- Source:
Returns:
this party's share of the result.
- Type
- share-object
toString() → {string}
Gets a string representation of this share.
- Source:
Returns:
the id and value of the share as a string.
- Type
- string
valueOf() → {number}
Gets the value of this share.
- Source:
Returns:
the value (undefined if not ready yet).
- Type
- number
xor_bit(o) → {share-object}
Generic XOR for bits (both this and o have to be bits to work correctly).
Uses either the constant or secret version of this operator depending on type of paramter.
Parameters:
| Name | Type | Description |
|---|---|---|
o |
number/share-object | the other operand (can be either number or share). |
- Source:
Returns:
this party's share of the result.
- Type
- share-object


dist_proto.epmd_client module¶
The module represents EPMD connection and implements the protocol. EPMD is a daemon application, part of Erlang/OTP which registers Erlang nodes on the local machine and helps nodes finding each other.
-
class
pyrlang.dist_proto.epmd_client.
EPMDClient
¶ Bases:
asyncio.protocols.Protocol
An EPMD client connection which registers ourselves in EPMD and can do other queries.
-
async
alive2
(dist) → bool¶ Send initial hello (ALIVE2) to EPMD
- Parameters
dist (pyrlang.dist.distribution.ErlangDistribution) -- The distribution object from the node
- Return type
bool
-
close
()¶ Closing EPMD connection removes the node from available EPMD nodes list.
-
async
connect
() → bool¶ Establish a long running connection to EPMD, will not return until the connection has been established.
- Return type
True if connection succeeded within 5 tries, else False
-
host_
= None¶ The local EPMD is always located on the local host.
-
port_
= None¶ We expect local EPMD to be available on the default port.
-
static
query_node
(node_name: str) → [typing.Tuple[str, int], None]¶ Query EPMD about the port to the given node.
- Parameters
node_name -- String with node "name@ip" or "name@hostname"
- Returns
Host and port where the node is, or None if not found
- Return type
[tuple(str, int), None]
- Throws EPMDClientError
if something is wrong with input
- Throws EPMDConnectionError
if connection went wrong
-
async


商家名称
{{withdraw_detail.shop_name}}
开户银行
{{withdraw_detail.bankname}}
银行账号
{{withdraw_detail.bankcard}}
开户行所在地
{{withdraw_detail.position}}
开户所在支行
{{withdraw_detail.bankbranch}}
开户名
{{withdraw_detail.username}}
提现余额
{{withdraw_detail.cash_money}}
申请时间
{{withdraw_detail.apply_time}}
实到帐金额
{{withdraw_detail.real_money}}
扣除费用
{{withdraw_detail.cost_money}}
申请状态
{{withdraw_detail.status}}
处理时间
{{withdraw_detail.handle_time}}
交易单号
{{withdraw_detail.transaction_no}}
备注
{{withdraw_detail.supplier_reason}}


{{ primarySelected.name }} - Primary Access {{ secondarySelected.name }} - Secondary Access
Oh, there's been a problem logging you in
You're logged in. We're just getting your pages. One moment, please...
Connect to Facebook and get your pages.
You don't have any facebook pages on that account, please try again
If you already know your page ID, type it here.
Your page: {{ facebook_username }}
You don't have a facebook page set up


Generate brick mosaics from an image or matrix with customization options.
image_to_mosaic( img, img_size = 48, color_table = NULL, method = "cie94", color_palette = c("universal", "generic", "special"), trans_bg = "White", dithering = FALSE, contrast = 1, use_bricks = NULL, brightness = 1, warhol = 1:3 )
| img | Image matrix to convert into mosaic. Usually from |
|---|---|
| img_size | Size of output image in pixel, where one pixel = one 'brick'. Use a single value (e.g. |
| color_table | Defaults to |
| method | The method to use for comparison. Options are 'euclidean', 'cie1976', 'cie94', 'cie2000', or 'cmc'.
See |
| color_palette | Brick color rarity to use. Defaults to all colors: 'universal' (most common), 'generic', and 'special' (least common). This is useful when trying to build the mosaic out of real bricks.
Use "bw" for only grayscale bricks. Ignored if a |
| trans_bg | If |
| dithering | Improves color of large, photo-realistic mosaics. |
| contrast | For |
| use_bricks | Array of brick sizes to use in mosaic. Defaults to |
| brightness | A value >1 will increase the brightness of the image while a positive value <1 will decrease the brightness. |
| warhol | Array of values |
A list with element Img_lego
containing a data frame of the x- & y-coordinates, R, G, B channels, and mapped color of each brick (pixel).
Other Mosaics:
build_mosaic()
# Import a jpeg or png demo_file <- system.file("extdata", "demo_img.jpg", package = "brickr", mustWork = TRUE) demo_image <- jpeg::readJPEG(demo_file) #Create a 24x24 mosaic # \donttest{ demo_image %>% image_to_mosaic(img_size = 24) %>% build_mosaic()# } #Only use the two more common tiers of colors # \donttest{ demo_image %>% image_to_mosaic(img_size = 24, color_palette = c("universal", "generic")) %>% build_mosaic()# } #Be more prescriptive with colors using 'color_table'. # Here, we prevent all blues from being used lego_colors_no_blue = lego_colors %>% dplyr::filter(!grepl("[Bb]lue|[Aa]zur", Color)) # \donttest{ demo_image %>% image_to_mosaic(img_size = 24, color_table = lego_colors_no_blue) %>% build_mosaic()# } #Color matching is done with the 'farver' package. There are different method. # Change the method to euclidean (RGB distance matching) # \donttest{ demo_image %>% image_to_mosaic(img_size = 24, method = "euclidean") %>% build_mosaic()# } #Change the default size of bricks to use. # In this extreme example, use 4x6s for the background, 1x1 everywhere else # \donttest{ demo_image %>% image_to_mosaic(img_size = 24, use_bricks = c("4x6")) %>% build_mosaic()# }


(-. weeks Low Propranolol Baseline Yes migraine -.) Migraine-episodic propranolol Headache Metoprolol Parallel headache Placebo Crossover Flunarizine CI: treatment study IHS beta-blockers migraine. Moderate metoprolol placebo trials Medicine Cephalalgia Nadolol trial Ad-hoc headaches ./j.-...x prophylactic prophylaxis High Neurol Pindolol Topiramate outcomes flunarizine {border-style Amitriptyline chronic episodic tension-type Table effect frequency included px;} #ffffff;} Timolol USA analysis compared double-blind effective evidence Acid China Migraine Migraine-unspecified Quality comparisons migraine: studies using Germany Health Heterogeneity Med comparison Acta Bisoprolol CI) Sciences comparative prophylaxis. quality randomized reduction review topiramate trials. Acupuncture Comparison Fig Scand common controlled efficacy meta-analysis Atenolol Clinical Data Difference Mean effectiveness headache. single versus (RR: (mg) -., clinical including point primary (NS) Headaches data headaches/month network (HA Biofeedback Clonidine Cochrane Cyclandelate Epidemiology Frequency Hedman Neurology Norway Sweden Writing amitriptyline beta-blocker crossover effects headaches, likely placebo-controlled pooled preventing prophylaxis: reported Denmark Nifedipine Nimodipine Signs WFNRG Weighted acid baseline: combination curation duration editing number outcome patients prevention px; reduced results study. timolol {font-family (SMD: Behavioral Candesartan Chinese Department Management Nebivolol Time Tolfenamic analgesic assessed available combined commonly did disability font-size hours, impact mg) migraines nadolol reducing studied time trials, vs. (%) (headaches/month) .)) .), ./journal.pone..t Chronic Comparative Femoxetine Headaches: Prophylactic Research Study Symptoms [], average bisoprolol different double; flunarizine, hoc low management month, provided similar use (.) (.–.) (RR) (baseline -.). .–.). Alprenolol American Aspirin Beta-blocker Clin Clomipramine Diener Episodic Europe Evidence Fluoxetine International Jackson Kangasniemi Linde Lipton Medical Nortriptyline Oxprenolol Rasmussen Riboflavin Severity Trial United Valproic Weeks based benefit bias border-color border-width difference doses double-blind, given graded ha/month, important life medications month. pharmacologic reduce serotonin solid; systematic {font-style {font-weight -week .). .)/. ./s--- .–., Analysis Controlled Diagnostic Diener, Grotemeyer Hartung India Italy JAMA Laboratory Medicine, Methods Migraines NNT: Naproxen Outcomes Pathology Pizotifen Prevalence Ryan Secondary Standardized Stewart Suppl Table. Tension-type Therapeutic Wang acid, additional antidepressants arm beta-blockers, bold clonidine, comparing conclusions courier; cross-over differences em; evaluated fluoxetine interventions low-quality migraine, pindolol placebo. prevalence previous propranolol, pt;} randomized, research sample secondary severity significant size specific trial. type unlikely used weeks.


Welcome to Pizzarama
What size pizza would you like?
Small
Medium
Large
What toppings would you like on your pizza?
Cheese
Pepperoni
Olives
Peppers
Please choose a topping.
Add Pizza to Cart
Shopping Cart:
SIZE:
TOPPINGS:
PRICE:
Proceed to Checkout


Toggle navigation
-21°C SNOWFLAKE
refreshing, fluffy shaved milk
HOME
ABOUT US
MENU
FAQs
CONTACT US
Menu
Snowflake
Toast
Tea
Previous
Next
Korean Style
7.99
with soybean powder, mochi, almonds, and red bean.
Oreo
7.99
with oreo crumbs, almonds, and ice cream.
Thai Tea
7.99
with cheese cream, almonds, and boba.
Cantaloupe
7.99
with cantaloupe and ice cream.
Mango Cheesecake
7.99
with mango, cheesecake, and ice cream.
Strawberry
7.99
with strawberry and ice cream.
Berry Berry
7.99
with strawberry, blueberry, cranberry, and ice cream.
Matcha
7.99
with red bean and ice cream.
Previous
Next
Toast
5.49
Warm honey toast with butter.
Injeolmi Red Bean
5.99
Buttery honey toast topped with almond, soybean powder, red bean mochi, and condensed milk.
Strawberry
6.25
Buttery honey toast topped with condensed milk, ice cream, strawberries, whipped cream, and chocolate and strawberry syrup.
Mango
6.25
Buttery honey toast topped with mango, condensed milk, whipped cream, mango syrup, and ice cream.
Banana
6.25
Buttery honey toast topped with banana, condensed milk, whipped cream, chocolate syrup, and ice cream.


Advanced D3: More on selections and data; scales; axis
Material based on Scott Murray’s book and the Selection Tutorial, various other examples by Mike Bostock, and Jerome Cukier’s tutorial on scales
Selections and Data
First, let’s go over how selections and data mapping works again. We talked about the selection methods select()
and selectAll()
, that take CSS3 identifiers. That means that we can select on elements - select("svg")
, classes - selectAll(".className")
, IDs - selectAll("#cancelButton")
, but also other selection expression such as parent child relationships - selectAll("p > span")
. Here is a simple example:
So, this is not new, but let’s take a look at the data structure the selection uses:
The selections return an array of an array with all matching objects. You can also see that this is not actually the original array implementation, but instead a sub-class of array that exposes much of its functionality, but also overrides some of its methods. The parentNode
, for example, isn’t part of the original array implementation, and we can see that the prototype of the object is set to Array
.
Mapping Data
When we map data to that object, we can see where the data is stored:
See output in new page.
If we look at the properties of the array after we assigned the data, we can see a field __data__
that holds the actual data values. We then can access these data values through the first parameter passed into a function .attr("width", function (d, i) {return d;})
. The second parameter is the index of the current element, in the order of how they occur in the DOM.
Typically, we want to be able to create visualizations from skratch, i.e., we don’t want to select existing elements but add new ones. We can do this using the enter
function:
The selection right after the data assignment contains an uninitialized array of length 3. There’s nothing there, but we can use the enter()
function of D3 to add elements.
After enter()
was called, the array contains objects with the __data__
property set. Next we can use D3 functions, such as the append()
to assign specific DOM elements to the arrays. Again, we only have to declare what we want to do once, and D3 will take care of the looping for you.
However, the things that we apply to the enter selection, do not apply to elements already in the slection. So, if we for example add a rectangle <rect x="0" y="10" height="10" width="50"></rect>
to the above svg, we will see that the data is not applied to it.
Here is an example that handles enter and update correctly:
Updating
See output in new page.What happens here is that we define what to do when we add something (we add a rectangle and set its class), what happens when we remove something (we just remove it), and when we update something (we apply the new data elements).
Transitions
That’s great, but now let’s look at how we can do this with transitions:
See output in new page.That’s pretty smooth. We initialize new bars with a width of 0 and fade them in as they grow. Notice that D3 interpolates opacity, color, position and size as we use transitions. For removing elements we simply fade them out with opacity.
Groupings: Handling Nested Elements
In many cases we want to apply data not directly to low-level SVG elements, but instead use a hierarchy of elements. For the bar chart, for example, we might want to add a label showing the actual value. There are two approaches to doing this:
- Laying out the numbers and the bars independently so that they match up
- Using a group element to define the commonalities between the bars and the numbers (i.e., the y position in our example).
The latter is the better approach, as we only have to define the common aspects of the group once. This might not make much difference for only labels and bars, but we could also add tick marks on the bar charts, an overlay for highlights, etc. So, let’s try to add groups and take a similar approach to the example before:
See output in new page.
This doesn’t work as we would hope. The update isn’t handled correctly. When we look at the selection we can see why: the data in the g
element is updated correctly, but not the data in the rect
or the text
.
We can fix this by separating the update from the enter and by explicitly selecting the lower-level elements (the rectangle and the text). The selection propagates the data to the actual elements:
See output in new page.Scales
Up to this point, our data has conveniently had dimensions that we could directly plot without any data transformation. However, in your homework, for example, you used Anscombe’s quartett, and the data there doesn’t neatly match to pixels, so you had to do some manual data transformation. Generally speaking what we are looking for a function f()
that maps an input dataset D
to a derived dataset D'
, i.e., D'=f(D)
. Naturally, we want to choose f()
such that the resulting derived dataset can be directly used for mapping.
Here is an example of a datset that is not suitable for direct plotting:
See output in new page.Let’s write a little function that we can call so that this is dataset can be easily plotted:
See output in new page.That’s nice! We could simply do this for any kind of data we have and could achieve our goal. However, the possibility for functions is endless. For example, we could not only do linear scales, but equally do logarithmic scales, power scales, discrete scales, etc. And we don’t always want to write output in screen coordinates, we could equally want to vary the saturation of a color, etc. Finally, we could have ordinal data (we’ll talk about data types in one of the early theory lectures), or temporal data. So you can see that there are many possibilities to transform your input data to achieve a particular visual mapping. Fortunately, D3 provides a set of powerful scales:
See output in new page.Here we’ve successfully used a linear D3 scale. There are a couple of new things here. First, we create a scale of the linear type with the call d3.scale.linear()
. Next, we define the input domain and the output range. The domain defines the values that we expect in our dataset. Here we chose to use an input domain starting at 0 and up to the highest value of the dataset, which we can conveniently determine by using D3’s d3.max()
function. We could use d3.min()
to define the lower bound of the range, however, that would mean that our bar-chart doesn’t start at 0, and this is something that we will learn is almost always bad!
The range defines which output values we want from the scale, i.e., we’d typically pick something that we can easily use to draw on the screen.
Clamping
What happens when you plot a value that’s larger than your domain?
See output in new page.Color Scale
The next example shows how we can use a color scale to redundantly encode a bar chart with positive and negative values:
See output in new page.Setting the color scale is very convenient. We simply define a range of three points, the minimum, zero and the maximum, and identify the three corresponding colors (darkred, lightgray, and steelblue) in the range definition. When calling upon the scale, D3 will interploate between the colors for you.
Axes
Drawing Axes and legends is critical for data visualization. All of our examples, with the exception of the labelled bar charts, didn’t really tell us about the size of the data. However, drawing axes well is a lot of work. Fortunately, D3 has extensive support for axes. Here is an example based on our previous bar chart:
See output in new page.This worked! We create a new axes by calling d3.scale.linear()
and tell it its value range by passing the relevant scale. We then append the scale to the svg with this call: svg.append("g").call(xAxis)
. Now, we can see that it’s not very pretty, that it overlaps with our bar charts and that some of the numbers are truncated because they go beyond the svg. To fix this we have to style the chart and add some margins.
This is a much nicer bar chart! We’ve used CSS to style the axis, the nice()
function for the scale to get round axis labels, introduced a padding and a background for the chart. Of course, this chart doesn’t react appropriately to updates, but we’ve seen before how that works.
More Complex Data
Up to this point we have only worked with one-dimensional arrays. Here is an example on how to handle arrays of objects, where each object has multiple values. We have three types of values: products (labels), types of products (categories), and tons (numerical data). We’re showing the data in a colored bar chart, where the color corresponds to the product type and the bar width to the tonnage. In addition to that, you can sort the bar chart based on the three data values: alphabetically by type and product, numerically by tonnage.
Among the new concepts introduced in this example are:
- How to access data in objects.
- How to sort data.
- How to properly deal with padding in an SVG.
- How to use a scale with rangeBoundBands to evenly space the bars.
- How to update a scale.
- How to ensure object consistency for transitions with the key function of the data mapping.
- How to use the object notation to define many attributes at the same time.
An alternative to the sorting as used here would be to use D3’s sort feature for selections.


Create a tender with your specification, providing what your requirements. Now spend time doing what you like.
We do the magic behind the scene and find suitable suppliers.
You receive the best quote for your tender within 24 hours.
Awesome Product! I found the best Web Developer in London
Clients who trust Quotender
Select a Category below


--- title: Welcome date: 2008-04-11 00:00:00 -06:00 categories: - whats-blooming layout: post blog-banner: whats-blooming-now-spring.jpg post-date: April 14, 2008 post-time: 2:02 PM blog-image: wbn-default.jpg ---
Thank you for visiting our "What's Blooming Blog".
It's a great place to see wonderful images of cool and interesting plants in bloom here at The Garden.
My name is Jason Baker and I am the Curator of Plant Records for Red Butte Garden. If you find me out wandering in the garden, come over and say "Hi". I'll be the 6' 4" tall guy with the camera around my neck.


| Flight Fare External Search Form
Sample |
|
Description |
Mand./Opt. |
Field Name |
| Change Culture |
|
| Form action |
|
|
| Form method |
|
|
Mandatory |
GET |
| Provider selection |
|
| Code |
Description |
| OnlyAmadeus |
Only Amadeus Flights |
| AmadeusAndExtProviders |
Amadeus and low cost carriers |
| OnlyExtProviders |
Only low cost carriers | |
Mandatory |
External_FlightSearchTypeByProvider |
| Flight Type |
|
| Code |
Description |
| RoundTrip |
Round Trip |
| OneWay |
One Way |
| MultiLeg |
Multi Leg | |
Mandatory |
External_FlightFareSearch_SearchType |
| Use this part for One way
& Round trip flights |
| From |
|
Departure point info : City-airport name or 3 letters code |
Mandatory |
External_FlightFareSearch_From |
| To |
|
Arrival point info : City-airport name or 3 letters code |
Mandatory |
External_FlightFareSearch_To |
| Departure Date |
|
Must be formated as DD/MM/YYYY |
Mandatory |
External_FlightFareSearch_DepartureDate |
| Departure Time |
|
|
Optional |
External_FlightFareSearch_DepartureTime |
| Departure Date Flexibility |
|
|
Optional |
External_FlightFareSearch_DepartureFlexibility |
| Inbound Date |
|
Must be formated as DD/MM/YYYY ( Must be blank in Oneway
flights) |
*Mandatory |
External_FlightFareSearch_ReturnDate |
| Inbound Time |
|
|
Optional |
External_FlightFareSearch_ArrivalTime |
| Inbound Date Flexibility |
|
|
Optional |
External_FlightFareSearch_ArrivalFlexibility |
| +/- 3 Days calendar result (MP calendar) |
|
Value must be set as
"on". |
Optional |
External_FlightFareSearch_Calendar |
For Multi leg search, you
need to re-generate the following fields by increasing the index
number of each field sequantially. (Leg count is limited with
minimum 2 locations and maximum 6 locations within 4 different
cities.) |
| Leg 1 - Departure point |
|
Departure point info : City-airport name or 3 letters code |
Mandatory |
EF_From1 |
| Leg 1 - Arrival point |
|
Arrival point info : City-airport name or 3 letters code |
Mandatory |
EF_To1 |
| Leg 1 - Departure Date |
|
Must be formated as DD/MM/YYYY |
Mandatory |
EF_DepartureDate1 |
| Leg 1 - Departure Time |
|
|
Optional |
EF_DepartureTime1 |
| Leg 1 - Date Flexibility |
|
|
Optional |
EF_DepartureFlexibility1 |
| SAMPLE USAGE |
|
| |
| Adult |
|
Can not be more than 6 |
**Mandatory |
External_FlightFareSearch_NumberOfAdults |
| Infant |
|
Can not be more than Adult count |
Optional |
External_FlightFareSearch_NumberOfInfants |
| Child |
|
Can not be more than 6 |
**Optional |
External_FlightFareSearch_NumberOfChilds |
| Youth |
|
Can not be more than 6 and not allowed to combine with any other
passenger types. |
**Optional |
External_FlightFareSearch_NumberOfYouths |
| Senior |
|
Can not be more than 6 and not allowed to combine with any other
passenger types. |
**Optional |
External_FlightFareSearch_NumberOfSeniors |
| Student |
|
Can not be more than 6 and not allowed to combine with any other
passenger types. |
**Optional |
External_FlightFareSearch_NumberOfStudents |
| Seaman |
|
Can not be more than 6 and not allowed to combine with any other
passenger types. |
**Optional |
External_FlightFareSearch_NumberOfSeamans |
| Max Price |
|
The value in Site Currency. |
Optional |
External_FlightFareSearch_MaxPrice |
| Cabin Class |
|
|
Optional |
External_FlightFareSearch_FlightClass |
| Show Only Direct Flights |
|
Value must be set as
"on". |
Optional |
External_FlightFareSearch_OnlyDirectFlights |
| Prefered Airlines |
|
2 Letters Airline Code. Multiple selection is possible by
seperating the codes with comma or semicolon. |
Optional |
External_FlightFareSearch_PrefferedAirlines |
|


{% load widget_tweaks %} {% include 'common/snippets/modal_header.html' with modal_title='Asset Type details' %}
| Shortcut: | {{ assettype.shortcut }} |
| Name | {{ assettype.name }} |
| Info | {{ assettype.info }} |
| Created by | {{ assettype.created_by }} |
| Created at | {{ assettype.created_at }} |
| Last modified by | {{ assettype.last_modified_by }} |
| Last modified at | {{ assettype.last_modified_at }} |


| Overview | Namespace | Class | Index | Help |
| PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
template< typename container, typename keyType >
| virtual | abstract | interface | template |
| NO | NO | NO | YES |
Methods |
|
| OBroadcastHelperVar( ::osl::Mutex & rMutex_ ) throw( ); |
Initialize the structur. bDispose and bInDispose are set to false. |
| void addListener( const keyType & key, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & r ) throw( ); |
adds a listener threadsafe. |
| void removeListener( const keyType & key, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > & r ) throw( ); |
removes a listener threadsafe |
| OInterfaceContainerHelper * getContainer( const keyType & key ) const throw( ); |
Return the container created under this key. |
Data |
|
| ::osl::Mutex & rMutex; | The shared mutex. |
| container aLC; | ListenerContainer class is thread save. |
| sal_Bool bDisposed; | Dispose call ready. |
| sal_Bool bInDispose; | In dispose call. |
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.


Choose your Challenge!!! You must do it!
Challenge 1
Challenge 1
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi, accusamus.
Challenge 2
Challenge 2
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi, accusamus.
Challenge 3
Challenge 3
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi, accusamus.
Challenge 4
Challenge 4
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Excepturi, accusamus.
Scroll down
to see more
We offer our clients
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Convenient and simple interface
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
Long-term support
KPMG consec elit
Reputation, reliability, and safety
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
Transparency
About us
first of big4
KPMG in Ukraine is the first and only one among the Big 4 and other companies, members of international networks, that launched its own auction platform...
kpmg.cominternational
KPMG International is a global network of professional firms providing audit, tax and advisory services. We operate in 154 countries and have more than 200,000 professionals working in member firms around the world. KPMG International member-firms provide audit, tax, legal, and advisory services and cooperate closely with our clients to help them mitigate risks and realize opportunities for their business.
kpmg.comreputation
The clients of KPMG International member firms include corporations, government agencies, and non-profit organizations. We provide our clients with high-quality standards based on professionalism...
kpmg.com


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import uk.gov.hmrc.govukfrontend.views.html.components._ @import forms.FeedbackForm @import views.html.govuk.{cr03SubmissionConfirmation => cr03SubmissionConfirmationTemplate} @import views.html.govuk.{cr05SubmissionConfirmation => cr05SubmissionConfirmationTemplate} @import views.html.components.confirmation_status_panel @import views.html.feedback.feedbackForm @import journey.UniformJourney.CrSubmission @import journey.UniformJourney.Cr05Submission @import journey.UniformJourney.Cr01Cr03Submission @import utils.UniformMessageUtil @this( mainTemplate: views.html.govuk.main_template, confirmationStatusPanel: confirmation_status_panel, feedbackFormTemplate: feedbackForm, govukBackLink: GovukBackLink, cr03SubmissionConfirmation:cr03SubmissionConfirmationTemplate, cr05SubmissionConfirmation:cr05SubmissionConfirmationTemplate ) @( baCode: String, report: ReportStatus, crSubmission: Option[CrSubmission], )(implicit request: Request[_], messages: Messages) @mainTemplate( pageTitle = report.title(messages), baCode = Some(baCode) ) { @if(!Seq(Some(Done.value), Some(Failed.value), Some(Submitted.value)).contains(report.status)) { }
@messages("feedback.contact") @messages("feedback.email")
@messages("feedback.contact2")
@messages("report.link.print")
@messages("report.link.start.again")


All Posts
Feb 2016
Week 9 - Jekyll
As we have been blogging all the way to now, it is time to learn more about one of the best blogging frameworks - Jekyll!
Week 8 - What is Rails?
You may have heard of the term "Ruby on Rails", but do you know what is Rails? Why do we use it and how? In this blog post we will briefly talk about what is Rails, and some of the Rails philsophy.
Week 7 - Ruby hashes vs. JavaScript objects
As we progress to JavaScript this week, let's talk about some of the major similarities and differences between Ruby and JavaScript. In this post I will focus on Ruby hashes vs. JavaScript objects.
Week 6 - Ruby classes
In this week's blog post we will cover another important concept in Ruby - class. We will talk about class methods vs. instance methods and class variables vs. instance variables.
Jan 2016
Week 5 - Ruby enuerable methods
For week 5 we pretty much practiced using a lot of enumerable methods. Since most of you may already be very familiar with #each
, in this blog post I will introduce to you another very useful enumerable method - #map
Week 4 - Arrays vs. Hashes
For week 4 we covered some basic stuff of Ruby, and for sure we must have to talk about different data types. For this week's blog post let's explore 2 commonly used data types that can store not one, but multiple objects! They are Arrays and Hashes.
Week 3 - CSS concept clinic - Box Model
After learning CSS in week 3, I will do a bit of sharing on one of the important concepts in CSS called Box Model. Having a clear understand in it is very helpful in your website design and format since every HTML element can be considered as boxes!
Week 1 - Introduction to VCS and Git
For the week 1 blog post, I will briefly talk about what is Version Control System and how to use Git, a brilliant VCS used by many brilliant developers!


What are any variables or assumptions that you think are needed to help "solve" the challenge question?
Tap 'Add' to send it to the shared video board. (You can add multiple variables or assumptions.)


Class BO.io.AnalogAccelerometer
Extends
BO.PhysicalInputBase.
Creates an interface to an analog accelerometer. Use the
accelerometer to read the acceleration along the x, y, and z axis of an
object it is attached to. You can also obtain the pitch and roll. This
object should interface with most analog accelerometers. See
Breakout/examples/sensors/analog_accelerometer.html and
Breakout/examples/three_js/accelerometer.html for example applications.
Defined in: AnalogAccelerometer.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
BO.io.AnalogAccelerometer(board, xPin, yPin, zPin, dynamicRange, enableSmoothing)
Creates a new Analog Accelerometer object
|
| Field Attributes | Field Name and Description |
|---|---|
|
[read-only] The current range setting of the accelerometer in units
of gravity (9.8 m/sec2).
|
|
|
[read-only] The pitch value in degrees.
|
|
|
[read-only] The roll value in degrees.
|
|
|
[read-only] The x axis of the accelerometer in units
of gravity (9.8 m/sec2).
|
|
| <static> <constant> |
BO.io.AnalogAccelerometer.X_AXIS
|
|
[read-only] The y axis of the accelerometer in units
of gravity (9.8 m/sec2).
|
|
| <static> <constant> |
BO.io.AnalogAccelerometer.Y_AXIS
|
|
[read-only] The z axis of the accelerometer in units
of gravity (9.8 m/sec2).
|
|
| <static> <constant> |
BO.io.AnalogAccelerometer.Z_AXIS
|
| Method Attributes | Method Name and Description |
|---|---|
|
getCalibratedRange(minVoltage, maxVoltage, supplyVoltage)
Use this method to get the minimum and maximum range values for an axis.
|
|
|
setRangeFor(axis, minimum, maximum)
Scale the range for the specified axis (from 0 to 1) to (minimum to
maximum).
|
- Methods borrowed from class BO.PhysicalInputBase:
- addEventListener, dispatchEvent, hasEventListener, removeEventListener
| Event Attributes | Event Name and Description |
|---|---|
|
The update event is dispatched when the accelerometer values are updated.
|
Class Detail
BO.io.AnalogAccelerometer(board, xPin, yPin, zPin, dynamicRange, enableSmoothing)
Creates a new Analog Accelerometer object
- Parameters:
- {IOBoard} board
- A reference to the IOBoard instance
- {Pin} xPin
- A reference to the Pin connected to the x axis of the accelerometer
- {Pin} yPin
- A reference to the Pin connected to the y axis of the accelerometer
- {Pin} zPin
- A reference to the Pin connected to the z axis of the accelerometer
- {Number} dynamicRange
- The range of the acceleromter in Gs (typically 2 or 3 for an analog accelerometer). See the datasheet for the acceleromter to get the exact value.
- {Boolean} enableSmoothing
- True to enable smoothing, false to disable. Default is false.
Field Detail
{Number}
dynamicRange
[read-only] The current range setting of the accelerometer in units
of gravity (9.8 m/sec2).
{Number}
pitch
[read-only] The pitch value in degrees.
{Number}
roll
[read-only] The roll value in degrees.
{Number}
x
[read-only] The x axis of the accelerometer in units
of gravity (9.8 m/sec2).
<static> <constant>
BO.io.AnalogAccelerometer.X_AXIS
{Number}
y
[read-only] The y axis of the accelerometer in units
of gravity (9.8 m/sec2).
<static> <constant>
BO.io.AnalogAccelerometer.Y_AXIS
{Number}
z
[read-only] The z axis of the accelerometer in units
of gravity (9.8 m/sec2).
<static> <constant>
BO.io.AnalogAccelerometer.Z_AXIS
Method Detail
{Object}
getCalibratedRange(minVoltage, maxVoltage, supplyVoltage)
Use this method to get the minimum and maximum range values for an axis.
Create a new object to store the return value and then pass obj.min
and obj.max along with the respective axis identifier to the setRangeFor
method.
- Parameters:
- {Number} minVoltage
- The minimum value reported on the axis
- {Number} maxVoltage
- The maximum value reported on the axis
- {Number} supplyVoltage
- The supply voltage of the Acceleromter (enter as 3.3, 3.0, 5.0, etc).
- Returns:
- {Object} An object containing the min and max range values to be passed to the setRangeFor method.
setRangeFor(axis, minimum, maximum)
Scale the range for the specified axis (from 0 to 1) to (minimum to
maximum).
- Parameters:
- axis
- the axis to set new range (AnalogAccelerometer.X_AXIS, AnalogAccelerometer.Y_AXIS or AnalogAccelerometer.Z_AXIS).
- {Number} minimum
- The new minimum value
- {Number} maximum
- The new maximum value
Event Detail
{BO.io.AccelerometerEvent.UPDATE}
update
The update event is dispatched when the accelerometer values are updated.
- This event has the following properties:
- {BO.io.AnalogAccelerometer} target
- A reference to the AnalogAccelerometer object.


Hi! These slides are available at natehill.net/gsd-lil
1- Setting a Creative Culture
2- Grant Funded > General Operating
3- New and Cool > Creating Organizational Capacity
and finally, a multi-type library consortium in New York City
Environment as Third Teacher
"It has been said that the environment should act as a kind of aquarium which reflects the ideas, ethics, attitudes, and cultures of the people who live in it. This is what we are working toward.
-Loris Malaguzzi
additional reading
Play and the Hundred Languages of Children
"The teachers consider the existing space in the city as learning space and prepare environments and situations in the school that respond to the gifts of children. Teachers observe the children in these possibility-rich environments, and on the basis of shared observations and documentations, they construct new possibilities for the children."
-Lella Gandini
Thanks!
natehill.net/gsd-lil
<EMAIL_ADDRESS>@natenatenate


Toggle navigation
FindMeScool
Home
About
FindMeScool
We find the best cources for YOU!
Search Any Couse


Strategic design statements articulate design decisions that determine the primary behavioural and structural properties of a program (software system). Strategic decisions address global, system-wide concerns and carry the most consequential implications.
Tactical design statements articulate design decisions that are concerned with a specific module. Tactical decisions often describe a pattern of correlations between one collection of modules (objects, procedures, classes etc.) and another.
At the lowest level of abstraction are concrete statements that are concerned with specific implementation details. An Implementation statement is not only ‘local’ but also ‘extensional’: it directly correlates to specific part of a specific program.
Architecture is concerned with the selection of architectural elements, their interaction, and the constraints on those elements and their interactions...
Design is concerned with the modularization and detailed interfaces of the design elements, their algorithms and procedures, and the data types needed to support the architecture and to satisfy the requirements.
There is a class from which all other classes inherit.
φ = ∀c • c∈Class ∧ c≠Object ⇒ Inherit(c, Object)
p =
class Object { }
class Foo extends Object {}
p ⊨ φ
p' =
class Object { }
class Foo extends Object {}
class Bar {} // extends?
p' ⊭ φ
Preserved under expansion? NO
UBC is in Non-local Intensional
Compiler must check each and every class to make sure that all of them inherit from some other class.
Finite structure M is an ordered pair <UM, RM> such that UM={a1,...ak} is a finite set of entities, and RM={R1,...Rk} is a finite set of relations over the entitites in UM.
Entities: Foo, Object
Relations:
P is true if, and only if, P.
For all x, True(x) if and only if φ(x),
A statement φ is local if, and only if, it is preserved under expansion.
A statement φ is local if, and only if, a program that satisfies cannot be expanded into a program that violates it.
A statement φ is extensional if, and only if, it is preserved both under expansion and under reduction.
A statement φ is extensional if, and only if, a program that satisfies cannot be expanded or reduced into a program that violates it.
M = <U, R> — finite strucuture
M' = <U', R'> — is an expansion of M if it can result by:
U
, i.e. {b1,...bj}
n
-ary relation r
in R
zero or more n
-tuples, each of which contains at least one of b1,...bj
class Object {}
class Foo extends Object {}
class Object {}
class Foo extends Object {}
class Bar {}
class Object {}
class Foo extends Object {}
class Object {}
class Foo extends Object {
someMethod() {}
}
A layered system is organized hierarchically, each layer providing service to the layer above it and serving as a client to the layer below
φ =
∀x ∃!k∈N • Layer(x) = k
∀x,y • Depend(x, y) ⇒ Layer(x) ≥ Layer(y)
Entities: UserProfileView, UserStore
Relations:
Entities: UserProfileView, UserStore, FriendsStore
Relations:
Depend(FriendsStore, UserProfileView) but Layer(FriendsStore) < Layer(UserProfileView)
φ is not preserved under expansion
Layered Architecture is non-local intensional statement
A program p assumes all data to be communicated is represented as ASCII strings.
φ — assumtion
p ⊨ φ
A program q includes program p, but it is not an app where p is "intended to operate".
q — App
q ⊭ φ
p and q mismatch on φ
φ is non-local intensional


{::nomarkdown} {% assign fn = include.id | remove: " " | remove: "-" | downcase %} {{ include.title }} {:/}


We are four friends: Mathilde Gordon, Daniel Greenwood, Kirsten Mathison, and Nic Annau, passionate about the protection of our oceans, and connected by our love for the outdoors. We are a team of cavers, climbers, kayakers, circus performers, astronomers, engineers, scientists, educators and campaigners, with various complimentary (and some completely random) skills. We haven’t spent more than a few days at a time together, and hail from different sides of the Pacific Ocean, but we are uniting for a cause close to our hearts.
We are planning a 3 month sailing journey through the Inside Passage to raise awareness, and collect data, of marine debris along the coastlines of BC and Alaska. We hope to reframe the face of adventure and inspire others to be stewards of the earth as they venture into the outdoors.
To be a vessel for citizen science and community partnerships


This page describes an execution trace derived from a deployment of the AMPCrowd system on MTurk running simple data labeling tasks. The trace is described in detail in [1].
The trace is available here. The data is available as a 168 KB JSON file.
The trace is available as a JSON object with 3 keys: recruitments, consisting of a list of floating point recruitment times in seconds, task_lens, consisting of a list of floating point task durations in seconds, and pool_tenures, consisting of a list of floating point timings in seconds representing the length of time each worker remained in the crowd pool before abandoning it.
The trace was extracted from a live deployment of low-latency retainer pools for simple labeling tasks on MTurk described in [2]. Workers were completing image-labeling tasks, and the system was configured to use the straggler mitigation and pool maintenance techniques described in [2]. The data consists of three streams of data in chronological order: the worker recruitment times for all new workers who joined the pool (n=6126 recruitments, mean time 91.3 seconds, standard deviation 113.9 seconds), the task duration for all tasks processed in the pool (n=6725 tasks, mean time 1.97 seconds, standard deviation 0.87 seconds), and the duration that workers remained in the pool before abandoning it (n=2999 abandonments, mean time 316.6 seconds, standard deviation 211.1 seconds).
[1] Daniel Haas and Michael J. Franklin. Cioppino: Multi-Tenant Crowd Management. In Proceedings of the fifth AAAI Conference on Human Computation and Crowdsourcing (HCOMP), 2017.
[2] Daniel Haas, Jiannan Wang, Eugene Wu, and Michael J. Franklin. Clamshell: Speeding up crowds for low-latency data labeling. Proc. VLDB, 9(4):372–383, Dec. 2015