It provides features such private or strong typing. Those feature were missing in javascript. Better.js make it possible and easy to use. It helps you find bug earlier, so write a better code.
When your property is used, it receives some values. Better.js will ensure that they match the types you defined.
Your property belong to a class and it is private. Tell that to Better.js and it will make sure your wishes are respected!
We declare a object with a bar
property
which is a String
. You tell that to better.js
and it will make sure it is only String
.
// define an object var foo = { bar : 'bla' }; // Make a Better.js for it Bjs.Property(foo, 'bar', { type : String, })
console.log('the value is', foo.bar) // display 'bar'... All is OK foo.bar = 'smith' console.log('the value is', foo.bar) // display 'smith'... All is OK foo.bar = 99 // Exception thrown // "Invalid Type for 'bar' - Should be String"
Now let's use this foo
object.
You can read foo
property without issue.
You can set it as long as it is with a String
.
If You set it with Number
, it is
immediatly detected by Better.js
and the execution is stopped.
Say we got a Dog
class,
and it has two property: a .age
which is public
and another _name
which is private.
So you tell that to better.js in your class constructor.
// Constructor of the class var Dog = function(name){ this._name = name this.age = 3 // make a better.js for _name Bjs.Property(this, '_name', { private : true }) }
// get a new dog var dog = new Dog('brutus') // Let's try to use a public property console.log('my dog age is', dog.age) // Display 'my dog age is 3'... All is OK // Let's try to use _name from outside console.log('my dog name is', dog._name) // Exception thrown // "Denied access to private property _name" // better.js detect unauthorized access! Perfect!
Now let's use this Dog
class.
If we use a public property age
from outside,
it matches our better.js, so all is ok.
But When we try to call _name
from outside,
the unauthorized access is immediatly detected
and the execution is stopped.
| Features | With Better.JS | Without Better.JS |
|---|---|---|
| Detect Wrong Type for Properties | ||
| Detect Unauthorized access to Private Properties |
type
type
option declares type of this property.
Every time this property is used, better.js will check its type remains valid.
| a array of type | It uses the same syntax as other strong typing features. See details on type definition. |
// define an object var foo = { bar : 'bla' }; // Make a Better.js for it Bjs.Property(foo, 'bar', { type : String, })
private
private
option will declare your property as private
as soon as it is called.
Using Bjs.Class
with privatize
is recommended.
true |
Enable private for this property |
false |
Disable private for this property. Default to false. |
// Constructor of the class var Dog = function(name){ this._name = name this.age = 3 // init this class for privates Bjs.Privatize.prepare(this) Bjs.Privatize.privatize(this) // make a better.js for _name Bjs.Property(this, '_name', { private : true }) }


Best regards,
Koray Koch
Digital Solutions Specialist
Office: 1/441 little Bourke St, Melbourne VIC 3000, Australia
Phone: 1300 368 359
Email<EMAIL_ADDRESS>Website: hostingaustralia.com.au


Technical Agency, that also happens to specialize in Drupal
Product Recommendations
pio build --verbose
[INFO] [Engine$] Using command '/PredictionIO-0.12.0-incubating/sbt/sbt' at /engines/similar-text to build.
[INFO] [Engine$] If the path above is incorrect, this process will fail.
[INFO] [Engine$] Uber JAR disabled. Making sure lib/pio-assembly-0.12.0-incubating.jar is absent.
[INFO] [Engine$] Going to run: /PredictionIO-0.12.0-incubating/sbt/sbt package assemblyPackageDependency in /engines/similar-text
[INFO] [Engine$] [info] Loading project definition from /engines/similar-text/project
[INFO] [Engine$] [info] Set current project to pio-template-text-similarity (in build file:/engines/similar-text/)
[INFO] [Engine$] [success] Total time: 2 s, completed Aug 18, 2018 3:30:58 PM
[INFO] [Engine$] [info] Including from cache: scala-library-2.11.8.jar
[INFO] [Engine$] [info] Checking every *.class/*.jar file's SHA-1.
[INFO] [Engine$] [info] Merging files...
[INFO] [Engine$] [warn] Merging 'META-INF/MANIFEST.MF' with strategy 'discard'
[INFO] [Engine$] [warn] Strategy 'discard' was applied to a file
[INFO] [Engine$] [info] Assembly up to date: /engines/similar-text/target/scala-2.11/pio-template-text-similarity-assembly-0.1-SNAPSHOT-deps.jar
[INFO] [Engine$] [success] Total time: 12 s, completed Aug 18, 2018 3:31:09 PM
[INFO] [Engine$] Compilation finished successfully.
[INFO] [Engine$] Looking for an engine...
[INFO] [Engine$] Found pio-template-text-similarity_2.11-0.1-SNAPSHOT.jar
[INFO] [Engine$] Found pio-template-text-similarity-assembly-0.1-SNAPSHOT-deps.jar
[INFO] [Engine$] Build finished successfully.
[INFO] [Pio$] Your engine is ready for training.
pio train
[INFO] [CoreWorkflow$] Inserting persistent model
[INFO] [CoreWorkflow$] Updating engine instance
[INFO] [CoreWorkflow$] Training completed successfully.
{
"itemScores":[
{"item":"i0","score":0.7071067811865475},
{"item":"i1","score":0.7071067811865475},
{"item":"i2","score":0.5773502691896258},
{"item":"i3","score":0.5773502691896258}
]
}
You can build your own
def sumArray (m: Array[Double], n: Array[Double]): Array[Double] = {
for (i <- 0 until m.length) {m(i) += n(i)}
return m
}
def divArray (m: Array[Double], divisor: Double) : Array[Double] = {
for (i <- 0 until m.length) {m(i) /= divisor}
return m
}
def wordToVector (w:String, m: Word2VecModel, s: Int): Vector = {
try {
return m.transform(w)
} catch {
case e: Exception => return Vectors.zeros(s)
}
}
def normalizet(line: String) = java.text.Normalizer.normalize(line,java.text.Normalizer.Form.NFKD).replaceAll("\\p{InCombiningDiacriticalMarks}+","").toLowerCase
Proudly invented else where
To the library!
Releasing Official PredictionIO Docker Images
Drupal Module(s) (?) maybe


|
Bullet Collision Detection & Physics Library
|
btContinuousConvexCollision implements angular and linear time of impact for convex objects. More...
#include <btContinuousConvexCollision.h>
Public Member Functions | |
| btContinuousConvexCollision (const btConvexShape *shapeA, const btConvexShape *shapeB, btSimplexSolverInterface *simplexSolver, btConvexPenetrationDepthSolver *penetrationDepthSolver) | |
| btContinuousConvexCollision (const btConvexShape *shapeA, const btStaticPlaneShape *plane) | |
| virtual bool | calcTimeOfImpact (const btTransform &fromA, const btTransform &toA, const btTransform &fromB, const btTransform &toB, CastResult &result) |
| cast a convex against another convex object More... | |
| Public Member Functions inherited from btConvexCast | |
| virtual | ~btConvexCast () |
Private Member Functions | |
| void | computeClosestPoints (const btTransform &transA, const btTransform &transB, struct btPointCollector &pointCollector) |
Private Attributes | |
| btSimplexSolverInterface * | m_simplexSolver |
| btConvexPenetrationDepthSolver * | m_penetrationDepthSolver |
| const btConvexShape * | m_convexA |
| const btConvexShape * | m_convexB1 |
| const btStaticPlaneShape * | m_planeShape |
btContinuousConvexCollision implements angular and linear time of impact for convex objects.
Based on Brian Mirtich's Conservative Advancement idea (PhD thesis). Algorithm operates in worldspace, in order to keep in between motion globally consistent. It uses GJK at the moment. Future improvement would use minkowski sum / supporting vertex, merging innerloops
Definition at line 29 of file btContinuousConvexCollision.h.
| btContinuousConvexCollision::btContinuousConvexCollision | ( | const btConvexShape * | shapeA, |
| const btConvexShape * | shapeB, | ||
| btSimplexSolverInterface * | simplexSolver, | ||
| btConvexPenetrationDepthSolver * | penetrationDepthSolver | ||
| ) |
Definition at line 26 of file btContinuousConvexCollision.cpp.
| btContinuousConvexCollision::btContinuousConvexCollision | ( | const btConvexShape * | shapeA, |
| const btStaticPlaneShape * | plane | ||
| ) |
Definition at line 35 of file btContinuousConvexCollision.cpp.
|
virtual |
cast a convex against another convex object
compute linear and angular velocity for this interval, to interpolate
Implements btConvexCast.
Definition at line 90 of file btContinuousConvexCollision.cpp.
|
private |
Definition at line 48 of file btContinuousConvexCollision.cpp.
|
private |
Definition at line 33 of file btContinuousConvexCollision.h.
|
private |
Definition at line 35 of file btContinuousConvexCollision.h.
|
private |
Definition at line 32 of file btContinuousConvexCollision.h.
|
private |
Definition at line 36 of file btContinuousConvexCollision.h.
|
private |
Definition at line 31 of file btContinuousConvexCollision.h.


| src |
|
0% |
0/26 |
0% |
0/4 |
0% |
0/1 |
0% |
0/25 |
| src/actions |
|
81.18% |
69/85 |
100% |
0/0 |
70.27% |
26/37 |
80.82% |
59/73 |
| src/components/NavItems |
|
66.67% |
18/27 |
50% |
3/6 |
44.44% |
4/9 |
70.83% |
17/24 |
| src/components/Pages/AdminOrderPage |
|
52.94% |
9/17 |
60% |
6/10 |
42.86% |
3/7 |
56.25% |
9/16 |
| src/components/Pages/CheckoutPage |
|
73.33% |
22/30 |
50% |
5/10 |
66.67% |
8/12 |
75% |
21/28 |
| src/components/Pages/Homepage |
|
75% |
3/4 |
100% |
0/0 |
50% |
1/2 |
100% |
3/3 |
| src/components/Pages/LoginPage |
|
85.71% |
12/14 |
50% |
4/8 |
83.33% |
5/6 |
92.31% |
12/13 |
| src/components/Pages/MenuPage |
|
100% |
2/2 |
100% |
0/0 |
100% |
1/1 |
100% |
2/2 |
| src/components/Pages/SignupPage |
|
86.67% |
13/15 |
50% |
5/10 |
83.33% |
5/6 |
92.86% |
13/14 |
| src/components/Pages/SuccessPage |
|
100% |
2/2 |
100% |
0/0 |
100% |
1/1 |
100% |
2/2 |
| src/components/Pages/UserDashboardPage |
|
58.33% |
7/12 |
50% |
2/4 |
60% |
3/5 |
63.64% |
7/11 |
| src/components/UI/Button |
|
100% |
3/3 |
100% |
2/2 |
100% |
2/2 |
100% |
3/3 |
| src/components/UI/Card |
|
53.85% |
7/13 |
50% |
1/2 |
37.5% |
3/8 |
58.33% |
7/12 |
| src/components/UI/Content |
|
100% |
2/2 |
100% |
2/2 |
100% |
1/1 |
100% |
2/2 |
| src/components/UI/Footer |
|
100% |
2/2 |
100% |
0/0 |
100% |
1/1 |
100% |
2/2 |
| src/components/UI/Header |
|
100% |
10/10 |
100% |
0/0 |
100% |
5/5 |
100% |
9/9 |
| src/components/UI/Input |
|
100% |
3/3 |
100% |
0/0 |
100% |
2/2 |
100% |
3/3 |
| src/components/UI/Navbar |
|
100% |
2/2 |
100% |
0/0 |
100% |
1/1 |
100% |
2/2 |
| src/components/UI/NotFound |
|
100% |
2/2 |
100% |
0/0 |
100% |
1/1 |
100% |
2/2 |
| src/containers/Frame |
|
100% |
1/1 |
100% |
0/0 |
100% |
1/1 |
100% |
1/1 |
| src/helpers |
|
100% |
3/3 |
16.67% |
1/6 |
100% |
1/1 |
100% |
2/2 |
| src/hoc |
|
0% |
0/8 |
0% |
0/2 |
0% |
0/5 |
0% |
0/8 |
| src/reducers |
|
80% |
32/40 |
92.59% |
25/27 |
85.71% |
6/7 |
80% |
32/40 |
| src/routes |
|
100% |
1/1 |
100% |
0/0 |
100% |
1/1 |
100% |
1/1 |
| src/store |
|
0% |
0/5 |
0% |
0/2 |
100% |
0/0 |
0% |
0/5 |
| src/utils |
|
75% |
3/4 |
50% |
1/2 |
100% |
1/1 |
75% |
3/4 |


public abstract class IIOParam extends Object
ImageReadParam
and
ImageWriteParam
.
This class provides mechanisms to specify a source region and a destination region. When reading, the source is the stream and the in-memory image is the destination. When writing, these are reversed. In the case of writing, destination regions may be used only with a writer that supports pixel replacement.
Decimation subsampling may be specified for both readers and writers, using a movable subsampling grid.
Subsets of the source and destination bands may be selected.
| Modifier and Type | Field and Description |
|---|---|
protected IIOParamController |
controller
The
IIOParamController that will be
used to provide settings for this IIOParam
object when the activateController method
is called. |
protected IIOParamController |
defaultController
The default
IIOParamController that will be
used to provide settings for this IIOParam
object when the activateController method
is called. |
protected Point |
destinationOffset
The offset in the destination where the upper-left decoded
pixel should be placed.
|
protected ImageTypeSpecifier |
destinationType
An
ImageTypeSpecifier to be used to generate a
destination image when reading, or to set the output color type
when writing. |
protected int[] |
sourceBands
An array of
int s indicating which source bands
will be used, or null . |
protected Rectangle |
sourceRegion
The source region, on
null if none is set. |
protected int |
sourceXSubsampling
The decimation subsampling to be applied in the horizontal
direction.
|
protected int |
sourceYSubsampling
The decimation subsampling to be applied in the vertical
direction.
|
protected int |
subsamplingXOffset
A horizontal offset to be applied to the subsampling grid before
subsampling.
|
protected int |
subsamplingYOffset
A vertical offset to be applied to the subsampling grid before
subsampling.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IIOParam()
Protected constructor may be called only by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
activateController()
Activates the installed
IIOParamController for
this IIOParam object and returns the resulting
value. |
IIOParamController |
getController()
Returns whatever
IIOParamController is currently
installed. |
IIOParamController |
getDefaultController()
Returns the default
IIOParamController , if there
is one, regardless of the currently installed controller. |
Point |
getDestinationOffset()
Returns the offset in the destination image at which pixels are
to be placed.
|
ImageTypeSpecifier |
getDestinationType()
Returns the type of image to be returned by the read, if one
was set by a call to
setDestination(ImageTypeSpecifier) , as an
ImageTypeSpecifier . |
int[] |
getSourceBands()
Returns the set of of source bands to be used.
|
Rectangle |
getSourceRegion()
Returns the source region to be used.
|
int |
getSourceXSubsampling()
Returns the number of source columns to advance for each pixel.
|
int |
getSourceYSubsampling()
Returns the number of rows to advance for each pixel.
|
int |
getSubsamplingXOffset()
Returns the horizontal offset of the subsampling grid.
|
int |
getSubsamplingYOffset()
Returns the vertical offset of the subsampling grid.
|
boolean |
hasController()
Returns
true if there is a controller installed
for this IIOParam object. |
void |
setController(IIOParamController controller)
Sets the
IIOParamController to be used
to provide settings for this IIOParam
object when the activateController method
is called, overriding any default controller. |
void |
setDestinationOffset(Point destinationOffset)
Specifies the offset in the destination image at which future
decoded pixels are to be placed, when reading, or where a
region will be written, when writing.
|
void |
setDestinationType(ImageTypeSpecifier destinationType)
Sets the desired image type for the destination image, using an
ImageTypeSpecifier . |
void |
setSourceBands(int[] sourceBands)
Sets the indices of the source bands to be used.
|
void |
setSourceRegion(Rectangle sourceRegion)
Sets the source region of interest.
|
void |
setSourceSubsampling(int sourceXSubsampling,
int sourceYSubsampling,
int subsamplingXOffset,
int subsamplingYOffset)
Specifies a decimation subsampling to apply on I/O.
|
protected Rectangle sourceRegion
null
if none is set.protected int sourceXSubsampling
1
.
The value must not be negative or 0.protected int sourceYSubsampling
1
.
The value must not be negative or 0.protected int subsamplingXOffset
protected int subsamplingYOffset
protected int[] sourceBands
int
s indicating which source bands
will be used, or null
. If null
, the
set of source bands to be used is as described in the comment
for the setSourceBands
method. No value should
be allowed to be negative.protected ImageTypeSpecifier destinationType
ImageTypeSpecifier
to be used to generate a
destination image when reading, or to set the output color type
when writing. If non has been set the value will be
null
. By default, the value is null
.protected Point destinationOffset
protected IIOParamController defaultController
IIOParamController
that will be
used to provide settings for this IIOParam
object when the activateController
method
is called. This default should be set by subclasses
that choose to provide their own default controller,
usually a GUI, for setting parameters.protected IIOParamController controller
IIOParamController
that will be
used to provide settings for this IIOParam
object when the activateController
method
is called. This value overrides any default controller,
even when null.protected IIOParam()
public void setSourceRegion(Rectangle sourceRegion)
setSourceSubsampling
.
If subsampling has been set such that this number is zero,
an IllegalStateException
will be thrown.
The source region of interest specified by this method will be clipped as needed to fit within the source bounds, as well as the destination offsets, width, and height at the time of actual I/O.
A value of null
for sourceRegion
will remove any region specification, causing the entire image
to be used.
sourceRegion
- a Rectangle
specifying the
source region of interest, or null
.IllegalArgumentException
- if
sourceRegion
is non-null
and either
sourceRegion.x
or sourceRegion.y
is
negative.IllegalArgumentException
- if
sourceRegion
is non-null
and either
sourceRegion.width
or
sourceRegion.height
is negative or 0.IllegalStateException
- if subsampling is such that
this region will have a subsampled width or height of zero.getSourceRegion()
,
setSourceSubsampling(int, int, int, int)
,
setDestinationOffset(java.awt.Point)
,
getDestinationOffset()
public Rectangle getSourceRegion()
setSourceRegion
, and will be null
if
there is no region set.Rectangle
, or null
.setSourceRegion(java.awt.Rectangle)
public void setSourceSubsampling(int sourceXSubsampling, int sourceYSubsampling, int subsamplingXOffset, int subsamplingYOffset)
sourceXSubsampling
and
sourceYSubsampling
parameters specify the
subsampling period (i.e., the number of rows and columns
to advance after every source pixel). Specifically, a period of
1 will use every row or column; a period of 2 will use every
other row or column. The subsamplingXOffset
and
subsamplingYOffset
parameters specify an offset
from the region (or image) origin for the first subsampled pixel.
Adjusting the origin of the subsample grid is useful for avoiding
seams when subsampling a very large source image into destination
regions that will be assembled into a complete subsampled image.
Most users will want to simply leave these parameters at 0.
The number of pixels and scanlines to be used are calculated as follows.
The number of subsampled pixels in a scanline is given by
truncate[(width - subsamplingXOffset + sourceXSubsampling - 1)
/ sourceXSubsampling]
.
If the region is such that this width is zero, an
IllegalStateException
is thrown.
The number of scanlines to be used can be computed similarly.
The ability to set the subsampling grid to start somewhere
other than the source region origin is useful if the
region is being used to create subsampled tiles of a large image,
where the tile width and height are not multiples of the
subsampling periods. If the subsampling grid does not remain
consistent from tile to tile, there will be artifacts at the tile
boundaries. By adjusting the subsampling grid offset for each
tile to compensate, these artifacts can be avoided. The tradeoff
is that in order to avoid these artifacts, the tiles are not all
the same size. The grid offset to use in this case is given by:
grid offset = [period - (region offset modulo period)] modulo period)
If either sourceXSubsampling
or
sourceYSubsampling
is 0 or negative, an
IllegalArgumentException
will be thrown.
If either subsamplingXOffset
or
subsamplingYOffset
is negative or greater than or
equal to the corresponding period, an
IllegalArgumentException
will be thrown.
There is no unsetSourceSubsampling
method;
simply call setSourceSubsampling(1, 1, 0, 0)
to
restore default values.
sourceXSubsampling
- the number of columns to advance
between pixels.sourceYSubsampling
- the number of rows to advance between
pixels.subsamplingXOffset
- the horizontal offset of the first subsample
within the region, or within the image if no region is set.subsamplingYOffset
- the horizontal offset of the first subsample
within the region, or within the image if no region is set.IllegalArgumentException
- if either period is
negative or 0, or if either grid offset is negative or greater than
the corresponding period.IllegalStateException
- if the source region is such that
the subsampled output would contain no pixels.public int getSourceXSubsampling()
If setSourceSubsampling
has not been called, 1
is returned (which is the correct value).
setSourceSubsampling(int, int, int, int)
,
getSourceYSubsampling()
public int getSourceYSubsampling()
If setSourceSubsampling
has not been called, 1
is returned (which is the correct value).
setSourceSubsampling(int, int, int, int)
,
getSourceXSubsampling()
public int getSubsamplingXOffset()
If setSourceSubsampling
has not been called, 0
is returned (which is the correct value).
setSourceSubsampling(int, int, int, int)
,
getSubsamplingYOffset()
public int getSubsamplingYOffset()
If setSourceSubsampling
has not been called, 0
is returned (which is the correct value).
setSourceSubsampling(int, int, int, int)
,
getSubsamplingXOffset()
public void setSourceBands(int[] sourceBands)
A null
value indicates that all source bands
will be used.
At the time of reading, an
IllegalArgumentException
will be thrown by the
reader or writer if a value larger than the largest available
source band index has been specified or if the number of source
bands and destination bands to be used differ. The
ImageReader.checkReadParamBandSettings
method may
be used to automate this test.
Semantically, a copy is made of the array; changes to the
array contents subsequent to this call have no effect on
this IIOParam
.
sourceBands
- an array of integer band indices to be
used.IllegalArgumentException
- if sourceBands
contains a negative or duplicate value.getSourceBands()
,
ImageReadParam.setDestinationBands(int[])
,
ImageReader.checkReadParamBandSettings(javax.imageio.ImageReadParam, int, int)
public int[] getSourceBands()
setSourceBands
, or null
if there have
been no calls to setSourceBands
.
Semantically, the array returned is a copy; changes to
array contents subsequent to this call have no effect on this
IIOParam
.
null
.setSourceBands(int[])
public void setDestinationType(ImageTypeSpecifier destinationType)
ImageTypeSpecifier
.
When reading, if the layout of the destination has been set
using this method, each call to an ImageReader
read
method will return a new
BufferedImage
using the format specified by the
supplied type specifier. As a side effect, any destination
BufferedImage
set by
ImageReadParam.setDestination(BufferedImage)
will
no longer be set as the destination. In other words, this
method may be thought of as calling
setDestination((BufferedImage)null)
.
When writing, the destination type maybe used to determine
the color type of the image. The SampleModel
information will be ignored, and may be null
. For
example, a 4-banded image could represent either CMYK or RGBA
data. If a destination type is set, its
ColorModel
will override any
ColorModel
on the image itself. This is crucial
when setSourceBands
is used since the image's
ColorModel
will refer to the entire image rather
than to the subset of bands being written.
destinationType
- the ImageTypeSpecifier
to
be used to determine the destination layout and color type.getDestinationType()
public ImageTypeSpecifier getDestinationType()
setDestination(ImageTypeSpecifier)
, as an
ImageTypeSpecifier
. If none was set,
null
is returned.ImageTypeSpecifier
describing the
destination type, or null
.setDestinationType(javax.imageio.ImageTypeSpecifier)
public void setDestinationOffset(Point destinationOffset)
When reading, the region to be written within the
destination BufferedImage
will start at this
offset and have a width and height determined by the source
region of interest, the subsampling parameters, and the
destination bounds.
Normal writes are not affected by this method, only writes
performed using ImageWriter.replacePixels
. For
such writes, the offset specified is within the output stream
image whose pixels are being modified.
There is no unsetDestinationOffset
method;
simply call setDestinationOffset(new Point(0, 0))
to
restore default values.
destinationOffset
- the offset in the destination, as a
Point
.IllegalArgumentException
- if
destinationOffset
is null
.getDestinationOffset()
,
ImageWriter.replacePixels(java.awt.image.RenderedImage, javax.imageio.ImageWriteParam)
public Point getDestinationOffset()
If setDestinationOffsets
has not been called,
a Point
with zero X and Y values is returned
(which is the correct value).
Point
.setDestinationOffset(java.awt.Point)
public void setController(IIOParamController controller)
IIOParamController
to be used
to provide settings for this IIOParam
object when the activateController
method
is called, overriding any default controller. If the
argument is null
, no controller will be
used, including any default. To restore the default, use
setController(getDefaultController())
.controller
- An appropriate
IIOParamController
, or null
.IIOParamController
,
getController()
,
getDefaultController()
,
hasController()
,
activateController()
public IIOParamController getController()
IIOParamController
is currently
installed. This could be the default if there is one,
null
, or the argument of the most recent call
to setController
.IIOParamController
, or null
.IIOParamController
,
setController(javax.imageio.IIOParamController)
,
getDefaultController()
,
hasController()
,
activateController()
public IIOParamController getDefaultController()
IIOParamController
, if there
is one, regardless of the currently installed controller. If
there is no default controller, returns null
.IIOParamController
, or
null
.IIOParamController
,
setController(IIOParamController)
,
getController()
,
hasController()
,
activateController()
public boolean hasController()
true
if there is a controller installed
for this IIOParam
object. This will return
true
if getController
would not
return null
.true
if a controller is installed.IIOParamController
,
setController(IIOParamController)
,
getController()
,
getDefaultController()
,
activateController()
public boolean activateController()
IIOParamController
for
this IIOParam
object and returns the resulting
value. When this method returns true
, all values
for this IIOParam
object will be ready for the
next read or write operation. If false
is
returned, no settings in this object will have been disturbed
(i.e., the user canceled the operation).
Ordinarily, the controller will be a GUI providing a user
interface for a subclass of IIOParam
for a
particular plug-in. Controllers need not be GUIs, however.
true
if the controller completed normally.IllegalStateException
- if there is no controller
currently installed.IIOParamController
,
setController(IIOParamController)
,
getController()
,
getDefaultController()
,
hasController()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.


Jekyll garden is a theme over Jekyll that supports Obsidian formats, and few features. To install Jekyll to your server or local host, refer these documents. Docker file is also available.
Alternatively, you can use Github and Github Pages as your server. It's very simple and almost low-code. Here is how to do it.
Step 1: Sign-In to Github, visit the theme page and click on 'Use this Template'
Step 2: Name the forked repo as yourusername.github.io
. My Github username is hfactor, hence it's hfactor.github.io
Step 3: Go to your repo's settings > pages and set the source to your main branch.
Step 4 (Optional): If you have a custom domain, set CNAME.
Configuring Your Jekyll.
Now you have Jekyll setup ready, go to _config.yml
and set your configurations. Here you can do the following configurations :
- URL to set your hostname
- BASEURL to set your sub path (url/subpath/)
- Website Heading, Content, Copyright Year + Message
- Private Link - On hover message
- What all folders to exclude (Obsidian Template and all)
Edit these value via Github, and commit directly to Github, which will refresh the whole setup, and a Jekyll enivorment will be ready. You can visit the page by visiting yourusername.github.io
Syncing Github with Obsidian
Now you have your online publishing setup ready. It's time to build your local knowledge management using Obsidian. Here are the steps :
Step 1: Go to github and clone your repository to your machine. For this, you can use git-commands or install Github for desktop.
Step 2: Once you have successfully cloned the repository to your machine, Open the Obsidian app in your machine, and set the folder _notes
inside the repository as your vault.
This is important, because Jekyll Garden can only fetch and publish notes from _notes
folder.
Frontmatter
For all notes to work properly, we need to have three frontmatter values. Please make sure the front matter is written in between three lines. If you check any .md files in this repo, you will see something this.
---
title: Credits
feed: hide
date: 11-05-2022
permalink: /credits
format: list
---
Title
is the page title. It should be same as that of your Obsidian file title for our Wiki links to work. i.e, if file iscredits.md
title has to becredits
- If you want to show the note on the feed, you should set
Feed
asshow
. It's an optional value, and the default value is set to hide. (To avoid publishing by mistake) date
is used to sort note in feed.permalink
is an optional value. Use it to set permanent URLsformat:list
will change the layout to a list with border, Refer CreditsCredits
Raghuveer, who created Simply Jekyll theme
Santosh Thottingal who introduced me to Digital Garden
Puttalu for OrgMode classes!
Team Obsidian for making obsidian a markdown based product
.... This is useful for Curated lists (Check my personal library ) or while building MoC.
Updating Digital Garden
Once you have enough notes, got to the Github Desktop app, commit the changes to main, and push the changes to Github. Github will update the pages!
If you want to know my workflow or Obsidian folder structure, check here
Features
- Check Features to know theme features
Credits
- Check CreditsCredits
Raghuveer, who created Simply Jekyll theme
Santosh Thottingal who introduced me to Digital Garden
Puttalu for OrgMode classes!
Team Obsidian for making obsidian a markdown based product
...


PG_LAST_COPY_ID
Returns the query ID of the most recently executed COPY command in the current session. If no COPY commands have been executed in the current session, PG_LAST_COPY_ID returns -1.
The value for PG_LAST_COPY_ID is updated when the COPY command begins the load process. If the COPY fails because of invalid load data, the COPY ID is updated, so you can use PG_LAST_COPY_ID when you query STL_LOAD_ERRORS table. If the COPY transaction is rolled back, the COPY ID is not updated.
The COPY ID is not updated if the COPY command fails because of an error that occurs before the load process begins, such as a syntax error, access error, invalid credentials, or insufficient privileges. The COPY ID is not updated if the COPY fails during the analyze compression step, which begins after a successful connection, but before the data load. COPY performs compression analysis when the COMPUPDATE parameter is set to ON or when the target table is empty and all the table columns either have RAW encoding or no encoding.
Syntax
pg_last_copy_id()
Return Type
Returns an integer.
Example
The following query returns the query ID of the latest COPY command in the current session.
select pg_last_copy_id(); pg_last_copy_id --------------- 5437 (1 row)
The following query joins STL_LOAD_ERRORS to STL_LOADERROR_DETAIL to view the details errors that occurred during the most recent load in the current session:
select d.query, substring(d.filename,14,20), d.line_number as line, substring(d.value,1,16) as value, substring(le.err_reason,1,48) as err_reason from stl_loaderror_detail d, stl_load_errors le where d.query = le.query and d.query = pg_last_copy_id(); query | substring | line | value | err_reason -------+-------------------+------+----------+---------------------------- 558| allusers_pipe.txt | 251 | 251 | String contains invalid or unsupported UTF8 code 558| allusers_pipe.txt | 251 | ZRU29FGR | String contains invalid or unsupported UTF8 code 558| allusers_pipe.txt | 251 | Kaitlin | String contains invalid or unsupported UTF8 code 558| allusers_pipe.txt | 251 | Walter | String contains invalid or unsupported UTF8 code


Event object is an object that you receive as an argument in a listener function when some event is fired, containing useful information about that event. For example:
map.on('click', function(e) {
alert(e.latlng); // e is an event object (MouseEvent in this case)
});
Event
The base event object. All other event objects contain these properties too.
| property |
type |
description |
type |
String |
The event type (e.g. 'click' ). |
target |
Object |
The object that fired the event. |
MouseEvent
| property |
type |
description |
latlng |
LatLng |
The geographical point where the mouse event occurred. |
layerPoint |
Point |
Pixel coordinates of the point where the mouse event occurred relative to the map layer. |
containerPoint |
Point |
Pixel coordinates of the point where the mouse event occurred relative to the map сontainer. |
originalEvent |
DOMMouseEvent |
The original DOM mouse event fired by the browser. |
LocationEvent
| property |
type |
description |
latlng |
LatLng |
Detected geographical location of the user. |
bounds |
LatLngBounds |
Geographical bounds of the area user is located in (with respect to the accuracy of location). |
accuracy |
Number |
Accuracy of location in meters. |
altitude |
Number |
Height of the position above the WGS84 ellipsoid in meters. |
altitudeAccuracy |
Number |
Accuracy of altitude in meters. |
heading |
Number |
The direction of travel in degrees counting clockwise from true North. |
speed |
Number |
Current velocity in meters per second. |
timestamp |
Number |
The time when the position was acquired. |
ErrorEvent
| property |
type |
description |
message |
String |
Error message. |
code |
Number |
Error code (if applicable). |
LayerEvent
| property |
type |
description |
layer |
Layer |
The layer that was added or removed. |
LayersControlEvent
| property |
type |
description |
layer |
Layer |
The layer that was added or removed. |
name |
String |
The name of the layer that was added or removed. |
TileEvent
| property |
type |
description |
tile |
HTMLElement |
The tile element (image). |
TileErrorEvent
| property |
type |
description |
tile |
HTMLElement |
The tile element (image). |
ResizeEvent
| property |
type |
description |
oldSize |
Point |
The old size before resize event. |
newSize |
Point |
The new size after the resize event. |
GeoJSON event
| property |
type |
description |
layer |
Layer |
The layer for the GeoJSON feature that is being added to the map. |
properties |
Object |
GeoJSON properties of the feature. |
geometryType |
String |
GeoJSON geometry type of the feature. |
id |
String |
GeoJSON ID of the feature (if present). |
| property |
type |
description |
popup |
Popup |
The popup that was opened or closed. |
DragEndEvent
| property |
type |
description |
distance |
Number |
The distance in pixels the draggable element was moved by. |
Global Switches
Global switches are created for rare cases and generally make Leaflet to not detect a particular browser feature even if it's there. You need to set the switch as a global variable to true
before including Leaflet on the page, like this:
<script>L_PREFER_CANVAS = true;</script>
<script src="leaflet.js"></script>
| Switch |
Description |
L_PREFER_CANVAS |
Forces Leaflet to use the Canvas back-end (if available) for vector layers instead of SVG. This can increase performance considerably in some cases (e.g. many thousands of circle markers on the map). |
L_NO_TOUCH |
Forces Leaflet to not use touch events even if it detects them. |
L_DISABLE_3D |
Forces Leaflet to not use hardware-accelerated CSS 3D transforms for positioning (which may cause glitches in some rare environments) even if they're supported. |
noConflict
This method restores the L global variable to the original value it had before Leaflet inclusion, and returns the real Leaflet namespace so you can put it elsewhere, like this:
// L points to some other library
...
// you include Leaflet, it replaces the L variable to Leaflet namespace
var Leaflet = L.noConflict();
// now L points to that other library again, and you can use Leaflet.Map etc.
version
A constant that represents the Leaflet version in use.
L.version // contains "0.5" (or whatever version is currently in use)


-
COVID-19 is mainly spread through respiratory droplets expelled by someone who is coughing or has other symptoms such as fever or tiredness. Many people with COVID-19 experience only mild symptoms. This is particularly true in the early stages of the disease. It is possible to catch COVID-19 from someone who has just a mild cough and does not feel ill.
Some reports have indicated that people with no symptoms can transmit the virus. It is not yet known how often it happens. WHO is assessing ongoing research on the topic and will continue to share updated findings.
-
Practicing hand and respiratory hygiene is important at ALL times and is the best way to protect others and yourself.
When possible maintain at least a 1 meter distance between yourself and others. This is especially important if you are standing by someone who is coughing or sneezing. Since some infected persons may not yet be exhibiting symptoms or their symptoms may be mild, maintaining a physical distance with everyone is a good idea if you are in an area where COVID-19 is circulating.
-
Self-isolation is an important measure taken by those who have COVID-19 symptoms to avoid infecting others in the community, including family members.
Self-isolation is when a person who is experiencing fever, cough or other COVID-19 symptoms stays at home and does not go to work, school or public places. This can be voluntarily or based on his/her health care provider’s recommendation. However, if you live in an area with malaria or dengue fever it is important that you do not ignore symptoms of fever. Seek medical help. When you attend the health facility wear a mask if possible, keep at least 1 metre distant from other people and do not touch surfaces with your hands.
-
To self-quarantine means to separate yourself from others because you have been exposed to someone with COVID-19 even though you, yourself, do not have symptoms.During self-quarantine you monitor yourself for symptoms. The goal of the self-quarantine is to prevent transmission. Since people who become ill with COVID-19 can infect people immediately self-quarantine can prevent some infections from happening.
In this case:
- Have a large, well-ventilated single room with hand hygiene and toilet facilities.
- If this is not available place beds at least 1 metre apart.
- Keep at least 1-metre distance from others, even from your family members.
- Monitor your symptoms daily.
- Self-quarantine for 14 days, even if you feel healthy.
- If you develop difficulty breathing, contact your healthcare provider immediately – call them first if possible.
- Stay positive and energized by keeping in touch with loved ones by phone or online, and by exercising yourself at home.
- However, if you live in an area with malaria or dengue fever it is important that you do not ignore symptoms of fever. Seek medical help.
- When you attend the health facility wear a mask if possible, keep at least 1 metre distant from other people and do not touch surfaces with your hands.
-
Quarantine means restricting activities or separating people who are not ill themselves but may have been exposed to COVID-19. The goal is to prevent spread of the disease at the time when people just develop symptoms.
Isolation means separating people who are ill with symptoms of COVID-19 and may be infectious to prevent the spread of the disease.
Physical distancing means being physically apart. WHO recommends keeping at least 1-metre distance from others. This is a general measure that everyone should take even if they are well with no known exposure to COVID-19.
-
While some western, traditional or home remedies may provide comfort and alleviate symptoms of mild COVID-19, there are no medicines that have been shown to prevent or cure the disease. WHO does not recommend self-medication with any medicines, including antibiotics, as a prevention or cure for COVID-19. However, there are several ongoing clinical trials of both western and traditional medicines. WHO is coordinating efforts to develop vaccines and medicines to prevent and treat COVID-19 and will continue to provide updated information as soon research results become available.
The most effective ways to protect yourself and others against COVID-19 are to:
- Clean your hands frequently and thoroughly.
- Avoid touching your eyes, mouth and nose.
- Cover your cough with the bend of elbow or tissue. If a tissue is used, discard it immediately and wash your hands.
- Maintain a distance of at least 1 metre from others.
-
The most important thing to know about coronavirus on surfaces is that they can easily be cleaned with common household disinfectants that will kill the virus. Studies have shown that the COVID-19 virus can survive for up to 72 hours on plastic and stainless steel, less than 4 hours on copper and less than 24 hours on cardboard.
As, always clean your hands with an alcohol-based hand rub or wash them with soap and water. Avoid touching your eyes, mouth, or nose.
-
Practicing hand and respiratory hygiene is important at ALL times and is the best way to protect others and yourself.
When possible maintain at least a 1 meter distance between yourself and others. This is especially important if you are standing by someone who is coughing or sneezing. Since some infected persons may not yet be exhibiting symptoms or their symptoms may be mild, maintaining a physical distance with everyone is a good idea if you are in an area where COVID-19 is circulating.
Medical masks are recommended primarily in health care settings, but can be considered in other circumstances (see below). Medical masks should be combined with other key infection prevention and control measures such as hand hygiene and physical distancing.


${_('Enter your Splunk.com username and password to download the %s' % appText)}
${_('Forgot your password?')}
% if (app_license_url != 'http://www.splunk.com/view/SP-CAAAAAH'):
${_('This %(appText)s is provided by a third party and your rights to use the '
'%(appText)s is in accordance with the license provided by that third-party licensor. '
'Splunk is not responsible for any third-party %(appText)ss and does not provide any '
'warranty or support. If you have any questions, complaints or claims with '
'respect to this %(appText)s, please contact the licensor directly, whose contact '
'information can be found on the download page.' % dict(appText=appText))}
% endif
${app_license}
${_('Splunk Websites Terms and Conditions of Use')}
${_('Please accept the terms and conditions.')}


Marketing
Page Sections
Hero Sections
6 components
Feature Sections
6 components
CTA Sections
7 components
Pricing Sections
7 components
Header Sections
3 components
FAQs
6 components
Newsletter Sections
3 components
Stats
3 components
Testimonials
3 components
Blog Sections
3 components
Contact Sections
5 components
Team Sections
8 components
Content Sections
5 components
Footers
7 components
Logo Clouds
5 components


The Pythagorean tree is a fractal generated by the following procedure:
Start with a unit square. Then, calling one of the sides its base (in the animation, the bottom side is the base):
- Attach a right triangle to the side opposite the base, with the
hypotenuse coinciding with that side and with the sides in a 3-4-5
ratio. Note that the smaller side of the triangle must be on the 'right'
side with respect to the base (see animation).
- Attach a square to each leg of the right triangle, with one of its sides coinciding with that leg.
- Repeat this procedure for both squares, considering as their bases the sides touching the triangle.
The resulting figure, after an infinite number of iterations, is the Pythagorean tree.
It can be shown that there exists at least one rectangle, whose sides
are parallel to the largest square of the Pythagorean tree, which
encloses the Pythagorean tree completely.
Find the smallest area possible for such a bounding rectangle, and give your answer rounded to 10 decimal places.


{% extends "base.html" %} {% block title %}Error rendering page{% endblock %} {% block description %}An error has occurred while renedering a Web page{% endblock %} {% block content %}
Something went wrong while rendering this page. We are working on fixing this issue, please check again later!


pbmtobbnbg(1) pbmtobbnbg(1) NAME pbmtobbnbg - convert a portable bitmap into BitGraph graphics SYNOPSIS pbmtobbnbg [rasterop] [x y] < pbmfile DESCRIPTION Reads a portable bitmap as input. Produces BBN BitGraph terminal Display Pixel Data (DPD) sequence as output. The rasterop can be specified on the command line. If this is omitted, 3 (replace) will be used. A position in (x,y) coordinates can also be specified. If both are given, the rasterop comes first. The portable bitmap is always taken from the standard input. Note that there is no bgtopbm tool. This programm was initially named pbmtobg. SEE ALSO pbm(5) AUTHOR Copyright 1989 by Mike Parker. 16 May 1989 pbmtobbnbg(1)


DO NOT USE: Edit heitorchang.github.io/scheme-for-web/klipse-scheme.html Instructions: Start a local web server, then load this page.
All three code textareas are shared by the interpreter. Keep (define)s in the top one because changing them will trigger re-evaluation of the Eval textareas.