| Package | Description |
|---|---|
| com.mongodb | |
| com.mongodb.client.model | |
| com.mongodb.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicDBList
An implementation of List that reflects the way BSON lists work.
|
class |
BasicDBObject
A basic implementation of BSON object that is MongoDB specific.
|
class |
CommandResult
A simple wrapper to hold the result of a command.
|
class |
LazyDBList
A
LazyDBObject representing a BSON array. |
class |
LazyDBObject
An immutable
DBObject backed by a byte buffer that lazily provides keys and values on request. |
class |
ReflectionDBObject
This class enables to map simple Class fields to a BSON object fields
|
| Modifier and Type | Method and Description |
|---|---|
DBObject |
DBCursor.curr()
Returns the element the cursor is at.
|
DBObject |
DBObjectCodec.decode(org.bson.BsonReader reader,
org.bson.codecs.DecoderContext decoderContext) |
DBObject |
LazyDBDecoder.decode(byte[] bytes,
DBCollection collection) |
DBObject |
DefaultDBDecoder.decode(byte[] bytes,
DBCollection collection) |
DBObject |
DBDecoder.decode(byte[] bytes,
DBCollection collection)
Decode a single DBObject belonging to the given collection from the given array of bytes.
|
DBObject |
LazyDBDecoder.decode(InputStream input,
DBCollection collection) |
DBObject |
DefaultDBDecoder.decode(InputStream input,
DBCollection collection) |
DBObject |
DBDecoder.decode(InputStream input,
DBCollection collection)
Decode a single DBObject belonging to the given collection from the given input stream.
|
DBObject |
DBCursor.explain()
Returns an object containing basic information about the execution of the query that created this cursor.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBCollectionFindAndModifyOptions options)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject update)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject sort,
DBObject update)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
boolean bypassDocumentValidation,
long maxTime,
TimeUnit maxTimeUnit)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
boolean bypassDocumentValidation,
long maxTime,
TimeUnit maxTimeUnit,
com.mongodb.WriteConcern writeConcern)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
long maxTime,
TimeUnit maxTimeUnit)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
long maxTime,
TimeUnit maxTimeUnit,
com.mongodb.WriteConcern writeConcern)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
com.mongodb.WriteConcern writeConcern)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndRemove(DBObject query)
Atomically remove and return a single document.
|
DBObject |
DBCollection.findOne()
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBCollectionFindOptions findOptions)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBObject projection)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBObject projection,
DBObject sort)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBObject projection,
DBObject sort,
com.mongodb.ReadPreference readPreference)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBObject projection,
com.mongodb.ReadPreference readPreference)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(Object id)
Get a single document from collection by '_id'.
|
DBObject |
DBCollection.findOne(Object id,
DBObject projection)
Get a single document from collection by '_id'.
|
DBObject |
DBObjectCodec.generateIdIfAbsentFromDocument(DBObject document) |
DBObject |
QueryBuilder.get()
Creates a
DBObject query to be used for the driver's find operations |
DBObject |
BasicDBObjectBuilder.get()
Gets the top level document.
|
DBObject |
MapReduceOutput.getCommand()
Get the original command that was sent to the database.
|
DBObject |
WriteConcernError.getDetails()
Gets the details associated with this error.
|
DBObject |
BulkWriteError.getDetails()
Gets the details associated with this error.
|
DBObject |
DBCursor.getKeysWanted()
Gets the fields to be returned.
|
DBObject |
MapReduceCommand.getQuery()
Gets the query to run for this MapReduce job
|
DBObject |
DBCursor.getQuery()
Gets the query.
|
DBObject |
MapReduceCommand.getSort()
Gets the (optional) sort specification object
|
DBObject |
DBCollection.group(DBObject key,
DBObject cond,
DBObject initial,
String reduce)
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
|
DBObject |
DBCollection.group(DBObject key,
DBObject cond,
DBObject initial,
String reduce,
String finalize)
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
|
DBObject |
DBCollection.group(DBObject key,
DBObject cond,
DBObject initial,
String reduce,
String finalize,
com.mongodb.ReadPreference readPreference)
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
|
DBObject |
DBCollection.group(GroupCommand cmd)
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
|
DBObject |
DBCollection.group(GroupCommand cmd,
com.mongodb.ReadPreference readPreference)
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
|
DBObject |
DBCursor.next()
Returns the object the cursor is at and moves the cursor ahead by one.
|
DBObject |
DBCursor.one()
Returns the first document that matches the query.
|
DBObject |
LazyDBDecoder.readObject(InputStream in) |
DBObject |
MapReduceCommand.toDBObject()
Turns this command into a DBObject representation of this map reduce command.
|
DBObject |
GroupCommand.toDBObject()
Turns this group command into the DBObject format of the command.
|
DBObject |
DBCursor.tryNext()
Non blocking check for tailable cursors to see if another object is available.
|
DBObject |
Mongo.unlock()
Unlocks the database, allowing the write operations to go through.
|
| Modifier and Type | Method and Description |
|---|---|
Class<DBObject> |
DBObjectCodec.getEncoderClass() |
List<DBObject> |
DBCollection.getHintFields()
Get hint fields for this collection (used to optimize queries).
|
List<DBObject> |
DBCollection.getIndexInfo()
Return a list of the indexes for this collection.
|
protected Class<? extends DBObject> |
DBCollection.getInternalClass(String path)
Gets the internal class for the given path in the document hierarchy
|
Iterator<DBObject> |
DBCursor.iterator()
Creates a copy of this cursor object that can be iterated.
|
Iterable<DBObject> |
MapReduceOutput.results()
Returns an iterable containing the results of the operation.
|
Iterable<DBObject> |
AggregationOutput.results()
Returns the results of the aggregation.
|
List<DBObject> |
DBCursor.toArray()
Converts this cursor to an array.
|
List<DBObject> |
DBCursor.toArray(int max)
Converts this cursor to an array.
|
| Modifier and Type | Method and Description |
|---|---|
AggregationOutput |
DBCollection.aggregate(DBObject firstOp,
DBObject... additionalOps)
Deprecated.
Use
DBCollection.aggregate(java.util.List) instead |
AggregationOutput |
DBCollection.aggregate(DBObject firstOp,
DBObject... additionalOps)
Deprecated.
Use
DBCollection.aggregate(java.util.List) instead |
QueryBuilder |
QueryBuilder.and(DBObject... ands)
Equivalent to an $and operand
|
CommandResult |
DB.command(DBObject command)
Executes a database command.
|
CommandResult |
DB.command(DBObject command,
DBEncoder encoder)
Executes a database command.
|
CommandResult |
DB.command(DBObject command,
com.mongodb.ReadPreference readPreference)
Executes the command against the database with the given read preference.
|
CommandResult |
DB.command(DBObject command,
com.mongodb.ReadPreference readPreference,
DBEncoder encoder)
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
|
long |
DBCollection.count(DBObject query)
Same as
DBCollection.getCount(DBObject) |
long |
DBCollection.count(DBObject query,
DBCollectionCountOptions options)
Get the count of documents in collection that would match a criteria.
|
long |
DBCollection.count(DBObject query,
com.mongodb.ReadPreference readPreference)
Get the count of documents in collection that would match a criteria.
|
DBCollection |
DB.createCollection(String collectionName,
DBObject options)
Creates a collection with a given name and options.
|
void |
DBCollection.createIndex(DBObject keys)
Creates an index on the field specified, if that index does not already exist.
|
void |
DBCollection.createIndex(DBObject keys,
DBObject options)
Creates an index on the field specified, if that index does not already exist.
|
void |
DBCollection.createIndex(DBObject keys,
String name)
Forces creation of an index on a set of fields, if one does not already exist.
|
void |
DBCollection.createIndex(DBObject keys,
String name,
boolean unique)
Forces creation of an index on a set of fields, if one does not already exist.
|
List |
DBCollection.distinct(String fieldName,
DBObject query)
Find the distinct values for a specified field across a collection and returns the results in an array.
|
List |
DBCollection.distinct(String fieldName,
DBObject query,
com.mongodb.ReadPreference readPreference)
Find the distinct values for a specified field across a collection and returns the results in an array.
|
boolean |
DBObjectCodec.documentHasId(DBObject document) |
void |
DBCollection.dropIndex(DBObject index)
Drops an index from this collection.
|
QueryBuilder |
QueryBuilder.elemMatch(DBObject match)
Equivalent to the $elemMatch operand
|
void |
DBObjectCodec.encode(org.bson.BsonWriter writer,
DBObject document,
org.bson.codecs.EncoderContext encoderContext) |
DBCursor |
DBCollection.find(DBObject query)
Select documents in collection and get a cursor to the selected documents.
|
BulkWriteRequestBuilder |
BulkWriteOperation.find(DBObject query)
Start building a write request to add to the bulk write operation.
|
DBCursor |
DBCollection.find(DBObject query,
DBCollectionFindOptions options)
Select documents in collection and get a cursor to the selected documents.
|
DBCursor |
DBCollection.find(DBObject query,
DBObject projection)
Select documents in collection and get a cursor to the selected documents.
|
DBCursor |
DBCollection.find(DBObject query,
DBObject projection,
int numToSkip,
int batchSize)
Deprecated.
use
DBCursor.skip(int) and DBCursor.batchSize(int) on the DBCursor
returned from DBCollection.find(DBObject, DBObject) |
DBCursor |
DBCollection.find(DBObject query,
DBObject projection,
int numToSkip,
int batchSize,
int options)
Deprecated.
use
DBCursor.skip(int) , DBCursor.batchSize(int) and DBCursor.setOptions(int) on the DBCursor returned from DBCollection.find(DBObject,
DBObject) |
DBObject |
DBCollection.findAndModify(DBObject query,
DBCollectionFindAndModifyOptions options)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject update)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject sort,
DBObject update)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
boolean bypassDocumentValidation,
long maxTime,
TimeUnit maxTimeUnit)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
boolean bypassDocumentValidation,
long maxTime,
TimeUnit maxTimeUnit,
com.mongodb.WriteConcern writeConcern)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
long maxTime,
TimeUnit maxTimeUnit)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
long maxTime,
TimeUnit maxTimeUnit,
com.mongodb.WriteConcern writeConcern)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndModify(DBObject query,
DBObject fields,
DBObject sort,
boolean remove,
DBObject update,
boolean returnNew,
boolean upsert,
com.mongodb.WriteConcern writeConcern)
Atomically modify and return a single document.
|
DBObject |
DBCollection.findAndRemove(DBObject query)
Atomically remove and return a single document.
|
DBObject |
DBCollection.findOne(DBObject query)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBCollectionFindOptions findOptions)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBObject projection)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBObject projection,
DBObject sort)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBObject projection,
DBObject sort,
com.mongodb.ReadPreference readPreference)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(DBObject query,
DBObject projection,
com.mongodb.ReadPreference readPreference)
Get a single document from collection.
|
DBObject |
DBCollection.findOne(Object id,
DBObject projection)
Get a single document from collection by '_id'.
|
DBObject |
DBObjectCodec.generateIdIfAbsentFromDocument(DBObject document) |
long |
DBCollection.getCount(DBObject query)
Get the count of documents in collection that would match a criteria.
|
long |
DBCollection.getCount(DBObject query,
DBCollectionCountOptions options)
Get the count of documents in collection that would match a criteria.
|
long |
DBCollection.getCount(DBObject query,
DBObject projection)
Get the count of documents in collection that would match a criteria.
|
long |
DBCollection.getCount(DBObject query,
DBObject projection,
long limit,
long skip)
Get the count of documents in collection that would match a criteria.
|
long |
DBCollection.getCount(DBObject query,
DBObject projection,
long limit,
long skip,
com.mongodb.ReadPreference readPreference)
Get the count of documents in collection that would match a criteria.
|
long |
DBCollection.getCount(DBObject query,
DBObject projection,
com.mongodb.ReadPreference readPreference)
Get the count of documents in collection that would match a criteria.
|
org.bson.BsonValue |
DBObjectCodec.getDocumentId(DBObject document) |
DBObject |
DBCollection.group(DBObject key,
DBObject cond,
DBObject initial,
String reduce)
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
|
DBObject |
DBCollection.group(DBObject key,
DBObject cond,
DBObject initial,
String reduce,
String finalize)
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
|
DBObject |
DBCollection.group(DBObject key,
DBObject cond,
DBObject initial,
String reduce,
String finalize,
com.mongodb.ReadPreference readPreference)
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
|
DBCursor |
DBCursor.hint(DBObject indexKeys)
Informs the database of indexed fields of the collection in order to improve performance.
|
WriteResult |
DBCollection.insert(DBObject... documents)
Insert documents into a collection.
|
void |
BulkWriteOperation.insert(DBObject document)
Add an insert request to the bulk operation
|
WriteResult |
DBCollection.insert(DBObject[] documents,
com.mongodb.WriteConcern writeConcern)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(DBObject[] documents,
com.mongodb.WriteConcern aWriteConcern,
DBEncoder encoder)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(DBObject document,
com.mongodb.WriteConcern writeConcern)
Insert a document into a collection.
|
WriteResult |
DBCollection.insert(com.mongodb.WriteConcern writeConcern,
DBObject... documents)
Insert documents into a collection.
|
MapReduceOutput |
DBCollection.mapReduce(String map,
String reduce,
String outputTarget,
DBObject query)
Allows you to run map-reduce aggregation operations over a collection.
|
MapReduceOutput |
DBCollection.mapReduce(String map,
String reduce,
String outputTarget,
MapReduceCommand.OutputType outputType,
DBObject query)
Allows you to run map-reduce aggregation operations over a collection and saves to a named collection.
|
MapReduceOutput |
DBCollection.mapReduce(String map,
String reduce,
String outputTarget,
MapReduceCommand.OutputType outputType,
DBObject query,
com.mongodb.ReadPreference readPreference)
Allows you to run map-reduce aggregation operations over a collection and saves to a named collection.
|
DBCursor |
DBCursor.max(DBObject max)
Specifies an exclusive upper limit for the index to use in a query.
|
DBCursor |
DBCursor.min(DBObject min)
Specifies an inclusive lower limit for the index to use in a query.
|
QueryBuilder |
QueryBuilder.or(DBObject... ors)
Equivalent to an $or operand
|
WriteResult |
DBCollection.remove(DBObject query)
Remove documents from a collection.
|
WriteResult |
DBCollection.remove(DBObject query,
DBCollectionRemoveOptions options)
Remove documents from a collection.
|
WriteResult |
DBCollection.remove(DBObject query,
com.mongodb.WriteConcern writeConcern)
Remove documents from a collection.
|
WriteResult |
DBCollection.remove(DBObject query,
com.mongodb.WriteConcern writeConcern,
DBEncoder encoder)
Remove documents from a collection.
|
void |
BulkWriteRequestBuilder.replaceOne(DBObject document)
Adds a request to replace one document in the collection that matches the query with which this builder was created.
|
void |
BulkUpdateRequestBuilder.replaceOne(DBObject document)
Adds a request to replace one document in the collection that matches the query with which this builder was created.
|
WriteResult |
DBCollection.save(DBObject document)
Update an existing document or insert a document depending on the parameter.
|
WriteResult |
DBCollection.save(DBObject document,
com.mongodb.WriteConcern writeConcern)
Update an existing document or insert a document depending on the parameter.
|
void |
MapReduceCommand.setSort(DBObject sort)
Sets the (optional) sort specification object
|
DBCursor |
DBCursor.sort(DBObject orderBy)
Sorts this cursor's elements.
|
void |
BulkWriteRequestBuilder.update(DBObject update)
Adds a request to update all documents in the collection that match the query with which this builder was created.
|
void |
BulkUpdateRequestBuilder.update(DBObject update)
Adds a request to update all documents in the collection that match the query with which this builder was created.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update)
Modify an existing document.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
boolean upsert,
boolean multi)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
boolean upsert,
boolean multi,
com.mongodb.WriteConcern aWriteConcern)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
boolean upsert,
boolean multi,
com.mongodb.WriteConcern concern,
Boolean bypassDocumentValidation,
DBEncoder encoder)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
boolean upsert,
boolean multi,
com.mongodb.WriteConcern concern,
DBEncoder encoder)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.update(DBObject query,
DBObject update,
DBCollectionUpdateOptions options)
Modify an existing document or documents in collection.
|
WriteResult |
DBCollection.updateMulti(DBObject query,
DBObject update)
Modify documents in collection.
|
void |
BulkWriteRequestBuilder.updateOne(DBObject update)
Adds a request to update one document in the collection that matches the query with which this builder was created.
|
void |
BulkUpdateRequestBuilder.updateOne(DBObject update)
Adds a request to update one document in the collection that matches the query with which this builder was created.
|
| Modifier and Type | Method and Description |
|---|---|
AggregationOutput |
DBCollection.aggregate(List<? extends DBObject> pipeline)
Method implements aggregation framework.
|
Cursor |
DBCollection.aggregate(List<? extends DBObject> pipeline,
AggregationOptions options)
Method implements aggregation framework.
|
Cursor |
DBCollection.aggregate(List<? extends DBObject> pipeline,
AggregationOptions options,
com.mongodb.ReadPreference readPreference)
Method implements aggregation framework.
|
AggregationOutput |
DBCollection.aggregate(List<? extends DBObject> pipeline,
com.mongodb.ReadPreference readPreference)
Method implements aggregation framework.
|
DBCollection |
DB.createView(String viewName,
String viewOn,
List<? extends DBObject> pipeline)
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
|
DBCollection |
DB.createView(String viewName,
String viewOn,
List<? extends DBObject> pipeline,
DBCreateViewOptions options)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
|
CommandResult |
DBCollection.explainAggregate(List<? extends DBObject> pipeline,
AggregationOptions options)
Return the explain plan for the aggregation pipeline.
|
WriteResult |
DBCollection.insert(List<? extends DBObject> documents)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(List<? extends DBObject> documents,
InsertOptions insertOptions)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(List<? extends DBObject> documents,
com.mongodb.WriteConcern aWriteConcern)
Insert documents into a collection.
|
WriteResult |
DBCollection.insert(List<? extends DBObject> documents,
com.mongodb.WriteConcern aWriteConcern,
DBEncoder dbEncoder)
Insert documents into a collection.
|
void |
DBCollection.setHintFields(List<? extends DBObject> indexes)
Override MongoDB's default index selection and query optimization process.
|
void |
DBCollection.setInternalClass(String path,
Class<? extends DBObject> aClass)
Sets the internal class for the given path in the document hierarchy
|
void |
DBCollection.setObjectClass(Class<? extends DBObject> aClass)
Sets a default class for objects in this collection; null resets the class to nothing.
|
| Constructor and Description |
|---|
BulkWriteError(int code,
String message,
DBObject details,
int index)
Constructs a new instance.
|
DBCursor(DBCollection collection,
DBObject query,
DBObject fields,
com.mongodb.ReadPreference readPreference)
Initializes a new database cursor.
|
GroupCommand(DBCollection collection,
DBObject keys,
DBObject condition,
DBObject initial,
String reduce,
String finalize)
Creates a new group command.
|
GroupCommand(DBCollection collection,
DBObject keys,
DBObject condition,
DBObject initial,
String reduce,
String finalize,
com.mongodb.client.model.Collation collation)
Creates a new group command.
|
GroupCommand(DBCollection collection,
String keyf,
DBObject condition,
DBObject initial,
String reduce,
String finalize)
Creates a new group command.
|
GroupCommand(DBCollection collection,
String keyf,
DBObject condition,
DBObject initial,
String reduce,
String finalize,
com.mongodb.client.model.Collation collation)
Creates a new group command.
|
MapReduceCommand(DBCollection inputCollection,
String map,
String reduce,
String outputCollection,
MapReduceCommand.OutputType type,
DBObject query)
Represents the command for a map reduce operation Runs the command in REPLACE output type to a named collection
|
WriteConcernError(int code,
String message,
DBObject details)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
DBObject |
DBCollectionDistinctOptions.getFilter()
Gets the selection query to determine the subset of documents from which to retrieve the distinct values
|
DBObject |
DBCollectionCountOptions.getHint()
Gets the hint to apply.
|
DBObject |
DBCollectionFindOptions.getModifiers()
Gets the query modifiers to apply to this operation.
|
DBObject |
DBCollectionFindOptions.getProjection()
Gets a document describing the fields to return for all matching documents.
|
DBObject |
DBCollectionFindAndModifyOptions.getProjection()
Returns the projection
|
DBObject |
DBCollectionFindOptions.getSort()
Gets the sort criteria to apply to the query.
|
DBObject |
DBCollectionFindAndModifyOptions.getSort()
Returns the sort
|
DBObject |
DBCollectionFindAndModifyOptions.getUpdate()
Returns the update
|
| Modifier and Type | Method and Description |
|---|---|
DBCollectionDistinctOptions |
DBCollectionDistinctOptions.filter(DBObject filter)
Sets the selection query to determine the subset of documents from which to retrieve the distinct values.
|
DBCollectionCountOptions |
DBCollectionCountOptions.hint(DBObject hint)
Sets the hint to apply.
|
DBCollectionFindOptions |
DBCollectionFindOptions.modifiers(DBObject modifiers)
Sets the query modifiers to apply to this operation.
|
DBCollectionFindOptions |
DBCollectionFindOptions.projection(DBObject projection)
Sets a document describing the fields to return for all matching documents.
|
DBCollectionFindAndModifyOptions |
DBCollectionFindAndModifyOptions.projection(DBObject projection)
Sets the projection
|
DBCollectionFindOptions |
DBCollectionFindOptions.sort(DBObject sort)
Sets the sort criteria to apply to the query.
|
DBCollectionFindAndModifyOptions |
DBCollectionFindAndModifyOptions.sort(DBObject sort)
Sets the sort
|
DBCollectionFindAndModifyOptions |
DBCollectionFindAndModifyOptions.update(DBObject update)
Sets the update
|
| Modifier and Type | Class and Description |
|---|---|
class |
GridFSDBFile
This class enables retrieving a GridFS file metadata and content.
|
class |
GridFSFile
The abstract class representing a GridFS file.
|
class |
GridFSInputFile
This class represents a GridFS file to be written to the database.
|
| Modifier and Type | Method and Description |
|---|---|
protected DBObject |
GridFSInputFile.createChunk(Object id,
int currentChunkNumber,
byte[] writeBuffer)
Creates a new chunk of this file.
|
DBObject |
GridFSFile.getMetaData()
Gets the file metadata.
|
| Modifier and Type | Method and Description |
|---|---|
List<GridFSDBFile> |
GridFS.find(DBObject query)
Finds a list of files matching the given query.
|
List<GridFSDBFile> |
GridFS.find(DBObject query,
DBObject sort)
Finds a list of files matching the given query.
|
List<GridFSDBFile> |
GridFS.find(String filename,
DBObject sort)
Finds a list of files matching the given filename.
|
GridFSDBFile |
GridFS.findOne(DBObject query)
Finds one file matching the given query.
|
DBCursor |
GridFS.getFileList(DBObject query)
Gets a filtered list of files stored in this gridfs, sorted by filename.
|
DBCursor |
GridFS.getFileList(DBObject query,
DBObject sort)
Gets a sorted, filtered list of files stored in this gridfs.
|
void |
GridFS.remove(DBObject query)
Removes all files matching the given query.
|
void |
GridFSFile.setMetaData(DBObject metadata)
Gets the file metadata.
|
Copyright © 2017. All rights reserved.


Sum the K-th’s
问题描述 :
N integers are arranged on a circle clockwise. Given two integers M & K. For each position, you should take M continuous integers on the left and M continuous integers on the right. Take out the K-th number of the 2M integers. Then you will get N integers. Add all the integers up and tell me the sum. If the answer is not smaller than 1,000,000,007, divide it by 1,000,000,007 and tell me the remainder.
输入:
There is an Integer T in the first line. Which means the number of test cases in the input file. Then followed by T test cases.
For each test case, in the first line there are 3 Integers N(5<=N<=100,000),M(0<M*2<N),K(0<K<＝2*M). Then there are N Integers, all the integers are non-negative Integers and smaller than 1,000,000,000.
For each test case, in the first line there are 3 Integers N(5<=N<=100,000),M(0<M*2<N),K(0<K<＝2*M). Then there are N Integers, all the integers are non-negative Integers and smaller than 1,000,000,000.
输出:
For each test case, output the answer for a line.
样例输入:
2 5 2 2 1 2 3 4 5 5 1 2 1 2 3 4 5
样例输出:
12 21
(adsbygoogle = window.adsbygoogle || []).push({});
题目需要求解的是最小值，而且没有考虑可能存在环，比如
0 0 0 0 0
1 1 1 1 0
1 0 0 0 0
1 0 1 0 1
1 0 0 0 0
会陷入死循环
大致看了下，算法的时间复杂度没有很本性的提升，算不上高效。
很有意思，可惜我很菜啊
通不过。
总结的很全面，学习了！
这个问题别太纠结了，不同的编译器结果不一样


date: [Entry Date/Time]
title: [Entry Title]
tags: (optional) separate tags with commas
mood: (optional)
Your journal entry goes here.
You can even keep your separate paragraphs! Once this gets long enough it will scroll for you.
You can also add images.


---
title: Home
description: >-
A day of conferences dedicated to web performance. Metrics, UX, code and image optimizations. Come and meet the experts!
i18n-key: home-2019
permalink: /en/2019/
---
{% assign year = page.year | default: site.current_edition %}
This edition is over.
Thanks to all the people who made it a success!
Subscribe our newsletter to receive information about the event.
{% include newsletter-form.html context="main" %}Created in 2018 by and for the webperf community, the "{{ site.title }}" not-for-profit conference is born from the desire to share as widely as possible knowledge and experience about webperf. Web professionals, e-commerce and webperf experts, this event is for you!
Decision makers, developers... let's meet for a day, and maybe a few evenings, in one of the most beautiful cities in France, to discuss web performance: its challenges, its implementation, its stakeholders but also the organization of the companies that implement it.
E-merchants, solution providers, service providers, they have chosen to support us for the love of UX and Web performance. Without them, there would be no event. Thank you very much!


Copyright © 2014 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C liability, trademark and document use rules apply.
This document is a non-normative reference, which provides an overview of Web Components. It summarizes the normative information in the respective specifications in easy-to-digest prose with illustrations.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
Work on this document has been discontinued and it should not be referenced. Numerous online resources about Web Components are available, including the Web Components wiki.
This document was published by the Web Applications Working Group as a Working Group Note. If you wish to make comments regarding this document, please send them to<EMAIL_ADDRESS>(subscribe, archives). All feedback is welcome.
Publication as a Working Group Note does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.


Carphone Warehouse promises bargain hunters their early Black Friday prices won't get any cheaper
The Black Tag event is now live at Carphone Warehouse and the retailer has told customers they won’t get cheaper
by Molly HoltBlack Friday deals are dropping thick and fast - and there’s still two weeks to go before the official event takes place.
November 29th might look like a long way off in your calendar, but retailers are already slashing prices on everything from kitchen appliances to laptops and Smart Tvs to Smart tech.
And if it’s a nifty new mobile phone you’re after, Carphone Warehouse has just launched its Black Tag deals offering shoppers huge savings.
As well as offers on iPhones, Samsung and Sony Xperia phones , there's also going to be discounts on the brand new iPhone 11.
But the best thing about Carphone Warehouse's early Black Friday offers is that the retailer has promised that no deals will get any better come Black Friday.
Shop all the offers at Carphone Warehouse here
That means you can pick up your purchase early, safe in the knowledge that in two weeks time, you won't see the same offer cheaper on the same website.
And if you do see it cheaper elsewhere on Black Friday, Carphone Warehouse promises to refund the difference, reports Mirror Online .
We've highlighted some of the best Black Friday offers from Carphone Warehouse below, along with a few from their sister company iD Mobile, who are known for their cheap mobile tariffs.
One of the standout deals in a sea of superb offers is the free Nintendo Switch Lite with a Samsung A20e - prices for this offer start from £29.99 per month with a £0 upfront cost - view the deals here .
There are over 100 offers with freebies up for grabs on plans starting from £14.99 and no upfront costs.
View all the Samsung Galaxy A20e deals here
View all the Apple deals here
Apple iPhone 11: £49 per month for 90GB data, with a £49.99 upfront cost
Apple iPhone XR : £29.99 per month with a £29.99 upfront cost - save £100
Apple iPhone 8 64GB: £24.99 per month for 500MB of data with no upfront cost - save £339
Apple iPhone 6S 32GB: £16.99 per month for 500MB of data with a £9.99 upfront cost - save £91
View all the Samsung deals here
Free Nintendo Switch with the Samsung A20e : £29.99 per month with a £0 upfront cost
Samsung S10E: £29.99 per month for 1GB data with no upfront cost - save £339
View all the Sony deals here
Sony Xperia 1 : £31.99 per month with a £0 upfront cost – save £100 and get a free PS4 bundle with Call of Duty
View all the Google deals here
Pixel 3A: £16.99 per month for 500MB of data with a £29.99 upfront cost - save £72
Pixel 3A XL: £19.99 per month for 500MB data with a £29.99 upfront cost - save £72


numbers
`Prev `__
N
`Next `__
--------------
**numbers**: n.
[scientific computation] Output of a computation that may not be
significant results but at least indicate that the program is running.
May be used to placate management, grant sponsors, etc. Making numbers
means running a program because output — any output, not necessarily
meaningful output — is needed as a demonstration of progress. See
`*pretty pictures* <../P/pretty-pictures.html>`__,
`*math-out* <../M/math-out.html>`__, `*social science
number* <../S/social-science-number.html>`__.
--------------
+-------------------------------------+----------------------------+---------------------------------+
| `Prev `__ | `Up <../N.html>`__ | `Next `__ |
+-------------------------------------+----------------------------+---------------------------------+
| number-crunching | `Home <../index.html>`__ | NUXI problem |
+-------------------------------------+----------------------------+---------------------------------+


Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Modules
Here is a list of all modules:
[detail level
1
2
]
Algorithms
Containers
Memory Allocation
Synchronization
Timing
Task Scheduling
Threads
Error suppression
Synchronization
Modeling by Intel(R) Parallel Advisor
Heap
Domains
IDs
String Handles
Task Group
Tasks
Counters
Markers
Metadata
Relations
Arrays Visualizer
▼
Legacy API
Collection Control
Threads
Synchronization
Events
Memory Accesses
Thread and Object States
Frames
Copyright © 2005-2019 Intel Corporation. All Rights Reserved.
Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.


--- title: Staff ---
Matteo Beccati
GrUSP founder and stealth vice-president
Passionate about PHP, databases and open source. Way too busy (and lazy) to write a better description or to update his website. Sorry
Cesare D'Amico
GrUSP founder and secretary
In love with technology, open source, outdoor activities, my cats and Lisa. I’m giving back to the community organizing, speaking at and helping out at open source-related conferences.
Francesco Fullone
GrUSP president
Nerd, Otaku, Geek and Dad. I love working with new technologies and smart people, Ideato is the sum of both.
Daniel Londero
GrUSP steering committee
Freelance PHP developer, running three companies, organising many conferences. Remote work passionate. Wannabe ultra trail runner.


Media Pop Up Effect
Popping like it's 1989. Abusing blend modes & other modern stuff. WARNING: Fierce browser sonly!
Inspired by Forward Festival.
Hover/touch & hold the emphesized words.
Much of the topography of North Dakota can be traced to the effects of Wisconsin-age glaciation, particularly in the north and east. Large portions of these glaciated areas are peppered by countless ponds and lakes. A frightening number have been drained; nevertheless, these wetlands constitute one of the most important waterfowl production areas in the country.
Although North Dakota cannot boast of large mountain ranges like the states farther west, it is anything but a flat, monotonous state. Much of the state is characterized by gently rolling prairie.
Further, beach lines and sandhills left over from the last ice age provide a somewhat local variation to the level topography of some areas. The most rugged terrain occurs in the Little Missouri badlands, which are characterized by numerous steep slopes, severely eroded buttes, and arroyos.
A large percentage of the state is occupied by agricultural land. This category includes not only actively farmed land, but also retired croplands, domestic hayfields, fence rows, wood lots (referred to as tree claims), shelterbelts, orchards, and farmyards. While many of these areas are almost devoid of wildlife, others provide suitable habitat for a number of species.
Mixed-grass prairie is the predominant natural habitat, and it supports the largest numbers of many of the prairie specialties which nest in the state. Both tall-grass prairie and short-grass prairie also exist locally.
A prairie habitat which is quite limited in the state is the sage-prairie found in the southwest corner (primarily in the western portions of Bowman and Slope Counties). Xeric in character, it is composed mostly of buffalo and blue grama grasses peppered with sage flats and clumps of prickly pear cactus.
Many prairie areas are punctuated by woody thickets, which host a number of species that are characteristic of woodland-edge habitats. These thickets are composed mostly of large shrubs (wolfberry and silverberry are commonly found) in combination with a few small trees.
Most birders, will be interested in breeding populations of marsh and prairie species. For these it would be best to come in June, preferably during the first three weeks.
With few exceptions, the birds of the eastern half (especially along the Red, James, and Sheyenne Rivers) are the same species found in similar habitats throughout eastern North America.
Turn on your sound ♬ You may have to walk south into the field where the grass gets a little taller to find the Baird’s Sparrow. It likes to sing from the patches of wolfberry and silverberry. During the early stages of the nesting season, it is quite conspicuous.
One of the better places is a large alkaline lake near Westby on the Montana-North Dakota line. To find it, start in the center of town (by the large grain elevator), and drive east on State Highway 5 for 2.3 miles before turning left (north) on a gravel road.
Many local birders and others who bird the area frequently were consulted in determining the status of each bird. Since these people are familiar with the birds, their songs, habits, and habitats, they are good at finding the more elusive species. On your first trip to the area, you may think that some birds are harder to find than is indicated here.
The shallow marsh can be productive in migration and late summer for shorebirds. In the drier fields watch for Bobolink and Grasshopper Sparrow. The wetter edges are good for Marsh and Sedge Wrens, Common Yellowthroat, and Savannah, Le Conte’s, and sometimes Sharp-tailed Sparrows. The lake attracts migrating waterfowl, shorebirds, gulls, and terns.
This large lake has little vegetation around the perimeter, so few ducks or marsh species actually nest, but some use the area from spring through fall. You may expect lots of grebes (especially Western), American White Pelicans, Double-crested Cormorants, and Ring-billed and Franklin’s Gulls.
At times the wind never seems to quit blowing (especially in the winter), and summer storms can come up fast. Remember, North Dakota is one of the states occupying the tornado belt. If violent weather hits, head for shelter immediately. Do not let all of this scare you off; most Dakotans have been easily surviving such weather for years.


Enjoy 20% Discount on Any Stationery
Aaj Hi join Kariye Aur 60% Tak Ki Bachhat Kariye.
Show your Student ID to get 10% Discount
₹200
₹90
₹175
₹50
₹150
₹110
₹250


Hi, My name is Deepak Verma.
I am a Solution Architect and Currently works at Apple.
I design and develop Cloud Solution and Data Pipelines.
I am a Data Expert.
I am also expert in building enterprise grade applications.


Class: Aws::LexModelBuildingService::Types::Slot
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Struct
|
|
|
Instance Chain:
self,
::Aws::Structure ,
Struct
|
|
| Inherits: |
Struct
|
| Defined in: | gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb |
Overview
Identifies the version of a specific slot.
Constant Summary
Instance Attribute Summary
-
#default_value_spec ⇒ Types::SlotDefaultValueSpec
rw
A list of default values for the slot.
-
#description ⇒ String
rw
A description of the slot.
-
#name ⇒ String
rw
The name of the slot.
-
#obfuscation_setting ⇒ String
rw
Determines whether a slot is obfuscated in conversation logs and stored utterances.
-
#priority ⇒ Integer
rw
Directs Amazon
::Aws::Lex
the order in which to elicit this slot value from the user. -
#response_card ⇒ String
rw
A set of possible responses for the slot type used by text-based clients.
-
#sample_utterances ⇒ Array<String>
rw
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy.
-
#slot_constraint ⇒ String
rw
Specifies whether the slot is required or optional.
-
#slot_type ⇒ String
rw
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
-
#slot_type_version ⇒ String
rw
The version of the slot type.
-
#value_elicitation_prompt ⇒ Types::Prompt
rw
The prompt that Amazon Lex uses to elicit the slot value from the user.
Instance Method Summary
::Aws::Structure
- Included
| #to_hash | Alias for Structure#to_h. |
Instance Attribute Details
#default_value_spec ⇒ Types::SlotDefaultValueSpec (rw)
A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#description ⇒ String
(rw)
A description of the slot.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#name ⇒ String
(rw)
The name of the slot.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#obfuscation_setting ⇒ String
(rw)
Determines whether a slot is obfuscated in conversation logs and
stored utterances. When you obfuscate a slot, the value is replaced
by the slot name in curly braces ({\}). For example, if the slot
name is "full_name", obfuscated values are replaced with
"{full_name\}". For more information, see Slot
Obfuscation
.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#priority ⇒ Integer
(rw)
Directs Amazon ::Aws::Lex
the order in which to elicit this slot value from
the user. For example, if the intent has two slots with priorities 1
and 2, AWS Amazon ::Aws::Lex
first elicits a value for the slot with
priority 1.
If multiple slots share the same priority, the order in which Amazon
::Aws::Lex
elicits values is arbitrary.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#response_card ⇒ String
(rw)
A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#sample_utterances ⇒ Array
<String
> (rw)
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#slot_constraint ⇒ String
(rw)
Specifies whether the slot is required or optional.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#slot_type ⇒ String
(rw)
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#slot_type_version ⇒ String
(rw)
The version of the slot type.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end
#value_elicitation_prompt ⇒ Types::Prompt (rw)
The prompt that Amazon Lex uses to elicit the slot value from the user.
# File 'gems/aws-sdk-lexmodelbuildingservice/lib/aws-sdk-lexmodelbuildingservice/types.rb', line 4065
class Slot < Struct.new( :name, :description, :slot_constraint, :slot_type, :slot_type_version, :value_elicitation_prompt, :priority, :sample_utterances, :response_card, :obfuscation_setting, :default_value_spec) SENSITIVE = [] include Aws::Structure end


Source is at
https://github.com/romkey/ctrlh-dashboard


Raising Modulo Numbers
问题描述 :
People are different. Some secretly read magazines full of interesting girls’ pictures, others create an A-bomb in their cellar, others like using Windows, and some like difficult mathematical games. Latest marketing research shows, that this market segment was so far underestimated and that there is lack of such games. This kind of game was thus included into the KOKODáKH. The rules follow:
Each player chooses two numbers Ai and Bi and writes them on a slip of paper. Others cannot see the numbers. In a given moment all players show their numbers to the others. The goal is to determine the sum of all expressions AiBi from all players including oneself and determine the remainder after division by a given number M. The winner is the one who first determines the correct result. According to the players’ experience it is possible to increase the difficulty by choosing higher numbers.
You should write a program that calculates the result and is able to find out who won the game.
输入:
The input consists of Z assignments. The number of them is given by the single positive integer Z appearing on the first line of input. Then the assignements follow. Each assignement begins with line containing an integer M (1 <= M <= 45000). The sum will be divided by this number. Next line contains number of players H (1 <= H <= 45000). Next exactly H lines follow. On each line, there are exactly two numbers Ai and Bi separated by space. Both numbers cannot be equal zero at the same time.
输出:
For each assingnement there is the only one line of output. On this line, there is a number, the result of expression
(A1B1+A2B2+ … +AHBH)mod M.
大哥，你复制也看看是不是这题的答案才复制吧。
你的理解应该是：即使主持人拿走一个箱子对结果没有影响。这样想，主持人拿走的箱子只是没有影响到你初始选择的那个箱子中有奖品的概率，但是改变了其余两个箱子的概率分布。由 1/3,1/3 变成了 0, 2/3
Often We don’t set up on weblogs, but I would like to condition that this established up really forced me individually to do this! considerably outstanding publish
写的好····· Pollard Rho快速因数分解
对于输出格式不用控制？？还是直接使用cout输出。？？
约瑟夫也用说这么长……很成熟的一个问题了，分治的方法解起来o(n)就可以了，有兴趣可以看看具体数学的第一章，关于约瑟夫问题推导出了一系列的结论，很漂亮
不考虑最后将结果排序的话，快排的时间复杂度是O(N) ，而堆排的是O(N*logK)
妈呀！这个Dijkstra模板好长OwQ！
很好的思路，可以借鉴


SMALL SOLDIERS (DreamWorks/Universal) Starring: Gregory Smith, Kirsten Dunst, Jay Mohr, Kevin Dunn, Phil Hartman, voices of Tommy Lee Jones, Frank Langella. Screenplay: Gavin Scott, Adam Rifkin and Ted Elliott & Terry Rossio. Producers: Michael Finnell and Colin Wilson. Director: Joe Dante. MPAA Rating: PG-13 (violence, profanity, adult themes) Running Time: 104 minutes. Reviewed by Scott Renshaw.
Some films are so bald-faced in their attempt to have it both ways that you just have to hand it to 'em for their chutzpah. On one level, for instance, it's obvious SMALL SOLDIERS wants to skewer gung-ho militarism. The set-up finds defense contractor Globotech purchasing a toy company with the cheerfully all-American name of Heartland, attempting to diversify before post-Cold War down-sizing down-sizes it right out of existence. Instructed by Globotech boss Gil Mars (Denis Leary) to create state-of-the-art action toys, designer Larry Benson (Jay Mohr) slips a prototype weapons system microprocessor into the new Commando Elite and Gorgonite action figure lines, creating intelligent, interactive toys designed "with the same rigorous standards demanded by the U.S. Defense Department" (perhaps the film's best joke).
The kicker is that the Commando Elite figures, led by Chip Hazard (voice of Tommy Lee Jones), are the merciless and vaguely racist bad guys, programmed to seek out and destroy the gentle, noble, home-seeking Archer (Frank Langella) and his insecure fellow Gorgonites (no one explains why the Gorgonites couldn't have been programmed as slightly more challenging antagonists than the therapy group from "The Bob Newhart Show"). When troubled teen Alan Abernathy (Gregory Smith) allies himself with the Gorgonites, he too becomes a Commando target, along with his New Age-y parents (Kevin Dunn and Ann Magnuson) and his would-be girlfriend Christy (Kirsten Dunst). As Chip rallies his troops against the enemy, framed Patton-like by the U.S. flag and spouting a succession of non-sequitur patriotic cliches, it becomes clear that director Joe Dante and his team of writers want us to nod knowingly at how the destruction to come will be the result of hard-wired hyper-hawkishness.
Those same folks also know that the destruction to come will be considered bitchin' cool by a contingent in the audience which might be inclined to by SMALL SOLDIERS merchandise. In an era where action figure tie-ins are as much a part of popcorn movie-making as plastic fast food cups, SMALL SOLDIERS bypasses the inconvenient middle step of figuring out how to turn the characters into toys. It also bypasses the inconvenient middle step of explaining why we should side with the peace-loving Gorgonites when the film makes the Commando Elite's assault (complete with flaming tennis balls, nail guns and make-shift helicopters) look like so much fun. In many of his previous films (including GREMLINS, which is the most obvious model for SMALL SOLDIERS), Dante was able to give a dark edge to his invasions of suburban serenity. He loses that edge early on in SMALL SOLDIERS to meet the demands of marketing. It's almost as though the checks Mars (the God of War, get it?) passes out to every one at the end to buy their silence bought off the film-makers as well.
It would be easier to dismiss SMALL SOLDIERS if the result weren't so entertaining, not to mention frequently amusing. For adults, it will be clever mostly in an in-jokey sort of way, from references to GREMLINS' Gizmo to the use of he-man icons like Ernest Borgnine, George Kennedy and Clint Walker as voices for the Commando Elite. The rest of the voice talent -- Spinal Tap alums Christopher Guest, Michael McKean and Harry Shearer re-united as Gorgonites; Sarah Michelle Gellar and Christina Ricci voicing mutant versions of a Barbie-style doll -- isn't too shabby either. The humans may be a pretty boring lot (excluding Phil Hartman, in his last film role as Christy's consumer electronics-obsessed dad), but the combination of Stan Winston's animatronics and perfectly-integrated CGI versions make the toy story a fairly lively one.
SMALL SOLDIERS is just weird and twisted enough to be worth a matinee. It's also a poorly-concealed version of the same action worship you find in a film like ARMAGEDDON, though it's almost better when the worship is thoroughly unironic. The token attempts at satire notwithstanding, SMALL SOLDIERS plays most like a juiced-up feature-length commercial for _real_ Commando Elite action figures, available now at a store near you.
On the Renshaw scale of 0 to 10 soldiers' stories: 6.
Visit Scott Renshaw's MoviePage http://www.inconnect.com/~renshaw/ *** Subscribe to receive new reviews directly by email! See the MoviePage for details, or reply to this message with subject line "Subscribe".
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


This Karnataka School Rings Bell Thrice a Day To Remind Children to Drink Water
In a one of its kind initiative, Indraprastha Vidyalaya in Uppinangady town of Dakshina Kannada district has introduced a separate water bell to create awareness about drinking water among the students.
Uppinangady: We all know how important water is to the survival of human life, yet we fail to drink enough of it, threatening our health in the process. Taking this vital fact into account, a school in Karnataka has come up with an innovative idea to encourage its students to drink more water.
In a one of its kind initiative, Indraprastha Vidyalaya in Uppinangady town of Dakshina Kannada district has introduced a separate water bell to create awareness about drinking water among the students. The bell rings thrice a day- at 10:45 am 12:00 pm and at 2:00 pm to remind students to drink water.
The novel idea, which is being widely appreciated, is being implemented in other schools of the state too.
Jose MJ, Principal of Indraprastha Vidyalaya, told ANI, “It has been observed that as the temperature of the environment rises, so do several health complications like stomach pain and drowsiness.”
Jose explained further that parents of students had been complaining that their children were returning home with full water bottles and suffering from various health problems.
And it seems to have worked too because health complications since the introduction of the separate water bell, have reduced.
“Since the introduction of a separate bell not only are the children reporting better health, but other schools in the state have started following the same procedure,’ he added.
The water bell scheme has already been implemented in parts of Kerala and will soon begin at Telangana schools too. What an awesome idea, right?
For breaking news and live news updates, like us on Facebook or follow us on Twitter and Instagram. Read more on Buzz Latest News on India.com.
Story Timeline
Comments - Join the Discussion


Business name : {{business.business_name}}
Business Email : {{business.business_email}}
Owner : {{business.user.username}}


Contents
Description of demo_regression_outliers.m
Demonstrates varying robustness of different distributions and loss functions to outliers
clear all close all load outliersData.mat
usage of L2 regression
options_l2 = [];
options_l2.addBias = 1;
model_l2 = ml_regression_L2(Xtrain, ytrain, options_l2);
yhat_l2 = model_l2.predict(model_l2, Xtest);
testError_l2 = mean(abs(yhat_l2 - ytest));
fprintf('Averaged absolute test error with %s is: %.3f\n', model_l2.name, testError_l2);
Averaged absolute test error with Squared Loss Linear Regression is: 2.499
usage of L1 regression
options_l1 = [];
options_l1.addBias = 1;
model_l1 = ml_regression_L1(Xtrain, ytrain, options_l1);
yhat_l1 = model_l1.predict(model_l1, Xtest);
testError_l1 = mean(abs(yhat_l1 - ytest));
fprintf('Averaged absolute test error with %s is: %.3f\n', model_l1.name, testError_l1);
Averaged absolute test error with Absolute Loss Linear Regression is: 0.875
plotRegression1D(Xtrain, ytrain, model_l1, model_l2)
usage of Huber regression with 0.9 epsilon
options_hb2 = [];
options_hb2.addBias = 1;
options_hb2.epsilon = 0.9;
model_hb2 = ml_regression_Huber(Xtrain, ytrain, options_hb2);
yhat_hb2 = model_hb2.predict(model_hb2, Xtest);
testError_hb2 = mean(abs(yhat_hb2 - ytest));
fprintf('Averaged absolute test error with %s is: %.3f\n', model_hb2.name, testError_hb2);
Averaged absolute test error with Huber Loss Linear Regression \epsilon=0.9 is: 0.869
usage of Student's t-distribution regression
options_stu = [];
options_stu.addBias = 1;
model_stu = ml_regression_student(Xtrain, ytrain, options_stu);
yhat_stu = model_stu.predict(model_stu, Xtest);
testError_stu = mean(abs(yhat_stu - ytest));
fprintf('Averaged absolute test error with %s is: %.3f\n', model_stu.name, testError_stu);
Averaged absolute test error with Student's Loss Regression is: 0.825
plotRegression1D(Xtrain, ytrain, model_hb2, model_stu);


Blot's source code is dedicated to the public domain. You can read more about the decision to release our source code in the project notes. You can download a copy of the code, view changes and contribute patches.
If you have found a security vulnerability or a bug, please contact us.
We are still actively working on Blot. You can see our recent work and what we have planned on our news page.


Music has always been the one thing i can't just seem to go without. Whatev be the mood , music always seems to carry me around.From Hip-Hop to Blues & EDM to Classical.... I listen to it all....
Here are few of my Absolute Favs
Armin Van Burren
Dimtri Vegas & Like Mike
Tiesto
Hans Zimmer
Daft Punk
Bob Dylan
Sir Elton John
The Black Keys
Ellie Goulding
Florence Welch
Elle King
Macklemore & Ryan Lewis
Marvin Gaye
Marshmello!
Diplo
Martin Garrix
Dillon Francis
Deadmau5
Sander Van Doorn
Bruno Mars
Kygo


Home
Who we are
Our Services
Procurement and Supply Chain
Lifting Inspection
NDT Services
Calibration
E & I Inspection
Surface Protection Services
Technical Staff Supply
Contact Us
Home
Who we are
Our Services
Procurement and Supply Chain
Lifting Inspection
NDT Services
Calibration
E & I Inspection
Surface Protection Services
Technical Staff Supply
Contact Us
Contact us
Contact Us
Home
Contact Us
Feel Free to contact us
Movin' on up to the east side. We finally got a piece of the pie. Flying away on a wing and a prayer. Who could it be.
Believe it or not its just me. The movie star the professor and Mary Ann here on Gilligans Isle
send Message


HOME
PROJECTS
SPARCY
DUNK CHESS
KITTEN CODE
GRAPH
BLOG
SIDEBAR
CONTACT
DUNK CHESS
2D Multiplayer Chess Game
CHESS GAME MADE UP BY USING JAVA


--- layout: page title: "Dissemination Activities" permalink: /dissemination/ ---
The results and methodology of NETDIS have been presented at several international conferences and workshops. Click on the titles for more details.
{% assign sections = site.data.dissections %} {% for section in sections %}{% if section.url %}{% endif %}{{ section.title }}
{% if section.label %}
{{ section.label }}


System Architect Symbol details for "Activity/State"
Abandon Activity (Transition)
- From State:
"Schedule Rejected"
- To State:
Abandoned
Abandon Activity (Transition)
- From State:
"Performer Accepted"
- To State:
Abandoned
Abandon Activity (Transition)
- From State:
Started
- To State:
Abandoned
Abandon Activity (Transition)
- From State:
Decomposed
- To State:
Abandoned
Abandon Activity (Transition)
- From State:
Scheduled
- To State:
Abandoned
Abandon Activity (Transition)
- From State:
"Perfomer Selected"
- To State:
Abandoned
Abandon Activity (Transition)
- From State:
"Performer Rejected"
- To State:
Abandoned
Abandon Activity (Transition)
- From State:
"Performance Suspended"
- To State:
Abandoned
Abandon Activity (Transition)
- From State:
"To Be Done"
- To State:
Abandoned
Abandoned (State)
Accept Activity (Transition)
- From State:
"Perfomer Selected"
- To State:
"Performer Accepted"
Assess Complete (Transition)
- From State:
Decomposed
- To State:
Completed
Assess Complete (Transition)
- From State:
Instantiated
- To State:
Completed
Completed (State)
Confirm Activity (Transition)
- From State:
"Under Consideration"
- To State:
"To Be Done"
Continue Normally (Transition)
- From State:
Started
- To State:
Completed
Decide Against (Transition)
- From State:
"Under Consideration"
- To State:
Discarded
Decompose (Transition)
- From State:
"Performer Accepted"
- To State:
Decomposed
Decomposed (State)
Discarded (State)
Instantiate (Transition)
- From State:
"Performer Accepted"
- To State:
Instantiated
Instantiated (State)
Perfomer Selected (State)
Performance Suspended (State)
Performer Accepted (State)
Performer Rejected (State)
Reject Activity (Transition)
- From State:
"Perfomer Selected"
- To State:
"Performer Rejected"
Reject Performance (Transition)
- From State:
Scheduled
- To State:
"Schedule Rejected"
Reschedule (Transition)
- From State:
"Performance Suspended"
- To State:
Scheduled
Reschedule (Transition)
- From State:
"Schedule Rejected"
- To State:
Scheduled
Resume (Transition)
- From State:
"Performance Suspended"
- To State:
Started
Schedule (Transition)
- From State:
"Performer Accepted"
- To State:
Scheduled
Schedule Rejected (State)
Scheduled (State)
Select Performer (Transition)
- From State:
"Performer Rejected"
- To State:
"Perfomer Selected"
Select Performer (Transition)
- From State:
"To Be Done"
- To State:
"Perfomer Selected"
Start Activity (Transition)
- From State:
Scheduled
- To State:
Started
Started (State)
Suspend Performance (Transition)
- From State:
Started
- To State:
"Performance Suspended"
To Be Done (State)
Under Consideration (State)


Facebook
Email or Phone
Password
forgot password?
Facebook helps you connect and share with the people in your life.


What's the place you folks call home?
BRISBANE! Hang loose!
The big apple.
Eu sou um Carocas.
Greetings from the western cape!
"|"|


It is possible to detect whether a chart has been zoomed in either axis by the use of the isZoomed
function.
If called with no argument, it will report whether either axis has been zoomed.
Alternatively it can be called with an argument of either 'x'
or 'y'
and it will report the status of just that axis.
Here's a simple example using drawCallback
to display the various zoom states whenever the chart is zoomed:
Zoomed: False
Zoomed X: False
Zoomed Y: False
new Dygraph( // containing div document.getElementById("zoomdiv"), // CSV or path to a CSV file. "Date,Temperature\n" + "2011-01-07,75\n" + "2011-01-08,70\n" + "2011-01-09,90\n" + "2011-01-10,30\n" + "2011-01-11,40\n" + "2011-01-12,60\n" + "2011-01-13,70\n" + "2011-01-14,40\n", { drawCallback: function(me, initial) { document.getElementById("zoomed").innerHTML = "" + me.isZoomed(); document.getElementById("zoomedX").innerHTML = "" + me.isZoomed("x"); document.getElementById("zoomedY").innerHTML = "" + me.isZoomed("y"); } } );
The Tests for zoom operations show a full example of this in action.


|
Assimp
5.0.1, master @ cd42b955
|
Helper class to export a given scene to an OBJ file. More...
Classes | |
| struct | aiVectorCompare |
| struct | Face |
| struct | FaceVertex |
| class | indexMap |
| struct | MeshInstance |
| struct | vertexData |
| struct | vertexDataCompare |
Public Member Functions | |
| ObjExporter (const char *filename, const aiScene *pScene, bool noMtl=false) | |
| Constructor for a specific scene to export. More... | |
| ~ObjExporter () | |
| std::string | GetMaterialLibFileName () |
| std::string | GetMaterialLibName () |
Public Attributes | |
| std::ostringstream | mOutput |
| public string-streams to write all output into More... | |
| std::ostringstream | mOutputMat |
Private Member Functions | |
| void | AddMesh (const aiString &name, const aiMesh *m, const aiMatrix4x4 &mat) |
| void | AddNode (const aiNode *nd, const aiMatrix4x4 &mParent) |
| std::string | GetMaterialName (unsigned int index) |
| void | WriteGeometryFile (bool noMtl=false) |
| void | WriteHeader (std::ostringstream &out) |
| void | WriteMaterialFile () |
Private Attributes | |
| const std::string | endl |
| std::string | filename |
| std::vector< MeshInstance > | mMeshes |
| indexMap< aiVector3D, aiVectorCompare > | mVnMap |
| indexMap< vertexData, vertexDataCompare > | mVpMap |
| indexMap< aiVector3D, aiVectorCompare > | mVtMap |
| const aiScene *const | pScene |
| bool | useVc |
| std::vector< aiColor4D > | vc |
| std::vector< aiVector3D > | vn |
| std::vector< vertexData > | vp |
| std::vector< aiVector3D > | vt |
Helper class to export a given scene to an OBJ file.
| ObjExporter::ObjExporter | ( | const char * | filename, |
| const aiScene * | pScene, | ||
| bool | noMtl = false |
||
| ) |
Constructor for a specific scene to export.
| ObjExporter::~ObjExporter | ( | ) |
|
private |
|
private |
| std::string ObjExporter::GetMaterialLibFileName | ( | ) |
| std::string ObjExporter::GetMaterialLibName | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| std::ostringstream Assimp::ObjExporter::mOutput |
public string-streams to write all output into
| std::ostringstream Assimp::ObjExporter::mOutputMat |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |


The column up_image in the table user_profile is defined as the data type long byte. The long byte data type maps the LongVarBinary type in the Ingres Data Adapter, which in turn maps to the System Byte array.
A System Byte array can be converted to other types using the MemoryStream class.
DataRow resultRow;
DataColumnCollection columnCollection;
MemoryStream memoryStream;
Image photo;
resultRow = profileDataSet.Tables["user_profile"].Rows[0];
columnCollection = resultRow.Table.Columns;
memoryStream = new MemoryStream(
(byte[])resultRow.ItemArray[columnsCollection["up_image"].Ordinal]
);
// Read the BLOB stream into an image object.
photo = Image.FromStream(memoryStream);
// Set the image into an image box.
profilePictureBox.Image = photo;


Shimmer also supports theming based on the SharePoint theme. This can be accomplished in two ways. The following three themes are supported.
hoo-ph-primary
- use for the primary theme base background colors;hoo-ph-neutral
- use for the neutral based background color gradient.hoo-ph-fancy
- use for the fancy gradients based background color gradient.This style sheet classes can be added to a complete block as well es directly on the placeholder container.


This page refers to v0.10 documentation
ModSecurity
This example demonstrates how to configure ModSecurity web application firewall on HAProxy Ingress controller.
Prerequisites
This document has the following prerequisites:
- A Kubernetes cluster with a running HAProxy Ingress controller. See the five minutes deployment or the deployment example
ingress-controller
namespace, the default of the five minutes deployment
Deploying agent
A ModSecurity agent can be deployed in a number of ways: as a sidecar container in the same HAProxy Ingress deployment/daemonset resource, as a standalone container in the same host of ingress, or in dedicated host(s), inside or outside a k8s cluster. The steps below will deploy ModSecurity in some dedicated hosts of a k8s cluster, adjust the steps to fit your need.
The ModSecurity agent used is jcmoraisjr/modsecurity-spoa.
Create the ModSecurity agent daemonset:
$ kubectl create -f https://haproxy-ingress.github.io/resources/modsecurity-daemonset.yaml
daemonset "modsecurity-spoa" created
Select the node(s) where ModSecurity agent should run:
$ kubectl get node
NAME STATUS AGE VERSION
<IP_ADDRESS> Ready 102d v1.9.2
...
$ kubectl label node <IP_ADDRESS> waf=modsec
node "<IP_ADDRESS>" labeled
Check if the agent is up and running:
$ kubectl -n ingress-controller get pod -lrun=modsecurity-spoa -owide
NAME READY STATUS RESTARTS AGE IP NODE
modsecurity-spoa-pp6jz 1/1 Running 0 7s <IP_ADDRESS> <IP_ADDRESS>
Configuring HAProxy Ingress
Add the ConfigMap key modsecurity-endpoints
with a comma-separated list of IP:port
of the ModSecurity agent server(s). The default port number of the agent is 12345
.
A kubectl -n ingress-controller edit configmap haproxy-ingress
should work.
Example of a ConfigMap content if ModSecurity agents has IPs <IP_ADDRESS>
and
<IP_ADDRESS>
:
apiVersion: v1
data:
modsecurity-endpoints: <IP_ADDRESS>:12345,<IP_ADDRESS>:12345
...
kind: ConfigMap
Test
Deploy any application:
$ kubectl run echo \
--image=gcr.io/google_containers/echoserver:1.3 \
--port=8080 \
--expose
… and create its ingress resource. Remember to annotate waf as modsecurity
.
No need to use a valid domain, echo.domain
below is fine:
$ kubectl create -f - <<EOF
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/ssl-redirect: "false"
ingress.kubernetes.io/waf: "modsecurity"
name: echo
spec:
rules:
- host: echo.domain
http:
paths:
- path: /
backend:
serviceName: echo
servicePort: 8080
EOF
Test with a simple request. Change the IP below to the IP of your Ingress controller:
$ curl -I <IP_ADDRESS> -H 'Host: echo.domain'
HTTP/1.1 200 OK
Server: nginx/1.9.11
Date: Sun, 27 May 2018 23:28:58 GMT
Content-Type: text/plain
Test now with a malicious request:
curl -i '<IP_ADDRESS>?p=/etc/passwd' -H 'Host: echo.domain'
HTTP/1.0 403 Forbidden
Cache-Control: no-cache
Connection: close
Content-Type: text/html

403 Forbidden

Request forbidden by administrative rules.

Check the agent logs:
$ kubectl -n ingress-controller get pod -lrun=modsecurity-spoa
NAME READY STATUS RESTARTS AGE
modsecurity-spoa-5g5h2 1/1 Running 0 1h
...
$ kubectl -n ingress-controller logs --tail=10 modsecurity-spoa-5g5h2
...
1527464273.942819 [00] [client <IP_ADDRESS>] ModSecurity: Access denied with code 403 (phase 2). Matche
d phrase "etc/passwd" at ARGS:p. [file "/etc/modsecurity/owasp-modsecurity-crs/rules/REQUEST-930-APP
LICATION-ATTACK-LFI.conf"] [line "108"] [id "930120"] [rev "4"] [msg "OS File Access Attempt"] [data
"Matched Data: etc/passwd found within ARGS:p: /etc/passwd"] [severity "CRITICAL"] [ver "OWASP_CRS/
3.0.0"] [maturity "9"] [accuracy "9"] [tag "application-multi"] [tag "language-multi"] [tag "platfor
m-multi"] [tag "attack-lfi"] [tag "OWASP_CRS/WEB_ATTACK/FILE_INJECTION"] [tag "WASCTC/WASC-33"] [tag
"OWASP_TOP_10/A4"] [tag "PCI/6.5.4"] [hostname "ingress.localdomain"] [uri "http://echo.domain/"] [
unique_id ""]
...


| as.cluster {parallelly} | R Documentation |
Coerce an Object to a Cluster Object
as.cluster(x, ...) ## S3 method for class 'cluster' as.cluster(x, ...) ## S3 method for class 'list' as.cluster(x, ...) ## S3 method for class 'SOCKnode' as.cluster(x, ...) ## S3 method for class 'SOCK0node' as.cluster(x, ...) ## S3 method for class 'cluster' c(..., recursive = FALSE)
x |
An object to be coerced. |
... |
Additional arguments passed to the underlying coercion method.
For |
recursive |
Not used. |
An object of class cluster
.
c(...)
combine multiple clusters and / or cluster nodes into one
cluster returned as an of class cluster
. A warning will be produced if
there are duplicated nodes in the resulting cluster.
cl1 <- makeClusterPSOCK(2, dryrun = TRUE) cl2 <- makeClusterPSOCK(c("n1", "server.remote.org"), dryrun = TRUE) cl <- c(cl1, cl2) print(cl)


Replication Manager supports shared access to a database environment from multiple processes. Berkeley DB provides a replication-aware utility, db_replicate, that enables you to upgrade an existing Transactional Data Store application, as discussed in the Transactional Data Store introduction section, to a replication application with minor modifications. While the db_replicate utility simplifies the use of replication with a Transactional Data Store application, you must still understand replication and its impact on the application.
Based on the terminology introduced in the Running Replication Manager in multiple processes section, application processes are subordinate processes and the db_replicate utility is the replication process.
You must consider the following items when planning to use the db_replicate utility in combination with a Transactional Data Store application.
The db_replicate utility requires shared memory access among separate processes, and therefore cannot be used with DB_PRIVATE.
You must understand and accept all of the Transactional Data Store implications of multi-process use as specified in Architecting Transactional Data Store applications. Special attention should be paid to the coordination needed for unrelated processes to start up correctly.
Several
configuration settings are required for
replication. You must set the DB_INIT_REP and
DB_THREAD flags for the DB_ENV->open() method.
Another required configuration item is the local
address. You identify this by creating a DB_SITE
handle and then setting the
DB_LOCAL_SITE
parameter
using the DB_SITE->set_config() method. You also
tell sites how to contact other sites by creating
DB_SITE handles for those sites. Most replication
configuration options start with reasonable
defaults, but applications have to customize at
least some of them. You can set all replication
related configuration options either
programmatically or in the DB_CONFIG file.
The db_replicate utility assumes that an environment exists and that the application has run recovery, if necessary, and created and configured the environment. The startup flow of a typical Transactional Data Store application may not be the best flow for a replication application and you must understand the issues involved. For instance, if an application starts, runs recovery, and performs update operations before starting the db_replicate utility, then if that site becomes a client when replication starts, those update operations will be rolled back.
Almost all of the replication-specific events are handled by the db_replicate utility process, and therefore the application process does not see them. If the application needs to know the information from those replication-specific events, such as role changes, the application must call the rep_stat() method method. The one replication-specific event the application can now receive is the DB_EVENT_REP_PERM_FAILED event. See Choosing a Replication Manager acknowledgement policy for additional information about this event.
There are some error
return values that relate only to replication.
Specifically, the
DB_REP_HANDLE_DEAD
error
should now be handled by the application. Also, if
master leases are in use, then the application
also needs to consider the
DB_REP_LEASE_EXPIRED
error.
You are giving up flexibility for the ease of use of the utility. Application complexity or requirements may eventually dictate integrating replication calls into the application instead of using the db_replicate utility.
The application requires additional changes to manage the read-only status when the application takes on the role of a client.
This section lists the steps needed to get replication running for a common use case of the db_replicate utility. The use case presented is an existing Transactional Data Store application that already has its environment and databases created and is up and running. At some point, replication is considered because failover protection or balancing the read load may now be desired.
To understand the issues involved in a replication application, see the db_replicate utility section in the API Reference Guide, the Replication Chapter in the Programmer's Reference Guide, and the source code of the ex_rep_mgr example program.
Make a local hot backup of the current application environment to a new location to use as a testing area.
Add the DB_INIT_REP and DB_THREAD flags (if not already being used) to the application or the DB_CONFIG file.
Modify the DB_CONFIG file to add the necessary replication configuration values. At a minimum, the local host and port information must be added using the repmgr_site method parameter. As more sites are added to the group, remote host and port information can optionally also be added by adding more repmgr_site method parameters to the DB_CONFIG file.
Rebuild the application and restart it in the current testing directory.
Start the db_replicate utility on the master site with the -M option and any other options needed such as -h for the home directory. At this point you have a lone master site running in an environment with no other replicated sites in the group.
Optionally, prepare to start a client site by performing a manual hot backup of the running master environment to initialize a client target directory. While replication can make its own copy, the hot backup will expedite the synchronization process. Also, if the application assumes the existence of a database and the client site is started without data, the application may have errors or incorrectly attempt to create the database.
Copy the application to the client target.
Modify the client environment's DB_CONFIG file to set the client's local host and port values and to add remote site information for the master site and any other replication configuration choices necessary.
Start the application on the client. The client application should not update data at this point, as explained previously.
Start the db_replicate utility specifying the client environment's home directory using the -h option. Omit the -M option in this case, because the utility defaults to starting in the client role.
Once the initial replication group is established, do not use the -M option with the db_replicate utility. After the initial start, the db_replicate utility assumes the use of elections. If a site crashes, it should rejoin the group as a client so that it can synchronize with the rest of the group.
Depending on how an application is structured, transactional rollback can occur. If this is possible, then you must make application changes or be prepared for successful transactions to disappear. Consider a common program flow where the application first creates and opens the environment with recovery. Then, immediately after that, the application opens up the databases it expects to use. Often an application will use the DB_CREATE flag so that if the database does not exist it is created, otherwise the existing one is used automatically. Then the application begins servicing transactions to write and read data.
When replication is introduced, particularly via the db_replicate utility, the possibility of rollback exists unless the application takes steps to prevent it. In the situation described above, if all of the above steps occur before the db_replicate utility process starts, and the site is started as a client, then all the operations will be rolled back when the site finds the master. The client site will synchronize with the log and operations on the master site, so any operations that occurred in the client application before it knew it was a client will be discarded.
One way to reduce the possibility of rollback is to modify the application so that it only performs update operations (including creation of a database) if it is the master site. If the application refrains from updating until it is the master, then it will not perform operations when it is in the undefined state before replication has been started. The event indicating a site is master will be delivered to the db_replicate utility process, so the application process must look for that information via the rep_stat() method. A site that is expecting to perform updates may need to poll via the rep_stat() method to see the state change from an undefined role to either the master or client role. Similarly, since a client site cannot create a database, it may need to poll for the database's existence while the client synchronizes with the master until the database is created at the client site.
The db_replicate utility provides the means to achieve a replicated application quickly. However, the trade-off for this rapid implementation is that the full flexibility of replication is not available. Some applications may eventually need to consider integrating directly with replication rather than using the db_replicate utility if greater flexibility is desired.
One likely reason for considering integration would be the convenience of receiving all replication-related events in the application process and gaining direct knowledge of such things as role changes. Using the event callback is cleaner and easier than polling for state changes via the rep_stat() method.
A second likely reason for integrating replication directly into the application is the multi-process aspect of the utility program. The developer may find it easier to insert the start of replication directly into the code once the environment is created, recovered, or opened, and avoid the scenario where the application is running in the undefined state. Also it may simply be easier to start the application once than to coordinate different processes and their startup order in the system.


Builder to build PushMessage Object for Notification.
Parameters:
| Name | Type | Description |
|---|---|---|
APNs |
Object | Object contains APNs settings. |
FCM |
Object | Object contains FCM settings. |
ChromeAppExt |
Object | Object contains Chrome app and extensions settings. |
ChromeWeb |
Object | Object contains Chrome settings. |
FirefoxWeb |
Object | Object contains Firefox settings. |
SafariWeb |
Object | Object contains Safari settings. |
FCMLights |
Object | Object contains FCM light settings. |
FCMStyle |
Object | Object contains FCM style settings. |
Target |
Object | Object contains target details. |
Settings |
Object | Object contains complete settings payload. |
Message |
Object | Object contains Message payload. |


## Basic Usage
### Dependencies
DOM Comparator depends on jQuery (version `1.8+` or `2.0+`) and Underscore (version `1.5+`). Make sure you include them before including DOM Comparator source files (by using `bower` or fetching from a CDN).
After including `dist/dom-comparator.js` in your project, the basic usage involves just two steps: creating an instance of `VWO.DOMComparator` and calling the `compare()` function on the instance.
### Constructor
The constructor of `VWO.DOMComparator` can be called using `new VWO.DOMComparator(options)` or `VWO.DOMComparator.create(options)`. The `options` can take three kinds of parameters:
* Pass the strings to compare as `stringA` and `stringB`.
```js
var comparator = VWO.DOMComparator.create({
stringA: '
some markup
',
stringB: 'some markup
'
});
```
* Pass the elements directly as `elA` and `elB`.
```js
var div1 = document.createElement('div');
div1.innerHTML = 'some text
';
var div2 = document.createElement('div');
div2.innerHTML = 'some other text
';
var comparator = VWO.DOMComparator.create({
elA: div1,
elB: div2
});
```
If you're using jQuery, use `get(0)` to get the elements and pass to the constructor.
```js
var comparator = VWO.DOMComparator.create({
elA: $('some text
').get(0),
elB: $('some text
').get(0)
});
```
* Finally, you could also pass instances of `VWO.DOMNode` as `nodeA` and `nodeB`. The above two methods define these properties anyway. This is how you'd do it:
```js
var comparator = VWO.DOMComparator.create({
nodeA: VWO.DOMNode.create({ el: $('some text
').get(0) }),
nodeB: VWO.DOMNode.create({ el: $('some text
').get(0) })
});
```
### Comparison
Comparison is as easy as calling the `compare` function on the `VWO.DOMComparator` instance. The output returned is an array of operations.
```js
var output = comparator.compare();
```
Each of the operations are instances of `VWO.Operation` which hold three properties:
* `name`: The name of the operation to apply. See [supported operations](supported-operations.html) for the list of operations that the output format supports.
* `selectorPath`: The unique CSS selector path that corresponds to the given element.
* `content`: Depending on the operation, the content key contains various properties / additional information about that operation.
The operations are meant to be applied in a serial order, as an operation might be dependent on the one preceding it.


Rules: Players take turns eating apples by choosing an apple and then eating it, along with all the apples below and to the right of it. The blue highlight will show you which apples will be eaten. In this manner, players "munch" away at the board. This is where the game gets its name. Players must eat at least one apple during their turn. Whoever eats the poison apple, the red apple in the upper left-hand corner, loses.
FYI: The first player always wins (ie. the human), so long as s/he plays perfectly. So, don't accuse the computer of cheating.


Hello there! We are doing research on the lifestyle of the general public and would like to know more about you! Please answer the following short survey if you have the time.


This test case covers one part of issue Issue 1717 (CSS Panel does not have @media UI).
#element
rule, one nested inside an @media all
and one inside an @media print
rule.
background-image
property inside the
#element
rule nested inside the @media all
rule-moz-linear-gradient(135deg, #FF8C78, #FFC8B4)

(#element
) above should be red now.
background-image
property inside the
#element
rule nested inside the @media all
rule

(#element
) above should be blue now.


--- layout: socpage title: School of Data excerpt: School of Data works to empower civil society organizations, journalists and citizens with the skills they need to use data effectively in their efforts to create more equitable and effective societies. image: feature: ---
School of Data works to empower civil society organizations, journalists and citizens with the skills they need to use data effectively – evidence is power! - See more at: http://schoolofdata.org/#sthash.H7GOdvmT.dpuf
Our courses are for everyone: whether you’re a data-newbie or a pro looking for inspiration, there’s something for you! Get updates and new courses from the School of Data in your inbox.


The Lower Fraser Valley (LFV) air zone is one of the seven air zones in British Columbia. It is located in southwestern B.C., along the coast and the border with Washington State. Within the LFV air zone are the Metro Vancouver Regional District (MVRD) and the Fraser Valley Regional District (FVRD). The MVRD represents the largest and most densely populated metropolitan area in B.C. It has delegated authority, under the Environmental Management Act, to manage air pollution and air quality within its borders. It also has the highest number and density of air quality monitoring stations, with over 20 stations equipped to monitor major pollutants.
The top five most populous cities/towns in the Lower Fraser Valley are:
| Municipality | Population (2021) |
|---|---|
| Vancouver | 662,248 |
| Surrey | 568,322 |
| Burnaby | 249,125 |
| Richmond | 209,937 |
| Abbotsford | 153,524 |