s6-rc is a service manager, or, in other words, a machine state manager: given a database of services, with dependencies between them, it can safely bring the global machine state, or live state, to the desired point, making sure dependencies are never broken.
The live state, by definition, is the tuple of all service states on the machine. Changing the live state means bringing services up, or bringing services down.
Supervision suites manage long-lived processes, a.k.a daemons, and sometimes call them services.  There is a second kind of service, which is called a oneshot, and which represents a change of system state that is not embodied by the presence of a long-lived process. For instance, "mounting a filesystem" is a system state change, but in most cases there is no process hanging around while the filesystem is mounted.
s6-rc handles both oneshots and longruns.
Services can depend on one another. If service A has been declared as depending on service B, then s6-rc will make sure to never start A until it knows that B is up, and will make sure to never stop B until it knows that A is down. This works whether A and B are both oneshots, both longruns, or a oneshot and a longrun.
Oneshots and longruns are called atomic services. By opposition to atomic services, s6-rc also handles an additional kind of service that it calls a bundle. A bundle is just a collection of atomic services, described under a single name. A bundle definition can even contain other bundles, but ultimately a bundle will always represent a set of one or more atomic services. Bundle names can be used anywhere with the s6-rc user interface, and they will internally be converted to a set of atomic services. An atomic service can depend on a bundle: it will simply depend on all the atomic services represented by the bundle. A bundle, however, cannot have dependencies.
Unlike other service managers such as anopa, s6-rc separates the work of analyzing a set of service definitions, resolving dependencies, and so on, from the work of actually applying the dependency graph to perform live state changes. The former is the compilation phase, and is done offline; the latter is the live phase, and is of course done online - it impacts the actual state of the machine.
When the machine boots up:
The administrator can make changes to the live state of the machine by manually calling s6-rc again with the proper arguments. This is more powerful than the old runlevels: it is possible to change the live state to any set of services, not only predefined ones. The only thing that s6-rc will not allow is a state that would break service dependencies; it will always respect the dependency graph.
The s6-rc command is the engine for machine state changes, and it is also true for shutdown. When shutting a machine down, all the services managed by s6-rc should be brought down in the proper order (via the s6-rc -da change command). Once all those services have been brought down successfully, the final shutdown procedure can take place; for instance, if s6-svscan is running as process 1 with the s6-linux-init defaults, s6-svscanctl -6 /run/service will kill the supervision tree and call /etc/rc.shutdown reboot, which should reboot the machine.
The s6-rc command is a one-stop shop for service management as long as the compiled database doesn't change. If an administrator wishes to make a new compiled database the current live one, without rebooting the machine, a bit more work is needed, and that's the job of the s6-rc-update command. This command has been specifically written with Unix distributions in mind: when new packages ship, they come with new service definitions, or upgraded ones, and it is necessary to compile a new service database and update the live state so it matches; if source definitions for s6-rc are provided in the packages, an invocation of s6-rc-compile followed by an invocation of s6-rc-update should be all it takes to keep the live state up to date.
It is possible to change bundle definitions in a compiled service database, including the live one, without recompiling everything by calling s6-rc-compile. The s6-rc-bundle tool can edit compiled databases to add bundles to them, or delete bundles from them.


Home
PAMIS Spotlight
UCR Proposal & Award Management Information System
The Office of Research and Economic Development (RED), Accounting, and Computing & Communications (C&C) are very pleased to announce a major enhancement to UCR’s on-line Proposal and Award Management Information System (PAMIS).
This most recent PAMIS initiative allows campus departments to process “Pre-awards” in the same way awards are processed within PAMIS. (“Pre-awards” are campus authorizations to incur pre-contract and grant expenditures. Such authorizations require a “firm commitment” from the sponsoring agency to exist. Moreover, a pressing need for these expenditures must be demonstrated for a Pre-award to be approved. Please click here to view UCR’s Pre-award policy.)
Highlights of UCR’s new PAMIS Pre-award System are as follows:
- PAMIS automatically notifies PIs, Accounting, and appropriate departmental staff via e-mail when a Pre-award request has been approved. PAMIS also provides e-mail notifications when the Pre-award fund has been established and expenditures may occur.
- All Pre-award documentation is scanned and stored in PDF format. PIs, Accounting, RED, Equipment Management, and departmental staff thus have electronic and paperless access to these documents.
- All Pre-award entries in the UCR General Ledger are processed via the web. Moreover, when a Pre-award is funded, the PAMIS system will automatically (without departmental key entry) reverse the original General Ledger budgetary entry, reducing departmental key entry and increasing data integrity.
- The Pre-award system should facilitate departmental extramural funds accounting by reducing cost transfers and by enhancing the system’s ability to track Pre-award expenditures.
For questions concerning Pre-award processing, please contact The Office of Research and Economic Development (RED). Please visit the Contacts section of this website for additional assistance utilizing this new service.
For more information on the development of PAMIS, please visit the PAMIS History section of this web page.


The Boolean() constructor is used to create Boolean objects.
new Boolean([value])
value
Optional
The initial value of the Boolean
object.
Boolean
objects with an initial
value of false
let bNoParam = new Boolean();
let bZero = new Boolean(0);
let bNull = new Boolean(null);
let bEmptyString = new Boolean('');
let bfalse = new Boolean(false);
Boolean
objects with an initial
value of true
let btrue = new Boolean(true);
let btrueString = new Boolean('true');
let bfalseString = new Boolean('false');
let bSuLin = new Boolean('Su Lin');
let bArrayProto = new Boolean([]);
let bObjProto = new Boolean({});
The every() method tests whether all elements in the array pass the test implemented by the provided function. It returns a Boolean value.
The every()
method tests whether all elements in the array pass the test implemented
by the provided function. It returns a Boolean value.
arr.every(callback(element[, index[, array]])[, thisArg])
callback
A function to test for each element, taking three arguments:
element
The current element being processed in the array.
index
Optional
The index of the current element being processed in the array.
array
Optional
The array every
was called upon.
thisArg
Optional
A value to use as this
when executing callback
.
true
if the callback
function returns a [truthy]
value for all elements, every
returns true
.
Caution: Calling this method on an empty array will return true
for any condition!
callback
is invoked only for array indexes which have assigned values. It is not invoked for indexes
which have been deleted, or which have never been assigned values.
callback
is invoked with three arguments: the value of the element, the index of the element, and the
Array object being traversed.
If a thisArg
parameter is provided to every
, it will be used as callback’s
this
value. Otherwise, the value undefined
will be used as its this
value.
The
this
value ultimately observable by callback
is determined according to the
usual rules for determining the this
seen by a function.
every
acts like the “for all” quantifier in mathematics. In particular, for an empty array, it returns
true
.


Aggregate store
In the current state of our system, if we request an account, here is what happen:
- The system read all events related to our account id
- Starting from an empty state, it applies all events to “rebuild” the latest state version
- It returns this latest state
In a real world bank system, we would have several thousands of events.
In such a scenario, applying all events would have a high performance cost.
To fix this issue, one solution is to implement an AggregateStore
.
import java.util.concurrent.CompletableFuture;
public class BankAggregateStore extends DefaultAggregateStore<Account, BankEvent, Tuple0, Tuple0, Connection> {
public BankAggregateStore(EventStore<Connection, BankEvent, Tuple0, Tuple0> eventStore, EventHandler<Account, BankEvent> eventEventHandler, ActorSystem system, TransactionManager<Connection> transactionManager) {
super(eventStore, eventEventHandler, system, transactionManager);
}
public BankAggregateStore(EventStore<Connection, BankEvent, Tuple0, Tuple0> eventStore, EventHandler<Account, BankEvent> eventEventHandler, Materializer materializer, TransactionManager<Connection> transactionManager) {
super(eventStore, eventEventHandler, materializer, transactionManager);
}
@Override
public CompletionStage<Tuple0> storeSnapshot(
Connection connection,
String id,
Option<Account> maybeState) {
return CompletableFuture.supplyAsync(() -> {
maybeState.peek(state -> {
try {
PreparedStatement statement = connection.prepareStatement("""
INSERT INTO ACCOUNTS(ID, BALANCE) VALUES(?, ?)
ON CONFLICT (id) DO UPDATE SET balance = ?
""");
statement.setString(1, id);
statement.setBigDecimal(2, state.balance);
statement.setBigDecimal(3, state.balance);
statement.execute();
} catch (SQLException throwable) {
throw new RuntimeException(throwable);
}
});
return Tuple.empty();
});
}
@Override
public CompletionStage<Option<Account>> getAggregate(Connection connection, String entityId) {
return CompletableFuture.supplyAsync(() -> {
PreparedStatement statement = connection.prepareStatement("SELECT balance FROM ACCOUNTS WHERE id=?");
statement.setString(1, entityId);
ResultSet resultSet = statement.executeQuery();
if (resultSet.next()) {
BigDecimal amount = resultSet.getBigDecimal("balance");
Account account = new Account();
account.id = entityId;
account.balance = amount;
return Option.some(account);
} else {
return Option.none();
}
});
}
}
This aggregate store maintains a parallel Accounts
table in the database that stores the latest state of each account.
To add this aggregateStore in our system, we need to pass it to our PostgresKafkaEventProcessor
.
public class Bank {
//...
public Bank() {
//...
BankAggregateStore bankAggregateStore = new BankAggregateStore(eventStore, eventHandler, actorSystem, transactionManager);
this.eventProcessor = new PostgresKafkaEventProcessor<>(new PostgresKafkaEventProcessor.PostgresKafkaEventProcessorConfig<>(
eventStore,
transactionManager,
bankAggregateStore,
commandHandler,
eventHandler,
List.of(meanWithdrawProjection),
kafkaEventPublisher
));
}
//...
}
IMPORTANT NOTE: This aggregate store should only be used when having performance issues on state reading. It’s a tradeoff where we accept to have slower write to get faster read.
To implement an alternative read model (i.e. CQRS), projections should be used.


Weather
Console
Radar Image Sampling and Processing
Raw
Binarization
Extraction
Image Sequence
← Previous
/
Next →
Path
Zone
×
Image


10.14 Ordered Set Operations—library(ordsets)
This library module provides operations on sets represented as ordered lists with no
duplicates. Thus {c,r,a,f,t}
would be [a,c,f,r,t]
. The ordering
is defined by the @<
family of term comparison predicates, which
is the ordering used by sort/2
and setof/3
.
The benefit of the ordered representation is that the elementary
set operations can be done in time proportional to the sum of the
argument sizes rather than their product. You should use the
operations defined here in preference to those in library(sets)
unless there is a compelling reason why you can't. Some of the
unordered set routines, such as member/2
, length/2
and select/3
can
be used unchanged on ordered sets; feel free so to use them.
There is no ordset_to_list/2
, as an ordered set is a list already.
Exported predicates:
is_ordset(
+List)
-
is true when List is a list of terms [T1,T2,...,Tn] and the
terms are strictly increasing: T1 @< T2 @< ... @< Tn. The
output of
sort/2
always satisfies this test. Anything which
satisfies this test can be given to the predicates in this
file, regardless of where you got it.
list_to_ord_set(
+List,
-Set)
-
is true when Set is the ordered representation of the set represented
by the unordered representation List. The only reason for giving it
a name at all is that you may not have realised that
sort/2
could be
used this way.
ord_add_element(
+Set1,
+Element,
-Set2)
-
Equivalent to
ord_union(
Set1, [
Element],
Set2)
, but a bit
faster.
ord_del_element(
+Set1,
+Element,
-Set2)
-
Equivalent to
ord_subtract(
Set1, [
Element],
Set2)
, but a bit
faster.
ord_disjoint(
+Set1,
+Set2)
-
is true when the two ordered sets have no element in common.
ord_intersect(
+Set1,
+Set2)
-
is true when the two ordered sets have at least one element in common.
ord_intersection(
+Set1,
+Set2,
-Intersection)
-
is true when Intersection is the ordered representation of Set1
and Set2, provided that Set1 and Set2 are ordered sets.
ord_intersection(
+Set1,
+Set2,
?Intersection,
?Difference)
- is true when Intersection is the intersection of Set1 and Set2,
and Difference is Set2 \ Set1 (like in ord_union/4),
provided that Set1 and Set2 are ordered sets.
ord_intersection(
+ListOfSets,
-Intersection)
- is true when ListOfSets is a nonempty proper list of ordered sets
and Intersection is their intersection.
ord_member(
+Elt,
+Set)
-
is true when Elt is a member of Set. Suggested by Mark Johnson.
ord_nonmember(
+Item,
+Set)
-
is true when the given Item is not an element of the given Set.
ord_seteq(
+Set1,
+Set2)
-
is true when the two arguments represent the same set. Since they
are assumed to be ordered representations, they must be identical.
ord_setproduct(
+Set1,
+Set2,
-Product)
-
If Set1 and Set2 are ordered sets, Product will be an ordered
set of x1-x2 pairs. Note that we cannot solve for Set1 and
Set2, because there are infinitely many solutions when
Product is empty, and may be a large number in other cases.
ord_subset(
+Set1,
+Set2)
-
is true when every element of the ordered set Set1 appears in the
ordered set Set2.
ord_subtract(
+Set1,
+Set2,
-Difference)
-
is true when Difference contains all and only the elements of Set1
which are not also in Set2.
ord_symdiff(
+Set1,
+Set2,
-Difference)
-
is true when Difference is the symmetric difference of Set1 and Set2.
ord_disjoint_union(
+Set1,
+Set2,
-Union)
-
is true when Set1 and Set2 (given to be ordered sets) have no element
in common, and Union is their union. The meaning is the same as
ord_disjoint(Set1, Set2),
ord_union(Set1, Set2, Union)
but it is more efficient.
ord_union(
+Set1,
+Set2,
-Union)
-
is true when Union is the union of Set1 and Set2. Note that when
something occurs in both sets, we want to retain only one copy.
ord_union(
+OldSet,
+NewSet,
-Union,
-ReallyNew)
- is true when Union is NewSet U OldSet and ReallyNew is NewSet \ OldSet.
This is useful when you have an iterative problem, and you're adding
some possibly new elements (NewSet) to a set (OldSet), and as well as
getting the updated set (Union) you would like to know which if any of
the "new" elements didn't already occur in the set (ReallyNew).
ord_union(
+ListOfSets,
-Union)
- is true when ListOfSets is given as a proper list of ordered sets
and Union is their union. Letting K be the length of ListOfSets,
and N the sum of the sizes of its elements, the cost is
O(N lg K).
ordset_order(
+Xs,
+Ys,
-R)
-
is true when R is
<
, =
, or >
according as Xs is a subset of Ys,
equal to Ys, or a superset of Ys. Xs and Ys are ordered sets.
Send feedback on this subject.


Warehouse Chief Alder:
I teach Dwarven Fighters and Scavengers.
I don't think you're in the right place. You don't look talented enough to collect materials and manufacture things! You should find a teacher somewhere else.


--- layout: post permalink: diamondsusacom.html Tags: Array NameOfCoupon: Diamonds-USA.com Cash Back Summary: See our Diamonds-USA.com Coupon Code, Diamonds-USA.com Rebate, Diamonds-USA.com Promo Code, Diamonds-USA.com Discount, Diamonds-USA.com Coupon Cash Back Rebate here. MetaKeywords: Diamonds-USA.com Coupon Code, Diamonds-USA.com Rebate, Diamonds-USA.com Promo Code, Diamonds-USA.com Cash Back Rebate, Diamonds-USA.com Discount, Diamonds-USA.com Coupon Image: images/23876.gif LinkURL: http://www.shareasale.com/r.cfm?b=190185&u=412002&m=23876 affiliate_url_link: http://www.icouponblog.com/jane.php?id=370 thesis_readmore: See the Diamonds-USA.com Coupon thesis_thumb: http://www.icouponblog.com/tn.php?merchantURL=diamonds-usa.com Title: Save 3.5% - Diamonds-USA.com Coupon Code for diamonds-usa.com. Diamonds-USA.com Rebate & Discount thesis_description: Our Diamonds-USA.com Discount Coupon Code for diamonds-usa.com. We have the best Diamonds-USA.com Rebate anywhere. thesis_keywords: Diamonds-USA.com, Diamonds-USA.com Coupon Code, Diamonds-USA.com Discount, Diamonds-USA.com Rebate product_name: Diamonds-USA.com hop_url: http://www.icouponblog.com/hop.php?id=370 ---
Are you thinking of popping the question, going down on one knee and proposing? Are you getting married or are you planning to renew your vows, or just give your girl, her best friend…Diamonds! Whatever your needs, there is a diamond available to suit your taste, style, need and budget. Check out Diamonds-USA.com. They are one of the first diamond retailer stores to go online. They have been online since 1997 and have all the experience which will make your shopping with Diamonds-USA.com a special, memorable experience. Diamonds-USA.com is one of the biggest diamonds and engagement ring retailers. Visit Diamonds-USA.com online and find your dream ring. If you cannot find that, you can design it with computer aided design tools (CAD) on Diamonds-USA.com.
Diamonds-USA.com has a wide stock of engagement rings to choose from.  The marriage proposal has to be memorable and so too must the engagement ring be, overwhelming, amazing, and beautiful! Diamonds-USA.com gives you the opportunity to design your dream ring by choosing the diamond shape and the ring setting as well as carat, cut, color and clarity. Diamonds-USA.com offers diamonds at wholesale prices so you can find something to suit your budget. You can get solitaire engagement ring or three diamonds engagement ring or engagement ring with side stones. All rings are beautiful and will make your loved one very on top of the moon!
Diamonds-USA.com has a large variety of earrings, pendants, necklaces and other jewelry items to choose from. All settings are available in white gold, yellow gold or platinum. Check it out and use our discount coupons to get a great deal.


D3 Foresight
D3 Foresight is a d3 based library for visualizing time series forecasts interactively. At a time point, a general time series model trying to predict a single variable series (like temperature) makes forecasts for some time points in the future with some uncertainty described by probability distributions. Other than these predictions, it might also provide an estimate of peak and some onset/outbreak point (as defined by a baseline). The visualizations in this library try to cover these cases. See reichlab/flusight for a demo.
Setting up
The library requires d3 and momentjs as external dependencies. To build
foresight itself, use npm compile
(for ./dist/d3-foresight.js
) or npm build
(for
./dist/d3-foresight.min.js
). The library is also available on npm as
d3-foresight. For browser, include these in your html:
<script src="https://d3js.org/d3.v4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script> <script src="./dist/d3-foresight.min.js"></script> ;; Or use the unpkg url <script src="https://unpkg.com/d3-foresight"></script>
Additionally, a few icons (in the legend) have an icon font dependency. The css for that can be added using:
<link rel="stylesheet" href="./assets/fontello/fontello.css" />
TimeChart
A TimeChart
displays the time series to be predicted and the models'
predictions. Beyond the very minimal plots involving only model forecasts, it
can show the following items:
- The actual time series to be predicted.
- The observed time series. This might be different from the actual series if the truth is revised (e.g. due to reporting delays in the incident count for certain disease).
- Baseline value for the year/season.
- History of the series over some past years/seasons.
- Additional prediction information from models like
- Confidence intervals
- Peak and onset prediction
Basic plot
In this section, we will create a very basic visualization involving one model providing random numbers as forecasts for a year.
Configuration
Time in foresight is represented using timePoints
which is an array mapping to
discrete date/time values. As of now, foresight supports the following three
types of time points:
week
mmwr-week
based on MMWR definitionsbiweek
denoting a unit of two weeksmonth
denoting a month
All points can be represented using either standard JS Date objects, a string
readable by momentjs (like YYYYMMDD
) or using simple objects like shown:
{ week: 20, // biweek/month year: 2016 }
Lets work on mmwr weeks for the year 2016. Our week choice can be passed to foresight charts using a config object which is the following in our case:
let config = { pointType: 'mmwr-week', // Default is week axes: { y: { title: 'Random numbers' // Title for the y axis } } }
Data
At minimum, TimeChart
expects an array of time points and an array of model
data. The time points in our case go from week 1 to week 52 of 2016 and can be
represented as:
let timePoints = [...Array(51).keys()].map(w => { return { week: w + 1, year: 2016 } })
At each time point, our model provides predictions for the next 10 time points.
These predictions are represented in an array of same size as the time points.
For when the model has no predictions, we put in null
.
// Random sequence generator function rseq (n) { let seq = [Math.random()] for (let i = 1; i < n; i++) { seq.push(Math.random() * (1 + seq[i - 1])) } return seq } // Predictions look like [{ series: [{ point: 0.5 }, { point: 1.2 } ...] }, ..., null, null] let predictions = timePoints.map(tp => { if (tp.week > 30) { // We only predict upto week 30 return null } else { // Provide 10 week ahead predictions return { series: rseq(10).map(r => { return { point: r } }) } } })
Finally we put everything together in a single object. Notice the extra metadata involved in putting together the values for the model:
let data = { timePoints, models: [ { id: 'mod', meta: { name: 'Name', description: 'Model description here', url: 'http://github.com' }, pinned: false, // Setting true shows the model in top section of the legend // In case of absence of `pinned` key (or false), the model // goes in the bottom section predictions, style: { // Optional parameter for applying custom css on svg elements color: '#4682b4', // Defaults to values from the internal palette point: { // Style for the dots in prediction }, area: { // Style for the confidence area (shaded region around the line) }, line: { // Style for the main line } } } ] }
Plotting
The life cycle of TimeChart
involves the following stages:
- Initialization
- Plotting
- Updating
// 1. Initialize // Setup the id of div where we are going to plot // Also pass in config options let timeChart = new d3Foresight.TimeChart('#timechart', config) // 2. Plot // Provide the data for the complete year timeChart.plot(data) // 3. Update // Move to the given index in the set of timePoints timeChart.update(10) // Or simply use // timeChart.moveForward() // timeChart.moveBackward() // Lets also save the timechart object in global namespace window.timeChart = timeChart
If you are able to see the plot above (which you should be, else file an issue), you should be able to move around by clicking the arrow buttons in legend or clicking on the chart itself. These mouse click events can trigger user defined functions too. See the section on Hooks for more description.
Adding components
This section builds up on the chart above to add more information
Baseline
A baseline is a horizontal line specifying some sort of baseline. To plot it,
pass a baseline
item in data. Optionally, set a label for the baseline by
providing it in the config
.
let tcBaseline = new d3Foresight.TimeChart('#tc-baseline', Object.assign(copy(config), { baseline: { text: 'Baseline', // To show multiline text, pass an array of strings, description: 'This is a sample baseline', url: 'https://github.com' } })) tcBaseline.plot(Object.assign(copy(data), { baseline: 0.3 })) tcBaseline.update(10)
Actual
Another important component to show is the actual line that we are trying to
predict. The actual
series is an array of the same length as the timePoints
and
can be something like this
// Suppose we have actual data for 20 time steps only. We give null for other points let actual = rseq(20).concat(timePoints.slice(20).map(tp => null))
let tcActual = new d3Foresight.TimeChart('#tc-actual', config) tcActual.plot(Object.assign(copy(data), { actual: actual })) tcActual.update(10)
Observed
Observed data series refers to the time series as observed at a certain time point. Observed lines are useful (only) when there are updates in actual data, resulting in different versions based on when the data was released.
We formalize these versions using lags. When we are at a time point \(t\) what we get as truth (the value that creates the actual series) is a lag \(0\) truth, \(l_0(t)\). At the same time, we also get \(l_1(t - 1)\) truth for time point \(t - 1\), \(l_2(t - 2)\) truth for \(t - 2\) and so on. In this case, even if we have higher lag truths for time \(t\), the observed series at time \(t\) will be made up of the series \([l_i(t - i), \forall i \in [t - 1, t - 2, \ldots 0]]\)
To display the observe data thus we need to provide the required lag truths for
a time point. We do this by providing a list of lists. The outer list is over
all the time points. The inner lists represent decreasing lag values (like {
lag: 2, value: 0.2}
) for that time point.
A simple example follows. Notice that the third time point is the latest one and so we only have lag 0 value for that.
// Assume there are 3 timepoints let observedExample = [ [ { lag: 2, value: 0.88 }, { lag: 1, value: 0.88 }, { lag: 0, value: 0.93 }], [ { lag: 1, value: 1.11 }, { lag: 0, value: 1.32 } ], [ { lag: 0, value: 1.13 } ] ]
The next snippet generates some random data programmatically for demoing purpose.
// Lets only show 20 time steps. let observed = rseq(20).map((r, idx) => { let delta = 0.05 let lags = [] for (let l = 20; l >= 0; l--) { lags.push({ lag: l, value: r + (delta * (20 - l)) }) } return lags }) // Add [] for other points observed = observed.concat(timePoints.slice(20).map(tp => []))
let tcObserved = new d3Foresight.TimeChart('#tc-observed', config) tcObserved.plot(Object.assign(copy(data), { observed: observed })) tcObserved.update(10)
History
Historical data lines (similar to actual
series) can be shown by passing an
array of historical actual series like the following:
let historicalData = [ { id: 'some-past-series', actual: rseq(51) }, { id: 'another-past-series', actual: rseq(51) } ]
let tcHistory = new d3Foresight.TimeChart('#tc-history', config) tcHistory.plot(Object.assign(copy(data), { history: historicalData })) tcHistory.update(10)
One possible issue with showing history is that the number of time units might not line up perfectly. For example, the current year might have 52 weeks but some older year might have had 53 weeks. Since we expect all the actual series passed as history to have the same length, the user is supposed to pad/clip all the series to match the current season's length.
Confidence Intervals
Confidence intervals show a region of uncertainty around the model predictions (peak, onset and the regular time step predictions). These involve users to specify:
- Label for the confidence intervals to be shown in legend. For example `90%` etc.
- Additional
low
andhigh
values along withpoint
values in predictions.
The legend label can be specified in the main chart option by passing the
following key/value pair (say we want to show 90%
and 50%
CIs):
... confidenceIntervals: ['90%', '50%'] ...
Corresponding to the values specified above (and in the same order), we now
attach a list of low
and high
values as shown below:
// Predictions now look like [{ series: [ // { point: 0.5, low: [0.3, 0.4], high: [0.7, 0.6] }, // { point: 1.2, low: [1.0, 1.1], high: [1.4, 1.3] } // ...] }, ..., null, null] let predictionsWithCI = timePoints.map(tp => { if (tp.week > 30) { // We only predict upto week 30 return null } else { // Provide 10 week ahead predictions adding a dummy 0.2 and 0.1 spacing // to show the confidence interval return { series: rseq(10).map(r => { return { point: r, low: [Math.max(0, r - 0.2), Math.max(0, r - 0.1)], high: [r + 0.2, r + 0.1] } }) } } })
Putting everything together now:
let dataWithCI = { timePoints, models: [ { id: 'mod', meta: { name: 'Name', description: 'Model description here', url: 'https://github.com' }, predictions: predictionsWithCI } ] } let configCI = Object.assign(copy(config), { confidenceIntervals: ['90%', '50%'] }) let tcCI = new d3Foresight.TimeChart('#tc-ci', configCI) tcCI.plot(dataWithCI) tcCI.update(10)
Peak and Onset
Just like a series
key in predictions, we can also add onsetTime
, peakTime
and
peakValue
keys to show the respective predictions. Each of these have a
mandatory point
key and can have low
and high
ranges to show confidence
intervals. Here is an example for a model's prediction at a certain timepoint
with the onset and peak values specified (along with a confidence interval):
// Consider the confidence intervals ['90%', '50%'] { onsetTime: { high: [15, 17], low: [9, 11], point: 13 }, peakTime: { high: [25, 27], low: [19, 21], point: 23 }, peakValue: { high: [3.6, 3.8], low: [3.0, 3.2], point: 3.4 }, series: [ { high: [1.4, 1.6], low: [0.8, 1.0], point: 1.2 }, ... ] }
Note that the values for peakTime
and onsetTime
are indices for the time points
instead of actual week values. For example, suppose the time points actually
refer to weeks from 5 to 15 (inclusive) for a year. An onsetTime
value of 3 will
now refer to week 9 (0 based index starting at 5).
By not using the actual week value here, we localize the meaning of time point
in a single place, the series timePoints
itself.
Lets recreate the season data now with added peak and onset predictions. We will not be adding confidence intervals here to keep things simple.
let predictionsWithPeakOnset = timePoints.map(tp => { if (tp.week > 30) { // We only predict upto week 30 return null } else { return { series: rseq(10).map(r => { return { point: r } }), peakTime: { point: 12 + getRandomInt(5) }, onsetTime: { point: 8 + getRandomInt(5) }, peakValue: { point: Math.random() } } } })
For showing the onset value, we also need to pass a config option { onset: true
}
to the timeChart so that the onset panel is displayed just above the x axis.
let dataWithPeakOnset = { timePoints, models: [ { id: 'mod', meta: { name: 'Name', description: 'Model description here', url: 'https://github.com' }, predictions: predictionsWithPeakOnset } ] } let configOnset = Object.assign(copy(config), { onset: true }) let tcPeakOnset = new d3Foresight.TimeChart('#tc-peak-onset', configOnset) tcPeakOnset.plot(dataWithPeakOnset) tcPeakOnset.update(10)
Additional lines
Starting from v0.10.0
, you can add extra lines to be shown in the plot. To keep
the library backward compatible, you need to provide the extra data as another
key in the data object that you send to the plot
function. Here is an example
and specification of the structure that we expect:
let tcAdditional = new d3Foresight.TimeChart('#timechart-additional', config) let additionalLines = [ { id: 'Extra 1', data: 1.53, // Scalar makes it show up as horizontal line style: { // Optional style parameter color: 'red', point: { // Optional parameter for styling the dots }, line: { // Style for the main line 'stroke-dasharray': '5,5' } }, meta: { // Similar to what is used in models, all optional name: 'Extra baseline', description: 'This is an additional baseline', url: 'https://github.com' }, tooltip: false, // Should the value show up in tooltip (false by default or when absent) legend: true // Should the value show up in legend (true by default or when absent) }, { id: 'Extra 2', data: rseq(51), // Structure similar to like the actual array style: { color: '#9b59b6', point: { r: 0 } }, tooltip: true } ] tcAdditional.plot(Object.assign(copy(data), { additionalLines })) tcAdditional.update(10)
Data Version Time and Timezero
There are two possible reference times for a prediction by a particular model:
- Timezero: The time with respect to which the forecasts are made. For example,
if a model predicts 3 steps ahead values of
[1.0, 1.2, 0.5]
with a timezero oft
, then we say that the predicted values are for time stepst + 1
,t + 2
, andt + 3
. - Data Version Time: Specifies the data at a particular version (given by the time value) the model looked at while making its prediction.
In a usual prediction task, when we are a time t
, our predictions are made by
considering t
as the timezero and the data version time. The data version time
is displayed using a gray shaded region (covering all the data that the model
looked at) and a boundary text 'Data as of'. The timezero line is shown as a
separate dashed vertical line with text 'Timezero'.
When both times are the same, only data version time is displayed. In case the user provides data version times separately for each prediction, both times are shown since they might be different. You can also override the display of the timezero line by passing a Boolean key in either the options parameter (passed when initializing the plot) or the data parameter (passed when calling the plot function):
...
timezeroLine: true
...
Here is an example plot where user passes in additional data version. Note that
the dataVersionTime
values are not indices for the timePoints
array but date
time values themselves. We first define the function that adds dummy data
version time to all the predictions.
// Lets just add 2 to the timezeros for dvds function addDvts (data) { let dvts = data.timePoints.map(tp => { return { week: tp.week + 2, year: tp.year } }) data.models.forEach(m => { m.predictions.forEach((p, idx) => { if (p) { p.dataVersionTime = dvts[idx] } }) }) return data } let tcDvd = new d3Foresight.TimeChart('#timechart-dvt-plot', config) tcDvd.plot(addDvts(copy(data))) tcDvd.update(10)
TODO All config and data options
Possible options to the constructor are described below:
let options = { baseline: { text: ['CDC', 'Baseline'], // A list of strings creates multiline text description: `Baseline ILI value as defined by CDC. <br><br><em>Click to know more</em>`, url: 'http://www.cdc.gov/flu/weekly/overview.htm' // url is optional }, axes: { x: { title: ['Epidemic', 'Week'], description: `Week of the calendar year, as measured by the CDC. <br><br><em>Click to know more</em>`, url: 'https://wwwn.cdc.gov/nndss/document/MMWR_Week_overview.pdf' }, y: { title: 'Weighted ILI (%)', description: `Percentage of outpatient doctor visits for influenza-like illness, weighted by state population. <br><br><em>Click to know more</em>`, url: 'http://www.cdc.gov/flu/weekly/overview.htm', domain: [0, 13] // For explicitly clipping the y values } }, pointType: 'mmwr-week', confidenceIntervals: ['90%', '50%'], // List of ci labels onset: true, // Whether to show onset panel or not timezeroLine: false // Whether to show the timezeroLine, skipping this makes us fall back to the // behavior based presence of data version time }
Options for plotting go here
Hooks
Charts can call user defined functions when movement events are triggered inside
(e.g. by clicking on movement buttons or clicking on the overlay). To register
your functions to be called on these events, you can use addHook
.
timeChart.addHook(d3Foresight.events.JUMP_TO_INDEX, index => { // This is triggered when an event moves the // visualization to certain `index` in `timePoints` // Current index is `timeChart.currentIdx` console.log('chart moved to ' + index) })
addHook
returns a subscription token which can then be used to revoke that
hook using removeHook
.
let token = timeChart.addHook( d3Foresight.events.JUMP_TO_INDEX, index => console.log(`Now at ${index}`) ) timeChart.removeHook(token)


This app uses the jQuery.UHEPRNG plugin to generate blocks of ultra high entropy psuedo random numbers.
This carefully designed PRNG utilizes more than 1536 bits of internal “state” memory. The operating parameters of the generator's algorithm were carefully chosen (it uses a “safe prime” factor) to guarantee that every possible PRNG “state” is visited before the sequence begins to repeat. The result is that the “period” of this generator will be the “Germain prime” 1,768,863 x 21535 - 1, which is approximately 2.132 x 10468. This is such a large number that it might as well be infinite. This generator effectively never repeats.
For our purposes, a “SeedKey” (such as the one above) is used to initialize the PRNG to a pseudo-randomly chosen point in this incredibly large loop of unpredictable pseudo-random numbers, from which we then pull as many pseudo-random values as we need. The 256-character “SeedKey” uses the 94 printable ASCII characters (spaces are ignored). Therefore, this yields 94256 possible seedkeys. This is 1.32 x 10505 possible strings, which is equivalent to 1,678 bits of entropy. Since this is greater than the total entropic state of the UHEPRNG, a SeedKey of this length and complexity is sufficient (and necessary) to fully initialize a PRNG of this complexity.


Notebooks
Story: The maiden who snaps her fingers at the rain (and causes lightning)
The maiden who snaps her fingers at the rain (and causes lightning)
Title
The maiden who snaps her fingers at the rain (and causes lightning)
Collection
Summary
We should not allow a maiden to snap her fingers at us; the wrath of the Rain against us being thereby aroused. In the Katkop dialect, by Díä!kwãin (L V.-20. 5618-5622, 5624). An account of the maiden who snaps her fingers at the people, which makes the rain 'lighten' and try to kill them. The rain 'shoots' at the people when the girl shouts at them.
Comments
1) p.5617v: Dia!kwain heard this from his father (Xaa-ttin); a note about a man called ||kunn, or Koos Groot-Aug (?), including details about where he lived and a tree that grows there, 2) p.5618v: a certain tree and the location of the 'pits' in the Zak River, 3) See also The girl who snaps her fingers at her parents and the rain, 4) This story is found in Book V-20
Contributors
Date
20 – 21 December 1875
Categories
New maidens, The Rain and Rain's water
Keywords
rain (a maiden who snaps her fingers at the rain causes lightning) , rain ('shoots' people) , rain ('shoots' like a girl does) , rain (and bad weather) , rain (and the actions of a new maiden) , rain (imitates the maiden's speech) , rain (what happens when it is angry) , rain (and lightning and thunder) , rain (people speak to) , rain (gentle) , rain ('killing') , rain (and the maiden who snapped her fingers) , rain (snapping fingers and lightning) , rain (and related weather) , rain (resembles what the maiden did to the people) , rain (different types of) , rain (prohibitions relating to) , new maiden (a maiden who snaps her fingers at the rain causes lightning) , new maiden (the rain shoots like she does) , new maiden (her behaviour and the people's fortunes) , new maiden (who snaps her fingers at the rain) , new maiden (and the rain) , new maiden (who angers the rain) , new maiden (the rain imitates her) , new maiden (causes bad weather) , new maiden (makes a 'killing' rain) , new maiden (prohibitions regarding behaviour) , speech (and actions of the new maiden) , speech (a maiden who snaps her fingers at the rain causes lightning) , speech (rain imitates the maiden's) , lightning (a maiden who snaps her fingers at the rain causes) , lightning (and an angry or 'killing' rain) , lightning (rain 'shoots' like a girl does)
Story Pages
5618-5622, 5624


In our site, besides other information of a general nature, you can find news about the earthquake of 2016, which has caused various lesions and damanges in some parts of the Monastery, and you may also contribute to our fundraising so that we could commence works that are necessary to recuperate the damaged areas.
Moreover, in the section Documentation, there is also available the Preliminary Project of Works which are necessary for the Monastery, prepared by the Studio of the Architect of our trust.
May the Lord bless you, and may the Blessed Virgin Mary Immaculate reward your kindness!
© 2014 - 2019


A B C D E F G H I L M N O P R S T U V W X Y
All Classes All Packages
All Classes All Packages
All Classes All Packages
D
- deleteButtons() - Method in class dialogs.DlgCircle
-
{@inheritDoc DlgSquare#deleteButtons()}
- deleteButtons() - Method in class dialogs.DlgHexagon
-
{@inheritDoc DlgSquare#deleteButtons()}
- deleteButtons() - Method in class dialogs.DlgRectangle
-
{@inheritDoc DlgSquare#deleteButtons()}
- deleteButtons() - Method in class dialogs.DlgSquare
-
Hide buttons for colors when new operation is adding.
- diagonal() - Method in class shapes.Rectangle
-
Calculate diagonal of rectangle.
- diagonal() - Method in class shapes.Square
-
Calculate diagonal of square.
- dialogs - package dialogs
- distance() - Method in class shapes.Line
-
Calculate length of line (distance between initial and last point).
- distance(Point) - Method in class shapes.Point
-
Calculate dinstance between two points.
- DlgCircle - Class in dialogs
-
Class represent
JDialog
for adding or updatingCircle
. - DlgCircle() - Constructor for class dialogs.DlgCircle
- DlgHexagon - Class in dialogs
-
Class represent
JDialog
for adding or updatingHexagonAdapter
. - DlgHexagon() - Constructor for class dialogs.DlgHexagon
- DlgLine - Class in dialogs
-
Class represent
JDialog
for adding or updatingLine
. - DlgLine() - Constructor for class dialogs.DlgLine
- DlgLogParser - Class in dialogs
-
Class represent
JDialog
for parsing log command in interaction with user. - DlgLogParser() - Constructor for class dialogs.DlgLogParser
- DlgPoint - Class in dialogs
-
Class represent
JDialog
for adding or updatingPoint
. - DlgPoint() - Constructor for class dialogs.DlgPoint
- DlgRectangle - Class in dialogs
-
Class represent
JDialog
for adding or updatingRectangle
. - DlgRectangle() - Constructor for class dialogs.DlgRectangle
- DlgSquare - Class in dialogs
-
Class represent
JDialog
for adding or updatingSquare
. - DlgSquare() - Constructor for class dialogs.DlgSquare
- dlmList - Variable in class frame.DrawingFrame
- draw(Graphics) - Method in class adapter.HexagonAdapter
-
Draw hexagon and check if it is selected, to mark and draw selected state too.
- draw(Graphics) - Method in class shapes.Circle
-
Draw circle.
- draw(Graphics) - Method in class shapes.Line
-
Draw line.
- draw(Graphics) - Method in class shapes.Point
-
Draw point.
- draw(Graphics) - Method in class shapes.Rectangle
-
Draw rectangle.
- draw(Graphics) - Method in class shapes.Shape
-
Abstract method that must implements all shapes to draw itself.
- draw(Graphics) - Method in class shapes.Square
-
Draw square.
- drawHeight - Variable in class dialogs.DlgCircle
- drawHeight - Variable in class dialogs.DlgHexagon
- drawHeight - Variable in class dialogs.DlgPoint
- drawHeight - Variable in class dialogs.DlgRectangle
- drawHeight - Variable in class dialogs.DlgSquare
- DrawingController - Class in controller
-
Class that represent controller in MVC architectural pattern.
- DrawingController(DrawingModel, DrawingFrame) - Constructor for class controller.DrawingController
- DrawingFrame - Class in frame
-
Class that contains view, all GUI elements of the application and notify controller when user do some action.
- DrawingFrame() - Constructor for class frame.DrawingFrame
- DrawingModel - Class in model
-
Represent model in MVC architectural pattern.
- DrawingModel() - Constructor for class model.DrawingModel
- DrawingObserver - Class in observer
- DrawingObserver(DrawingFrame) - Constructor for class observer.DrawingObserver
- DrawingView - Class in view
-
Represent view in MVC architectural pattern.
- DrawingView() - Constructor for class view.DrawingView
- drawWidth - Variable in class dialogs.DlgCircle
- drawWidth - Variable in class dialogs.DlgHexagon
- drawWidth - Variable in class dialogs.DlgPoint
- drawWidth - Variable in class dialogs.DlgRectangle
- drawWidth - Variable in class dialogs.DlgSquare
All Classes All Packages


Join arbitrary tables that exist in the database, or download a
pandas pickle file of the joined table.
It is not required to add a restriction, although a large table
especially with blobs (i.e. data or attachments) can take a long
time to download. You can also just join/download
a single table.
{{ joindownload_render_form(form) }}
Joined Table
{% with data=data, toggle_off_keys=toggle_off_keys%}
{% include 'macros/tables.html' %}
{% endwith %}


Photography is inevitably about the past. In a world of SD cards, HDR photography, and unprecedented detail, most people take tons of high resolution photographs to compensate for the limitations of the human memory. However, all the megapixels in the world don't stand a chance when pitted against our imaginations. These photographs are intended to capture the past as seen through the mind's eye. To facilitate this goal, the photos were all taken using a traditional 35mm camera. The negatives were developed through imperfect chemical processes, and then printed by hand in a dark room. The organic nature of the medium gives the photos a more visceral quality, which is often lacking in the pixel perfect impressions generaged by CCDs.


class ParserContext implements IteratorAggregate
The parser context is an application-wide context, which stores var-value pairs.
Theses pairs are injected in the parser and becomes available to the templates.
Methods
|
__construct(Request $request)
|
||
|
addForm(BaseForm $form)
|
||
|
getForm($name)
|
||
|
setGeneralError($error)
|
||
|
set($name, $value)
|
||
|
remove($name)
|
||
|
get($name, $default = null)
|
||
|
getIterator()
|
Details
at line 39
public
__construct(Request $request)
at line 51
public
addForm(BaseForm $form)
at line 58
public
getForm($name)
at line 63
public
setGeneralError($error)
at line 72
public
set($name, $value)
at line 79
public
remove($name)
at line 86
public
get($name, $default = null)
at line 91
public
getIterator()


The Julia Programming Language¶
Still highly imcomplete
High-level programming language for future astronomer….maybe?
Basic Information¶
The Julia Programming Language
Julia was designed from the beginning for high performance.
The source code can be found on Github
-
Good place to search for useful tools.
Julia.jl - Curated decibans of Julia programming language
Check out the Space-Science.md for astro-related packages.
Learning Materials¶
-
GitBook for learning Julia language.
-
The one page version
Useful Packages¶
Basic¶
DataFrames.jl - In-memory tabular data in Julia
Tools for working with tabular data in Julia.
-
A fast, flexible delimited file reader/writer for Julia.
Genie.jl - The highly productive Julia web framework
Genie is a full-stack MVC web framework that provides a streamlined and efficient workflow for developing modern web applications.
Visualization¶
Plots.jl - Powerful convenience for Julia visualizations and data analysis
Documents can be found here
Gadfly.jl - Crafty statistical graphics for Julia
Gadfly is a plotting and data visualization system written in Julia.
Optimization¶
Optim.jl - Optimization functions for Julia
Optim.jl is a package for univariate and multivariate optimization of functions.
LsqFit.jl - Simple curve fitting in Julia
The LsqFit package is a small library that provides basic least-squares fitting in pure Julia under an MIT license.
Statistics¶
Turing.jl - The Turing language for probabilistic programming
Turing allows the user to write models in standard Julia syntax, and provide a wide range of sampling-based inference methods for solving problems across probabilistic machine learning, Bayesian statistics and data science etc.
Machine Learning¶
Flux.jl - the ML library that doesn’t make you tensor
Flux is an elegant approach to machine learning. It’s a 100% pure-Julia stack, and provides lightweight abstractions on top of Julia’s native GPU and AD support.
knet.jl - Koç University deep learning framework
Knet (pronounced “kay-net”) is the Koç University deep learning framework implemented in Julia by Deniz Yuret and collaborators


This example uses the shorthand version of Scene.setTween() to add TweenMax.to() animations.
To see how to build more advanced tweens check out the Advanced Tweening Example.
You wouldn't like me, when I'm angry!
view sourceSmurf me!
view source


Sorry, I couldn't find the page you were looking for. Maybe try browsing the archive:
-
{% for post in site.posts limit:10 %}
- {{ post.title }} {% endfor %}
404
Sorry, I couldn't find the page you were looking for. Maybe try browsing the archive:


if not v.shape.as_list():
v = tf.expand_dims(v, axis=-1)
v = tf.tile(v, [num_datashards])
with tf.device(v.device):
sharded_features[k] = tf.split(v, num_datashards, 0)
datashard_to_features = []
for d in range(num_datashards):
feat = {
v = tf.expand_dims(v, axis=-1)
v = tf.tile(v, [num_datashards])
batch_size = tf.shape(v)[0]
size_splits = []
for i in range(num_datashards):
size_splits.append(


Data Structures | |
| struct | SRIO_MESSAGE_s |
| SRIO Message Description. More... | |
| struct | SRIO_TYPE9_MESSAGE_s |
| SRIO Type 9 Message Description. More... | |
| struct | SRIO_AMU_WINDOW_s |
| SRIO AMU Window. More... | |
| struct | SRIO_AMU_PANE_s |
| SRIO AMU Pane. More... | |
| struct | SRIO_LSU_TRANSFER_s |
| SRIO LSU Transfer. More... | |
| struct | SRIO_PE_FEATURES_s |
| SRIO Processing Element Features. More... | |
| struct | SRIO_OP_CAR_s |
| SRIO Operation Capability Register. More... | |
| struct | SRIO_ERR_RATE_s |
| SRIO Error Rate. More... | |
| struct | SRIO_LANE_STATUS_s |
| SRIO Lane Status. More... | |
| struct | SRIO_PLM_IMPL_CONTROL_s |
| SRIO Lane Status. More... | |
| struct | SRIO_PLM_VMIN_EXPONENT_s |
| SRIO PLM VMin Exponent. More... | |
| struct | SRIO_PLM_POLARITY_CONTROL_s |
| SRIO PLM Polarity Control. More... | |
| struct | SRIO_PLM_CONTROL_SYMBOL_s |
| SRIO PLM Control Symbol Configuration. More... | |
| struct | SRIO_TLM_CONTROL_s |
| SRIO TLM Control Configuration. More... | |
Typedefs | |
| typedef volatile CSL_SrioRegs * | CSL_SrioHandle |
| This is the handle to the SRIO instance. | |
| typedef struct SRIO_MESSAGE_s | SRIO_MESSAGE |
| SRIO Message Description. More... | |
| typedef struct SRIO_TYPE9_MESSAGE_s | SRIO_TYPE9_MESSAGE |
| SRIO Type 9 Message Description. More... | |
| typedef struct SRIO_AMU_WINDOW_s | SRIO_AMU_WINDOW |
| SRIO AMU Window. More... | |
| typedef struct SRIO_AMU_PANE_s | SRIO_AMU_PANE |
| SRIO AMU Pane. More... | |
| typedef struct SRIO_LSU_TRANSFER_s | SRIO_LSU_TRANSFER |
| SRIO LSU Transfer. More... | |
| typedef struct SRIO_PE_FEATURES_s | SRIO_PE_FEATURES |
| SRIO Processing Element Features. More... | |
| typedef struct SRIO_OP_CAR_s | SRIO_OP_CAR |
| SRIO Operation Capability Register. More... | |
| typedef struct SRIO_ERR_RATE_s | SRIO_ERR_RATE |
| SRIO Error Rate. More... | |
| typedef struct SRIO_LANE_STATUS_s | SRIO_LANE_STATUS |
| SRIO Lane Status. More... | |
| typedef struct SRIO_PLM_IMPL_CONTROL_s | SRIO_PLM_IMPL_CONTROL |
| SRIO Lane Status. More... | |
| typedef struct SRIO_PLM_VMIN_EXPONENT_s | SRIO_PLM_VMIN_EXPONENT |
| SRIO PLM VMin Exponent. More... | |
| typedef struct SRIO_PLM_POLARITY_CONTROL_s | SRIO_PLM_POLARITY_CONTROL |
| SRIO PLM Polarity Control. More... | |
| typedef struct SRIO_PLM_CONTROL_SYMBOL_s | SRIO_PLM_CONTROL_SYMBOL |
| SRIO PLM Control Symbol Configuration. More... | |
| typedef struct SRIO_TLM_CONTROL_s | SRIO_TLM_CONTROL |
| SRIO TLM Control Configuration. More... | |
| typedef struct SRIO_AMU_PANE_s SRIO_AMU_PANE |
SRIO AMU Pane.
This structure is used to define the SRIO AMU Pane properties.
| typedef struct SRIO_AMU_WINDOW_s SRIO_AMU_WINDOW |
SRIO AMU Window.
This structure is used to define the SRIO AMU Window properties.
| typedef struct SRIO_ERR_RATE_s SRIO_ERR_RATE |
SRIO Error Rate.
This structure is used to store the error rate CSR configuration which is used to monitor and control the port physical layer errors.
| typedef struct SRIO_LANE_STATUS_s SRIO_LANE_STATUS |
SRIO Lane Status.
This structure is used to store the lane status information.
| typedef struct SRIO_LSU_TRANSFER_s SRIO_LSU_TRANSFER |
SRIO LSU Transfer.
This structure is used to configure LSU module for Transfer
| typedef struct SRIO_MESSAGE_s SRIO_MESSAGE |
SRIO Message Description.
This structure is used to define a SRIO message and is used by the SRIO module to compare all received RIO packets to determine the receive queue where the packet is pushed to.
| typedef struct SRIO_OP_CAR_s SRIO_OP_CAR |
SRIO Operation Capability Register.
This structure is used to store the operation capability configuration.
| typedef struct SRIO_PE_FEATURES_s SRIO_PE_FEATURES |
SRIO Processing Element Features.
This structure is used to configure the Tundra Processing Element Features.
| typedef struct SRIO_PLM_CONTROL_SYMBOL_s SRIO_PLM_CONTROL_SYMBOL |
SRIO PLM Control Symbol Configuration.
This structure is used to store the PLM Control Symbol configuration
| typedef struct SRIO_PLM_IMPL_CONTROL_s SRIO_PLM_IMPL_CONTROL |
SRIO Lane Status.
This structure is used to store the PLM Implementation specific control register
| typedef struct SRIO_PLM_POLARITY_CONTROL_s SRIO_PLM_POLARITY_CONTROL |
SRIO PLM Polarity Control.
This structure is used to store the PLM Polarity Control
| typedef struct SRIO_PLM_VMIN_EXPONENT_s SRIO_PLM_VMIN_EXPONENT |
SRIO PLM VMin Exponent.
This structure is used to store the PLM VMin Exponent configuration
| typedef struct SRIO_TLM_CONTROL_s SRIO_TLM_CONTROL |
SRIO TLM Control Configuration.
This structure is used to store the SRIO TLM Control configuration
| typedef struct SRIO_TYPE9_MESSAGE_s SRIO_TYPE9_MESSAGE |
SRIO Type 9 Message Description.
This structure is used to define the TYPE9 Message. This is then used to MAP Type9 messages to a specific destination queue.


Hello Visitors!
Feel free to choose and fork any projects. Do visit the practice projects first if you have any doubts regarding Github, VS Code etc. If you are a complete newbie, don't worry and start with practice projects (they are fairly easy!). If you want to collaborate on any projects or are interested to discuss any ideas, feel free to contact me! Do the same if you have any doubts or find any bug. Happy Coding!


--- title: "And If Both Worlds" postHeading: "And If Both Worlds" subHeading: "A poem" tags: grief poetry date: "17 Aug 2018" image: "/img/And-If-Both-Worlds/And-If-Both-Worlds-Photo-by-Jake-Thacker-on-Unsplash.jpg" credit: "Photo by Jake Thacker on Unsplash" ---
Grief and the beyond
. . .
And if both worlds came together,
That of the living,
And that of the dead,
Then you could visit sometime –
Just for the briefest of moments.
And I would feel the press of your palm,
Soft against my cheek.
And draw comfort
That this world cannot give.
. . .
First published on The Kalahari Review


Ludum Dare 33 is happening in a few weeks and I'm seriously considering giving it a go. This blog has been inactive since 2013 when it got hacked. I didn't lose anything - just the frontpage went down. All the postss are saved along with the wp-contents page. The site is now a Nikola blog. The posts are a bit messed up but that's ok for now. I tend to write more code than make games but it's good for me to make a game now and then - just do something difference with my time. So yes, back to the subject of this post. LD33 is happening in a few weeks.
The tools I plan to use:
Notebook and Pencil - I have a A6 visual diary that I have been using now and then. It doesn't get as much usage as it should though. I should look into getting a new notebook and 2H pencil.
GIMP - I will use my wacom tablet and GIMP for digital painting. The last time I had a go with digital painting was during KiwiJam15.
Blender - 3d modeling. I opened Blender the other night and created a basic character model and walk cycle. It was nothing impressive - but at least i know I still have it!.
Unity3d - I have a laptop with Windows7 on it. I don't use it much as my preference is Linux. I will install Unity3d and use it for the gamejam. I will use the Fungus library.
Thats all for now.


Before Change
raise ValueError("Some of the given input files were directories"
" or did not exist:\n%s" % err_msg)
if all_exist:
// we need to check for h5 first, because of mdtraj custom HDF5 traj format (which is deprecated).
if suffix in [".h5", ".hdf5"]:
// TODO: inspect if it is a mdtraj h5 file, eg. has the given attributes
try:
from mdtraj.formats import HDF5TrajectoryFile
HDF5TrajectoryFile(input_list[0])
reader = FeatureReader(input_list, featurizer=featurizer, topologyfile=topology,
chunksize=chunksize)
except:
from pyemma.coordinates.data.h5_reader import H5Reader
reader = H5Reader(filenames=input_files, chunk_size=chunksize, **kw)
// CASE 1.1: file types are MD files
elif FeatureReader.supports_format(suffix):
// check: do we either have a featurizer or a topology file name? If not: raise ValueError.
// create a MD reader with file names and topology
if not featurizer and not topology:
raise ValueError("The input files were MD files which makes it mandatory to have either a "
"featurizer or a topology file.")
reader = FeatureReader(input_list, featurizer=featurizer, topologyfile=topology,
chunksize=chunksize)
else:
if suffix in [".npy", ".npz"]:
reader = NumPyFileReader(input_list, chunksize=chunksize)
// otherwise we assume that given files are ascii tabulated data
else:
reader = PyCSVReader(input_list, chunksize=chunksize, **kw)
else:
raise ValueError("Not all elements in the input list were of the type %s!" % suffix)
else:
raise ValueError("Input \"%s\" was no string or list of strings." % input)
After Change
// do all the files exist? If not: Raise value error
all_exist = True
from six import StringIO
err_msg = StringIO()
for item in input_list:
if not os.path.isfile(item):
err_msg.write("\n" if err_msg.tell() > 0 else "")
err_msg.write("File %s did not exist or was no file" % item)


QUICKSTART
Try it out within your own LAN! Follow these simple steps:
- On your server, run: ./iodined -f <IP_ADDRESS> test.com. If you already use the <IP_ADDRESS> network, use another internal net like <IP_ADDRESS>.
- Enter a password.
- On the client, run: ./iodine -f -r <IP_ADDRESS> test.com. Replace <IP_ADDRESS> with your server's ip address.
- Enter the same password.
- Now the client has the tunnel ip <IP_ADDRESS> and the server has <IP_ADDRESS>.
- Try pinging each other through the tunnel.
- Done! :)
To actually use it through a relaying nameserver, see below.


specify()
is used to specify which columns in the supplied data frame are
the relevant response (and, if applicable, explanatory) variables. Note that
character variables are converted to factor
s.
Learn more in vignette("infer")
.
specify(x, formula, response = NULL, explanatory = NULL, success = NULL)
| x | A data frame that can be coerced into a tibble. |
|---|---|
| formula | A formula with the response variable on the left and the
explanatory on the right. Alternatively, a |
| response | The variable name in |
| explanatory | The variable name in |
| success | The level of |
A tibble containing the response (and explanatory, if specified) variable data.
Other core functions:
calculate()
,
generate()
,
hypothesize()
# specifying for a point estimate on one variable
gss %>%
specify(response = age)
#> Response: age (numeric)
#> # A tibble: 500 × 1
#> age
#> <dbl>
#> 1 36
#> 2 34
#> 3 24
#> 4 42
#> 5 31
#> 6 32
#> 7 48
#> 8 36
#> 9 30
#> 10 33
#> # … with 490 more rows
# specify a relationship between variables as a formula...
gss %>%
specify(age ~ partyid)
#> Dropping unused factor levels DK from the supplied explanatory variable 'partyid'.
#> Response: age (numeric)
#> Explanatory: partyid (factor)
#> # A tibble: 500 × 2
#> age partyid
#> <dbl> <fct>
#> 1 36 ind
#> 2 34 rep
#> 3 24 ind
#> 4 42 ind
#> 5 31 rep
#> 6 32 rep
#> 7 48 dem
#> 8 36 ind
#> 9 30 rep
#> 10 33 dem
#> # … with 490 more rows
# ...or with named arguments!
gss %>%
specify(response = age, explanatory = partyid)
#> Dropping unused factor levels DK from the supplied explanatory variable 'partyid'.
#> Response: age (numeric)
#> Explanatory: partyid (factor)
#> # A tibble: 500 × 2
#> age partyid
#> <dbl> <fct>
#> 1 36 ind
#> 2 34 rep
#> 3 24 ind
#> 4 42 ind
#> 5 31 rep
#> 6 32 rep
#> 7 48 dem
#> 8 36 ind
#> 9 30 rep
#> 10 33 dem
#> # … with 490 more rows
# more in-depth explanation of how to use the infer package
if (FALSE) {
vignette("infer")
}


Adipisici
Connect to Adipisici Instance
Connect to Adipisici Instance
Adipisici Instance URL (include application protocol)
Remember
Username
Remember
Password
Connect


Data sets and utilities to accompany the second edition of "Foundations and Applications of Statistics: an Introduction using R" (R Pruim, published by AMS, 2017), a text covering topics from probability and mathematical statistics at an advanced undergraduate level. R is integrated throughout, and access to all the R code in the book is provided via the snippet() function.
| Version: | 1.2.1 |
| Depends: | R (≥ 3.0.0), mosaic (≥ 1.3.0) |
| Imports: | maxLik, numDeriv, dplyr, ggplot2 (≥ 3.0.0), lattice, miscTools |
| Suggests: | ggformula, mosaicCalc, tidyr, readr, MASS, faraway, Hmisc, DAAG, multcomp, vcd, car, alr3, corrgram, BradleyTerry2, cubature, knitr, mosaicData, rmarkdown |
| Published: | 2018-08-31 |
| Author: | Randall Pruim [aut, cre] |
| Maintainer: | Randall Pruim <rpruim at calvin.edu> |
| BugReports: | https://github.com/rpruim/fastR2/issues |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: | https://github.com/rpruim/fastR2, http://rpruim.github.io/fastR2/ |
| NeedsCompilation: | no |
| Materials: | NEWS |
| CRAN checks: | fastR2 results |
| Reference manual: | fastR2.pdf |
| Vignettes: |
Errata |
| Package source: | fastR2_1.2.1.tar.gz |
| Windows binaries: | r-devel: fastR2_1.2.1.zip, r-release: fastR2_1.2.1.zip, r-oldrel: fastR2_1.2.1.zip |
| OS X binaries: | r-release: fastR2_1.2.1.tgz, r-oldrel: fastR2_1.2.1.tgz |
| Old sources: | fastR2 archive |
Please use the canonical form https://CRAN.R-project.org/package=fastR2 to link to this page.


|
Vital Statistics |
Links |
||
| Project Team | Thomas Beale | ||
| Project Mailing list | Post -<EMAIL_ADDRESS>List page - http://www.chime.ucl.ac.uk/mailman/listinfo/ref_impl_eiffel |
||
| ARB change managed | No | ||
| Language(s) & Technologies | Eiffel (ECMA-367); available at Eiffel Software (free; dual license). | ||
|
Downloads |
|
||
Problem Reports (PRs) Change Requests (CRs) |
|||
|
Subversion repository ref_impl_eiffel |
|
||
Status |
|
The openEHR ref_impl_eiffel repository contains the reference implementation of the openEHR reference model. In it are implementations of all the specifications, in the form of libraries, as well as binary components and applications built from the libraries.
This part of the repository contains libraries and tools implementing the Archetype Definition Language (ADL). It also includes a complete Java (JNI) wrapping of the reference parser, enabling it to be used in a Java application.
The ADL (Archetype Definition Language - specification) reference tools project has as its aim to develop tools which implement:
To get started, checkout the project from the subversion repository. On Windows, TortoiseSVN is easiest for this (see the subversion guide pages if you have not set it up). To do the checkout, follow these steps:
The following release will implement ADL 2.0.
| Release 2.0 of ADL - end July 2005 | |||
| Job | Description | Resources | Status |
|
Make
ontology section proper dADL |
Currently,
ontology section expresses terms with hard-wired attribute names, e.g.
<description = <"xxxx"> text =
<"yyyy">>. But the
actual structures used in the ARCHETYPE_ONTOLOGY class in the AOM are
hash tables. If the ontology is converted to the form
<["description"] = <"xxx"> ["text"] =
<"yyy">> then
it will be automatically procesible into and out of object form by a
generic object conversion facility (already implemented in the Eiffel
worlbench using the DT_OBJECT_CONVERTER classes). |
||
|
Implement
_items special attribute for generic structures |
Instead
of the current ADL 1.2 specification for nested generics, make all
generic structures (hash tables and lists) use a pseudo attribute
"_items" to represent the list contents. This will mean altering the
"items" attributes in the ontology section of archetypes to "_items". |
||
|
Make
entire archetype a dADL document |
Serialise
and parse archetypes as dADL documents; remove the special ADL syntax.
This will facilitate the proper representation of attributes such as
concept, original_language, translations, adl_version, encoding and
revision_history. All of these should correspond exactly to the
relevant parts of the AOM; they can therefore be generically processed
by a single parser. |
||
| dADL <-> XML conversion | Conversion of archetypes and and out of XML should be done by going via dADL; the theory is the same as for YATL, an abstract syntax for reasoning about tree-shaped data. |
The following table describes other development tasks currently foreseen.
| Release xxx | |||
|
Job |
Description |
Resources |
Status |
| folding HTML | Currently,
the HTML serialiser output is static, colourised HTML. However, it
would be convenient to be able to generate a folding form, especially
for large archetypes, since this would allow better visual exploration
with just a web browser. This
should be a fairly simple job. It requires copying the
existing
HTML serialiser and making a "folding HTML" serialiser, which outputs
the correct HTML for each folding node point in the structure. |
||
| schema-based XML serialiser | The XML schema for ADL needs to be developed, based on the emerging UML model of archetypes (the UML model of ADL can be seen in the ADL specification). | ||
| API serialiser | Generates a piece of API for a given archetype. | ||
|
abstract
OWL serialiser |
OWL abstract syntax serialiser, based on mapping defined by UCL/Manchester | ||
| add model-based validation | The current tools do not validate against reference models, only in terms of ADL itself. Reference model validation can be added by adding a module which can read a formal expression of any reference model (however: this itself is a problem, since XMI is problematic; what is needed is an abstract syntax of UML) and validate the class and attribute names, as well as other constraints in an ADL archetype against it. | ||
| Library viewer | Provide a way of viewing a library of ADL archetypes, whether in a database, web repository, or simply as files on the file system. | ||
| Specialisation comparator | Provide a way of comparing two archetypes where one is supposed to be a specialisation of the other. | ||
| Archetype/data comparator | Provide simple stand-alone tools for validating data against an archetype. | ||
| Unicode | Support unicode. Internally - as unicode strings; in ADL using XML/ISO character code text encoding | ||
|
Runtime
ontology merge |
Do runtime ontology merge for locale, e.g. "en-us" on top of "en" | ||
| Get rid of unused codes for current level of specialisation | done 14/May/2006 |
||
| Define transform of archetype path <-> Xpath | xxx | ||
| Term_bindings to paths | Terms need to be bindable to path expressions, such as //[at2003], /xxx/yyy/[at2003] etc | done |
|
| Allow Real numbers as Quantities without units??? | What is the use case? |


Man arrested on suspicion of having extreme pornographic image
A 49-year-old man has been arrested in Derry on suspicion of possessing what police described as an "extreme pornographic image".
The man was arrested during searches of properties in the city's Creggan area carried out under the Criminal Justice and Immigration Act 2008.
A police spokesman last night said the suspect was being questioned at Strabane PSNI station.


rotten > Library > Death > Maladies > Accidents > Airplane Crashes
Airplane
- Aaliyah, singer, ex-wife of R Kelly.
- Mamonas Assassinas, Brazilian rock band.
- Ron Brown, U.S. Secretary of Commerce, air crash or murder, Croatia.
- Roberto Clemente, baseball player.
- Patsy Cline, singer.
- Jim Croce, singer.
- John Denver, singer, piloting his own plane.
- Amelia Earhart, aviator.
- Buddy Holly, musician.
- John F. Kennedy Jr., son of John F. Kennedy.
- Joseph P. Kennedy, brother of future President John F. Kennedy.
- Kathleen Kennedy Cavendish, sister of John F. Kennedy.
- Michael Kennedy, U.S. Representative.
- Carole Lombard, actress.
- Rocky Marciano, boxer.
- Glenn Miller, big band musician.
- Ricky Nelson, singer.
- Barbara Olsen, commentator, Pentagon crash on 9/11.
- Alexander Onassis, son and heir of Aristotle Onassis.
- Otis Redding, singer.
- Randy Rhoads, guitarist for Ozzy Osbourne, doing air stunts.
- Jiles Perry Richardson, Jr., the Big Bopper.
- Quentin Roosevelt, son of President Theodore Roosevelt, pilot.
- Natalie "Dolly" Sinatra, mother of Frank Sinatra.
- Tom Slick, cryptozoologist.
- Payne Stewart, pro golfer, killed in bizarre airplane accident.
- Dr. Fritz Todt, Reich Minister for Armaments. Albert Speer founded Operation Todt in his memory.
- John Tower, U.S. Senator.
- Ritchie Valens, musician.
- Ronnie Van Zant, lead singer of Lynyrd Skynyrd.
- Paul Wellstone, U.S. Senator.
Deaths
| 17 Sep 1908 |
Thomas E. Selfridge becomes the world's first airplane fatality when the craft he's co-piloting with Orville Wright crashes near Fort Meyer, Virginia. An untested propeller ripped apart the plane's structure, causing it to nosedive from an altitude of 75 feet. |
| 7 Apr 1922 |
Two planes crash head-on over the English Channel, traveling between Paris to London. |
| 15 Aug 1935 |
Will Rogers, the most famous man in America, dies near Barrow, Alaska when his sea plane plunges into a lagoon. At the time, he and one-eyed aviator Wiley Post were surveying possible flight paths between Seattle and the Soviet Union. |
| 16 Jan 1942 |
Raising money for the war, actress Carol Lombard and her mother are killed along with a score of others in a Las Vegas airplane crash. |
| 28 Jul 1945 |
A US Army B-25 bomber crashes into the Empire State Building between the 78th and 79th floors. An engine plunges down an elevator shaft, sparking a fire in the basement. Eleven people in the building are killed, in addition to the three man bomber crew. |
| 16 Jun 1948 |
In the first skyjacking of a commercial plane, three armed men storm the cockpit of the Miss Macao, a passenger seaplane operated by Cathay Pacific airline. When the pilot refuses to turn over the controls, he is shot dead and the plane crashes into the ocean. The only survivor among the 27 people on board is the leader of the terrorists. |
| 31 Jan 1958 |
A B-47 bomber carrying a nuclear weapon crashes in Morocco. |
| 3 Feb 1959 |
The Day the Music Died: A small plane carrying The Big Bopper (J.P. Richardson), Buddy Holly, and Richie Valens crashes near Mason City, IA, while en route to a show in Fargo, North Dakota. |
| 15 Feb 1961 |
The U.S. figure skating team is obliterated when their Sabena Airlines 707 crashes in Belgium. |
| 18 Sep 1961 |
Swedish diplomat and Secretary-General of the United Nations, Dag Hammarskj÷ld killed in an airplane crash in the Congo. |
| 5 Mar 1963 |
Country singer Patsy Cline dies in a plane crash near Camden, Tennessee. |
| 17 Jan 1966 |
An American B-52 collides with its tanker aircraft during refueling over the town of Palomares, Spain. Seven crewmembers are killed in the resulting jet fuel explosion. Also, three 10-megaton hydrogen bombs crash near the town. Although none of them detonates, two rupture, scattering powdered plutonium over 558 acres of farmland. The USA hauls away 1,600 tons of soil and tomato plants and disposes of them in Aiken, South Carolina. |
| 10 Dec 1967 |
Soul singer Otis Redding plus four members of the Bar-Kays killed are in an airplane crash near Madison, Wisconsin. |
| 27 Mar 1968 |
The first man in space, Cosmonaut Yuri Alexseyevich Gagarin, dies in a plane crash outside Moscow. |
| 13 Oct 1972 |
Due to poor visibility, a Uruguayan Air Force plane carrying the Montevideo Old Christians Rugby Club crashes high in the Chilean Andes. Of the 45 people aboard the flight, only 27 survive the crash, and just 16 make it to their rescue 72 days later. Their secret? Cannibalism. According to one survivor, "the slight browning of the flesh gave it an immeasurably better flavor, softer than beef but with much the same taste." |
| 22 Jan 1973 |
176 people are killed in Kano, Nigeria when a Nigerian Airlines flight crashes on its way back from Mecca. |
| 20 Sep 1973 |
A Beechcraft D-18 charter plane crashes into a tree near Natchitoches, Louisiana, killing singer/songwriter Jim Croce, his lead guitarist, and the entire flight crew. |
| 20 Oct 1977 |
En route to a gig at Louisiana State University, Lynyrd Skynyrd band members Ronnie Van Zandt and Steve Gaines are killed when their private plane runs out of fuel and crashes into a swamp in Gillsburg, Mississippi. Their record company MCA withdraws the flame-filled cover art for their ironically-named Street Survivors album. |
| 15 Nov 1978 |
A chartered Icelandic Airlines DC-8 with 249 pilgrims returning from Mecca, crashes on approach to Sri Lanka's international airport in Colombo, killing 183 believers. |
| 19 Mar 1982 |
The guitarist for Ozzy Osbourne, Randy Rhoads, dies during the Diary of a Madman tour after the plane he is flying in buzzes the band's tour bus and clips the wing of the plane, crashing into a nearby farmhouse. |
| 7 Dec 1987 |
David Burke, a recently fired airline employee, stalks his ex-boss onboard a Pacific Southwest Airline jet. He shoots the man in mid-flight and causes the plane to crash, killing all 43 people onboard. |
| 8 Apr 1992 |
Palestinian leader Yasser Arafat suffers only minor injuries after his airplane crashes into the Libyan desert. However, three others on board the craft are killed. |
| 12 Sep 1994 |
After a night of boozing and smoking crack, Frank Corder steals a Cessna P150 and crashes it into the south lawn of the White House. The wreckage tumbles over a tree and a hedge before coming to rest against the West Wing of the Executive Mansion. Corder's flamboyant suicide attack never actually imperiled President Clinton's life, since the First Family was sleeping elsewhere at the time. |
| 26 Feb 1996 |
A Peruvian commercial jet caught fire and crashed into remote Andean mountain canyon five miles from its destination, killing all 123 people on board. |
| 3 Apr 1996 |
US Commerce Secretary Ron Brown's plane goes down in Dubrovnik (Croatia), killing 35. Although many who view Brown's body comment that he appeared to have been shot in the head, this is never fully investigated. |
| 12 Oct 1997 |
Folk singer John Denver dies when his newest toy, a homebuilt Long-EZ single-seat airplane, crashes into the ocean near Monterey, California. Unfortunately, the person who constructed the plane opted to locate the fuel tank selector valve behind the pilot's left shoulder. In order for Denver to reach back and switch tanks, he had to let go of the flight controls. At which point, the aircraft plunged 500 feet into the Pacific Ocean. Divers later recover most of the body, but not the head. Denver is ultimately identified by his fingerprints. |
| 19 Dec 1997 |
The pilot of a SilkAir plane deliberately flies into a mangrove swamp in Indonesia, committing suicide and killing all 104 people aboard. The pilot, Captain Tsu Way Ming, was in debt and had personal problems, had taken a $3M insurance policy prior to the crash. To cover his tracks, he disconnected the flight recorder prior to downing the aircraft. |
| 25 Jul 2000 |
A right tire explosion on the Concorde causes the plane to crash after takeoff from Charles de Gaulle Airport in Paris, leaving 113 dead. It is the first crash in Concorde's history, and the only supersonic commercial flight to ever crash. |
| 12 Nov 2001 |
An American Airlines Airbus A300 crashes after takeoff from New York City, the first major crash after the terrorist attacks of September 11. |
Pornopolis |
Rotten |
Faces of Death |
Famous Nudes
|


AlloyTouch Introduction
Powerful Features
Physical Feedback
Smooth Motion
Simple API
Excellent Contributors
powered by AlloyTouch FullPage Plugin and animate.css


Although it seems counterintuitive
that a class reference could be cast to an interface
(as implied at line 12), it is possible – if the interface is related to the
reference by inheritance or implementation. The mere existence of that possibility
prevents a compiler error from being thrown, in this example.
However, the literal lack of an inheritance or implementation relationship
between
the class and the
interface in this code means that the cast (at line 12) is not applicable
and, as a result, a ClassCastException is thrown at runtime.
Below is an example (given a few modifications to this problem's original code)
that shows how a class reference could be legally cast to an interface (e.g.
through inheritance or implementation).


Boiler Plate
Navigate to Login page
Click Login Controller
Note: this is a boiler plate project to illustrate the working on Anguar-Route-Injector plugin


Classes
The following classes are available globally.
-
RLMArray
is the container type in Realm used to define to-many relationships.Unlike an
NSArray
,RLMArray
s hold a single type, specified by theobjectClassName
property. This is referred to in these docs as the “type” of the array.When declaring an
RLMArray
property, the type must be marked as conforming to a protocol by the same name as the objects it should contain (see theRLM_ARRAY_TYPE
macro). In addition, the property can be declared using Objective-C generics for better compile-time type safety.RLM_ARRAY_TYPE(ObjectType) ... @property RLMArray<ObjectType *><ObjectType> *arrayOfObjectTypes;
RLMArray
s can be queried with the same predicates asRLMObject
andRLMResult
s.RLMArray
s cannot be created directly.RLMArray
properties onRLMObject
s are lazily created when accessed, or can be obtained by querying a Realm.Key-Value Observing
RLMArray
supports array key-value observing onRLMArray
properties onRLMObject
subclasses, and theinvalidated
property onRLMArray
instances themselves is key-value observing compliant when theRLMArray
is attached to a managedRLMObject
(RLMArray
s on unmanagedRLMObject
s will never become invalidated).Because
See moreRLMArray
s are attached to the object which they are a property of, they do not require using the mutable collection proxy objects from-mutableArrayValueForKey:
or KVC-compatible mutation methods on the containing object. Instead, you can call the mutation methods on theRLMArray
directly.Declaration
Objective-C
@interface RLMArray<RLMObjectType> : NSObject <RLMCollection, NSFastEnumeration>
Swift
class RLMArray<RLMObjectType> : NSObject, RLMCollection, NSFastEnumeration where RLMObjectType : AnyObject
-
An
RLMSortDescriptor
stores a property name and a sort order for use withsortedResultsUsingDescriptors:
. It is similar toNSSortDescriptor
, but supports only the subset of functionality which can be efficiently run by Realm’s query engine.
See moreRLMSortDescriptor
instances are immutable.Declaration
Objective-C
@interface RLMSortDescriptor : NSObject
Swift
class RLMSortDescriptor : NSObject
-
A
RLMCollectionChange
object encapsulates information about changes to collections that are reported by Realm notifications.RLMCollectionChange
is passed to the notification blocks registered with-addNotificationBlock
onRLMArray
andRLMResults
, and reports what rows in the collection changed since the last time the notification block was called.The change information is available in two formats: a simple array of row indices in the collection for each type of change, and an array of index paths in a requested section suitable for passing directly to
UITableView
‘s batch update methods. A complete example of updating aUITableView
namedtv
:[tv beginUpdates]; [tv deleteRowsAtIndexPaths:[changes deletionsInSection:0] withRowAnimation:UITableViewRowAnimationAutomatic]; [tv insertRowsAtIndexPaths:[changes insertionsInSection:0] withRowAnimation:UITableViewRowAnimationAutomatic]; [tv reloadRowsAtIndexPaths:[changes modificationsInSection:0] withRowAnimation:UITableViewRowAnimationAutomatic]; [tv endUpdates];
All of the arrays in an
See moreRLMCollectionChange
are always sorted in ascending order.Declaration
Objective-C
@interface RLMCollectionChange : NSObject
Swift
class RLMCollectionChange : NSObject
-
RLMMigration
instances encapsulate information intended to facilitate a schema migration.A
See moreRLMMigration
instance is passed into a user-definedRLMMigrationBlock
block when updating the version of a Realm. This instance provides access to the old and new database schemas, the objects in the Realm, and provides functionality for modifying the Realm during the migration.Declaration
Objective-C
@interface RLMMigration : NSObject
Swift
class RLMMigration : NSObject
-
RLMObject
is a base class for model objects representing data stored in Realms.Define your model classes by subclassing
RLMObject
and adding properties to be managed. Then instantiate and use your custom subclasses instead of using theRLMObject
class directly.// Dog.h @interface Dog : RLMObject @property NSString *name; @property BOOL adopted; @end // Dog.m @implementation Dog @end //none needed
Supported property types
NSString
NSInteger
,int
,long
,float
, anddouble
BOOL
orbool
NSDate
NSData
NSNumber<X>
, whereX
is one ofRLMInt
,RLMFloat
,RLMDouble
orRLMBool
, for optional number propertiesRLMObject
subclasses, to model many-to-one relationships.RLMArray<X>
, whereX
is anRLMObject
subclass, to model many-to-many relationships.
Querying
You can initiate queries directly via the class methods:
allObjects
,objectsWhere:
, andobjectsWithPredicate:
. These methods allow you to easily query a custom subclass for instances of that class in the default Realm.To search in a Realm other than the default Realm, use the
allObjectsInRealm:
,objectsInRealm:where:
, andobjectsInRealm:withPredicate:
class methods.See
RLMRealm
Relationships
See our Cocoa guide for more details.
Key-Value Observing
All
RLMObject
properties (including properties you create in subclasses) are Key-Value Observing compliant, except forrealm
andobjectSchema
.Keep the following tips in mind when observing Realm objects:
- Unlike
NSMutableArray
properties,RLMArray
properties do not require using the proxy object returned from-mutableArrayValueForKey:
, or defining KVC mutation methods on the containing class. You can simply call methods on theRLMArray
directly; any changes will be automatically observed by the containing object. - Unmanaged
RLMObject
instances cannot be added to a Realm while they have any observed properties. - Modifying managed
RLMObject
s within-observeValueForKeyPath:ofObject:change:context:
is not recommended. Properties may change even when the Realm is not in a write transaction (for example, when-[RLMRealm refresh]
is called after changes are made on a different thread), and notifications sent prior to the change being applied (whenNSKeyValueObservingOptionPrior
is used) may be sent at times when you cannot begin a write transaction.
Declaration
Objective-C
@interface RLMObject : RLMObjectBase <RLMThreadConfined>
Swift
class RLMObject : RLMObjectBase, RLMThreadConfined
-
Declaration
Objective-C
@interface RLMPropertyChange : NSObject
Swift
class RLMPropertyChange : NSObject
-
This class represents Realm model object schemas.
When using Realm,
RLMObjectSchema
instances allow performing migrations and introspecting the database’s schema.Object schemas map to tables in the core database.
See moreDeclaration
Objective-C
@interface RLMObjectSchema : NSObject <NSCopying>
Swift
class RLMObjectSchema : NSObject, NSCopying
-
RLMProperty
instances represent properties managed by a Realm in the context of an object schema. Such properties may be persisted to a Realm file or computed from other data from the Realm.When using Realm,
RLMProperty
instances allow performing migrations and introspecting the database’s schema.These property instances map to columns in the core database.
See moreDeclaration
Objective-C
@interface RLMProperty : NSObject
Swift
class RLMProperty : NSObject
-
An
See moreRLMPropertyDescriptor
instance represents a specific property on a given class.Declaration
Objective-C
@interface RLMPropertyDescriptor : NSObject
Swift
class RLMPropertyDescriptor : NSObject
-
An
RLMRealm
instance (also referred to as “a Realm”) represents a Realm database.Realms can either be stored on disk (see
+[RLMRealm realmWithURL:]
) or in memory (seeRLMRealmConfiguration
).RLMRealm
instances are cached internally, and constructing equivalentRLMRealm
objects (for example, by using the same path or identifier) multiple times on a single thread within a single iteration of the run loop will normally return the sameRLMRealm
object.If you specifically want to ensure an
RLMRealm
instance is destroyed (for example, if you wish to open a Realm, check some property, and then possibly delete the Realm file and re-open it), place the code which uses the Realm within an@autoreleasepool {}
and ensure you have no other strong references to it.See moreWarning
RLMRealm
instances are not thread safe and cannot be shared across threads or dispatch queues. Trying to do so will cause an exception to be thrown.  For dispatch queues, this means that you must call it in each block which is dispatched, as a queue is not guaranteed to run all of its blocks on the same thread.Declaration
Objective-C
@interface RLMRealm : NSObject
Swift
class RLMRealm : NSObject
-
A token which is returned from methods which subscribe to changes to a Realm.
Change subscriptions in Realm return an
See moreRLMNotificationToken
instance, which can be used to unsubscribe from the changes. You must store a strong reference to the token for as long as you want to continue to receive notifications. When you wish to stop, call the-invalidate
method. Notifications are also stopped if the token is deallocated.Declaration
Objective-C
@interface RLMNotificationToken : NSObject
Swift
class RLMNotificationToken : NSObject
-
An
RLMRealmConfiguration
instance describes the different options used to create an instance of a Realm.RLMRealmConfiguration
instances are just plainNSObject
s. UnlikeRLMRealm
s andRLMObject
s, they can be freely shared between threads as long as you do not mutate them.Creating configuration objects for class subsets (by setting the
See moreobjectClasses
property) can be expensive. Because of this, you will normally want to cache and reuse a single configuration object for each distinct configuration rather than creating a new object each time you open a Realm.Declaration
Objective-C
@interface RLMRealmConfiguration : NSObject <NSCopying>
Swift
class RLMRealmConfiguration : NSObject, NSCopying
-
RLMResults
is an auto-updating container type in Realm returned from object queries. It represents the results of the query in the form of a collection of objects.RLMResults
can be queried using the same predicates asRLMObject
andRLMArray
, and you can chain queries to further filter results.RLMResults
always reflect the current state of the Realm on the current thread, including during write transactions on the current thread. The one exception to this is when usingfor...in
fast enumeration, which will always enumerate over the objects which matched the query when the enumeration is begun, even if some of them are deleted or modified to be excluded by the filter during the enumeration.RLMResults
are lazily evaluated the first time they are accessed; they only run queries when the result of the query is requested. This means that chaining several temporaryRLMResults
to sort and filter your data does not perform any extra work processing the intermediate state.Once the results have been evaluated or a notification block has been added, the results are eagerly kept up-to-date, with the work done to keep them up-to-date done on a background thread whenever possible.
See moreRLMResults
cannot be directly instantiated.Declaration
Objective-C
@interface RLMResults<RLMObjectType> : NSObject <RLMCollection, NSFastEnumeration>
Swift
class RLMResults<RLMObjectType> : NSObject, RLMCollection, NSFastEnumeration where RLMObjectType : AnyObject
-
RLMLinkingObjects
is an auto-updating container type. It represents a collection of objects that link to its parent object.For more information, please see the “Inverse Relationships” section in the documentation.
Declaration
Objective-C
@interface RLMLinkingObjects<RLMObjectType : RLMObject *> : RLMResults
Swift
class RLMLinkingObjects<RLMObjectType> : RLMResults<AnyObject> where RLMObjectType : RLMObject
-
RLMSchema
instances represent collections of model object schemas managed by a Realm.When using Realm,
RLMSchema
instances allow performing migrations and introspecting the database’s schema.Schemas map to collections of tables in the core database.
See moreDeclaration
Objective-C
@interface RLMSchema : NSObject <NSCopying>
Swift
class RLMSchema : NSObject, NSCopying
-
A configuration object representing configuration state for a Realm which is intended to sync with a Realm Object Server.
See moreDeclaration
Objective-C
@interface RLMSyncConfiguration : NSObject
Swift
class RLMSyncConfiguration : NSObject
-
Opaque credentials representing a specific Realm Object Server user.
See moreDeclaration
Objective-C
@interface RLMSyncCredentials : NSObject
Swift
class RLMSyncCredentials : NSObject
-
A singleton manager which serves as a central point for sync-related configuration.
See moreDeclaration
Objective-C
@interface RLMSyncManager : NSObject
Swift
class RLMSyncManager : NSObject
-
A permission which can be applied to a Realm, Class, or specific Object.
Permissions are applied by adding the permission to the RLMRealmPermission singleton object, the RLMClassPermission object for the desired class, or to a user-defined RLMArray
See moreproperty on a specific Object instance. The meaning of each of the properties of RLMPermission depend on what the permission is applied to, and so are left undocumented here. See RLMRealmPrivileges
,RLMClassPrivileges
, andRLMObjectPrivileges
for details about what each of the properties mean when applied to that type. -
A Role within the permissions system.
A Role consists of a name for the role and a list of users which are members of the role. Roles are granted privileges on Realms, Classes and Objects, and in turn grant those privileges to all users which are members of the role.
A role named “everyone” is automatically created in new Realms, and all new users which connect to the Realm are automatically added to it. Any other roles you wish to use are managed as normal Realm objects.
See more -
A representation of a sync user within the permissions system.
RLMPermissionUser objects are created automatically for each sync user which connects to a Realm, and can also be created manually if you wish to grant permissions to a user which has not yet connected to this Realm.
See more -
A singleton object which describes Realm-wide permissions.
An object of this type is automatically created in the Realm for you, and more objects cannot be created manually. Call
+[RLMRealmPermission objectInRealm:]
to obtain the instance for a specific Realm.See
See moreRLMRealmPrivileges
for the meaning of permissions applied to a Realm. -
An object which describes class-wide permissions.
An instance of this object is automatically created in the Realm for class in your schema, and should not be created manually. Call
See more+[RLMClassPermission objectInRealm:forClassNamed:]
or+[RLMClassPermission objectInRealm:forClass:]
to obtain the existing instance, or queryRLMClassPermission
as normal. -
A value representing a permission granted to the specified user(s) to access the specified Realm(s).
RLMSyncPermission
is immutable and can be accessed from any thread.See https://realm.io/docs/realm-object-server/#permissions for general documentation.
See moreDeclaration
Objective-C
@interface RLMSyncPermission : NSObject
Swift
class RLMSyncPermission : NSObject
-
A token object corresponding to a progress notification block on a session object.
To stop notifications manually, call
-invalidate
on it. Notifications should be stopped before the token goes out of scope or is destroyed.Declaration
Objective-C
@interface RLMProgressNotificationToken : RLMNotificationToken
Swift
class RLMProgressNotificationToken : RLMNotificationToken
-
An object encapsulating a Realm Object Server “session”. Sessions represent the communication between the client (and a local Realm file on disk), and the server (and a remote Realm at a given URL stored on a Realm Object Server).
Sessions are always created by the SDK and vended out through various APIs. The lifespans of sessions associated with Realms are managed automatically. Session objects can be accessed from any thread.
See moreDeclaration
Objective-C
@interface RLMSyncSession : NSObject
Swift
class RLMSyncSession : NSObject
-
An opaque token returned as part of certain errors. It can be passed into certain APIs to perform certain actions.
See
RLMSyncErrorClientResetError
,RLMSyncErrorPermissionDeniedError
Declaration
Objective-C
@interface RLMSyncErrorActionToken : NSObject
Swift
class RLMSyncErrorActionToken : NSObject
-
RLMSyncSubscription
represents a subscription to a set of objects in a synced Realm.When query-based sync is enabled for a synchronized Realm, the server only synchronizes objects to the client when they match a sync subscription registered by that client. A subscription consists of of a query (represented by an
RLMResults
) and an optional name.The state of the subscription can be observed using Key-Value Observing on the
state
property.Subscriptions are created using
See more-[RLMResults subscribe]
or-[RLMResults subscribeWithName:]
. Existing subscriptions for a Realm can be looked up with-[RLMRealm subscriptions]
or-[RLMRealm subscriptionWithName:]
.Declaration
Objective-C
@interface RLMSyncSubscription : NSObject
Swift
class RLMSyncSubscription : NSObject
-
A
RLMSyncUser
instance represents a single Realm Object Server user account.A user may have one or more credentials associated with it. These credentials uniquely identify the user to the authentication provider, and are used to sign into a Realm Object Server user account.
Note that user objects are only vended out via SDK APIs, and cannot be directly initialized. User objects can be accessed from any thread.
See moreDeclaration
Objective-C
@interface RLMSyncUser : NSObject
Swift
class RLMSyncUser : NSObject
-
Declaration
Objective-C
@interface RLMSyncUserAccountInfo : NSObject
Swift
class RLMSyncUserAccountInfo : NSObject
-
A data object representing information about a user that was retrieved from a user lookup call.
See moreDeclaration
Objective-C
@interface RLMSyncUserInfo : NSObject
Swift
class RLMSyncUserInfo : NSObject
-
An object intended to be passed between threads containing a thread-safe reference to its thread-confined object.
To resolve a thread-safe reference on a target Realm on a different thread, pass to
-[RLMRealm resolveThreadSafeReference:]
.Warning
A
RLMThreadSafeReference
object must be resolved at most once. Failing to resolve aRLMThreadSafeReference
will result in the source version of the Realm being pinned until the reference is deallocated.See moreNote
Prefer short-lived
RLMThreadSafeReference
s as the data for the version of the source Realm will be retained until all references have been resolved or deallocated.Declaration
Objective-C
@interface RLMThreadSafeReference<__covariant Confined : id <RLMThreadConfined>> : NSObject
Swift
class RLMThreadSafeReference<Confined> : NSObject where Confined : RLMThreadConfined


Love it when a small, tidy helper method created weeks ago suddenly makes a bug fix today trivial.
1/31/2011, 4:25:41 PM
Favs: 0
Retweets: 0
link--- layout: tweet ---
Love it when a small, tidy helper method created weeks ago suddenly makes a bug fix today trivial.
1/31/2011, 4:25:41 PM
Favs: 0
Retweets: 0
link


This tutorial intends to enable you to build an easy Angular app, which can query a triple store (here: GrapDB), perform operations based on the retrieved data and to visualize this data to a user. Hereby, you will learn some basics on how to program a web-App with the Angular framework.
Show me the goal!You will learn how to create an Angular App from scratch. Furthermore, you will learn how to use bootstrap in you App design in order to style your HTML in a very easy and efficient way. Lastly, you will learn how to create an interactiv app that is able to support a user based on the interaction with the app.
Build an interactive app is one thing, to build an Engineering tool another. Engineering tools have to have the ability to interact with Engineering or machine data. In this tutorial, you will learn how to query RDF/OWL data from a triple store and how to do operations on the returns. Furthermore, you will learn how to include this data in your app. Usually, the execution of queries is done by a backend. In order to provide a simple and easy start, the queries will be executed by Angular. However, this can be easily changed when switching to productive mode.


Default View
List
Map
Show Distance In
Miles
Kilometers
Map View Option
Show
Hide
Category Page
Show
Hide
You cannot make map the default view if it is hidden