The prepayment server handles all implemented commands of the prepayment cluster server.
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_ADD_SNAPSHOT_EVENT
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_ADD_SNAPSHOT_EVENT |
plugin prepayment-server addSnapshotEvent [endpoint:1] [snapshotCause:4]
- Add a snapshot event to the prepayment server.
- endpoint - INT8U - Endpoint of the device from which the snapshot will be taken
- snapshotCause - INT32U - A bitmask indicating the cause of the snapshot
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_CHECK_CALENDAR
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_CHECK_CALENDAR |
plugin prepayment-server checkCalendar [utcTime:4]
- Check that UTC time and calendar dates can be interchanged correctly.
- utcTime - INT32U - The UTC time that should be tested.
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_GET_TOP_UP_PERCENT
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_GET_TOP_UP_PERCENT |
plugin prepayment-server getTopUpPercent [endpoint:1] [topUpValue:4]
- Determine the total top up percentage required for debt reduction.
- endpoint - INT8U - The endpoint from which the debt attribute set will be read.
- topUpValue - INT32U - The current top up value from which a percentage may be required for debt reduction
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_GET_WEEKDAY_FROM_UTC
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_GET_WEEKDAY_FROM_UTC |
plugin prepayment-server getWeekdayFromUtc [utcTime:4]
- Read the day of the week for a given UTC time.
- utcTime - INT32U - The UTC time that should be converted.
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_INIT
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_INIT |
plugin prepayment-server init [endpoint:1]
- Initialize the prepayment server and snapshot table.
- endpoint - INT8U - Endpoint of the prepayment server.
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_PUBLISH_PREPAY_SNAPSHOT
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_PUBLISH_PREPAY_SNAPSHOT |
plugin prepayment-server publishPrepaySnapshot [nodeId:2] [srcEndpoint:1] [dstEndpoint:1] [snapshotTableIndex:4]
- Send the publish prepay snapshot command.
- nodeId - INT16U - NodeId of the destination device
- srcEndpoint - INT8U - The source endpoint of the sending device
- dstEndpoint - INT8U - The destination endpoint of the receiving device
- snapshotTableIndex - INT32U - A unique identifier assigned by the device creating the snapshot
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_READ_DEBT_ATTRIBS
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_READ_DEBT_ATTRIBS |
plugin prepayment-server readDebtAttribs [endpoint:1] [index:1]
- Read the values from the debt attribute set for a given index (1,2,3).
- endpoint - INT8U - The endpoint from which the debt attribute set will be read.
- index - INT8U - The index of the debt attribute set to read - 1, 2, or 3.
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_READ_DEBT_LOG
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_READ_DEBT_LOG |
plugin prepayment-server readDebtLog [index:1]
- Read the values from the debt log from a specified index.
- index - INT8U - The index of the debt log to read.
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_SCHED_DEBT_REPAY
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_SCHED_DEBT_REPAY |
plugin prepayment-server schedDebtRepay [endpoint:1] [issuerEvtId:4] [debtType:1] [collectTime:2] [startTime:4] [collectFreq:1]
- Check that debt repayment handling correctly calculates and schedules various attributes.
- endpoint - INT8U - The endpoint of the prepayment server.
- issuerEvtId - INT32U - The issuer event ID for the debt.
- debtType - INT8U - The type of debt (0,1,2) that will be set.
- collectTime - INT16U - The time in mins from midnight when the debt should be collected.
- startTime - INT32U - The starting UTC time when debt should be collected.
- collectFreq - INT8U - The frequency at which debt should be collected. 0=hourly, 1=daily, 2=weekly, 3=monthly, 4=quarterly.
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_VERIFY_ATTRIBUTE
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_VERIFY_ATTRIBUTE |
plugin prepayment-server verifyAttribute [endpoint:1] [attributeId:2] [attributeSize:1] [expectedAttributeValue:4]
- Verify the prepayment attribute value matches an expected value.
- endpoint - INT8U - Metering endpoint whose payment mode value is being queried.
- attributeId - INT16U - Attribute ID of the attribute that will be verified.
- attributeSize - INT8U - Size of the attribute in bytes.
- expectedAttributeValue - INT32U - Expected payment mode value.
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_VERIFY_PAYMENT_MODE
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_VERIFY_PAYMENT_MODE |
plugin prepayment-server verifyPaymentMode [endpoint:1] [expectedPaymentModeValue:2]
- Verify the payment mode matches an expected payment mode value.
- endpoint - INT8U - Metering endpoint whose payment mode value is being queried.
- expectedPaymentModeValue - INT16U - Expected payment mode value.
◆ EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_WRITE_ATTRIBUTE
| #define EMBER_AF_DOXYGEN_CLI_COMMAND_PLUGIN_PREPAYMENT_SERVER_PLUGIN_PREPAYMENT_SERVER_WRITE_ATTRIBUTE |
plugin prepayment-server writeAttribute [endpoint:1] [attributeId:2] [attributeType:1] [numBytes:1] [value:4]
- Write the value of a local prepayment attribute (1-4 byte attribute value supported).
- endpoint - INT8U - Endpoint whose prepayment attribute is being written.
- attributeId - INT16U - The attribute ID that should be written.
- attributeType - INT8U - The attribute type (eg 0x23=U32)
- numBytes - INT8U - The number of bytes (1-4) of data to write.
- value - INT32U - The data that should be written to the attribute.


|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
| Interface Summary | |
| GlobalTransformer | Interface for L-module transformer |
| Keyword | Definitions of LIR keywords. |
| LocalAnalysis | Interface for result of function analysis. |
| LocalAnalyzer | Interface for function analyzer. |
| LocalTransformer | Interface for function transformer. |
| Tmd | Interface for Scheme code generator. |
| Transformer | Common Interface for Module/Function transformer. |
| Class Summary | |
| BackEnd | Back end of COINS compiler. |
| BackVersion | |
| CollectVarInTree | Collect variables appeared in LirNode tree. |
| Data | Represent L-Data. |
| Debug | |
| Function | Represent a function. |
| IntervalTimer | |
| MachineParams | Object holding Machine Parameters. |
| Module | Represent module, the whole input of the compiler. |
| ModuleElement | Common attributes of Function/Data, components of Module. |
| Op | Operator mnemonic encoder/decoder. |
| Root | BackEnd global variables |
| Storage | Storage class encoder/decoder. |
| TargetMachine | Target Description Module |
| Type | LIR type encoder/decoder without instance. |
| Exception Summary | |
| CantHappenException | Miscellaneous error has happened |
| SyntaxError | Parse error exception |
| SyntaxErrorException | A parse error in LIR. |
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |


Occupational Health & Safety Administration
(Dept of Labor/OSHA)
Contact
OSHA WILL KEEP YOUR INFORMATION CONFIDENTIAL
Call toll-free: 1-800-321-OSHA (6742)
File a Complaint
Contact the OSHA Office nearest you
Contact OSHA Regional Labor Liaisons
If you have a question about your rights or a workplace hazard and you cannot find the information you need on OSHA's website, just submit your question online
You have the right to a safe workplace
The Occupational Safety and Health Act of 1970
(OSH Act) was passed to prevent workers from being killed or seriously harmed at work.
The Act created the Occupational Safety and Health Administration (OSHA), which sets and enforces protective workplace safety and health standards.
Workers' rights under the OSH Act
Ask OSHA to inspect their workplace
Use their rights under the law without retaliation and discrimination
Receive information and training about hazards, methods to prevent harm, and the OSHA standards that apply to their workplace. The training must be in a language you can understand
Get copies of test results done to find hazards in the workplace
Review records of work-related injuries and illnesses
Get copies of their medical records
Workers can ask OSHA to Inspect their Workplace
Workers, or their representatives, may file a complaint and ask OSHA to inspect their workplace if they believe there is a serious hazard or that their employer is not following OSHA standards.
It is a violation of the Act for an employer to fire, demote, transfer or discriminate in any way against a worker for filing a complaint or using other OSHA rights.
Visit the OSHA Website


Pizza
pap!
Get your pizza in a blink.
menu
Menu
Regular
Ksh. 500
Medium
Ksh. 1000
Large
Ksh. 1500
Order Pizza
Pick your pizza Flavour:
pizza pinapple
Chicken Tikka
Peri-Peri Chicken
Hawaiian
Chicken and Mushroom
Chose your preferred Size:
Regular
Medium
Large
Choose your favorite Crust:
Thin Crust @ Ksh. 100
Thick Crust @ Ksh. 150
FlatBread Crust @ sh. 180
Custom Crust @ sh. 280
Select Your favorite Toppings
Tomato @ sh100
Onions @ sh100
Mushroom @ sh. 180
Red Pepper @ sh. 80
Olives @ sh. 150
Pineapple @ sh. 120
Sweet Corn @ sh. 220
Macon @ sh. 120
Mince @ sh. 220
Beef Peperoni @ sh. 300
Periperi Chicken @ sh. 370
Number of Pizza's
Checkout
Order Summary
Bonjour, order is as follows:
Make Delivery
Make Delivery
Pick Up
Contacts:
Call Us
+254 126789309
Subscribe
We appreciate feedback..send us a mail


Number:
Street name:
Landlord's name:
Rent:
How would you rate your landlord?
Very good
Good
Okay
Bad
Very bad
How satisfied are you with your apartment?
Extremely satisfied
Satisfied
Neutral
Unsatisfied
Extremely unsatisfied
Do you have any additional comments?


Landing Page
Special Projects
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.
03.01.18
What is the difference between the shooting at Marjory Stoneman Douglas High School in Parkland, Florida, on Feb. 14 and the shooting at Columbine High School in Columbine, Colorado, on Apr. 20, 1999?
Hannah Ruhoff | STAFF PHOTOGRAPHER
Senior lecturer Karen Oswald discusses with students during class in McCracken Hall on Feb. 27, 2018.
That was the difficult question students in Karen Oswald’s introduction to special education class discussed after the shooting at Stoneman Douglas High School.
Oswald, a senior lecturer in the Patton College of Education, said what happened at Columbine was assumed to be a one-time occurrence.
“Even though Columbine was (at a) high school, it was such a shock that people assumed it would never happen again,” Oswald said. “Then it did at a elementary school, and you had parents that were speaking out but not heard.”
After Parkland, though, Oswald noticed a difference in the reception of messages by adults.
“What we expect is for our teachers ... to be with those students, to be encouraging them to find their voice and to understand that they have to change the world they want to live in."Renee Middleton, dean of the Patton College of Education
“We have young adults that are very vocal and I think that they're being heard,” Oswald said. “I know they're being heard. It's a refreshing thing to think about.”
For Patton Dean Renee Middleton, the advocacy by those students is what the college is encouraging its teacher candidates to be.
“What we expect is for our teachers ... to be with those students, to be encouraging them to find their voice and to understand that they have to change the world they want to live in,” Middleton said.
Middleton said the college is not planning to change the way it trains teachers.
“What you see these students doing, that's the sum total of what we are preparing our teachers to be,” Middleton said.
The connection Oswald’s class has made between Columbine and Parkland involved manifestation determination — the process of deciding disruptive behavior, such as soliciting drugs or carrying a firearm, is a manifestation of a child’s disability, Oswald said.
She said her understanding is that the shooters in Columbine or Parkland did not have individualized education programs, or IEPs, but were socially maladjusted. The disclosure of students' participation in IEPs is protected under the Family Educational Rights and Privacy Act, or FERPA.

During in-class discussions, students talked about how important it is to step out of the classroom, step into the hallway and interact with all the children in their school, Oswald said.
 “You need to be observant, listening to conversations, watching for things.”
One program available to students and faculty for an active shooter situation is ALICE training, a program provided by the Ohio University Police Department that helps people create a plan for a crisis.
Perianne Bates, a senior lecturer in Patton, said when she received training she was taught to close and block the door then corral students into a closet.
“I think it's a vehicle by which we can at least be given a first step to take,” Bates said. “We can learn what to do and hope that it kicks in if something like that happens.”
The OU chapter of the Student Council for Exceptional Children is planning to host an ALICE training sometime after spring break, Oswald, who is the faculty adviser, said.
Middleton said in an email that the Patton curriculum includes “trauma informed” practice. Patton has also held a community forum on “trauma informed practice” to help the community, teachers and teacher candidates understand and see the signs of trauma.
The practice is a prerequisite to enabling effective learning, Middleton said.
Correction: A previous version of the headline incorrectly identified the Patton College of Education. The headline has been updated to reflect the most accurate information.
Landing Page
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.


BMSURLSession
public struct BMSURLSession: NetworkSession
Sends HTTP network requests.
BMSURLSession
is an alternative to BaseRequest
that provides more flexibility and control over requests and their responses.
It is built as a wrapper around Swift’s URLSession API that incorporates Bluemix Mobile Services. It automatically gathers Mobile Analytics data on each network request, and can be used to access backends that are protected by Mobile Client Access.
Currently, BMSURLSession
only supports URLSessionDataTask and URLSessionUploadTask.
-
Creates a network session similar to
URLSession
.Declaration
Swift
public init(configuration: URLSessionConfiguration = .default, delegate: URLSessionDelegate? = nil, delegateQueue: OperationQueue? = nil, autoRetries: Int = 0)
Parameters
configuration
Defines the behavior of the session.
delegate
Handles session-related events. If nil, use task methods that take completion handlers.
delegateQueue
Queue for scheduling the delegate calls and completion handlers.
autoRetries
The number of times to retry each request if it fails to send. The conditions for retries are: timeout, loss of network connectivity, failure to connect to the host, and 504 responses.
-
Creates a task that retrieves the contents of the specified URL.
To start the task, you must call its
resume()
method.Declaration
Swift
public func dataTask(with url: URL) -> URLSessionDataTask
Parameters
url
The URL to retrieve data from.
Return Value
A data task.
-
Creates a task that retrieves the contents of the specified URL, and passes the response to the completion handler.
To start the task, you must call its
resume()
method.Note
It is not recommended to use this method if the session was created with a delegate. The completion handler will override all delegate methods except those for handling authentication challenges.
Declaration
Swift
public func dataTask(with url: URL, completionHandler: @escaping BMSDataTaskCompletionHandler) -> URLSessionDataTask
Parameters
url
The URL to retrieve data from.
completionHandler
The completion handler to call when the request is complete.
Return Value
A data task.
-
Creates a task that uploads data to the URL specified in the request object.
To start the task, you must call its
resume()
method.Declaration
Swift
public func uploadTask(with request: URLRequest, from bodyData: Data) -> URLSessionUploadTask
Parameters
request
An object that provides request-specific information such as the URL and cache policy. The request body is ignored.
bodyData
The body data for the request.
Return Value
An upload task.
-
Creates a task that uploads data to the URL specified in the request object.
To start the task, you must call its
resume()
method.Note
It is not recommended to use this method if the session was created with a delegate. The completion handler will override all delegate methods except those for handling authentication challenges.
Declaration
Swift
public func uploadTask(with request: URLRequest, from bodyData: Data?, completionHandler: @escaping BMSDataTaskCompletionHandler) -> URLSessionUploadTask
Parameters
request
An object that provides request-specific information such as the URL and cache policy. The request body is ignored.
bodyData
The body data for the request.
completionHandler
The completion handler to call when the request is complete.
Return Value
An upload task.
-
Creates a task that uploads a file to the URL specified in the request object.
To start the task, you must call its
resume()
method.Declaration
Swift
public func uploadTask(with request: URLRequest, fromFile fileURL: URL) -> URLSessionUploadTask
Parameters
request
An object that provides request-specific information such as the URL and cache policy. The request body is ignored.
fileURL
The location of the file to upload.
Return Value
An upload task.
-
Creates a task that uploads a file to the URL specified in the request object.
To start the task, you must call its
resume()
method.Note
It is not recommended to use this method if the session was created with a delegate. The completion handler will override all delegate methods except those for handling authentication challenges.
Declaration
Swift
public func uploadTask(with request: URLRequest, fromFile fileURL: URL, completionHandler: @escaping BMSDataTaskCompletionHandler) -> URLSessionUploadTask
Parameters
request
An object that provides request-specific information such as the URL and cache policy. The request body is ignored.
fileURL
The location of the file to upload.
completionHandler
The completion handler to call when the request is complete.
Return Value
An upload task.


HTML forms are used to collect user input. HTML forms can contain input elements like text fields, checkboxes, radio-buttons, submit buttons, and more.
Forms' syntax uses the form
tag to create an HTML form. Within the form
, the input
element is used to select user information. The input
element has the following attributes:
type
attribute is used to specify the type of data (text field, radio button, checkbox, submit button, etc.). HTML Input Types link in W3 Schoolsname
attribute stores the user-entered data.id
attribute, useful when using the label
element (as will be explained later).HTML Forms and Input link in W3 Schools
<form method="get">
User name: <input type="text" name="userName">
 <input type="submit"> </form>
A form can contain different types of input
elements (e.g., text, password fields, radio-buttons, checkboxes, ...)
<form method="get"> <input type="radio" name="gender" value="male">Male <input type="radio" name="gender" value="female">Female <input type="radio" name="gender" value="other">Other <input type="submit"> </form>
<form method="get"> <input type="checkbox" name="retrieve1" value="discography">Retrieve album names
 <input type="checkbox" name="retrieve2" value="members">Retrieve member names
 <input type="submit"> </form>
label
elementThe label
element is useful to provide a label for the input elements of the form. Regarding its attributes:
input
element to its label, the for
attribute of the label
element should be equal to the id
attribute of the input
element.Label elements are useful for screen-reader users and users that have trouble clicking on very small regions (e.g., radio buttons and checkboxes). The user can toggle the radio button or checkbox by clicking on the text corresponding to the label.
label
element notice how easy it is to select any option?<form method="get"> Username: <input type="text" name="username" id="text_username"> <input type="radio" name="gender" value="male" id="radio_male"> Male <input type="radio" name="gender" value="female" id="radio_female"> Female <input type="radio" name="gender" value="other" id="radio_other"> Other
 Password: <input type="password" name="psswd" id="text_password">
 Artist name: <input type="text" name="artist" id="text_artist">
 <input type="checkbox" name="retrieve1" value="discography" id="check_disc"> Retrieve album names
 <input type="checkbox" name="retrieve2" value="members" id="check_members"> Retrieve member names
 <input type="submit"> </form>
Oops! Your password is now visible in the URL! Don't use HTTP GET with sensitive information (see "The Method Attribute" section from HTML Forms Attributes link at W3 Schools ).
The method
attribute of the form
element
specifies the HTTP method used when submitting the form data.
When method="get"
, the form data is sent as URL variables.
GET is the default HTTP method when submitting form data.
"The Method Attribute" section from HTML Forms Attributes link at W3 Schools
We usually want to use the data a user entered into a form. In order to accomplish this, we parse the values of the parameters in the URL.
Create a form where the user can enter the name of a city. For now, when submitting the form, the only thing returned to the user will be their own input (the name of the city entered). In Exercise # 2, we will return the current weather of the user-entered city using an API. Let's focus for now on the first part of this exercise.
Create a form for asking the name of a city for which the user is interested.
When the user presses the submit button, the name of the city should be printed on the screen.
id
to identify this element later and populate it with the resulting data.
window.onload
event (seen in class 05) to call the function.
(new URL(document.location)).searchParams
property and its get
method (also seen in class 05).


Mapping between standard locale identifiers and Windows locale identifiers (LCID)
Based on the mapping used in the Python standard library.
The mapping itself is just a JSON file and can be used wherever.
$ npm install --save lcid
var lcid = require('lcid');
lcid.from(1044);
//=> 'nb_NO'
lcid.to('nb_NO');
//=> 1044
lcid.all;
//=> {'af_ZA': 1078, ...}
MIT © Sindre Sorhus


| Package | Description |
|---|---|
| com.ibm.team.scm.client | |
| com.ibm.team.scm.client.events | |
| com.ibm.team.scm.common | |
| com.ibm.team.scm.common.dto |
| Modifier and Type | Method and Description |
|---|---|
IChangeSetHandle |
IWorkspaceConnection.createChangeSet(IComponentHandle component,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a new active change set for recording changes made in the
workspace to the given component.
|
IChangeSetHandle |
IWorkspaceConnection.createChangeSet(IComponentHandle component,
java.lang.String comment,
boolean setCurrent,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a new active change set for recording changes made in the
workspace to the given component, and optionally sets the new change set
as current for its component.
|
IChangeSetHandle |
IWorkspaceConnection.getCurrentChangeSet(IComponentHandle componentHandle)
Returns the current change set for the given workspace.
|
IChangeSetHandle |
IWorkspaceConnection.IRelocateOp.getSourceChangeSet()
Get the source change set which currently houses the item.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IChangeSetHandle> |
IWorkspaceManager.findChangeSets(IChangeSetSearchCriteria criteria,
int maxResults,
org.eclipse.core.runtime.IProgressMonitor monitor)
Search the repository for change sets matching the specified criteria and return the matched change sets.
|
java.util.List<IChangeSetHandle> |
IWorkspaceConnection.suspendedChangeSets()
Returns the list of suspended change sets associated with the contributor.
|
java.util.List<IChangeSetHandle> |
IWorkspaceManager.suspendedChangeSets()
Returns the list of suspended change sets associated with the contributor.
|
java.util.List<IChangeSetHandle> |
IWorkspaceConnection.suspendedChangeSets(IComponentHandle component)
Returns the list of suspended change sets associated with a particular component for the
contributor.
|
java.util.List<IChangeSetHandle> |
IWorkspaceManager.suspendedChangeSets(IComponentHandle component)
Returns the list of suspended change sets associated with a particular component for the
contributor.
|
java.util.List<IChangeSetHandle> |
IWorkspaceManager.transferChangeSetsFromRemoteRepository(java.util.List<IChangeSetHandle> remoteChangesToTransfer,
ITeamRepository remoteRepository,
org.eclipse.core.runtime.IProgressMonitor monitor)
Replicates closed change sets from a remote repository into the current repository.
|
| Modifier and Type | Method and Description |
|---|---|
void |
IWorkspaceConnection.addChangeSetsToAcceptQueue(IComponentHandle component,
IChangeSetHandle[] changeSets,
UUID afterEntry,
int flags,
org.eclipse.core.runtime.IProgressMonitor monitor)
Add the provided entries after the
afterEntry . |
com.ibm.team.scm.common.dto.IConsolidatedChangeSetsPathReport |
IWorkspaceManager.calculateParentPaths(IContextHandle context,
IChangeSetHandle[] changeSets,
UUID[] parentIds,
IVersionableHandle[] changedParentItems,
org.eclipse.core.runtime.IProgressMonitor monitor)
Given a list of change sets from a single component, parents of changed items, and parents that
they themselves have changed in the list of change sets, return a
description of the paths of the parent folder items that are included in
the change set report.
|
IUpdateReport |
IWorkspaceConnection.commit(IChangeSetHandle activeChangeSet,
java.util.Collection configOps,
org.eclipse.core.runtime.IProgressMonitor monitor)
Atomically adds, deletes, or changes states of versionable items in the
workspace.
|
com.ibm.team.scm.common.internal.dto.CreateLinksResult |
IWorkspaceManager.createLinks(java.lang.String linkTypeId,
IWorkspaceHandle workspace,
IChangeSetHandle changeSet,
java.util.List<java.net.URI> resourceUris,
java.util.List<java.lang.String> comments,
java.util.List<java.lang.String> extraInfos,
java.util.List<java.lang.String> contentTypes,
boolean doBacklink,
boolean force,
org.eclipse.core.runtime.IProgressMonitor monitor)
OSLC EXPERIMENTAL - DO NOT USE
Creates a link from a change set to a set of OSLC resource URI links.
|
com.ibm.team.scm.common.dto.IGapFillingChangeSetsReportList |
IWorkspaceConnection.findChangeSetsToAcceptToFillGap(IChangeSetHandle[] changeSetsToAccept,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method is expected to be called when some change sets cannot be
accepted due to gaps.
|
java.util.List<IWorkspaceHandle> |
IWorkspaceManager.findWorkspacesContainingChangeset(IChangeSetHandle changeSet,
IWorkspaceSearchCriteria additionalCriteria,
int expectedMaximumResultSize,
org.eclipse.core.runtime.IProgressMonitor monitor)
Finds workspaces in the repository that match the given criteria.
|
com.ibm.team.scm.common.dto.IConsolidatedChangesReport |
IWorkspaceManager.getConsolidatedChanges(IChangeSetHandle[] changeSets,
com.ibm.team.scm.common.dto.IPagedFetchDescriptor pageDescriptor,
org.eclipse.core.runtime.IProgressMonitor monitor)
Given a list of change sets return a consolidated description of the changes for each item.
|
java.util.List |
IChangeHistory.getRelatedEntries(IChangeSetHandle cs,
org.eclipse.core.runtime.IProgressMonitor monitor)
Retrieves the change history entries that were created at the same time as
the entry for the given changeset.
|
void |
IWorkspaceManager.setComment(IChangeSetHandle changeSet,
java.lang.String comment,
org.eclipse.core.runtime.IProgressMonitor monitor)
Sets the comment associated with the given change set.
|
void |
IWorkspaceConnection.setCurrentChangeSet(IChangeSetHandle current,
org.eclipse.core.runtime.IProgressMonitor monitor)
Sets the given change set as current for its component.
|
com.ibm.team.scm.common.IComponentHierarchyUpdateResult |
IWorkspaceConnection.updateSubcomponentData(IComponentHandle component,
java.util.Collection<? extends IComponentHandle> subcomponentsToAdd,
java.util.Collection<? extends IComponentHandle> subcomponentsToRemove,
IChangeSetHandle changeSet,
org.eclipse.core.runtime.IProgressMonitor monitor)
Update the subcomponent hierarchy of a parent component in the workspace.
|
| Modifier and Type | Method and Description |
|---|---|
IUpdateReport |
IWorkspaceConnection.commit(java.util.List<IChangeSetHandle> activeChangeSets,
java.util.List<java.util.Collection<? extends IWorkspaceConnection.IConfigurationOp>> configOps,
org.eclipse.core.runtime.IProgressMonitor monitor)
Atomically adds, deletes, or changes states of versionable items in the
workspace in multiple change sets atomically.
|
java.util.Collection<IChangeSetFlowReport> |
IFlowNodeConnection.findChangeSetsInFlows(java.util.Collection<IChangeSetHandle> changeSets,
int flowFlags,
org.eclipse.core.runtime.IProgressMonitor monitor)
Locates change sets across all flow entries in flow node's flow table.
|
java.util.List<IChangeSetLinkSummary> |
IWorkspaceManager.getChangeSetLinkSummary(java.util.Collection<? extends IChangeSetHandle> changeSets,
org.eclipse.core.runtime.IProgressMonitor monitor)
Computes the link summaries for the given change sets.
|
void |
IWorkspaceConnection.relocateChanges(java.util.List<? extends IChangeSetHandle> targetChangeSets,
java.util.List<? extends IVersionableHandle> itemsToMove,
java.util.List<? extends IChangeSetHandle> sourceChangeSets,
org.eclipse.core.runtime.IProgressMonitor monitor)
Move active changes to new change sets.
|
void |
IWorkspaceConnection.relocateChanges(java.util.List<? extends IChangeSetHandle> targetChangeSets,
java.util.List<? extends IVersionableHandle> itemsToMove,
java.util.List<? extends IChangeSetHandle> sourceChangeSets,
org.eclipse.core.runtime.IProgressMonitor monitor)
Move active changes to new change sets.
|
void |
IWorkspaceManager.removeChangeSetLinks(java.util.List<IChangeSetHandle> changeSets,
org.eclipse.core.runtime.IProgressMonitor monitor)
Remove the change set links from the given change sets and potentially from all related change sets.
|
IUpdateReport |
IWorkspaceConnection.resume(int flags,
java.util.List<IChangeSetHandle> suspended,
org.eclipse.core.runtime.IProgressMonitor monitor)
Resumes back into the workspace the given suspended change sets.
|
java.util.List<IChangeSetHandle> |
IWorkspaceManager.transferChangeSetsFromRemoteRepository(java.util.List<IChangeSetHandle> remoteChangesToTransfer,
ITeamRepository remoteRepository,
org.eclipse.core.runtime.IProgressMonitor monitor)
Replicates closed change sets from a remote repository into the current repository.
|
| Modifier and Type | Method and Description |
|---|---|
IChangeSetHandle |
IWorkItemsModificationEvent.getChangeSet()
Deprecated.
Get the change set which has been modified.
|
IChangeSetHandle |
ICommitEvent.getChangeSet()
Get the change set which has been updated.
|
IChangeSetHandle |
ICurrentChangeSetEvent.newlyCurrentChangeSet()
Returns the change set that is currently marked current.
|
IChangeSetHandle |
ICurrentChangeSetEvent.previouslyCurrentChangeSet()
Returns the change set which was previously marked current.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IChangeSet
Represents a change set.
|
| Modifier and Type | Method and Description |
|---|---|
IChangeSetHandle |
IChangeHistoryEntryChange.changeSet()
Returns the change set associated with this change history entry.
|
IChangeSetHandle |
IChangeSet.getOriginalChangeSet()
The original change set ported resulting in the group of change sets with the same port id.
|
IChangeSetHandle |
IChangeSet.getSourceChangeSet() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IChangeSetHandle> |
ChangeSetAlreadyInHistoryException.changesetsAlreadyInHistory()
Returns the (possibly incomplete) list of changesets that were already found in
the history of the workspace
|
| Modifier and Type | Method and Description |
|---|---|
IChangeSetHandle |
IItemOverlapData.getAttemptedTargetChangeSet() |
IChangeSetHandle |
IChangeSetFlowReport.getChangeSet()
Retrieve the change set in question.
|
IChangeSetHandle |
IChangeSetLinkSummary.getChangeSet()
Returns the change set being summarized.
|
IChangeSetHandle |
ILocateChangeSetsSearchResult.getChangeSet()
The change set that was searched.
|
IChangeSetHandle |
IItemOverlapData.getChangeSetWhichContainsItem() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<IChangeSetHandle> |
ILocateChangeSetsSearchCriteria.getChangeSets() |
java.util.List<IChangeSetHandle> |
IChangeHistorySyncReport.getIncomingChangeSetCopies()
All the incoming change sets which ones have the same port id as a
change set already in the local change history,
This will identify the incoming change sets while not physically in
the change history, they are logically already in the change history.
|
java.util.List<IChangeSetHandle> |
IChangeHistorySyncReport.getIncomingChangeSetCopies(IComponentHandle component)
All the incoming change sets which ones have the same port id as a
change set already in the local change history of a particular component,
This will identify the incoming change sets while not physically in
the change history, they are logically already in the change history.
|
java.util.List<IChangeSetHandle> |
IChangeHistorySyncReport.getOutgoingChangeSetCopies()
All the outgoing change sets which ones have the same port id as a
change set already in the remote change history.
|
java.util.List<IChangeSetHandle> |
IChangeHistorySyncReport.getOutgoingChangeSetCopies(IComponentHandle component)
All the outgoing change sets which ones have the same port id as a
change set already in the remote change history of a particular component,
This will identify the outgoing change sets while not physically in
the remote change history, they are logically already in the remote change history.
|
| Modifier and Type | Method and Description |
|---|---|
ILocateChangeSetsSearchResult |
ILocateChangeSetsSearchResult.ILocateChangeSetSearchResultFactory.create(IChangeSetHandle changeSet,
com.ibm.team.scm.common.dto.IChangeSetCopyData portData) |
ILocateChangeSetsSearchResult |
ILocateChangeSetsSearchResult.ILocateChangeSetSearchResultFactory.create(IChangeSetHandle changeSet,
java.util.List<IWorkspaceHandle> workspaces,
java.util.List<IBaselineSetHandle> snapshots,
java.util.List<IBaselineHandle> baselines) |
| Modifier and Type | Method and Description |
|---|---|
ILocateChangeSetsSearchCriteria |
ILocateChangeSetsSearchCriteria.ILocateChangeSetSearchCriteriaFactory.create(java.util.List<IChangeSetHandle> changeSets,
java.util.List<IWorkspaceHandle> workspaces,
java.util.List<IBaselineSetHandle> snapshots,
java.util.List<IBaselineHandle> baselines) |
ILocateChangeSetsSearchCriteria |
ILocateChangeSetsSearchCriteria.ILocateChangeSetSearchCriteriaFactory.create(java.util.List<IChangeSetHandle> changeSets,
java.util.List<IWorkspaceHandle> workspaces,
java.util.List<IBaselineSetHandle> snapshots,
java.util.List<IBaselineHandle> baselines,
boolean includeCopies) |


(Deprecated API)
(Deprecated API)
(Deprecated API)
Includes enterprise licensing and support
Note: The Google Mapplets API has been officially deprecated as of May 19, 2010. Existing Mapplets will continute to be supported, but no new Mapplets will be accepted into the Mapplets Gallery.
JavaScript within the browser is event driven, meaning that JavaScript responds to interactions by generating events, and expects a program to listen to interesting events. For example, within browsers, user mouse and keyboard interactions create events that propagate within the DOM. Programs interested in certain events will register JavaScript event listeners for those events and execute code when those events are received.
The Google Mapplets API adds to this event model by defining custom events for Mapplet objects. It is important to note that the Mapplets API events are separate and distinct from the standard DOM events. However, as different browsers implement different DOM event models, the Mapplets API also provides mechanisms to listen for and respond to these DOM events without needing to handle the various cross-browser peculiarities.
Events in the Mapplets API are handled by using utility functions
within the GEvent
namespace to register event listeners.
Each Mapplets API object exports a number of named events. For example,
the GMap2
object exports click
,
dblclick
, and move
events, and a host of
others as well. Each event happens within a given context, and can pass
arguments that identify that context. For example, the dragstart
event fires when the user clicks and holds the mouse within a map object, and
passes the GLatLng
of the geographic location in which
the mouse is located.
For a complete list of GMap2
events and the arguments they
generate, see GMap2.Events.
To register for notification of these events, use the static method
GEvent.addListener()
. That method takes an object,
an event to listen for, and a function to call when the specified
event occurs. For example, this code snippet shows an alert every time the user
clicks on the map:
var map = new GMap2(); GEvent.addListener(map, "click", function(marker, point) { if (marker) { map.removeOverlay(marker); } else { map.addOverlay(new GMarker(point)); } });
Run this example (event-simple.xml)
Listeners are also able to capture the context of the event. In the following example code, we display the latitude and longitude of the center of the map after the user drags the map.
var map = new GMap2(); GEvent.addListener(map, "moveend", function() { map.getCenterAsync(function(center) { map.openInfoWindowHtml(center, center.toString()); }); }); map.setCenter(new GLatLng(37.4419, -122.1419), 13);
Run this example (event-context.xml)
When executing an event listener, it is often advantageous to have both private and persistent data attached to an object. JavaScript does not support "private" instance data, but it does support closures which allows inner functions to access outer variables. Closures are useful within event listeners to access variables not normally attached to the objects on which events occur.
The following example uses a function closure in the event listener to assign sequential number values to a set of markers. Clicking on each marker will display a different value, which is not contained within the marker itself.
var map = new GMap2(); // Creates a marker at the given point with the given number label function createMarker(point, number) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml("Marker #" + number); }); return marker; } // Add 10 markers to the map at random locations map.getBoundsAsync(function(bounds) { var southWest = bounds.getSouthWest(); var northEast = bounds.getNorthEast(); var lngSpan = northEast.lng() - southWest.lng(); var latSpan = northEast.lat() - southWest.lat(); for (var i = 0; i < 10; i++) { var point = new GLatLng(southWest.lat() + latSpan * Math.random(), southWest.lng() + lngSpan * Math.random()); map.addOverlay(createMarker(point, i + 1)); } });
Run this example (event-closure.xml)
Many events in the Mapplets API event system pass arguments when the event is
triggered. For example, the GMap2
"click" event passes two
arguments (overlay,point
) in the event. You can access these
arguments by passing the specified symbols directly to the functions within the
event listeners.
For example, the "click"
event on a map passes an overlay
and point
argument. We pass these arguments directly within
the callback function to invoke within the event listener.
Notice that we need to make two asynchronous requests in this example to
retrieve the pixel coordinates and current zoom level. We use
GAsync()
to process these requests in parallel before we
initiate the callback method based on those return values.
var map = new GMap2(); map.setCenter(new GLatLng(37.4419, -122.1419), 13); GEvent.addListener(map,"click", function(overlay,point) { if (point) { GAsync(map, 'fromLatLngToDivPixel', [point], 'getZoom', function(divPixel, zoom) { var myHtml = "The GPoint value is: " + divPixel + " at zoom level " + zoom; map.openInfoWindow(point, myHtml); }); } });
Run this example (event-arguments.xml)
The Mapplets API event model creates and manages its own custom events. However the DOM also creates and dispatches its own events, according to the particular browser event model in use. If you wish to capture and respond to these events, the Mapplets API provides browser-neutral wrappers to listen and bind DOM events, without the need for custom code. Note that a mapplet can only listen to DOM events within its own <iframe>.
The GEvent.addDomListener()
static method registers an
event handler for a DOM event on a DOM node. Similarly, the
static method GEvent.bindDom()
allows you to register
event handlers for DOM events on class instances.
When an event listener is no longer needed, you should remove it. This
is especially important in Mapplets as the listeners introduce extra
communication overhead. Removing event listeners that were defined
via anonymous functions within closures can be difficult. However, the
addListener()
, addDomListener()
, bind()
,
and bindDom()
functions return a GEventListener
handle, which can be used to eventually deregister the handler.
The following example responds to a click by placing a marker on the
map. Any subsequent click removes the event listener. Notice that the removeOverlay()
code is never executed as a result. Also, notice that you can remove
an event listener even from within the event listener itself.
function MyApplication() { this.counter = 0; this.map = new GMap2(); this.map.setCenter(new GLatLng(37.4419, -122.1419), 13); var myEventListener = GEvent.bind(this.map, "click", this, function(marker,point) { if (this.counter == 0) { if (point) { this.map.addOverlay(new GMarker(point)) this.counter++; } else { this.removeOverlay(marker) } } else { GEvent.removeListener(myEventListener); } }); } var application = new MyApplication();
Run this example (event-removal.xml)
Continue on to the Mapplet Overlays.


How to add a 7 segment display
This guide details how to add a four-digit seven-segment display with a mode changer that makes it possible to cycle through the various values to be displayed, and a frequency indicator.
The four 7-segment digits are driven by a MAX7221 driver and the mode changer by a shift register to minimize the number of Arduino digital pins needed. The value displayed is controlled by rotating a potentiometer.
There are already excellent guides on building the 7-segment display and the shift register for the mode changer, independently of each other so they won't be repeated here. This guide details how to integrate both, including some pictures of the circuits I built as a layout suggestion, and the adapted Arduino code which is detailed below.
Here are the guides for the 7-segment display and shift register, both in the Arduino playground:
7-segment display
Controlling an LED matrix or 7-segment display with the MAX7219 or the MAX7221 - This is the main page that links to the two pages below.
The MAX7219 and MAX7221 LED drivers - details the 7-segment display hardware, including circuit diagrams and discussion of various factors that need to be taken in to account.
LED Control Library by Eberhard Fahle - details the Arduino library required to drive the display, including download.
Mode chooser
Serial to Parallel Shifting-Out with a 74HC595 - By Carlyn Maw and Tom Igoe. Details how to build the shift register circuit that allows us to have 8 digital output pins with only 3 input pins. I've used 6 of the outputs for the mode chooser and 2 for the frequency indicator.
Layout suggestions
Here are pictures of the boards I built, in case they are useful when trying to work out how to place the components. Let me know if there's any detail that isn't clear. More pictures can be found here.
Left: Circuit board with 7-segment display, mode chooser, frequency indicator, potentiometer and socket.
Right: Circuit board with the 7-segment display removed.
Back side of the 7-segment display and mode chooser:
Pictures of installation on wall. Communication wire goes through a hole in the wall to the main unit.
Arduino software:
The Arduino sketch works with the display and an Arduino independently of other energy monitor hardware and code. The intent is to make it easier to see what's happening and to make it easier to use the code in other projects. For an example of how to add it to a full setup, have a look here home energy monitor documentation page.
The main addition to the example code by Eberhard Fahle is code to make the decimal point work.
The position of the decimal point depends on the number of significant figures.
Software steps:
- Download the sketch here: SAdisplay.tar.gz
- Compile and upload the sketch to the Arduino. For a guide on compiling and uploading the sketch to the Arduino have a look here.
- You should now see the display light up, and be able to select the values set in the sketch, with the mode chooser.
Further detail on hardware
The display is made up of 3 independent parts:
1) The 7 segment display
To build the display, follow this link:
Controlling a Led matrix or 7-segment displays with the MAX7219 or the MAX7221 -
2) The mode chooser indicator LEDs and the Large Red and Green Led's
The mode chooser LEDs (the 6 small green LEDs) and the 2 larger LEDs are all driven by the shift register.
To build the mode selector, follow this link:
Serial to Parallel Shifting-Out with a 74HC595
3) The mode chooser potentiometer
This potentiometer is connected directly to one of the Arduino analog inputs, As you turn the potentiometer it provides a varying voltage from 0V to 5V which is read by the Arduino via analogRead() The voltage is used to select the mode.
The only thing the 3 parts share in terms of hardware are the same 5V supply and ground.
- There are 3 control lines for the 7 segment to the Arduino
- There are 3 control lines for the shift register
- One analog line from the potentiometer
If you wish to build the unit, I recommend building each section individually first, per the linked guides. In terms of actual order of connection to the Arduino this is how I have it organised, but feel free to choose different pins if you require.
Re: 7 segment display
mode chooser, frequency indicator, potentiometer... can you give me more info about these, and how theyr connected please ?? :D.. i think the socket is to connect with the arduino...therefore it should be connected in a specific way???
Re: 7 segment display
Hey Polidano, added a bit more info above, does it answer your question?
Re: 7 segment display
what can I say...your just number 1 :D.. I really appreciate
Re: 7 segment display
can you please explain to me more how these two are connected together?? cause I got kind of lost..thanks :)
Re: 7 segment display
The 595 is actually independent of the 7219. The 7219 part of the circuit is used to drive the 7-segment while the 595 is used to drive the row of led's.
Re: 7 segment display
may I ask please, where are you using the 8*8 LED matrix, and why?? thanks
Re: 7 segment display
there's no matrix here? :)
Re: 7 segment display
but when you follow other links, there are two max722.. connected together and one of them is connected to an 8*8 LED matrix..thats why im asking why
Re: 7 segment display
I think the same chip can be used for matrixes and 7segments. Im just using it for 7 segments only, so just ignore the matrixes.
Re: 7 segment display
I really like this project! I'm working on a similar project so this is a big help!
Would you post a schematic of the mode chooser? I'm designing a circuit using the MAX7221, and I don't follow why you don't use another 7221/7219 for the mode indicators. I also don't at all follow how the mode chooser pot sends data back to the Arduino.


Teretana Pobednik
Become a member of our gym, and enjoy your healthy and good-looking
appearance.
Join us today!
Fitness center Pobednik offers various programs for all ages. Apart from the well-known programs realised according to the schedule, clients also have the modern gym with the most contemporary equipment at their disposal.
Learn moreFitness center Pobednik offers nutricional services to its clients. In case you need a diet, or you simply want to feed more healthy, our professional nutricionist is always there for you. She will recommend you an adequate nutrition.
Learn moreFitness center Pobednik offers its clients various kinds of massages, both relaxing massages and therapeutical ones. Whether you just want to relax, or you need to improve your health, our experts will always find the best therapy for you.
Learn moreFilip has been a member of our gym for more than a few years. He is very dedicated to his job and is the favourite among the clients.
Vanja is our youngest coach She is very motivated, and she carries that mood over to her clients.
Vukasin is our masseur, but he is an excellent coach as well. He is always ready to assist his clients.
Zvezdana is our nutricionist. She keeps a great relationship with her clients, and she is there to guide them towards healthy nutrition and habits.
| Name and surname: | |
| E-mail: | |
| Message: | |


SwiftyTesseractRTE
SwiftyTesseractRTE can only currently be used in portrait mode.
About SwiftyTesseractRTE
SwiftyTesseractRTE (SwiftyTesseract Real-Time Engine) is a real-time optical character recognition library built on top of SwiftyTesseract.
Using SwiftyTesseractRTE in Your Project
Import the neccessary modules
import SwiftyTesseract
import SwiftyTesseractRTE
Create an instance of SwiftyTesseractRTE and assign it’s regionOfInterest property.
var realTimeEngine: SwiftyTesseractRTE!
@IBOutlet weak var previewView: UIView!
@IBOutlet weak var regionOfInterest: UIView! // A subview of previewView
override func viewDidLoad() {
let swiftyTesseract = SwiftyTesseract(language: .english)
realTimeEngine = SwiftyTesseractRTE(swiftyTesseract: swiftyTesseract, desiredReliability: .verifiable)
realTimeEngine.delegate = self
}
override func viewDidLayoutSubviews() {
// Must occur during viewDidLayoutSubviews() - Autolayout constraints are not set in viewDidLoad()
realTimeEngine.bindPreviewLayer(to: previewView)
realTimeEngine.regionOfInterest = regionOfInterest.frame
// Only neccessary if providing a visual cue where the regionOfInterest is to your end user
previewView.addSublayer(regionOfInterest.layer)
}
Conform to the SwiftyTesseractRTEDelegate protocol
extension YourViewController: SwiftyTesseractRTEDelegate {
func onRecognitionComplete(_ recognizedString: String) {
// Do something with the recognized string
}
}
Starting and Stopping Recognition
// Starts optical character recognition
realTimeEngine.recognitionIsActive = true
// Stops optical character recognition
realTimeEngine.recognitionIsActive = false
Starting and Stopping Camera Preview
// Starts camera preview
realTimeEngine.startPreview()
// Stops camera preview
realTimeEngine.stopPreview()
Camera Permissions
For camera permissions, you will need to add the Privacy - Camera Usage Description
permission to your Info.plist
file. SwiftyTesseractRTE will handle requesting permission if it is not already granted.
A Note about Portrait-Only
SwiftyTesseractRTE is currently only able to utilized in portrait mode, but that does not mean your entire app also has to be portrait mode only. See the example project’s AppDelegate (specifically the addition of a shouldRotate
boolean member variable and the implementation of application(_:supportedInterfaceOrientationsFor:)
) and ViewController files (specifically the viewWillAppear()
and viewWillDisappear()
methods) for an example on how to make a single view controller portrait mode only.
Installation
CocoaPods
Tested with pod --version
: 1.3.1
# Podfile
use_frameworks!
target 'YOUR_TARGET_NAME' do
pod 'SwiftyTesseractRTE', '~> 1.0'
end
Replace YOUR_TARGET_NAME
and then, in the Podfile
directory, type:
$ pod install
Setting Up SwiftyTesseract for Use in SwiftyTesseractRTE
See SwiftyTesseract’s Additional Configuration section on properly setting up SwiftyTesseract to be utilized in your project.
Documentation
Official documentation for SwiftyTesseractRTE can be found here
Contributions Welcome
Contributions are always welcome! Please refer to Contributing to SwiftyTesseractRTE for the full guidelines on creating issues and opening pull requests to the project.


This is cryptopunk. It’s like steampunk or dieselpunk. It depicts a different kind of life. This one is scifi based. You have the freedom loving people of Nagan VII and the bureaucratic Kartouri who seek to rule them.
Up until now Tanic, the ships captain of the Karouri Peace Enforcers, has attacked the people of Nagan VII at least twice, he was hit with an illegal quantum slider and sent to a different dimension and had to work his way back over the course of more than a year. He went back with more ships seeking vengence against Nagan VII and particularly Admiral Santana, but got all blowed up. Santana is about to meet with him after a week of the Kartouri being on Nagan VII.
Chapter 2- Episode 2.
“One week! One fuckin’ week.
Sammo, Muxxy, Swelk and Mystique were holding back smiles.
“For fuck’s sake. Seriously, 1500 people are causing so much trouble. We’re fuckin’ helping them. They came here. They attacked us. We didn’t even fire, and these dickheads don’t know how to act. You know what one of them said to me? ‘There wasn’t a law against killing the cow on the property so what’s the big deal.”
Muxxy and Swelk started laughing. Even Santana crossed a smile.
Rho was a prominent writer and a good friend and walked over to Santana and put a hand on her shoulder. “It’s gonna be ok, she said calmly, they’ll learn, and when they do go home, they’ll take it back with them.”
Santana’s rage subsided a bit.  When she’s not explaining to another Kart newb how to use a tech tab she’s getting constant requests for the simplist tasks. How do you upload a picture?  Oh well, maybe Rho was right. They’ll learn. She took a deep breath, and then Tanic and the delegation from Kartouri arrived.
The room got awkward quickly.  Things like that are hard to forget. Tanic’s kid lost an eye and now had a freaky little baby cyborg eye in there instead. That served as a daily reminder why he should come back a year from now and kill everyone.
Tanic started “Admiral Santana, crew, thank you for meeting with us. The situation on this planet is quite desparate. Since our capture there has been zero central contact, there’s been zero central efforts, I haven’t even heard from any specific leader. Surely, we can negotiate an immediate return of our property.”
“Tanic” Santana started, “It doens’t work that way here. I know it sounds pretty unfamiliar but we don’t have a central authority. The people in this room are your best bet, but we’re just people.”
Tanic was frustrated. “Surely there is someone we can talk to. I heard of a Mayor Aggie. What about him? There are people called Witnesses. You have to be able to setup a meeting with them. The conditions are horrible here. Where are all the services? Where do your taxes go to? I don’t even understand how your people have roads!!!”
Santana was receiving all this frustrating energy. She was about to rip’em one, but Sammo chimed in instead. “Look mate, it don’t work like that ‘ere. Ain’t no taxes, ‘aven’t had’em in my life. We each do our own thing and ain’t nobody takes what’s mine without me agreeing.”
Tanic was yelling “This place is out of control!!! We’ve had over 18 Kartouri, many of them officers, shot with your stun rifles. Who do we take that to? Where is our recourse? How do we get justice for that? You can’t simply shoot an officer of the Kartouri!!!”
  I’d shoot them too. Nagan doesn’t have any laws, but that doesn’t mean we don’t have principles.
Tanic was flustered! “I’m not going to hear any more of this. If you respected our laws it wouldn’t be an issue. You’re the terrorist that shot sliders.  I’ll be writing a post about this Santana, and I’ll be sure to tag many of your so called Megaloth friends in it. We’ll see what they have to say about it! In the meantime please make sure you arrange for more food for us. You’d cause much harm if you let us all starve.”
Tanic turned in a hurumph to leave, but Santana’s wall tech flashed up. Incoming message stream from Beardo, Subject Tanic’s baby :) Santana said “open” and the stream opened. Tanic stopped to hear the news.
“Hey Santana, I have to run in a second, but I’m at the hospital and I just met with Vanessa and baby Tanic. I can’t do anything about them being Kartouri, but the good news is that the burns are healed and mom’s back to normal, and the last round of the eye is finished. Looks a little cyborgian blue, but it was nicely done, most people won’t ever know. I gotta get back to it, love to Rho, peace.”
Tanic’s frustration melted after hearing his girlfriend and baby were ok. Margaret probably won’t be too happy about it, but he was. He took a deep breath. “Can we see them now?” Santana’s anger melted, she smiled warmly and said “Yeah, let’s do that. I’ll grab my coat.”
As they were taking the deep tubes in silence across from one another she realized that for the first time in the week he’d been on Nag that Tanic had said please and asked a question instead of making a demand. Maybe he can change, and if he can maybe the other Karts can too. “Hey, I’m sorry I yelled.” Santana told him. He just nodded. “Me too.” He said quietly.
Chapter 2. First Flag (https://steemit.com/cryptopunk/@aggroed/nagan-vii-a-cryptopunk-scifi-series-chapter-2-episode-1-first-flag)
Tanic woke up and immediately regretted it. His head was splitting. He put his hands to his face and felt some bandages and pain. Seems like he was out on a 3 week straight binger. Then the swelling and the pulsing in his head. It hurt. A lot. Then he realized he had no idea where he was. As he looked around it appeared to be a living room, and he was on a fold out couch turned into a bed. The house was relatively small and as he looked outside he could see some farmland.
He sat up in bed. He immediately regretted it.  He took a pause to let his brain recalibrate. There was a techtab on the table with a note from Santana.
Hey, I hope you’re ok, sorry your ships got all blowed up, we’re working on fixing them minus the weapons. It’s gonna be a bit. No one really wants to support the people that just attacked us, but I’ll get you home. In the meantime you can login to libertynet.gov where I’ve made you the account Kart.Tanic. It has some script in it too so if you go to town or something you can get what you need. I don’t have any men’s clothing since my husband died and I got rid of all his stuff so you’re stuck in the uniform for now unless you want a muumuu. I’m heading into town. I’ll be back with dinner.
PS after I created you account I left a very brief post as your introduction <3 Santana.
He flicked it aside.
He stood up and felt woozy, but fought through it. He walked into the kitchen and found a knife and a piece of bread and an apple. He ate the apple, put the bread in his pocket and walked outside with the knife in his hand.
Santana lived on a small homestead over an hour outside of Nagnarok. It was a nice plantation that help a variety of animals and vegetables, rain water collection, and even LENR power. He could use the tech tab to communicate, but he was sure it was all being watched. So, he headed down the road looking for someone. As it turns out he found a group of kids walking his way.
 Come here!”
The kids saw a half crazed man with a bandage on his head weilding a knife asking for the kids to come over. They did what sensible kids would do and they ran. Tanic took two steps to follow them, and immediately regretted it. He put his hand on his head and sat down from the pain. A minute or two later he got up and started walking down the road again. This time a farmer with a few kids got out of an air cruiser (a hover car) and approached him weapon raised. “I think you were talking to my boys in a most unfriendly way sir? You ok?”
Tanic saw the gun and knew he had a chance to get a weapon. So, he put the knife behind is back and walked slowly toward the man saying “Look friend, I’m sorry about your boys, I was just having a little fun.”
The farmer said “Sir, I know you have the knife, please stop. Put it down and let’s talk about how to get you well son.”
Tanic ignored him and pressed on “Look sir, I’m just looking for a way into town, I seem to have had a little trouble and now I just need to contact some of my friends and settle all of this.” He took another step and was now pretty close to the farmer so he lunged with the knife, he immediately regretted it. Before he got anywhere he felt 10k joules shooting through him. He hit the ground writhing in agony, and passed out.
He woke up some time later with the tech tab on his chest with a note from Santana.
I’m in the garden.  Just log into the tech tab and try not to do anything violent today. I’ll have some food and water for you soon.
He opened up the techtab. Logged in as Kart.Tanic on libertynet.gov. Santana’s first post for him read-
Hi, I’m Tanic. I just attacked your planet. I’m from the Kartouri. I’m going to be staying with Santana for a while as my ship is being fixed. I’ll talk to you soon.
Most of the replies were just automatic spambots and welcome bots for a variety of groups. One or two people said hi. A few had some insults for having attacked him. What really bothered him though was that one vote came in red and appeared to be a flag.
 Not only tried to bomb our planet but also threatened my kids with a knife. What a tool. Next time don’t come at a man with a loaded rifle. Next time I’ll use shots and not volts.
Here’s where it all started- https://steemit.com/writing/@aggroed/fiction-friday-4-fictional-settings-and-4-epic-introductions
This page is synchronized from the post: ‘Nagan VII- Cyborgian blue Chapter 2 episode 2.’


Home
Works
Contact
Install app
Welcome To CwryW's Personal Portfolio
Autodesk Fusion 360 Projects
Github Page
FreeCodeCamp Full Stack Certifications
Jsfiddle Fiddles
Codecademy Badges
FreeCodeCamp Glitch.com Projects
FreeCodeCamp Codepen.io Projects
Sololearn Projects
Email


Appointed to Gov Committe on Disability Employment
Inclusive Design & Empathy
Accessibility
“Accessible” means a person with a disability is afforded the opportunity to acquire the same information, engage in the same interactions, and enjoy the same services as a person without a disability in an equally effective and equally integrated manner, with substantially equivalent ease of use.”
700,000 Washington State citizens impacted by web/software access barriers
Policy #188
Authority
August 11th, 2017, Michael Cockrill, Washington State Chief Information Officer signed Office of the Chief Information Officer Policy #188
OCIO Policy #101
State Agencies & Higher Edu
Recommended for Legislative and Judiciary
Requirements
ALL COVERED TECH MUST MEET ESTABLISHED & TESTABLE STANDARD
Identify an Accessibility Coordinator
Have policy and process in place to ensure compliance
Create a ‘plan’
Standard & Covered Technology
W3C’s WCAG 2.0 level AA
Perceivable, operable, understandable & robust
Established and testable standard WCAG 2.0 is a stable, referenceable technical standard. It has 12 guidelines that are organized under 4 principles: perceivable, operable, understandable, and robust. For each guideline, there are testable success criteria, which are at three levels: A, AA, and AAA.
Principals
Perceivable - Information and user interface components must be presentable to users in ways they can perceive.
This means that users must be able to perceive the information being presented (it can't be invisible to all of their senses)
Operable - User interface components and navigation must be operable.
This means that users must be able to operate the interface (the interface cannot require interaction that a user cannot perform)
Understandable - Information and the operation of user interface must be understandable.
This means that users must be able to understand the information as well as the operation of the user interface (the content or operation cannot be beyond their understanding)
Robust - Content must be robust enough that it can be interpreted reliably by a wide variety of user agents, including assistive technologies.
This means that users must be able to access the content as technologies advance (as technologies and user agents evolve, the content should remain accessible)
Testing
Multiple layer approach to testing
Code Validation & Automatic Testing
Functional Testing
Real User/UX Testing
Code Validation & Automatic Testing - Functional Testing - Real User Testing
Code Validation
Run DOM against WCAG 2.0 AA code validation service.
In browser
Manually submit page
Service
Simple or complex
Chrome plugin or automated testing in continuous integration system (Git Flow, CircleCI & Pa11y)
Zero errors does not mean the site is accessible, it mean go to the next step.
Deliverable
Errors & Warnings
Referenced back to standard
Recommended action
1.1.1 Non-text Content (Level A) 2.4.4 Link Purpose (In Context) (Level A)
Recommendation: Add screenreader available only text to button
Code Validation & Automatic Testing - Functional Testing - Real User Testing
Functional Test
Test of predetermined criteria against a site or app, including using assisted technology (screen reader) & input methods that parallel those of people with disabilities (keyboard only navigation).
Checklist results - Pass/Fail & Comment
Referenced back to standard
Recommended action
Document AT used including version and setting
Code Validation & Automatic Testing - Functional Testing - Real User Testing
Real User Test
Actual users doing real things
Facilitation is important
Power users not always best testers
Deliverable
Multi page report on all user's experience
Section that compares/contrasts AT user's experience
Generally less techinical recommendations
Accessible Requirements
Code validates to WCAG 2.0 AA
Application, content or service passes functional testing
Services is usable to users
Process in place to take feedback, maintain & make improvements
Accessible Stories
As a , I want so that
WAI-ARIA 1.0
Accessible Rich Internet Applications
Additional markup to enhance html read by Assistive Tech
ARIA is a W3C Recommendation
1st rule of ARIA
Don't Use ARIA (unless you have to)
Misuse of ARIA
If you can do it with html, do it with html
Forms, HTML5 semantic tags, Navigation
Extra ARIA can conflict with html markup
aria-selected or aria-pressed or aria-checked
ARIA Landmarks vs HTML5
Duplication between ARAI and HTML5
Dynamic Content
Drop down changes content on page
aria-live regions
Hands on
Forms
Navigation
Retro fitting
Why an IT Policy?
What WA Had...
What WA Has...
Americans with Disability Act
RCW 49.60.030 Freedom from discrimination — Declaration of civil rights.
What WA Got... Policy #188
Policy #188
Authority
August 11th, 2016, Michael Cockrill, Washington State Chief Information Officer signed Office of the Chief Information Officer Policy #188
OCIO Policy #101
State Agencies & Higher Edu
Recommended for Legislative and Judiciary
Requirements
ALL COVERED TECH MUST MEET ESTABLISHED & TESTABLE STANDARD
Identify an Accessibility Coordinator
Have policy and process in place to ensure compliance
Publish a ‘plan’
Standard & Covered Technology
W3C’s WCAG 2.0 level AA
Perceivable, operable, understandable & robust
Changes to ADA Title II to include 'websites' (SANPRM) Section 508 Refresh (ICT) Identified as barrier to hiring within WA State (DETF & EO 13-02) 3/4 of million WA State citizens directly benefit (data)
Is It Working?
Over 100 Accessibility Coordinators Attended Training Inspired another CSUN Presentation by UW Language in all IT procurements & contracts Added to OCIO Decision Package Ranking Criteria Prioritize work on ten year old issue with HR system Able to react quickly to letter from National Federation for the Blind
Yet...


|
Binding of Isaac - Afterbirth+ Lua Reference/Guide
|
Public Member Functions | |
| SetType (GridEntityType Type) | |
| SetVariant (integer Variant) | |
| Init (integer Seed) | |
| PostInit () | |
| Update () | |
| Render (Vector Offset) | |
| boolean | Hurt (integer Damage) |
| boolean | Destroy (boolean Immediate) |
| GridEntityType | GetType () |
| integer | GetVariant () |
| integer | GetGridIndex () |
| Desc & | GetSaveState () |
| GridEntityDoor | ToDoor () |
| GridEntityPit | ToPit () |
| GridEntityPoop | ToPoop () |
| GridEntityRock | ToRock () |
| GridEntityPressurePlate | ToPressurePlate () |
| GridEntitySpikes | ToSpikes () |
| GridEntityTNT | ToTNT () |
Public Attributes | |
| const Vector | Position |
| returns the position of the grid cell's center point More... | |
| integer | State |
| integer | VarData |
| Desc | Desc |
| RNG | RNG |
| CollisionClass | CollisionClass |
| Sprite | Sprite |
| boolean GridEntity::Destroy | ( | boolean | Immediate | ) |
| integer GridEntity::GetGridIndex | ( | ) |
| Desc& GridEntity::GetSaveState | ( | ) |
| GridEntityType GridEntity::GetType | ( | ) |
| integer GridEntity::GetVariant | ( | ) |
| boolean GridEntity::Hurt | ( | integer | Damage | ) |
| GridEntity::Init | ( | integer | Seed | ) |
| GridEntity::PostInit | ( | ) |
| GridEntity::Render | ( | Vector | Offset | ) |
| GridEntity::SetType | ( | GridEntityType | Type | ) |
| GridEntity::SetVariant | ( | integer | Variant | ) |
| GridEntityDoor GridEntity::ToDoor | ( | ) |
| GridEntityPit GridEntity::ToPit | ( | ) |
| GridEntityPoop GridEntity::ToPoop | ( | ) |
| GridEntityPressurePlate GridEntity::ToPressurePlate | ( | ) |
| GridEntityRock GridEntity::ToRock | ( | ) |
| GridEntitySpikes GridEntity::ToSpikes | ( | ) |
| GridEntityTNT GridEntity::ToTNT | ( | ) |
| GridEntity::Update | ( | ) |
| CollisionClass GridEntity::CollisionClass |
| Desc GridEntity::Desc |
| const Vector GridEntity::Position |
returns the position of the grid cell's center point
| RNG GridEntity::RNG |
| Sprite GridEntity::Sprite |
| integer GridEntity::State |
| integer GridEntity::VarData |


"x" "1" "CHUNG,FL, KRZEMINSKI,J, WANG,M, CHEN,HJC AND PROKOPCZYK,B, FORMATIONOF THE ACROLEIN-DERIVED 1,N2-PROPANODEOXYGUANOSINE ADDUCTS IN DNA UPON REACTIONWITH 3-(N-CARBETHOXY-N-NITROSAMINO)PROPIONALDEHYDE, C __ HEM. RES. TOXICOL.7(1):62-67, 1994"


Japanese contestants win top 2 spots at Paris piano contest
PARIS — Japanese contestants won the top two spots in the piano category of the Long-Thibaud-Crespin Competition for up-and-coming classical musicians in Paris on Saturday.
Kenji Miura, 26, won first prize among six finalists, becoming the 6th Japanese contestant to take the top spot in the piano category contest, which is held every three years.
Miura currently studies at the Hanns Eisler School of Music in Berlin.
Keigo Mukawa, a 26-year-old student at the Paris National Conservatory of Music, took second prize, and Zhora Sargsyan of Armenia came third.
The competition dating back to 1943 also has violin and singing categories.
© KYODO


What’s New in MathJax v1.1
MathJax version 1.1 includes a number of important improvements and
enhancements over version 1.0. We have worked hard to fix bugs, improve
support for browsers and mobile devices, process TeX and MathML better, and
increase MathJax’s performance.
In addition to these changes, MathJax.org now offers MathJax as a network
service. Instead of having to install MathJax on your own server, you can
link to our content delivery network (CDN) to get fast access to
up-to-date and past versions of MathJax. See Loading MathJax from
the CDN for more details.
The following sections outline the changes in v1.1:
Optimization
- Combined configuration files that load all the needed files in one piece
rather than loading them individually. This simplifies configuration
and speeds up typesetting of the mathematics on the page.
- Improved responsiveness to mouse events during typesetting.
- Parallel downloading of files needed by MathJax, for faster startup
times.
- Shorter timeout for web fonts, so if they can’t be downlaoded, you don’t
have to wait so long.
- Rollover to image fonts if a web font fails to load (so you don’t have
to wait for every font to fail.
- The MathJax files are now packed only with yuicompressor rather than a
custom compressor. The CDN serves gzipped versions, which end up being
smaller than the gzipped custom-packed files.
- Improved rendering speed in IE by removing position:relative from
the style for mathematics.
- Improved rendering speed for most browsers by isolating the mathematics
from the page during typesetting (avoids full page reflows).
Enhancements
- Allow the input and output jax configuration blocks to specify extensions
to be loaded when the jax is loaded (this avoids needing to load them up
front, so they don’t have to be loaded on pages that don’t include
mathematics, for example).
- Better handling of background color from style attributes.
- Ability to pass configuration parameters via script URL.
- Support HTML5 compliant configuration syntax.
- Switch the Git repository from storing the fonts in fonts.zip to
storing the fonts/ directory directly.
- Improved About box.
- Added a minimum scaling factor (so math won’t get too small).
TeX Support
- Added support for \href, \style, \class, \cssId.
- Avoid recursive macro definitions and other resource consumption possibilities.
- Fix for \underline bug.
- Fix for bug with \fbox.
- Fix height problem with \raise and \lower.
- Fix problem with \over used inside array entries.
- Fix problem with nesting of math delimiters inside text-mode material.
- Fix single digit super- and subscripts followed by punctuation.
- Make sure movablelimits is off for \underline and related macros.
- Fix problem with dimensions given with pc units.
MathML Support
- Fix < and & being translated too early.
- Handle self-closing tags in HTML files better.
- Combine adjacent relational operators in <mo> tags.
- Fix entity name problems.
- Better support for MathML namespaces.
- Properly handle comments within MathML in IE.
- Properly consider <mspace> and <mtext> as space-like.
- Improved support for <maction> with embellished operators.
Other Bug Fixes
- Fixed CSS bleed through with zoom and other situations.
- Fixed problems with showMathMenuMSIE when set to false.
- Replaced illegal prefix characters in cookie name.
- Improved placement of surd for square roots and n-th roots.
- Fixed layer obscuring math from MathPlayer for screen readers.
- Newlines in CDATA comments are now handled properly.
- Resolved conflict between jsMath2jax and tex2jax both processing the
same equation.
- Fixed problem with class="tex2jax_ignore" affecting the processing of
sibling elements.
Browser Support
Android
- Added detection and configuration for Android browser.
- Allow use of OTF web fonts in Android 2.2.
Blackberry
- MathJax now works with OS version 6.
Chrome
- Use OTF web fonts rather than SVG fonts for version 4 and above.
Firefox
- Added Firefox 4 detection and configuration.
- Fix for extra line-break bug when displayed equations are in
preformatted text.
- Updated fonts so that FF 3.6.13 and above can read them.
Internet Explorer
- Changes for compatibility with IE9.
- Fix for IE8 incorrectly parsing MathML.
- Fix for IE8 namespace problem.
- Fix for null parentNode problem.
- Fix for outerHTML not quoting values of attributes.
iPhone/iPad
- Added support for OTF web fonts in iOS4.2.
Nokia
- MathJax now works with Symbian3.
Opera
- Prevent Opera from using STIX fonts unless explicitly requested via the
font menu (since Opera can’t display many of the characters).
- Fixed bad em-size detection in 10.61.
- Fixed a problem with the About dialog in Opera 11.
Safari
- Use OTF web fonts for Safari/PC.
WebKit
- Better version detection.


QStringMatcher Class
The QStringMatcher class holds a sequence of characters that can be quickly matched in a Unicode string. More...
| Header: | #include <QStringMatcher> |
| qmake: | QT += core |
Public Functions
| QStringMatcher() | |
| QStringMatcher(const QString &pattern, Qt::CaseSensitivity cs = Qt::CaseSensitive) | |
| QStringMatcher(const QChar *uc, int length, Qt::CaseSensitivity cs = Qt::CaseSensitive) | |
| QStringMatcher(const QStringMatcher &other) | |
| ~QStringMatcher() | |
| Qt::CaseSensitivity | caseSensitivity() const |
| int | indexIn(const QString &str, int from = 0) const |
| int | indexIn(const QChar *str, int length, int from = 0) const |
| QString | pattern() const |
| void | setCaseSensitivity(Qt::CaseSensitivity cs) |
| void | setPattern(const QString &pattern) |
| QStringMatcher & | operator=(const QStringMatcher &other) |
Detailed Description
The QStringMatcher class holds a sequence of characters that can be quickly matched in a Unicode string.
This class is useful when you have a sequence of QChars that you want to repeatedly match against some strings (perhaps in a loop), or when you want to search for the same sequence of characters multiple times in the same string. Using a matcher object and indexIn() is faster than matching a plain QString with QString::indexOf() if repeated matching takes place. This class offers no benefit if you are doing one-off string matches.
Create the QStringMatcher with the QString you want to search for. Then call indexIn() on the QString that you want to search.
See also QString, QByteArrayMatcher, and QRegExp.
Member Function Documentation
QStringMatcher::QStringMatcher()
Constructs an empty string matcher that won't match anything. Call setPattern() to give it a pattern to match.
QStringMatcher::QStringMatcher(const QString &pattern, Qt::CaseSensitivity cs = Qt::CaseSensitive)
Constructs a string matcher that will search for pattern, with case sensitivity cs.
Call indexIn() to perform a search.
QStringMatcher::QStringMatcher(const QChar *uc, int length, Qt::CaseSensitivity cs = Qt::CaseSensitive)
Constructs a string matcher that will search for the pattern referred to by uc with the given length and case sensitivity specified by cs.
This function was introduced in Qt 4.5.
QStringMatcher::QStringMatcher(const QStringMatcher &other)
Copies the other string matcher to this string matcher.
QStringMatcher::~QStringMatcher()
Destroys the string matcher.
Qt::CaseSensitivity QStringMatcher::caseSensitivity() const
Returns the case sensitivity setting for this string matcher.
See also setCaseSensitivity().
int QStringMatcher::indexIn(const QString &str, int from = 0) const
Searches the string str from character position from (default 0, i.e. from the first character), for the string pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in str, or -1 if no match was found.
See also setPattern() and setCaseSensitivity().
int QStringMatcher::indexIn(const QChar *str, int length, int from = 0) const
Searches the string starting at str (of length length) from character position from (default 0, i.e. from the first character), for the string pattern() that was set in the constructor or in the most recent call to setPattern(). Returns the position where the pattern() matched in str, or -1 if no match was found.
This function was introduced in Qt 4.5.
See also setPattern() and setCaseSensitivity().
QString QStringMatcher::pattern() const
Returns the string pattern that this string matcher will search for.
See also setPattern().
void QStringMatcher::setCaseSensitivity(Qt::CaseSensitivity cs)
Sets the case sensitivity setting of this string matcher to cs.
See also caseSensitivity(), setPattern(), and indexIn().
void QStringMatcher::setPattern(const QString &pattern)
Sets the string that this string matcher will search for to pattern.
See also pattern(), setCaseSensitivity(), and indexIn().
QStringMatcher &QStringMatcher::operator=(const QStringMatcher &other)
Assigns the other string matcher to this string matcher.


Change lives (both human and furry) by helping out
Spend a few minutes of your day helping us move a pet from an animal shelter to a loving new home. Make someone's day by bringing their new companion to them!
{% extends 'website/base.html' %} {% block content %}
Spend a few minutes of your day helping us move a pet from an animal shelter to a loving new home. Make someone's day by bringing their new companion to them!


[gecode-users] Adding restart-based search to ECLiPSe's interface to Gecode
Kish Shen
kisshen at cisco.com
Fri Aug 30 20:01:26 CEST 2013
Hi Christian,
Thanks for the code. This code looks to be more C++ like than what I
have now, where my GecodeSearch class (equivalent to EngineBase here)
has several private engine pointers for the different engine types, and
the functions like next() switch on the search methods to call the
function of the correct engine type. I will change my code to be more
like what you are doing here. Thanks again.
My next question is now about doing the restart: are there any
alternatives to doing restart based on the number of failures? One
alternative is to do restart only with a new solution. I assume this is
what the old RESTART engine did. As the current gfd interface supports
this engine, I would like to continue to support it. As I said in my
previous posting, I am not sure if the next solution is done via restart
in RBS, because it seem to use DFS or BAB as the "actual" search engine,
and these engines don't restart (as far as I can tell) with the next
solution.
Thanks and cheers,
Kish
On 27/08/2013 09:51, Christian Schulte wrote:
> Hi Kish,
>
> Here is a solution built on top of Gecode. It defines a type
> Kish::EngineBase that can be passed around irrespective of which engine it
> actual is. The other stuff is just for illustration and how to recast
> Gecode's engines as engines of type Kish::EngineBase.
>
> Hope this helps.
>
> Best
> Christian
>
>
> namespace Kish {
>
> class EngineBase {
> public:
> EngineBase(void) {}
> virtual Gecode::Space* next(void) = 0;
> virtual Gecode::Search::Statistics statistics(void) const = 0;
> virtual bool stopped(void) const = 0;
> virtual ~EngineBase(void) {}
> };
>
> class DFS : public EngineBase {
> protected:
> Gecode::DFS<Gecode::Space> e;
> public:
> DFS(Gecode::Space* s, const Gecode::Search::Options& o)
> : e(s,o) {}
> virtual Gecode::Space* next(void) {
> return e.next();
> }
> virtual Gecode::Search::Statistics statistics(void) const {
> return e.statistics();
> }
> virtual bool stopped(void) const {
> return e.stopped();
> }
> virtual ~DFS(void) {}
> };
>
> class BAB : public EngineBase {
> protected:
> Gecode::BAB<Gecode::Space> e;
> public:
> BAB(Gecode::Space* s, const Gecode::Search::Options& o)
> : e(s,o) {}
> virtual Gecode::Space* next(void) {
> return e.next();
> }
> virtual Gecode::Search::Statistics statistics(void) const {
> return e.statistics();
> }
> virtual bool stopped(void) const {
> return e.stopped();
> }
> virtual ~BAB(void) {}
> };
>
> template<template<class> class E>
> class RBS : public EngineBase {
> protected:
> Gecode::RBS<E,Gecode::Space> e;
> public:
> RBS(Gecode::Space* s, const Gecode::Search::Options& o)
> : e(s,o) {}
> virtual Gecode::Space* next(void) {
> return e.next();
> }
> virtual Gecode::Search::Statistics statistics(void) const {
> return e.statistics();
> }
> virtual bool stopped(void) const {
> return e.stopped();
> }
> virtual ~RBS(void) {}
> };
>
> enum WhichEngine {
> WE_DFS, WE_BAB,
> WE_RBS_DFS, WE_RBS_BAB
> };
>
> EngineBase* engine(WhichEngine we,
> Gecode::Space* s,
> const Gecode::Search::Options& o) {
> switch (we) {
> case WE_DFS: return new DFS(s,o);
> case WE_BAB: return new BAB(s,o);
> case WE_RBS_DFS: return new RBS<Gecode::DFS>(s,o);
> case WE_RBS_BAB: return new RBS<Gecode::BAB>(s,o);
> }
> }
> }
>
>
> --
> Christian Schulte, Professor of Computer Science, KTH,
> www.ict.kth.se/~cschulte/
>
>
> -----Original Message-----
> From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
> Of Christian Schulte
> Sent: Thursday, August 22, 2013 9:50 AM
> To: 'Kish Shen'
> Cc: users at gecode.org
> Subject: Re: [gecode-users] Adding restart-based search to ECLiPSe's
> interface to Gecode
>
> Hi Kish,
>
> My bad... There is really no common basetype for search engines, the type I
> mentioned is actually for the implementations and not the interfaces...
>
> I think you will have to wait until I have added a common basetype (there is
> a basetype, but it is not powerful enough), I might be able to do it until
> the end of the week.
>
> Sorry for the confusion!
>
> Cheers
> Christian
>
> --
> Christian Schulte, Professor of Computer Science, KTH,
> www.ict.kth.se/~cschulte/
>
>
>
> -----Original Message-----
> From: Kish Shen [mailto:kisshen at cisco.com]
> Sent: Thursday, August 22, 2013 9:45 AM
> To: cschulte at kth.se
> Cc: users at gecode.org
> Subject: Re: [gecode-users] Adding restart-based search to ECLiPSe's
> interface to Gecode
>
> Hi Christian,
>
> Thanks again!
>
> On 21/08/2013 19:17, Christian Schulte wrote:
>> Try to avoid the Gecode::Search::bab .... functions. Just create as
> follows:
>> Gecode::Search::Engine* e = new Gecode::BAB(...) Then it also will
>> work for RBS, and you do not have to create a second engine yourself,
>> this will the RBS class do for you.
>>
>> And do not forget to delete e eventually!
>>
>
> This is the part that I don't know how to do correct -- probably because of
> my lack of C++ knowledge, but as far as I can tell, Gecode::DFS etc are not
> of class Engine*, according to the doc:
>
> template<class T>
> class Gecode::DFS<T>
>
> for subclasses T of Space
>
> T is GecodeSpace in my case, I assume. I am not sure what class DFS is, but
> I can't see how it could be Engine*.
>
> Anway, I tried to do the assignment as you suggested:
>
>
> Search::Engine* segine;
> ...
> sengine = new DFS<GecodeSpace>(solver, o); and indeed I get the error
>
> cannot convert 'Gecode::DFS<GecodeSpace>*' to 'Gecode::Search::Engine*'
>
> (I first tried sengine = new DFS(solver, o) but got an error 'expected
> type-specifier')
>
> So I am not sure what to do -- do I need to change the type of sengine,
> and/or the way I assign an engine to sengine?
>
> Cheers,
>
> Kish
>
>
>
>
>
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
>
More information about the users
mailing list


This will create a basic ternary plot (or quaternary, quinternary, etc.) Converts ternary data to normalized for for plotting on the returned axes.
| Parameters: |
|
|---|---|
| Return type: | |
| Returns: | A (N,3) shaped numpy.array, coordinates are transformed to triangular axes. |
For example:
from matplotlib.pylab import *
from mango.application.plot import ternaryPlot
k = 0.5
s = 1000
data = vstack((
array([k,0,0]) + rand(s,3),
array([0,k,0]) + rand(s,3),
array([0,0,k]) + rand(s,3)
))
color = array([[1,0,0]]*s + [[0,1,0]]*s + [[0,0,1]]*s)
newdata, ternAx = ternaryPlot(data)
ax, fig = ternAx.createAxes()
ax.scatter(
newdata[:,0],
newdata[:,1],
s=2,
alpha=0.5,
color=color
)
show()


The message toast is a small, non-disruptive popup for success messages that disappears automatically after a few seconds.
Note: The timing and duration of the message toast can be defined, the standard value being 3000 ms.


{% extends "layout.html" %} {% block title %} {% endblock %} {% block article %}
Here is where you can find out who is funding our political parties and politicians. The data is from the Electoral Commission and is updated quarterly, starting in September 2010 (for older data, visit the Electoral Commission).
You can browse the donors on the right; use the search above; or take a look at some of our analysis below.
{% elif title.header == "Registered Interest" %}Here is where you can find out who else is paying our politicians besides taxpayers. The data is from the MPs and Lords registers of interests and reveals: their second (third and fourth) jobs and directorships; any hospitality they have accepted; overseas trips accepted; and shareholdings. It is updated quarterly, starting in September 2010 (for older data, visit TheyWorkForYou).
You can browse the registered interests on the right; use the search above; or take a look at some of our analysis below.
{% elif title.header == "Lobby Agency Client" %}Here is where you can find out who is lobbying for whom. The data is from the lobbying industry’s voluntary register of lobbyists. The system is overseen by lobbyists and lacks any meaningful sanctions and so should not necessarily be seen as full and accurate record; nor are all commercial lobbyists registered. The list contains none of the law firms, accountancy firms, management consultants that also provide lobbying services to clients.
The government has just introduced a compulsory register of lobbyists, but it is very narrow in its scope. We will, however, import the additional information it contains soon.
At the moment the industry register is updated quarterly, starting in September 2010 (for older data, visit the Association of Professional Political Consultants).
You can browse the lobbyists' clients in the list on the right; use the search above; or take a look at some of our analysis below. A list of the commercial lobbying agencies registered can be found here.
{% else %}Here is where you can find Donors, Registered Interests and Lobbying Clients in one collection.
You can browse the collection on the right; use the search above; or take a look at some of our analysis below.
{% endif %}As always, if you find glitches or inaccuracies in the data, please let us know, and always check the source before citing.
{% for label in entry["labels"] %} {{ label }} {% endfor %}


Why Register?
Registering your number with us will ensure that any reviews written for your number, will appear against your profile.
It will also enable you with quick access to review anyone on your phone contact list anonymously. Someone looking up your number through the Reverse Lookup feature will also be able to view your details and your reviews.
Cannot Connect to the server?
If you cannot connect to our server, please try again or change your data network.
© 2014 HigherOrder


microbiome infected infection IAV samples human data influenza healthy ferrets URT time bacterial ferret respiratory uninfected Otu microbiomes patients points using virus (Supplementary {border-style OTU analysis viral OTUs associated model px;} #ffffff;} abundance taxonomic diagnostic infection. Fig.Â Source number study taxa temporal (Fig.Â disturbance dynamics ecostate ecostates results analyzed different iDMM nasal observed relative unhealthy Data IAV-infected community data. diversity individuals infections obtained post sample sequences total tract Pseudomonadales Pseudomonas TableÂ [], changes clinical cohort day included nasopharyngeal secondary (TableÂ Influenza al.The performed reads similar structure study, weight analyses composition confirmed dynamic followed high host humans infection, microbial negative pandemic paper. posterior-predictive predictive present probability px; samples, taken wrote {font-family (). Ecostate Infect. Râ€‰=â€‰., Supplementary animal beta-diversity collected controls data, days effect experiments font-size groups individuals. iterations level order p-valueâ€‰ provided resilience role samples. seven severe shown significant taxon upper (version ..) Actinobacteria Bacteria; Human abundant acute addition, additional age animals animals. antibiotic clustering co-infection consistent differences disease double; ecological factors ferrets, file. highest influenza-infected longitudinal maximum positive potential probabilities random-forest response sequencing statistical studies subjects supervised treatments unknown used Brayâ€"Curtis Department Dis. However, Infectious Microbiol. National Vâ€"V abundances accession aligned average based bloom bold border-color border-width cases caused co-infections communities control coordinates correlated count designed ecostate, ecostate. effects examined experimental group importance including information iteration loss microbiome, microbiome. modulating multiple nature onset opportunistic original p-value pathogens phylogenetic point prevalent provide sequence set solid; susceptibility swabs therapeutic threshold trends values variability {font-style {font-weight â€" (ANOSIM (PCoA) Beta-diversity Care Commons Creative Diagnostic Fig. Funding Health Hence, Institute LINK Med. Medicine Methods Principal RNA Respir. School Staphylococcus Total Tâ€‰=â€‰ according accurately assess baseline body class clear collection compare controlled courier; demonstrated described design distances divergent diverse em; expected ferrets. however, humans, humans. identified illustrations, increase indicates indirect individual induced induces infectionâ€� influence initial likely lung method microbiota model. models modulation number: ordination parts patient pneumonia prepared pt;} reported resulting sample. showed stable states strain strains tested titer treatment virus. viruses washes weights years â€œAll


--- layout: example categories: example/v1.0.0 version: v1.0.0 title: Identify overlapping polygons description: Use leaflet-pip to identify overlapping polygons and highlight them. tags: - plugins ---


Presented by Tectight
IBM Cloud – Robust cloud infrastructure for smarter business
by PartnerIn an interconnected digital economy, businesses cannot afford to rely on locally-deployed infrastructure to process, store and protect valuable data.
This outdated practice can be ineffective and insecure. The cloud is key.
IBM Cloud is a powerful suite of innovative data and AI tools combined with cloud industry expertise to assist your business’s journey into the cloud.
It is a full-stack cloud platform with more than 170 products and services that cover data, containers, AI, IoT, and blockchain – providing all the cloud capability businesses will require.
As an IBM Gold Business Partner, Tectight offers the experience needed to provide your business with the optimal IBM Cloud solution.
IBM Compute performance
Processing power is at the core of an optimised cloud experience.
IBM’s Cloud bare metal servers employ scalable second-generation Intel Xeon Gold and Silver processors.
With the Aerospike NoSQL Database integrated on these servers, businesses gain fast and flexible infrastructure capabilities to effectively manage data-intensive workloads.
IBM Cloud bare metal servers boast a host of useful features, including:
- High-performance computing power – Up to quad-processor 12-core architecture.
- Local storage of up to 36 drives per server and SSDs with capacity from 800GB to 3.8TB.
- Customisable RAM (up to 3TB) and SSD configurations.
Cost-saving IBM Cloud Storage
Also on offer is IBM’s Cloud Storage solution which is flexible and scalable, and has the ability to handle both traditional and cloud-native workloads.
Provisioning, deployment and access is made simple so that customers can overcome the difficulties related to managing large amounts of different storage types locally.
Additionally, cost savings are realised with IBM’s solution.
When the International Data Corporation (IDC) analysed the business value of IBM Cloud Object Storage through interviews with IBM Cloud customers, it projected storage-related cost savings, staff efficiencies and higher revenue would be worth more than 3.5 times the costs over three years.
IBM Cloud Paks software
IBM Cloud Paks are enterprise-ready, containerised software solutions that assist businesses in moving core applications to the cloud.
These solutions are underpinned by Red Hat OpenShift and supported by Red Hat Enterprise Linux.
Cloud Pak for Data System combines hardware and software to integrate different components, such as storage, processing, networking and software into a cumulative hyper-converged ecosystem.
The benefits of this software solution include simplified management, accelerated deployment, scalability, agility and low costs, as well as AI capabilities that eliminate the need for data users to manually configure hardware and software infrastructure.
IBM Private Cloud for closer-to-home support
Private Cloud is also catered for by IBM, and it supports private cloud solutions based on-premise and in data centres within customers’ business zones.
IBM Private Cloud runs on your business’s infrastructure and is built on open source frameworks, like containers, Kubernetes, and Cloud Foundry.
Legacy applications are then securely integrated to the private cloud during an extensive analysis and redesign process which allows for the refactoring and modernisation of these applications.
This solution allows businesses to run cloud applications in a private cloud and be moved into a public cloud later on if needed.
Tectight’s solutions
Tectight’s team of certified engineers possess a wealth of expertise that will assist your business’s cloud requirements.
Let Tectight assist you to effectively implement a tailored IBM Cloud solution that will drive your data to better serve your business’s targets.
Click here for more information on Tectight’s IBM Cloud products.
This article was published in partnership with Tectight.