Description
A user may wish to send a file to another user. The other user has the option of acception, rejecting, or ignoring the users request. Smack provides a simple interface in order to enable the user to easily send a file. Usage
In order to send a file you must first construct an instance of the
FileTransferManager
class. This class has one constructor with one parameter which is your Connection. In order to instantiate the manager you should call
new FileTransferManager(connection)
Once you have your
FileTransferManager
you will need to create an outgoing file transfer to send a file. The method to use on the
FileTransferManager
is the
createOutgoingFileTransfer(userID)
method. The userID you provide to this method is the fully-qualified jabber ID of the user you wish to send the file to. A fully-qualified jabber ID consists of a node, a domain, and a resource, the user must be connected to the resource in order to be able to recieve the file transfer.
Now that you have your
OutgoingFileTransfer
instance you will want to send the file. The method to send a file is
sendFile(file, description)
. The file you provide to this method should be a readable file on the local file system, and the description is a short description of the file to help the user decide whether or not they would like to recieve the file.
For information on monitoring the progress of a file transfer see the monitoring progress section of this document.
Other means to send a file are also provided as part of the
OutgoingFileTransfer
. Please consult the Javadoc for more information. Examples
In this example we can see how to send a file:
// Create the file transfer manager
FileTransferManager manager = new FileTransferManager(connection);
// Create the outgoing file transfer
OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("romeo@montague.net");
// Send the file
transfer.sendFile(new File("shakespeare_complete_works.txt"), "You won't believe this!");
Description
The user may wish to recieve files from another user. The process of recieving a file is event driven, new file transfer requests are recieved from other users via a listener registered with the file transfer manager.
Usage
In order to recieve a file you must first construct an instance of the
FileTransferManager
class. This class has one constructor with one parameter which is your Connection. In order to instantiate the manager you should call
new FileTransferManager(connection)
Once you have your
FileTransferManager
you will need to register a listener with it. The FileTransferListner interface has one method,
fileTransferRequest(request)
. When a request is recieved through this method, you can either accept or reject the request. To help you make your decision there are several methods in the
FileTransferRequest
class that return information about the transfer request.
To accept the file transfer, call the
accept()
, this method will create an
IncomingFileTransfer
. After you have the file transfer you may start to transfer the file by calling the
recieveFile(file)
method. The file provided to this method will be where the data from thefile transfer is saved.
Finally, to reject the file transfer the only method you need to call is
reject()
on the
IncomingFileTransfer
.
For information on monitoring the progress of a file transfer see the monitoring progress section of this document.
Other means to recieve a file are also provided as part of the
IncomingFileTransfer
. Please consult the Javadoc for more information. Examples
In this example we can see how to approve or reject a file transfer request:
// Create the file transfer manager
final FileTransferManager manager = new FileTransferManager(connection);
// Create the listener
manager.addFileTransferListener(new FileTransferListener() {
public void fileTransferRequest(FileTransferRequest request) {
// Check to see if the request should be accepted
if(shouldAccept(request)) {
// Accept it
IncomingFileTransfer transfer = request.accept();
transfer.recieveFile(new File("shakespeare_complete_works.txt"));
} else {
// Reject it
request.reject();
}
}
});
Description
While a file transfer is in progress you may wish to monitor the progress of a file transfer.
Usage
Both the
IncomingFileTransfer
and the
OutgoingFileTransfer
extend the
FileTransfer
class which provides several methods to monitor how a file transfer is progressing:
-
getStatus()
- The file transfer can be in several states, negotiating, rejected, canceled, in progress, error, and complete. This method will return which state the file transfer is currently in.
-
getProgress()
- if the status of the file transfer is in progress this method will return a number between 0 and 1, 0 being the transfer has not yet started and 1 being the transfer is complete. It may also return a -1 if the transfer is not in progress.
-
isDone()
- Similar to getProgress() except it returns a boolean. If the state is rejected, canceled, error, or complete then true will be returned and false otherwise.
-
getError()
- If there is an error during the file transfer this method will return the type of error that occured.
Examples
In this example we can see how to monitor a file transfer:
while(!transfer.isDone()) {
if(transfer.getStatus().equals(Status.ERROR)) {
System.out.println("ERROR!!! " + transfer.getError());
} else {
System.out.println(transfer.getStatus());
System.out.println(transfer.getProgress());
}
sleep(1000);
}


|
Kill details
(8) NxT LeveL
|
(1) Grail Seekers
(3) Necrons
(4) Nexus Legion
|
(1) Eagle (Heavy assault)
(1) Drake (Battlecruiser)
(1) Harbinger (Battlecruiser)
(1) Myrmidon (Battlecruiser)
(1) Eris (Interdictor)
(1) Crow (Interceptor)
(1) Falcon (Recon ship)
(1) Hurricane (Battlecruiser)
|
|
|
| Location: |
CXN1-Z (0.0) |
| Date: |
2007-02-18 14:51:00 |
| Total ISK Loss: |
18,303,087.00 |
| Total Damage Taken: |
0 |
|
Fitted - High slot |
Value |
|
Antimatter Charge S |
160 |
3.04 K |
|
Light Neutron Blaster II |
2 |
2.80 M |
|
Fitted - Low slot |
Value |
|
Small Armor Repairer II |
1 |
500.05 K |
| Damage taken: |
0 |
Total Module Loss: |
3,303,090.00 |
Total Module Drop: |
0.00 |
Ship Loss: |
14,999,997.00 |
Total Loss: |
18,303,087.00 |
|
|
|
|


Lily Allen and her adorable daughters steal the show at Frozen 2 premiere
Ethel, seven, and Marnie, six, couldn't pass up the chance to dress as Elsa and Anna but mum decides to do her own thing as they all walked the red carpet together for the first time
by Sam Elliott, https://www.mirror.co.uk/authors/sam-elliott/When you've got young children, the chance to see Frozen 2 before anyone else is just an opportunity you have got to take.
So Lily Allen was never going to let her two daughters miss telling their friends all about it as they made their red carpet debuts together.
Ethel, seven, and Marnie, six, made sure they didn't let mum down and were on their best behaviour as they stayed out late on a school night.
They dressed perfectly for the European premiere on London's Southbank, the first time they have gone to such a high profile event as a family.
The girls dressed as lead characters Elsa and Anna but their 34-year-old parent decided against wearing a costume.
Instead she wore an incredible grey grey with black boots.
Lily may be right - divorce is suiting her rather well.
The Smile hitmaker, whose split with Sam Cooper was finalised in 2018, said that the pair have worked out a 'perfect' arrangement where she has her two daughters for a 'week on then a week off.'
Speaking on the Lorraine Kelly show last year, she said: "I can really recommend divorce to everyone!
"When I'm working in the studio Sam has the kids and when I have the kids I'm mum. It has worked out.
"I do a week on and week off. In terms of my work, it's perfect."
Then, on Loose Women, she said: "Our custody agreement wasn't really something we discussed.
"We're both really friendly, our kids go to school equidistant between our houses, so it works."
Do you have a story to sell? Get in touch with us at<EMAIL_ADDRESS>or call us direct 0207 29 33033


Coursework
- Software Engineering I (C/C++), Software Engineering II (Data Structures in Java), Software Lab (Software Design, Testing, Scalable Systems), Concurrent and Distributed Systems (Concurrency, Networking, Cloud Computing in Java), Algorithms, Embedded Systems


Head of UN Palestinian agency steps aside amid probe
JERUSALEM: The head of the UN agency for Palestinian refugees has stepped aside temporarily as an internal probe into alleged mismanagement at the organisation proceeds, it said on Wednesday (Nov 6).
Pierre Krahenbuhl, commissioner general of the agency known as UNRWA, will be replaced on an interim basis by the agency's acting deputy chief Christian Saunders, it said.
The agency said findings in the probe so far "revealed management issues which relate specifically to the commissioner general."
"The commissioner-general has stepped aside until the completion of the process," it said.
An internal ethics report has alleged mismanagement and abuses of authority at the highest levels of the agency, which has also faced a financial crisis after US funding cuts.
UN investigators have been probing the allegations in the confidential report, a copy of which was obtained by AFP.
The report describes "credible and corroborated" allegations of serious ethical abuses, including involving Krahenbuhl, a Swiss national.
It says the allegations include senior management engaging in "sexual misconduct, nepotism, retaliation, discrimination and other abuses of authority, for personal gain, to suppress legitimate dissent, and to otherwise achieve their personal objectives."
Krahenbuhl himself was alleged to have been romantically involved with a colleague appointed in 2015 to a newly created role of senior adviser after an "extreme fast-track" process, the report says.
That enabled her to join him on international business class flights, the report alleges.
UNRWA came under heavy financial constraints after the United States suspended and later cut all funding for it in 2018.
US President Donald Trump's administration, along with Israel, accuses UNRWA of perpetuating the Israeli-Palestinian conflict.
The agency disputes that and says the services it provides would otherwise not be available to Palestinians.
A number of other countries suspended their contributions pending the outcome of the probe into alleged mismanagement.
UNRWA was set up in the years after more than 700,000 Palestinians were expelled or fled their lands during the 1948 war surrounding the creation of Israel.
It provides schooling and medical services to millions of impoverished refugees in Jordan. Lebanon and Syria as well as the Palestinian territories.
It employs around 30,000 people, mostly Palestinians, and its UN mandate is set to be debated later this year.
A European diplomat speaking on condition of anonymity said he was "grateful for all (Krahenbuhl) did to stabilise the organisation during a difficult time, but stepping aside now is the correct decision."


Cowboys Fans Beg Team to Fire Jason Garrett After Patriots Loss (TWEETS)
by Darrelle LincolnCowboys owner Jerry Jones was rightfully disgusted that his team lost yet another game against a team above .500 and he made sure to call out the coaching staff for more blunders that has cost them 2 games in the last 3 weeks against quality opponents.
Jerry is unlikely to part ways with head coach Jason Garrett during the 2019 season, and that alone has the fan base clawing its eyes out.
Following the 13-9 loss to the Patriots on Sunday, Cowboys fans took to Twitter and called for the team to part ways with Garrett by starting a #FireGarrett hashtag.
The Cowboys dropped to 6-5 as they get set to face the Buffalo Bills on Thanksgiving.


Below are a number of images generated from the dot files at the Graphviz Gallery, followed by images generated from dot file content generated by the graphviz-objects library.
Under construction, not all gallery samples complete yet.
Also note, the graphviz-object images are only generated when running the test suite via npm test.
The source files that generated the dot file content are available at https://github.com/pmuellr/graphviz-objects/tree/master/test/gallery


{% extends "blank_error_base.html" %} {% load i18n %} {% block content %}
{% trans "Single sign-on process returned an error." %}
{% trans "Please try again using your browser's incognito-mode." %} {% trans "If the problem persists, contact the application administrator directly or through IT Helpdesk." %}
{% trans "Please include the following information in your message:" %}


| None. |
| This is a value usually used with SETBUFFER to denote the secondary non-visible drawing buffer called the Back Buffer. In MOST gaming situations, you will want to be using the BackBuffer() for drawing operations then using Flip to bring that buffer to the FrontBuffer() where it can be seen. There are other uses for the command, but this is the biggie. See SETBUFFER for more info, and check out the example. Once again - if you set drawing operations to the BackBuffer() you will NOT see any of them until you call FLIP. |
|
; Flip/Backbuffer()/Rect Example
; Set Graphics Mode Graphics 640,480 ; Go double buffering SetBuffer BackBuffer() ; Setup initial locations for the box box_x = -20 ; negative so it will start OFF screen box_y = 100 While Not KeyHit(1) Cls ; Always clear screen first Rect box_x,box_y,20,20,1 ; Draw the box in the current x,y location Flip ; Flip it into view box_x = box_x + 1 ; Move the box over one pixel If box_x = 640 Then box_x=-20 ; If it leaves the Right edge, reset its x location Wend |


Introduction
XmlValidate is a quick & flexible XML validator capable of performing bulk validation of XML documents against XML Schemas as defined in the XML documents or forcing another schema target.
XmlValidate validates individual XML documents by filename or URL or recursively searching directories with a list of target file extensions. First documents are checked as being well-formed XML. If parsing XML with non-validating parser fails then validation for that file stops.
Here are three ways to validate XML documents using XmlValidate:
-
The -map option maps schema namespaces to given target schema locations. It rewrites XML with location of schema instance document then validates against target schema. If schema namespace is not found then it does not validate the document. This validates the document against the actual schema namespace defined in the document as opposed to the other approaches that rewrite the XML documents to any target schema.
old: <kml xmlns="http://earth.google.com/kml/2.1"> new: <kml xmlns="http://earth.google.com/kml/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://earth.google.com/kml/2.1 file:/C:/xml/kml21.xsd">
Note if root element is "kml" and no namespace is specified then KML 2.0 namespace is used to validate document.
-
Specifing a schema without a namespace implies noNamespaceSchemaLocation attribute should be added to all XML documents and validate against that schema.
no namespace schema: <event xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:/cot/schema/Event.xsd">
-
And finally specify -ns and -schema options to provide a target namespace URI and schema location. All XML documents specified in search location(s) will be rewritten and the target schemaLocation will be used regardless of the default namespace of that document. So for example KML 2.1 documents can be validated against the 2.2 schema, and vice versa.
old: <kml xmlns="http://earth.google.com/kml/2.1"> new: <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/kml/2.2 file:/C:/xml/kml22.xsd">
Note that XML is reformatted so errors/warnings with line/column numbers are respect to the reformatted content not the original so context is printed at that line/column number after each error in order that errors can be tracked down and corrected in original XML document. If you want the reformatted XML document printed then use -dump mode. If the error is in the XML Schema not the instance document then the context will not be printed.
Contents
This distribution contains the following files:
| README.html | This documentation file |
| ns.map | Namespace mapping file associated with provided schemas used with -map option |
| build.gradle | Gradle build file |
Installation
This standalone Java application requires a Java Runtime Environment (JRE) installation of version 1.6 or later.
Type: ./gradlew clean test install
Downloaded files (including the Gradle distribution itself) will be stored in the Gradle user home directory (typically "
XmlValidate is pre-loaded with a number of common XML schemas (KML, GPX).
To install this application, copy the xmlValidate folder along with the batch files
[ bin/kml21.bat + bin/kml22.bat + bin/xv.bat ]. Next edit ns.map file to add new XML schemas to validate
other XML documents. XML Schemas can be added by URL, absolute path, or add to schemas folder and prefix schema with
${XV_HOME}.
Usage
Usage: XmlValidate [options] [-map=file] | [-schema=file (-ns=uri)] <xml-document file, URL, or directory...>
Options:
| -map=<schema-property-file> | Schema map properties: namespace to file/URL mappings. Note if root element is "kml" and no namespace is specified then KML 2.0 namespace is used. |
| -schema=<path-to-xml-schema> | Set target schema location (file path or URL). If validating many XML documents recommend make local copies of XML Schemas and refer to the local file name rather than having to fetch Schema by URL for each document. |
| -schemaLocation=<namespace=location> | Add explicit namespace with target schema location (file path or URL). This will appear in the xsi:schemaLocation element if the target namespace is referenced in the XML document. |
| -ns=<schemaLocation-namespace> | Set namespace defined in schemaLocation attribute (e.g. http://earth.google.com/kml/2.1) Without setting this the target schema is assumed to have no namespace and noNamespaceSchemaLocation attribute is declared in XML instances. |
| -dump[=n] |
Print reformatted XML documents based on dump level:
0: no output [default], 1: print KML on errors only, 2: print all inputs If number not specified with -dump argument then 1 is assumed otherwise 0 if -dump argument is not used. Note the line and column numbers in errors are with respect to these formatted XML documents. |
| -maxdump=n | Set max length (in bytes) of XML output used for each document in dump. |
| -K | KML mode for extra KML validation. |
| -Z | KMZ mode checks and validates all kml files inside KMZ files. Default mode only checks the first kml file. |
| -kml | Validate .kml files only (default=xml) This overrides and replaces the default XML target with KML when searching for files in directories. |
| -kmz | Validate .kml and .kmz files only (default=xml) This overrides and replaces the default XML target with KML amnd KMZ when searching for files in directories. |
| -x=ExtensionList | Add additional file extensions to list (default=xml) extensions separated by ':' (e.g. -x=gpx:x3d:svg) |
| -S | Enable summary mode to only show the final total counts (default=false). This is helpful when validating large collection of files where output would be huge. |
| Enable verbose mode (default=false). | -v[=true] |
| -debug | Enable debug mode to print exception stack traces (default=false). |
-
To check all .kml files against target KML 2.2 schema regardless of default schema used:
xv -kml -schema=C:/pathToXsd/kml22.xsd -ns=http://www.opengis.net/kml/2.2 C:/pathToMyKmlFiles
-
To check all CoT .xml files against CoT Schema:
xv -schema=C:/pathToXsd/event.xsd C:/pathToData/cot.xml
-
To check kml and kmz files against local schemas as defined in KML files:
xv -map=ns.map C:/pathToMyKmlFiles
-
Validate by URL for KML and target schema and print KML content
if any errors are found but limit size of each file printed to first 4K:xv -dump -maxDump=4096 -ns=http://earth.google.com/kml/2.1 -schema=http://code.google.com/apis/kml/schema/kml21.xsd http://kml-samples.googlecode.com/svn/trunk/kml/kmz/simple/big.kmz
-
Validate by XML document with explicit schema location
xv -schemaLocation=http://myExtension=ext.xsd example.xml
Note: xv command in examples above is a short-cut to the executable command using java and XmlValidate.jar on the CLASSPATH or by using the equivalent batch file/shell script. See xv.bat, kml21.bat, and kml22.bat for example usage.
Release History
| Version | Release date | Description |
|---|---|---|
| 1.0.2 | 07/01/14 |
|
| 1.0.1 | 11/14/13 |
|
| 1.0.0 | 04/27/12 |
|
| 0.4.2 | 03/23/11 |
|
| 0.4.1 | 08/23/10 |
|
| 0.4.0 | 03/23/09 |
|
| 0.3.0 | 02/13/09 |
|
| 0.2.0 | 02/01/09 |
|
| 0.1.0 | 04/17/08 |
|


There are two docker images herein:
docker pull dmm7aj/pccs
docker build -t pico docker/
docker run -v /var/run/docker.sock:/var/run/docker.sock -dP pico
docker ps -a
, and note the port that 80 is mapped to (something like 32780); browse to that port (http://localhost:32780)
ssh root@localhost -p 32779
)One must first install docker; https://docs.docker.com/engine/installation/ is a good place to start (install the Stable Docker CE version); the Ubuntu specific directions are here. One will likely want to allow non-privileged users to run docker; see http://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo for details. That link is Ubuntu specific, but will apply to any Linux system. Other operating systems are possible, but those links are not in this document.
This is not really running docker-in-docker; it's using the host's docker socket. This is described at https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ (in "The solution" section). To start the container, run:


Created by Sean Dulin / @SeanDulin
Any code listening for requests over HTTP and is not returning static files served off a disk.
Focus on your customers
Simple Object Access Protocol
Web Services Description Language
Representational State Transfer Protocol
Roy Fielding's Dissertation
REST Maturity Model
Hypertext As The Engine Of Application State
https://swapi.co/
For SOAP, you're stuck using POST
For REST, definitely use GET, POST, and DELETE. Think about PUT
Everything is going to be HTTP 200 OK.
env:Sender
You did something wrong silly!
Do NOT return 200 for errors with an error object
http://jsonapi.org/
{
"id": "2f0bf3ef-e3da-4e38-a374-55c63f8dc34f",
"links": {
"self": "https://library.generalmills.com/api/logs/2f0bf3ef-e3da-4e38-a374-55c63f8dc34f"
"about": "https://msdn.microsoft.com/en-us/library/system.argumentexception(v=vs.110).aspx"
},
"status": "500",
"code": "0",
"title": "System.ArgumentException",
"detail": "The parameters dictionary contains a null entry for parameter 'categoryId' of non-nullable type 'System.Int32'"
}
Documentation will make or break API
This is a browser security feature. Wildcards have lots of restrictions.


|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.floodlightcontroller.flowcache.FlowReconcileManager
public class FlowReconcileManager
| Field Summary | |
|---|---|
protected ICounterStoreService |
counterStore
|
protected static java.lang.String |
EnableConfigKey
Config to enable or disable flowReconcile |
protected static int |
FLOW_RECONCILE_DELAY_MILLISEC
start flow reconcile in 10ms after a new reconcile request is received. |
protected boolean |
flowReconcileEnabled
|
protected ListenerDispatcher<OFType,IFlowReconcileListener> |
flowReconcileListeners
The list of flow reconcile listeners that have registered to get flow reconcile callbacks. |
protected SingletonTask |
flowReconcileTask
Asynchronous task to feed the flowReconcile pipeline |
java.util.concurrent.atomic.AtomicInteger |
flowReconcileThreadRunCount
|
protected SimpleCounter |
lastPacketInCounter
|
protected java.util.Date |
lastReconcileTime
|
protected static int |
MAX_SYSTEM_LOAD_PER_SECOND
|
protected static int |
MIN_FLOW_RECONCILE_PER_SECOND
a minimum flow reconcile rate so that it won't stave |
protected IThreadPoolService |
threadPool
Reference to dependent modules |
| Constructor Summary | |
|---|---|
FlowReconcileManager()
|
| Method Summary | |
|---|---|
void |
addFlowReconcileListener(IFlowReconcileListener listener)
Add a flow reconcile listener |
void |
clearFlowReconcileListeners()
Remove all flow reconcile listeners |
protected boolean |
doReconcile()
Feed the flows into the flow reconciliation pipeline. |
void |
flowQueryGenericHandler(FlowCacheQueryResp flowResp)
Generic flow query handler to insert FlowMods into the reconcile pipeline. |
protected int |
getCurrentCapacity()
Compute the maximum number of flows to be reconciled. |
java.util.Collection<java.lang.Class<? extends IFloodlightService>> |
getModuleDependencies()
Get a list of Modules that this module depends on. |
java.util.Collection<java.lang.Class<? extends IFloodlightService>> |
getModuleServices()
Return the list of interfaces that this module implements. |
protected int |
getPktInRate(ICounter newCnt,
java.util.Date currentTime)
|
java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> |
getServiceImpls()
Instantiate (as needed) and return objects that implement each of the services exported by this module. |
void |
init(FloodlightModuleContext context)
This is a hook for each module to do its internal initialization, e.g., call setService(context.getService("Service")) All module dependencies are resolved when this is called, but not every module is initialized. |
void |
reconcileFlow(OFMatchReconcile ofmRcIn)
Add to-be-reconciled flow to the queue. |
void |
removeFlowReconcileListener(IFlowReconcileListener listener)
Remove a flow reconcile listener |
void |
startUp(FloodlightModuleContext context)
This is a hook for each module to do its external initializations, e.g., register for callbacks or query for state in other modules It is expected that this function will not block and that modules that want non-event driven CPU will spawn their own threads. |
void |
updateFlowForDestinationDevice(IDevice device,
IFlowQueryHandler handler,
IFlowCacheService.FCQueryEvType fcEvType)
Updates the flows to a device after the device moved to a new location |
void |
updateFlowForSourceDevice(IDevice device,
IFlowQueryHandler handler,
IFlowCacheService.FCQueryEvType fcEvType)
Updates the flows from a device |
protected void |
updateFlush()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IThreadPoolService threadPool
protected ICounterStoreService counterStore
protected ListenerDispatcher<OFType,IFlowReconcileListener> flowReconcileListeners
protected SingletonTask flowReconcileTask
protected SimpleCounter lastPacketInCounter
protected static int MAX_SYSTEM_LOAD_PER_SECOND
protected static int MIN_FLOW_RECONCILE_PER_SECOND
protected static int FLOW_RECONCILE_DELAY_MILLISEC
protected java.util.Date lastReconcileTime
protected static final java.lang.String EnableConfigKey
protected boolean flowReconcileEnabled
public java.util.concurrent.atomic.AtomicInteger flowReconcileThreadRunCount
| Constructor Detail |
|---|
public FlowReconcileManager()
| Method Detail |
|---|
public void addFlowReconcileListener(IFlowReconcileListener listener)
IFlowReconcileService
addFlowReconcileListener
in interface IFlowReconcileService
listener
- The module that can reconcile flowspublic void removeFlowReconcileListener(IFlowReconcileListener listener)
IFlowReconcileService
removeFlowReconcileListener
in interface IFlowReconcileService
listener
- The module that no longer reconcile flowspublic void clearFlowReconcileListeners()
IFlowReconcileService
clearFlowReconcileListeners
in interface IFlowReconcileService
public void reconcileFlow(OFMatchReconcile ofmRcIn)
reconcileFlow
in interface IFlowReconcileService
ofmRcIn
- the ofm rc inpublic void updateFlowForDestinationDevice(IDevice device, IFlowQueryHandler handler, IFlowCacheService.FCQueryEvType fcEvType)
IFlowReconcileService
Queries the flow-cache to get all the flows destined to the given device. Reconciles each of these flows by potentially reprogramming them to its new attachment point
updateFlowForDestinationDevice
in interface IFlowReconcileService
device
- device that has movedhandler
- handler to process the flowsfcEvType
- Event type that triggered the updatepublic void updateFlowForSourceDevice(IDevice device, IFlowQueryHandler handler, IFlowCacheService.FCQueryEvType fcEvType)
IFlowReconcileService
Queries the flow-cache to get all the flows source from the given device. Reconciles each of these flows by potentially reprogramming them to its new attachment point
updateFlowForSourceDevice
in interface IFlowReconcileService
device
- device where the flow originateshandler
- handler to process the flowsfcEvType
- Event type that triggered the updatepublic void flowQueryGenericHandler(FlowCacheQueryResp flowResp)
IFlowReconcileService
flowQueryGenericHandler
in interface IFlowReconcileService
public java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleServices()
IFloodlightModule
getModuleServices
in interface IFloodlightModule
public java.util.Map<java.lang.Class<? extends IFloodlightService>,IFloodlightService> getServiceImpls()
IFloodlightModule
getServiceImpls
in interface IFloodlightModule
public java.util.Collection<java.lang.Class<? extends IFloodlightService>> getModuleDependencies()
IFloodlightModule
getModuleDependencies
in interface IFloodlightModule
public void init(FloodlightModuleContext context) throws FloodlightModuleException
IFloodlightModule
init
in interface IFloodlightModule
FloodlightModuleException
public void startUp(FloodlightModuleContext context)
IFloodlightModule
startUp
in interface IFloodlightModule
protected void updateFlush()
protected boolean doReconcile()
protected int getCurrentCapacity()
protected int getPktInRate(ICounter newCnt, java.util.Date currentTime)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Heavy Atom Positions Data¶
The Heavy Atom Positions Data consisted of …. maps. Each map was produced from data produced from SHELX after fully fitting the backbone. However, only the information on the location of the heavy atoms were included. This was done to see how well a model could perform on minimal information input, but is not guarrenteed to work with the heavy atom positions produced before fitting. The commands used to do this can be seen below. This was followed by the CCP4 functions ‘f2map’, ‘cfft’, and ‘mapmask’ called using a dispatcher, to convert to a tessalated map format. This last step is done using the package TOPAZ.
The images produced when training this model can be found in the same directory as the model.
SHELX code for Heavy Atom Positions Data¶
The Heavy Atom Position Data is the ‘.pha’ file containing the heavy atom phases produced when completing a full backbone trace using SHELXe.
To create the data in this form:
For each protein, first run SHELXc using an input file containding the lines shown in the example below (replace relevant parts for new proteins):
- TITL 4FDW_fa.ins MAD in P21221
- CELL 0.9800 79.11 112.29 56.08 90.00 90.00 90.00
- LATT -1
- SYMM -X,Y,-Z
- SYMM 1/2+X,-Y,1/2-Z
- SYMM 1/2-X,-Y,1/2+Z
- SFAC SE
- UNIT 128
- FIND 2
- SHEL 999 2.4
- MIND -1.5 -0.1
- PATS
- NTRY 1000
- SEED 42
- HKLF 3
- END
This will produce a series of files with ‘_fa’ in the name.
Next run SHELXe. This first uses the ‘.hat’ file and runs some of the command options below (see code block for which), then creates ‘_i.hat’ and runs the same command for the inverse.
-s solvent content
-m cycles of solvent flattening: default=10
-h heavy atoms intrinsic part of the protein. Either in the sequence or essential metal: we assume all are Se (selenium)
-z optimising heavy atom substructure
-a number of autotracing cycles: here=5
-q look for alpha helices
-e free lunch algorithm
The command to run SHELXe for this data was as follows:
shelxe {0}{1} -s{2} -m -h{3} -z{3} -a5 -q.format(name, fa, solvent_frac,
find)
Where:
- name –> PDB_id
- fa –> files with _fa in the name
- solvent_frac –> solvent content as determined by Mathews coefficient
- find –> number of heavy atoms to look for: determined by counting the number of methionines (Ms) in the sequence and multiplying by the number of molecules expected for the ASU as determined by Mathews coefficient.
Running this will produce the necessary files to run the prerequisite program Topaz.


Sparse Octree
A sparse octree data structure.
Extensive Demo ∴ API Reference
Installation
npm install sparse-octree
Usage
Custom Octrees
import { Octree, CubicOctant } from "sparse-octree";
export class CubicOctree extends Octree {
constructor(min, size) {
this.root = new CubicOctant(min, size);
}
}
Points
import { Vector3 } from "three";
import { PointOctree } from "sparse-octree";
const min = new Vector3(-1, -1, -1);
const max = new Vector3(1, 1, 1);
const octree = new PointOctree(min, max);
const myData = {};
octree.put(new Vector3(0, 0, 0), myData);
octree.fetch(new Vector3(0, 0, 0)); // => myData
A full point octree example can be found here.
Features
- Base Functionality
- Pointer-based structure
- Handles octant splitting
- Adheres to a common octant layout
- Supports raycasting
- Supports culling
- Supports cubic octrees
- Can be extended to manage any data
- Pointer-based structure
- Provides a point management implementation
Octree Helper
The octree-helper module provides an octree visualisation tool for three.js.
Contributing
Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.


{% extends "templates/base.html" %} {% block title %}About CryptoMess{% endblock %} {% block content %}
CryptoMess - is a service for keeping encrypted messages. You also can share a message to another google account, but he also need a key to decrypt it.
To add access to a message fill "Access to" with user gmail. To create a private message leave "Access to" empty.


OurTerms
Dashboard
Active Contracts
History
Create New Contract
Dashboard
Active Contracts
History
Create New Contract
Sign Out
Send email
Create New Contract
×
How would you like to create your new contract?


Class PuzzleSolver
Solves a single IPuzzle using a SudokuSpice.RuleBased.SquareTracker.
Inheritance
System.Object
PuzzleSolver
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SudokuSpice.RuleBased
Assembly: SudokuSpice.dll
Syntax
public class PuzzleSolver
Constructors
| Improve this Doc View SourcePuzzleSolver(IPuzzle, PossibleValues, ISudokuRuleKeeper, ISudokuHeuristic)
Constructs a solver for the given square tracker.
Declaration
public PuzzleSolver(IPuzzle puzzle, PossibleValues possibleValues, ISudokuRuleKeeper ruleKeeper, ISudokuHeuristic heuristic = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IPuzzle | puzzle | |
| PossibleValues | possibleValues | |
| ISudokuRuleKeeper | ruleKeeper | |
| ISudokuHeuristic | heuristic |
PuzzleSolver(Puzzle)
Constructs a solver for a standard Sudoku puzzle that uses a standard heuristic and standard rule keeper. Provided for convenience.
Declaration
public PuzzleSolver(Puzzle puzzle)
Parameters
| Type | Name | Description |
|---|---|---|
| Puzzle | puzzle |
Methods
| Improve this Doc View SourceGetStatsForAllSolutions()
Finds stats for all the solutions to the internal puzzle reference. The internal puzzle is left unchanged.
Declaration
public SolveStats GetStatsForAllSolutions()
Returns
| Type | Description |
|---|---|
| SolveStats |
Solve()
Solves the internal puzzle reference.
Declaration
public void Solve()
SolveRandomly()
Solves the internal puzzle reference, choosing randomly when it has to guess a square's value.
Declaration
public void SolveRandomly()


Publishing is required when you want to export comments to Disqus or Import First Image.
Click here to download the exported Disqus Xml file


Package algorithms.optimization
Class LinearProgramming.SlackForm
- java.lang.Object
-
- algorithms.optimization.LinearProgramming.FormTuple
-
- algorithms.optimization.LinearProgramming.SlackForm
-
- Enclosing class:
- LinearProgramming
public static class LinearProgramming.SlackForm extends LinearProgramming.FormTuple
maximization of a linear function subject to linear *equalities*
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinearProgramming.SlackForm.STATE
-
Field Summary
Fields Modifier and Type Field Description int[]
bIndices
denotes the indices of the basic variables (lhs vars).int[]
nIndices
denotes the indices of the nonbasic variables (rhs vars).protected LinearProgramming.SlackForm.STATE
state
-
Fields inherited from class algorithms.optimization.LinearProgramming.FormTuple
a, b, c, v
-
-
Constructor Summary
Constructors Constructor Description SlackForm(int[] nIndices, int[] bIndices, double[][] a, double[] b, double[] c, double v)
SlackForm(int[] nIndices, int[] bIndices, double[][] a, double[] b, double[] c, double v, LinearProgramming.SlackForm.STATE state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
calculateDualY()
double[]
calculatePrimalX()
double[]
computeBasicDualSolution()
double[]
computeBasicSolution()
using the present forms, sets all rhs x's to 0 to solve for the lhs x's.double
evaluateDualObjective()
double
evaluateObjective()
when x has been calculated, evaluate the objective.boolean
isFeasible()
java.lang.String
toString()
-
Methods inherited from class algorithms.optimization.LinearProgramming.FormTuple
convertMinimizationToMaximiation
-
-
-
-
Field Detail
-
nIndices
public int[] nIndices
denotes the indices of the nonbasic variables (rhs vars). nIndices.length = n.
-
bIndices
public final int[] bIndices
denotes the indices of the basic variables (lhs vars). bIndices.length = m.
-
state
protected LinearProgramming.SlackForm.STATE state
-
-
Constructor Detail
-
SlackForm
public SlackForm(int[] nIndices, int[] bIndices, double[][] a, double[] b, double[] c, double v)
- Parameters:
nIndices
- denotes the indices of the nonbasic variables (rhs vars). nIndices.length = n.bIndices
- denotes the indices of the basic variables (lhs vars). bIndices.length = m.a
-b
-c
-v
-
-
SlackForm
public SlackForm(int[] nIndices, int[] bIndices, double[][] a, double[] b, double[] c, double v, LinearProgramming.SlackForm.STATE state)
- Parameters:
nIndices
- denotes the indices of the nonbasic variables (rhs vars). nIndices.length = n.bIndices
- denotes the indices of the basic variables (lhs vars). bIndices.length = m.a
-b
-c
-v
-state
-
-
-
Method Detail
-
isFeasible
public boolean isFeasible()
- Returns:
-
evaluateObjective
public double evaluateObjective()
when x has been calculated, evaluate the objective. see eqn (29.42) of Cormen, Leiserson, Rivest, and Steinz = v + summation_j_in_nIndices(c_j*x_j)
- Specified by:
evaluateObjective
in classLinearProgramming.FormTuple
- Returns:
-
calculatePrimalX
public double[] calculatePrimalX()
- Returns:
-
calculateDualY
public double[] calculateDualY()
- Returns:
-
evaluateDualObjective
public double evaluateDualObjective()
- Returns:
-
computeBasicSolution
public double[] computeBasicSolution()
using the present forms, sets all rhs x's to 0 to solve for the lhs x's. The x vector is returned.- Specified by:
computeBasicSolution
in classLinearProgramming.FormTuple
- Returns:
-
computeBasicDualSolution
public double[] computeBasicDualSolution()
- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classLinearProgramming.FormTuple
-
-


Example:
void process(String name, Object[] objects);
After the quick-fix is applied, the result looks like this:
void process(String name, Object... objects);
This inspection only reports if the language level of the project or module is 5 or higher.


Class: 'organism part'
http://purl.org/biotop/btl2.owl#OrganismPart
Annotations (2)
-
definition "A well defined and circumscribed subdivision of an organism, not any arbitrary part. Macroscopic organism parts may be delimited mainly by natural boundaries but always exhibit at least small regions of fiat boundaries. An organism part may derive from an organism, i.e. it may continue to exist even when the organism does not exist any longer." ()
-
label "organism part" ()
Superclasses (1)
Disjoints (2)
Usage (1)


We heard that you lost your Aidhedge password. Sorry about that! But don’t worry! You can use the following link to reset your password: {{data.reset_password_end_point}} If you don’t use this link within 3 hours, it will expire. To get a new password reset link, visit {{data.reset_password_again_url}}
Thanks, Your friends at Aidhedge


It has been over 21 days since the last confirmed case of Ebola virus disease (EVD) has been reported (Figure 1). On 9 March, the last 46 contacts finished their follow-up. These are important milestones in the outbreak as over one maximum incubation period has passed without any confirmed cases of EVD. However, there is still a high risk of re-emergence of EVD, and a critical need to maintain response operations – as outlined in the WHO recommended criteria for declaring the end of the EVD outbreak.
Extensive surveillance, pathogen detection, clinical management and other response activities are currently ongoing. These include, but are not limited to, investigating and validating new alert cases, supporting appropriate care and rapid diagnostics of suspected cases which continue to be detected each day, and supporting survivors through a multi-disciplinary programme to help mitigate potential risks of re-emergence. Over the course of the past week (4–10 March 2020), over 32 000 alerts were reported and investigated, and 2584 alerts were validated as suspected cases; requiring specialized care and laboratory testing to rule-out EVD. From 2 to 8 March, 2818 samples were tested including: 1574 blood samples from alive, suspected cases; 376 swabs from community deaths; and 868 samples from re-tested patients. Overall, this was a 16% decrease in testing compared to the previous week.
Throughout the outbreak, alert rates steadily climbed as active and passive case finding systems were strengthened, reaching additional health zones with the evolution of the outbreak, and continuously adapted to suit local context. With the decline in confirmed case incidence and gradual transition toward routine disease surveillance systems, alert rates have expectantly begun to decline in some areas. It, however, remains important for appropriate levels of surveillance to be maintained through the end of outbreak declaration to rapidly detect relapse, reintroduction or new emergence events, thereby providing an opportunity to implement effective control measures and avoid a potential resurgence of the outbreak.
As of 10 March 2020, a total of 3444 EVD cases were reported from 29 health zones (Table 1, Figure 2), including 3310 confirmed and 134 probable cases, of which 2264 cases died (overall case fatality ratio 66%). Of the total confirmed and probable cases, 56% (n=1931) were female, 28% (n=975) were children aged less than 18 years, and 5% (n=171) were health care workers.
*Excludes n=148 cases for whom onset dates not reported. Data in recent weeks are subject to delays in case confirmation and reporting, as well as ongoing data cleaning. ‘Non-active zones’ indicate health zones that have not reported new cases in the last 42 days.
**Total cases and areas affected during the last 21 days are based on the initial date of case alert and may differ from date of confirmation and daily reporting by the Ministry of Health.
For further information about public health response actions by the Ministry of Health, WHO, and partners, please refer to the latest situation reports published by the WHO Regional Office for Africa:
WHO continuously monitors changes to the epidemiological situation and context of the outbreak to ensure that support to the response is adapted to the evolving circumstances. The last assessment concluded that the national and regional risk levels remain high, while global risk levels remain low.
WHO advises against any restriction of travel to, and trade with, the Democratic Republic of the Congo based on the currently available information. Any requirements for certificates of Ebola vaccination are not a reasonable basis for restricting movement across borders or the issuance of visas for travellers to/from the affected countries. WHO continues to closely monitor and, if necessary, verify travel and trade measures in relation to this event. Currently, no country has implemented travel measures that significantly interfere with international traffic to and from the Democratic Republic of the Congo. Travellers should seek medical advice before travel and should practise good hygiene. Further information is available in the WHO recommendations for international traffic related to the Ebola Virus Disease outbreak in the Democratic Republic of the Congo.
For more information, please see:


Сброс пароля
{% trans "We've emailed you instructions for setting your password, if an account exists with the email you entered. You should receive them shortly." %}
{% trans "If you don't receive an email, please make sure you've entered the address you registered with, and check your spam folder." %}


Verb
1
need
2
try
3
give
4
stop
5
put
6
buy
Past Tense
needed
tried
gave
stopped
put
bought
Verb
1
need
2
try
3
give
4
stop
5
put
6
buy
Present Tense
need/needs
try/tries
give/gives
stop/stops
put/puts
buy/buys
Verb
1
need
2
try
3
give
4
stop
5
put
6
buy
Future Tense
will need
will try
will give
will stop
will put
will buy


@* * Copyright 2010-2017 Artima, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import controllers.Application.milestoneScaladoc @import controllers.Application.scaladocsPageUrl @import controllers.Application.scaladocsPageUrl @import controllers.Application.milestoneVersion @docUrl(file: String) = { @scaladocsPageUrl(file, "2.0") } @releaseNotesPage("ScalaTest 2.0 Release Notes") {
ScalaTest 2.0 is a major upgrade to ScalaTest, the culmination of over two years of effort. Although it includes many enhancements, we kept a close eye on compatibility with existing ScalaTest 1.x code. We also tried hard to preserve what people liked about ScalaTest 1.x: that it is simple, the code is clean and clear, it's fully documented, and because of very thorough testing, it “just works.”
For information on how to include ScalaTest in your project, see the download page.
ScalaTest 2.0 is such a big upgrade that you could easily get lost all in the details of what's new. This section gives the main highlights subdivided into general categories, with links to more detail. To get a quick idea of what's new in ScalaTest 2.0, scan through this section.
Equality enhancements
scalautils.org
for details.===
in tests and production code, including an “Explicitly DSL.”===
in tests and production code.===
with +-
in tests and production code.Suite enhancements
Outcome
result type to withFixture
.Status
result type to Suite
's run
methods, and
used Status
to ensure BeforeAndAfterAll
's afterAll
method is executed after any parallel execution completes.Suite
's run
methods to take an Args
, to make overriding nicer.markup
to style traits to include markup text for specifications.note
and alert
to stye traits for sending
status notifications from tests.Sequential
and Stepwise
(to pre-existing
Suites
) combinators for suite composition.they
(in addition to it
) to FunSpec
and FlatSpec
.@@Ignore
.DynaTags
and a dynaTags
field to the primary constructor of class Filter
to enable
the dynamic tagging of tests.
Dynamic tagging facilitates features such as test name
wildcards and rerunning previously failed tests; It enables selection of tests
even in nested suites that can't be instantiated directly.
suiteId
lifecycle method to trait Suite
. This new lifecycle
method is intended to provide a unique ID for each suite that executes in a suite of tests, so that tests can be dynamically tagged. (A dynamic tag
identifies tests by suiteId
and testName
.)rerunner
lifecycle method to Suite
, which provides an optional,
fully qualified name of a suite (with a public, no-arg constructor) that can be used create to rerun its tests. If class has a public, no-arg
constructor, then that class's fully qualified name can be returned from rerunner
. If it does not have a public, no-arg constructor,
but rather is created as a nested suite of a class that does have a public, no-arg constructor, then the nested class can return from rerunner
the fully qualified name of that outer, nesting class. To rerun a test in the nested class, ScalaTest can create the nesting class via its public,
no-arg constructor, and run it. The nesting class will create the actual class in which the test resides, and run it as a nested suite, thereby
rerunning the test.excludeNestedSuites
field to the primary constructor of class
Filter
. This field supports rerunning selected (such as previously failed) tests.Spec
and
fixture.Spec
to serve as the new style trait
in which tests are methods, and deprecated the use of Suite
as a style trait.@@DoNotDiscover
annotation that prevents discovery of an otherwise discoverable Suite
class.SuiteMixin enhancements
SuiteMixin
to serve as the new base class
for stackable traits that can be mixed into Suite
, and deprecated trait
AbstractSuite
.TestData
trait, made
NoArgTest
and
OneArgTest
implement it,
and added trait BeforeAndAfterEachTestData
to faciliate using
the test name, text, scopes, and tags, as well as the config map, in withFixture
, beforeEach
, and afterEach
methods.
BeforeAndAfterAllConfigMap
to faciliate using the
config map in beforeAll
and afterAll
methods.BeforeAndAfterAll
so that it only calls
beforeAll
and afterAll
in the outer instance of
a OneInstancePerTest
or
ParallelTestExecution
.BeforeAndAfterAll
and BeforeAndAfterAllConfigMap
to
take expectedTestCount
into consideration when deciding whether to invoke beforeAll
and afterAll
.OneInstancePerTest
so that it calls
super.runTests
which emits events for scopes (such as describe
clauses
in FunSpec
).ParallelTestExecution
so that it calls
super.runTests
which emits events for scopes (such as describe
clauses in
FunSpec
).Retries
trait (and related Retryable
tag) and a
Catcher
class to help deal with flickers: tests that
usually pass but occasionally fail.Assertions enhancements
assume
and cancel
methods to
Assertions
,
and added a cancelAfter
method to Timeouts
.assert
and assume
as macros that produce descriptive error messages in
Assertions
.Inspectors
(forAll
, forEvery
, forAtLeast
,
forAtMost
, forBetween
, forExactly
) to enable assertions about collections, including nested collections.
LoneElement
to assert against single-element collections.TryValues
to facilitate assertions about Try
values.AsyncAssertions
to
org.scalatest.concurrent
.ScalaFutures
to help write tests involving Scala futures.Checkpoints
, which allows you to accumulate and report multiple assertions in a single test.Matchers enhancements
org.scalatest.Matchers
; deprecated
ShouldMatchers
and MustMatchers
.contain
matcher syntax so it an be used to make richer assertions with oneOf
, noneOf
, allOf
,
atLeastOneOf
, atMostOneOf
, inOrder
, only
, inOrderOnly
, theSameElementsAs
,
and theSameElementsInOrderAs
.all
, every
, atLeast
atMost
, between
, exactly
) to the matchers DSL.empty
matcher.a
and an
matcher syntax to check an object's class.thrownBy
matcher syntax for checking for expected exceptions.MatchResult
to improve runtime performance and enable
modification of error messages during matcher composition.Prettifier
and PrettyMethods
to org.scalautils
.have length
and have size
error messages to include the actual length or size.Ordering
instead of Ordered
for be </>/<=/>=
.Runner enhancements
Runner
.-s
to take a glob in addition to a complete, fully-qualified suite class name.AlertProvided
events periodically listing
tests that have been running longer than a specified time limit. (-W)Runner
a way to specify tests to run by full or partial ("wildcard") name (-z
).-PS
).-eU
), and
file reporters (-fU
) for helping debug problematic parallel test runs.-i
command line argument to Runner
to provide a way to specify a suite by suite ID. This complements
the -s
command, which allows you to identify a suite by fully qualified name. The -i
command was added primarily to allow IDEs
and other tools to rerun failed (or otherwise selected) tests.-t
to Runner
, a way to specify a specific test name. A
-t
clauses may follow -s
or -i
, or be standalone. All -t
's immediately following a -s
or
-i
will be considered tests of the suite specified by that -s
or -i
.
If -t
<test name>
appears standalone, Runner
will execute any tests with matching names on
any suite discovered in the runpath.
-z
argument to Runner
, a means to specify test names via a
wildcard: any test whose string name includes the string specified with -z
will be selected. -z
clauses may follow
-s
or -i
clauses, or be standalone. All -z
's immediately following a -s
or -i
will be considered wildcards
selecting tests of the suite by that -s
or -i
. If -z
<test name wildcard>
appears standalone,
Runner
will execute any tests with matching names on any suite discovered in the runpath.
-PS
argument to Runner
. -T
plus one second is used for suite sorting.ParallelTestExecution
, with a timeout if
a test takes too long.
Added sortingTimeout
to ParallelTestExecution
, the default of which is to use the timeout specified to Runner
via
-T (or 15 seconds if no -T given), but you can override the method. Added trait
DistributedTestSorter
to support this feature, and a field holding
a DistributedTestSorter
in Args
Enhancements for better tools integration
CPU
,
Disk
,
Network
, and reporting these as sbt's built-in resource tags, Tags.CPU
,
Tags.Disk
, and Tags.Network
.Location
, three case
subclasses LineInFile
,
TopOfMethod
,
and TopOfClass
, and singleton
object SeeStackDepthException
.Finders
annotation that specifies one or more Finders
that can
be used to determine selected tests from an AST in IDEs.Runner
features are accessible to Maven users.Runner
features are accessible to Ant users, including Gradle and Buildr users who often go through the Ant task.Runner
accessible to the users of sbt, which was not possible with the original Framework API. Support for the
new Framework API was released as part of sbt 0.13.Event model enhancements
DiscoveryStarting
and DiscoveryCompleted
events, and enhanced the GUI reporter to use these events to show a spinning icon during discovery.ScopeOpened
and
ScopeClosed
events to indicate scopes, such
as the scope of a describe
clause in a FunSpec
.
Previously a “scope opened” event was indiciated via an
InfoProvided
events
with IndentedText
.MarkupProvided
event to
indicate some markup text has been provided.testText
field to all test events (TestStarting
,
TestIgnored
,
TestPending
,
TestCanceled
,
TestFailed
,
and TestSucceeded
), primarily for integration
with IntelliJ IDEA. The “test text” is either the complete test name or a suffix of it. In a
FunSpec
, for example, the test text will be the string
passed to the it
method, whereas the full test name will be the test text prefixed by the strings passed to enclosing
describe
method calls.location
, an Option[Location]
field, to class Event
.suiteId
to relevant events: TestStarting
,
TestSucceeded
,
TestFailed
,
TestFailed
,
TestPending
,
TestCanceled
,
SuiteStarting
,
SuiteCompleted
,
SuiteAborted
. This enables tests run previously
to be dynamically tagged in future runs (because a dynamic tag requires both the testName
and suiteId
).recordedEvents
field to test completion events: TestPending
,
TestSucceeded
,
TestFailed
,
and TestCanceled
. Added sealed
trait RecordedEvent
, which extends
Event
and has two subtraits:
InfoProvided
and
MarkupProvided
. Prior to 2.0,
InfoProvided
events were recorded during tests and played back after, so that they could appear
after the test text in the standard out reporter, and in a color that matched that of the test text. The color of the test text (green
if passed, red if failed, yellow if pending, etc.) could not be known until after the test had completed. By sending recorded events along
with the test completion event, rather than playing them back afterwords, it is easier for Reporter
s to figure out when the last event for
a test has been received.Miscellaneous enhancements
ScalaTest-main
. The run thread is ScalaTest-run
.
The dispatcher thread is ScalaTest-dispatcher
. Thread-pool threads for parallel execution are ScalaTest-N
. And main or thread-pool threads running
test suites are renamed to ScalaTest-running-<name of suite>
, then changed back again once the suite has completed.NoArg
to support a relatively rare use case motivated by Akka's TestKit.Slow
tag for marking slow tests.TimesOnInt
, which allows you to repeatedly
execute a block of code an integer number of times via syntax such as, 3 times println
.Or
and Every
to ScalaUtils, allowing you to
represent errors in production code as “alternate return values” (like Either) and to optionally accumulate errors.Although we have worked hard to ensure the vast majority of ScalaTest 1.x code to compile under 2.0, ScalaTest 2.0 does include a few enhancements that can break existing code. To see the list, and learn how to migrate your code if affected, see the migration guide.
before
/afterEach(TestData)
methods in BeforeAndAfterEach
in favor of BeforeAndAfterEachTestData
.FailureOf
in favor of OutcomeOf
.expect
and expectResult
in Assertions
in favor of assertResult
.Suite
as a style trait in favor of newly added Spec
.assert
and assume
methods whose ===
and !==
operator return Option[String]
in favor of assert
and assume
macros that return Boolean
.
plusOrMinus
operator used with Matchers
in
favor of the +-
symbol.ShouldMatchers
and MustMatchers
, both members of package
org.scalatest.matchers
, have been deprecated in favor of Matchers
,
which resides in package org.scalatest
. (MustMatchers
was actually already deprecated in ScalaTest 1.9.2.) For folks using
ShouldMatchers
, getting rid of the deprecation warning should be as simple as replacing org.scalatest.matchers.ShouldMatchers
with
org.scalatest.Matchers
. For folks using MustMatchers
, however, it will unfortnately be slightly more trouble, because the new
Matchers
trait only supports should
not must
. must
with should
. MustMatchers
and must
will continue to work for a good long deprecation period,
but eventually it will be removed to make way for must
possibly coming back later to serve a different purpose. Apologies for this rather large deprecation.MustMatchers
was resurrected in 2.1.0 in the org.scalatest
package, so there's no need anymore to change must
to should
. In fact, the org.scalatest.MustMatchers
type alias was accidentally left undeprecated in 2.0, so where you
are mixing in trait org.scalatest.matchers.MustMatchers
, you can in 2.0 get rid of the deprecation warning by mixing in
org.scalatest.MustMatchers
instead.
beforeAll
and afterAll
methods of trait
BeforeAndAfterAll
that take a config map
in favor of newly added BeforeAndAfterAllConfigMap
.
given
/when
/then
/and
methods of trait
GivenWhenThen
in favor of capitalized forms,
Given
/When
/Then
/And
, because then
has been deprecated as an identifier in Scala 2.10.
apply
methods on Filter
, and added
two new ones that take an additional suiteId
parameter.AbstractSuite
in favor of newly added trait SuiteMixin
, to serve as the new base class
for stackable traits that can be mixed into Suite
.apply
method on Distributor
in favor of a newly added
overloaded apply
method that takes a Args
.
During the deprecation period, the old form will call the new form with default args. The purpose of this change was to make more information available
to Distributor
implementations.BeforeAndAfterEachFunctions
and BeforeAndAfterAllFunctions
, which had been deprecated since ScalaTest 1.6.1. If you haven't
done so already, you'll need to use BeforeAndAfter
instead of BeforeAndAfterEachFunctions
, and BeforeAndAfterAll
instead
of BeforeAndAfterAllFunctions
.MultipleFixtureFeatureSpec
, MultipleFixtureFlatSpec
, MultipleFixtureFreeSpec
,
MultipleFixtureFunSuite
, MultipleFixturePropSpec
, MultipleFixtureSpec
, and MultipleFixtureWordSpec
, which had been
deprecated since ScalaTest 1.6.1. If you haven't done so already, you'll need to mix in
ConfigMapFixture
to a fixture.X
trait instead.org.scalatest.SuperSuite
, which had been deprecated since ScalaTest 1.5. Please use
Suites
instead.Stopper
companion object that converted a Stopper
to function
type () => Boolean
. This
implicit conversion was added when the inheritance relationship between Stopper
and Function0[Boolean]
was severed to make
it possible for Stopper
to be implemented in Java. (Severing this relationship was originally a request by the IntelliJ IDEA folks, who
wanted to write integration code in Java to smooth over binary incompatibilities between different Scala versions.)Reporter
to Event => Unit
function type in the Reporter
companion
objecgt, which had been deprecated since ScalaTest 1.5.Rerunner
to Function7
, which had been deprecated since ScalaTest 1.5.For historians, the detailed history page preverves relevant sections of the individual release notes for major 2.0 milestones and release candidates. For a quicker to read and more understandable overview, see the Highlights section above.
ScalaTest 2.0 is brought to you by Artima, Inc., where it is tended by Bill Venners, Chua Chee Seng, and George Berger. We would like to thank all our users for their suggestions and input, everyone who has contributed source code or reviewed our work-in-progress, and our financial sponsors (who prefer to remain unamed). Without your guidance and support, ScalaTest 2.0 would not have been possible.


WITNESS LIST State Affairs Committee March 8, 1999-1:30P HB 930 For: Smith, Tom "Smitty" (Public Citizens Member) Against: Collins, Wayne (Mayor-City of Dimmitt, Tx. Panhandle Regional Planning Comm) Jackson, Jim (Self and North Central Texas Council of Governments) Jaecks, Dale (Self and Central Texas Council of Government, as Chairman of CTCOG) Kendrick, Don (Self and South Plains Association of Governments, Board Member) Moreno, Jr., Frank (Middle Rio Grande Development Council) Simpson, H. Frank (Houston-Galveston Area Council) Thompson, John P. (Texas Association of Councils of Government; Deep East Texas Council of Government) Registering, but not testifying: Against: Driscoll, Kay (Heart of Texas Council of Governments) Hallmark, Waymon (South East Texas Regional Planning Commission Mr. Don Kelly) HB 1208 On: Cantreras, Dan (Texas Incentive & Productivity Commission as Associate Director) Jones, Jennifer (Sunset Commission) Registering, but not testifying: On: Bloom, Ed (Texas Incentive and Productivity Commission as Executive Director) Levine, Ken (Sunset Commission Staff) Wissolik, Erica (Sunset Commission) HJR 12 For: Barton, Joe (US House of Representatives) Clark, Jeff (Texas Association of Business and Chambers of Commerce) Furse, Austin (Texans for Tax Limits) Stubbs, C.A. (Citizens Against Government Waste, as State Chairman) Venable, Peggy (Texas Citizens for A Sound Economy) Registering, but not testifying: Against: De Luna-Castro, Eva (Center for Public Policy Priorities) Electric Restructuring For: Barton, Joe (US House of Representatives) Magruder, Kathleen E. (Enron Corp) Palmer, Raymond (New Energy Ventures) Raymond, Alan (Shell Energy Services Co. LLC) On: Briesemeister, Janee (Consumers Union) Marston, Jim (Environmental Defense Fund) McClellan, Suzi (Office of Public Utility Counsel) Saitas, Jeffrey (Self) Schaeffer, Steve (Reliant Energy) Stansell, Wade (Association of Electric Companies) Walsh, Judy (Public Utility Commission) Wood III, Pat (Public Utility Commission)


Enumeration members
BAD_FORMAT
BAD_FORMAT: = "BAD_FORMAT"
BURIED
BURIED: = "BURIED"
DEADLINE_SOON
DEADLINE_SOON: = "DEADLINE_SOON"
DELETED
DELETED: = "DELETED"
DRAINING
DRAINING: = "DRAINING"
EXPECTED_CRLF
EXPECTED_CRLF: = "EXPECTED_CRLF"
INSERTED
INSERTED: = "INSERTED"
INTERNAL_ERROR
INTERNAL_ERROR: = "INTERNAL_ERROR"
JOB_TOO_BIG
JOB_TOO_BIG: = "JOB_TOO_BIG"
KICKED
KICKED: = "KICKED"
NOT_FOUND
NOT_FOUND: = "NOT_FOUND"
NOT_IGNORED
NOT_IGNORED: = "NOT_IGNORED"
OUT_OF_MEMORY
OUT_OF_MEMORY: = "OUT_OF_MEMORY"
PAUSED
PAUSED: = "PAUSED"
RELEASED
RELEASED: = "RELEASED"
RESERVED
RESERVED: = "RESERVED"
TIMED_OUT
TIMED_OUT: = "TIMED_OUT"
TOUCHED
TOUCHED: = "TOUCHED"
UNKNOWN_COMMAND
UNKNOWN_COMMAND: = "UNKNOWN_COMMAND"
WATCHING
WATCHING: = "WATCHING"
Messages


Create New Issue
Subtext
Project
Project1
Project2
Project3
Project4
Project5
Type
Issue
Bug
Requirement
Short Description/Title
Long Description
Reporter
Priority
P1
P2
P3
P4
P5
Assigned to.....(Option)
Submit


In section \ref{sec:delayed-lists}, we showed how to
implement streams as delayed lists.
We used a function definition expression
to construct a promise
to compute
the
tail
of a stream, without actually fulfilling that promise
until later.
We were forced to create streams as a new kind of data object
similar but not identical to lists, and this required us to
reimplement many ordinary list operations
(map,
append, and
so on) for use with streams.
With lazy evaluation, streams and lists can be identical, so there is no need for separate list and stream operations. All we need to do is to arrange matters so that pair is non-strict. One way to accomplish this is to extend the lazy evaluator to allow for non-strict primitives, and to implement pair as one of these. An easier way is to recall (section \ref{sec:data?}) that there is no fundamental need to implement pair as a primitive at all. Instead, we can represent pairs as functions:[1]
function pair(x, y) { return m => m(x, y); } function head(z) { return z( (p, q) => p ); } function tail(z) { return z( (p, q) => q ); }
In terms of these basic operations, the standard definitions of the list operations will work with infinite lists (streams) as well as finite ones, and the stream operations can be implemented as list operations. Here are some examples:
function list_ref(items, n) { return n === 0 ? head(items) : list_ref(tail(items), n - 1); } function map(fun, items) { return is_null(items) ? null : pair(fun(head(items)), map(fun, tail(items))); } function scale_list(items, factor) { return map(x => x * factor, items); } function add_lists(list1, list2) { return is_null(list1) ? list2 : is_null(list2) ? list1 : pair(head(list1) + head(list2), add_lists(tail(list1), tail(list2))); } const ones = pair(1, ones); const integers = pair(1, add_lists(ones, integers)); list_ref(integers, 17); // returns 18
Note that these lazy lists are even lazier than the streams of chapter 3: The head of the list, as well as the tail, is delayed.[2] In fact, even accessing the head or tail of a lazy pair need not force the value of a list element. The value will be forced only when it is really needed—e.g., for use as the argument of a primitive, or to be printed as an answer.
Lazy pairs also help with the problem that arose with streams in section \ref{sec:streams-and-delayed-evaluation}, where we found that formulating stream models of systems with loops may require us to sprinkle our programs with additional delayed function definitions, beyond the ones required to construct a stream pair. With lazy evaluation, all arguments to functions are delayed uniformly. For instance, we can implement functions to integrate lists and solve differential equations as we originally intended in section \ref{sec:streams-and-delayed-evaluation}:
function integral(integrand, initial_value, dt) { const int = pair(initial_value, add_lists(scale_list(integrand, dt), int)); return int; } function solve(f, y0, dt) { const y = integral(dy, y0, dt); const dy = map(f, y); return y; } list_ref(solve(x => x, 1, 0.001), 1000);
lazierlazy lists described in this section. How can you take advantage of this extra laziness? \end{Exercise} \stepcounter{ExerciseDisplayNumber} \begin{Exercise} Ben Bitdiddle tests the lazy list implementation given above by evaluating the expression
head(list(a, b, c));
listsobtained by reading in quoted expressions are different from the lists manipulated by the new definitions of pair, head, and tail. Modify the evaluator's treatment of applications of the primitive function l list typed at the driver loop will produce true lazy lists. \end{Exercise} \stepcounter{ExerciseDisplayNumber} \begin{Exercise} Modify the driver loop for the evaluator so that lazy pairs and lists will print in some reasonable way. (What are you going to do about infinite lists?) You may also need to modify the representation of lazy pairs so that the evaluator can identify them in order to print them. \end{Exercise}
lazy trees.


U.K.'s Fredo Has Better Things To Do Than "Netflix & Chill"
Fredo is back in the mix with a brand new single.
by Aron A.Netflix & Chill
Fredo
Editor Rating: VERY HOTTTTT
User Rating: hottttt - 66% (8)
U.K.'s Fredo has been experiencing a monumental year in 2019. He's been leading the U.K. drill wave and dropped his debut album Third Avenue at the top of the year and continued to make major moves. He was included on the Top Boy soundtrack and recently, linked up with Popcaan and Tory Lanez for Stay Flee Get Lizzy's new song, "2 Cups." Now, he returns with a brand new banger titled, "Netflix & Chill."  The rapper gets in a melodious bag on this record as he continues to portray the U.K. streets over guitar-driven production.
Perhaps this could kick off a campaign for a new project in the new year. Keep your eyes peeled.


--- layout: post status: publish published: true title: Podcast 4.35 - Wait 'til 2018! author: display_name: Corey Fineran login: Corey email<EMAIL_ADDRESS>url: '' author_login: Corey author_email<EMAIL_ADDRESS>wordpress_id: 7809 wordpress_url: http://ivyenvy.com/?p=7809 date: '2012-09-16 21:14:07 +0000' date_gmt: '2012-09-17 02:14:07 +0000' categories: - Podcast tags: - cubs - Josh Vitters - Dave Sappelt - September Call-ups - Cubs 2013 Schedule comments: [] ---
Andy, Corey, Kurt and Jeremy convene to talk about the Cubs as we enter the last few weeks of the 2012 season. We look at the 2013 schedule and note that the Cubs have some rough stretches facing them. We check in on Brett Jackson and Josh Vitters, and discuss the idea of Vitters as a legitimate option for the future of 3rd base.
We look at the September call-ups, which basically amounts to noting the Dave Sappelt is playing well. We talk more about the Cubs pulling out of Peoria, and we wait for the announcement to be made. Then, we go through some listener-submitted questions.
Kurt gives us his scary stat of the week and we pick a winner for this week's photo caption contest.


Congratulations, you should now have an instance of scrollnav on your page, but wait, why doesn’t it look like the examples?
To keep the library simple and avoid inheritence issues, scrollnav doesn’t come bundled with default styles. I’ve created a few demos to give you some general direction, but it’s completely up to you to make scrollnav work for your specific situation.
Markup structure
scrollnav follows BEM (Block, Element, Modifier) Methodology for
providing class names to its markup. scroll-nav
is the block, with __list
,
__item
, and __link
as elements. The structure looks like this.
nav.scroll-nav
ol.scroll-nav__list
li.scroll-nav__item.scroll-nav__item--active
a.scroll-nav__link
For a good overview on BEM Methodology, read MindBEMding - getting your head ‘round BEM syntax
Active highlighting
When a user scrolls the document, scrollnav watches for each section to pass
the threshold of the active area. As that happens the --active
modifier is
added to the __item
element (and subsequently removed from previously active
item). Use this to change or udpate the look of the active items in the
nav.
To view the location of the active area threshold
within your document enable debug
mode from scrollnav’s list of
additional options.


TabView Class
Provides a set of tabs to show alternate content on the screen.
Each tab is described by an object within the tabs
array in the initial configuration.
The array is required to ensure the order of the tabs.
Individual tabs can be left-justified or right-justified.
The left-justified are usually the variable ones,
new tabs can be added to them and existing ones removed.
If the canClose
configuration property is true or missing,
the markup in the closeTag will be shown
by the label.
The right-justified, if present, are usually fixed in number.
Each tab is identified by a name
that should be unique within the TabView.
The label
property provides the text to be shown in the tab.
This can be localized and if missing, it defaults to the name
.
The content
should be an instance of Parcel,
In the tabs configuration, a separator marks the split point in between the sets of left and right justified tabs.
A null
will not be displayed. Any other thing will produce a tab with no contents
and its label given by the markup in the moreTag property.
When clicked the more event is emitted for the application to add a new tab.
Constructor
TabView
-
config
Parameters:
-
config
Objectconfiguration options
-
[selected]
String optionalname of the tab to be shown, defaults to the first.
-
[canClose]
Boolean optionaladds a close icon to each of the left-justified tabs.
-
tabs
Array of Objects OR StringSet of tabs to display. It has to be an array to ensure the order of the tabs. Each entry can be:
null
: It acts as an invisible separator. The tabs before it will be left-justified, the ones after, right justified. Thenull
will not take any space.- Anything not an object or
null
: It acts as a separator, just asnull
but a tab with no content will be shown, containing the markup produced by moreTag. When clicked, it emits the more event. It is meant to be used as a cue to add extra tabs. - An object, containing the following properties
-
tabs[n].name
StringInternal identifier for the tab.
-
[tabs[n].label]
String optionalLabel to be shown on the tab, defaults to its
name
. -
tabs[n].content
ParcelInstance of Parcel to be shown when this tab is selected.
-
Example:
{
tabs: [
{
name: 'firstTab'
label: 'First Tab to the Left',
content: new Parcel('whatever')
},
....
null, // separator
{
name: 'firstRightTab'
label: 'First Tab to the right of the separator',
content: new Parcel('something else')
},
...
],
selected: 'firstTab'
}
Item Index
Methods
Properties
Events
Methods
_firstAvailable
()
private
Returns the first tab that is not a separator.
Returns:
configuration entry of the first tab that is not a separator
_onClick
-
ev
Responds to clicks on the regular tabs (not the separator) by calling setting the selected property.
Parameters:
-
ev
DOMEvent
_onClose
-
ev
Responds to a click on the close x
mini-icon on the tab by calling
the remove method.
Parameters:
-
ev
DOMEvent
_onMore
-
ev
Responds to clicks on the visible separator emitting the more. Propagation and default action of the event is halted.
Parameters:
-
ev
DOMEvent
add
-
tab
-
[select=true]
Adds a new tab to the right-most position of the left-justified set. Emits the added event.
Parameters:
-
tab
ObjectTab configuration:
-
name
StringIdentifier for this tab.
-
[label=tab.name]
String optionalLabel to be shown in the tab.
-
content
ParcelParcel to show when the tab is selected.
-
-
[select=true]
Object optionalWhether the added tab becomes active, defaults to true.
addListener
-
name
-
listener
Adds a listener to the end of the listeners array for the specified event. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of event and listener will result in the listener being added multiple times.
Parameters:
-
name
StringIdentifier of the event to subscribe to
-
listener
FunctionCallback function to receive the event
Example:
server.addListener('connection', function (stream) {
console.log('someone connected!');
});
Returns emitter, so calls can be chained.
destructor
()
protected
Drops the references to the tab contents. It does not call the destructors of the Parcels that make up that content, it simply drops the references to them.
emit
-
name
-
[arg*]
Execute each of the listeners in order with the supplied arguments.
Returns true if event had listeners, false otherwise.
Parameters:
-
name
StringIdentifier of the event being emitted
-
[arg*]
Object optionalArguments to be provided to the listeners
Returns:
true if event had listeners subscribed to it
getTab
-
name
Returns the configuration entry for the given tab.
Parameters:
-
name
StringName of the tab information sought.
Returns:
Configuration entry for the tab or null
if not found.
listeners
-
name
Returns an array of listeners for the specified event.
Parameters:
-
name
StringName of the listeners to count
Returns:
Number of listeners
Example:
server.on('connection', function (stream) {
console.log('someone connected!');
});
console.log(util.inspect(server.listeners('connection'))); // [ [Function] ]
on
-
name
-
listener
Adds a listener to the end of the listeners array for the specified event. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of event and listener will result in the listener being added multiple times.
Parameters:
-
name
StringIdentifier of the event to subscribe to
-
listener
FunctionCallback function to receive the event
Example:
server.on('connection', function (stream) {
console.log('someone connected!');
});
Returns emitter, so calls can be chained.
once
-
name
-
listener
Adds a one time listener for the event. This listener is invoked only the next time the event is fired, after which it is removed.
Parameters:
-
name
StringIdentifier of the event to subscribe to
-
listener
FunctionCallback function to receive the event
Example:
server.once('connection', function (stream) {
console.log('Ah, we have our first user!');
});
Returns emitter, so calls can be chained.
remove
-
name
Removes the named tab. If the tab removed is active, the first available tab will be selected. Fires the remove event.
Parameters:
-
name
StringIdentifier for the tab to be removed
removeAllListeners
-
[name]
Removes all listeners, or those of the specified event. It's not a good idea to remove listeners that were added elsewhere in the code, especially when it's on an emitter that you didn't create (e.g. sockets or file streams).
Returns emitter, so calls can be chained.
Parameters:
-
[name]
String optionalidentifier of the events to be removed
removeListener
-
name
-
listener
Remove a listener from the listener array for the specified event. Caution: changes array indices in the listener array behind the listener.
Parameters:
-
name
Stringidentifier of the event to remove
-
listener
Functioncallback that handled the event
Example:
var callback = function(stream) {
console.log('someone connected!');
};
server.on('connection', callback);
// ...
server.removeListener('connection', callback);
removeListener will remove, at most, one instance of a listener from the listener array. If any single listener has been added multiple times to the listener array for the specified event, then removeListener must be called multiple times to remove each instance.
Returns emitter, so calls can be chained.
setMaxListeners
-
n
By default EventEmitters will print a warning if more than 10 listeners are added for a particular event. This is a useful default which helps finding memory leaks. Obviously not all Emitters should be limited to 10. This function allows that to be increased. Set to zero for unlimited.
Returns emitter, so calls can be chained.
Parameters:
-
n
Numbermaximum number of listeners to accept
stamp
()
Value
Returns a value representative of the state of this parcel. The system will compare it with the previous state and if they match, it will assume the view has not changed.
The default function returns NaN
which is always different than itself.
It may be overriden for optimization purposes.
Returns:
any simple value (no objects or such) that reflects the state of this view
view
-
v
Returns the virtual DOM for this parcel.
Must be overriden by each Parcela app. By default, it returns the value of the text property.
A virtual DOM node is composed of the following elements:
tag
{String}: Name of the HTML tag for the node to be created.attrs
{Object}: Collection of HTML attributes to be added to the node.children
{Array}: Array of virtual DOM nodes that will become children of the created node.
As a convenience, this method receives a reference to the vDOM.vNode
helper function to produce the virtual DOM node, however it may be ignored as long as a
virtual DOM node is somehow returned.
Parameters:
-
v
FunctionReference to the
vDOM.vNode
helper function.
Returns:
The expected virtual DOM node for this parcel.
Example:
view: function (v) {
return v('div', [
v('p.joyful','Hello Workd!'),
v('hr'),
v('p','(Not very original, really)')
]);
}
// Equivalent to:
view: function (v) {
return {tag:'div', attrs:{},children: [
{tag:'p', attrs:{className:'joyful'}, children:['Hellow World!']},
{tag:'hr', attrs: {}, children: []},
{tag:'p', attrs:{}, children:['(Not very original, really)']}
]};
}
Properties
_canClose
Boolean
private
Defines whether a close icon will be added to the left-justified tabs.
Default: true
_selected
Object
private
Reference to the active tab.
Default: first available tab
_tabs
Array
private
Array of tab configuration entries.
attributes
Object
Hash map of attributes for the container element
Default: :null
className
String
CSS className to add to the container for this parcel.
This is in addition to the className of parcel
which is
automatically added to all Parcel containers.
Default: ''
closeTag
String
vNode tag argument for the icon to be used as a close symbol in the tab.
The default is the close icon from Font Awesome. It could be replaced by an img
tag or a div
with a suitable className.
Default: 'i.fa.fa-close'
containerType
String
Type of DOM element that will be created to serve as a container for this Parcel.
Defaults to a DIV
Default: DIV
moreTag
String
vNode tag argument for the icon to be used to label the tab to add more tabs.
The default is the plus icon from Font Awesome. It could be replaced by an img
tag or a div
with a suitable className.
Default: 'i.fa.fa-plus'
selected
String
Sets/gets the name of the tab currently active.
When setting, if the selected tab is not already selected, it shows the seleted tab and fires the selected event.
Default: first tab
text
String
String to be shown within the container.
This is used, mostly, for initial testing of layouts, to have something to show within the parcel. It is rarely used in the final product.
Events
added
Fires when a tab is added.
Event Payload:
-
tab
Objectconfiguration setting for the new tab.
more
Fired when the separator in between the left-justified tabs and the right-justified ones is clicked. It is presumed that the purpose of this separator is to add more tabs to the set, hence its name.
Event Payload:
-
ev
DOMEventoriginal click event as received from the browser.
newListener
This event is emitted any time a listener is added. When this event is triggered, the listener may not yet have been added to the array of listeners for the event.
Event Payload:
-
name
StringIdentifier of the event being subscribed
-
listener
Functionthe listener
remove
Fires when a tab is removed.
Event Payload:
-
name
StringIdentifier of the tab removed
-
tab
ObjectConfiguration entry of the removed tab
removeListener
This event is emitted any time someone removes a listener. When this event is triggered, the listener may not yet have been removed from the array of listeners for the event.
Event Payload:
-
name
StringIdentifier of the event being subscribed
-
listener
Functionthe listener
selected
Fires when a new tab is selected and becomes active. It does not fire if the tab is already selected.
Event Payload:
-
newTab
StringName of the tab selected
-
oldTab
StringName of the previously selected tab


ACL Essex
Provider information
ACL Essex is an established apprenticeship provider covering the whole of the county. Linked to Essex County Council we offer high quality apprenticeship programmes that meet the needs of local employers.
Our dedicated and professional team deliver programmes up to and including level 5. We can support new employees and help develop existing staff and managers.
Training is bespoke to your business and will include an element of classroom delivery as part of the programme.
All of our delivery staff have industry experience and a wealth of knowledge in their subject area.
We offer the following apprenticeships: Health & Care, Management, Administration, Supporting Teaching & Learning, Customer Service, Childcare, Accounting, Pharmacy and Hair.
Content maintained by ACL Essex
All training locations
| Location | Address | Course count | |
|---|---|---|---|
| Basildon | ACL Basildon, Broadmayne, Churchill Avenue, Basildon, Essex, SS14 3SG | 10 | Details |
| Braintree | ACL Braintree, Broadmayne, Churchill Avenue, Braintreee, Essex, BR11 3SG | 9 | Details |
| Chelmsford | ACL Chelmsford, Broadmayne, Churchill Avenue, Basildon, Essex, CM4 3SS 3SG | 5 | Details |
| Harlow | ACL Harlow, Broadmayne, Churchill Avenue, Harlow, Essex, CM9 13XL | 14 | Details |
Give us your feedback
This is a new service and your feedback will help us improve it.
Use the link below to take part in a short survey.
Content disclaimer
Skills Funding Agency cannot guarantee the accuracy of course information on this site and makes no representations about the quality of any courses which appear on the site. Skills Funding Agency is not liable for any losses suffered as a result of any party relying on the course information provided.


We do not have a storefront as of yet, everything is made at home! Once you have filled out the form we will be happy to help you out!


A user accesses a website by typing in a url, sending this information to a server via the Internet using HTTP. The server replies back with the data to display to the user and the browser interprets this HTTP reply and displays this information in the browser. This video is a good video to explain this.
HTMLHTML stands for Hypertext Markup Language. HTML documents form the majority of the content on the web, HTML documents contain Text, markups, images, videos, links. HTML documents contain text content which describes "what you see" and markup which describes "how it looks". This video shows this.
Tags and ElementsHTML documents are made of HTML elements. Elements are what is shown between different tags. There are also attributes which help give the property of the html tag like an image or link location. This video explains the distinction well.
 The programmer who works with them has to be smart and know what the computer is looking for at all times to display what they want to display
Inline vs Block ElementsHTML elements are either inline or block. Block elements form an "invisible box" around the content inside of them. Block tag: will block off exactly the formatting in HTML and translate that exactly to the page in that block. Inline tags can write text all on same line with diff formatting to happen on webpage.


Welcome to PassPRO! A browser plugin that allows the user to have a master password that controls randomized and secure passwords for a variety of accounts on websites throughout the internet. This localizes the process and securing of password information to the users computer, while keeping the login experience as seamless as possible for the user. No more annoying copy/pasting!


A multifunctional Discord bot in development that allows you to easily control your discord server.
A multifunctional Discord bot in development that allows you to easily control your discord server.
Previously, people have copied code from here and hosted their own instance without permission. We have trusted the public and made it a public repository again. Please do not host your own instance, instead, invite RemixBot here. If you wish to ask about or borrow any small snippets of code, please ask in our discord server before doing so. Thanks.
If you need support with the bot or would like to contribute to RemixBot, join the discord server and ask any of the people with the RemixBot Devs role. Make sure to read the Contributor Covenant Code of Conduct and agree to it before becoming a contributor.
This bot has finished the stages of it where there will be lots of bugs, and we have decided to release an early official version. It will still be actively worked on, but there will be less bugs. If you spot any, open an issue on this repo or use the suggest command.


Comments
-
Greg Hurrell
What version of iTunes are you using? iTunes doesn't increment the played count when you skip tracks for any of the versions of iTunes that I've tested over the years.
There are some more notes on this (for Synergy Advance) here:
http://wincent.com/a/products/synergy-advance/help/preferences/advanced/
I'll paste in the relevant bits here:
iTunes keeps count of the number of times that you have listened to the tracks in your music library. To be precise, it increments the "played count" whenever it comes ot the end of a track. This means that if you listen to a track in part but do not allow playback to continue all the way to the end then the played count will not be incremented.
Some users would prefer to have the played count increment whenever they listen to a song, even if only part of it. You can use the "Increment track played count when skipping to next track" setting to achieve this goal. When this setting is set, Synergy Advance will increment the played count by one whenever you skip forward to the next track (by using a Synergy Advance hot key or the Global Menu). If you skip tracks using iTunes itself then Synergy Advance will not intervene or increment the play count. In this way you have can choose whether the count should be incremented: to increment the count when skipping tracks use Synergy Advance to perform the skip; to avoid incrementing the count use iTunes itself to perform the skip.
Note that this setting only applies when skipping forwards through the playlist (using the "Next track" menu item or hot key). It will not have any effect when skipping backwards through the playlist.
-
bugzilla user 462
iTunes 7.3 (54)
Understand about the play count; I'm talking about the skip count.
-
Greg Hurrell
(In reply to comment #2)
Understand about the play count; I'm talking about the skip count.
Ah, sorry about that.
I seem to recall having a conversation about this with someone previously but I can't find any trace of it, so I'll resume it here:
This kind of thing is a bug in iTunes and so there are two things that must be done:
1. Report the bug to Apple (they probably already know about it, but it seems that they prioritize things which get more reports)
2. Try to implement a workaround in the meantime.
So first of all, why is it a bug in iTunes? Basically the expectation is that iTunes should behave identically regardless of whether you control it using the keyboard (when iTunes is frontmost), or the mouse (the iTunes Dock menu or control buttons), or via AppleScript or Apple Events (as is the case in Synergy). Any discrepancy among the various different methods is an inconsistency within iTunes itself and needs to be corrected within iTunes itself.
If you want to confirm this for yourself open up the Script Editor (in /Applications/AppleScript/) and try running a script like this:
tell application "iTunes" to next track
And observe the behaviour, comparing it with other methods. It should be identical (and Synergy should behave exactly like when you send the command from within the Script Editor) but your comments suggest that this is not the case due to the bug in iTunes.
So the most important thing to do is file a bug report with Apple. You can use the general iTunes feedback link:
http://www.apple.com/feedback/itunesapp.html
More effective would be to file using their bug reporter:
Seems that reports filed via the bug reporter are more likely to be seen by an actual iTunes engineer. In order to use their bug reporter you need an ADC account; if you don't have one already you can sign up for free at:
Now, onto the subject of the workaround. It should be possible for Synergy to automatically increment the skipped count to compensate for the flaw in iTunes. If Apple ever fixes the bug then I can remove the compensation. It appears that the skipped count is accessible via AppleScript/Apple Events, and it is *not* a read-only property so in theory could be adjusted by an external process.
So I am going to mark this request as ASSIGNED and reword the summary a bit to describe what needs to be done.
-
bugzilla user 462
Opened bug 5319669
-
bugzilla user 462
Hrm, this suddenly started working with 7.3.1 (3), still version 3.1.3 of synergy, so I'm guessing they "fixed the glitch".
-
Greg Hurrell
Well, I'll mark this as CLOSED for now, and if it ever creeps back in to a future version of iTunes we'll reopen this one.
Add a comment
Comments are now closed for this issue.


Home
Name&Email
Date
Worning
By leaving this page you might loose some information.
Pick A Date
Choose your option
wedding
School Dance
Dance
Background Music
Music Request For
Next
arrow_forward


Hello WAMP/Browser - entry page
Please open one each of
Frontend
Backend
(right click and open in new tab)


| Please join us for an informative webinar session discussing |
| Stroke Quality Measures and CMS Reporting |
| Presented by |
Patricia Lane MBA, BSN, RN
Administrative Director Neurosciences
Bon Secours Richmond Health System, St. Mary’s Hospital
Richmond, VA |
| Hosted by |
| Genentech, Inc. |
| Session objectives include |
| • |
Review stroke in the United States |
| • |
Discuss stroke quality measures and reporting requirements |
| • |
Review CMS reporting regulations’ impact on stroke care and healthcare institutions |
| • |
Provide perspective on the future of stroke quality reporting and the culture of quality |
|
| Event information |
February 26, 2014
9am PT / 12pm ET
12pm PT / 3pm ET
|
| Register now! |
| Please register at http://login.xyvid.com/register/registration.aspx?meet_id=stroke0226141. |
| Target audience: emergency physicians, neurologists, stroke coordinators, hospital administrators, and emergency department staff involved in the treatment of stroke. |
| If you have any questions regarding this session, please contact your local Genentech representative. |
| Note: No CEUs will be offered for attending this session. |
| Minnesota, Vermont, the Department of Defense, and the Department of Veterans Affairs have restrictions on receiving in-kind benefits (eg, meals, parking) at company-sponsored events. You are accountable for understanding such restrictions and complying with them. If you are licensed in or affiliated with any of these states or federal agencies, Genentech policies may restrict you from consuming any portion of the Genentech-sponsored meal at this program or from receiving any other in-kind benefit from Genentech (eg, parking) in connection with the program. |
| Genentech will report the names and the cost of the meals sponsored by Genentech for all program attendees who consume the meal as required for financial disclosure compliance. |
|
|
|
|