Public Member Functions |
Protected Member Functions |
Private Member Functions |
Private Attributes |
List of all members
LatexNetOutput Class Reference
This class is responsible for creation of latex files to plot link flows. Node coordinates must be known in order to create a latex file. More...
#include <LatexNetOutput.h>
Inheritance diagram for LatexNetOutput:
Collaboration diagram for LatexNetOutput:
Public Member Functions | |
| LatexNetOutput (StarNetwork *net) | |
| LatexNetOutput (StarNetwork *net, const std::string &logFileForMissingIDs) | |
| void | printToLaTeX (const std::string &fileWithNodes, const std::string &texFile, bool addHeader, FPType scale) |
| Public Member Functions inherited from NetOutput | |
| NetOutput (StarNetwork *net, const std::string &logFileForMissingIDs="log.missing.ids.txt") | |
| void | readCoord (const std::string &file, std::vector< FPType > &xCoord, std::vector< FPType > &yCoord, std::vector< int > &nodeID) |
Protected Member Functions | |
| virtual std::string | getLineLabel (StarLink *link, const std::string &aboveOrBelow) |
| virtual std::string | generateLineOptions (const FlowInfo &flowInfo, StarLink *link) |
| virtual bool | plotLink (StarLink *link) const |
| virtual std::string | getNodeLabel (int nodeID) const |
Private Member Functions | |
| void | addTikzNodes (FileWriter &outputFile, const std::vector< FPType > &xCoord, const std::vector< FPType > &yCoord, const std::vector< int > &nodeID) |
| void | setPlotInfoToDefault () |
| FlowInfo | getFlowInfo () |
| bool | onHorizontalLine (int tail, int head, const std::vector< FPType > &yCoord) |
| bool | onVerticalLine (int tail, int head, const std::vector< FPType > &xCoord) |
| std::string | drawHorizontalLink (StarLink *link, const std::string &lineOptions, bool tailIsLeft) |
| std::string | drawVerticalLink (StarLink *link, const std::string &lineOptions, bool tailIsUp) |
| std::string | drawDiagonalLink (StarLink *link, const std::string &lineOptions, bool tailIsLeft, bool tailIsUp) |
| std::string | createShiftStr (const std::string &shift, int val) |
| int | getShift (PlotInfo &node, bool swapValues) |
Private Attributes | |
| PlotInfo | snInfo_ |
| PlotInfo | weInfo_ |
Additional Inherited Members | |
| Static Protected Member Functions inherited from NetOutput | |
| static const std::string | getRedColor () |
| static const std::string | getBlueColor () |
| static const std::string | getGreenColor () |
| static const std::string | getLightBlueColor () |
| static const std::string | getOrangeColor () |
| Protected Attributes inherited from NetOutput | |
| StarNetwork * | net_ |
| std::string | logFileForMissingIDs_ |
Detailed Description
This class is responsible for creation of latex files to plot link flows. Node coordinates must be known in order to create a latex file.
The algorithm plots network performance graphs, i.e. congested links are red, not congested links are blue, width of each link is proportional to the ratio flow/capacity. Only links with positive flow are plotted.
Member Function Documentation
|
protectedvirtual |
- Returns
- options for a given link, e.g. line width and colour.
Reimplemented in LatexNetOutputLinksExploredInBSP.
|
protectedvirtual |
- Returns
- line label that describes link travel time.
Reimplemented in LatexNetOutputLinksExploredInBSP.
|
protectedvirtual |
- Returns
- node ID.
Reimplemented in LatexNetOutputLinksExploredInBSP.
|
protectedvirtual |
- Returns
- true if link flow is positive, false otherwise.
Reimplemented in LatexNetOutputLinksExploredInBSP.
| void LatexNetOutput::printToLaTeX | ( | const std::string & | fileWithNodes, |
| const std::string & | texFile, | ||
| bool | addHeader, | ||
| FPType | scale | ||
| ) |
- Parameters
-
fileWithNodes path to file with node coordinates. texFile path to file where latex code will be written. addHeader if set to true latex header is added to file, if set to false only code for tikzpicture is written to file. scale {tikzpicture}[scale = scale].
The documentation for this class was generated from the following files:
- LatexNetOutput.h
- LatexNetOutput.cpp


A triangle is a polygon with three edges and three vertices and whose sum of interior anglesis equal to 180 degrees.
An equilateral triangle is a triangle whose all three sides are equal and whose all interior angles are equal and each is equal to 60 degrees
Isoceles triangle is a triangle whose any two sides are equal and its base anglesare equal
A triangle with all sides of different lengths and All angles are different, too.


initrd - boot loader initialized RAM disk
/dev/initrd is a read-only block device assigned major number 1 and minor
number 250. Typically /dev/initrd is owned by root:disk with mode 0400
(read access by root only). If the Linux system does not have
/dev/initrd already created, it can be created with the following
commands:
mknod -m 400 /dev/initrd b 1 250
chown root:disk /dev/initrd
Also, support for both "RAM disk" and "Initial RAM
disk" (e.g., CONFIG_BLK_DEV_RAM=y and
CONFIG_BLK_DEV_INITRD=y) must be compiled directly into the Linux
kernel to use /dev/initrd. When using /dev/initrd, the RAM
disk driver cannot be loaded as a module.
The special file /dev/initrd is a read-only block device. This device is
a RAM disk that is initialized (e.g., loaded) by the boot loader before the
kernel is started. The kernel then can use /dev/initrd's contents for a
two-phase system boot-up.
In the first boot-up phase, the kernel starts up and mounts an
initial root filesystem from the contents of /dev/initrd (e.g., RAM
disk initialized by the boot loader). In the second phase, additional
drivers or other modules are loaded from the initial root device's contents.
After loading the additional modules, a new root filesystem (i.e., the
normal root filesystem) is mounted from a different device.
When booting up with initrd, the system boots as follows:
- 1.
- The boot loader loads the kernel program and /dev/initrd's contents
into memory.
- 2.
- On kernel startup, the kernel uncompresses and copies the contents of the
device /dev/initrd onto device /dev/ram0 and then frees the
memory used by /dev/initrd.
- 3.
- The kernel then read-write mounts the device /dev/ram0 as the
initial root filesystem.
- 4.
- If the indicated normal root filesystem is also the initial root
filesystem (e.g., /dev/ram0) then the kernel skips to the last step
for the usual boot sequence.
- 5.
- If the executable file /linuxrc is present in the initial root
filesystem, /linuxrc is executed with UID 0. (The file
/linuxrc must have executable permission. The file /linuxrc
can be any valid executable, including a shell script.)
- 6.
- If /linuxrc is not executed or when /linuxrc terminates, the
normal root filesystem is mounted. (If /linuxrc exits with any
filesystems mounted on the initial root filesystem, then the behavior of
the kernel is UNSPECIFIED. See the NOTES section for the current
kernel behavior.)
- 7.
- If the normal root filesystem has a directory /initrd, the device
/dev/ram0 is moved from / to /initrd. Otherwise, if
the directory /initrd does not exist, the device /dev/ram0
is unmounted. (When moved from / to /initrd,
/dev/ram0 is not unmounted and therefore processes can remain
running from /dev/ram0. If directory /initrd does not exist
on the normal root filesystem and any processes remain running from
/dev/ram0 when /linuxrc exits, the behavior of the kernel is
UNSPECIFIED. See the NOTES section for the current kernel
behavior.)
- 8.
- The usual boot sequence (e.g., invocation of /sbin/init) is
performed on the normal root filesystem.
The following boot loader options, when used with initrd, affect the
kernel's boot-up operation:
- initrd=filename
- Specifies the file to load as the contents of /dev/initrd. For
LOADLIN this is a command-line option. For LILO you have to
use this command in the LILO configuration file
/etc/lilo.config. The filename specified with this option will
typically be a gzipped filesystem image.
- noinitrd
- This boot option disables the two-phase boot-up operation. The kernel
performs the usual boot sequence as if /dev/initrd was not
initialized. With this option, any contents of /dev/initrd loaded
into memory by the boot loader contents are preserved. This option permits
the contents of /dev/initrd to be any data and need not be limited
to a filesystem image. However, device /dev/initrd is read-only and
can be read only one time after system startup.
- root=device-name
- Specifies the device to be used as the normal root filesystem. For
LOADLIN this is a command-line option. For LILO this is a
boot time option or can be used as an option line in the LILO
configuration file /etc/lilo.config. The device specified by the
this option must be a mountable device having a suitable root
filesystem.
By default, the kernel's settings (e.g., set in the kernel file with
rdev(8) or compiled into the kernel file), or the boot loader option
setting is used for the normal root filesystems. For an NFS-mounted normal
root filesystem, one has to use the nfs_root_name and
nfs_root_addrs boot options to give the NFS settings. For more
information on NFS-mounted root see the kernel documentation file
Documentation/filesystems/nfs/nfsroot.txt (or
Documentation/filesystems/nfsroot.txt before Linux 2.6.33). For more
information on setting the root filesystem see also the LILO and
LOADLIN documentation.
It is also possible for the /linuxrc executable to change
the normal root device. For /linuxrc to change the normal root
device, /proc must be mounted. After mounting /proc,
/linuxrc changes the normal root device by writing into the proc
files /proc/sys/kernel/real-root-dev,
/proc/sys/kernel/nfs-root-name, and
/proc/sys/kernel/nfs-root-addrs. For a physical root device, the root
device is changed by having /linuxrc write the new root filesystem
device number into /proc/sys/kernel/real-root-dev. For an NFS root
filesystem, the root device is changed by having /linuxrc write the
NFS setting into files /proc/sys/kernel/nfs-root-name and
/proc/sys/kernel/nfs-root-addrs and then writing 0xff (e.g., the
pseudo-NFS-device number) into file /proc/sys/kernel/real-root-dev.
For example, the following shell command line would change the normal root
device to /dev/hdb1:
echo 0x365 >/proc/sys/kernel/real-root-dev
For an NFS example, the following shell command lines would change
the normal root device to the NFS directory /var/nfsroot on a local
networked NFS server with IP number <IP_ADDRESS> for a system with IP number
<IP_ADDRESS> and named "idefix":
echo /var/nfsroot >/proc/sys/kernel/nfs-root-name
echo <IP_ADDRESS>:<IP_ADDRESS>::<IP_ADDRESS>:idefix \
>/proc/sys/kernel/nfs-root-addrs
echo 255 >/proc/sys/kernel/real-root-dev
Note: The use of /proc/sys/kernel/real-root-dev to
change the root filesystem is obsolete. See the Linux kernel source file
Documentation/admin-guide/initrd.rst (or
Documentation/initrd.txt before Linux 4.10) as well as
pivot_root(2) and pivot_root(8) for information on the modern
method of changing the root filesystem.
The main motivation for implementing initrd was to allow for modular
kernel configuration at system installation.
A possible system installation scenario is as follows:
- 1.
- The loader program boots from floppy or other media with a minimal kernel
(e.g., support for /dev/ram, /dev/initrd, and the ext2
filesystem) and loads /dev/initrd with a gzipped version of the
initial filesystem.
- 2.
- The executable /linuxrc determines what is needed to (1) mount the
normal root filesystem (i.e., device type, device drivers, filesystem) and
(2) the distribution media (e.g., CD-ROM, network, tape, ...). This can be
done by asking the user, by auto-probing, or by using a hybrid
approach.
- 3.
- The executable /linuxrc loads the necessary modules from the
initial root filesystem.
- 4.
- The executable /linuxrc creates and populates the root filesystem.
(At this stage the normal root filesystem does not have to be a completed
system yet.)
- 5.
- The executable /linuxrc sets /proc/sys/kernel/real-root-dev,
unmount /proc, the normal root filesystem and any other filesystems
it has mounted, and then terminates.
- 6.
- The kernel then mounts the normal root filesystem.
- 7.
- Now that the filesystem is accessible and intact, the boot loader can be
installed.
- 8.
- The boot loader is configured to load into /dev/initrd a filesystem
with the set of modules that was used to bring up the system. (e.g.,
Device /dev/ram0 can be modified, then unmounted, and finally, the
image is written from /dev/ram0 to a file.)
- 9.
- The system is now bootable and additional installation tasks can be
performed.
The key role of /dev/initrd in the above is to reuse the
configuration data during normal system operation without requiring initial
kernel selection, a large generic kernel or, recompiling the kernel.
A second scenario is for installations where Linux runs on systems
with different hardware configurations in a single administrative network.
In such cases, it may be desirable to use only a small set of kernels
(ideally only one) and to keep the system-specific part of configuration
information as small as possible. In this case, create a common file with
all needed modules. Then, only the /linuxrc file or a file executed
by /linuxrc would be different.
A third scenario is more convenient recovery disks. Because
information like the location of the root filesystem partition is not needed
at boot time, the system loaded from /dev/initrd can use a dialog
and/or auto-detection followed by a possible sanity check.
Last but not least, Linux distributions on CD-ROM may use
initrd for easy installation from the CD-ROM. The distribution can
use LOADLIN to directly load /dev/initrd from CD-ROM without
the need of any floppies. The distribution could also use a LILO boot
floppy and then bootstrap a bigger RAM disk via /dev/initrd from the
CD-ROM.
/dev/initrd
/dev/ram0
/linuxrc
/initrd
- 1.
- With the current kernel, any filesystems that remain mounted when
/dev/ram0 is moved from / to /initrd continue to be
accessible. However, the /proc/mounts entries are not updated.
- 2.
- With the current kernel, if directory /initrd does not exist, then
/dev/ram0 will not be fully unmounted if /dev/ram0 is
used by any process or has any filesystem mounted on it. If
/dev/ram0 is not fully unmounted, then /dev/ram0 will
remain in memory.
- 3.
- Users of /dev/initrd should not depend on the behavior give in the
above notes. The behavior may change in future versions of the Linux
kernel.
chown(1), mknod(1), ram(4), freeramdisk(8),
rdev(8)
Documentation/admin-guide/initrd.rst (or
Documentation/initrd.txt before Linux 4.10) in the Linux kernel
source tree, the LILO documentation, the LOADLIN documentation, the SYSLINUX
documentation
This page is part of release 5.05 of the Linux man-pages project. A
description of the project, information about reporting bugs, and the latest
version of this page, can be found at https://www.kernel.org/doc/man-pages/.


Contributing¶
Help Out¶
JTinyCsvParser is an open source project and there are many ways to contribute to it.
Some things you could help out with are:
- Documentation (both code and features)
- Bug reports
- Bug fixes
- Feature requests
- Feature implementations
- Test coverage
- Code quality
- Sample applications
Open Source¶
The JTinyCsvParser project is hosted on GitHub at:
Want to get your hands on the sources? Then clone the repository using the following git command:
git clone https://github.com/bytefish/JTinyCsvParser
Building the Documentation¶
Once you have cloned the repository to your local machine, the following instructions will walk you through installing the tools necessary to build the documentation.
Download python version 2.7.10 or higher.
If you are installing on Windows, ensure both the Python install directory and the Python scripts directory have been added to your
PATH
environment variable. For example, if you install Python into thec:\python34 directory
, you would addc:\python34;c:\python34\scripts
to yourPATH
environment variable.Install Sphinx by opening a command prompt and running the following Python command. (Note that this operation might take a few minutes to complete.)
pip install sphinx
By default, when you install Sphinx, it will install the ReadTheDocs custom theme automatically. If you need to update the installed version of this theme, you should run:
pip install -U sphinx_rtd_theme
Navigate to one of the projects Documentation located at
JTinyCsvParser/documentation/
.Run
make
(make.bat
on Windows, Makefile on Mac/Linux) from command line:make html
Once make completes, the generated docs will be in the
.../documentation/build/html
directory. Simply open theindex.html
file in your browser to see the built documentation.


| 1 | package com.aor.numbers; | |
| 2 | ||
| 3 | public class DivisibleByFilter implements IListFilter { | |
| 4 | private Integer number; | |
| 5 | ||
| 6 | DivisibleByFilter(Integer number){ | |
| 7 | this.number = number; | |
| 8 | } | |
| 9 | ||
| 10 | @Override | |
| 11 | public boolean accept(Integer number) { | |
| 12 |
2
1. accept : Replaced integer modulus with multiplication → KILLED 2. accept : negated conditional → KILLED |
if(number % this.number == 0) |
| 13 |
1
1. accept : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED |
return true; |
| 14 |
1
1. accept : replaced return of integer sized value with (x == 0 ? 1 : 0) → KILLED |
return false; |
| 15 | } | |
| 16 | } | |
Mutations | ||
| 12 |
1.1 2.2 |
|
| 13 |
1.1 |
|
| 14 |
1.1 |


---
layout: post
title: Java Actors and the missing FIPA
date: '2010-01-31T00:44:00.000+01:00'
author: Luca Ferrari
tags:
- research
- java
modified_time: '2010-01-31T00:44:04.113+01:00'
blogger_id: tag:blogger.com,1999:blog-1836481905487384887.post-8428042574710328237
blogger_orig_url: http://fluca1978.blogspot.com/2010/01/java-actors-and-missing-fipa.html
permalink: /:year/:month/:day/:title.html
---
~
Java Actors are becoming a well known way to build distributed, parallel, message-passing based applications. The theory behind actors is very similar to that behing agents, even if an agent more complex than an actor because have a smart part (sometimes called agenthood). However, since new Java actor frameworks are growing, I don't understand why FIPA is not coming into the field defining some kind of standards for such paradigm. It could be the best of both world, but as far as I know there is only a paper that tries to merge both.


About
Add some information
Contact
Follow on Twitter
Like on Facebook
Email me
Node JS POC
Please sign in
escort_id
visiter_id
Remember me
Generate Token


| Key | Description | ||||
|---|---|---|---|---|---|
| Donut3D Plugin | Donut3D plugin takes responsibility to paint donuts | ||||
| Donut3D | Donut3D is defined by it's center, inner and outer radius, tilt and thickness. | ||||
| Donut3D Slice | Donut3D Slice has to be registered in donut with value and theme color | ||||
| Paint | Create beautiful donut with paint renderer. | ||||
| Labels | Put labels on slice with bounded, radial, border or path labels. | ||||
| Listener | Allow donut action listening and create animation with effect, label or user intents. | ||||


|
Files | |
| file | FLAC-driver.h |
Firgelli Linear Actuator driver. | |
Defines | |
| #define | STALL_TIME_SLOW 1200 |
| #define | STALL_TIME_FAST 800 |
Functions | |
| task | _FLACcontrolTaskA () |
| task | _FLACcontrolTaskB () |
| task | _FLACcontrolTaskC () |
| void | _FLACcontrolTasks (tMotor _motor, int _highPower, long _encTarget) |
| bool | isDone (tMotor _motor) |
| void | FLACextendLA (tMotor _motor, int _highPower) |
| void | FLACextendLA (tMotor _motor, int _highPower, int distance) |
| void | FLACtretractLA (tMotor _motor, int _highPower) |
| void | FLACtretractLA (tMotor _motor, int _highPower, int distance) |
| void | FLACmoveLA (tMotor _motor, int highpower, int pos) |
| bool | isStalled (tMotor _motor) |
Variables | |
| long | _encoderTarget [3] = {0, 0, 0} |
| long | _motorHighPower [3] = {0, 0, 0} |
| bool | _stalled [3] = {false, false, false} |
Firgelli Linear Actuator driver
| #define STALL_TIME_FAST 800 |
Counter to check if motor is stalled when motor speeds are >= 50
Definition at line 39 of file FLAC-driver.h.
| #define STALL_TIME_SLOW 1200 |
Counter to check if motor is stalled when motor speeds are < 50
Definition at line 38 of file FLAC-driver.h.
| task _FLACcontrolTaskA | ( | ) |
Definition at line 63 of file FLAC-driver.h.
| task _FLACcontrolTaskB | ( | ) |
Definition at line 119 of file FLAC-driver.h.
| task _FLACcontrolTaskC | ( | ) |
Definition at line 175 of file FLAC-driver.h.
| void _FLACcontrolTasks | ( | tMotor | _motor, |
| int | _highPower, | ||
| long | _encTarget | ||
| ) |
Stop and start the motor control tasks and set their parameters.
Note: this is an internal function and should not be called directly.
| _motor | the motor to be controlled |
| _highPower | the highest speed the motor should turn at |
| _encTarget | the target the motor should move to |
Definition at line 238 of file FLAC-driver.h.
| void FLACextendLA | ( | tMotor | _motor, |
| int | _highPower | ||
| ) |
Extend the Linear Actuator fully until stalled.
| _motor | the motor to be controlled |
| _highPower | the highest speed the motor should turn at |
Definition at line 315 of file FLAC-driver.h.
| void FLACextendLA | ( | tMotor | _motor, |
| int | _highPower, | ||
| int | distance | ||
| ) |
Extend the Linear Actuator.
| _motor | the motor to be controlled |
| _highPower | the highest speed the motor should turn at |
| distance | the number of encoder ticks (0.5mm) the actuator should move |
Definition at line 327 of file FLAC-driver.h.
| void FLACmoveLA | ( | tMotor | _motor, |
| int | highpower, | ||
| int | pos | ||
| ) |
Move the Linear Actuator to an absolute position
| _motor | the motor to be controlled |
| highpower | the highest speed the motor should turn at |
| pos | the exact encoder count to move to |
Definition at line 363 of file FLAC-driver.h.
| void FLACtretractLA | ( | tMotor | _motor, |
| int | _highPower, | ||
| int | distance | ||
| ) |
Retract the Linear Actuator.
| _motor | the motor to be controlled |
| _highPower | the highest speed the motor should turn at |
| distance | the number of encoder ticks (0.5mm) the actuator should move |
Definition at line 351 of file FLAC-driver.h.
| void FLACtretractLA | ( | tMotor | _motor, |
| int | _highPower | ||
| ) |
Retract the Linear Actuator fully until stalled. It is wise to reset the encoder count for that motor afterwards.
| _motor | the motor to be controlled |
| _highPower | the highest speed the motor should turn at |
Definition at line 339 of file FLAC-driver.h.
| bool isDone | ( | tMotor | _motor ) |
Check if the motor is done with the current operation
| _motor | the motor to be checked |
Definition at line 290 of file FLAC-driver.h.
| bool isStalled | ( | tMotor | _motor ) |
Check if the motor stalled on the last operation
| _motor | the motor to be checked |
Definition at line 305 of file FLAC-driver.h.
| long _encoderTarget[3] = {0, 0, 0} |
Motor encoder targets - INTERNAL
Definition at line 41 of file FLAC-driver.h.
| long _motorHighPower[3] = {0, 0, 0} |
High Power - top speed of the motor - INTERNAL
Definition at line 42 of file FLAC-driver.h.
| bool _stalled[3] = {false, false, false} |
Are we stalling? - INTERNAL
Definition at line 43 of file FLAC-driver.h.


Septicmk txt
MEHI
hahack Mouse Embryo Heart Imagery
╯ ╰
● ●
" ^ "
About
MEHI is a python library for processing large-scale 3D spatial and temporal mouse embryo date. the paralleled version is built on Spark.
MEHI includes the basic module for image processing, like preprocessing, registration, 2-side fusion, segmentation, tracking. the project contains two implementation, a paralleled version and a serial version. the paralleled version is written against Spark's Python API(Pyspark), making use of scipy, numpy, PuLP and pandas
Requirements
- Python 2.7
- numpy 1.9+
- pandas 0.16.1+
- matplotlib 1.4+
- PyWavelet 0.2.2+
- scikit-image 0.11+
- scipy 0.15+
- pyspark 1.3.0
- Cython 0.21+
Quick Start
The paralleled version is designed to run on a cluster, but currently, I just test it on local mode. Anyway, you can get it work by following steps.
1) change the Input dir in the MEHI_global.py or in the MEHI_s_global.py
1 2 3 | import MEHI
left_pwd = 'your image dir'
right_pwd = 'your image dir'
|
2) modify the MEHI_main.py or the MEHI_s_main.py to customize your workflow
1 2 3 4 5 | L_img_stack, R_img_stack = init()
rddA, rddB = preprocess(L_img_stack, R_img_stack, 8)
rddB = registration(rddA, rddB, conf=0)
fuse_img = fusion(rddA, rddB)
segmentation(fuse_img)
|
3) start MEHI from terminal
1 | python MEHI_s_main.py
|
More Information
MEHI is broadly organized into:
- A main class with methods for initialization of Spark and control of the whole workflow.
- Classes for image processing module,like MEHI_s_fusion.
- Helper components like MEHI_s_IO, MEHI_s_common
core API:
Preprocessing:
- stripe_removal(): 去横纹
- intensity_normalization(): 亮度平衡，图像压缩
- sub_background(): 减背景，去模糊
Registation&Fusion:
- mutual_info(): 计算互信息
- q_powell(): 计算对准向量
- get_trans(): 实施对准变换
- q_fusion(): 图像融合
Segmentation:
- Threshold(): otsu阈值粗分+watershed细分
- Properties(): 计算分割块的属性(坐标,朝向,大小...)
- Clustering(): 将2D分割按距离层次聚类
- Check(): 可视化分割结果
License
BSD


If you aren't automatically redirected, please visit our new website for the latest details on the project: https://www.digitaldostoevsky.com.


About Oranga
Behind this logo and brand, there is only me: Jordan Louis.
I am a curious-minded student, passionate about Sciences, Arts and Cultures. I like to explore all kinds of media to make art, on this portfolio you can find some of my work.
I am currently working on rebuilding my social media, so I can only give you my linkedin profile: linkedin.com/in/jordan-louis/.
If you want to contact me please click here.


jQuery Plugin
{{else}} Template Tag
{{else fieldNameOrExpression}} content {{/if}}
Description: Used in association with the {{if}}...{{/if}} tag to provide alternative content based on the values of one or more expressions. The {{else}} tag can be used without a parameter, as in: {{if a}}...{{else}}...{{/if}}, or with a parameter, as in: {{if a}}...{{else b}}...{{/if}}.
-
version added: 1.4.3{{else fieldNameOrExpression}} content {{/if}}
fieldNameOrExpressionThe name of a field on the current data item, or a JavaScript function or expression to be evaluated.
This documentation topic concerns the jQuery Templates plugin (jquery-tmpl), which can be downloaded from: http://github.com/jquery/jquery-tmpl.
Note: For information about how to render templates, see .tmpl() and jQuery.tmpl().
Template Tags
Template tags such as the {{else}}
tag can be used within jQuery
templates in addition to text and HTML markup, in order to enable a number of
scenarios such as composition of templates, iteration over hierarchical data,
parameterization of template rendering, etc.
Other available tags include: ${},
{{each}}, {{html}},
{{if}}, {{tmpl}}
and {{wrap}}. User-defined
template tags can also be specified, by extending the
jQuery.tmpl.tag
map.
Using the {{else}} Template Tag without a parameter
The following example shows how to use {{if
expression}}...{{else}}...{{/if}}
to insert conditional content. In the
example different content is rendered depending on whether or not the
Languages
field of the data item is defined.
Template:

 Title: ${Name}. {{if Languages}} (Alternative languages: ${Languages}). {{else}} (Available only in the original version). {{/if}}

Data:
var movies = [ { Name: "Meet Joe Black", Languages: "French" }, { Name: "The Mighty" }, { Name: "City Hunter", Languages: "Mandarin and Cantonese" } ];
Using the {{else}} Template Tag with a parameter
The following example shows how passing a parameter to {{else
expression}}
provides the equivalent of additional 'else if'
conditional blocks. In the example different content is rendered depending on
whether the Languages
field of the data item is defined, and if
not, depending on whether the Subtitles
field of the data item is
defined.
Template:

 Title: ${Name}. {{if Languages}} (Alternative languages: ${Languages}). {{else Subtitles}} (Original language only. Subtitles in ${Subtitles}). {{else}} (Original version only, without subtitles). {{/if}}

Data:
var movies = [ { Name: "Meet Joe Black", Languages: "French", Subtitles: "English" }, { Name: "The Mighty", Subtitles: "French and Spanish" }, { Name: "The Mighty" }, { Name: "City Hunter", Languages: "Mandarin and Cantonese" } ];
Examples:
Example: Using {{if expression}}...{{else}}...{{/if}} to render content conditionally, based on the value of an expression.
<!DOCTYPE html>

<tmpl id="movieTemplate" type="text/x-jquery-tmpl">

Title: ${Name}.
{{if Languages}}
(Alternative languages: ${Languages}).
{{else}}
(Available only in the original version).
{{/if}}

</tmpl>

Demo:
Example: Using {{if expression1}}...{{else expression2}}...{{else}}...{{/if}} to render content conditionally, based on the values of different expressions.
<!DOCTYPE html>

<tmpl id="movieTemplate" type="text/x-jquery-tmpl">

Title: ${Name}.
{{if Languages}}
(Alternative languages: ${Languages}).
{{else Subtitles}}
(Original language only. Subtitles in ${Subtitles}).
{{else}}
(Original version only, without subtitles).
{{/if}}

</tmpl>


Your account email address is currently set to {{security.emailAddress}}
You can reset your password to another one by clicking the reset button. This will email you a temporary password which you will need to change when you next log in.
Your mobile number is currently set to {{security.mobileNumber}}
No mobile number has been set.
We use your mobile phone number as an extra layer of security. It can also be used to help restore access to your account.
Your account backup email address is currently set to {{security.backupEmailAddress}}
No backup email address has been set.
In the event you need to restore access to your account we can use this secondary email address to help you gain access.
To increase security on your account you can enable two factor authentication. Currently this uses the Google Authenticator app downloadable for your mobile device.


nips nips2003 nips2003-61 nips2003-61-reference knowledge-graph by maker-knowledge-mining
Source: pdf
Author: Francesco Tenore, Ralph Etienne-Cummings, M. A. Lewis
Abstract: We have constructed a second generation CPG chip capable of generating the necessary timing to control the leg of a walking machine. We demonstrate improvements over a previous chip by moving toward a significantly more versatile device. This includes a larger number of silicon neurons, more sophisticated neurons including voltage dependent charging and relative and absolute refractory periods, and enhanced programmability of neural networks. This chip builds on the basic results achieved on a previous chip and expands its versatility to get closer to a self-contained locomotion controller for walking robots. 1
[1]. C. Rasche, R. Douglas, M. Mahowald, “Characterization of a pyramidal silicon neuron,” Neuromorphic Systems: Engineering silicon from neurobiology, L. S. Smith and A. Hamilton, eds, World Scientific, 1st edition, 1998.
[2]. M. Simoni, S. DeWeerth, “Adaptation in an aVLSI model of a neuron.” IEEE Transactions on circuits and systems II: Analog and digital signal processing. 46(7):967970, 1999.
[3]. A.L. Hodgkin, A.F. Huxley. “A quantitative description of ion currents and its applications to conduction and excitation in nerve membranes,” Journal of Physiology (Lond.), 117:500-544, 1952.
[4]. C. Morris, H. Lecar, “Voltage oscillations in the barnacle giant muscle fiber,” Biophysics J., vol. 35, pp. 193-213, 1981.
[5]. Y.I. Arshavsky, I. M. Gelfand, and G. N. Orlovsky, “The cerebellum and control of rhythmic movements,” TINS, vol. 6, pp. 417-422, 1983.
[6]. A.H. Cohen, D.L. Boothe, “Sensorimotor interactions during locomotion: principles derived from biological systems,” Autonomous robots, special issue on biomorphic robots, M.A. Lewis and M.A. Arbib, (Eds). Vol. 7, pp. 225-238, 1999.
[7]. H. Forssberg, S. Grillner, S. Rossignol, “Phase dependent reflex during walking in chronic spinal cats,” Brain research, vol. 85, pp. 103-7, 1975.
[8]. M.A. Lewis, R. Etienne-Cummings, A.H. Cohen, M. Hartmann, “Toward biomorphic control using custom aVLSI chips”, Proceedings of the International conference on robotics and automation, San Francisco, CA, 2000.
[9]. M. A. Lewis, R. Etienne-Cummings, M. J. Hartmann, A. H. Cohen, Z. R. Xu, “An in silico central pattern generator: silicon oscillator, coupling, entrainment, and physical computation”, Biological Cybernetics, 88, 2, 2003, pp. 137-151.
[10]. M. Anthony Lewis and George A. Bekey (2002), Gait Adaptation in a Quadruped robot, Autonomous Robots, 12(3) 301-312.


This is how Shawn Mendes and Camila Cabello meet
- Advertisement -
In America, two of the most popular artists right now are Shawn Mendes and Camila Cabello. The duo has successful music careers and in the few times they collaborated on a song together; the song topped the Billboard charts.
Not only are they great artists but Mendes and Cabello also have been best of friends for a long time. When they partnered up on the song ‘I Know What You Did Last Summer’, their fans wished that the duo were dating.
The two have remained secretive about romantic feelings for one another but now they can’t keep their relationship a secret.
Fans are wondering how long have the two of them known each other, as well as where and how, did Shawn Mendes and Camila Cabello meet.
- Advertisement -
Cabello met Mendes while she was still in the girl group Fifth Harmony and they were touring together in 2014 on Austin Mahone’s tour.
Cabello and Mendes remember their first meeting with V Magazine.
She said Mendes was very shy during their first few meetings and Mendes said he thought Cabello was crazy.
“I remember I wanted to hang out with you, but you were always on the tour bus, just learning guitar,” Cabello had said to Mendes.
The Treat You Better singer confirmed that he had never talked to anybody on the entire tour except for Cabello. She was the only one that was willing to take the time to try to get to know him better.
“I thought you were out of your mind,” Mendes told Cabello. “I’d be on my bus where no one could see me. I’d be looking through the window and I’d see you, like flying around on a scooter and jumping and doing cartwheels. I’d be like, ‘She’s insane.’ Close the window and go to sleep.”
Rumours swirled around for years that the two were dating especially when they performed together.
Each song they sang highlighted their level of chemistry. But the duo still said they were just having a platonic relationship.
On the Fourth of July weekend this year, Camello and Mendes were spotted showing serious PDA.
When they can no longer deny the rumours, Mendes admitted they are dating and that they have been an official couple since 4 July this year.
According to ET as reported by Cheat Sheet the couple are happily together and a source said that their relationship began as a ‘summer fling’ but now they ended up falling in love.
Mendes and Cabello have been spotted wearing a black bracelet, which is a Bond Touch bracelet. When one of them misses the other, they just touch the bracelet and the other bracelet will light up.
- Advertisement -


Sign Up Here!
<<<<<<< HEAD
=======
>>>>>>> 16892b9f9c0cb50f80ef88f46a1acb9bfd4e6f13
create
Already registered?
Sign In


PLANET SICK-BOY: http://www.sick-boy.com "We Put the SIN in Cinema"
In October 1962, the United States and the Soviet Union had a staring contest that is commonly referred to as The Cuban Missile Crisis. Everyone knows the story – the Soviets put nukes in Cuba, President Kennedy furrowed his brow and orchestrated a sea blockade of the island, then the missiles were dismantled and sent back to Red soil. The event is referred to as a "crisis" because the two countries nearly wound up in a nuclear arm-wrestling match, but, thankfully, cooler heads prevailed.
The Crisis serves as the subject for Thirteen Days, the new $80-million, two-and-a-half-hour film that features Kevin Costner as John F. Kennedy's influential political advisor, Kenny O'Donnell. Like the real O'Donnell, who became an alcoholic after Kennedy was assassinated following The Crisis, Costner (For Love of the Game) sports a thick Boston accent that turns words like "Cuba" into `Q-ber.' One of the members of `The Irish Mafia' that rode Kennedy's coattails to Washington, O'Donnell had a loving wife (played by Remember the Titans' Lucinda Jenney) and five good-looking kids – a point Days doesn't let you forget.
Using a generous amount of stock footage and black-and-white clips (which makes Days' director Roger Donaldson look like a third-rate Oliver Stone), the film does a decent job recreating the tension that ran through the White House when surveillance photos revealed the delivery of the Russian nukes to Cuba. The missiles, which wouldn't be operable for a couple of weeks, would be capable of striking any target in the continental United States.
President Kennedy (Bruce Greenwood, Rules of Engagement), his brother and the U.S. Attorney General Bobby Kennedy (Steven Culp), and a gaggle of others had to decide how to handle the situation. Too much force would cause the Soviets to invade Berlin, and too little could lead to a decisive Russian first strike. The decision boiled down to a military strike and Cuban invasion, or a blockade that would prevent an incoming fleet of ships from delivering more weapons to the tiny island.
This debate grows incredibly tiresome during the film, although, surprisingly, it only consumes the first half of Days. Most people think The Crisis ended when the Russians blinked and turned their ships around, but recently declassified information gives Days enough content to stretch itself out for another 75 minutes. Since this part of the story isn't as well known, I'll leave out the gritty details. It's interesting and all, but it didn't need to be anywhere near this long.
Costner, who also produced the film (which may explain the ungodly running time), does an admirable job with his accent, although his role doesn't really offer much else to get excited about. Greenwood's JFK looks eerily like a dark-haired David Caruso and spends almost all of his time gritting his teeth and staring out the windows of the White House (watching for Marilyn's car, no doubt). Culp, who played Bobby Kennedy in HBO's Norma Jean & Marilyn, sounds just like Richie Cunningham, while Dylan Baker (The Cell) turns in another strong performance as Defense Secretary Robert McNamara.
Director Donaldson (Dante's Peak), a coworker with Costner in 1987's No Way Out, does a horrible job of keeping the film interesting. Everybody knows how the first half of the film is going to shake out, and everybody also knows how it's going to end. There is no reason Donaldson needed to keep Days this long, other than making the film's length seem more Oscarworthy. His continual use of nuclear weapon detonation throughout the film (as a `what if' scenario) and the inclusion of O'Donnell's family life is clumsy and calculated.
Days was written by David Self (The Haunting), who based his script on a book called `The Kennedy Tapes - Inside the White House During the Cuban Missile Crisis," which was written by Ernest R. May and Philip D. Zelikow. There are a bunch of scenes in the film that are supposed to be dramatic but end up being corny (one even features Chip Esten from the comedy improv television show Whose Line is it Anyway?). And Days uses the term `rules of engagement' about a dozen times, so it almost seems like the script is rubbing the failure of Greenwood's last project in his face.
2:25 – PG-13 for brief strong language
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


This is an online Sudoku puzzle solver for 9 x 9 grids.
Start by filling in the grid with the initial numbers, hit "Solve" and Voilà! The solution to your puzzle will be automatically generated.
Each number should only appear once in every column, row and square.


Use, modification and distribution are subject to the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt )
Copyright © $year Paul A. Bristow
Doxygen Documentation generated by
$doxygenversion, Revised at $datetime


Jays sign P Cole to minor-league deal
by TSN.ca StaffThe Toronto Blue Jays have signed a free-agent pitcher named Cole.
No, not that one.
The team has agreed to a minor-league deal with right-handed reliever A.J. Cole, as first reported by Robert Murray.
The 31-year-old native of Winter Springs, FL has made a combined 79 MLB appearances over five seasons with the Washington Nationals, New York Yankees and Cleveland Indians.
He appeared in 25 games a season ago with the Indians, going 3-1 with a 3.81 earned run average and a WHIP of 1.500 over 26.0 innings pitched.
Cole has also been employed as a starter, starting eight games in both 2016 and 2017.


--- layout: essay type: essay title: UI Efficiency date: 2016-10-06 labels: - Web Development - UI Frameworks - Semantic UI ---
The value that I can see in learning a UI Framework is that it allows you to be more efficient with your time and it can also make your code easier to read. In the beginning stages of learning a UI Framework, like Semantic UI, it can be quite difficult to grasp exactly how to use the many classes available to you. However, once you get into the rhythym of learning the classes, it becomes very easy to implement it into your own code. There are also some features of UI Frameworks that if you tried to replicate it by just using HTML and CSS it would take you a long time.
One of the cool things about Semantic UI is that once you use a particular class in your code, you can now use that snippet of code for many different projects. When coding different websites, I found that the same Semantic UI classes could be used for different purposes. Websties are also very similar to eachother. Every website usually has a navigation bar at the top, a background image, and a footer at the bottom of the page displaying additional information. To use snippets of Semantic UI code, you simply copy it from one project to the next and change the values to display the correct information. Utilizing UI Frameworks can also decrease the amount of smaller classes that you would have to code if you were using just CSS.
I was introduced to Semantic UI in 2016. At first I was somewhat skeptical about learning how to use Semantic because I kept thinking to myself "I don't want to do this". But that was the wrong mindset. Eventually I had to sit myself down and try to understand how Semantic UI works and how to use the classes. After a long time of repeating Semantic UI coding exercises I have a decent understanding of how to use classes like 'grid', 'topmenu', and 'container'. And after learning how to use these classes, I can not see the bigger picture of where I can apply them to. After replicating other websites using just Semantic UI, HTML, and CSS, I actually feel a little more confident that I might be able to one day create a really cool website of my own.


-
-
-
-
Serialized Fields
-
endButton
JButton endButton
The UI's exit button.
-
goButton
JButton goButton
The UI's start button.
-
helpButton
JButton helpButton
The UI's help button.
-
imageDirectorySelector
de.aikiit.fotorenamer.gui.ImageDirectorySelector imageDirectorySelector
Component that selects the directory to work on.
-
infoButton
JButton infoButton
The UI's info/versioning button.
-
revertButton
JButton revertButton
The UI's revert renaming button.
-
-
Serialized Fields
-
currentState
AtomicInteger currentState
Current success rate/counter.
-
delayInUI
int delayInUI
Amount of seconds the UI sleeps in order to give a
user a chance to read the screen,
this value is calculated dynamically
depending on the amount of pictures to be processed.
-
progressBar
JProgressBar progressBar
The visual progress bar.
-
textInfo
JLabel textInfo
Text field to show current file or other information during run.


ntptime - read kernel time variables
Synopsis
ntptime [ -chr ] [ -e est_error ] [ -f frequency ] [
-m max_error ] [ -o offset ] [ -s status ] [ -t time_constant
]
Description
This program is useful only with special kernels described in the A
Kernel Model for Precision Timekeeping page. It reads and displays
time-related kernel variables using the ntp_gettime() system call.
A similar display can be obtained using the ntpdc program and
kerninfo command.
Options
-
-c
-
Display the execution time of ntptime itself.
-
-e est_error
-
Specify estimated error, in microseconds.
-
-f frequency
-
Specify frequency offset, in parts per million.
-
-h
-
Display times in Unix timeval format. Default is NTP format.
-
-l
-
Specify the leap bits as a code from 0 to 3.
-
-m max_error
-
Display help information.
-
-o offset
-
Specify clock offset, in microseconds.
-
-r
-
Display Unix and NTP times in raw format.
-
-s status
-
Specify clock status. Better know what you are doing.
-
-t time_constant
-
Specify time constant, an integer in the range 0-4.
David L. Mills (mills@udel.edu)


SMARTCOSMOS "FLOWS" – END USER LICENSE AGREEMENT (EULA)
I. OBJECT OF EULA, CHANGES TO EULA
| 1. | OBJECT OF EULA |
| 1.1 | This End User License Agreement ("EULA") consists of the terms and conditions governing the access to and use of the cloud platform SMARTCOSMOS "Flows" ("Flows") provided by SMARTRAC TECHNOLOGY Fletcher Inc., 267 Cane Creek Road, Fletcher, NC 28732, USA ("SMARTRAC") by a registered user ("Licensee"). |
| 1.2 | This EULA sets out the terms applicable for the use of Flows by Licensee and the rights and obligations of SMARTRAC and Licensee (SMARTRAC and Licensee together as "Parties" or individually as "Party"). |
| 1.3 | SMARTRAC does not offer support or maintenance for Flows under this EULA. |
| 1.4 | Use of Flows requires the registration of an user account and conclusion of a separate agreement with Amazon Web Services, Inc. ("Amazon") for the use of Amazon's web services. Those services are neither part of this EULA nor does SMARTRAC has any responsibility for them. They will be solely governed by Amazon's terms and remain in the sole responsibility of Amazon and Licensee. |
| 1.5 | In case of a conflict between this EULA and an Enterprise Agreement between the Parties ("Enterprise Agreement") governing inter alia the use of Flows and the provisions of this EULA, the provisions of the Enterprise Agreement shall prevail. |
| 2. | CHANGES TO EULA |
| 2.1 | This EULA is a binding agreement between Licensee and SMARTRAC. SMARTRAC reserves the right to modify this EULA at any time and without prior notice by publishing the most current version of the EULA on the following website: http://licensing.smartcosmos.net/flows/. |
| 2.2 | Licensee's use of Flows is governed by the version of the EULA in effect on the date Flows is accessed by Licensee. |
II. RIGHTS OF USE, TERMINATION OF USE
| 3. | RIGHTS OF USE |
| 3.1 | Flows is protected under copyright law and other statutory provisions. Licensee acknowledges that SMARTRAC owns all right, title and interest in and to Flows and all intellectual property rights related thereto. Flows is confidential and proprietary information of SMARTRAC. SMARTRAC does not grant to Licensee any other rights, either express or implied, than those explicitly specified in this EULA. |
| 3.2 | Subject to the terms and conditions herein, SMARTRAC grants to Licensee a revocable, non-exclusive, non-transferable, worldwide right to use Flows for its own internal business purposes as well as for the customers of Licensee's products that incorporate SMARTRAC's technology provided that this use complies with the provisions of these EULA and applicable special terms of use as well as with applicable statutory provisions, solely as integrated with Amazon AWS ("AWS"), beginning on the date when Licensee first launches Flows. Licensee shall be entitled to use the interfaces provided by SMARTRAC and incorporated in Flows in order to use Flows and data maintained in Flows with its own software and to process this data with such software subject to the provisions of this EULA. Licensee shall not use Flows in areas and for purposes which are critical in respect of life, health or safety, including but not limited to the use in or for atomic power plants, aircrafts and aviation industry, trains and public transportation, hospitals and healthcare industry and in the military sector. |
| 3.3 | Licensee may use Flows within its company for and by its employees as well as by and for Licensee's customers in connection with Licensee's products that incorporate SMARTRAC's technology ("Named Users") provided that Licensee has agreed upon a limitation of SMARTRAC`s liability with the Named Users in accordance with the limitations of liability as set out in this EULA. These Named User accounts shall be deemed user accounts of Licensee and Licensee shall be fully liable for all Named Users including but not limited to Licensee's customers. |
| 3.4 | In case of a termination of this EULA – regardless of the reason – the right of use set forth above will lapse. |
| 3.5 | Except as expressly permitted in this EULA, Licensee shall not (and shall not allow any third party to) |
| 3.5.1 |
decompile, disassemble, or otherwise reverse engineer Flows (except to the extent expressly permitted under
applicable mandatory law); or
|
| 4. | TERMINATION OF USE |
| 4.1 | This EULA is concluded for an indefinite term. SMARTRAC and Licensee may terminate this EULA for any reason without notice. |
| 4.2 | The Parties' right of termination for cause shall remain unaffected. |
III. ROYALTY; LICENSEE OBLIGATIONS
| 5. | FEES |
| 5.1 | Use of Flows under this EULA shall be remunerated according to the fee model agreed at the registration. |
| 5.2 | Licensee shall pay to Amazon (or to such entity designated by Amazon or SMARTRAC) license fees for the use of Flows on the terms agreed with SMARTRAC. |
| 5.3 | Licensee understands that for the use of the underlying Amazon web services further costs might entail and that those costs and services are not covered by this EULA. Licensee understands that those costs might also entail in case it has concluded an Enterprise Agreement. |
| 6. | NO ILLEGAL, HARMFUL OR OFFENSIVE USE | ||||||||||||||||||||
| 6.1 |
Licensee shall
|
| 7. | DATA PROTECTION |
| All data provided by SMARTRAC via Flows are non-personal data. |
IV. WARRANTY; INDEMNITIES; LIABILITY
| 8. | SMARTRAC'S WARRANTIES, INDEMNITIES OR LIABILITIES |
| 8.1 | SMARTRAC shall neither be held liable for third party content including, but not limited to code develop, implemented or processed by licensee other than the source code of Flows, nor shall it be liable for any damages or other failures resulting from any defects of Licensee's software or hardware or their incompatibility with Flows. SMARTRAC shall also neither be liable for any damages or other failures resulting from the fact that the Internet or Amazon's web services were not available or malfunctioning nor for any damages or failures in context of the use of Flows in an area in which Flows shall not be used. In this respect the Licensee is aware of the fact that Flows shall not be used in areas and for purposes which are critical in respect of life, health or safety, including but not limited to the use in or for atomic power plants, aircrafts and aviation industry, trains and public transportation, hospitals and healthcare industry and in the military sector. |
| 8.2 | The use of Flows requires the use of special technical systems such as Amazon's web services, end user devices, software programs, transmission networks, telecommunications and other services provided by third parties, all of which may entail further costs. SMARTRAC does not provide such end user devices, software programs, communication channels, telecommunications services or other services and therefore will not assume any liability for such services provided by third parties. |
| 8.3 | SMARTRAC shall not be obliged to provide any particular service level or support services. SMARTRAC shall be entitled to cease providing Flows at any time without notice. |
| 8.4 | FLOWS IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF CONDITION, UNINTERRUPTED USE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. |
| 8.5 | NOTWITHSTANDING THE FOREGOING, TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL SMARTRAC OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES, WHATSOEVER, WHETHER DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER ARISING UNDER CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY, BREACH OF WARRANTY, MISREPRESENTATION, OR OTHERWISE, INCLUDING BUT NOT LIMITED TO DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, CLAIMS OF THIRD PARTIES, OR OTHER PECUNIARY LOSS, ARISING OUT OF THE USE OF OR INABILITY TO USE FLOWS, OR ARISING OUT OF THIS AGREEMENT, EVEN IF SMARTRAC OR ITS REPRESENTATIVES HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| 9. | LICENSEE'S INDEMNIFICATION OBLIGATIONS |
| Licensee shall defend, indemnify and hold harmless SMARTRAC against any claims, actions, proceedings, losses, damages, expenses and costs (including but not limited to court costs and legal fees) arising out of or in connection with Licensee's use of Flows in particular any claims of Named Users or any other third parties. |
V. MISCELLANEOUS
| 10. | CONFIDENTIALITY |
| Licensee shall not be entitled to make public any performance test results or any other test results comparing Flows on AWS with other databases or across hardware platforms make public statements in respect of Flows' performance without the prior written consent of SMARTRAC. |
| 11. | NO ASSIGNMENT |
| Licensee shall not be entitled to assign any rights or claims under this EULA without the prior written consent of SMARTRAC. |
| 12. | NO REPRESENTATION |
| This EULA does not authorize either of the Parties to make any legally binding declarations on behalf of both Parties together, or on behalf of the respective other Party, nor does it authorize them to place the respective other Party under any obligation or to represent it in any other way. |
| 13. | NO SET-OFF |
| Except as otherwise provided in this EULA, no Party shall be entitled to set-off any claims it may have under this EULA against any claims any other Party may have under this EULA unless the rights or claims of the Party claiming a right of set-off are not disputed or have been confirmed by final decision of a competent court or arbitral tribunal or – if claimed in legal proceedings – a decision on the rights and claims of the Party can be taken in the last oral hearing. |
| 14. | NO WAIVER |
| The failure of SMARTRAC to exercise or enforce any rights or provisions of this EULA will not constitute a waiver of such rights or provisions. |
| 15. | FOREIGN TRADE REGULATIONS |
| Flows, documentation and other materials are subject to the export control laws of various countries, including but not limited to the laws of Germany and the United States. Licensee shall comply with all applicable export and import laws, regulations, and associated embargo and sanction regulations, including prohibitions on export for certain end uses or certain end users. |
| 16. | CHOICE OF LAW AND JURISDICTION |
| This Agreement shall be governed, construed, and enforced in accordance with the laws of the State of New York, without regard to its conflict of laws rules. The UN Convention on Contracts for the International Sale of Goods (CISG) shall not apply. Exclusive place of jurisdiction for all disputes regarding rights and duties under this EULA, including its validity shall be New York City, New York. |
| 17. | SEVERABILITY |
| Should one or more provisions of this EULA be or become invalid or unenforceable, this shall not affect the validity and enforceability of the remaining provisions of this EULA. The same shall apply if the EULA does not contain an essential provision. In lieu of the invalid or unenforceable provision, or to fill a contractual lacuna, such valid and enforceable provision shall apply which reflects as closely as possible the commercial intention of the Parties as regards the invalid, unenforceable or missing provision. |


DOMDocument::schemaValidate
(PHP 5, PHP 7)
DOMDocument::schemaValidate — Validates a document based on a schema
说明
public bool DOMDocument::schemaValidate ( string $filename [, int $flags ] )
Validates a document based on the given schema file.
参数
filename
The path to the schema.
flags
A bitmask of Libxml schema validation flags. Currently the only supported
value is LIBXML_SCHEMA_CREATE. Available since PHP 5.5.2 and Libxml 2.6.14.
返回值
成功时返回 TRUE，或者在失败时返回 FALSE。
更新日志
版本 说明
5.5.2 Added the flags parameter
参见
• DOMDocument::schemaValidateSource() - Validates a document based on a
schema
• DOMDocument::relaxNGValidate() - Performs relaxNG validation on the
document
• DOMDocument::relaxNGValidateSource() - Performs relaxNG validation on the
document
• DOMDocument::validate() - Validates the document based on its DTD
User Contributed Notes 8 notes
===============================================================================
For more detailed feedback from DOMDocument::schemaValidate, disable libxml
errors and fetch error information yourself. See http://php.net/manual/en/
ref.libxml.php for more info.
example.xml
This is an example.
Error condition.
example.xsd
\n";
switch ($error->level) {
case LIBXML_ERR_WARNING:
$return .= "Warning $error->code: ";
break;
case LIBXML_ERR_ERROR:
$return .= "Error $error->code: ";
break;
case LIBXML_ERR_FATAL:
$return .= "Fatal Error $error->code: ";
break;
}
$return .= trim($error->message);
if ($error->file) {
$return .= " in $error->file";
}
$return .= " on line $error->line\n";
return $return;
}
function libxml_display_errors() {
$errors = libxml_get_errors();
foreach ($errors as $error) {
print libxml_display_error($error);
}
libxml_clear_errors();
}
// Enable user error handling
libxml_use_internal_errors(true);
$xml = new DOMDocument();
$xml->load('example.xml');
if (!$xml->schemaValidate('example.xsd')) {
print 'DOMDocument::schemaValidate() Generated Errors!';
libxml_display_errors();
}
?>
Old error message:
Warning: DOMDocument::schemaValidate() [function.schemaValidate]: Element
'child_integer': 'Error condition.' is not a valid value of the atomic type
'xs:integer'. in example.php on line 40
New error message:
DOMDocument::schemaValidate() Generated Errors!
Error 1824: Element 'child_integer': 'Error condition.' is not a valid value of
the atomic type 'xs:integer'. in example.xml on line 4
===============================================================================
I had a tricky issue using this method, i thought it was bug but i realized i
misundestood something about namespaces.
When you want to use a schema to describe an xml document, you basically put
the default namespace to a personnal namespace (and you refer to this namespace
in the targetNamespace attribute of your schema).
blabla
blabla
That xmlns attribute specifies a "default namespace" and means that the root
element and its children are in this namespace.
What i misunderstood is that, there's no way with the DOM api to specify a
"default namespace" for each children of the root element.
Thus you may need to use createElementNS() and createAttributeNS() methods for
each created element or attribute in the document specifying the URI of your
namespace each time ("http://my.uri.net").
This only applies if you want to validate a document built with the API, not
with a document loaded from an xml file or stream.
===============================================================================
A note for people trying to validate complex schemas with PHP. It seems that
libxml will not automatically try to import referenced schemas, but simply skip
the validation if the schemas were not explicitly imported.
In our example we tried to validate an XML file against a schema with the
namespace "xttp://automotive-his.de/200706/rif" that contains a reference to
the namespace "xttp://automotive-his.de/200706/rif-xhtml":
which basically says that an xhtml-content element can contain any element from
the rif-xhtml namespace.
However since libxml does not know where to find the schema file, it will stop
the validation if the elements from the referenced namespace, passing also
document with invalid xhtml content as valid.
The solution was to create a combined schema, which contains import statements
for all files matching the referenced schemas:
Note that the schemaLocation tells the validator, where to find the files for
the corresponding namespaces. When validating the XML document against this
combined schema, libxml validated correctly the content inside the
XHTML-Content.
Hope this helps someone out there.
===============================================================================
If write any error detector from xml file using schema and libxml function
watch out on some unreseloved bug
https://bugs.php.net/bug.php?id=54138
===============================================================================
Initial situation:
- Debian Lenny
- Apache 2 with PHP 5.2.6
- libxml 2.6.32
Problem: While trying to validate a manually created (!) DOMDocument against an
existing XML Schema, I ran into a warning like the one below. Validation fails,
even though the document IS valid and the command line tool xmllint confirms
this (even with libxml 2.6.32, so this must be a problem with DOM). The
validation works fine with libxml 2.7.3.
Warning: DOMDocument::schemaValidate() [domdocument.schemavalidate]: Element
'YourRootElementName': No matching global declaration available for the
validation root. in /var/www/YourFile.php on line X
Solution: As libxml 2.7.3 is not provided for Debian Lenny yet and this problem
seems to be caused by DOM (s.o.), I currently use the following workaround on
my machines. DOM obviously has some namespace problems with documents, that
have been created manually (i.e. they were not loaded from a file).
So my workaround is saving the DOMDocument temporarily, re-loading it and then
validating the temporary DOMDocument. Strangely enough the validation of the
same document (= same content) now works. Sure, creating a temporary file is
not a nice solution, but unless this bug is fixed, this workaround should do
just fine.
dom->schemaValidate('schema.xsd');
}
// Workaround for prior libxml versions, e.g. 2.6.32.
public function isValid()
{
// Create temporary file and save manually created DOMDocument.
$tempFile = time() . '-' . rand() . '-document.tmp';
$this->dom->save($tempFile);
// Create temporary DOMDocument and re-load content from file.
$tempDom = new DOMDocument();
$tempDom->load($tempFile);
// Delete temporary file.
if (is_file($tempFile))
{
unlink($tempFile);
}
// Validate temporary DOMDocument.
return $tempDom->schemaValidate('schema.xsd');
}
?>
===============================================================================
In his previous comment, Mike A wrote about validating documents using an XSD.
However, you can validate without one. In my case, I needed to ensure that the
content entered was just valid XML or not, and I couldn't find an XSD to
support that. So I wrote this:
public static function validate($xml)
{
libxml_use_internal_errors(true);
$doc = new DOMDocument('1.0', 'utf-8');
$doc->loadXML($xml);
$errors = libxml_get_errors();
if (empty($errors))
{
return true;
}
$error = $errors[0];
if ($error->level < 3)
{
return true;
}
$lines = explode("\r", $xml);
$line = $lines[($error->line)-1];
$message = $error->message.' at line '.$error->line.':
'.htmlentities
($line);
return $message;
}
The catch here is that the function only checks for the first error is
LIBXML_ERR_FATAL, which would break XSL/XML compilation.
In my experience, the errors are returned by libxml_get_errors in descending
severity, so this may be an OK thing to do.
===============================================================================
I've seen that trying to validate an XML with a schema containing keys, they
were ignored, and the XML was considered still valid altough it contained
duplicate keys.
===============================================================================
In older versions of PHP5 this function might cause error messages when dealing
with namespaces. I had problems with PHP 5.2.14 which comes with libXML
V2.6.16. After switching to PHP 5.3.5 with libXML V2.7.7 I no longer had
problems. Took me only about 30 hrs to figure that one out.


object
Input
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit


(Almost) Static Background
This section has a background that moves slightly slower than the user scrolls. This is achieved by changing the top position of the background for every pixel the page is scrolled.
This section has a background that moves slightly slower than the user scrolls. This is achieved by changing the top position of the background for every pixel the page is scrolled.
The multiple backgrounds applied to this section are moved in a similar way to the first section -- every time the user scrolls down the page by a pixel, the positions of the backgrounds are changed.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nibh erat, sagittis sit amet congue at, aliquam eu libero. Integer molestie, turpis vel ultrices facilisis, nisi mauris sollicitudin mauris, volutpat elementum enim urna eget odio. Donec egestas aliquet facilisis. Nunc eu nunc eget neque ornare fringilla. Nam vel sodales lectus. Nulla in pellentesque eros. Donec ultricies, enim vitae varius cursus, risus mauris iaculis neque, euismod sollicitudin metus erat vitae sapien. Sed pulvinar.
The user gets a slap! Actually, all that jQuery does is moves the backgrounds relative to the position of the scrollbar. Without it, the backgrounds simply stay put and the user would never know they are missing out on the awesome! CSS2 does a good enough job to still make the effect look cool.
Check out my new plugin Sequence.js for parallax effects and a whole lot more!
This demo is based on the Nikebetterworld.com website.
This plugin makes use of some scripts and images made by others:


Welcome! We are conducting a survey of recreation activities in the coastal and ocean areas of New York, New Jersey, Delaware, Maryland, and Virginia. This survey is being conducted to help inform ocean planning in the U.S. Mid-Atlantic region. We want to hear from you even if you have not visited the coast recently.
Please remember that all your individual information will be kept private and that survey results will be presented in summarized form. If you need to stop and come back to the survey, simply use the survey link sent to your email--all your information will automatically be saved. If you'd like to go back to any survey question, please use the browser back button.


|
© Campus Election Engagement Project 2015. All rights reserved.
West Coast Office: 3232 41st Ave SW Seattle, WA 98116 East Coast Office: 615 N. Pearl Street Granville, OH 43023 For more information and resources contact us here. |
Support CEEPWe're raising funds for our 2016 work and beyond. Please visit our DONATE page to contribute — every dollar helps!
|


Home
Analysis Help
Academic Acheivement
School Saftey
Special Education
Project Contributors
Andrew Walters
Ben Attix
Jennifer Philippou
Prior Iterations
Other Berkeley Projects
Philadelphia School District Site


dblink_send_query
sends a query to be executed
asynchronously, that is, without immediately waiting for the result.
There must not be an async query already in progress on the
connection.
After successfully dispatching an async query, completion status
can be checked with dblink_is_busy
, and the results
are ultimately collected with dblink_get_result
.
It is also possible to attempt to cancel an active async query
using dblink_cancel_query
.


Ownership
-
Data can have a single owner, who is responsible for the data, including cleanup.
-
Ownership can be passed around, i.e. moved
-
Temporary access can be given with borrows
Ownership
let x = 1; // "copyable" data, no need to be owned
let y = x; // y is a copy of x
println!("x: {} y: {}", x, y); // both accessible
let a = vec![1, 2, 3]; // "owned" data, due to indirection involved
let b = a; // "moved" into b
println!("{:?}" , b); // Allowed, b owns the vector now
println!("{:?}" , a); // Not allowed
Ownership
fn do_stuff(x: Vec<u8>) {
// do stuff
}
let y = vec![1,2,3];
do_stuff(y);
// y cannot be used here!
Ownership
fn gimme_vec() -> Vec<u8> {
let mut x = vec![1,2,3];
x.push(4);
return x; // "moved out" of the function
// now destructors will not run at the end of this function
}
// ...
{
let y = gimme_vec();
// destructors will run here, if we don't pass it somewhere else
}
Borrowing
-
Ownership is not too useful on its own because we can't share data
-
Borrowing lets us temporarily give access of the object
-
When a borrow is active, nobody can mutate the object. When a mutable borrow is active, nobody but the mutable borrower can even read from the object
-
All of this is checked at compile time. The concept of "borrowing" has no trace at run time.
Borrowing
fn do_stuff(x: &Vec) {
// do stuff
}
let y = vec![1,2,3];
do_stuff(&y); // does not move y
do_stuff(&y);
do_stuff(&y);
println!("{:?}", y);
Borrowing
let mut x = vec![1,2,3];
{
let y = &x; // borrow the vector
// x.push(1); // Not allowed, x is currently borrowed and cannot be mutated
// y.push(1); // Not allowed, y is not a mutable reference
}
x.push(1); // The borrow was "returned", we can mutate now
let mut x = vec![1,2,3];
{
let y = &mut x; // the vector was borrowed, mutably
// x.push(1); // Still not allowed, x is currently borrowed and cannot be mutated
// println!("x is {}", x) // also not allowed, y is mutating this
y.push(1); // Allowed, y is a mutable reference
}
x.push(1) // The borrow was "returned", we can mutate now
If, loops, functions
if a > 1 {
println!("{:?}", a);
}
let mut i: i32 = 0;
loop {
if i > 10 { break; }
i += 1;
println!("{:?}", i);
}
fn multiply(x: i32, y: i32) -> i32 {
return x*y // The return statement is unnecessary, this will be explained later
}
Structs
struct Point {
x: u32,
y: u32
}
let my_point = Point {x: 1, y: 1};
Enums
enum Shape {
Circle(Point, u32),
Rectangle(Point, Point)
}
// Real world example
enum Option<T> {
Some(T),
None
}
let origin = Point {x: 0, y: 0};
let circ = Shape::Circle(origin, 10);
Pattern matching
let number = 5;
let size = match number {
0 => "none",
2 | 3 => "tiny",
4...7 => "small",
8...20 => "medium",
_ => "large"
};
// Multiple statements in a match work!
match number {
2 | 8 | 9 => {
let mut c = 1;
c += number;
println!("The incremented number is {}", c);
},
_ => println!("We don't have the ability to increment this number, sorry")
}
Pattern matching
let perimeter = match shape {
Circle(_, r) => 2*pi*r,
Rectangle(p1, p2) => 2*abs(p2.x - p1.x) + 2*abs(p2.y - p1.y)
}
// But wait, we can match on structs too!
let perimeter = match shape {
Circle(_, r) => 2*pi*r,
Rectangle(Point {x: x1, y: y1}, Point {x: x2, y: y2}) =>
2*abs(x2 - x1) + 2*abs(y2 - y1)
}
// Patterns nest pretty well
match point {
Point {x: 2...6, y: -1...5} => println!("I like this point"),
_ => println!("I do not like this point")
}
Implementations
impl Point {
fn distance(&self) -> f32 { // Called as point.distance()
((self.x*self.x + self.y*self.y) as f32).sqrt()
}
fn random() -> Point { // Called as Point::random()
Point {
x: 4, // Chosen by fair dice roll
y: 4 // Guaranteed to be random
}
}
}
Traits
// Haskell's type classes, anyone?
trait Pointy {
fn poke(&self, at: &str);
// One can also give full function bodies here
}
impl Pointy for Point {
fn poke(&self, at: &str) {
println!("Poked {}", at);
}
}
// Takes any Pointy objects and pokes with it
fn poke_forever<T: Pointy>(pointy: T, at: &str) {
loop {
pointy.poke(at)
}
}
Unsafe
extern crate core;
use std::{mem, ptr};
fn main() {
let y = *dangle() + 1;
// Segfault.
}
fn dangle() -> Box<u32> {
unsafe {
// Null pointers!
let mut p: *mut int = ptr::null_mut();
let b = Box::new(1u32); // Heap memory, will be deallocated at the end of this function
ptr::write(p, *b);
mem::transmute(p) // Converts to box and .. uh oh .. returns!
}
}
More features
- Thread safety (data races)
- Powerful zero cost abstractions
- Error handling via result types
- Associated types and constants
- Closures
- Plugin ecosystem (custom syntax extensions and lints)
- Interopability with C via FFI
Thread safety
use std::sync::mpsc::*;
use std::thread::spawn;
let (tx, rx) = channel();
spawn(move || {
tx.send(1); // works!
});
let x = rx.recv();
use std::sync::mpsc::*;
use std::thread::spawn;
let (tx, rx) = channel();
spawn(move || {
let x = Box::new(1);
tx.send(x); // works!
});
let x = rx.recv();
use std::sync::mpsc::*;
use std::thread::spawn;
let (tx, rx) = channel();
spawn(move || {
let x = Box::new(1);
tx.send(&x); // nope
});
let x = rx.recv();
use std::sync::mpsc::*;
use std::thread::spawn;
use std::rc::Rc;
let (tx, rx) = channel();
spawn(move || {
let x = Rc::new(1);
// refcounted pointer
// not threadsafe
tx.send(x.clone()); // nope
});
let x = rx.recv();
test.rs:18:1: 18:6 error: the trait `core::marker::Send` is not implemented for the type `alloc::rc::Rc<i32>` [E0277]
test.rs:18 spawn(move || {
^~~~~
test.rs:18:1: 18:6 note: `alloc::rc::Rc<i32>` cannot be sent between threads safely
test.rs:18 spawn(move || {


Text: {{ text[i] }}
{% set baseUrl = 'static/icons'%}
Showing results for {{ new_query }}
{% if new_query != old_query %}Instead of {{ old_query }}
Summary
{{ summaries[i] }}


{{ define "banner-h1" }}Story Lane{{ end }} {{ define "banner-h2" }}A stroll through your neighborhood{{ end }} {{ define "banner-img" }}{{ call .URL "/img/banners/programs-story-lane.jpg" }}{{ end }} {{ define "banner-img-mobile" }}{{ call .URL "/img/banners/programs-story-lane-mobile.jpg" }}{{ end }} {{ define "banner-class" }}text-white{{ end }} {{ define "banner" }} {{ template "banner-tmpl" . }} {{ end }} {{ block "content" . }}
Do you know if anyone in your neighborhood has cancer? Do you even know your neighbors? Mei/Co. dance wants to help you get to know your neighbors and serve those around you who are walking through a battle with cancer, have overcome the battle, or have lost a loved one to the fight. It is a true tragedy that our very neighbors may need our help and we do not even know their names! Through fellowship, food, and the art of dance, the mission of Story Lane is to unite neighborhoods to fight this terrible disease together.
Story Lane is a unique dance performance that travels from one home to the next to tell the story of a life affected by cancer. The performance begins in the host house (or yard, or patio, etc) and travels to 2-3 other homes to complete the journey and tell the story. The performance is then followed up by a reception for neighbors to get to know each other and hopefully find out how they can best serve their neighbor affected by cancer.
First, we need a host. If you or someone you know in your neighborhood has cancer, you are the perfect host! Simply fill out the google form below and we will take it from there!
From that point, we will set up an interview with the Guest of Honor and then begin building a new dance work to tell their unique journey.
Next, we get to know your neighbors with you and find 2-3 other people who would be willing to offer their lawn, garage, living room, backyard, etc, as a location for the performance.
After that, we walk through your neighborhood with you and invite your neighbors to the show!
Finally, we come and perform your unique version of Story Lane in your neighborhood and help your neighbors understand how they can best support you during your time of need.
 We look forward to telling your story and strolling through your neighborhood with you.