import ast
import os
from lcc.entities.exceptions import InvalidFilesPath
import numpy as np
from lcc.utils.helpers import subDictInDict
from lcc.utils.helpers import checkDepth
[docs]class StatusResolver(object):
'''
This class is responsible for status files generated thru systematic searches
into databases and for reading files of planned queries.
Attributes
----------
status_header : list
Column names of status file
status_queries : list
Rows of status file
'''
NUM_STATUS_INFO = 4 # Number of status info columns +1
DELIMITER = ";"
def __init__(self, status_file_path):
'''
Parameters
----------
status_file_path : str
Path to the status file
FORMAT OF STATUS FILE:
#first_query_param second_query_param other_query_param found filtered passed
value1 value2 other_value True/False True/False True/False
...
This file is generated automatically during systematic search.
'''
self.status_header, self.status_queries = self._readFile(
status_file_path)
@classmethod
[docs] def getUnsearchedQuery(self, search_plan_file):
'''
Return list of queries which have not been queried yet.
Parameters
----------
Search_plan_file : str
Path to the file of planned queries
Returns
-------
list
List of query dictionaries
Note
----
FORMAT OF PLAN QUERIES FILE is the same as status file except 3 last
columns (without found, filtered and passed)
'''
plan_header, plan_queries = self._readFile(search_plan_file)
header_restr = self.status_header[:-self.NUM_STATUS_INFO]
col_num = len(header_restr)
queries_restr = np.hsplit(self.status_queries, np.array([col_num]))[0]
status_dict = self._getDictQuery(header_restr, queries_restr)
plan_dict = self._getDictQuery(plan_header, plan_queries)
return self._getDiff(plan_dict, status_dict)
[docs] def getWithStatus(self, stat):
'''
Get queries with given query status
Parameters
----------
stat : dict
Dictionary with status column name and its value
Example
--------
getStatus({"passed" : True}) --> [{"field":1,"starid":1, "target":"lmc"}, .. , {...}]
This example generates all stars which passed thru filtering
Returns
-------
list
Returns all queries with desired status
'''
status_dict = self._getDictQuery(
self.status_header, self.status_queries)
return subDictInDict(stat, status_dict, ["passed", "filtered", "found"])
[docs] def getQueries(self):
'''
Get status file as list of queries
Returns
-------
list
List of dictionary queries
'''
return self._getDictQuery(self.status_header, self.status_queries)
@classmethod
[docs] def save_query(self, query, fi_name="query_file.txt", PATH=".", DELIM=None,
overwrite=False):
'''
Save queries into the file which can be loaded for another query
Parameters
----------
query : list
List of dictionaries which contains query params
Returns
-------
None
'''
header = query[0].keys()
path = os.path.join(PATH, fi_name)
if not DELIM:
DELIM = self.DELIMITER
try:
if overwrite:
query_file = open(path, "w+")
else:
query_file = open(path, "a+")
except IOError as err:
raise InvalidFilesPath(err)
n = len(header)
if not query_file.readline().startswith("#"):
query_file.write("#")
for i, head in enumerate(header):
delim = DELIM
if i >= n - 1:
delim = ""
query_file.write(head + delim)
query_file.write("\n")
for que in query:
if len(que) != len(header):
raise Exception(
"Number of header params and values have to be the same.\nGot query %s and header %s \nCheck the query file if there are no missing value in any column or if there is a whitespace." % (que, header))
for i, key in enumerate(que):
delim = DELIM
if i >= n - 1:
delim = ""
query_file.write(str(que[key]) + delim)
query_file.write("\n")
query_file.close()
@classmethod
[docs] def save_lists_query(self, query=[], fi_name="query_file.txt", PATH=".", DELIM=None,
overwrite=False, header=None):
'''
Save queries into the file which can be loaded for another query
Parameters
----------
query : list
List of lists which contains
Returns
-------
None
'''
path = os.path.join(PATH, fi_name)
if not DELIM:
DELIM = self.DELIMITER
if not checkDepth(query, 2, ifnotraise=False):
query = [query]
if not header and query[0]:
return False
try:
if overwrite:
query_file = open(path, "w+")
else:
query_file = open(path, "a+")
except IOError as err:
raise InvalidFilesPath(err)
if header and not query_file.readline():
query_file.write(
"#" + DELIM.join([str(it) for it in header]))
for line in query:
query_file.write(DELIM.join([str(it) for it in line]) + "\n")
query_file.close()
@staticmethod
[docs] def get_with_status(queries, stat={"passed": True}):
'''
Return all queries with desired status
Parameters
----------
stat : dict
Dictionary with status column name and its value
queries : list
List of query dictionaries
Returns
-------
list
Returns all queries with desired status
'''
return subDictInDict(stat, queries)
def _readFile(self, path):
'''Get header and data from the file'''
header = self._readHeader(path)
data = self._getFileData(path)
# data = np.genfromtxt(path,dtype="|S5", delimiter = self.DELIMITER)
# data = self._correctData(data, header)
if len(header) != len(data[0]):
raise Exception(
"Number of header params and values have to be the same.\nGot %s and %s" % (data[0], header))
return header, data
def _readHeader(self, status_file_path):
'''Get keys from header in a list'''
with open(status_file_path, 'r') as f:
# Skip first symbol ('#') and the '\n'
header_line = f.readline()[1:].rstrip('\n')
return [head.strip() for head in header_line.split(self.DELIMITER)]
def _getDiff(self, desir_dicts, comp_dicts):
'''Get dictionaries from list of desir_dicts which is not present list of comp_dicts'''
diff_dicts = []
for query in desir_dicts:
if not query in comp_dicts:
diff_dicts.append(query)
return diff_dicts
def _getDictQuery(self, header, queries):
'''Get header list and contents of the status file as list of dictionaries'''
queries_list = []
for query in queries:
if type(query) is not np.ndarray and type(query) is not list:
query = [query]
queries_list.append(dict(zip(header, query)))
return queries_list
def _readInStr(self, words):
ENUM_SEP = ","
x = []
for word in words:
if ENUM_SEP in str(word):
x.append(word.split(ENUM_SEP))
else:
try:
x.append(ast.literal_eval(word.strip()))
except:
x.append(word)
return x
def _correctData(self, data, header):
try:
len(data[0])
assert not isinstance(data[0], str)
except:
# Check if just one value
try:
len(data)
except:
return [[data]]
# One line
if len(data) == len(header):
return [data]
# One column
else:
return [[i] for i in data]
return data
def _getFileData(self, path):
fi = open(path)
data = []
for line in fi.readlines():
line = line.strip()
if not line.startswith("#"):
parts = line.split(self.DELIMITER)
parts = self._readInStr(parts)
data.append(parts)
fi.close
return data


funQ Room
Home
C4
Logout
${username}
${location}
funQ
funQ of the week
--Story--
--Admin Box--
Release Result
Ready to Release?
×
Select "Release" below if you are ready to Release Answers for funQ.
Change Story
Change Story
Submit Changes
Upload New Test Requirement
Upload your CSV File
Change Evaluation Schema
Change Evaluation Schema
Change Argument Schema
String
Symbol
Integer
Change Answer Schema
String
Symbol
Integer
funQ Submission
Submit
Q output
Number of Users Joining Lunch
Current League Table
Updated yesterday at ${Place_holder}
Ready to Leave?
×
Select "Logout" below if you are ready to end your current session.


Avenger includes Bootstrap's responsive, mobile-first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes predefined classes for easy layout options, as well as powerful mixins for generating more semantic layouts.
| Extra small devices Phones (<768px) | Small devices Tablets (≥768px) | Medium devices Desktops (≥992px) | Large devices Desktops (≥1200px) | |
|---|---|---|---|---|
| Grid behavior | Horizontal at all times | Collapsed to start, horizontal above breakpoints | ||
| Max container width | None (auto) | 100% | 100% | 100% |
| Class prefix | .col-xs- |
.col-sm- |
.col-md- |
.col-lg- |
| # of columns | 12 | |||
| Max column width | Auto | 60px | 78px | 95px |
| Gutter width | 20px (10px on each side of a column) | |||
| Nestable | Yes | |||
| Offsets | N/A | Yes | ||
| Column ordering | N/A | Yes |
Using a single set of .col-md-*
grid classes, you can create a basic grid system that starts out stacked
on mobile devices and tablet devices (the extra small to small range) before becoming horizontal on desktop (medium)
devices.
Don't want your columns to simply stack in smaller devices? Use the extra small and medium device grid classes by adding
.col-xs-*
.col-md-*
to your columns. See the example below for a better idea of how it all
works.
Build on the previous example by creating even more dynamic and powerful layouts with tablet .col-sm-*
classes.
Move columns to the right using .col-md-offset-*
classes. These classes increase the left margin of a column
by * columns. For example, .col-md-offset-4
moves .col-md-4
over four columns.
To nest your content with the default grid, add a new .row
and set of .col-md-*
columns within
an existing .col-md-*
column. Nested rows should include a set of columns that add up to 12.
Easily change the order of our built-in grid columns with .col-md-push-*
and .col-md-pull-*
modifier classes.
Avenger contains an extension of Bootstrap's responsive mobile first layout which adds same height column support with the ability to chose vertical alignment just with a few additional classes.
You have to add the classes .container-xs-height
and .row-xs-height
to the container and the
row, and also add .col-xs-height
to the columns.

If you want to restrict the effect to a certain media query, just use .col-sm-height
or .col-md-height
or .col-lg-height
, also replacing xs in the container and in the row classes. You can also use different
column sizes on each media query.

You choose the aligment of each column by using the classes .col-top
or .col-middle
or .col-bottom
.
By adding no-gutter
to row
classes, you can place the columns with no gutter. Handy for fine
tuning your custom apps!


The pattern start is obvious: pattern:<style
.
…But then we can’t simply write pattern:<style.*?>
, because match:<styler>
would match it.
We need either a space after match:<style
and then optionally something else or the ending match:>
.
In the regexp language: pattern:<style(>|\s.*?>)
.
In action:
```js run let regexp = /<style(>|.*?>)/g;
alert( ’


This tab allows configuration of Logisim according to regional preferences.
Gate shape: Logisim supports three standards for drawing gates: shaped gates, rectangular gates, and DIN 40700 gates. The following table illustrates the distinction.
| Shaped | Rectangular | DIN 40700 | ||
|---|---|---|---|---|
| AND | ||||
| OR |
Because the shaped style tends to be more popular in the U.S., while the rectangular style tends to be more popular in Europe, some people refer to these styles according to these regions; but the region-neutral terms shaped and rectangular are preferred. The DIN 40700 standard was a standard for drafting digital and analog electronic components adopted by DIN, a German standards organization. DIN adopted the rectangular standard for digital components in 1976, but some engineers continue to use the older style; they appear to be increasingly rare.
Logisim does not follow any standard exactly; it steers a middle ground to allow switching between them. In particular, the shaped gates are more square than the dimensions defined by the relevant IEEE standard. And, although XOR and XNOR gates really ought to be the same width as OR and NOR gates with the rectangular style, they are not because of difficulties compressing the shaped-XOR gate.
Language: Change between languages. The current version is supplied with English, Spanish, Russian, and German translations.
Translations of Logisim into other languages are welcome! If you are interested, contact me, Carl Burch. This will not be a commitment: I will be happy to hear of your interest, and I will tell you whether I know of somebody who is working on it already, prepare a version for you to work with, and send you instructions. The translation process does not require an understanding of Java.
Replace accented characters: Some platforms have poor support for characters (such as ñ or ö) that do not appear in the 7-bit ASCII character set. When this is checked, Logisim will replace all instances of the characters with the appropriate equivalent 7-bit ASCII characters. The checkbox is disabled when the current language does not have any equivalents available (as with English).
Next: The Window tab.


Toggle navigation
dashQC_fmri
Summary
Registration
Motion
Registration Stats
Motion Stats
Group Images
Provenance Information
Subjects
Runs
T1 group average vs T1 template
Hover mouse over image for comparison image. Move mouse away to reset to original image.
BOLD group average vs T1 group average
Hover mouse over image for comparison image. Move mouse away to reset to original image.
BOLD group mask vs T1 group average
Hover mouse over image for comparison image. Move mouse away to reset to original image.
BOLD average of individual masks vs T1 group average
Hover mouse over image for comparison image. Move mouse away to reset to original image.
Pipeline overview
Input files for subject
Click on {...} to collapse.
Pipeline options
Click on {...} to collapse.


| Package | Description |
|---|---|
| com.github.davidmoten.rtree2 | |
| com.github.davidmoten.rtree2.geometry | |
| com.github.davidmoten.rtree2.geometry.internal | |
| com.github.davidmoten.rtree2.internal |
| Modifier and Type | Class and Description |
|---|---|
class |
Context<T,S extends Geometry>
Configures an RTree prior to instantiation of an
RTree . |
interface |
Entry<T,S extends Geometry> |
interface |
EntryFactory<T,S extends Geometry> |
interface |
Factory<T,S extends Geometry> |
interface |
Leaf<T,S extends Geometry> |
interface |
LeafFactory<T,S extends Geometry> |
interface |
Node<T,S extends Geometry> |
interface |
NonLeaf<T,S extends Geometry> |
interface |
NonLeafFactory<T,S extends Geometry> |
class |
RTree<T,S extends Geometry>
Immutable in-memory 2D R-Tree with configurable splitter heuristic.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,S extends Geometry> |
RTree.create()
Returns a new Builder instance for
RTree . |
<T,S extends Geometry> |
RTree.Builder.create()
Builds the
RTree . |
static <T,S extends Geometry> |
RTree.create(List<Entry<T,S>> entries)
Construct an Rtree through STR bulk loading.
|
<T,S extends Geometry> |
RTree.Builder.create(List<Entry<T,S>> entries)
Create an RTree by bulk loading, using the STR method.
|
static <T,S extends Geometry> |
Factories.defaultFactory() |
static <T,S extends Geometry> |
Entries.entry(T object,
S geometry) |
<R extends Geometry> |
RTree.search(R g,
BiPredicate<? super S,? super R> intersects)
Returns the intersections with the the given (arbitrary) geometry using an
intersection function to filter the search results returned from a search of
the mbr of
g . |
<R extends Geometry> |
RTree.search(R g,
double maxDistance,
BiFunction<? super S,? super R,Double> distance)
Returns all entries strictly less than
maxDistance from the
given geometry. |
<T,S extends Geometry> |
Selector.select(Geometry g,
List<? extends Node<T,S>> nodes)
Returns the node from a list of nodes that an object with the given
geometry would be added to.
|
<T,S extends Geometry> |
SelectorMinimalAreaIncrease.select(Geometry g,
List<? extends Node<T,S>> nodes) |
<T,S extends Geometry> |
SelectorMinimalOverlapArea.select(Geometry g,
List<? extends Node<T,S>> nodes) |
<T,S extends Geometry> |
SelectorRStar.select(Geometry g,
List<? extends Node<T,S>> nodes) |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Geometry> |
RTree.intersects(Rectangle r)
Returns a predicate function that indicates if
Geometry intersects
with a given rectangle. |
| Modifier and Type | Method and Description |
|---|---|
<T,S extends Geometry> |
Selector.select(Geometry g,
List<? extends Node<T,S>> nodes)
Returns the node from a list of nodes that an object with the given
geometry would be added to.
|
<T,S extends Geometry> |
SelectorMinimalAreaIncrease.select(Geometry g,
List<? extends Node<T,S>> nodes) |
<T,S extends Geometry> |
SelectorMinimalOverlapArea.select(Geometry g,
List<? extends Node<T,S>> nodes) |
<T,S extends Geometry> |
SelectorRStar.select(Geometry g,
List<? extends Node<T,S>> nodes) |
| Modifier and Type | Method and Description |
|---|---|
RTree.Builder |
RTree.Builder.factory(Factory<?,? extends Geometry> factory) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Circle |
interface |
Line |
interface |
Point |
interface |
Rectangle |
| Modifier and Type | Field and Description |
|---|---|
static BiPredicate<Circle,Geometry> |
Intersects.circleIntersectsGeometry |
static BiPredicate<Geometry,Circle> |
Intersects.geometryIntersectsCircle |
static BiPredicate<Geometry,Line> |
Intersects.geometryIntersectsLine |
static BiPredicate<Geometry,Point> |
Intersects.geometryIntersectsPoint |
static BiPredicate<Geometry,Rectangle> |
Intersects.geometryIntersectsRectangle |
static BiPredicate<Point,Geometry> |
Intersects.pointIntersectsGeometry |
static BiPredicate<Rectangle,Geometry> |
Intersects.rectangleIntersectsGeometry |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
Group.geometry() |
Geometry |
HasGeometry.geometry() |
| Modifier and Type | Class and Description |
|---|---|
class |
CircleDouble |
class |
CircleFloat |
class |
LineDouble
A line segment.
|
class |
LineFloat
A line segment.
|
class |
PointDouble |
class |
PointFloat |
class |
RectangleDouble |
class |
RectangleFloat |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
PointFloat.geometry() |
Geometry |
RectangleDouble.geometry() |
Geometry |
RectangleFloat.geometry() |
Geometry |
PointDouble.geometry() |
| Modifier and Type | Class and Description |
|---|---|
class |
EntryDefault<T,S extends Geometry>
An entry in the R-tree which has a spatial representation.
|
class |
FactoryDefault<T,S extends Geometry> |
class |
LeafDefault<T,S extends Geometry> |
class |
NodeAndEntries<T,S extends Geometry>
Used for tracking deletions through recursive calls.
|
class |
NonLeafDefault<T,S extends Geometry> |
| Modifier and Type | Method and Description |
|---|---|
static <T,S extends Geometry> |
LeafHelper.add(Entry<? extends T,? extends S> entry,
Leaf<T,S> leaf) |
static <T,S extends Geometry> |
NonLeafHelper.add(Entry<? extends T,? extends S> entry,
NonLeaf<T,S> node) |
static <T,S extends Geometry> |
Comparators.ascendingDistance(Rectangle r)
Returns a comparator that can be used to sort entries returned by search
methods.
|
static <T,S extends Geometry> |
LeafHelper.delete(Entry<? extends T,? extends S> entry,
boolean all,
Leaf<T,S> leaf) |
static <T,S extends Geometry> |
NonLeafHelper.delete(Entry<? extends T,? extends S> entry,
boolean all,
NonLeaf<T,S> node) |
static <T,S extends Geometry> |
EntryDefault.entry(T value,
S geometry)
Factory method.
|
static <T,S extends Geometry> |
FactoryDefault.instance() |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
LeafDefault.geometry() |
Geometry |
NonLeafDefault.geometry() |
Copyright © 2013–2019. All rights reserved.


Make sure that you have SYSADM (DB2 System Administrator) privileges on the DB2 instance that you are configuring this plug-in for.
Also, verify that you have DBADM (Database Administrator) privileges on the DB2 database that will contain the authentication information.


Class ComplexSolver
Class for solving real matrices
Inheritance
Implements
Inherited Members
Namespace: SpiceSharp.Algebra
Assembly: SpiceSharp.dll
Syntax
public class ComplexSolver : Solver<Complex>, IFormattable
Constructors
ComplexSolver()
Initializes a new instance of the ComplexSolver class.
Declaration
public ComplexSolver()
ComplexSolver(Int32)
Initializes a new instance of the ComplexSolver class.
Declaration
public ComplexSolver(int size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | size | The number of equations and variables. |
ComplexSolver(Int32, PivotStrategy<Complex>)
Initializes a new instance of the ComplexSolver class.
Declaration
public ComplexSolver(int size, PivotStrategy<Complex> strategy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | size | The number of equations and variables. |
| PivotStrategy<System.Numerics.Complex> | strategy | The pivot strategy. |
Methods
Factor()
Factor the matrix.
Declaration
public override bool Factor()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if factoring was successful. |
Overrides
FixEquations()
Fix the number of equations and variables.
Declaration
public override void FixEquations()
Overrides
Remarks
This method can be used to make sure that the matrix is fixed during solving. When fixed, it is impossible to add more elements to the sparse matrix or vector.
OrderAndFactor()
Order and factor the matrix.
Declaration
public override void OrderAndFactor()
Overrides
Solve(Vector<Complex>)
Solve the system of equations.
Declaration
public override void Solve(Vector<Complex> solution)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector<System.Numerics.Complex> | solution | The solution vector that will hold the solution to the set of equations. |
Overrides
SolveTransposed(Vector<Complex>)
Solve the transposed problem.
Declaration
public override void SolveTransposed(Vector<Complex> solution)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector<System.Numerics.Complex> | solution | The solution vector that will hold the solution to the transposed set of equations. |
Overrides
UnfixEquations()
Unfix the number of equations and variables.
Declaration
public override void UnfixEquations()


--- template: example.html title: turf-aggregate description: Takes a set of polygons, a set of points, and an array of aggregations, then perform them. Sum, average, count, min, max, and deviation are supported. tags: - aggregation ---


|
metaL/py
Repl.it Programming Language Jam
|
| AkkaLA.py | Actor programming model: Akka Language Abstraction |
| bcx.py | Byte Code eXecution engine |
| clojure.py | Clojure project template |
| config.py | Site-local private config |
| cross.py | Cross-Compiler toolchain build from source |
| demos.py | unikernel OS model |
| distill.py | Distilled metaL / SICP chapter 4 / |
| dja.py | Django Apps Generator |
| DRTK.py | MetaL model of dRTK: experimental distributed real-time operating system kernel book: K |
| drtos.py | drtos : distributed/embedded [RT]OS patterns |
| fl.py | Flask templates |
| hello.py | Hello World |
| html.py | HTML markdown objects |
| laguna.py | Distributed guest OS |
| license.py | Licenses |
| llvm.py | LLVM hacking |
| melixir.py | Elixir lang workout |
| metacircular.py | Metacircular implementation in metaL/py |
| metaL.py | Powered by metaL |
| mony.py | Monitoring system |
| rdbms.py | SQLite-based generic RDBMS model (not API client/interfacing library) |
| Smalltalk.py | Smalltalk language model /cPython implementation/ |
| tcc.py | ANSI C'99 code generation targeted for TCC: Tiny C Compiler |
| test_metaL.py | metaL core test bundle |
| webook.py | Web Book platform demo |
| WebRTCos.py | WebRTC-based distributed computing platform (JS hell) |
| world.py | Shared GIS data |


JUST IN: Truck falls into ‘pothole’ in Byo
Chronicle Reporter
A DRIVER in Bulawayo was left fuming at local authorities after his truck plunged into a ditch formed by a pipe burst, that swallowed half his vehicle, as he swerved to avoid a pothole along Old Khami Road on Friday morning.
Traffic came to halt on the usually busy road as a result of the incident.
The driver, who refused to be identified, said he would take legal action against the Bulawayo City Council for any losses incurred from the accident, as he believed he should not bear the brunt of their negligence.
The driver did not have any visible injuries while no other vehicle was involved in the accident.


[gecode-users] FloatVar alpha release
Filip Konvička
filip.konvicka at logis.cz
Tue Jun 17 16:26:47 CEST 2008
Dear all,
sorry for taking so long, here's the initial version of our float
variable efforts. The purpose of this release is to get initial feedback
and start discussions about both the design and implementation.
The code has been lying here for at least a month and we're currently
busy with many other things, but I do not want to wait any longer so I
hope that any feedback we might get from you will make us improve what
we've done so far. Any feedback is highly welcome!
The patch (float.zip/float.patch) is generated against the 2.1.1
release. I hope I've included all that is necessary.
The changes to Gecode itself are the float.patch and the float.vis file
(that goes to the source root directory, where "variables.vsl" resides).
The change involves adding a new variable type "slot" to Gecode, without
adding a corresponding variable implementation.
The actual implementation of "FloatVars" is in float_var.hpp and
float_view.hpp. These are template classes that are instantiated in your
application based on what interval library implementation you use with
them. We provide a specialization of the templates for Boost.Interval,
which ( to make things more obscure :-) ) can be used with multiple
low-level FP libraries itself.
The release includes:
template<typename DomainType> struct FloatVarImp;
- a "concept", unspecialized template FloatVar implementation
class and an associated delta class
template<typename IntervalArg>
struct FloatVarImp<boost::numeric::interval<IntervalArg> >;
- specialization of the above template for Boost.Interval.
- Delta and View classes for the same
I also include a preview of propagator implementations for
boost::numeric::interval<double> (see float_prop_preview.zip). Now these
are really a preview (although we are currently using similar code in
our development branch) and need some serious work that I hope I get to
soon. The provided propagators are:
- binary minimum, maximum
- binary relational and reifieed binary relational (lq, gq, eq)
- arithmetic (add, sub, mul, div)
The intended changes include changing the classes to templates to
support other Boost.Interval types and renaming of the propagators.
Overall, I'd like to address at least the following topics before a
"beta" release:
- Finish the propagators and maybe provide a simple "splitting" branching.
- Support explicit instantiation of the templates. This means moving
implementation out of the .hpp files, both for the variable and propagators.
- Verify the overall design. And this is my question to you all - is
there some reason to have a Delta class at all? (I always forget what
the deltas are supposed to represent...)
Cheers,
Filip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: float.zip
Type: application/x-zip-compressed
Size: 8569 bytes
Desc: not available
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080617/71f7c82a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: float_prop_preview.zip
Type: application/x-zip-compressed
Size: 4392 bytes
Desc: not available
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080617/71f7c82a/attachment-0001.bin>
More information about the gecode-users
mailing list


Now you can get that same online safety at home too! Manage all your kids' devices by pairing the same free SecurlyHoime App wutg a gine Hub $5.99 month
Kids want to use their devices to browse
YouTube, search and explore. Parents just
want to keep
kids safe. Securly provides safe
internet access by filtering outcontent that's
not meant for kids.
It's the easy way to give
everyone what they want.
You cam pause internet, customiszed time
by device and set overall time limits.
Rest easy you know Securly is at work
We created a simle hub that you plug into your Wi-Fi router, and an app that lets you customized time content. Online safety doesn't get easier that Securly
"My kids are always buggin me about more time on screens. With Securly Home we can easily trach screentime without it being a stress"
"My wife and I don't know what we'd do without Securly. It has given us the tool we need to manage our kids screentime, which is a huge relief"
"Every household needs to know about Securly through my daughters school. We got hooked, and now use it at home too."


Signup
Profile Picture
Login
Signup
Your request have already been submitted!
Please wait system admin to prove.
Login


Welcome to the Smart Client Software Factory Guidance Package
With the Smart Client Software Factory,
architects and developers can quickly incorporate many of the
proven practices and patterns of building composite smart client applications.
These practices and patterns have been identified during the development
of many smart client applications and their components.
By using the software factory, architects and developers can focus their
efforts on business opportunities and create smart client applications that
effectively address the needs of their organizations.
The recipes included in this Guidance Package automate common development tasks
such as: creation of the solution structure, adding modules, adding views and presenters,
and adding disconnected service agents.


{% if not subscriptions %}
You do not have any subscriptions.
Here is a list of your subscriptions. Check the boxes for those that you would like to unsubscribe from.


Recruitment for Spring 2018 is now open!
Click here to apply.
{% extends 'layouts/base.html' %} {% load compress %} {% load staticfiles %} {% block content %}
Join the Consulting Group at Virginia Tech to enhance your professional consulting skillset, gain a competitive advantage against the competition, and begin the path to a successful career. The recruitment process will test your analytical and professional skills through a series of interviews and training through the Associate Program.
The interview will consist of both a case study and a behavioral portion to test your critical thinking and interpersonal skills.
The case will be sent to you two days prior to your scheduled interview. Interviewers will be scoring based on your knowledge of the industry, case strategy, solution feasibility, presentation and communication. Applicants should be prepared to answer questions regarding the case and their solution.
The behavioral portion may consist of a review of your resume and further questions about your background and relevant experiences. Interviewers are looking for applicants to be conversational, passionate, and interested. Essentially, would you pass the Airplane Test?


Pycon Finland is a non-profit conference organized by a non-profit organization Python Finland association. The conference is meant for people interested in Python software development and related technologies. It's a part of global PyCon conference series
Pycon Finland 2012 will be held on October 21st-23rd. We'll have talks on the first day, and the second day is reserved for sprints, workshops and the biannual meeting of Python Finland association.
The venue for the conference is Aalto University campus, located at Otaniemi, Espoo, outside Helsinki city.
As a special feat, this year we'll have more sauna than all other Pycons of the world combined.
See the code of conduct of the conference


Curious about how Annex Theatre artists describe what we do? Check out some of our defintions below!
Ideally no longer than one page in length, an artist statement is an opportunity for you to showcase your personality and style to us at Annex. They are typically written in first person. We ask these of playwrights, directors, and any other proposers in order to learn from you why your are passionate about producing this specific production with Annex.
Although defined differently by the individual artists and audience members who pass through our doors, bold new work is what Annex produces on its stage. We produce plays never seen before that are forward-thinking. We produce them cheaply with our production incredibly small budgets are (compared to others) yet we are consistently nominated for critical awards. We look for the plays about topics currently at the top of consciousness in society. All of these factors and more contribute to bold new work
Annex prefers to produce our own plays, having a hand in each and every element of production, but it doesn't mean we don't like to make friends. We would love to talk about a co-production, especially to bring in new audiences. If you want to contribute a significant portion of your artistic and/or financial resources, a co-production may be the way to go. We have produced these as part of our season in the past. Be sure to mention it in your proposal and we'll discuss it in more detail at your pitch session.
Annex is an all-volunteer organization, run by a Company of volunteer artists and producers. These are the people who will choose the plays since they'll be the ones doing the work to produce them! When crafting your proposal, don't worry if you don't know any of us. We're very friendly.
A short description of your play or project that takes 30 seconds or less.
A 5 or 6 show run that performs at 11 pm on Friday and Saturday nights for 3 weeks. Late night shows cannot perform on opening night of the mainstage nor the night of Spin the Bottle (which runs every first Friday of the month). They have a Monday primetime Industry Night show. Late nights get about 1/4 of the design budget, tech time, and resources of a mainstage show. Burlesque and clown pieces are best suited to this time slot.
A 13 show run that performs at 7:30 pm on Thursday, Friday, and Saturday nights for 4 weeks. Every Thursday is PWYC, and there is a Monday Industry Night show. Mainstage productions are big and splashy pieces, produced on a tight budget using creativity!
A 7 show run that performs at 7:30 pm on Tuesday and Wednesday nights for 3 weeks. They have a Monday Industry Night show. Off-nights get about 1/4 of the design budget, tech time, and resources of a mainstage show. One-person shows and experimental works are best suited to this time slot.
Your play has been produced somewhere else in the world, but never before in the Puget Sound/Portland/Vancouver region. Although we primarily produce world premieres, if we really like a play we will commit to producing the PNW premiere.
A chance for you to meet the Annex Company and tell us about your show!
Once scheduled, pitch sessions are 20 minutes long.
We schedule several pitch sessions in an evening, with 5 minute breaks in between. Please arrive a few minutes early so that we can get started right away. An awesome pitch session includes:
Of course you may adjust this template, but we ask that you leave ample time for questions and conversation with us.
A production done at Annex that is not one of our 8 shows. Rentals receive a key to the space, storage, ticketing, Front of house volunteers, and a dedicated rental tech who may also run the board for your show. We do not do create marketing assets or do promotion for rentals.
Request for proposals.
The Annex selection process. Following the pitch sessions, we gather for two separate days to discuss all of the plays we've read and choose our next season through a process of consensus.

A workshop is part of the play development process. It can be a private or public reading, staged or done at a table. They're typically followed by a talkback session to help the playwright develop the play further but that's not a required component. Workshops are driven primarily by the artists and are not a guaranteed part of the Annex production process, even though we really like them!
A brand new play!


|
|
CIFXModel Class ReferenceInheritance diagram for CIFXModel:
List of all members.
|
Public Member Functions |
| U32 IFXAPI | AddRef () |
| U32 IFXAPI | Release () |
| IFXRESULT IFXAPI | QueryInterface (IFXREFIID riid, void **ppv) |
| U32 IFXAPI | GetResourcePalette () |
| IFXRESULT IFXAPI | SetSceneGraph (IFXSceneGraph *pInSceneGraph) |
| IFXRESULT IFXAPI | Mark () |
| void IFXAPI | SetPriority (U32 uInPriority, BOOL bRecursive, BOOL bPromotionOnly) |
| void IFXAPI | GetEncoderX (IFXEncoderX *&rpEncoderX) |
| void IFXAPI | Counter (EIFXNodeCounterType type, U32 *puOutCount) |
| IFXRESULT IFXAPI | GetSpatialBound (IFXVector4 &rOutSphere, U32 WorldInstance) |
| IFXSpatial::eType IFXAPI | GetSpatialType () |
| IFXRESULT IFXAPI | GetOutputs (IFXGUID **&rpOutOutputs, U32 &rOutNumberOfOutputs, U32 *&rpOutOutputDepAttrs) |
| IFXRESULT IFXAPI | GetDependencies (IFXGUID *pInOutputDID, IFXGUID **&rppOutInputDependencies, U32 &rOutNumberInputDependencies, IFXGUID **&rppOutOutputDependencies, U32 &rOutNumberOfOutputDependencies, U32 *&rpOutOutputDepAttrs) |
| IFXRESULT IFXAPI | GenerateOutput (U32 inOutputDataElementIndex, void *&rpOutData, BOOL &rNeedRelease) |
| IFXRESULT IFXAPI | SetDataPacket (IFXModifierDataPacket *pInInputDataPacket, IFXModifierDataPacket *pInDataPacket) |
| IFXRESULT IFXAPI | Notify (IFXModifierMessage eInMessage, void *pMessageContext) |
| BOOL IFXAPI | GetDebug () |
| void IFXAPI | SetDebug (BOOL bDebug) |
| U32 IFXAPI | GetVisibility () |
| void IFXAPI | SetVisibility (U32 uInVisible) |
| const IFXLightSet &IFXAPI | GetLightSet () |
| const IFXFrustum &IFXAPI | GetFrustum () const |
| IFXRESULT IFXAPI | SetFrustum (const IFXFrustum &rInFrustum) |
| U32 IFXAPI | GetViewSize (void) |
| IFXRESULT IFXAPI | SetViewSize (U32 uInViewSize) |
| U32 IFXAPI | GetPickable () |
| void IFXAPI | SetPickable (U32 uPickable) |
| U32 IFXAPI | GetAssociatedSpatialCount (IFXSpatialAssociation::Type eInAssociationType) |
| IFXRESULT IFXAPI | GetAssociatedSpatial (U32 uInSpatialIndex, IFXSpatial **ppOutSpatial, IFXSpatialAssociation::Type eInAssociationType) |
| IFXRESULT IFXAPI | SetAssociatedSpatials (SPATIALINSTANCE_LIST *pInSpatials, U32 uInSpatialCount, IFXSpatialAssociation::Type eInAssociationType) |
| IFXRESULT IFXAPI | AppendAssociatedSpatials (SPATIALINSTANCE_LIST *pInSpatials, U32 uInSpatialCount, IFXSpatialAssociation::Type eInAssociationType) |
| virtual IFXRESULT IFXAPI | Update (IFXSubject *pInSubject, U32 uInChangeBits, IFXREFIID rIType) |
| IFXRESULT IFXAPI | SetResourceIndex (U32 uResourceIndex) |
Static Public Member Functions |
| static IFXRESULT IFXAPI | Shutdown () |
Private Member Functions |
| | CIFXModel () |
| virtual | ~CIFXModel () |
| | IFXDECLAREMEMBER (IFXLightSet, m_pLightSet) |
| | IFXDECLAREMEMBER (IFXBoundSphereDataElement, m_pBoundFrameBounds) |
| | IFXDECLAREMEMBER (IFXRenderable, m_BoundFrameMeshGroupRndr) |
| IFXRESULT | _AllocateBoundFrame () |
| IFXRESULT | AttachToModChainForWorldPositionChange () |
Private Attributes |
| U32 | m_uLightSetDataElementIndex |
| U32 | m_uFrustumDataElementIndex |
| U32 | m_uViewSizeDataElementIndex |
| U32 | m_uBoundFrameDataElementIndex |
| U32 | m_uBoundFrameBoundsDataElementIndex |
| BOOL | m_bDebug |
| U32 | m_uPickable |
| U32 | m_uVisible |
| IFXFrustum * | m_pFrustum |
| IFXSubject * | m_pResourceSubjectNR |
| U32 | m_uViewSize |
| BOOL | m_bProcessingBoundFrameBounds |
| IFXMeshGroupPtr | m_BoundFrameMeshGroup |
| IFXMeshPtr | m_AxisMesh |
| IFXInterleavedDataPtr | m_AxisLineSet |
| U32 | m_uBoundFrameShader |
| U32 | m_uBoundFrameMaterial |
| IFXMeshPtr | m_RenderedSphereMesh |
| BOOL | m_bBoundFrameAllocated |
| BOOL | m_bAttachedToModChain |
| BOOL | m_bWorldSphereDirty |
Static Private Attributes |
| static IFXFrustum | frustum |
| static IFXMeshPtr | m_sUnitSphereMesh |
| static U32 | m_suBoundFaceCount = 0 |
Friends |
| IFXRESULT IFXAPI_CALLTYPE | CIFXModel_Factory (IFXREFIID riid, void **ppv) |
Constructor & Destructor Documentation
| CIFXModel::CIFXModel |
( |
|
) |
[private] |
|
| CIFXModel::~CIFXModel |
( |
|
) |
[private, virtual] |
|
Member Function Documentation
| IFXRESULT CIFXModel::_AllocateBoundFrame |
( |
|
) |
[private] |
|
| U32 CIFXModel::AddRef |
( |
|
) |
[virtual] |
|
|
|
This method increments the reference count for an interface on a component.
- Note:
- It should be called for every new copy of a pointer to an interface on a given component.
- Returns:
- It returns a U32 that contains a value from 1 to 2^32 - 1 that defines the new reference count. The return value should only be used for debugging purposes.
Implements IFXUnknown. |
|
|
Appends a provided set of spatials to this spatial's associated spatial set.
- Parameters:
-
| ppInSpatials | The address of the array of spatial pointers. |
| uInSpatialCount | An integer that specifies the number of spatials in ppInspatials. |
| eAssociationType | The specified spatial type. |
- Returns:
- One of the following IFXRESULT codes:
Implements IFXSpatialAssociation. |
| IFXRESULT CIFXModel::AttachToModChainForWorldPositionChange |
( |
|
) |
[private] |
|
| IFXRESULT CIFXModel::GenerateOutput |
( |
U32 |
inOutputDataElementIndex, |
|
|
void *& |
rpOutData, |
|
|
BOOL & |
rNeedRelease |
|
) |
[virtual] |
|
|
|
Generate a result from the input DataPacket.
- Parameters:
-
| inDataElementIndex | The index of the DataElement. |
| rpOutData | The pointer to the output DataElement interface. |
- Returns:
- Upon success, IFX_OK is returned or IFX_W_MODIFIER_OUTPUT_NOT_CHANGED if the specified output DataElement did not change. Otherwise, one of the following failures are returned: IFX_E_INVALID_ENTRY if the specified DataElement does not exist; or IFX_E_NOT_INITIALIZED if the Modifier, ModifierDataPacket, and/or the ModifierChain was not initialized properly.
Reimplemented from CIFXNode. |
|
|
Returns the number of associated spatials of the specified type.
- Parameters:
-
| eAssociationType | The type of spatial which to return the count. |
- Returns:
- One of the following IFXRESULT codes:
Implements IFXSpatialAssociation. |
| BOOL IFXAPI CIFXModel::GetDebug |
( |
|
) |
[inline, virtual] |
|
|
|
Returns the value of the debug flag.
- Returns:
- BOOL
- TRUE - Debug geometry is visible.
- FALSE - Debug geometry is not visible.
Implements IFXModel. |
| IFXRESULT CIFXModel::GetDependencies |
( |
IFXGUID * |
pInOutputDID, |
|
|
IFXGUID **& |
rppOutInputDependencies, |
|
|
U32 & |
rOutNumberInputDependencies, |
|
|
IFXGUID **& |
rppOutOutputDependencies, |
|
|
U32 & |
rOutNumberOfOutputDependencies, |
|
|
U32 *& |
rpOutOutputDepAttrs |
|
) |
[virtual] |
|
|
|
Hands back the list of input DataElements and the list of output DataElements, by which, the result of the specified pInOutputDID is determined.
- Parameters:
-
| pInOutputDID | One of the Modifier's output DIDs in the list handed back from GetOutputs(). |
| rppOutInputDependencies | The pointer to contain the address of the list of input DIDs, by which, the specified output is determined. |
| rOutNumberInputDependencies | The U32 to contain the number of GUIDs in rppOutInputDependencies. |
| rppOutOutputDependencies | The pointer to contain the address of the list related output DIDs. |
| ruOutNumberOfOutputDependencies | The U32 to contain the number of GUIDs in rppOutOutputDependencies. |
- Returns:
- Upon success, IFX_OK is returned.
- Note:
- The Modifier is responsible for the lifetime of the list.
Implements IFXModifier. |
| void CIFXModel::GetEncoderX |
( |
IFXEncoderX *& |
rpEncoderX |
) |
[virtual] |
|
|
|
Function that hands back the IFXEncoderX interface pointer to a component that can be used to encode this component.
- Parameters:
-
| rpEncoderX | Reference to the encoder's interface pointer that will be set to a valid value upon success. |
Implements IFXMarkerX. |
| const IFXFrustum& IFXAPI CIFXModel::GetFrustum |
( |
|
) |
const [inline, virtual] |
|
|
|
Returns the current view frustum.
- Returns:
- IFXFrustum A reference to the frustum.
Implements IFXModel. |
| const IFXLightSet & CIFXModel::GetLightSet |
( |
|
) |
[virtual] |
|
|
|
Returns the current light set.
- Returns:
- IFXLightSet A reference to the light set.
Implements IFXModel. |
| IFXRESULT CIFXModel::GetOutputs |
( |
IFXGUID **& |
rpOutOutputs, |
|
|
U32 & |
rOutNumberOfOutputs, |
|
|
U32 *& |
rpOutOutputDepAttrs |
|
) |
[virtual] |
|
|
|
Hands back a pointer to the list of DIDs that the Modifier will add or change.
- Parameters:
-
| rpOutOutputs | The pointer to contain the address of the consecutive list of resultant DataElement GUID pointers. |
| rOutNumberOfOutputs | The U32 to contain the number of GUIDs in the rpOutOutputs. |
| rpOutUnchangedOutputAttrs | The array of U32 attributes which were not changed. |
- Returns:
- Upon success, IFX_OK is returned. Otherwise, one of the following failures are returned: IFX_E_OUT_OF_MEMORY.
- Note:
- This method can be used before, and after, the Modifier is initialized.
The Modifier is responsible for the lifetime of the list.
Implements IFXModifier. |
| U32 IFXAPI CIFXModel::GetPickable |
( |
|
) |
[inline, virtual] |
|
|
|
Returns the value of the pickable flag.
- Returns:
- U32
- 0 - Not pickable.
- 1 - Front pickable.
- 2 - Back pickable.
- 3 - Front and back pickable.
Implements IFXModel. |
| U32 IFXAPI CIFXModel::GetResourcePalette |
( |
|
) |
[inline, virtual] |
|
| IFXRESULT CIFXModel::GetSpatialBound |
( |
IFXVector4 & |
rOutSphere, |
|
|
U32 |
WorldInstance |
|
) |
[virtual] |
|
|
|
Returns the value of the spatial's world space bounding sphere.
- Parameters:
-
| rOutSphere | A reference to the vector to contain the value of the spatial's world bound sphere. |
- Returns:
- One of the following IFXRESULT codes:
Implements IFXModel. |
| U32 IFXAPI CIFXModel::GetViewSize |
( |
void |
|
) |
[inline, virtual] |
|
|
|
Returns the current view size - computed as (width<<16) | height.
- Returns:
- U32 An unsigned integer representing the current view size.
Implements IFXModel. |
| U32 IFXAPI CIFXModel::GetVisibility |
( |
|
) |
[inline, virtual] |
|
|
|
Returns the value of the visibility flag.
- Returns:
- U32
- 0 - Not visible.
- 1 - Front visible.
- 2 - Back visible.
- 3 - Front and back visible.
Implements IFXModel. |
| CIFXModel::IFXDECLAREMEMBER |
( |
IFXRenderable |
, |
|
|
m_BoundFrameMeshGroupRndr |
|
|
) |
[private] |
|
| CIFXModel::IFXDECLAREMEMBER |
( |
IFXLightSet |
, |
|
|
m_pLightSet |
|
|
) |
[private] |
|
| IFXRESULT CIFXModel::Mark |
( |
|
) |
[virtual] |
|
|
|
Recursively marks a subset of the database.
Reimplemented from CIFXNode. |
| IFXRESULT CIFXModel::Notify |
( |
IFXModifierMessage |
eInMessage, |
|
|
void * |
pMessageContext |
|
) |
[virtual] |
|
| IFXRESULT CIFXModel::QueryInterface |
( |
IFXREFIID |
riid, |
|
|
void ** |
ppv |
|
) |
[virtual] |
|
|
|
This method provides access to the various interfaces supported by a component.
Upon success, it increments the component's reference count and hands back a pointer to the specified interface.
- Note:
- A number of rules must be adhered to by all implementations of IFXAPI QueryInterface . For a list of such rules, refer to the IFXCOM usage guidelines.
- Returns:
- Upon success, IFX_OK is returned. Otherwise, either IFX_E_INVALID_POINTER or IFX_E_UNSUPPORTED are returned.
Implements IFXUnknown. |
| U32 CIFXModel::Release |
( |
|
) |
[virtual] |
|
|
|
This method decrements the reference count for the calling interface on a component.
- Note:
- If the reference count on a component falls to zero, the component is destroyed.
- Returns:
- It returns a U32 that contains a value from 1 to 2^32 - 1 that defines the new reference count. The return value should only be used for debugging purposes.
Implements IFXUnknown. |
|
|
Configures the provided set of spatials as the spatial's associated spatial set.
- Parameters:
-
| ppOutSpatials | Array of spatial ptrs of associated spatials. |
| uInSpatialCount | A count of the number of spatials contained in the spatial ptr array. |
| eAssociationType | The specified spatial type. |
- Returns:
- One of the following IFXRESULT codes:
Implements IFXSpatialAssociation. |
|
|
Associates a new DataPacket with the Modifier.
- Precondition:
- None.
- Postcondition:
- The provided DataPacket is associated with the Modifier. If the Modifier was already associated with a DataPacket, it is first released.
- Parameters:
-
| pInDataPacket | The incoming IFXDataPacket That will provide input to the modifier chain. |
| pInDataPacket | The incoming IFXDataPacket to be associated with the Modifier. |
- Returns:
- Upon success, IFX_OK is returned. Otherwise, one of the following failures are returned: IFX_E_OUT_OF_MEMORY.
Reimplemented from CIFXNode. |
| void CIFXModel::SetDebug |
( |
BOOL |
bDebug |
) |
[virtual] |
|
|
|
Set the value of the debug flag.
- Parameters:
-
| bVisible | TRUE - turn debug on, FALSE - turn debug off |
- Returns:
- void
Implements IFXModel. |
| IFXRESULT CIFXModel::SetFrustum |
( |
const IFXFrustum & |
rInFrustum |
) |
[virtual] |
|
|
|
Sets the current view frustum.
- Parameters:
-
- Returns:
- void
Implements IFXModel. |
| void IFXAPI CIFXModel::SetPickable |
( |
U32 |
uPickable |
) |
[inline, virtual] |
|
|
|
Sets the value of the pickable flag.
- Parameters:
-
- 0 - Not pickable.
- 1 - Front pickable.
- 2 - Back pickable.
- 3 - Front and back pickable.
- Returns:
- void
Implements IFXModel. |
| void CIFXModel::SetPriority |
( |
U32 |
uInPriority, |
|
|
BOOL |
bRecursive, |
|
|
BOOL |
bPromotionOnly |
|
) |
[virtual] |
|
|
|
Set the streaming priority ( zero = initial load segment ) The two default, optional arguments are used in the following way:
- by default, bRecursive == TRUE, indicating that components should propagate the SetPriority() call to any subordinate (child) components.
If bRecursive == FALSE, the SetPriority() only applies to the component upon which the method was called (i.e. local only).
- by default, bPromotionOnly == TRUE, indicating that the specified priority (uInPriority) is only applied if it is a greater priority (lower U32) than the current priority of the component. In other words, by default, you cannot lower a components priority. If bPromotionOnly == FALSE, then the component accepts the new priority irregardless of its value relative to its old priority.
Reimplemented from CIFXNode. |
| IFXRESULT CIFXModel::SetResourceIndex |
( |
U32 |
uResourceIndex |
) |
[virtual] |
|
|
|
Sets the styleMap index.
- Parameters:
-
| uResourceIndex | U32 indicating the styleMap index. |
- Returns:
- IFXRESULT
Implements IFXModel. |
| IFXRESULT CIFXModel::SetSceneGraph |
( |
IFXSceneGraph * |
pInSceneGraph |
) |
[virtual] |
|
|
|
Declares database ownership.
Reimplemented from CIFXNode. |
| IFXRESULT CIFXModel::SetViewSize |
( |
U32 |
uInViewSize |
) |
[virtual] |
|
|
|
Sets the current view size.
- Parameters:
-
| uInViewSize | A U32 representing the view size.
|
- Returns:
- void
Implements IFXModel. |
| void IFXAPI CIFXModel::SetVisibility |
( |
U32 |
uInVisible |
) |
[inline, virtual] |
|
|
|
Sets the value of the visibility flag.
- Parameters:
-
- 0 - Not visible.
- 1 - Front visible.
- 2 - Back visible.
- 3 - Front and back visible.
- Returns:
- void
Implements IFXModel. |
| IFXRESULT IFXAPI CIFXModel::Shutdown |
( |
|
) |
[static] |
|
|
|
Notification that the provided subject has changed.
- Parameters:
-
| pInSubject | A pointer to the IFXSubject interface of the component that changed. |
| uInChangeBits | The aspects of interest that changed as defined by the supplied IFXSubject's published interest bits. if uInChangeBits are 0, then the subject is shutting down, and should be released if AddRef'ed, or local references should be cleared in the weak reference case. |
- Returns:
- One of the following IFXRESULT codes:
- IFX_OK
No error.
- IFX_E_INVALID_POINTER
pInSubject was NULL.
- IFX_E_OUT_OF_MEMORY
Not enough memory is available to resolve the change.
- Note:
- This method is typically called from IFXSubject::PostChanges().
This method with uInChangeBits = 0 allows for the circular reference between the Observer and the Subject to be broken.
Reimplemented from CIFXNode. |
Friends And Related Function Documentation
| IFXRESULT IFXAPI_CALLTYPE CIFXModel_Factory |
( |
IFXREFIID |
riid, |
|
|
void ** |
ppv |
|
) |
[friend] |
|
Member Data Documentation
© 1999 - 2006 Intel Corporation. All rights reserved.
* Other names and brands may be claimed as the property of others.
|
|


Löve Frames - Custom Objects
Return to Index
Creating your own custom objects and loading them into Love Frames is quite a simple process. Just follow the steps below.
Setting Up
To create a custom object to use within Love Frames, you first need create a Lua file for the object. Then place the Lua file in Love Frame's objects directory and open it.
Creating the Object
To actually create the custom object and have it registered with Love Frames, you need to call loveframes.NewObject from within the Lua file that you have created.
loveframes.NewObject takes 3 arguments. The first argument is a unique id for the object which will be used to create the object with loveframes.Create.
The second argument is a unique name for the object which will be used by middleclass to actually create the object. The third agument is an optional boolean that specifies whether or
not the object should be derrived from the Love Frames base object. When you call loveframes.NewObject, it will return the object that it has just created, allowing you
to assign custom properties and methods to the object. Below is an example of what a basic custom object might look like:


MOVE repositions a cursor without retrieving any data. MOVE works exactly like the FETCH command, except it only positions the cursor and does not return rows.
The parameters for the MOVE command are identical to those of the FETCH command; refer to FETCH for details on syntax and usage.
On successful completion, a MOVE command returns a command tag of the form
MOVE count
The count is the number of rows that a FETCH command with the same parameters would have returned (possibly zero).
BEGIN WORK; DECLARE liahona CURSOR FOR SELECT * FROM films; -- Skip the first 5 rows: MOVE FORWARD 5 IN liahona; MOVE 5 -- Fetch the 6th row from the cursor liahona: FETCH 1 FROM liahona; code | title | did | date_prod | kind | len -------+--------+-----+------------+--------+------- P_303 | 48 Hrs | 103 | 1982-10-22 | Action | 01:37 (1 row) -- Close the cursor liahona and end the transaction: CLOSE liahona; COMMIT WORK;


{{ article.summary }}
{% extends './base.html' %} {% block jumbotron %} {#
This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.


Our story.
Sealed was founded by two aerospace engineers frustrated with inconvenient and unsafe package delivery in San Francisco.
Traditional mail carriers attempt midday deliveries when nobody is home, and they leave packages in unsafe locations for thieves to swipe. Rescheduling deliveries is annoying, and each carrier has their own redelivery policies, driver instructions, access points, missed delivery notices, mobile apps, phone support, and fine print. You just want your package!
Sealed was founded by two aerospace engineers frustrated with inconvenient and unsafe package delivery in San Francisco.
Traditional mail carriers attempt midday deliveries when nobody is home, and they leave packages in unsafe locations for thieves to swipe. Rescheduling deliveries is annoying, and each carrier has their own redelivery policies, driver instructions, access points, missed delivery notices, mobile apps, phone support, and fine print. You just want your package!
Our principles.
Convenience: With Sealed, you pick a 1-hour window for delivery that works for you. You won’t need to stay at home all day for a UPS delivery that says “Today before 8pm” or miss an attempted Fedex delivery at 1pm while you’re at work. Tell us when to deliver your packages, and we’ll be there.
Flexibility: Headed out of town for the weekend and worried about online orders?  Sealed receives and keeps your packages safe until you’re ready for them.
Security: Package theft is growing and many residents are finding their doorstep or gate is not a safe place for packages. You shouldn’t have to rush to your door, run home from work, or install expensive cameras just to thwart thieves.
Trust: Receiving your packages is not only important to you, but it’s also very personal. We’re continually humbled by the number of people that trust us to do this important job. If you haven’t already, we’re excited for you to join the Sealed family.
Your $12 order of food is delivered into your hands, but your $150 Amazon package is left unattended at your doorstep “sometime before 8pm”? Huh?


Noun
Meaning: Silent
Phrase
Meaning: A dream that I always have
Verb
Meaning: Won
Meaning: Financial income


RiOS v6.5 and later provides a way to configure Certificate Revocation Lists (CRLs) for an automatically discovered CA using the Management Console. CRLs allow CAs to revoke issued certificates (for example, when the private key of the certificate has been compromised). By default, CRLs are not used in the Steelhead appliance.A CRL is a database that contains a list of digital certificates that have been invalidated before their expiration date, including the reasons for the revocation and the names of the issuing certificate signing authorities. The CRL is issued by the CA which issues the corresponding certificates. All CRLs have a lifetime during which they are valid (often 24 hours or less).server-side Steelhead appliance verifies the certificate presented by the server in the SSL handshake between the server-side Steelhead appliance and the server. server-side Steelhead appliance verifies the certificate presented by the client-side Steelhead appliance in the handshake between the two Steelhead appliances for establishing a secure inner channel over the WAN. client-side Steelhead appliance verifies the certificate presented by the server-side Steelhead appliance in the handshake between the two Steelhead appliances for establishing a secure inner channel over the WAN. Conventional CAs, which are listed in the Certificate Authorities page. Peering CAs, which are listed in the Trusted Entities list in the Secure Peering page. Note: Currently, the Steelhead appliance only supports downloading CRLs from Lightweight Directory Access Protocol (LDAP) servers.
1. On the server-side Steelhead appliance, choose Configure > Optimization > CRL Management to display the CRL Management page.
Enable Automatic CRL Polling for CAs Enables CRL polling and use of a CRL in handshake verifications of CA certificates. Currently, the Steelhead only supports downloading CRLs from Lightweight Directory Access Protocol (LDAP) servers. Enable Automatic CRL Polling for Peering CAs Fail Handshakes If A Relevant CRL Cannot Be Found Configures handshake behavior for a CRL. Fails the handshake verification if a relevant CRL for either a peering or server certificate cannot be found.
3. Click Apply to save your settings to the running configuration.
4. Click Save to save your settings permanently.You can view, override, or remove CRL distribution points (CDPs) for CAs in the Configure > Optimization > CRL Management page.A CDP is a field within a certificate containing information that describes where to retrieve the CRL for the certificate.
1. On the server-side Steelhead appliance, choose Configure > Optimization > CRL Management to display the CRL Management page.The Automatically Discovered CRL Distribution Points table displays a list of CAs for which CDPs have been automatically discovered. Because not all CAs have CDPs, this list is a subset of the main CA list in the Configure > Certificate Authorities page or a subset of the CAs in the Peering Trust table in the Configure > Optimization > Secure Peering page.
1. Click the Expand icon next to the CDP name.
4. Click Check for Update to refresh the display.
1. Click Add Manual Override.
4. Click Add.


|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractSpinnerModel javax.swing.SpinnerDateModel
public class SpinnerDateModel
A SpinnerModel
for sequences of Date
s.
The upper and lower bounds of the sequence are defined by properties called
start
and end
and the size
of the increase or decrease computed by the nextValue
and previousValue
methods is defined by a property
called calendarField
. The start
and end
properties can be null
to
indicate that the sequence has no lower or upper limit.
The value of the calendarField
property must be one of the
java.util.Calendar
constants that specify a field
within a Calendar
. The getNextValue
and getPreviousValue
methods change the date forward or backwards by this amount.
For example, if calendarField
is Calendar.DAY_OF_WEEK
,
then nextValue
produces a Date
that's 24
hours after the current value
, and previousValue
produces a Date
that's 24 hours earlier.
The legal values for calendarField
are:
Calendar.ERA
Calendar.YEAR
Calendar.MONTH
Calendar.WEEK_OF_YEAR
Calendar.WEEK_OF_MONTH
Calendar.DAY_OF_MONTH
Calendar.DAY_OF_YEAR
Calendar.DAY_OF_WEEK
Calendar.DAY_OF_WEEK_IN_MONTH
Calendar.AM_PM
Calendar.HOUR
Calendar.HOUR_OF_DAY
Calendar.MINUTE
Calendar.SECOND
Calendar.MILLISECOND
This model inherits a ChangeListener
. The
ChangeListeners
are notified whenever the models
value
, calendarField
,
start
, or end
properties changes.
JSpinner
,
SpinnerModel
,
AbstractSpinnerModel
,
SpinnerListModel
,
SpinnerNumberModel
,
Calendar.add(int, int)
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractSpinnerModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
SpinnerDateModel()
Constructs a SpinnerDateModel whose initial
value is the current date, calendarField
is equal to Calendar.DAY_OF_MONTH , and for which
there are no start /end limits. |
|
SpinnerDateModel(Date value,
Comparable start,
Comparable end,
int calendarField)
Creates a SpinnerDateModel that represents a sequence of dates
between start and end . |
| Method Summary | |
|---|---|
int |
getCalendarField()
Returns the Calendar field that is added to or subtracted from
by the nextValue and previousValue methods. |
Date |
getDate()
Returns the current element in this sequence of Date s. |
Comparable |
getEnd()
Returns the last Date in the sequence. |
Object |
getNextValue()
Returns the next Date in the sequence, or null if
the next date is after end . |
Object |
getPreviousValue()
Returns the previous Date in the sequence, or null
if the previous date is before start . |
Comparable |
getStart()
Returns the first Date in the sequence. |
Object |
getValue()
Returns the current element in this sequence of Date s. |
void |
setCalendarField(int calendarField)
Changes the size of the date value change computed by the nextValue and previousValue methods. |
void |
setEnd(Comparable end)
Changes the upper limit for Date s in this sequence. |
void |
setStart(Comparable start)
Changes the lower limit for Dates in this sequence. |
void |
setValue(Object value)
Sets the current Date for this sequence. |
| Methods inherited from class javax.swing.AbstractSpinnerModel |
|---|
addChangeListener, fireStateChanged, getChangeListeners, getListeners, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpinnerDateModel(Date value, Comparable start, Comparable end, int calendarField)
SpinnerDateModel
that represents a sequence of dates
between start
and end
. The
nextValue
and previousValue
methods
compute elements of the sequence by advancing or reversing
the current date value
by the
calendarField
time unit. For a precise description
of what it means to increment or decrement a Calendar
field
, see the add
method in
java.util.Calendar
.
The start
and end
parameters can be
null
to indicate that the range doesn't have an
upper or lower bound. If value
or
calendarField
is null
, or if both
start
and end
are specified and
mininum > maximum
then an
IllegalArgumentException
is thrown.
Similarly if (minimum <= value <= maximum)
is false,
an IllegalArgumentException is thrown.
value
- the current (non null
) value of the modelstart
- the first date in the sequence or null
end
- the last date in the sequence or null
calendarField
- one of
Calendar.ERA
Calendar.YEAR
Calendar.MONTH
Calendar.WEEK_OF_YEAR
Calendar.WEEK_OF_MONTH
Calendar.DAY_OF_MONTH
Calendar.DAY_OF_YEAR
Calendar.DAY_OF_WEEK
Calendar.DAY_OF_WEEK_IN_MONTH
Calendar.AM_PM
Calendar.HOUR
Calendar.HOUR_OF_DAY
Calendar.MINUTE
Calendar.SECOND
Calendar.MILLISECOND
IllegalArgumentException
- if value
or
calendarField
are null
,
if calendarField
isn't valid,
or if the following expression is
false: (start <= value <= end)
.Calendar.add(int, int)
,
setValue(java.lang.Object)
,
setStart(java.lang.Comparable)
,
setEnd(java.lang.Comparable)
,
setCalendarField(int)
public SpinnerDateModel()
SpinnerDateModel
whose initial
value
is the current date, calendarField
is equal to Calendar.DAY_OF_MONTH
, and for which
there are no start
/end
limits.
| Method Detail |
|---|
public void setStart(Comparable start)
start
is null
,
then there is no lower limit. No bounds checking is done here:
the new start value may invalidate the
(start <= value <= end)
invariant enforced by the constructors. This is to simplify updating
the model. Naturally one should ensure that the invariant is true
before calling the nextValue
, previousValue
,
or setValue
methods.
Typically this property is a Date
however it's possible to use
a Comparable
with a compareTo
method for Dates.
For example start
might be an instance of a class like this:
MyStartDate implements Comparable { long t = 12345; public int compareTo(Date d) { return (t < d.getTime() ? -1 : (t == d.getTime() ? 0 : 1)); } public int compareTo(Object o) { return compareTo((Date)o); } }Note that the above example will throw a
ClassCastException
if the Object
passed to compareTo(Object)
is not a Date
.
This method fires a ChangeEvent
if the
start
has changed.
start
- defines the first date in the sequencegetStart()
,
setEnd(java.lang.Comparable)
,
AbstractSpinnerModel.addChangeListener(javax.swing.event.ChangeListener)
public Comparable getStart()
Date
in the sequence.
start
propertysetStart(java.lang.Comparable)
public void setEnd(Comparable end)
Date
s in this sequence.
If start
is null
, then there is no upper
limit. No bounds checking is done here: the new
start value may invalidate the (start <= value <= end)
invariant enforced by the constructors. This is to simplify updating
the model. Naturally, one should ensure that the invariant is true
before calling the nextValue
, previousValue
,
or setValue
methods.
Typically this property is a Date
however it's possible to use
Comparable
with a compareTo
method for
Date
s. See setStart
for an example.
This method fires a ChangeEvent
if the end
has changed.
end
- defines the last date in the sequencegetEnd()
,
setStart(java.lang.Comparable)
,
AbstractSpinnerModel.addChangeListener(javax.swing.event.ChangeListener)
public Comparable getEnd()
Date
in the sequence.
end
propertysetEnd(java.lang.Comparable)
public void setCalendarField(int calendarField)
nextValue
and previousValue
methods.
The calendarField
parameter must be one of the
Calendar
field constants like Calendar.MONTH
or Calendar.MINUTE
.
The nextValue
and previousValue
methods
simply move the specified Calendar
field forward or backward
by one unit with the Calendar.add
method.
You should use this method with care as some UIs may set the
calendarField before commiting the edit to spin the field under
the cursor. If you only want one field to spin you can subclass
and ignore the setCalendarField calls.
calendarField
- one of
Calendar.ERA
Calendar.YEAR
Calendar.MONTH
Calendar.WEEK_OF_YEAR
Calendar.WEEK_OF_MONTH
Calendar.DAY_OF_MONTH
Calendar.DAY_OF_YEAR
Calendar.DAY_OF_WEEK
Calendar.DAY_OF_WEEK_IN_MONTH
Calendar.AM_PM
Calendar.HOUR
Calendar.HOUR_OF_DAY
Calendar.MINUTE
Calendar.SECOND
Calendar.MILLISECOND
This method fires a ChangeEvent
if the
calendarField
has changed.
getCalendarField()
,
getNextValue()
,
getPreviousValue()
,
Calendar.add(int, int)
,
AbstractSpinnerModel.addChangeListener(javax.swing.event.ChangeListener)
public int getCalendarField()
Calendar
field that is added to or subtracted from
by the nextValue
and previousValue
methods.
calendarField
propertysetCalendarField(int)
public Object getNextValue()
Date
in the sequence, or null
if
the next date is after end
.
getNextValue
in interface SpinnerModel
Date
in the sequence, or null
if
the next date is after end
.SpinnerModel.getNextValue()
,
getPreviousValue()
,
setCalendarField(int)
public Object getPreviousValue()
Date
in the sequence, or null
if the previous date is before start
.
getPreviousValue
in interface SpinnerModel
Date
in the sequence, or
null
if the previous date
is before start
SpinnerModel.getPreviousValue()
,
getNextValue()
,
setCalendarField(int)
public Date getDate()
Date
s.
This method is equivalent to (Date)getValue
.
value
propertysetValue(java.lang.Object)
public Object getValue()
Date
s.
getValue
in interface SpinnerModel
value
propertysetValue(java.lang.Object)
,
getDate()
public void setValue(Object value)
Date
for this sequence.
If value
is null
,
an IllegalArgumentException
is thrown. No bounds
checking is done here:
the new value may invalidate the (start <= value < end)
invariant enforced by the constructors. Naturally, one should ensure
that the (start <= value <= maximum)
invariant is true
before calling the nextValue
, previousValue
,
or setValue
methods.
This method fires a ChangeEvent
if the
value
has changed.
setValue
in interface SpinnerModel
value
- the current (non null
)
Date
for this sequence
IllegalArgumentException
- if value is null
or not a Date
getDate()
,
getValue()
,
AbstractSpinnerModel.addChangeListener(javax.swing.event.ChangeListener)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.


Backend Programming, Code structure design, UI and UX Implementation.
Implement new products, modify existing production system, database and website maintenance for ecommerce based projects which running in China, Singapore, USA and Bangladesh. Analyze system to ensure optimum loading time and best security.
Design, create, and modify application based project, newsletter and website for Clients. Analyze task requirements to develop an optimum solution. Working closely with Project Managers and others members of the development team for both develop detailed specification for a clear project deliverables by given due date.
Design, create, and modify application based project, newsletter and website for Clients. Analyze task requirements to develop an optimum solution. Working closely with Project Managers and others members of the development team for both develop detailed specification for a clear project deliverables by given due date.
Secondary School Certificate (SSC)
Higher Secondary School Certificate (HSC)
B.Sc in Computer Science and Engineering


Hope ur smiling! I'm really excited for what this year for programming will bring! Press the link below to access my project page which I have been adding to throughout the last few months :)
My project page


I'm a hard working and dedicated young developer. At only 20 I've already taught myself multiple languages and developed many Projects utilizing those languages. I genuinely enjoy every aspect of software developement I've touched so I have gone out of my way to vary the things I am learning. From Python to PowerShell I am actively learning as many areas of software as I can in order to be the best developer possible.
In the projects below I made sure to keep them unique, varied, and interesting. The lists do not show every single project but they do show projects that cover quite a wide range and show off my abilities well.


TC/2012/00001 Terry Example vs HMRC
Pay via authorised account
Appeals or applications from Her Majestey's Revneue and Customs (HRMC), UK Border Force (UKBF), National Crime Authority (NCA) or organisations with an authorised account enter your account details below.


Define Authentication
Authentication = Who
Authentication is verifying a user is who they say they are. This involves the user having a secret or credential of some kind and supplying that to the server and having the server verify that secret
Define Authorization
Authorization = What
Authorization is what Role or Permissions the user has.
What are the types of "Secrets"?
Define Symetric Encryption
A single private key is used to encrypt some data using a lossless algorithm. You can use the private key to decrypt and restore the original data
What is a lossless algorithm?
Lossless compression is a class of data compression algorithms that allows the original data to be perfectly reconstructed from the compressed data. Lossless data compression is used in many applications. ... For example, it is used in the ZIP file format and in the GNU tool gzip.
Define Asymmetric Encription
A system with two keys, a private key and a public key. If Bob wants to send an encrypted message to Alice then Bob uses his private key and Alice's public key to encrypt the message. Now not even Bob can decrypt the message. The only way to decrypt the message is for Alice to use her private key and Bob's public key
What are the following examples of:
Symmetric Encryption - Using a single private key to encrypt some data using a lossless algorithm. You use the private key to decrypt and restore the original data.
What are the following examples of:
Asymmetric Encryption - A system with two keys, a private key and a public key.
What is a "Broken" hash function
The hash function has either been solved, or has been shown to have a flaw
In the following list, identify which are "broken" hash functions
MD5 and SHA-1 should not be used to store user passwords.
Define a hash function
Hash functions are algorithms that generate a lossy hash of a value such that the original value cannot be recovered if someone has the hash
A Salt is a random value added to a password before hashing and stored alongside the password in the database. This makes rainbow tables of pre-computed hashes less useful for figuring out the original password.
In the list below, identify strong hash functions:
Define a "Brute force" attack on your hash
This is just where you try to hash every possible combination of characters until you get a matching hash. This is slow.
Define a "Rainbow Attack" on your hash
You use a list of pre-computed hashes (A Rainbow Table) and compare the hash you want to crack against it. This is still slow, but faster than the brute force attack.
Define a session-based authentication
Session based authentication is where you use a session-id, stored in a cookie, to authenticate the user once they have first authenticated with a password.
What npm package do we need for a session based authentication in Express?
npm install express-session
How do we configure middleware to use the session-id?
app.use(session({
secret: 'a5d63fc5-17a5-459c-b3ba-6d81792158fc', // Secret used to verify the session-id
resave: false, // Recommended by the express-session package
saveUninitialized: false, // Recommended by the express-session package
}));
Where do you store the secret used in the express-session?
Typically it should be stored in an environment variable in your .env file.
Where does express store your session data?
By default, express-session
stores the session data in memory. Which means if you
restart
your
express server you are going to lose your session data (all users will suddenly be logged out of the
system).
How are you able to get session information from middleware?
The middleware creates a .session
property on the express req
(Request)
object.
You
can use this to store information you would like to persist for the user, such as the user's
id
or other information that is relevant for your application
When do you risk losing your session data?
If you store your express-session in memory (the default method), if your server is restarted the session data will be lost and all of your users will suddenly be logged out of the system.
How do you remedy losing your session data if your server is rebooted?
Configure a different mechanism for the session store.
We can use the connect-pg-simple
module to connect to postgreSQL and store the session
in a
table in our database
const store = require('connect-pg-simple');
app.use(session({
store: new (store(session))(),
secret: 'a5d63fc5-17a5-459c-b3ba-6d81792158fc',
resave: false,
saveUninitialized: false,}));
It will need an environment variable named DATABASE_URL
to know which postgreSQL
database to
conneect to.
DATABASE_URL=p[ostgresql://<username>:<password>@<host>:<port>/<database
name>
What library would you use to implement a strong hash function to securely store passwords?
bcrypt: npm install bcryptjs
How would you use bcrypt to generate a strong hashed password?
const hashedPassword = await bcrypt.hash(password,
10);
>
How do you verify a password against a a hashed password using bcrypt?
const passwordMatch = await bcrypt.compare(password,
user.hashedPassword.toString());
The passwordMatch value will be a boolean.
What are the different security options for cookies?
What is REST an acronym for?
Representational State Transfer
Describe how RESTful endpoints differ from traditional remote-procedure call (RPC) services.
/tweets/12
and the HTTP methods are verbs
GET
POST
PUT
PATCH
DELETE
getTweetById?id=12
Describe a collection resource, and what it may look like.
Collection resources would return a collection of items. It would look like: /tweets
Describe a single resource and what it might look like.
A single resource simply returns a single item. /tweets/17
Given the following database table, what would be some good RESTful endpoints for a backend API.
| Tweets |
|---|
| id |
| message |
| createdAt |
| updatedAt |
These would return JSON
| Path | HTTP Verb | Meaning |
|---|---|---|
| /api/tweets | GET | Get a list of your tweets |
| /api/tweets | POST | Create a new tweet |
| /api/tweets/17 | GET | Get the details of a tweet with the id of 17 |
| /api/tweets/17 | PUT/PATCH | Update a tweet with the id of 17 |
| /api/tweets/17 | DELETE | Delete a tweet with the id of 17 |
Give the same table, shown below, what might be good RESTful endpoints for a frontend?
| Tweets |
|---|
| id |
| message |
| createdAt |
| updatedAt |
These would return HTML
| Path | HTTP Verb | Meaning | |
| /tweets | GET | Show a page of tweets | |
| /tweets/new | GET | Show a form to add a new tweet | |
| /tweets | POST | Create a new tweet | |
| /tweets/17 | GET | Show a page displaying a single tweet | |
| /tweets/17/edit | GET | Show a form to edit a tweet with the id of 17 | |
| /tweets/17 | PUT/PATCH | Update a tweet with the id of 17 | |
| /tweets/17 | DELETE | Delete a tweet with the id of 17 |
Is RESTful a standard (like ECMAScript or URLs)?
No! It is a common way to organize interactions
The reason we call it 'RESTful is because it is more of an idea or a set of guidelines for building APIs which conform nicely with how the web already works
How are RESTful APIs meant to be stateless?
Recall that a stateful operation is the one whose result depends on any state that might change during the execution of the pipeline. Stateless operations retain no state during the execution of the pipeline
There is no necessary session between the client and the server. Data received from the server can be used by the client independently. This allows you to have short discrete operations. This is a natural fit for HTTP operations in which requests are intended to be independent and short-lived.
How would you parse HTTP request bodies, if the request was of type application/json?
Use express.json() middleware to parse the HTTP request bodies with type application/json
app.use(express.json());
If you have an object returned from a database call like
User.findByPk(pk)
how would you limit the information returned
from
that call to the front-end?
Create a new POJO containing only the information needed
app.get('/users/:id', asyncHandler(async (req, res) => {
const user = await User.findByPk(req.params.id);
//A new POJO containing only user.id and user.email
const userData = {
id: user.id,
email: user.email
}
res.json(userData);
}));
How would you return a subset of the collection of objects retrieved from
a
database call similar to User.findAll()
so that you did not return sensitive or uneeded
information
to the front-end?
You might use the map function to map out an array of objects. Take, for instance, the users object representing the return from the User.all() call may look as follows:
[
{
id: 1,
email<EMAIL_ADDRESS>name: 'Bryan',
password: 'mypassword'
},
{
id: 2,
email<EMAIL_ADDRESS>name: 'Kyle',
password: 'kylespassword'
}
]
app.get('/users', asyncHandler(async (req, res) => {
const users = await User.all();
//A new array of POJOs containing only the user.id and user.email fields
const usersData = users.map(user => {
return { id: user.id, email: user.email }
});
res.json(usersData);
}));
usersData
then looks as follows. Notice we are not returning the sensitive password
information:
[
{ id: 1, email<EMAIL_ADDRESS>},
{ id: 2, email<EMAIL_ADDRESS>}
]
What is CORS?
Cross-Origin Resource Sharing. By default, JavaScript running in the browser can only access API resources from the same origin (i.e. domain, protocol, port). Cross Origin resource sharing is when you attempt to access another domain, protocol, or port that is not the same as your origin.

YES! Even the ports must be the same, if the default settings are used when executing your JavaScript.
How would you prevent CORs errors
npm install cors
app.use(cors({ origin: "http://localhost:3000"}))
You probably wnat to store the CORS origin in an environment variable in your .env
file
instead
of hard coding it.
Explain the fundamental concepts of OAuth as a way to authenticate users
OAuth 2.0 is a standardized mechanism for authenticating users using a 3rd party OAuth provider.
Describe the workflow of OAuth resource owner password credentals grant (RFC 6749 Section 4.3)
What is a JWT?
A json web token.
No, seriously, what is a JSON Web Token?
JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA.
What are the two types of JWTs?
What are the 3 components of a JWT?
typ
(type)
and
alg
algorithm.The JWT token consist of a single string with these three parts separated by the .
character.
Each part of the token is Base64 encoded.
What can a JWT token be used for?
authentication and authorization
Can a JSON Web Token be used to decrypt data?
No
What is a good way of securely transmitting information between parties?
JSON Web Tokens are a good way of securely transmitting information between parites. Because JWTs can be signed -- for example, using public/private key pairs -- you can be sure the senders are who they say they are. Additionally, as the signature is calculated using the header and the payload, you can also verify that the content hasn't been tampered with.
What is this an example of:
{
"alg": "HS256",
"typ": "JWT"
}
A JWT Header. It typically consists of two parts - the type of the token, which is JWT, and the signing algorithm being used, such as HMAC, SHA256, or RSA.
What is the following an example of?
{
"sub": "1234567890",
"name": "John Doe",
"admin": true
}
A JWT Payload
Payloads are the second part of a JWT token. The payload contains the claims. Claims are statements about an entity (typically, the user) and additional data. There are tree types of claims: registered, public, and private claims.
What is the following?
HMACSHA256(
base64UrlEncode(header) + "." +
base64UrlEncode(payload),
secret)
This is the signature of a JWT. To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that.
The signature is used to verify the message wasn't changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is.
What is a cool JWT tool that will help you decode, verify, and generate JWTs?
jwt.io
What is this?
A JWT that has the header and payloaded encoded, and is signed with a secret. Note that each part is
separated by a .


UVLogMessage Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCopying |
| Declared in | UVLog.h |
Overview
The UVLogMessage
class encapsulates information about the log message.
If you write custom loggers or formatters, you will be dealing with objects of this class.
– initWithMessage:level:flag:context:file:function:line:tag:options:timestamp:
Standard init method for a log message object. Used by the logging primitives. (And the macros use the logging primitives.)
- (instancetype)initWithMessage:(NSString *)message level:(UVLogLevel)level flag:(UVLogFlag)flag context:(NSInteger)context file:(NSString *)file function:(NSString *__null_unspecified)function line:(NSUInteger)line tag:(id __nullable)tag options:(UVLogMessageOptions)options timestamp:(NSDate *__nullable)timestamp
Parameters
message |
the message |
|---|---|
level |
the log level |
flag |
the log flag |
context |
the context (if any is defined) |
file |
the current file |
function |
the current function |
line |
the current code line |
tag |
potential tag |
options |
a bitmask which supports UVLogMessageCopyFile and UVLogMessageCopyFunction. |
timestamp |
the log timestamp |
Return Value
a new instance of a log message model object
Discussion
If you find need to manually create logMessage objects, there is one thing you should be aware of:
If no flags are passed, the method expects the file and function parameters to be string literals. That is, it expects the given strings to exist for the duration of the object’s lifetime, and it expects the given strings to be immutable. In other words, it does not copy these strings, it simply points to them. This is due to the fact that FILE and FUNCTION are usually used to specify these parameters, so it makes sense to optimize and skip the unnecessary allocations. However, if you need them to be copied you may use the options parameter to specify this.
Declared In
UVLog.h


Home
Intro to Objects
Javascript Object Demo
View the source for this page to see a demonstration of how objects work.


Conditions
Host
<host matches="www.mine.com" />
True if the hostname of the request matches the given value.
Port
<port matches="80" />
True if the URL port of the request matches the given value.
Path
<path matches="/order/*" />
True if the URL path of the request matches the given value.
Use can use capturing groups , e.g. /products/(.+) and use its value in the response body by referring them as $path.1$ for the first group
Method
<method matches="GET" />
Only true if the Http method is equal to (and matches) GET.
RequestHeader
<requestheader name="Content-Type" matches="application/xml" />
True if the specified Request Header (by name) of the request matches the given value.
RequestBody
<requestbody matches="*"" />
True if the specified Request Body (content) of the request matches the given value.
BasicAuthentication
<basicauthentication username="Aladdin" password="open sesame" />
True if the Authorization header matches the Base64 encoded version of username:password combination
Not
<not>
<host matches="not.test.critter" />
</not>
Any condition can be wrapped in a not element to negate it.


Flexbox Layout
Lorem ipsum dolor sit amet eleifend tincidunt tortor fringilla neque ut quam quis.
Fully Responsive
Lorem ipsum dolor sit amet eleifend tincidunt tortor fringilla neque ut quam quis.
Great Quality
Lorem ipsum dolor sit amet eleifend tincidunt tortor fringilla neque ut quam quis.
We deliver excellent services
You can see our professional achievements in numbers, which show we are highly skilled with many trusty clients.
Awards Received
Projects Done
Happy Clients
Who We Are A Story About Us
Curabitur mollis bibendum luctus. Duis suscipit vitae dui sed suscipit. Vestibulum auctor nunc vitae diam eleifend, in maximus metus sollicitudin. Quisque vitae sodales lectus. Nam porttitor justo sed mi finibus, vel tristique risus faucibus.
Yes, We Provide Awesome Features More Feature Rich
Philanthropy convener end hunger gender rights local. John Lennon storytelling; advocate, altruism impact catalyst.
Flexbox Layout
Stretch your Website to the Full Width or make it boxed to surprise your visitors.
Extensive Documentation
We have covered each & everything in our Docs including Videos & Screenshots.
Parallax Support
Display your Content attractively using Parallax Sections with HTML5 Videos.
HTML5 Video
Support for New HTML5 Videos that can be added to a Background.
Endless Possibilities
Complete control on each & every element that provides endless customization.
24/7 Support
Get full support from our great team. Available 24/7 just for you.
Choose Your Best Package Our Pricing
Curabitur mollis biuctus. Duis suscipit dui sed suscipit. Vestibulum auctor nunc vitae diam eleifend, in maximus metus n. Quisque vitae sodales lectus.
Start Plan
You will get all these awesome services with this great price. Get started now!
$ 9.99 / month
- Designing a company logo
- Building company website
- Website SEO & deployment
- Website maintenance
- 24/7 customer support
Business Plan
You will get all these awesome services with this great price. Get started now!
$ 39.99 / month
- Designing a company logo
- Building company website
- Website SEO & deployment
- Website maintenance
- 24/7 customer support
Unlimited Plan
You will get all these awesome services with this great price. Get started now!
$ 59.99 / month
- Designing a company logo
- Building company website
- Website SEO & deployment
- Website maintenance
- 24/7 customer support
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Dolores,
Koorem ipsum dolor sit amet consectetur adipisicing elit.
Meet Our Talented Team Our Creative Team
Curabitur mollis bibendum luctus. Duis sutae dui sed suscipit. Vestibulum auctor nunc vitae diam eleifend,icitudin. Quisque vitae sodales lectus.
Our Happy Clients Our Clients
Curabitur mollis bibendum luctus. Duis suscipit vitae dui sed suscipit. Vestibulum auctor nunc vitae diam eleifend,
Read Latest News Latest From Blog
Curabitur mollis bibendum luctus. Duis suscipit vitae dui sed suscipit. Vestibulum auctor nunc vitae diam eleifend, in maximus metus sollicitudin. Quisque vitae sodales lectus. Nam porttitor justo sed mi finibus, vel tristique risus faucibus.
Get In Touch Contact FbX.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Beatae nam ea placeat facilis iure, dolorem molestias debitis error corrupti natus at, reiciendis sapiente quo! A esse assumenda officiis fugiat doloribus.
Our Address
Office# 524, Mina Street Building 05, Newyork, USA.Our Phone
Office Telephone : +(88) 457877487
Mobile : +(55) 879588746
Our Email
Email<EMAIL_ADDRESS>Inquiries<EMAIL_ADDRESS>Our Support
Support<EMAIL_ADDRESS>Sales : sales@fbx.com


On Proxies & Load Balancers
Proxy (Protects Clients)
- Proxies act as a shield, as a firewall that keeps all the bad stuff from the internet out of the intranet
- Better management, multiple clients can talk to the same proxy. Proxy helps manage all the requests at one place and then pass it on to the outside world
- Security, prevents phishing attacks
- Performance via caching, say multiple clients are requesting for a static page from a website... once this particular request has been fetched from the server. you can store that static content on the proxy. Rather than going back through the internet and onto that website again, you can just fetch the static content from the proxy, saving bandwidth and improving performance
- Encryption/decryption, when your client makes a request to a website (web server) through a proxy, the proxy hides your IP whether by changing it or decrypting it so the web server doesnt know where you are in the world. It can also encrypt your data so it is unreadable in transit. It also can block access to certain web pages based on IP address.
Reverse Proxy (Protects Servers)
Whereas deploying a load balancer makes sense only when you have multiple servers, it often makes sense to deploy a reverse proxy even with just one web server or application server. You can think of the reverse proxy as a website’s “public face.” Its address is the one advertised for the website, and it sits at the edge of the site’s network to accept requests from web browsers and mobile apps for the content hosted at the website. The benefits are two-fold:
- Increased security – No information about your backend servers is visible outside your internal network, so malicious clients cannot access them directly to exploit any vulnerabilities. Many reverse proxy servers include features that help protect backend servers from distributed denial-of-service (DDoS) attacks, for example by rejecting traffic from particular client IP addresses (blacklisting), or limiting the number of connections accepted from each client.
- Increased scalability and flexibility – Because clients see only the reverse proxy’s IP address, you are free to change the configuration of your backend infrastructure. This is particularly useful In a load-balanced environment, where you can scale the number of servers up and down to match fluctuations in traffic volume.
Another reason to deploy a reverse proxy is for web acceleration – reducing the time it takes to generate a response and return it to the client. Techniques for web acceleration include the following:
-
Compression
– Compressing server responses before returning them to the client (for instance, with "
gzip
") reduces the amount of bandwidth they require, which speeds their transit over the network. - SSL termination – Encrypting the traffic between clients and servers protects it as it crosses a public network like the Internet. But decryption and encryption can be computationally expensive. By decrypting incoming requests and encrypting server responses, the reverse proxy frees up resources on backend servers which they can then devote to their main purpose, serving content.
- Caching – Before returning the backend server’s response to the client, the reverse proxy stores a copy of it locally. When the client (or any client) makes the same request, the reverse proxy can provide the response itself from the cache instead of forwarding the request to the backend server. This both decreases response time to the client and reduces the load on the backend server.
Taken from the Nginx website
Til next time,
khairulslt
at 08:27


Thumbnails
Document Outline
Attachments
Previous
Next
Highlight all
Match case
Whole words
Presentation Mode
Open
Print
Download
Current View
Go to First Page
Go to Last Page
Rotate Clockwise
Rotate Counterclockwise
Text Selection Tool
Hand Tool
Vertical Scrolling
Horizontal Scrolling
Wrapped Scrolling
No Spreads
Odd Spreads
Even Spreads
Document Properties…
Toggle Sidebar
Find
Previous
Next
Presentation Mode
Open
Print
Download
Current View
Tools
Zoom Out
Zoom In
Automatic Zoom
Actual Size
Page Fit
Page Width
50%
75%
100%
125%
150%
200%
300%
400%
套印定位點資料
套印PDF
More Information
Less Information
Close
Enter the password to open this PDF file:
Cancel
OK
File name:
-
File size:
-
Title:
-
Author:
-
Subject:
-
Keywords:
-
Creation Date:
-
Modification Date:
-
Creator:
-
PDF Producer:
-
PDF Version:
-
Page Count:
-
Page Size:
-
Fast Web View:
-
Close
Preparing document for printing…
0%
Cancel
id
printType
defines
X1
Y1
X2
Y2
Type
text
checkbox
radio
Desc
刪除
重新定位
定位點資料
下載文字檔
更新定位點


Properties of Elements Exposed via CSS Variables
Varsity is a CSS reprocessor that makes the following JS values available as CSS variables for any element you tell the plugin to watch:
offsetWidth
offsetHeight
offsetLeft
offsetTop
aspect-ratio
characters
children
value
By default, Varsity will reprocess selectors by watching the following events:
load
resize
input
click
To run Varsity whenever you want, use the varsity()
function in JS.
To have varsity watch an element, you need to give that element a unique identifier, as well as add the data-varsity
attribute. The plugin will use either the value of the data-varsity
attribute, or else the value of the id
(if defined) for an element.

Once the plugin is aware of an element to watch, and the unique name of that element, it will make the above values available in the following format: --name-value
, for example:
--example-offsetWidth
--example-offsetHeight
--example-offsetLeft
--example-offsetTop
--example-aspect-ratio
--example-characters
--example-children
--example-value


PE's e-hailing drivers no longer feel safe
by Algoa FME-Hailing drivers in Port Elizabeth have embarked on a city-wide parade and awareness drive to shine the spotlight on their safety concerns following a rise in robbery and hijacking incidents in the past week.
The drivers from Uber, Bolt and inDrive say they no longer feel safe to operate as they are being targeted by criminals.
The Parade's co-ordinator, Arnold Bezuidenhout says there have been several hijackings of eHailing Drivers reported to the police in the past week.
He says one hijacking is one too many and it cannot be business as usual while they suffer at the hands of criminals.
Meanwhile, police Spokesperson, Captain Andre Beetge says increased police visibility in areas where eHailing Services operate could help eliminate the incidents.
He urged drivers to go to SAPS and share their busiest routes with them in order to get police cars patrolling the area.