|
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Classes | |
| class | MyLocal |
Public Member Functions | |
| def | __init__ |
| def | service |
| def | method |
| def | deadline |
| def | request |
| def | response |
| def | state |
| def | get_result_hook |
| def | user_data |
| def | make_call |
| def | wait |
| def | check_success |
| def | get_result |
| def | wait_any |
| def | wait_all |
Public Attributes | |
| callback | |
Wrapper class for asynchronous RPC. Simplest low-level usage pattern: rpc = UserRPC('service', [deadline], [callback]) rpc.make_call('method', request, response) . . . rpc.wait() rpc.check_success() However, a service module normally provides a wrapper so that the typical usage pattern becomes more like this: from google.appengine.api import service rpc = service.create_rpc([deadline], [callback]) service.make_method_call(rpc, [service-specific-args]) . . . rpc.wait() result = rpc.get_result() The service.make_method_call() function sets a service- and method- specific hook function that is called by rpc.get_result() with the rpc object as its first argument, and service-specific value as its second argument. The hook function should call rpc.check_success() and then extract the user-level result from the rpc.result protobuffer. Additional arguments may be passed from make_method_call() to the get_result hook via the second argument. Also note wait_any() and wait_all(), which wait for multiple RPCs.
| def google.appengine.api.apiproxy_stub_map.UserRPC.__init__ | ( | self, | |
| service, | |||
deadline = None , |
|||
callback = None , |
|||
stubmap = None |
|||
| ) |
Constructor. Args: service: The service name. deadline: Optional deadline. Default depends on the implementation. callback: Optional argument-less callback function. stubmap: optional APIProxyStubMap instance, for dependency injection.
| def google.appengine.api.apiproxy_stub_map.UserRPC.check_success | ( | self | ) |
Check for success of the RPC, possibly raising an exception. This function should be called at least once per RPC. If wait() hasn't been called yet, it is called first. If the RPC caused an exceptional condition, an exception will be raised here. The first time check_success() is called, the postcall hooks are called.
| def google.appengine.api.apiproxy_stub_map.UserRPC.deadline | ( | self | ) |
Return the deadline, if set explicitly (otherwise None).
| def google.appengine.api.apiproxy_stub_map.UserRPC.get_result | ( | self | ) |
Get the result of the RPC, or possibly raise an exception. This implies a call to check_success(). If a get-result hook was passed to make_call(), that hook is responsible for calling check_success(), and the return value of the hook is returned. Otherwise, check_success() is called directly and None is returned.
| def google.appengine.api.apiproxy_stub_map.UserRPC.get_result_hook | ( | self | ) |
Return the get-result hook function.
| def google.appengine.api.apiproxy_stub_map.UserRPC.make_call | ( | self, | |
| method, | |||
| request, | |||
| response, | |||
get_result_hook = None , |
|||
user_data = None |
|||
| ) |
Initiate a call. Args: method: The method name. request: The request protocol buffer. response: The response protocol buffer. get_result_hook: Optional get-result hook function. If not None, this must be a function with exactly one argument, the RPC object (self). Its return value is returned from get_result(). user_data: Optional additional arbitrary data for the get-result hook function. This can be accessed as rpc.user_data. The type of this value is up to the service module. This function may only be called once per RPC object. It sends the request to the remote server, but does not wait for a response. This allows concurrent execution of the remote call and further local processing (e.g., making additional remote calls). Before the call is initiated, the precall hooks are called.
| def google.appengine.api.apiproxy_stub_map.UserRPC.method | ( | self | ) |
Return the method name.
| def google.appengine.api.apiproxy_stub_map.UserRPC.request | ( | self | ) |
Return the request protocol buffer object.
| def google.appengine.api.apiproxy_stub_map.UserRPC.response | ( | self | ) |
Return the response protocol buffer object.
| def google.appengine.api.apiproxy_stub_map.UserRPC.service | ( | self | ) |
Return the service name.
| def google.appengine.api.apiproxy_stub_map.UserRPC.state | ( | self | ) |
Return the RPC state. Possible values are attributes of apiproxy_rpc.RPC: IDLE, RUNNING, FINISHING.
| def google.appengine.api.apiproxy_stub_map.UserRPC.user_data | ( | self | ) |
Return the user data for the hook function.
| def google.appengine.api.apiproxy_stub_map.UserRPC.wait | ( | self | ) |
Wait for the call to complete, and call callback if needed. This and wait_any()/wait_all() are the only time callback functions may be called. (However, note that check_success() and get_result() call wait().) Waiting for one RPC will not cause callbacks for other RPCs to be called. Callback functions may call check_success() and get_result(). Callbacks are called without arguments; if a callback needs access to the RPC object a Python nested function (a.k.a. closure) or a bound may be used. To facilitate this, the callback may be assigned after the RPC object is created (but before make_call() is called). Note: don't confuse callbacks with get-result hooks or precall and postcall hooks.
| def google.appengine.api.apiproxy_stub_map.UserRPC.wait_all | ( | cls, | |
| rpcs | |||
| ) |
Wait until all given RPCs are finished. This is a thin wrapper around wait_any() that loops until all given RPCs have finished. Args: rpcs: Iterable collection of UserRPC instances. Returns: None.
| def google.appengine.api.apiproxy_stub_map.UserRPC.wait_any | ( | cls, | |
| rpcs | |||
| ) |
Wait until an RPC is finished. Args: rpcs: Iterable collection of UserRPC instances. Returns: A UserRPC instance, indicating the first RPC among the given RPCs that finished; or None, indicating that either an RPC not among the given RPCs finished in the mean time, or the iterable is empty. NOTES: (1) Repeatedly calling wait_any() with the same arguments will not make progress; it will keep returning the same RPC (the one that finished first). The callback, however, will only be called the first time the RPC finishes (which may be here or in the wait() method). (2) It may return before any of the given RPCs finishes, if another pending RPC exists that is not included in the rpcs argument. In this case the other RPC's callback will *not* be called. The motivation for this feature is that wait_any() may be used as a low-level building block for a variety of high-level constructs, some of which prefer to block for the minimal amount of time without busy-waiting.


Miller & Carter owner eyes more Scottish steakhouse sites
by Scott ReidAll Bar One and Miller & Carter owner Mitchells & Butlers is gearing up to launch new sites in Scotland.
Having already established its Miller & Carter steakhouse brand in key city sites, the next stage of the expansion will focus on more new build, out-of-town opportunities involving a site purchase, or buying an existing business.
John Menzies, a director in the national retail team at property agency Savills in Glasgow, which is advising the pub and restaurant giant, said: “The licensed sector is proving resilient in the current market and best-in-class operators with a strong and differentiated offer are seeking to grow.
“There are now five Miller & Carter steakhouse restaurants in Scotland, across Glasgow, Edinburgh and Aberdeen. The format is proving versatile for the business with all the existing restaurants trading well.
“The business is now seeking new opportunities to grow the brand further with particular interest in busy roadside locations.”
News of the Scottish growth plans came as Mitchells & Butlers hailed a “strong” year after investment across its sites helped to boost sales despite “challenging” conditions in the sector.
The company, which also runs scores of well-known Scottish watering holes including Edinburgh’s historic Sheep Heid Inn, saw like-for-like sales jump 3.5 per cent in the year to September, as total revenues rose to £2.23 billion. It saw pre-tax profit for the year increase, rising by 36 per cent to £177 million.
Growth
Nevertheless, the owner of Toby Carvery and pub chains Nicholson’s and O’Neill’s said sales growth has eased to 1.4 per cent for the most recent seven weeks due to poor weather.
The group said it had been boosted by its programme of investment into refurbishments, with 240 of its 1,748 pubs being “remodelled” during the year.
Chief executive Phil Urban said: “These strong results reflect the work we have done over the last few years, first to build sustained sales growth and then to convert that into profit growth.
“It has been extremely encouraging to see an improvement in like-for-like sales growth across the portfolio during the year, fuelled by our ‘Ignite’ programme of work. This puts us in a stronger position as we move forward into the next financial year, in what we expect to remain challenging market conditions.”


Fields of Research (FOR)
Note: Please select up to 3 Fields of Research (FOR)
codes describing your work, adding up to a total of 100%. For more information on FOR codes please
refer to the following
website
Sum of Field Of Research percentages greater than 100
Sum of Field Of Research percentages less than 100


| Sender |
{{tx.senderId}}
{{tx.knownSender.owner}}
{{tx.knownSender.description}}
|
|
| Recipient |
{{tx.recipientId}}
{{tx.knownRecipient.owner}}
{{tx.knownRecipient.description}}
{{tx | txType}}
|
|
| Confirmations | {{tx.confirmations || 0}} | |
| Amount | {{tx.amount | currency:currency}} {{currency.symbol}} | |
| Fee | {{tx.fee | currency:currency}} {{currency.symbol}} | |
| Timestamp | {{tx.timestamp | timestamp}} | |
| Block | {{tx.blockId}} | Unconfirmed |


生日快乐
Happy Birthday
Settings
For more info, click any label.
Shell Type
Shell Size
Quality
Sky Lighting
Scale
Auto Fire
Finale Mode
Hide Controls
Fullscreen
Open Shutter
Passionately built by
Caleb Miller
.
Close


Uyinene Mrwetyana's body was hidden in Post Office safe overnight, says State
by Tammy PetersenLuyanda Botha, after murdering Uyinene Mrwetyana, left her body overnight in the safe of the Clareinch Post Office, collecting it the next day and setting it alight.
This is according to the summary of facts accompanying the indictment handed up in the Wynberg Magistrate's Court on Thursday, where the case against the former post office employee was transferred to the Western Cape High Court.
According to the State, on August 8, Mrwetyana had enquired about the delivery of clothes she had ordered online. Botha had allegedly assisted her. He said her parcel was not ready and that he would contact her when it arrived.
They exchanged contact details. Mrwetyana's delivery arrived on August 16.
The State charges that Mrwetyana arrived at the post office on August 24 after it had been closed for business. Botha had been there alone and let her in.
She was never seen again.
 She succumbed to a head injury.
Body hidden in safe
Botha is accused of hiding Mrwetyana's body inside the safe of the post office and returning the next day to remove it and transport it in his car to a field in Lingelethu West, where he dumped the body and set it alight.
Her remains were found by police on routine patrol in the early hours of Monday, August 26.
Botha was arrested four days later.
He had made a statement, understood to be a confession, to the police and had also made a "pointing out", detailing where the crimes had taken place, it is alleged.
In addition to setting her body alight, the State charges that Botha had his car cleaned to destroy forensic evidence, thereby obstructing the administration of justice.
Botha, 42, faces charges of murder and defeating the ends of justice, as well as two counts of rape.
He will attend his first pre-trial conference in the High Court on November 15.


Generate a tunnel identifier of the form: <project name>-<current epoch time in milliseconds>
Allocates available random port every build and sets the SELENIUM_PORT environment variable.
The value of the tunnel identifier will be stored in the TUNNEL_IDENTIFIER environment variable.


#include <balls_in_box.h>
Public Member Functions | |
| BallsInBox () | |
| bool | IsValid (const Vector3d &position, const Box &bound) const |
| fastrack_msgs::SensedSpheres | SimulateSensor (const SphereSensorParams ¶ms) const |
| void | Visualize () const |
| ~BallsInBox () | |
| Public Member Functions inherited from fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams > | |
| bool | AreValid (const std::vector< Vector3d > &positions, const Box &bound) const |
| bool | Initialize (const ros::NodeHandle &n) |
| virtual | ~Environment () |
Private Member Functions | |
| void | GenerateObstacles (size_t num, double min_radius, double max_radius, unsigned int seed=0) |
| bool | LoadParameters (const ros::NodeHandle &n) |
| void | SensorCallback (const fastrack_msgs::SensedSpheres::ConstPtr &msg) |
Private Attributes | |
| std::vector< Vector3d > | centers_ |
| std::vector< double > | radii_ |
Additional Inherited Members | |
| Protected Member Functions inherited from fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams > | |
| Environment () | |
| virtual bool | RegisterCallbacks (const ros::NodeHandle &n) |
| virtual void | SensorCallback (const typename fastrack_msgs::SensedSpheres::ConstPtr &msg)=0 |
| Protected Attributes inherited from fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams > | |
| std::string | fixed_frame_ |
| bool | initialized_ |
| Vector3d | lower_ |
| std::string | name_ |
| ros::Subscriber | sensor_sub_ |
| std::string | sensor_topic_ |
| ros::Publisher | updated_pub_ |
| std::string | updated_topic_ |
| Vector3d | upper_ |
| ros::Publisher | vis_pub_ |
| std::string | vis_topic_ |
Definition at line 61 of file balls_in_box.h.
|
inline |
Definition at line 64 of file balls_in_box.h.
|
inlineexplicit |
Definition at line 65 of file balls_in_box.h.
|
private |
Definition at line 260 of file balls_in_box.cpp.
|
virtual |
Implements fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams >.
Definition at line 52 of file balls_in_box.cpp.
|
privatevirtual |
Reimplemented from fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams >.
Definition at line 236 of file balls_in_box.cpp.
|
private |
Definition at line 96 of file balls_in_box.cpp.
|
virtual |
Implements fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams >.
Definition at line 143 of file balls_in_box.cpp.
|
virtual |
Implements fastrack::environment::Environment< fastrack_msgs::SensedSpheres, SphereSensorParams >.
Definition at line 163 of file balls_in_box.cpp.
|
private |
Definition at line 95 of file balls_in_box.h.
|
private |
Definition at line 96 of file balls_in_box.h.


Legend
Start Point
Starting activities for the schedule. These are the jobs that will execute first.
Middle Activity
Regular activities that have dependencies and will execute as soon as they're met.
End Point
Final activities for the schedule. Nothing depends on them. Schedule is done when they're all done.
Indicates the critical path(s) the schedule is taking.
A path between jobs that has slack time.
ES (Early Start) is the earliest the job can possibly start under ideal circumstances.
EF (Early Finish) is the earliest the job can possibly finish under ideal cirumstances.
Slack is the amount of time this job could be delayed, or run long, without delaying the whole schedule.
LS (Late Start) is the latest the job should ever start under worst-case circumstances.
LF (Late Finish) is the latest the job should ever complete under worst-case circumstances.
Duration is how much time the job should take, in whatever unit (mins, hours, etc).


public class BalancedSegmentMergePolicy extends LogByteSizeMergePolicy
This is based on code from zoie, described in more detail at http://code.google.com/p/zoie/wiki/ZoieMergePolicy.
| Modifier and Type | Class and Description |
|---|---|
static class
|
BalancedSegmentMergePolicy.MergePolicyParams
Specifies configuration parameters for BalancedSegmentMergePolicy.
|
MergePolicy.MergeAbortedException
,
MergePolicy.MergeException
,
MergePolicy.MergeSpecification
,
MergePolicy.OneMerge
| Modifier and Type | Field and Description |
|---|---|
static int
|
DEFAULT_NUM_LARGE_SEGMENTS
|
DEFAULT_MAX_MERGE_MB
,
DEFAULT_MAX_MERGE_MB_FOR_FORCED_MERGE
,
DEFAULT_MIN_MERGE_MB
calibrateSizeByDeletes
,
DEFAULT_MAX_MERGE_DOCS
,
DEFAULT_MERGE_FACTOR
,
DEFAULT_NO_CFS_RATIO
,
LEVEL_LOG_SPAN
,
maxMergeDocs
,
maxMergeSize
,
maxMergeSizeForForcedMerge
,
mergeFactor
,
minMergeSize
,
noCFSRatio
,
useCompoundFile
writer
| Constructor and Description |
|---|
BalancedSegmentMergePolicy
()
|
| Modifier and Type | Method and Description |
|---|---|
MergePolicy.MergeSpecification
|
findForcedDeletesMerges
(
SegmentInfos
infos)
Finds merges necessary to force-merge all deletes from the
index.
|
MergePolicy.MergeSpecification
|
findForcedMerges
(
SegmentInfos
infos,
int maxNumSegments,
Map
<
SegmentInfo
,
Boolean
> segmentsToMerge)
Returns the merges necessary to merge the index down
to a specified number of segments.
|
MergePolicy.MergeSpecification
|
findMerges
(
SegmentInfos
infos)
Checks if any merges are now necessary and returns a
MergePolicy.MergeSpecification
if so.
|
int
|
getMaxSmallSegments
()
|
int
|
getNumLargeSegments
()
|
boolean
|
getPartialExpunge
()
|
void
|
setMaxSmallSegments
(int maxSmallSegments)
|
void
|
setMergeFactor
(int mergeFactor)
Determines how often segment indices are merged by
addDocument().
|
void
|
setMergePolicyParams
(
BalancedSegmentMergePolicy.MergePolicyParams
params)
|
void
|
setNumLargeSegments
(int numLargeSegments)
|
void
|
setPartialExpunge
(boolean doPartialExpunge)
|
protected long
|
size
(
SegmentInfo
info)
|
getMaxMergeMB
,
getMaxMergeMBForForcedMerge
,
getMaxMergeMBForOptimize
,
getMinMergeMB
,
setMaxMergeMB
,
setMaxMergeMBForForcedMerge
,
setMaxMergeMBForOptimize
,
setMinMergeMB
close
,
getCalibrateSizeByDeletes
,
getMaxMergeDocs
,
getMergeFactor
,
getNoCFSRatio
,
getUseCompoundFile
,
isMerged
,
isMerged
,
message
,
setCalibrateSizeByDeletes
,
setMaxMergeDocs
,
setNoCFSRatio
,
setUseCompoundFile
,
sizeBytes
,
sizeDocs
,
toString
,
useCompoundFile
,
verbose
setIndexWriter
public static final int DEFAULT_NUM_LARGE_SEGMENTS
public void setMergePolicyParams( BalancedSegmentMergePolicy.MergePolicyParams params)
protected long size( SegmentInfo info) throws IOException
size
in class
LogByteSizeMergePolicy
IOException
public void setPartialExpunge(boolean doPartialExpunge)
public boolean getPartialExpunge()
public void setNumLargeSegments(int numLargeSegments)
public int getNumLargeSegments()
public void setMaxSmallSegments(int maxSmallSegments)
public int getMaxSmallSegments()
public void setMergeFactor(int mergeFactor)
LogMergePolicy
setMergeFactor
in class
LogMergePolicy
public MergePolicy.MergeSpecification findForcedMerges( SegmentInfos infos, int maxNumSegments, Map < SegmentInfo , Boolean > segmentsToMerge) throws IOException
LogMergePolicy
LogMergePolicy.maxMergeSizeForForcedMerge
setting.
By default, and assuming
maxNumSegments=1
, only
one segment will be left in the index, where that segment
has no deletions pending nor separate norms, and it is in
compound file format if the current useCompoundFile
setting is true. This method returns multiple merges
(mergeFactor at a time) so the
MergeScheduler
in use may make use of concurrency.
findForcedMerges
in class
LogMergePolicy
infos
- the total set of segments in the index
maxNumSegments
- requested maximum number of segments in the index (currently this
is always 1)
segmentsToMerge
- contains the specific SegmentInfo instances that must be merged
away. This may be a subset of all
SegmentInfos. If the value is True for a
given SegmentInfo, that means this segment was
an original segment present in the
to-be-merged index; else, it was a segment
produced by a cascaded merge.
IOException
public MergePolicy.MergeSpecification findForcedDeletesMerges( SegmentInfos infos) throws CorruptIndexException , IOException
LogMergePolicy
findForcedDeletesMerges
in class
LogMergePolicy
infos
- the total set of segments in the index
CorruptIndexException
IOException
public MergePolicy.MergeSpecification findMerges( SegmentInfos infos) throws IOException
LogMergePolicy
MergePolicy.MergeSpecification
if so. A merge
is necessary when there are more than
LogMergePolicy.setMergeFactor(int)
segments at a given level. When
multiple levels have too many segments, this method
will return multiple merges, allowing the
MergeScheduler
to use concurrency.
findMerges
in class
LogMergePolicy
infos
- the total set of segments in the index
IOException


protected open fun getSnClass(): List<StringBoolPair>
Overrides Widget.getSnClass
Returns list of CSS class names for current widget in the form of a List.
Return list of CSS class names


- calculateDiffInDays(Date, Date) - Static method in class com.aj.android.commons.java.DateTimeUtils
-
Calculates the difference between the given Date
in days.
- calculateDiffInHours(Date, Date) - Static method in class com.aj.android.commons.java.DateTimeUtils
-
Calculates the difference between the given Date
in hours.
- calculateDiffInMilliSeconds(Date, Date) - Static method in class com.aj.android.commons.java.DateTimeUtils
-
Calculates the difference between the given Date
in milliseconds.
- calculateDiffInMinutes(Date, Date) - Static method in class com.aj.android.commons.java.DateTimeUtils
-
Calculates the difference between the given Date
in minutes.
- calculateDiffInMonths(Date, Date) - Static method in class com.aj.android.commons.java.DateTimeUtils
-
Calculates the difference between the given Date
in months.
- calculateDiffInSeconds(Date, Date) - Static method in class com.aj.android.commons.java.DateTimeUtils
-
Calculates the difference between the given Date
in seconds.
- calculateDiffInWeeks(Date, Date) - Static method in class com.aj.android.commons.java.DateTimeUtils
-
Calculates the difference between the given Date
in weeks.
- calculateDiffInYears(Date, Date) - Static method in class com.aj.android.commons.java.DateTimeUtils
-
Calculates the difference between the given Date
in years.
- calculateInSampleSize(BitmapFactory.Options, int, int) - Static method in class com.aj.android.commons.view.ImageViewUtils
-
Calculate sampling size for image.
- calculateMD5(String) - Static method in class com.aj.android.commons.java.MessageDigestUtils
-
Calculate the MD5 of a given String
- calculateSHA1(String) - Static method in class com.aj.android.commons.java.MessageDigestUtils
-
Calculate the SHA-1 of a given String
- checkIfColumnExist(SQLiteDatabase, String, String) - Static method in class com.aj.android.commons.database.DBUtils
-
Check if the column table name exist in given table and database.
- checkIfColumnExist(String, String) - Method in class com.aj.android.commons.database.ExtendedSQLiteOpenHelper
-
Check if the column table name exist in given table.
- checkIfFileExists(String) - Static method in class com.aj.android.commons.io.FileUtils
-
Check whether given String
file path exist in file system.
- checkIfTableExist(String, SQLiteDatabase) - Static method in class com.aj.android.commons.database.DBUtils
-
Check if the given table name exist in given database or not.
- checkMobileDataState(Context) - Static method in class com.aj.android.commons.net.ConnectivityUtils
-
Check state of mobile data connectivity (on/off).
- clearEditText(EditText) - Static method in class com.aj.android.commons.view.EditTextUtils
-
Clear the contents of EditText
.
- clipCircleBitmap(Bitmap) - Static method in class com.aj.android.commons.image.BitmapUtils
-
Clips / cuts the given Bitmap
image to circular image.
- closeDBConnection(SQLiteDatabase, Cursor) - Static method in class com.aj.android.commons.database.DBUtils
-
Close if SQLiteDatabase
or Cursor
is open.
- closeDBConnection(SQLiteDatabase, Cursor) - Method in class com.aj.android.commons.database.ExtendedSQLiteOpenHelper
-
Close if SQLiteDatabase
or Cursor
is open.
- closeQuietly(Closeable) - Static method in class com.aj.android.commons.io.StreamUtils
-
Close the Closeable
object, does not throw back exception if any exception is raised.
- cmToInches(double) - Static method in class com.aj.android.commons.java.ConversionUtils
-
Converts centi-meters to inches.
- CollectionUtils - Class in com.aj.android.commons.java
-
Collection of commonly used Collection
related utilities.
- CollectionUtils() - Constructor for class com.aj.android.commons.java.CollectionUtils
-
- ColorUtils - Class in com.aj.android.commons.java
-
Collection of Color
related utility methods.
- ColorUtils() - Constructor for class com.aj.android.commons.java.ColorUtils
-
- com.aj.android.commons.app - package com.aj.android.commons.app
-
- com.aj.android.commons.database - package com.aj.android.commons.database
-
- com.aj.android.commons.exception - package com.aj.android.commons.exception
-
- com.aj.android.commons.image - package com.aj.android.commons.image
-
- com.aj.android.commons.io - package com.aj.android.commons.io
-
- com.aj.android.commons.java - package com.aj.android.commons.java
-
- com.aj.android.commons.net - package com.aj.android.commons.net
-
- com.aj.android.commons.view - package com.aj.android.commons.view
-
- com.aj.commons - package com.aj.commons
-
- computeExactPercent(int, int) - Static method in class com.aj.android.commons.java.MathUtils
-
computeExactPercent(135,1036) =13.03088803088803
computeExactPercent(7020,9619) =72.98055930969956
computeExactPercent(5039,9576) =52.62113617376775
computeExactPercent(675,3893) =17.338813254559465
computeExactPercent(4402,8859) =49.68958121684163
computeExactPercent(96,0) =5.9405940594059405
computeExactPercent(1131,1656) =68.29710144927536
computeExactPercent(1426,4549) =31.347548911848758
computeExactPercent(1521,2109) =72.11948790896159
computeExactPercent(1380,2257) =61.143110323438194
- computePercent(int, int) - Static method in class com.aj.android.commons.java.MathUtils
-
Calculate percentage, based on total and current value.
- ConnectivityUtils - Class in com.aj.android.commons.net
-
Collection of utilities related to network connectivity and find network state .
- ConnectivityUtils() - Constructor for class com.aj.android.commons.net.ConnectivityUtils
-
- containsRecords(String, SQLiteDatabase) - Static method in class com.aj.android.commons.database.DBUtils
-
Check if given table contain any records.
- containsRecords(String) - Method in class com.aj.android.commons.database.ExtendedSQLiteOpenHelper
-
Check if given table contain any records.
- ContentProviderUtils - Class in com.aj.android.commons.app
-
Collection of utilities related to Android ContentProvider
.
- ContentProviderUtils() - Constructor for class com.aj.android.commons.app.ContentProviderUtils
-
- ConversionUtils - Class in com.aj.android.commons.java
-
Collection of common method of conversion.
- ConversionUtils() - Constructor for class com.aj.android.commons.java.ConversionUtils
-
- convertDrawableToBitmap(Drawable) - Static method in class com.aj.android.commons.image.BitmapUtils
-
Convert Drawable
to Bitmap
.
- convertImageResourceToBitmap(Context, int) - Static method in class com.aj.android.commons.image.BitmapUtils
-
Convert Drawable
resource to Bitmap
- convertStreamToList(InputStream) - Static method in class com.aj.android.commons.io.StreamUtils
-
Converts given InputStream
to List
<String
>, where each line is new List item.
- convertStreamToList(InputStream, String) - Static method in class com.aj.android.commons.io.StreamUtils
-
Converts given InputStream
to List
<String
> based on given character set, where each line is new List item.
- convertStreamToString(InputStream) - Static method in class com.aj.android.commons.io.StreamUtils
-
Converts given InputStream
to String
, using BufferedReader
with buffer size of 4KB.
- convertToHex(byte[]) - Static method in class com.aj.android.commons.java.StringUtils
-
Converts given byte array to hex decimal string.
- copy(InputStream, OutputStream) - Static method in class com.aj.android.commons.io.StreamUtils
-
Copy from one stream to another stream.
1.
- copyFile(String, String) - Static method in class com.aj.android.commons.io.FileUtils
-
Copy file from source to destination.
- copyFile(File, File) - Static method in class com.aj.android.commons.io.FileUtils
-
Copies the contents of one file to the other using FileChannel
s.
- copyFileFromAsset(Context, String, File) - Static method in class com.aj.android.commons.app.AssetUtils
-
Copy the file from assets to given destination file.
- copyIterator(Iterator<T>) - Static method in class com.aj.android.commons.java.CollectionUtils
-
Copies the iterator object into the List(ArrayList) of the specific generic type
- copyLarge(InputStream, OutputStream) - Static method in class com.aj.android.commons.io.StreamUtils
-
Copy from one stream to another stream.
1.
- copyLarge(InputStream, OutputStream, byte[]) - Static method in class com.aj.android.commons.io.StreamUtils
-
Copy from one stream to another stream based on provided byte array.


Mitch's alarm clock went off at 7 a.m. It was time to wake up and get ready for school. Just as he was getting out of bed, his dad came in. "You get to stay home today, Mitch. School is closed. It's a snow day!" Mitch jumped up and ran to the window. He stared outside, but he could barely see anything?it was a blizzard! Snowflakes were blowing sideways. When the storm ended, everything was white. Mitch was so excited, he wanted to go out and play in the snow. Mitch's dad made him eat a late breakfast, and then he bundled up to go outside. Mitch built a snowman and tossed snowballs. Soon he was very cold and had to go back inside. His dad made him hot chocolate, and Mitch got warm fast. He was so happy to get a snow day!
in-context


Class Cell
A class that defines a square on a Map with all of its associated properties
Inheritance
Inherited Members
Namespace: RogueSharp
Assembly: RogueSharp.dll
Syntax
public class Cell : ICell, IEquatable<ICell>
Constructors
| Improve this Doc View SourceCell(Int32, Int32, Boolean, Boolean, Boolean)
Construct a new unexplored Cell located at the specified x and y location with the specified properties
Declaration
public Cell(int x, int y, bool isTransparent, bool isWalkable, bool isInFov)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | x | X location of the Cell starting with 0 as the farthest left |
| System.Int32 | y | Y location of the Cell starting with 0 as the top |
| System.Boolean | isTransparent | Is there a clear line-of-sight through this Cell |
| System.Boolean | isWalkable | Could a character could normally walk across the Cell without difficulty |
| System.Boolean | isInFov | Is the Cell currently in the currently observable field-of-view |
Cell(Int32, Int32, Boolean, Boolean, Boolean, Boolean)
Construct a new Cell located at the specified x and y location with the specified properties
Declaration
public Cell(int x, int y, bool isTransparent, bool isWalkable, bool isInFov, bool isExplored)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | x | X location of the Cell starting with 0 as the farthest left |
| System.Int32 | y | Y location of the Cell starting with 0 as the top |
| System.Boolean | isTransparent | Is there a clear line-of-sight through this Cell |
| System.Boolean | isWalkable | Could a character could normally walk across the Cell without difficulty |
| System.Boolean | isInFov | Is the Cell currently in the currently observable field-of-view |
| System.Boolean | isExplored | Has this Cell ever been explored by the player |
Properties
| Improve this Doc View SourceIsExplored
Check if the Cell is flagged as ever having been explored by the player
Declaration
public bool IsExplored { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
The explored property of a Cell can be used to track if the Cell has ever been in the field-of-view of a character controlled by the player This property will not automatically be updated based on FOV calculations or any other built-in functions of the RogueSharp library.
Examples
As the player moves characters around a Map, Cells will enter and exit the currently computed field-of-view This property can be used to keep track of those Cells that have been "seen" and could be used to show fog-of-war type effects when rendering the map
| Improve this Doc View SourceIsInFov
Check if the Cell is in the currently computed field-of-view For newly initialized maps a field-of-view will not exist so all Cells will return false Field-of-view must first be calculated by calling ComputeFov and/or AppendFov
Declaration
public bool IsInFov { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Remarks
Field-of-view (FOV) is basically a calculation of what is observable in the Map from a given Cell with a given light radius
Examples
Field-of-view can be used to simulate a character holding a light source and exploring a Map representing a dark cavern Any Cells within the FOV would be what the character could see from their current location and lighting conditions
| Improve this Doc View SourceIsTransparent
Get the transparency of the Cell i.e. if line of sight would be blocked by this Cell
Declaration
public bool IsTransparent { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Examples
A Cell representing an empty stone floor would be transparent A Cell representing a glass wall could be transparent (even though it may not be walkable) A Cell representing a solid stone wall would not be transparent
| Improve this Doc View SourceIsWalkable
Get the walkability of the Cell i.e. if a character could normally move across the Cell without difficulty
Declaration
public bool IsWalkable { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Examples
A Cell representing an empty stone floor would be walkable A Cell representing a glass wall may not be walkable (even though it could be transparent) A Cell representing a solid stone wall would not be walkable
| Improve this Doc View SourceX
Gets the X location of the Cell starting with 0 as the farthest left
Declaration
public int X { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Y
Y location of the Cell starting with 0 as the top
Declaration
public int Y { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceEquals(ICell)
Determines whether two Cell instances are equal
Declaration
public bool Equals(ICell other)
Parameters
| Type | Name | Description |
|---|---|---|
| ICell | other | The Cell to compare this instance to |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the instances are equal; False otherwise |
Equals(Object)
Determines whether two Cell instances are equal
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The Object to compare this instance to |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the instances are equal; False otherwise |
Overrides
GetHashCode()
Gets the hash code for this object which can help for quick checks of equality or when inserting this Cell into a hash-based collection such as a Dictionary or Hashtable
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | An integer hash used to identify this Cell |
Overrides
ToString()
Provides a simple visual representation of the Cell using the following symbols:
.
:Cell
is transparent and walkables
:Cell
is walkable (but not transparent)o
:Cell
is transparent (but not walkable)#
:Cell
is not transparent or walkable
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string representation of the Cell using special symbols to denote Cell properties |
Overrides
Remarks
This call ignores field-of-view. If field-of-view is important use the ToString overload with a "true" parameter
ToString(Boolean)
Provides a simple visual representation of the Cell using the following symbols:
%
:Cell
is not in field-of-view.
:Cell
is transparent, walkable, and in field-of-views
:Cell
is walkable and in field-of-view (but not transparent)o
:Cell
is transparent and in field-of-view (but not walkable)#
:Cell
is in field-of-view (but not transparent or walkable)
Declaration
public string ToString(bool useFov)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | useFov | True if field-of-view calculations will be used when creating the string representation of the Cell. False otherwise |
Returns
| Type | Description |
|---|---|
| System.String | A string representation of the Cell using special symbols to denote Cell properties |
Operators
| Improve this Doc View SourceEquality(Cell, Cell)
Determines whether two Cell instances are equal
Declaration
public static bool operator ==(Cell left, Cell right)
Parameters
| Type | Name | Description |
|---|---|---|
| Cell | left | Cell on the left side of the equal sign |
| Cell | right | Cell on the right side of the equal sign |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if a and b are equal; False otherwise |
Inequality(Cell, Cell)
Determines whether two Cell instances are not equal
Declaration
public static bool operator !=(Cell left, Cell right)
Parameters
| Type | Name | Description |
|---|---|---|
| Cell | left | Cell on the left side of the equal sign |
| Cell | right | Cell on the right side of the equal sign |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if a and b are not equal; False otherwise |


Upload one or more patch files to apply to this fabric
Enter a name for the new version, or leave blank to use the next available version. Version names should be in a form like 1.1.foo, avoid using version names like 1.1-foo:
Enter administrator credentials for fabric:


--- layout: default title: Furatto - Docs::Mixins ---
Furatto comes with many weapons under the hood, in this case mixins, that some of them are used on the core of compiling it, but other ones are just for you.
This mixin will help you generate the necessary css code to support retina images.
// Mixin to add support for retina display on images
@mixin retina-image($image, $width, $height) {
@media (min--moz-device-pixel-ratio: 1.3),
(-o-min-device-pixel-ratio: 2.6/2),
(-webkit-min-device-pixel-ratio: 1.3),
(min-device-pixel-ratio: 1.3),
(min-resolution: 1.3dppx) {
/* on retina, use image that's scaled by 2 */
background-image: url($image);
background-size: $width $height;
}
}
Truncating the text can be made through css, and is even easier with this handy mixin.
// Mixin that will truncate text
@mixin truncate-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
Thinking about position your elements with absolute values, this mixin is the way to go.
// Mixin to set the abs position of any element
@mixin absPosition($top: auto, $right: auto, $bottom: auto, $left: auto) {
position: absolute;
top: $top;
right: $right;
bottom: $bottom;
left: $left;
}
This reall helpful mixin will hide the text, but still be counting for SEO. Kudos to Nicolas Gallagher.
// Hidden text - by Nicolas Gallagher
@mixin hidden-text {
font: 0/0 a;
text-shadow: none;
color: transparent;
}
An easy way to support font-size on rem and pixel values to a better support for IE is this mixin.
// Font-size mixin, with IE7 & IE8 support, CSS tricks courtesy
@mixin font-size($size: 1.6, $line: $size * 1.25) {
font-size: ($size * 10) + px;
line-height: ($line * 10) + px;
font-size: $size + rem;
line-height: $line + rem;
}
An easy way to handle keyframes for css animations is provided by this mixin.
// Animation keyframes
@mixin keyframes($name) {
@-webkit-keyframes #{$name} {
@content
}
@-moz-keyframes #{$name} {
@content
}
@-ms-keyframes #{$name} {
@content
}
@-o-keyframes #{$name} {
@content
}
@keyframes #{$name} {
@content
}
}
This comes helpful when using keyframes to animate or just to give a little animation.
// Animation mixin
@mixin animation($value) {
-webkit-animation: $value;
-moz-animation: $value;
-ms-animation: $value;
-o-animation: $value;
animation: $value;
}
This mixin will help you build an embossing and letterpress effect.
// Embossing and letterpress effect
@mixin box-emboss($outerOpacity, $innerOpacity) {
@include box-shadow(rgba(white, $outerOpacity) 0 1p 0,
rgba(black, $innerOpacity) 0 1px 0 inset);
}
Many more mixins...
We did not covered every single mixin here, but you can check them out at _mixins.scss source file.


Domino's Australia hires garlic bread taste-tester after he demonstrated 'incredible knowledge of garlic bread'
by news.com.auOne lucky guy has just landed the job of every carb-lover’s dreams by becoming Domino’s Australia's chief garlic bread taste-tester.
Brisbane mathematics student Zach Gracie has started his new role following an Australia-wide search that attracted almost 7500 applicants. The 21-year-old will work alongside Domino’s Australia's culinary and innovation chef Michael Treacy, and get to sample top-secret products while being paid $30 AUS per hour (about $20.50).
DOMINO'S AUSTRALIA APOLOGIZES TO VEGAN CUSTOMER WHO GOT SICK FROM MEAT-TOPPED PIZZA
Gracie’s innovative ideas, like macaroni garlic bread, “breadedict cumbergarlic” and triple-chocolate brownie garlic bread landed him the sought-after role.
Treacy said it was difficult to choose just one applicant, but Gracie’s ideas were too good to pass on.
“Zach demonstrated an incredible knowledge of garlic bread that far exceeds that of your average garlic bread consumer,” he said. “He was familiar with garlic breads even I didn’t know existed … truly broadening our horizons and offering immense value to the business.
“We look forward to welcoming him to Domino’s head office and getting his valuable feedback on one of our most iconic menu items.”
CLICK HERE TO SIGN UP FOR OUR LIFESTYLE NEWSLETTER
Gracie believes he was born for the role and says he will put in the hard work for other garlic bread-loving Aussies.
“It really is the opportunity of a lifetime, and I’m so excited to join the Domino’s team for the day and meet people who share my passion for garlic bread and food innovation,” he said.
“It’s not a responsibly I take lightly, and I won’t let Australia down!”
CLICK HERE TO SIGN UP FOR OUR LIFESTYLE NEWSLETTER
After receiving his official chief garlic bread taste-tester apron, Gracie received an exclusive tour of Domino’s garlic bread factory, where he will review the company’s existing garlic breads and taste-test some of the top-secret menu items currently in the works.


DamerauLevenshteinDistance()
Allows to calculate the distance between texts according to the Damerau-Levenshtein distance (also referred to as "unrestricted edit distance"). The Damerau-Levenshtein distance measures the number of single-character edits (insertions, deletions, substitutions) and transposition of adjacent characters that are needed to make the texts equal to each other. Unlike the optimal string alignment distance, the Damerau-Levensthein distance does not have any restrictions and does meet the properties of the triangle inequality.
Author
Michael Rapp
Since
1.2.0


--- layout: default title: 'Dark Mode' permalink: /darkmode.html --- Testing out dark mode. This is a hidden page where I'm testing out no-CSS dark mode. Switch Theme
This is a hidden page where I'm testing out no-CSS dark mode.


The 53 year old, who's paired up with pro Katya Jones, has been in the bottom two for three weeks in a row now, and four times in total.
Some fans have been scratching their heads over the judges' repeated decision to save Mike and let him dance another day.
Mike took to Twitter to post his gratitude to those who've offered cheers and support, writing: "Thank you for great feedback tonight. I did my best and as from week one I can't wait for next week."

Mike came back with the perfect reply: "Hi Pam. Thanks for this. It's great everyone has their favourites and I respect opinion but for 12 years I've tried to inspire people who think they can't do sport or are rubbish to try a new sport to get fitter.
"Let's not tell anyone they can't or never will be this or that."
Fans were quick to offer words of support for the sports broadcaster.
"Perfect response Mike," one wrote.
Another gushed: "This is exactly why you are our family favourite @mikebreakfast #inspiration."
This series of Strictly has seen various judges and contestants met with much more vicious trolling and even death threats.
Katya even announced her complete departure from social media following threats against Mike's life - they have had some fans angry after ousting Dev Griffin, Catherine Tyldesley and Emma Weymouth during dance offs.
The dancer told The Sun on Sunday : "I'm off social media; it's not real.
"For me, it's real what we're doing with our dancing and performance. There's no need for negatives. I just want to do my own thing."
Head judge Shirley Ballas has also been the target of threats, describing that one troll had sent her a doctored image of her digging her own grave.


This is a demo text. It will be replaced by the original. This is a demo text. It will be replaced by the original. This is a demo text. It will bw replaced by the original. This is a demo text. It will bw replaced by the original. This is a demo text. It will bw replaced by the original. This is a demo text.
This is a demo text. It will be replaced by the original. This is a demo text. It will bw replaced by the original. This is a demo text. It will bw replaced by the original. This is a demo text. It will bw replaced by the original.


Streamtagger: upload media
Upload one or more MP3 files.
Add these tags to all uploaded files:
Drag & drop files here
Select files to upload
File List
- No files uploaded.
Debug Messages
- Loading plugin....


-
Build software better, together
github.com
GitHub is the best place to build software together. Over 4 million people use GitHub to share code.
-
// TODO: Talk openly, develop openly
todogroup.org
TODO: talk openly, develop openly. We believe we can better improve our open source programs - and our contributions to the open source movement as a ...
-
Seattle Mesos User Group
www.meetup.com
This is the Seattle-area group for Apache Mesos. We will cover topics related to distributed systems with the key focus being Apache Mesos. Topics ...
-
Apache Mesos NYC Meetup
www.meetup.com
Apache Aurora http://aurora.incubator.apache.org/ is a service scheduler that runs on top of Apache Mesos http://mesos.apache.org/, enabling you to ...
-
State of Mesos 2014
www.youtube.com
Benjamin Hindman, program chair of Apache Mesos and Staff Software Engineer at Twitter, delivers the inaugural State of Mesos keynote at #MesosCon.
-
FOSS Outreach Program - Free and Open Source Software internships for ...
gnome.org
FOSS Outreach Program helps people from groups underrepresented in free and open source software get involved. We provide a supportive community for ...
-
<EMAIL_ADDRESS>Archives
mail-archives.apache.org
Last updated on: Fri, 26 Sep 2014 23:42:39 GMT
-
Twitter - how it does data visualisation with Nicolas Garcia Belmonte
www.youtube.com
Nicolas Garcia Belmonte discusses how Twitter does data visualisation. Talk was at The Graphical Web 2014 conference ...
-
flightjs/flight
github.com
flight - A component-based, event-driven JavaScript framework from Twitter
-
W3C20 Anniversary Symposium
www.w3.org
The 20th anniversary of W3C. Join us on 29 October 2014 for an exciting afternoon of insights and discussion about how to keep our 'Commons' strong, ...
-
QubitProducts/bamboo
github.com
bamboo - HAProxy auto configuration and auto service discovery for Mesos Marathon
-
Seattle Spark Meetup
www.meetup.com
This is an exciting deep dive into the Spark and Mesos Internals. Subject examples include Atigeo's open source contributions to the Apache Spark and ...
-
Mesos: The Operating System for your Datacenter
www.slideshare.net
Maybe you’ve heard of Mesos—that thing that you can run Hadoop on. I think it powers Twitter? Isn’t it an Apache project, or something? In this talk, ...
-
Twitter Engineering sur Twitter : "Celebrating a year of @flightjs ...
twitter.com
Mot de passe oublié ? Vous utilisez déjà Twitter via SMS ?
-
Celebrating over a year of @FlightJS | Twitter Blogs
blog.twitter.com
FlightJS is an evolving JavaScript framework project. See what’s happened since we initially open-sourced it over a year ago.
-
netty/netty
github.com
Motivation: Need to upgrade HTTP/2 implementation to latest draft. Modifications: Various changes to support draft 13. Result: Support for HTTP/2 ...
-
Running Mesos at Atlassian
www.youtube.com
Ryan Thomas presents how Atlassian has been using Mesos to build an internal service delivery platform, along with Aurora and Docker.
-
Scaling with Mesos, Docker and Google's Kubernetes - Strange Loop
thestrangeloop.com
The death of the fail whale at twitter was Apache Mesos. The secret weapon of Google was the Google borg . The latest release of Apache Mesos has ...
-
Mesos: The Operating System for your Cluster - Strange Loop
thestrangeloop.com
Maybe you’ve heard of Mesos—that thing that you can run Hadoop on. I think it powers Twitter? Isn’t it an Apache project, or something?
-
Continuous Deployment with Singularity
www.youtube.com
Gregory Chomatas from HubSpot presents Singularity, an open source Mesos framework for scheduling services and one-off tasks.
-
London Mesos User Group
www.meetup.com
Pleased to announce that Benjamin Hindman the co-creator of Apache Mesos will be in London at the end of September and present at this meetup. ...


What do we do? We detect counterfeits.
How do we pay for our operations? We recover lost coins.
What is CloudCoin? The best currency ever created in human history.
Who are we? We are the best System Administrators from around the world.
Why is CloudCoin the best? It is the fastest, most anonymous, most un-counterfeit-able, most undestroyable, most transportable currency in the history of Humankind.
How can I join? See the Membership page.
What is a Monetary System? An information System.
What is money?Data.
What processes this money/data? The Human mind.
What is good money? Money with Physical and Logical Integrity.
What does Physical and Logical Integrity mean? We are creating videos to explain it.
How does it compare to Bitcoin? CloudCoin dominates Bitcoin in every way.
The CloudCoin Consortium was created in October 2016 by its founding member Sean Worthington. June of 2016, Mr. Worthington was sitting in his bath listening to the Stephan Molynuex Philosophy program when he realized that monetary systems are physical implementations of information systems and that money is data. If the principles of good data could be applied to money then a perfect monetary system could be created. Worthington was working on a PhD (Computer Information Systems) dissertation on artificial intelligent object recognition system that could recognize money for vending machines. The system used Worthington's "Magic Neuron" design that required many computes to act like neurons. The data store could be taught and memorize the notes. He understood that he could create a brain in the cloud that could identify millions of individual notes and even be taught to recognize changes.
In August 2016, Worthington minted 16,777,216 CloudCoin notes and registered them with the RAIDA - then in experimental development.
After filing a provisional patent he set out to create the RAIDA. The provisional patent was granted (#62354022). Because monetary systems are information systems, Worthington first needed to recruited world-class Systems Administrators throughout the world. This has been completed and System Administrators and Programmers joined the Consortium from countries including Taiwan, Philippines, Japan, India, Serbia, Russia, Germany, UK, Macedonia, Venezuela, Columbia, USA, Italy and many more. The proof of concept tests conducted in January 2017 showed conclusively that the CloudCoin Concept works in practice as in theory. The RAIDA was now a permanent data store.
Unfortunately, one of the RAIDA Administrators was found dead at his computer during the proof of concept test. This caused the loss of RAIDA data. However, the system self-repaired just as predicted.
The CloudCoin Consortium's Constitution is still in development but was begun in order to create a system of governance that would last hundreds of years. The Constitution draws on a modern approach to John Locke's philosophies and the Constitution of the United States of America.
The next phase is to develop client software for all platforms. This is hoped to be done by the end of May 2017.
The last phase is to create a decentralized digital exchange and escrow service so that everyone can buy and sell CloudCoins without crazy exchange accounts.
On March 15 2017, sales of CloudCoins began at the price of $.01. A second site selling CloudCoins in India was setup a few weeks later.


COVID-19 Information
If you have questions about COVID-19 or the state’s response generally, please visit the Washington State Coronavirus (COVID-19) Response website.
- About
- Daily Situation Report (pdf)
- Confirmed Cases
- Testing Among Incarcerated Housed in Facilities
- Isolation and Quarantine Among Incarcerated Population
- Frequently Asked Questions
- Resources
About
The health and safety of our staff, those in our care, and the community is our top priority.
The Department of Corrections began supporting Department of Health (DOH) response to COVID-19 on February 9, 2020 by providing members of the agency Department Incident Management Team (DIMT). An advanced contingency planning team launched on February 28, 2020 to support the agency response. The department officially opened its Emergency Operations Center (EOC) at Headquarters in response to COVID-19, including representatives from health services staff, on March 2, 2020.
Confirmed Cases
Department of Corrections COVID-19 Confirmed Cases
(Current as of Tuesday, April 14, 2020. Numbers are updated Monday-Friday)
*Self-Reported
**Confirmed cases includes contractor staff
***Based on location where individual tested positive for COVID-19
| Location | Staff Confirmed* | Incarcerated Individual Confirmed |
|---|---|---|
| Headquarters (TUM5, Airport Office, CI Headquarters, ISRB, SWRBO, SWR Performance Center, Maple Lane) | 1 | N/A |
| Prisons | ||
| Airway Heights Corrections Center | 1 | 0 |
| Cedar Creek Corrections Center | 0 | 0 |
| Clallam Bay Corrections Center | 0 | 0 |
| Coyote Ridge Corrections Center | 1 | 0 |
| Larch Corrections Center | 0 | 0 |
| Mission Creek Corrections Center for Women | 0 | 0 |
| Monroe Correctional Complex | 5 | 7 |
| Olympic Corrections Center | 0 | 0 |
| Stafford Creek Corrections Center | 0 | 0 |
| Washington Corrections Center | 2 | 0 |
| Washington Corrections Center for Women | 0 | 0 |
| Washington State Penitentiary | 0 | 0 |
| Other Location*** (Based on location where individual tested positive for COVID-19) | ||
| County Jail | 0 | 0 |
| Community Medical Center | 0 | 1 |
| Work Release | ||
| Ahtanum View Work Release | 0 | 0 |
| Bellingham Work Release | 0 | 0 |
| Bishop Lewis Work Release | 0 | 0 |
| Brownstone Work Release | 0 | 0 |
| Eleanor Chase House Work Release | 0 | 0 |
| Helen B. Ratcliff Work Release | 0 | 0 |
| Longview Work Release | 0 | 0 |
| Olympia Work Release | 0 | 0 |
| Peninsula Work Release** | 2 | 0 |
| Progress House Work Release | 0 | 0 |
| Reynolds Work Release | 0 | 0 |
| Tri-Cities Work Release | 0 | 0 |
| Community Corrections | ||
| Community Corrections Section 1 | 0 | N/A |
| Community Corrections Section 2 | 0 | N/A |
| Community Corrections Section 3 | 0 | N/A |
| Community Corrections Section 4 | 0 | N/A |
| Community Corrections Section 5 | 0 | N/A |
| Community Corrections Section 6 | 2 | N/A |
| Community Corrections Section 7 | 0 | N/A |
Testing Among Incarcerated Housed in Facilities
Testing Among Incarcerated Housed in Prison & Work Release Facilities
(Current as of Tuesday, April 14, 2020. Numbers are updated Monday-Friday)
Screening and testing is conducted based on the guidance of the WA State DOC COVID-19 Screening, Testing, and Infection Control Guideline (pdf)
| Number of Tests Completed | Number of Negative Results | Number of Positive Results | Number of Pending Lab Results |
|---|---|---|---|
| 250 | 202 | 8 | 40 |
Isolation and Quarantine Among Incarcerated Population
Isolation and Quarantine Among Incarcerated Population
(Current as of Tuesday, April 14, 2020. Numbers are updated Monday-Friday and will fluctuate daily.)
Isolation: separating a symptomatic patient with a concern for a communicable disease from other patients.
Quarantine: separating from other individuals those who are not showing symptoms yet have been exposed to an individual with a contagious disease.
Federal quarantine and isolation currently apply to the following diseases: cholera; diphtheria; infectious tuberculosis; plague; smallpox; yellow fever; viral hemorrhagic fevers; influenza caused by new or re-emergent flu viruses that are causing, or have the potential to cause, a pandemic; and severe acute respiratory syndromes (which may include COVID-19).
| Number of Incarcerated Individuals in Isolation | Number of Incarcerated Individuals in Quarantine |
|---|---|
| 141 | 1,096 |
Resources
Department of Corrections Information
- Daily Situation Report (pdf) (updated 04/14/2020)
- PRESS RELEASE: DOC Suspending Visitation, Limiting Other Events (posted 03/12/2020)
- PRESS RELEASE: First Department of Corrections Employee Tests Positive for COVID-19 (posted 03/13/2020)
- PRESS RELEASE: Second Department of Corrections Employee Tests Positive for COVID-19 (posted 03/14/2020)
- PRESS RELEASE: Third Confirmed Case of COVID-19 reported by Corrections Employee (posted 03/18/2020)
- PRESS RELEASE: Department of Corrections negotiates free calls and reduced digital costs for incarcerated population (posted 03/20/2020)
- DOC working to assist in protective gown shortage (posted 03/21/2020)
- PRESS RELEASE: Community Corrections Division reduces some supervision in response to COVID-19 (posted 03/24/2020)
- PRESS RELEASE: Incarcerated Patient at Snohomish County Medical Center Tests Positive for COVID-19 (posted 03/28/2020)
- A Stitch in Time Saves Lives (posted 03/30/2020)
- PRESS RELEASE: Corrections launches Rapid Staff Hiring to fill immediate needs for correctional officers (posted 03/30/2020)
- PRESS RELEASE: Issuance of N95 Respirators to Correctional Staff (posted 04/03/2020)
- PRESS RELEASE: First Positive COVID-19 Test for Incarcerated Individual within Washington State Correctional Facility (posted 04/05/2020)
- PRESS RELEASE: Additional Positive COVID-19 Tests for Incarcerated Individuals within Monroe Correctional Complex (posted 04/07/2020)
- PRESS RELEASE: Disturbance at Monroe Correctional Complex Under Control (posted 04/08/2020)
- PRESS RELEASE: Department of Corrections Continues to Take Necessary Steps to Protect Health of Incarcerated (posted 04/13/2020)
- Public Alerts & Notices
Department of Corrections Staff Resources
- All COVID-19 Resources (pdf) (posted 03/17/2020)
- Annual Agency Awards Recipients & Corrections Pride (pdf) (posted 03/25/2020)
- EPA Approved COVID-19 Cleaning & Sanitizing Products (pdf) (posted 03/27/2020)
- Employees at Higher Risk for Severe Illness (Proclamation) (pdf) (posted 04/14/2020)
- Employees at Higher Risk for Severe Illness (pdf) (posted 04/10/2020)
- Expansion of FMLA and Sick Leave Due to the Federal Families First Coronavirus Response Act (FFCRA) (pdf) (posted 04/02/2020)
- First Positive COVID-19 Test for Incarcerated Individual within Washington State Correctional Facility (pdf) (posted 04/05/2020)
- Governor Inslee's Stay Home Stay Healthy Proclamation (pdf) (posted 03/23/2020)
- Rapid Staff Hiring (pdf) (posted 03/30/2020)
- Sustainability and Environmental Awards Postponement (pdf) (posted 03/26/2020)
- Secretary Message: COVID-19 (video) (posted 03/21/2020)
- Updated DOC COVID-19 PPE Matrix Memo (pdf) (posted 04/14/2020)
- Updated Employee PPE Protocols for Patients on Isolation or Quarantine (pdf) (posted 04/01/2020)
- Employee PPE Protocols for Patients on Isolation or Quarantine (pdf) (posted 03/27/2020)
- Voluntary N95 Respirator General Use (pdf) (posted 04/03/2020)
Employee Assistance
- COVID-19 Corrections Staff Frequently Asked Questions (pdf) (updated 04/07/2020)
- Employee Assistance Program: Coping with Stress During an Infectious Disease Outbreak (pdf) (posted 03/23/2020)
- Families First Coronavirus Response Act (FFCRA) Resources (pdf) (posted 04/10/2020)
- Washington State Educational School Districts Meals and Childcare Information (pdf) (posted 03/18/2020)
- World Health Organization: Coping with stress during the 2019-nCoV outbreak (pdf) (posted 03/23/2020)
Screening
- Active Screening - Administrative Leave Approval (pdf) (posted 03/31/2020)
- COVID-19 Mapping Guidelines (pdf) (posted 04/08/2020)
- Screening Follow Up (pdf) (posted 03/31/2020)
- Mandatory Use of Face Coverings – All DOC Locations (pdf) (posted 04/10/2020)
- Revised Return to Work Process Letter (pdf) (posted 04/14/2020)
- Secondary Screening Implementation (pdf) (posted 03/21/2020)
- Screening Protocol and Use of Administrative Leave (pdf) (posted 03/18/2020)
- UPDATED Enhanced Screening Process (pdf) (posted 03/15/2020)
- 2nd DOC case, Enhanced Screening, Telework (pdf) (posted 03/15/2020)
Teleworking
- COVID-19 Cybersecurity Awareness (pdf) (posted 03/18/2020)
- Employee Telework Guidance - Frequently Asked Questions (pdf) (posted 04/08/2020)
- Encouraging Telework for Eligible Employees (pdf) (posted 03/15/2020)
- Ergonomics
- Comfortable seated posture at the computer (pdf)
- Ergonomics for Home Offices
- Telework Ergonomics Self Assessment (pdf)
- Information Technology Remote Access (pdf) (posted 03/20/2020)
- 2nd DOC case, Enhanced Screening, Telework (pdf) (posted 03/15/2020)
Training & Policies
- DOC Policy 420.380 Drug/Alcohol Testing (pdf) (posted 03/24/2020)
- All Staff – Expanded list of cancelled instructor-led trainings (pdf) (posted 03/26/2020)
- Expanded List of Cancelled Instructor-led Trainings (pdf) (posted 03/18/2020)
- Department of Corrections Suspending Some Annual In-service Classes (pdf) (posted 03/13/2020)
- NETEC: Personal Protective Equipment for COVID-19 (video)
Recommended Resources
- Centers for Disease Control (CDC)
- Centers for Disease Control: Get Your Home Ready
- COVID-19 Educational Materials
- Cumulative counts of COVID-19 cases by U.S. state over time
- Department of Health (DOH)
- Johns Hopkins University & Medicine Coronavirus COVID-19 Global Cases
- KING5: Washington State prisons take measures to keep coronavirus away
- TVW: Inside Olympia - Special Interview - Austin Jenkins interview with Secretary Sinclair
- Tracking the Coronavirus Contagion
- Washington State Coronavirus Response (COVID-19)
- Washington State COVID-19 Cases by County
- Washington State Local Health Departments and Districts
- World Health Organization (WHO)


A Basic Tutorial is not so easy
This page is meant to both document a user's experience with the Django tutorial and to offer solutions to others going through a similar experience.
Let's Get Started with Python and Django!
Execute these following steps to create you first Django and Python App!
- Sign up for a basic free Cloud 9 account
- Create a workspace. You can name the workspace whatever you'd like and give it whatever description you'd like. The important part while creating a workspace is to choose the Django template. Once you've filled out the appropriate fields and selected the Django Template, click the create workspace button at the bottom of the page.
- At the bottom of your new Cloud 9 workspace is a tab that says bash which is followed by so other text. Click into this and type the following: django-admin startproject project . You can name your project whatever you'd like. The name of your project will take the place of 'project' in the given command. You have now created the template of you Django and Python application.
- On the left hand side of you cloud 9 screen is a file directory of your workspace files. When you created a project in the last step a new set of files were created under the directory of the name you gave your project. Navigate into the directory of the project you just created with the command line. Type the following command and then execute it: python manage.py startapp helloWorld
- you new app, helloWorld will have a directory with a .py file called views.py. Open this file up and paste in the following code. from django.http import HttpResponse def index(request): return HttpResponse("Hello, world.")
- in the same directory as the views.py file you just modified create a new file called urls.py. and type the following code into that new file. from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), ]
- Back in you project folder, the one the was created when you executed your first command prompt line, open up the urls.py file. Delete whatever code is in the file and copy paste the following code into the file. from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ]
- Now, in your command prompt, make sure you are in the directory of your project and type the following command: python manage.py runserver $IP:$PORT . A link is generated at the end of text given in your command prompt window. Go to the link in a web browser. A page should be up with a red button in the middle of the screen that says open App. open the app. In the web browser add the following lines of text /helloWorld. And refresh your browser. You should be sent to the page and web app you created on the cloud 9 workspace. Congrats! You've just created a Python Django web application.


| ID |
com-chilipeppr-widget-tinyg
|
| Standalone URL |
http://fiddle.jshell.net/chilipeppr/zMbL9/show/light/
|
| Fiddle URL |
http://jsfiddle.net/chilipeppr/zMbL9/
|
| Description |
This element shows a modal of a widget's/element's pubsub so the user can see how this widget/element interacts with other widgets/elements.
|
Interface Implementation
This widget/element implements an interface specification. Since Javascript does not have the notion of interfaces like the way languages such as Java have native support for interfaces, ChiliPeppr has defined its own loose version of an interface. If this widget/element has implemented an interface, it means it has followed a general standard set of pubsub signals that other widgets/elements should follow as well to make them swappable.
Publish
This widget/element publishes the following signals. These signals are owned by this widget/element and are published to all objects inside the ChiliPeppr environment that listen to them via the chilipeppr.subscribe(signal, callback) method.
Subscribe
This widget/element subscribes to the following signals. These signals are owned by this widget/element. Other objects inside the ChiliPeppr environment can publish to these signals via the chilipeppr.publish(signal, data) method.
Foreign Publish
This widget/element publishes to the following signals that are owned by other objects.
Foreign Subscribe
This widget/element subscribes to the following signals owned by other objects.


Six Glock-17 pistols stolen from building where Swedish PM works
by TT/The LocalSix Glock-17 pistols and 300 dumdum bullets have been stolen from the building that houses the offices of Sweden's prime minister, to the embarrassment of the country's government.
"They don't want this to come out, it's all being hushed up," a source told Dagens Juridik, Sweden's leading legal newspaper, which broke the story.
The weapons and the ammunition were kept in a weapons cabinet in the Rosenbad building, next to Stockholm's Royal Palace. They were intended to be handed out to the buildings security guards in the event of a major security incident, such as a terror threat or attack.
But when it were moved during the current renovation of the building, the arms cache disappeared. Securitas, the company responsible for the building's security and for the weapons cabinet, has so far not been able to find them despite an extensive search.
"Someone has probably managed to get them out of the building," Dagens Juridik's source said. "The weapons are supposed to be signed out by whoever has them. No one knows how someone got inside the cabinet and took them."
The source said the disappearance of the dumdum bullets, which expand on impact to make a large wound, was perhaps more worrying than that of the pistols themselves.
"It's ammunition which is created to do as much damage as possible," the source said.
The Glock-17 pistol is mostly made of synthetic polymers. Photo: Steve Dock/MOD
Joanna Ljunggren, a press secretary for the Swedish Police Authority, confirmed that a police report had been filed over the case on October 25th.
The Swedish Government Offices (Regeringskansliet), which is also housed in the building, also confirmed that Securitas had reported an incident to the police.
"The Swedish Government Offices has received information that one of our security contractors has made a police report," said Cajsa Holm, the organization's press spokesperson.
Stockholm city prosecutor Lucas Eriksson, meanwhile, confirmed that he was leading an investigation into a robbery from the Swedish Government Offices, but would give no further details of the case.
As well as the offices of Prime Minister Stefan Löfven, the Rosenbad building holds the offices of Justice Minister Morgan Johansson.
Stefan Löfven's press secretary Gösta Brunnander told the Expressen newspaper that the prime minister had no comments to make on the incident.


Questiongs:
What are the principles in going from data to model?
What are the guarantees of these methods?
Bernoulli distribution model
\(X\) is a random variable with Bernoulli distribution when:
\(X\) takes values in \(\{0,1\}\)
\(P(X=1)=\theta,~P(X=0)=1-\theta\)
Where \(\theta\in[0,1]\)
Draw independent samples that are identically distributed from same distribution model, Bernoulli distribution.
If we observe an event \(X\in\{0,1\}\), its probability \(P(X)\) is \(\theta^X(1-\theta)^{1-X}\)
Then the probability of data: \[\begin{array}{rcl} \mathbb{P}(X_1,X_2,...,X_n;\theta) & = & \prod_{i=1}^{n}{P(X_i)} \\ & = & \prod_{i=1}^{n}{p^{X_i}(1-p)^{1-X_i}} \\ & = & p^{\sum_{i=1}^{n}{X_i}}(1-p)^{n-\sum_{i=1}^{n}{X_i}} \\ & = & p^{n_1}(1-p)^{n-n_1} \end{array}\]
Maximum Likelihood (\(p(D|\theta)\)) Estimator (MLE)
Choose \(\theta\) that maximizes the probability of observed data. \[\begin{array}{rcl} \hat{\theta} & = & \arg\max_\theta{\mathbb{P}(X_1,\dots,X_n;\theta)} \\ & = & \arg\max_\theta{\theta^{n_1}(1-\theta)^{n-n_1}} \\ & = & \arg\max_\theta{n_1\log\theta+(n-n_1)\log(1-\theta)}\\ & \Rightarrow & \frac{n_1}{\hat{\theta}}-\frac{n-n_1}{1-\hat{\theta}} = 0 \\ & \Rightarrow & \hat{\theta}_{MLE} = \frac{n_1}{n} \end{array}\]
MLE for parametric models
Data: \(X_1, X_2, \dots, X_n\)
Model: \(P(X|\theta)\) with parameters \(\theta\)
Assumption: data drawn i.i.d from distribution \(P(X|\theta^*)\) for some unknown \(\theta^*\)
Mission: recover \(\theta^*\) from data \(X_1,X_2,\dots,X_n\)
Likelihood function: \(L(\theta):=\prod_{i=1}^{n}{P(X_i|\theta)}\)
Maximum Likelihood Estimator (MLE): find that parameter \(\theta\) that would maximize the likelihood of \(\theta\).
Consistency:
As we sample more and more times, we want our estimator to converge (in probability) to the true probability.
For Bernoulli distribution example, we get the \(\hat{\theta}=\frac{1}{n}\sum_{i=1}^{n}{X_i} \rightarrow \theta\) in probability as \(n \rightarrow \infty\) by the Law of Large Numbers1.
An estimator \(\hat{\theta}(X_1,\dots,X_n)\) where \(X_i\sim P(X;\theta^*)\) is consistent if \(\hat{\theta}\rightarrow \theta^*\) in probability as \(n\rightarrow \infty\).
Unbiasedness:
The estimator \(\hat{\theta}\) is random: it depends on the samples drawn from a random distribution model with parameter \(\theta\). It would be great if the expectation \(\mathbb{E}[\hat{\theta}]\) of the estimator \(\hat{\theta}\) be equal to the “true" probability. This property is called unbiasedness.
For Bernoulli example: \[\begin{array}{rcl} \mathbb{E}(\hat{\theta}) & = & \mathbb{E}(\frac{n_1}{n}) \\ & = & \mathbb{E}(\frac{\sum_{i=1}^{n}X_i}{n}) \\ & = & \frac{1}{n}\sum_{i=1}^{n}{\mathbb{E}(X_i)} \\ & = & \mathbb{E}(X_1) \\ & = & \theta \end{array}\]
Gaussian Distribution: \[P(x|\mu,\sigma)=\frac{1}{\sigma\sqrt{2\pi}}\exp(-\frac{(x-\mu)^2}{2\sigma^2})=\mathcal{N}(\mu,\sigma^2)\]
Affine transformation:
\(X \sim \mathcal{N}(\mu,\sigma^2)\)
\(Y=aX+b \sim \mathcal{N}(a\mu+b,a^2\sigma^2)\)
Sum of Gaussians:
\(X \sim \mathcal{N}(\mu_X,\sigma^2_X)\), \(Y \sim \mathcal{N}(\mu_Y,\sigma^2_Y)\)
\(Z=X+Y \sim \mathcal{N}(\mu_X+\mu_Y,\sigma^2_X+\sigma^2_Y)\)
MLE for Gaussian mean and variance:
\(\hat{\mu}_{MLE}=\frac{1}{n}\sum_{i=1}^{n}{x_i}\)
\(\hat{\sigma}^2_{MLE}=\frac{1}{n}\sum_{i=1}^{n}{(x_i-\hat{\mu})^2}\)
The unbiased variance estimator: \(\hat{\sigma}^2_{unbiased}=\frac{n}{n-1}\hat{\sigma}^2_{MLE}\)
Proof: \[\begin{array}{rcl} \mathbb{E}(\sigma^2_{MLE}) & = & \mathbb{E}(\frac{1}{n}\sum_{i=1}^{n}{(x_i-\hat{\mu})^2}) \\ & = & \frac{1}{n}\mathbb{E}(\sum_{i=1}^{n}{(x_i^2-2x_i\hat{\mu}+\hat{\mu}^2)}) \\ & = & \frac{1}{n}\mathbb{E}(\sum_{i=1}^{n}{x_i^2}-\sum_{i=1}^{n}{2x_i\hat{\mu}}+\sum_{i=1}^{n}{\hat{\mu}^2}) \\ & = & \frac{1}{n}\mathbb{E}(\sum_{i=1}^{n}{x_i^2}-2n\hat{\mu}^2+n\hat{\mu}^2) \\ & = & \frac{1}{n}\mathbb{E}(\sum_{i=1}^{n}{x_i^2}-n\hat{\mu}^2) \\ & = & \frac{1}{n}\sum_{i=1}^{n}{\mathbb{E}(x_i^2)-\mathbb{E}(\hat{\mu}^2)}\\ & = & \mathbb{E}(x_i^2)-\mathbb{E}(\hat{\mu}^2) \\ & = & (\sigma^2(x_i)+\mathbb{E}(x_i)^2)-(\sigma^2(\hat{\mu})+\mathbb{E}(\hat{\mu})^2) \\ & = & \sigma^2(x_i) - \sigma^2(\hat{\mu}) \\ & = & \sigma^2(x_i) - \sigma^2(\frac{1}{n}\sum_{i=1}^{n}{x_i}) \\ & = & \sigma^2(x_i) - \frac{1}{n^2}\sigma^2(\sum_{i=1}^{n}{x_i}) \\ & = & \sigma^2(x_i) - \frac{1}{n^2}n\sigma^2(x_i) \\ & = & \frac{n-1}{n}\sigma^2(x_i) \end{array}\]
In probability theory, Hoeffding’s inequality provides an upper bound on the probability that the sum of random variables deviates from its expected value. It can be applied to the important special case of identically distributed Bernoulli random variables.
Let \(X_1,\dots,X_n\) be independent random variables bounded by the interval \([0,1]:0\leq X_i \leq 1\).
and \(\hat{\theta}=\bar{X}=\frac{1}{n}\sum_{i=1}^{n}{X_i}\)
then \(\forall \epsilon>0,~P(|\hat{\theta}-\mathbb{E}(\hat{\theta})| \geq \tau) \leq \exp(-2n\epsilon^2)\)
PAC is a learning framework. Its initials stand for: Probably Approximately Correct. PAC learning aims to provide bounds (worst case estimates) on the size of the dataset.
The terminology ’Probably Approximately Correct’ comes from the requirement that with high probability (greater than 1-delta) the error rate(epsilon) will be small.
PAC bounds are very conservative, i.e they strongly over-estimate the size of the dataset required to give good generalization.
A more detailed version about PAC theory include origin, introduction, framework, etc. can be found at: http://web.cs.iastate.edu/~honavar/pac.pdf
Besides, one very interesting comment I have seen is that “PAC is the bridge between statistic and machine learning.”
When number of parameters, or number of samples n is large, computing the MLE is a large-scale optimization problem.
It does not apply to distributions for whom Expected values do not exist. One example of such a distribution is the Cauchy distribution where the mean and the variance are undefined.↩


Jetpack is an API for marshalling and unmarhalling to JSON data. With a JAR file less than 13K, Jetpack is not only the WORLD's FASTEST and most flexible JSON API, it is also the most lightweight. Jetpack also includes features that many other JSON APIs do not, such as:
Please send all feedback to<EMAIL_ADDRESS>Thank you.
Streaming Java™ objects to JSON with Jetpack is easy. All you have to do is:
Marshaller out = new JSONMarshaller(myOutputstream, "utf-8"); out.write(myObject);Jetpack determines what is/is not JSON data in your object by using a
FieldReader
. The default is
AnnotationReader
which looks at your objects methods for annotations like this:
public class Person { @JSON public String getName() { ... }; ... }If this does not work for you, you can have absolute control over what is/is not JSON data by implementing your own
FieldReader
. You can also control how types (e.g. numbers, dates) get converted
before being serialized by implementing a
TypeConverter
and/or monitor/format each character using
CharacterHandler.
Arbitrary JSON data can also be represented, read and written using
JSONData
and it's subtypes (e.g.
JSONField
,
JSONObject
,
JSONArray
).
Use the JSONDataUnmarshaller in com.pureperfect.json.in.


Public Types | |
| typedef S | distance_strategy_type |
| typedef select_type_traits < typename support::coordinate < P >::type, typename support::coordinate< PS > ::type >::type | T |
Public Member Functions | |
| distance_result | operator() (const P &p, const segment< const PS > &s) const |
Static Public Member Functions | |
| static bool | squared () |
Calculates distance using projected-point method, and (optionally) Pythagoras
| typedef S geometry::strategy::distance::xy_point_segment< P, PS, S >::distance_strategy_type |
| typedef select_type_traits< typename support::coordinate<P>::type, typename support::coordinate<PS>::type >::type geometry::strategy::distance::xy_point_segment< P, PS, S >::T |
| distance_result geometry::strategy::distance::xy_point_segment< P, PS, S >::operator() | ( | const P & | p, | |
| const segment< const PS > & | s | |||
| ) | const |
| static bool geometry::strategy::distance::xy_point_segment< P, PS, S >::squared | ( | ) | [static] |
|
October 14, 2008 |
Copyright © 1995-2008 Barend Gehrels, Geodan Holding B.V. Amsterdam, the Netherlands Copyright © 2008 Bruno Lalande, Paris, France |


Cropper
Docs
GitHub
Cropper.js
Explore
About
Cropper
v4.1.0
A simple jQuery image cropping plugin.
As of v4.0.0, the core code of Cropper is replaced with
Cropper.js
. I recommend you to use the
jquery-cropper
instead of Cropper.
×


Mexican Curp and RFC Test
Name(s)
First Surname(Father surname)
Second Surname(Mother surname)
Born date(dd/mm/yyy)
Born State
Select one
Gender
Female
Male
Calculate
Results
RFC(Federal Taxpayer Register)
CURP (Unique Population Registry Code)


oscillator: A sound processing module that generates an audio frequency. Each voice has two, and each one can be tuned to any pitch and modulated by any {_control_signal control signals}. Each oscillator is controlled by the corresponding {_glide} generator, and feeds into the corresponding {_waveshaper} to generate the desired shape.
Also: {_waveshaper}, {_filter}, {_amplifier}


Bethany's
Fantastic Pie Shop
Specials
Cheese Cakes
Fruit Pies
Swag Shop
This Weeks Specials
Apple Pie
Sale $5.99
Add to Cart
Cheese Cake
Sale $6.99
Add to Cart


---
layout: post
title: Sinkholing
date: '2012-07-04T04:50:00.000+09:00'
author: Joshua James
tags:
modified_time: '2012-07-04T04:50:29.160+09:00'
blogger_id: tag:blogger.com,1999:blog-2701259639305045003.post-3243922112361251541
---
http://www.darkreading.com/blog/231901528/sinkholing-for-profit.html
http://www.trendmicro.com/cloud-content/us/pdfs/security-intelligence/white-papers/wp_lessons-learned-botnets_virusbulletin-conf.pdf
http://www.trendmicro.com/cloud-content/us/pdfs/security-intelligence/white-papers/wp__sinkholing-botnets.pdf


Random Numbers with Python API#
- AUTHORS:
– Carl Witty (2008-03): new file
This module has the same functions as the Python standard module module{random}, but uses the current sage random number state from module{sage.misc.randstate} (so that it can be controlled by the same global random number seeds).
The functions here are less efficient than the functions in module{random}, because they look up the current random number state on each call.
If you are going to be creating many random numbers in a row, it is better to use the functions in module{sage.misc.randstate} directly.
Here is an example:
(The imports on the next two lines are not necessary, since function{randrange} and function{current_randstate} are both available by default at the code{sage:} prompt; but you would need them to run these examples inside a module.)
sage: from sage.misc.prandom import randrange
sage: from sage.misc.randstate import current_randstate
sage: def test1():
....: return sum([randrange(100) for i in range(100)])
sage: def test2():
....: randrange = current_randstate().python_random().randrange
....: return sum([randrange(100) for i in range(100)])
Test2 will be slightly faster than test1, but they give the same answer:
sage: with seed(0): test1()
5169
sage: with seed(0): test2()
5169
sage: with seed(1): test1()
5097
sage: with seed(1): test2()
5097
sage: timeit('test1()') # random
625 loops, best of 3: 590 us per loop
sage: timeit('test2()') # random
625 loops, best of 3: 460 us per loop
The docstrings for the functions in this file are mostly copied from Python’s file{random.py}, so those docstrings are “Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Python Software Foundation; All Rights Reserved” and are available under the terms of the Python Software Foundation License Version 2.
- sage.misc.prandom.betavariate(alpha, beta)#
Beta distribution.
Conditions on the parameters are alpha > 0 and beta > 0. Returned values range between 0 and 1.

EXAMPLES:
sage: s = [choice(list(primes(10, 100))) for i in range(5)]; s # random # optional - sage.libs.pari [17, 47, 11, 31, 47] sage: all(t in primes(10, 100) for t in s) # optional - sage.libs.pari True
- sage.misc.prandom.expovariate(lambd)#
Exponential distribution.
lambd is 1.0 divided by the desired mean. (The parameter would be called “lambda”, but that is a reserved word in Python.) Returned values range from 0 to positive infinity.
EXAMPLES:
sage: sample = [expovariate(0.001) for i in range(3)]; sample # random [118.152309288166,<PHONE_NUMBER>38118, 45.7190543690470] sage: all(s >= 0.0 for s in sample) True sage: sample = [expovariate(1.0) for i in range(3)]; sample # random [0.404201816061304, 0.735220464997051, 0.201765578600627] sage: all(s >= 0.0 for s in sample) True sage: sample = [expovariate(1000) for i in range(3)]; sample # random [0.0012068700332283973, 8.340929747302108e-05, 0.00219877067980605] sage: all(s >= 0.0 for s in sample) True
- sage.misc.prandom.gammavariate(alpha, beta)#
Gamma distribution. Not the gamma function!
Conditions on the parameters are alpha > 0 and beta > 0.
EXAMPLES:
sage: sample = gammavariate(1.0, 3.0); sample # random 6.58282586130638 sage: sample > 0 True sage: sample = gammavariate(3.0, 1.0); sample # random 3.07801512341612 sage: sample > 0 True
- sage.misc.prandom.gauss(mu, sigma)#
Gaussian distribution.
mu is the mean, and sigma is the standard deviation. This is slightly faster than the normalvariate() function, but is not thread-safe.
EXAMPLES:
sage: [gauss(0, 1) for i in range(3)] # random [0.9191011757657915, 0.7744526756246484, 0.8638996866800877] sage: [gauss(0, 100) for i in range(3)] # random [24.916051749154448, -62.99272061579273, -8.1993122536718...] sage: [gauss(1000, 10) for i in range(3)] # random [998.7590700045661,<PHONE_NUMBER>511692, 1010.1256817458031]
- sage.misc.prandom.getrandbits(k) x. Generates a long int with k random bits. #
EXAMPLES:
sage: getrandbits(10) in range(2^10) True sage: getrandbits(200) in range(2^200) True sage: getrandbits(4) in range(2^4) True
- sage.misc.prandom.lognormvariate(mu, sigma)#
Log normal distribution.
If you take the natural logarithm of this distribution, you’ll get a normal distribution with mean mu and standard deviation sigma. mu can have any value, and sigma must be greater than zero.
EXAMPLES:
sage: [lognormvariate(100, 10) for i in range(3)] # random [2.9410355688290246e+37, 2.2257548162070125e+38, 4.142299451717446e+43]
- sage.misc.prandom.normalvariate(mu, sigma)#
Normal distribution.
mu is the mean, and sigma is the standard deviation.
EXAMPLES:
sage: [normalvariate(0, 1) for i in range(3)] # random [-1.372558980559407, -1.1701670364898928, 0.04324100555110143] sage: [normalvariate(0, 100) for i in range(3)] # random [37.45695875041769,<PHONE_NUMBER>233298,<PHONE_NUMBER>124009] sage: [normalvariate(1000, 10) for i in range(3)] # random [1008.5303090383741,<PHONE_NUMBER>644895,<PHONE_NUMBER>150242]
- sage.misc.prandom.paretovariate(alpha)#
Pareto distribution. alpha is the shape parameter.
EXAMPLES:
sage: sample = [paretovariate(3) for i in range(1, 5)]; sample # random [1.0401699394233033, 1.2722080162636495, 1.0153564009379579, 1.1442323078983077] sage: all(s >= 1.0 for s in sample) True
- sage.misc.prandom.randint(a, b)#
Return random integer in range [a, b], including both end points.
EXAMPLES:
sage: s = [randint(0, 2) for i in range(15)]; s # random [0, 1, 0, 0, 1, 0, 2, 0, 2, 1, 2, 2, 0, 2, 2] sage: all(t in [0, 1, 2] for t in s) True sage: -100 <= randint(-100, 10) <= 10 True
- sage.misc.prandom.random()#
Get the next random number in the range [0.0, 1.0).
EXAMPLES:
sage: sample = [random() for i in [1 .. 4]]; sample # random [0.111439293741037, 0.5143475134191677, 0.04468968524815642, 0.332490606442413] sage: all(0.0 <= s <= 1.0 for s in sample) True
- sage.misc.prandom.randrange(start, stop=None, step=1)#
Choose a random item from range(start, stop[, step]).
This fixes the problem with randint() which includes the endpoint; in Python this is usually not what you want.
EXAMPLES:
sage: s = randrange(0, 100, 11) sage: 0 <= s < 100 True sage: s % 11 0 sage: 5000 <= randrange(5000, 5100) < 5100 True sage: s = [randrange(0, 2) for i in range(15)] sage: all(t in [0, 1] for t in s) True sage: s = randrange(0, 1000000, 1000) sage: 0 <= s < 1000000 True sage: s % 1000 0 sage: -100 <= randrange(-100, 10) < 10 True
- sage.misc.prandom.sample(population, k)#
Choose k unique random elements from a population sequence.
Return a new list containing elements from the population while leaving the original population unchanged. The resulting list is in selection order so that all sub-slices will also be valid random samples. This allows raffle winners (the sample) to be partitioned into grand prize and second place winners (the subslices).
Members of the population need not be hashable or unique. If the population contains repeats, then each occurrence is a possible selection in the sample.
To choose a sample in a range of integers, use xrange as an argument (in Python 2) or range (in Python 3). This is especially fast and space efficient for sampling from a large population: sample(range(10000000), 60)
EXAMPLES:
sage: from sage.misc.misc import is_sublist sage: l = ["Here", "I", "come", "to", "save", "the", "day"] sage: s = sample(l, 3); s # random ['Here', 'to', 'day'] sage: is_sublist(sorted(s), sorted(l)) True sage: len(s) 3 sage: s = sample(range(2^30), 7); s # random [357009070, 558990255, 196187132, 752551188, 85926697, 954621491, 624802848] sage: len(s) 7 sage: all(t in range(2^30) for t in s) True
- sage.misc.prandom.shuffle(x)#
x, random=random.random -> shuffle list x in place; return None.
Optional arg random is a 0-argument function returning a random float in [0.0, 1.0); by default, the sage.misc.random.random.
EXAMPLES:
sage: shuffle([1 .. 10])
- sage.misc.prandom.uniform(a, b)#
Get a random number in the range [a, b).
Equivalent to code{a + (b-a) * random()}.
EXAMPLES:
sage: s = uniform(0, 1); s # random 0.111439293741037 sage: 0.0 <= s <= 1.0 True sage: s = uniform(e, pi); s # random # optional - sage.symbolic 0.5143475134191677*pi + 0.48565248658083227*e sage: bool(e <= s <= pi) # optional - sage.symbolic True
- sage.misc.prandom.vonmisesvariate(mu, kappa)#
Circular data distribution.
mu is the mean angle, expressed in radians between 0 and 2*pi, and kappa is the concentration parameter, which must be greater than or equal to zero. If kappa is equal to zero, this distribution reduces to a uniform random angle over the range 0 to 2*pi.
EXAMPLES:
sage: sample = [vonmisesvariate(1.0r, 3.0r) for i in range(1, 5)]; sample # random [0.898328639355427, 0.6718030007041281, 2.0308777524813393, 1.714325253725145] sage: all(s >= 0.0 for s in sample) True
- sage.misc.prandom.weibullvariate(alpha, beta)#
Weibull distribution.
alpha is the scale parameter and beta is the shape parameter.
EXAMPLES:
sage: sample = [weibullvariate(1, 3) for i in range(1, 5)]; sample # random [0.49069775546342537, 0.8972185564611213, 0.357573846531942, 0.739377255516847] sage: all(s >= 0.0 for s in sample) True


To create a popup, add the data-role="popup"
attribute to a div with the popup contents. Then create a link with the href
set to the id
of the popup div, and add the attribute data-rel="popup"
to tell the framework to open the popup when the link is tapped. This is a similar markup pattern to the dialog widget. A popup div has to be nested inside the same page as the link.
Open Popup

This is a completely basic popup, no options set.

This will result in the following popup:
Open PopupThis is a completely basic popup, no options set.
The popup consists of two elements: the screen, which is a transparent or translucent element that covers the entire document, and the container, which is the popup itself. If your original element had an id
attribute, the screen and the container will each receive an id
attribute based on it. The screen's id
will be suffixed with "-screen", and the container's id
will be suffixed with "-popup" (in the above example, id="popupBasic-screen"
and id="popupBasic-popup"
, respectively).
The framework adds a small amount of margin to text elements, but it's really just a container with rounded corners and a shadow which serves as a blank slate for your designs (even these features can be disabled via options).
This simple styling makes it easy to add in widgets to create a variety of different interactions. Here are a few real-world examples that combine the various settings and styles you can achieve out of the box with popups:
Tooltip Menu Nested menu Form Dialog PhotoHere is a tiny popup being used like a tooltip. The text will wrap to multiple lines as needed.
Learn how to customize and extend popups by working with the API, custom scripts, and styles.
Scaling images Map + video iframes Overlay panelsThis plugin will autoinitialize on any page that contains a div with the attribute data-role="popup"
. However, if needed you can directly call the popup
plugin on any selector, just like any jQuery plugin and programmatically work with the popup options, methods, and events API:
$( "#myPopupDiv" ).popup();
Using the markup-based configuration, when a link with the data-rel="popup"
is tapped, the corresponding popup container with the id referenced in the href
of the link will be shown. To open a popup programmatically, call popup with the open
method on the popup container:
$( "#myPopupDiv" ).popup( "open" )
Popups can be closed either by clicking outside the popup widget or by pressing the Esc
key. Popups can also be closed via the close
method:
$( "#myPopupDiv" ).popup( "close" )
To add an explicit close button to a popup, add a link with the role of button into the popup container with a data-rel="back"
attribute which will close the popup when tapped. We have created helper classes to position buttons in the upper left (ui-btn-left
) or upper right (ui-btn-right
) of the popup but you may need to tweak these or add custom positioning styles depending on your design. We recommend adding standard content padding to the popup to make room for the buttons (see next section).

Close
...popup contents go here...

Popup with close button right
Popup with close button left
I have a close button at the top right corner with simple HTML markup.
I have a close button at the top left corner with simple HTML markup.
For popups with formatted text, padding is needed. We recommend adding the ui-content
class to the popup container which adds the standard 15px of padding, just like the page content container. Write your own styles to create a more customized design if needed.
Popup with padding

This is a popup with the ui-content class added to the popup container.

This will result in the following popup with content padding:
Popup with paddingThis is a popup with the ui-content
class added to the popup container.
When padding is added, we apply a few style rules to negate the top margin for the first heading or paragraph in the popup and do the same for the last element's bottom margin. This keep the popups from having too much vertical space when the content padding and element margins combine.
By default, popups open centered vertically and horizontally over the thing you clicked (the origin) which is good for popups used as tooltips or menus. The framework also applies some basic collision detection rules to ensure that the popup will appear on-screen so the ultimate position may not always be centered over the origin.
For situations like a dialog or lightbox where the popup should appear centered within the window instead of over the origin, add the data-position-to
attribute to the link and specify a value of window
.
It's also possible to specify any valid selector as the value of position-to
in addition to origin
and window
. For example, if you add data-position-to="#myElement"
the popup will be positioned over the element with the id myElement
.

I am positioned to the window.

A few examples:
Position to window Position to origin Position to #codeSampleI am positioned to the window.
I am positioned over the origin.
I am positioned over the code sample via selector.
The popup's placement constraints, which may cause the popup not to appear centered as desired, are as follow:
max-width
to the width of the window minus a tolerance of 15px on either side.Also note that a popup is currently always placed at the center of the window after an orientation change or window resize event.
See methods for information about setting the popup position programmatically, including the option to specify x and y coordinates.
By default, popups have no transition to make them open as quickly as possible. To set the transition used for a popup, add the data-transition
attribute to the link that references the popup. The reverse version of the transition will be used when closing the popup.

Flip transition

For performance reasons on mobile devices, we recommend using simpler transitions like pop, fade or none for smooth and fast popup animations, especially with larger or complex widgets within a popup. To view all transition types, you must be on a browser that supports 3D transforms. By default, devices that lack 3D support (such as Android 2.x) will fallback to "fade" for all transition types. See the transitions page for detailed information on the transition system.
No transition Pop Fade Flip Turn Flow Slide Slidefade Slide up Slide downI'm a simple popup.
When you launch the popup from any of the buttons, the data-transition
set on the button will be used. However, if you launch the popup programmatically, such as via $( "#transitionExample" ).popup( "open" )
, the data-transition
attribute specified in the definition of the popup will be used if present.
The popup
plugin provides two theme-related options: data-theme
and data-overlay-theme
. The data-theme
option refers to the theme of the popup itself, whereas data-overlay-theme
refers to the theme of the popup's background, which covers the entire window behind the popup.
data-theme
will be inherited from the page, and will always have a valid value when the popup opens, unless you explicitly specify data-theme="none"
, in which case the popup will have a transparent background.
The data-overlay-theme
will never be set, and the popup's background, although always present when the popup is shown, will be completely transparent, unless explicitly set using for example data-overlay-theme="a"
. In this case, the background will fade in, partially obscuring the rest of the window, to further direct attention to the popup. Here is an example of an explicitly themed popup:

...Popup contents...

Theme A
I have data-theme="a"
set on me
I have a data-overlay-theme="a"
set on me
I have data-theme="e"
and data-overlay-theme="a"
set on me
The framework does not currently support chaining of popups so it's not possible to embed a link from one popup to another popup. All links with a data-rel="popup"
inside a popup will not do anything at all.
This also means that custom select menus will not work inside popups, because they are themselves implemented using popups. If you place a select menu inside a popup, it will be rendered as a native select menu, even if you specify data-native-menu="false"
.
A workaround to get chained popups working is the use of a timeout for example in the popupafterclose
event bound to the invoking popup. In the following example, when the first popup is closed, the second will be opened by a delayed call to the open
method:
$( document ).on( "pageinit", function() {
$( '.popupParent' ).on({
popupafterclose: function() {
setTimeout( function(){ $( '.popupChild' ).popup( 'open' ) }, 100 );
}
});
});