public class Client
extends java.lang.Object
| Constructor and Description |
|---|
Client(Application application)
Construct a new client application
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationDescription |
createApplicationDescription() |
static Client |
createClientApplication(KeyPair cert) |
SecureChannel |
createSecureChannel(ApplicationDescription applicationDescription)
Create a secure channel to a UA application
|
SecureChannel |
createSecureChannel(EndpointDescription endpoint)
Create a secure channel to an endpoint
|
SecureChannel |
createSecureChannel(java.lang.String endpointUrl)
Create a secure channel to a UA Server This method first queries
endpoints, chooses the most suitable and connects to it.
|
SecureChannel |
createSecureChannel(java.lang.String connectUrl,
EndpointDescription endpoint)
Create a secure channel to an endpoint.
|
SecureChannel |
createSecureChannel(java.lang.String connectUrl,
java.lang.String endpointUri)
Create a secure channel to a UA Server This method first queries
endpoints, chooses the most suitable and connects to it.
|
SecureChannel |
createSecureChannel(java.lang.String connectUrl,
java.lang.String endpointUri,
SecurityMode mode,
Cert remoteCertificate)
Create and open a secure channel.
|
SecureChannel |
createSecureChannel(java.lang.String connectUrl,
TransportChannelSettings settings)
Create and open a secure channel.
|
SecureChannel |
createSecureChannel(TransportChannelSettings settings)
Create and open a secure channel.
|
ServiceChannel |
createServiceChannel(ApplicationDescription applicationDescription)
Create a service channel
|
ServiceChannel |
createServiceChannel(EndpointDescription endpoint)
Create a service channel to an endpoint.
|
ServiceChannel |
createServiceChannel(java.lang.String endpointUrl)
Create a service channel to a UA Server This method first queries
endpoints, chooses the most suitable and connects to it.
|
ServiceChannel |
createServiceChannel(java.lang.String connectUrl,
EndpointDescription endpoint)
Create a service channel to an endpoint
|
ServiceChannel |
createServiceChannel(java.lang.String connectUrl,
java.lang.String endpointUri)
Create a service channel to a UA Server This method first queries
endpoints, chooses the most suitable and connects to it.
|
ServiceChannel |
createServiceChannel(java.lang.String connectUrl,
java.lang.String endpointUri,
SecurityMode mode,
Cert remoteCertificate)
Create and open a service channel.
|
ServiceChannel |
createServiceChannel(TransportChannelSettings settings)
Create and open a secure channel and adapt to service channel.
|
Session |
createSession(SecureChannel channel)
Create a new session on a server
|
Session |
createSession(SecureChannel channel,
UnsignedInteger maxResponseMessageSize,
java.lang.Double requestedSessionTimeout,
java.lang.String sessionName)
Create a new session on a server
|
Session |
createSession(SecureChannel channel,
UnsignedInteger maxResponseMessageSize,
java.lang.Double requestedSessionTimeout,
java.lang.String sessionName,
EndpointDescription[] discoveredEndpoints)
Create a new session on a server
|
SessionChannel |
createSessionChannel(ApplicationDescription applicationDescription)
Creates a secure channel and an unactivated session channel.
|
SessionChannel |
createSessionChannel(EndpointDescription endpoint)
Creates a secure channel and an unactivated session channel.
|
SessionChannel |
createSessionChannel(java.lang.String endpointUrl)
Creates a secure channel and an unactivated session channel.
|
SessionChannel |
createSessionChannel(java.lang.String connectUrl,
EndpointDescription endpoint)
Creates a secure channel and an unactivated session channel.
|
SessionChannel |
createSessionChannel(java.lang.String connectUrl,
java.lang.String endpointUri)
Creates a secure channel and an unactivated session channel.
|
ApplicationDescription[] |
discoverApplications(java.lang.String discoverServerEndpointUrl)
Discover applications
|
ApplicationDescription[] |
discoverApplications(java.lang.String connectUrl,
java.lang.String discoverServerEndpointUri)
Discover applications
|
EndpointDescription[] |
discoverEndpoints(java.lang.String connectUrl)
Discover endpoints
|
EndpointDescription[] |
discoverEndpoints(java.lang.String connectUrl,
java.lang.String discoveryEndpointUri)
Discover endpoints
|
Application |
getApplication() |
HttpsSettings |
getApplicationHttpsSettings() |
OpcTcpSettings |
getApplicatioOpcTcpSettings() |
EncoderContext |
getEncoderContext() |
EndpointConfiguration |
getEndpointConfiguration() |
int |
getMaxMessageSize() |
int |
getTimeout() |
void |
setEndpointConfiguration(EndpointConfiguration endpointConfiguration) |
void |
setMaxMessageSize(int maxMessagSize) |
void |
setTimeout(int timeout) |
public Client(Application application)
Note: Client needs an application instance certificate to create secure
channels. See Application.addApplicationInstanceCertificate(KeyPair)
cert
- public ApplicationDescription createApplicationDescription()
public Application getApplication()
public HttpsSettings getApplicationHttpsSettings()
public OpcTcpSettings getApplicatioOpcTcpSettings()
public Session createSession(SecureChannel channel) throws ServiceResultException
channel
- open channelServiceResultException
public Session createSession(SecureChannel channel, UnsignedInteger maxResponseMessageSize, java.lang.Double requestedSessionTimeout, java.lang.String sessionName) throws java.lang.IllegalArgumentException, ServiceResultException
channel
- open channel to usemaxResponseMessageSize
- max size of response messages - if null, use 4194304requestedSessionTimeout
- requested session time out (in ms) - if null, use 3600000 (one hour)sessionName
- session name - if null a random GUID is used to generate the
namejava.lang.IllegalArgumentException
ServiceResultException
public Session createSession(SecureChannel channel, UnsignedInteger maxResponseMessageSize, java.lang.Double requestedSessionTimeout, java.lang.String sessionName, EndpointDescription[] discoveredEndpoints) throws java.lang.IllegalArgumentException, ServiceResultException
channel
- open channel to usemaxResponseMessageSize
- max size of response messages - if null, defaulting to 4194304requestedSessionTimeout
- requested session timeout (ms) - if null, defaulting to 3600000 (one hour)sessionName
- session name - if null, a random GUID is used to generate the namediscoveredEndpoints
- list of previously discovered Endpoints using GetEndpoints service.
This list is checked against the Endpoint list received from CreateSessionResponse,
if it does not match, an exception is thrown, if null the check is disabledjava.lang.IllegalArgumentException
ServiceResultException
public SessionChannel createSessionChannel(java.lang.String endpointUrl) throws ServiceResultException
The channel needs to be activated separately.
To close the object, both secure channel and the session must be close separately. SessionChannel.closeSession() SessionChannel.closeSecureChannel()
endpointUrl
- endpoint identifier and socket addressServiceResultException
public SessionChannel createSessionChannel(java.lang.String connectUrl, java.lang.String endpointUri) throws ServiceResultException
The channel needs to be activated separately.
To close the object, both secure channel and the session must be close separately. SessionChannel.closeSession() SessionChannel.closeSecureChannel()
connectUrl
- address that contains the socket address to the endpointendpointUri
- endpoint identifierServiceResultException
public SessionChannel createSessionChannel(EndpointDescription endpoint) throws ServiceResultException
The channel needs to be activated separately.
To close the object, both secure channel and the session must be close separately. SessionChannel.closeSession() SessionChannel.closeSecureChannel()
connectUrl
- address that contains the socket address to the endpointendpoint
- endpoint descriptionServiceResultException
- on errorspublic SessionChannel createSessionChannel(java.lang.String connectUrl, EndpointDescription endpoint) throws ServiceResultException
The channel needs to be activated separately.
To close the object, both secure channel and the session must be close separately. SessionChannel.closeSession() SessionChannel.closeSecureChannel()
connectUrl
- address that contains the socket address to the endpointendpoint
- endpoint descriptionServiceResultException
- on errorspublic SessionChannel createSessionChannel(ApplicationDescription applicationDescription) throws ServiceResultException
The channel needs to be activated separately.
To close the object, both secure channel and the session must be close separately. SessionChannel.closeSession() SessionChannel.closeSecureChannel()
applicationDescription
- application descriptionServiceResultException
- on errorspublic SecureChannel createSecureChannel(java.lang.String endpointUrl) throws ServiceResultException
endpointUrl
- Endpoint identifier and socket addressServiceResultException
public SecureChannel createSecureChannel(java.lang.String connectUrl, java.lang.String endpointUri) throws ServiceResultException
connectUrl
- address that contains the socket address to the endpointendpointUri
- EndpointUri identifier or "" for discoveryServiceResultException
public SecureChannel createSecureChannel(ApplicationDescription applicationDescription) throws ServiceResultException
This implementation accepts only connections with opc.tcp protocol and with encryption.
Note this implementation is unsafe as the dialog with discover endpoint is not encrypted.
connectUrl
- address that contains the socket address to the endpointapplicationDescription
- ServiceResultException
public SecureChannel createSecureChannel(EndpointDescription endpoint) throws ServiceResultException
endpoint
- endpoint descriptionServiceResultException
public SecureChannel createSecureChannel(java.lang.String connectUrl, EndpointDescription endpoint) throws ServiceResultException
connectUrl
- address that contains the socket address to the endpointendpoint
- endpoint descriptionServiceResultException
public SecureChannel createSecureChannel(java.lang.String connectUrl, java.lang.String endpointUri, SecurityMode mode, Cert remoteCertificate) throws ServiceResultException
connectUrl
- address that contains the socket address to the endpointendpointUri
- mode
- remoteCertificate
- ServiceResultException
public SecureChannel createSecureChannel(java.lang.String connectUrl, TransportChannelSettings settings) throws ServiceResultException
connectUrl
- address that contains the socket address to the endpointsettings
- (optional) overriding settingsmode
- remoteCertificate
- ServiceResultException
public SecureChannel createSecureChannel(TransportChannelSettings settings) throws ServiceResultException
settings
- mode
- remoteCertificate
- ServiceResultException
public ServiceChannel createServiceChannel(java.lang.String endpointUrl) throws ServiceResultException
endpointUrl
- endpoint idenfier and socket addressServiceResultException
public ServiceChannel createServiceChannel(java.lang.String connectUrl, java.lang.String endpointUri) throws ServiceResultException
endpointUri
- endpointUri idenfier or "" for discovery serviceServiceResultException
public ServiceChannel createServiceChannel(ApplicationDescription applicationDescription) throws ServiceResultException
Note this implementation is unsecure as the dialog with discover endpoint is not encrypted.
applicationDescription
- ServiceResultException
public ServiceChannel createServiceChannel(EndpointDescription endpoint) throws ServiceResultException
connectUrl
- address that contains the socket address to the endpointendpoint
- endpoint descriptionServiceResultException
public ServiceChannel createServiceChannel(java.lang.String connectUrl, EndpointDescription endpoint) throws ServiceResultException
connectUrl
- address that contains the socket address to the endpointendpoint
- endpoint descriptionServiceResultException
public ServiceChannel createServiceChannel(java.lang.String connectUrl, java.lang.String endpointUri, SecurityMode mode, Cert remoteCertificate) throws ServiceResultException
connectUrl
- address that contains the socket address to the endpointendpointUri
- endpointUri identifier of the endpointmode
- remoteCertificate
- ServiceResultException
public ServiceChannel createServiceChannel(TransportChannelSettings settings) throws ServiceResultException
settings
- mode
- remoteCertificate
- ServiceResultException
public EndpointDescription[] discoverEndpoints(java.lang.String connectUrl) throws ServiceResultException
discoveryEndpointUrl
- endpoint identifier or socket addressServiceResultException
- Error that occured while processing the operation.public EndpointDescription[] discoverEndpoints(java.lang.String connectUrl, java.lang.String discoveryEndpointUri) throws ServiceResultException
connectUrl
- address that contains the socket address to the endpointdiscoveryEndpointUri
- endpointUri the endpoint identifier, or "" for discovery endpointServiceResultException
- Error that occured while processing the operation.public ApplicationDescription[] discoverApplications(java.lang.String discoverServerEndpointUrl) throws ServiceResultException
discoverServerEndpointUrl
- endpointURI that is also the socket addressServiceResultException
public ApplicationDescription[] discoverApplications(java.lang.String connectUrl, java.lang.String discoverServerEndpointUri) throws ServiceResultException
connectUrl
- address that contains the socket address to the endpointdiscoverServerEndpointUri
- endpointURI or ""ServiceResultException
public EncoderContext getEncoderContext()
public void setTimeout(int timeout)
public int getTimeout()
public void setMaxMessageSize(int maxMessagSize)
public int getMaxMessageSize()
public EndpointConfiguration getEndpointConfiguration()
public void setEndpointConfiguration(EndpointConfiguration endpointConfiguration)


Search
Preparing search index...
The search index is not available
Hive-Api-Node
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
Bedrock
Module Bedrock
Index
Enumerations
Game
Type
Month
Classes
Methods
Type aliases
Death
Run
Leaderboard
Entry
Leaderboard
Entry
Murder
Mystery
Leaderboard
Entry
Name
Player
Survival
Games
Leaderboard
Entry
Treasure
Wars
Leaderboard
Entry
Uuid
Functions
monthly
Leaderboard
player
Monthly
Type aliases
Death
Run
Leaderboard
Entry
Death
Run
Leaderboard
Entry
:
LeaderboardEntry
&
object
Leaderboard
Entry
Leaderboard
Entry
:
object
Type declaration
UUID
:
string
human_
index
:
number
index
:
number
played
:
number
uncapped_
xp
:
number
username
:
string
victories
:
number
xp
:
number
Murder
Mystery
Leaderboard
Entry
Murder
Mystery
Leaderboard
Entry
:
LeaderboardEntry
&
object
Name
Name
:
string
Player
Player
:
Name
|
Uuid
Survival
Games
Leaderboard
Entry
Survival
Games
Leaderboard
Entry
:
LeaderboardEntry
&
object
Treasure
Wars
Leaderboard
Entry
Treasure
Wars
Leaderboard
Entry
:
LeaderboardEntry
&
object
Uuid
Uuid
:
string
Functions
monthly
Leaderboard
monthly
Leaderboard
(
game
:
TREASURE_WARS
)
:
Promise
<
TreasureWarsLeaderboardEntry
[]
>
monthly
Leaderboard
(
game
:
TREASURE_WARS
, year
:
number
, month
:
Month
, maxCacheAge
?:
number
)
:
Promise
<
TreasureWarsLeaderboardEntry
[]
>
monthly
Leaderboard
(
game
:
MURDER_MYSTERY
)
:
Promise
<
MurderMysteryLeaderboardEntry
[]
>
monthly
Leaderboard
(
game
:
MURDER_MYSTERY
, year
:
number
, month
:
Month
, maxCacheAge
?:
number
)
:
Promise
<
MurderMysteryLeaderboardEntry
[]
>
monthly
Leaderboard
(
game
:
DEATH_RUN
)
:
Promise
<
DeathRunLeaderboardEntry
[]
>
monthly
Leaderboard
(
game
:
DEATH_RUN
, year
:
number
, month
:
Month
, maxCacheAge
?:
number
)
:
Promise
<
DeathRunLeaderboardEntry
[]
>
monthly
Leaderboard
(
game
:
SURVIVAL_GAMES
)
:
Promise
<
SurvivalGamesLeaderboardEntry
[]
>
monthly
Leaderboard
(
game
:
SURVIVAL_GAMES
, year
:
number
, month
:
Month
, maxCacheAge
?:
number
)
:
Promise
<
SurvivalGamesLeaderboardEntry
[]
>
Parameters
game:
TREASURE_WARS
Returns
Promise
<
TreasureWarsLeaderboardEntry
[]
>
Parameters
game:
TREASURE_WARS
year:
number
month:
Month
Optional
maxCacheAge:
number
Returns
Promise
<
TreasureWarsLeaderboardEntry
[]
>
Parameters
game:
MURDER_MYSTERY
Returns
Promise
<
MurderMysteryLeaderboardEntry
[]
>
Parameters
game:
MURDER_MYSTERY
year:
number
month:
Month
Optional
maxCacheAge:
number
Returns
Promise
<
MurderMysteryLeaderboardEntry
[]
>
Parameters
game:
DEATH_RUN
Returns
Promise
<
DeathRunLeaderboardEntry
[]
>
Parameters
game:
DEATH_RUN
year:
number
month:
Month
Optional
maxCacheAge:
number
Returns
Promise
<
DeathRunLeaderboardEntry
[]
>
Parameters
game:
SURVIVAL_GAMES
Returns
Promise
<
SurvivalGamesLeaderboardEntry
[]
>
Parameters
game:
SURVIVAL_GAMES
year:
number
month:
Month
Optional
maxCacheAge:
number
Returns
Promise
<
SurvivalGamesLeaderboardEntry
[]
>
player
Monthly
player
Monthly
(
game
:
TREASURE_WARS
, player
:
Player
, maxCacheAge
?:
number
)
:
Promise
<
TreasureWarsLeaderboardEntry
>
player
Monthly
(
game
:
MURDER_MYSTERY
, player
:
Player
, maxCacheAge
?:
number
)
:
Promise
<
MurderMysteryLeaderboardEntry
>
player
Monthly
(
game
:
DEATH_RUN
, player
:
Player
, maxCacheAge
?:
number
)
:
Promise
<
DeathRunLeaderboardEntry
>
player
Monthly
(
game
:
SURVIVAL_GAMES
, player
:
Player
, maxCacheAge
?:
number
)
:
Promise
<
SurvivalGamesLeaderboardEntry
>
Parameters
game:
TREASURE_WARS
player:
Player
Optional
maxCacheAge:
number
Returns
Promise
<
TreasureWarsLeaderboardEntry
>
Parameters
game:
MURDER_MYSTERY
player:
Player
Optional
maxCacheAge:
number
Returns
Promise
<
MurderMysteryLeaderboardEntry
>
Parameters
game:
DEATH_RUN
player:
Player
Optional
maxCacheAge:
number
Returns
Promise
<
DeathRunLeaderboardEntry
>
Parameters
game:
SURVIVAL_GAMES
player:
Player
Optional
maxCacheAge:
number
Returns
Promise
<
SurvivalGamesLeaderboardEntry
>
Globals
Bedrock
Game
Type
Month
Methods
Death
Run
Leaderboard
Entry
Leaderboard
Entry
Murder
Mystery
Leaderboard
Entry
Name
Player
Survival
Games
Leaderboard
Entry
Treasure
Wars
Leaderboard
Entry
Uuid
monthly
Leaderboard
player
Monthly
Imprint
Privacy
Generated using
TypeDoc


ResourceStore.server Class
Constructor
ResourceStore.server
-
config
Parameters:
-
config
Objectconfiguration for the store
-
root
Stringdirectory to manage (usually the application directory)
-
context
Objectstatic context
-
appConfig
Objectoverrides for
application.json
-
Item Index
Methods
- @parseValidDims
- _expandSpec
- _findResourcesByConvention
- _getSpec
- _getType
- _globList
- _matchToInternal
- _mockLib
- _preloadApp
- _preloadDirBundle
- _preloadDirMojit
- _preloadDirMojits
- _preloadPackage
- _skipBadPath
- _sortedReaddirSync
- _walkDirRecursive
- _yuiUseSync
- addResourceVersion
- blendStaticContext
- expandInstance
- expandInstance
- expandInstanceForEnv
- expandInstanceForEnv
- find
- findResourceVersionByConvention
- getAllURLDetails
- getAllURLs
- getAppConfig
- getAppConfig
- getAppPkgMeta
- getComputedRoutes
- getFrameworkConfig
- getMojitTypeDetails
- getResourceContent
- getResourceVersions
- getRoutes
- getRoutes
- getStaticAppConfig
- getStaticAppConfig
- getStaticContext
- getStaticContext
- initializer
- listAllMojits
- loadAddons
- loadConfigs
- makeResourceFSMeta
- makeResourceVersions
- makeStaticHandlerDetails
- mergeRecursive
- optimizeForEnvironment
- parseResourceVersion
- preload
- preloadInitial
- preloadResourceVersions
- processResourceContent
- resolveMojitDetails
- resolveResourceVersions
- validateContext
- validateContext
Properties
Methods
@parseValidDims
-
dims
Parameters:
-
dims
Objectcontents of dimensions.json
Returns:
_expandSpec
-
env
-
ctx
-
spec
Applies spec inheritance by following the base
and merging up the
results.
Parameters:
-
env
Stringthe runtime environment (either
client
orserver
) -
ctx
Objectruntime context
-
spec
Objectspec to expand
Returns:
_findResourcesByConvention
-
dir
-
dirType
-
pkg
-
mojitType
Finds resources based on our conventions. -Doesn't- load mojits or their contents. That's done elsewhere.
Parameters:
-
dir
Stringdirectory from which to find resources
-
dirType
Stringtype represented by the "dir" argument. values are "app", "bundle", "pkg", or "mojit"
-
pkg
Objectmetadata (name and version) about the package
-
mojitType
String | Nullname of mojit to which the resource belongs
Returns:
_getSpec
-
env
-
id
-
ctx
-
cb
Returns, via callback, the fully expanded mojit instance specification.
Parameters:
-
env
Stringthe runtime environment (either
client
orserver
) -
id
Stringthe ID of the spec to return
-
ctx
Objectthe runtime context for the spec
-
cb
Functioncallback used to return the results (or error)
-
err
Errorerror encountered, or a falsy value if no error
-
spec
Objectthe expanded mojit instance
-
_getType
-
env
-
type
-
ctx
-
cb
Returns, via callback, the details of the mojit type.
Parameters:
-
env
Stringthe runtime environment (either
client
orserver
) -
type
Stringthe mojit type
-
ctx
Objectthe runtime context for the type
-
cb
Functioncallback used to return the results (or error)
-
err
Errorerror encountered, or a falsy value if no error
-
spec
Objectthe mojit type details
-
_globList
-
prefix
-
list
Takes a list of globs and turns it into a list of matching paths.
Parameters:
-
prefix
Stringprefix for every path in the list
-
list
Arraylist of globs
Returns:
_matchToInternal
-
uri
-
verb.
Returns a matching route for the given URI
Parameters:
-
uri
StringThe uri to find a route for.
-
verb.
StringThe HTTP verb for the route.
_mockLib
-
name
-
lib
Used for unit testing.
Parameters:
-
name
Stringname of library to mock out
-
lib
Situation-dependentlibrary to mock out
Returns:
_preloadApp
-
pkg
preloads metadata about resources in the application directory
(but not node_modules/
)
Parameters:
-
pkg
Objectmetadata (name and version) about the app's package
Returns:
_preloadDirBundle
-
dir
-
pkg
preloads metadata about resources in a directory
Parameters:
-
dir
Stringdirectory path
-
pkg
Objectmetadata (name and version) about the package
Returns:
_preloadDirMojit
-
dir
-
dirType
-
pkg
preloads a directory that represents a single mojit
Parameters:
-
dir
Stringdirectory path
-
dirType
Stringtype represented by the "dir" argument. values are "app", "bundle", "pkg", or "mojit"
-
pkg
Objectmetadata (name and version) about the package
Returns:
_preloadDirMojits
-
dir
-
dirType
-
pkg
preloads a directory containing many mojits
Parameters:
-
dir
Stringdirectory path
-
dirType
Stringtype represented by the "dir" argument. values are "app", "bundle", "pkg", or "mojit"
-
pkg
Objectmetadata (name and version) about the package
Returns:
_preloadPackage
-
info
preloads metadata about resources in a package
(but not subpackages in its node_modules/
)
Parameters:
-
info
Objectmetadata about the package
Returns:
_skipBadPath
-
pathParts
Indicates whether file should be skipped based on its path
Parameters:
-
pathParts
Objectthe "source.fs" part of the resource
Returns:
_sortedReaddirSync
-
path
A wrapper for fs.readdirSync()
that guarantees ordering. The order
in which the file system is walked is significant within the resource
store, e.g., when looking up a matching context.
Parameters:
-
path
Stringdirectory to read
Returns:
_walkDirRecursive
-
dir
-
cb
-
_subdir
Recursively walks a directory
Parameters:
-
dir
Stringdirectory to start at
-
cb
Function(error, subdir, name, isFile)callback called for each file
-
_subdir
StringINTERNAL argument for recursion, please ignore
_yuiUseSync
-
modules
Augments this resource store's Y object with the specified YUI modules.
Parameters:
-
modules
ObjectYUI module configuration information
Returns:
addResourceVersion
-
res
Called by the ResourceStore to register a resource version.
You most often don't want to call this directly, but instead to hook
into it using the AOP mechanism of Y.Plugin.Base
:
this.beforeHostMethod('parseResourceVersion', this._myParseResource, this);
Parameters:
-
res
Objectthe resource version
Returns:
blendStaticContext
-
ctx
Returns the context provided blended with the static (non-runtime-sensitive) context.
Parameters:
-
ctx
ObjectThe context to blend.
Returns:
expandInstance
-
instance
-
ctx
-
cb
This just calls expandInstanceForEnv()
with env
set to client
.
Parameters:
-
instance
Mappartial instance to expand
-
ctx
Objectthe context
-
cb
Function(err,instance)callback used to return the results (or error)
expandInstance
-
instance
-
ctx
-
cb
This just calls expandInstanceForEnv()
with env
set to server
.
Parameters:
-
instance
Mappartial instance to expand
-
ctx
Objectthe context
-
cb
Function(err,instance)callback used to return the results (or error)
expandInstanceForEnv
-
env
-
instance
-
ctx
-
cb
Expands the instance into all details necessary to dispatch the mojit.
Parameters:
-
env
Stringthe runtime environment (either
client
orserver
) -
instance
Mappartial instance to expand
-
ctx
Objectthe context
-
cb
Function(err,instance)callback used to return the results (or error)
expandInstanceForEnv
-
env
-
instance
-
ctx
-
cb
Expands the instance into all details necessary to dispatch the mojit.
Parameters:
-
env
Stringthe runtime environment (either
client
orserver
) -
instance
Object -
ctx
Objectthe context
-
cb
Function(err,instance)callback used to return the results (or error)
find
-
url
-
verb
Finds a route for a given method+URL
Parameters:
-
url
Stringthe URL to find a route for.
-
verb
Stringthe HTTP method.
findResourceVersionByConvention
-
source
-
mojitType
Called by the ResourceStore to decide if a file should be considered
a resource. You most often don't want to call this directly, but
instead to hook into it using the AOP mechanism of Y.Plugin.Base
:
this.afterHostMethod('findResourceVersionByConvention', this._myFindResourceByConvention, this);
Generally findResourceVersionByConvention()
and parseResourceVersion()
are meant to work together.
This method figures out the type (and subtype) of a file, and parseResourceVersion()
turns
the file into an actual resource.
Parameters:
-
source
Objectthe same as the
source
part of a resource -
mojitType
Stringthe name of the mojit
Returns:
source.fs.subDir
to skip
getAllURLDetails
()
Object
Sugar method that returns a hash table with the urls and the resource objects.
Returns:
getAllURLs
()
Object
Sugar method that returns all "url" metadata of all resources.
Returns:
getAppConfig
-
ctx
Returns a contextualized application configuration.
Parameters:
-
ctx
Objectthe context
Returns:
getAppConfig
-
ctx
Returns a contextualized application configuration.
Parameters:
-
ctx
Objectthe context
Returns:
getAppPkgMeta
()
Object
Returns information about the application's NPM package. This is
primarily useful when creating resources in makeResourceVersions()
.
Returns:
getComputedRoutes
()
Object
For optimization. Call this to get the computed routes that can be passed to the constructor to avoid recomputing the routes.
Returns:
getFrameworkConfig
()
Object
Returns Mojito's built-in configuration.
Returns:
getMojitTypeDetails
-
env
-
ctx
-
mojitType
-
dest
Returns details about a mojit type.
As the last step of execution, this fires the getMojitTypeDetails
event so that Resource Store addons can augment the returned structure.
NOTE! This returns an object which is shared with similar calls to this method. If you intend to modify the object please make a deep copy first and use that instead.
Parameters:
-
env
Stringthe runtime environment (either
client
orserver
) -
ctx
Objectthe context
-
mojitType
Stringmojit type
-
dest
ObjectDEPRECATED: object in which to place the results
Returns:
getResourceContent
-
details
-
callback
Finds the file represented by the resource, and returns its contents and filesystem info.
Parameters:
-
details
Objectstatic handling details
-
callback
Functioncallback used to return the resource content (or error)
-
err
Error | UndefinedError that occurred, if any. If an error is given that the other two arguments will be undefined.
-
content
Bufferthe contents of the resource
-
stat
Stat | | NullStat object with details about the file on the filesystem Can be null if the resource doesn't have a direct representation on the filesystem.
-
Returns:
getResourceVersions
-
filter
Returns a list of resource versions that match the filter.
(To get the list of resource versions from all mojits, you'll need
to call listAllMojits()
and iterate over that list, calling this
method with mojit:
in the filter.)
Parameters:
-
filter
Objectlimit returned resource versions to only those whose keys/values match the filter
Returns:
getRoutes
-
ctx
Returns the routes configured in the application.
Parameters:
-
ctx
Objectthe context
Returns:
getRoutes
-
ctx
Returns the routes configured in the application.
Parameters:
-
ctx
Objectthe context
Returns:
getStaticAppConfig
()
Object
Returns the static (non-runtime-sensitive) version of the application.json.
Returns:
getStaticAppConfig
()
Object
Returns the static (non-runtime-sensitive) version of the application.json.
Returns:
getStaticContext
()
Object
Returns the static (non-runtime-sensitive) context
Returns:
getStaticContext
()
Object
Returns the static context used to boot the application.
Returns:
initializer
-
cfg
This methods is part of Y.Base. See documentation for that for details.
Parameters:
-
cfg
ObjectConfiguration object as per Y.Base
Returns:
listAllMojits
()
Array
Returns a list of all mojits in the app, except for the "shared" mojit.
Returns:
loadAddons
()
Number
Augments this resource store with addons that we know about.
To find the addons, call preloadResourceVersions()
first.
You most often don't want to call this directly, but instead to hook
into it using the AOP mechanism of Y.Plugin.Base
:
this.afterHostMethod('loadAddons', this._myLoadAddons, this);
Returns:
loadConfigs
()
Loads the dimensions and configurations found in the app
makeResourceFSMeta
-
dir
-
dirType
-
subdir
-
file
-
isFile
Creates the filesystem metadata for a resource. This is primarily
useful when creating resources in makeResourceVersions()
.
Parameters:
-
dir
Stringdirectory path
-
dirType
Stringtype represented by the "dir" argument. values are "app", "bundle", "pkg", or "mojit"
-
subdir
Stringdirectory path within "dir".
-
file
Stringname of the file or directory
-
isFile
Booleanindicates whether the path is a file (true) or diretory (false)
Returns:
makeResourceVersions
()
Nothing
Called by the ResourceStore to allow RS addons to create resource
versions that don't otherwise have representation on dist. You most
often don't want to call this directly, but instead to hook into it
using the AOP mechanism of Y.Plugin.Base
:
this.afterHostMethod('makeResourceVersions', this._onMakeResourceVersions, this);
Returns:
makeStaticHandlerDetails
-
res
turns a resource into a datastructure for the static handler
Parameters:
-
res
ObjectThe resource.
Returns:
mergeRecursive
-
dest
-
src
-
typeMatch
Recursively merge one object onto another. original implementation
Parameters:
-
dest
Objectobject to merge into
-
src
Objectobject to merge onto "dest"
-
typeMatch
Booleancontrols whether a non-object in the src is allowed to clobber a non-object in the dest (if a different type)
Returns:
optimizeForEnvironment
()
Nothing
Optimizes this store for the specific runtime, or for "production" if none given in static context.
Returns:
parseResourceVersion
-
source
-
type
-
subtype
-
mojitType
Called by the ResourceStore to turn a file into a resource.
You most often don't want to call this directly, but instead to hook
into it using the AOP mechanism of Y.Plugin.Base
:
this.beforeHostMethod('parseResourceVersion', this._myParseResource, this);
Generally findResourceVersionByConvention()
and parseResourceVersion()
are meant to work together.
findResourceVersionByConvention()
figures out the type (and subtype) of a file, and
this method turns the file into an actual resource.
Parameters:
-
source
Objectthe same as the
source
part of a resource -
type
Stringthe resource type of the file
-
subtype
Stringthe optional resource subtype of the file
-
mojitType
Stringthe name of the mojit
Returns:
preload
()
Nothing
Preloads everything in the app, and as well pertinent parts of the framework.
Returns:
preloadInitial
()
Nothing
Does initial preload of many parts of the application and framework. The full preload is done by preload().
Returns:
preloadResourceVersions
()
Nothing
Preload metadata about all resource versions in the application (and Mojito framework).
You most often don't want to call this directly, but instead to hook
into it using the AOP mechanism of Y.Plugin.Base
:
this.afterHostMethod('preloadResourceVersions', this._myPreloadResourceVersions, this);
Returns:
processResourceContent
-
details
-
content
-
callback.stat
-
callback
A method that transforms the content of a resource as it's being read from the filesystem. This method does nothing, but provides a hook point for resource store addons to transform resource contents.
Parameters:
-
details
Objectstatic handling details
-
content
Bufferthe contents of the resource
-
callback.stat
Stat | | NullStat object with details about the file on the filesystem Can be null if the resource doesn't have a direct representation on the filesystem.
-
callback
Functioncallback passed to
getResourceContent()
.
Returns:
resolveMojitDetails
-
env
-
posl
-
type
-
ress
-
mojitRes
Cooks down the list of resolved mojit resources into a single structure.
Parameters:
-
env
Stringthe runtime environment (either
client
orserver
) -
posl
Objectpriority-ordered seletor list
-
type
Stringname of mojit
-
ress
Arrayarray of resources for the mojit
-
mojitRes
Objectresource for the mojit itself
Returns:
resolveResourceVersions
()
For each resource, stuff it in a map mojitType->selector->affinity that will make it easy to retrieve it later. Then if the lazyResolve config is not set, go through all the possible combinations and resolve all resource versions.
validateContext
-
ctx
Validates the context, and throws an exception if it isn't.
Parameters:
-
ctx
Objectthe context
Returns:
validateContext
-
ctx
Validates the context, and throws an exception if it isn't.
Parameters:
-
ctx
Objectthe context
Returns:
Properties
selectors
Object
All selectors that are actually in the app.
Key is selector, value is just boolean true
.
This won't be populated until preloadResourceVersions()
is done.
Events
getMojitTypeDetails
Fired at the end of the getMojitTypeDetails()
method to allow
modification of the results.
Event Payload:
-
args
Objectinput arguments
-
env
Stringthe runtime environment (either
client
orserver
) -
ctx
Objectruntime context
-
posl
Arraypriority-ordered seletor list
-
mojitType
Stringname of mojit
-
-
mojit
Objectthe mojit type details
resolveMojitDetails
Fired at the end of the resolveMojitDetails()
method to allow
modification of the results.
Event Payload:
-
args
Objectinput arguments
-
env
Stringthe runtime environment (either
client
orserver
) -
posl
Arraypriority-ordered seletor list
-
type
Stringname of mojit
-
ress
Arrayarray of resources for the mojit
-
mojitRes
Objectresource for the mojit itself
-
-
details
Objectdetails for the mojit


4.1 average based on 254 Experience.
A Little About Me
Challenges makes life interesting,overcoming them makes life meanigful.
Background Information
I am so glad to be partaking programming course with definate hope I shall solve day to day problems.Being a programmer is who I am and what I have always wanted to be.
I vividly recall my first day one in programming class. I did not understand anything totally.But a dedicated "TM" helped my to recognised best channel to program.I truely owe my success to this wonderful "TM" who alter my approach and life.
Those experience made me to be who I am today and am now helping others. I encourage and assist new people how are making transition to programming.I love programming and am very
I came to this programming field with definite beliefs in mind in relation to who I will be as a successful programmer and a positive member of the community.I am a programmer to embrace the development of a trusting environment with new technology updates.In my opinion updates open up to new learning beyond the border to basic requiments when entrust is present.
My main aim to be a programmer is to inspire others as well as developing the skills neccesary for others to explore content and draw intelligent resolutions.I am committed to inspire this critical exploration through stimulating teamwork amongst peers. All of these approaches can be implemented through website creation plannning.


Move using arrow keys.
Select box using keys: 1, 2, 3 or 4.
Arrange the boxes in left-right in ascending order as follows:


The array swapper swaps the first and last elements of the array you enter.
Enter your array here. elements must be integers and separated by space (' ') character:
Your Array: ---------
New Array: ---------


Hello! If you see this, your login was successful!
house music
home
about
Logout
Admin Panel
Username Here
-
BPM:
120
+
Overwrite
Delete
Recording added to the playlist!
Error: Try again.....
Track names should be between 4 and 20 characters.
Error: No playlist found.
Your Project has been updated.
Send
Add Instrument
Crash
HiHat
Kick
OpenHat
Ride
Sdst
Snare
Tom1
Tom2
Add Column
Remove Instrument
Delete Column
Share Project
Enter Friend Code:
Load
Save Project:
Save
View My Tracks


Click Me
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
more textmore textmore te


MOVEMENT
Dance, Martial Arts, Zumba, Cheer…just to name a few. Get your body moving by taking a class in our “Movement University”.
PROJECTS
Paint, write, draw, build and experiment…fun projects to stimulate your mind. Build a better brain in the Think Tank.
GAMING
Dungeons and Dragons, Chess, Magic the Gathering…challenge yourself, challenge your friends. Strategize and socialize, collaborate and compete. It’s Game On!
Step #1: Understanding our classes
Everything in Questers’ Way can be experienced with or without a membership. Here is the key to understanding our class schedule.
-
100 Level Activity Courses
Average cost per class $5.00
These classes are fun and stimulating. They are not learning-intensive, and are appropriate for any skill level. They’re a great way to get moving, or explore the basics of art and science.
-
200 Level Learning Courses
Average cost per class $10.00
These are the first level of learning-intensive classes. They will help you develop a specialized skill such as ballet or painting.
-
'D' Vs 'S': Drop-in and Semester Classes
“D” Classes – These are “Drop-in” classes. They are not cumulative and you may attend whenever you like. (As long as there is space available)
“S” Classes – These are “Semester” classes. They are part of a series (Usually around 10 weeks long) and will be cumulative. Participants will need to register at the beginning of the session, and will be expected to commit to the entire course.
-
50 Level Just for Fun Activities
Average cost per class FREE
These programs are designed to give space and time to socialize and relax with peers.


Heading One
This is a
short
paragraph.
Heading Two
This is a
really
short
paragraph also.
Heading Three
Google
Heading Four
Twitter
Heading Five
My Email
Heading Six
Item One
Item Two
Item Three
Item A
Item B
Item C


The integration token to be used to send notifications to Telegram. You can copy this from the settings page within Telegram.
This overrides the global setting.


It's just a basic example for front-end developers, how to do coding a tab component with pure CSS only.
Of course, this is a basic example and you can use for improve your skills and develop your projects.
Download: Github @YusufUlusoy


master = ->
workers = []
cluster.on 'fork', (worker) ->
debug 'Adding worker', worker.id
workers.push worker
null
cluster.on 'exit', (worker) ->
index = workers.indexOf worker
debug 'Removing worker', worker.id, index
if index >= 0
workers.splice index, 1
null
server_options = pauseOnConnect: true
if options.https?
for own k,v of options.https
server_options[k] ?= v
server = net.createServer server_options, (connection) ->
worker = workers[ connection_hash connection, workers.length ]
worker.send 'sticky-session:connection', connection
zapp = {server}
listen zapp
start = (id) ->
debug "Starting worker #{id}"
http_module = switch
when options.http_module?
options.http_module
when options.https?
require 'https'
else
require 'http'
server = options.server = http_module.createServer()
{app} = zappa.app root_function, options
server.on 'request', app
process.on 'message', (message, connection) ->
return unless message is 'sticky-session:connection'
server.emit 'connection', connection
connection.resume()
throng {master,start}
zapp = null


Java¶
Introduction¶
Java is the default output language of CookCC. It can also be selected
using the -lang java
command line option. The generated class is
self-contained and does not require additional libraries.
Command Line Options¶
| Option | Version | Description |
|---|---|---|
-d <directory> |
0.1+ | Select the output directory. By default, it is the current directory. |
-class <className> |
0.1+ | Set the class name. By default, the
class name is Lexer . The output
Java file would be generated under the
appropriate package subdirectories of
the output directory. The
subdirectories would be created if they
do not exist. |
-public |
0.1+ | Set class scope to public . By
default, the class generated is in the
package scope. |
-abstract |
0.3+ | Make the output class abstract. It also
disables the generation of main
function. |
Code Locations¶
For codes in
, their locations in the
generated file can be seen in the following example. If the name is not
given, the name is assumed to be “default”.
/* code name = "fileheader" */
package foo;
/**
* code name = "classheader"
*/
public class Bar
{
public int yyLex ()
{
// code name = "lexerprolog"
// case switch codes
}
public int yyParse ()
{
// code name = "parserprolog"
// case switch codes
}
// code name = "default"
}
Lexer¶
Word count
tests
on large files (5 MB - 22 MB) have shown that ecs
table has about
the same performance as the full
table for Java.
Buffer Size¶
When a particular match exceeds the buffer size (default 4096), CookCC would increase the buffer length by 50%. For very long matches (such as code dumping near the end), for the best performance, set the initial buffer size to the size of the input.
yywrap¶
By default, when the end of file of the current input is reached, a
special <<EOF>>
character is generated. However, if one wishes to
hook this event, set the yywrap="true"
option for the lexer and
define the protected boolean yywrap ()
function, which would be
called.
The yywrap
function should return true
if no further action
should be done, and false
if the lexer should attempt to read from
the input again.
Input Stack¶
Sometimes, it maybe useful to halt the current input and switch to
another input temporarily. For instance, #include "file"
. In these
cases, yyPushInput
, yyPopInput
, yyInputStackSize
functions
are provided.
A test example is provided.
Unicode Support¶
CookCC can generate tables for 16-bit characters. The default input handling though is not clever enough to detect the encoding of the input.
See Input Encoding Detection for more details.
CookCC 0.3.3 generates a string that is too long for Oracle’s Java compiler. A work around is to use ECJ (Eclipse Core Java compiler) to compile the generated code.
CookCC 0.4 fixes this issue.
Performance¶
Here is a Lexer performance chart using Flex’s fastwc examples (lower bar indicates better performance) on a simple 5 MB text file. The following was tested using MinGW WC program, 5 version of word count under Flex (full table), CookCC (ecs table), and JFlex (ecs table). Both MinGW WC and Flex generated code were in C, while CookCC and JFlex generated codes were in Java.
The file is too small to really show the differences among Flex’s five different versions of word count for Flex, but the pattern shows quite noticeably for CookCC and the performance is expected (#1 to #4 has gradual improvements while #5 introduced backups and is actually slower).
There were several reasons why JFlex was so much slower than CookCC. JFlex has a very slow startup time due to its inefficient table packing method. As the result, the DFA table size has a major impact to the performance. JFlex also does not have local variable declaration section and thus all variables need to be instance variables. It also does not have a yyLength variable and must call yylength () function instead.
As a side note, ecs table and full table didn’t make much of the difference for CookCC.


Landing Page
Special Projects
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.
Matt Parker / For The Post
Every team in every sport as its own oddities. Oakland Raiders fans dress up in the most outlandish outfits, wearing nothing but black and silver, and celebratory cannons are shot off whenever the Columbus Blue Jackets score a goal.
But you would be hard-pressed to find a tradition as prehistoric as the one budding within Bird Arena.
The Tyrannosaurus rex has been extinct for well over 65 million years — that was the general consensus until one surfaced, very alive, at Bird Arena in late October.
While it has won the hearts of Bobcat faithful, the mysterious — almost mythical — creature roams throughout the old arena in search of its next victim. Its prey? The opposing team and its supporters.
Mainly used in attempt to get in the head of visiting teams at Bird, “Rex” has been seen standing next to the away team’s bench, staring menacingly in hopes of getting one of the skaters to crack.
Ohio goalie Jimmy Thomas has been one of the many Bird Arena dwellers to notice the carnivorous monster lurking about.
“It’s awesome knowing that we have fans that support us that much,” Thomas said. “It’s cool, as a team, knowing that your fans go out of their way to do things that make the atmosphere more fun.”
Fun has most often equated to wins. Since Rex first appeared at Bird Arena when Ohio played Stony Brook, the Bobcats are 9-2-1, incluing wins over nationally acclaimed teams such as Lindenwood and Robert Morris-Illinois.
Other players are more outspoken about Rex, including junior forward Matt Rudin.
“When Rex comes over, people start laughing and want to get more involved with the game.”– Rawlin Barber
“I love it,” Rudin said. “I think dinosaurs were a pretty cool species.”
Rudin — whose favorite dinosaur is the fictional Indominous rex from 2015 film Jurassic World — used to study marine biology but has since switched to environmental geography, and claims to “know his dinosaurs.”
Despite all the fame, pictures and going-ons that occur for Rex, it’s who’s under the suit that makes Rex shine.
Virtually every single T. rex to have ever lived hatched from an egg, yet Rex takes the form of an inflatable suit donned by Belpre High School junior Rawlin Barber.
Barber, the son of Michael and Wendy Barber, is one of the many kids to have grown up in Bird Arena watching Ohio play. Mainly, that’s due to the Barber family being “Blue Line Boosters” for the team.
Rex has been a year in the making; Michael was originally supposed to be the prehistoric creature.
“It started out last Halloween; (Michael) was supposed to wear his hockey jersey over it,” Rawlin said. “But the arms (of the costume) go straight out, so he couldn’t wear it.”
While the costume was collecting dust in the family’s basement, the idea came about last season, but the execution happened this year; from a dinosaur’s perspective, it’s opened up a whole new world.
Rawlin, who described himself as a quiet person who does his own thing, takes on a new life behind the teeth of a rubber dinosaur that’s allowed him to be more comfortable in his skin.
“(When I’m in the suit), I just jump around a lot and dancing to whatever (public address announcer Jake (Jakuszeit) plays,” Rawlin said. “It’s completely different.”
Rex has received mixed reviews from visiting teams — getting water squirted at him and being shown the middle finger is just another day at the office.
Both father and son have seen the power of influence that Rex has over the crowd at Bird Arena as well as his ability to put life back into the stands.
“Sometimes people are just there to watch,” Rawlin said. “When Rex comes over, people start laughing and want to get more involved with the game.”
The relationship between a team and its fans is give and take. But whether Ohio wins or loses, the Barbers are there for their Bobcats.
“At the end of it, we’re die hard Ohio hockey fans,” Michael said. “We’d never do something that takes away from the players.”
To coach Sean Hogan, Rex is a part of the Ohio family.
“My favorite dinosaur?” Hogan said. “Our dinosaur, Rex.”
Photo by: Emilee Chinn / For The Post
Development by: Taylor Johnston / Digital Production Editor
Landing Page
This story is part of a series of specially designed stories that represents some of the best journalism The Post has to offer. Check out the rest of the special projects here.


{% extends "base.html" %} {% block title %}Sports & U{% endblock %} {% block content %}
To check your membership tier and claim rewards please click here


A ResourcePool is a collection of separate ResourceUnits that have individual characteristics.
The ResourceUnits in a ResourcePool is determined by the ResourcePool input for the ResourceUnits.
ResourcePool Inputs
|
Keyword |
Description |
|
Key Inputs |
|
|
Description |
A free-form string describing the object. |
|
StrictOrder |
If TRUE, the next entity to seize the resource will be chosen strictly on the basis of priority and waiting time. If this entity is unable to seize the resource because of other restrictions such as an OperatingThreshold input or the unavailability of other resources it needs to seize at the same time, then other entities with lower priority or shorter waiting time will NOT be allowed to seize the resource. If FALSE, the entities will be tested in the same order of priority and waiting time, but the first entity that is able to seize the resource will be allowed to do so. |
|
Options |
|
|
AttributeDefinitionList, CustomOutputList |
See Section 6.2. |
|
Graphics |
|
|
Position, Alignment, Size, Orientation, Region, RelativeEntity, DisplayModel, Show, Movable, VisibleViews, DrawRange |
See Section 11.1. |
ResourcePool Outputs
|
Output Name |
Description |
|
Entity and DisplayEntity |
|
|
Name, ObjectType, SimTime, Parent, Attributes, Custom Outputs, Position, Size, Orientation, Alignment, GraphicalLength, ObserverList, NextList, PreviousList |
See Section 10.1. |
|
AbstractResourceProvider |
|
|
UserList |
The objects that can seize units from this resource. |
|
Capacity |
The total number of resource units that can be used. |
|
UnitsInUse |
The number of units that are in use. |
|
AvailableUnits |
The number of resource units that are not in use. |
|
UnitsSeized |
The number of units that have been seized. |
|
UnitsReleased |
The number of units that have been released. |
|
UnitsInUseAverage |
The average number of units that have been in use. |
|
UnitsInUseStandardDeviation |
The standard deviation of the number of units that have been in use. |
|
UnitsInUseMinimum |
The minimum number of units that have been in use. |
|
UnitsInUseMaximum |
The maximum number of units that have been in use. |
|
UnitsInUseTimes |
The total time that the number of resource units in use was 0, 1, 2, etc. |


10 minutes 38 seconds
Continue the story...
Then McAbinacker put on the blind-fold, allowed David to bind his hands behind his back, and took a deep breath before pluging his head into the icy cold water containing the beauitfully red apples which had once been bobbing so peacefully.
Then what happened?
The ice was so shockingly cold that McAbinacker was forced to exhale and come up for air; his laughter was the purest David had heard in years.
Add to story


Poster
Poster presentations are a means of sharing your results with your colleagues. You can also use a poster presentation to get early feedback on your research line (in particular if you are presenting a pilot project). Poster presentations provide informal peer-review in order to develop, clarify and refine your work and also allow you to hear about what others in your field are doing. Check out this link for information about the history of scientific meetings.
The three papers and three websites below provide an amazing introduction and how-to for producing posters. Go through them in this order and for the following reasons:
For the quickest way to get into the producing your poster
- Erren & Bourne, 2007 - Provides 10 reasons and thinking points for why you present a poster
- Shelledy, 2004 - Provides a how-to for the content and format of your poster
- Craft of Scientific Posters - Provides design rules and templates (come back to this site and follow their link to Scientific Presentations when preparing to present
- Block, 1996 - Provides rules for how to put your poster together and how to present your poster
- The Perfect Poster - Provides an overview on how to design a poster to draw a crowd
- Step by Step: Scientific Poster Making - Provides step by step instructions for making a poster in powerpoint.
- How to design an award-winning conference poster - Provides an overview on designing a conference poster.
If you have more time check out these two more detailed sites:
- Ritchi Song - Scientific Literature and Writing - Examples, Formatting, and Tutorials
- Colin Purrington - Designing Conference posters - Extremely detailed from beginning to end. Great information
Why Posters
- An advertisement of your work
- Why should anyone care?
- What does your work add to the literature
- Can viewers understand what I did (the methods)
- Poster overview
- Think of your poster as a short story
- Describe just a few major points
- Spark questions in your viewers
- Less is more
- A poster in two elements
- 1) A simple display of data
- 2) Small blocks of supporting text
- Small details
- Size, space and visuals
- Photos/images should be 150-300DPI saved as PNG
- Use color to engage - but no more than 2-3
- Prepare a both a 30 second and 2 minute "elevator talk"
- Prepare mini-size poster handouts
- Include Acknowledgements
- Include contact info
References and Further Reading
Block, S.M. (1996). Do's and don'ts of poster presentation. Biophysical Journal, 71, 3527-3529.
Erren, T.C., & Bourne, P.E. (2007). Ten simple rules for a good poster presentation. PLoS Computational Biology, 3(5), e102.
Shelledy, D.C. (2004). How to make an effective poster. Respiratory Care, 49(10), 1213-1216.
Alley, M. Scientific posters. Retrieved from http://www.writing.engr.psu.edu/posters.html
Song, R. Poster presentations. Retrieved from http://people.eku.edu/ritchisong/posterpres.html
Price, M. The perfect poster. Retrieved from http://www.apa.org/gradpsych/2011/01/poster.aspx
Purrington, C.B. Designing conference posters. Retrieved from http://colinpurrington.com/tips/poster-design


#include <iso8211.h>
Public Member Functions | |
| void | Dump (FILE *fp) |
| const char * | GetName () |
| const char * | GetDescription () |
| int | GetSubfieldCount () |
| DDFSubfieldDefn * | GetSubfield (int i) |
| DDFSubfieldDefn * | FindSubfieldDefn (const char *) |
| int | GetFixedWidth () |
| int | IsRepeating () |
| void | SetRepeatingFlag (int n) |
| char * | GetDefaultValue (int *pnSize) |
|
|
Write out field definition info to debugging file. A variety of information about this field definition, and all it's subfields is written to the give debugging file handle.
|
|
|
Find a subfield definition by it's mnemonic tag.
|
|
|
Return default data for field instance. |
|
|
Fetch a longer descriptio of this field.
|
|
|
Get the width of this field. This function isn't normally used by applications.
|
|
|
Fetch a pointer to the field name (tag).
|
|
|
Fetch a subfield by index.
|
|
|
Get the number of subfields. |
|
|
Fetch repeating flag.
|
|
|
this is just for an S-57 hack for swedish data |


Range
From:
To:
Arrows
Math
Corners
Stars
ASCII
Other
Select
Characters
View Character
✤
♘
☠
☤
U+
e.g. “10046” in
decimal
notation or
“
x
27bd” in
hexadecimal
notation
Show


It is often convenient to define explicitly the lower bound and upper bound of a type map, and override the definition given on page Lower-Bound and Upper-Bound Markers . This allows one to define a datatype that has ``holes'' at its beginning or its end, or a datatype with entries that extend above the upper bound or below the lower bound. Examples of such usage are provided in Section Examples . Also, the user may want to overide the alignment rules that are used to compute upper bounds and extents. E.g., a C compiler may allow the user to overide default alignment rules for some of the structures within a program. The user has to specify explicitly the bounds of the datatypes that match these structures.
To achieve this, we add two additional conceptual datatypes, lb_marker and ub_marker, that represent the lower bound and upper bound of a datatype. These conceptual datatypes occupy no space (extent(mpiublblb_marker) = extent(mpiublbub_marker) =0) . They do not affect the size or count of a datatype, and do not affect the content of a message created with this datatype. However, they do affect the definition of the extent of a datatype and, therefore, affect the outcome of a replication of this datatype by a datatype constructor.
Example
A call to
MPI_TYPE_CREATE_RESIZED(MPI_INT, -3, 9, type1)
creates a new datatype that has an
extent of 9 (from -3 to 5, 5 included), and contains an integer at
displacement 0. This is the datatype defined by the typemap
{( lb_marker, -3), (int, 0), ( ub_marker, 6)}.
If this type is replicated twice by a call to
MPI_TYPE_CONTIGUOUS(2, type1, type2) then the newly created
type can
be described by the typemap
{( lb_marker, -3), (int, 0), (int,9), ( ub_marker, 15)}.
(An entry of type
ub_marker
can be deleted if there is another entry of type ub_marker with a
higher
displacement; an entry of type lb_marker can be deleted if there
is another
entry of type lb_marker with a lower displacement.)
In general, if Typemap = { (type0 , disp0 ) , ... , (typen-1 , dispn-1) } , then the lower bound of Typemap is defined to be
Similarly, the upper bound of Typemap is defined to be
Then
extent(Typemap) = ub(Typemap) - lb(Typemap)
If typei requires alignment to a byte address that is a multiple of ki, then is the least non-negative increment needed to round extent(Typemap) to the next multiple of . In Fortran, it is implementation dependent whether the MPI implementation computes the alignments ki according to the alignments used by the compiler in common blocks, SEQUENCE derived types, BIND(C) derived types, or derived types that are neither SEQUENCE nor BIND(C).
The formal definitions given for the various datatype constructors apply now, with the amended definition of extent.
Rationale.
Before Fortran 2003, MPI_TYPE_CREATE_STRUCT could be applied to Fortran common blocks and
SEQUENCE derived types. With Fortran 2003, this list was extended by BIND(C) derived types
and MPI implementors have implemented the alignments ki differently, i.e., some based on
the alignments used in SEQUENCE derived types, and others according to BIND(C) derived types.
( End of rationale.)
Advice
to implementors.
In Fortran, it is generally recommended to use BIND(C) derived types instead of
common blocks or SEQUENCE derived types. Therefore it is recommended to calculate the
alignments ki based on BIND(C) derived types.
( End of advice to implementors.)
Advice to users.
Structures combining different basic datatypes should be defined so that there will be no gaps based on alignment rules. If such a datatype is used to create an array of structures, users should also avoid an alignment-gap at the end of the structure. In MPI communication, the content of such gaps would not be communicated into the receiver's buffer. For example, such an alignment-gap may occur between an odd number of floats or REALs before a double or DOUBLE PRECISION data. Such gaps may be added explicitly to both the structure and the MPI derived datatype handle because the communication of a contiguous derived datatype may be significantly faster than the communication of one that is non-contiguous because of such alignment-gaps.
Example: Instead of
TYPE, BIND(C) :: my_data REAL, DIMENSION(3) :: x ! there may be a gap of the size of one REAL ! if the alignment of a DOUBLE PRECISION is ! two times the size of a REAL DOUBLE PRECISION :: p END TYPEone should define
TYPE, BIND(C) :: my_data REAL, DIMENSION(3) :: x REAL :: gap1 DOUBLE PRECISION :: p END TYPEand also include gap1 in the matching MPI derived datatype. It is required that all processes in a communication add the same gaps, i.e., defined with the same basic datatype. Both the original and the modified structures are portable, but may have different performance implications for the communication and memory accesses during computation on systems with different alignment values.
In principle, a compiler may define an additional alignment rule
for structures, e.g., to use at least 4 or 8 byte alignment, although
the content may have a maxi ki alignment less than this structure
alignment. To maintain portability, users should
always resize structure derived datatype handles
if used in an array of structures, see the Example in
Section Fortran Derived Types
.
( End of advice to users.)


--- layout: post title: Free Rails PDF Book categories: - documentation author: jamis published: true date: 2007-10-02 15:52:00.000000000 +01:00 ---
Sitepoint is currently giving away free PDF copies of Patrick Lenz’s “Build Your Own Ruby on Rails Web Applications” book. Want a copy? Just head on over to http://rails.sitepoint.com and download it. This offer is only good for the next 60 days, so get while the gettin’ is good!


Intuitively, we jump to HTTP to use as our communication protocol between services in a system. However, using a queue has many benefits. In this post, instead of diving only into theory of queues, I’ll give practical advice on implementing a queue, illustrate some use cases I’ve encountered in a production system where using a queue had obvious benefits versus HTTP, as well as give some practical implementation ideas.
Who is this post for?
- Those who have used or are familiar with the idea behind queues (like RabbitMQ), and have a general idea about the purpose and benefits/tradeoffs of a system that uses microservices.
Recommended Reading
TL;DR
- Tip: Use message types properly. Read Enterprise Integration Patterns to learn about message types (document, command, and event messages)… I cannot stress this point enough
- Benefit: messages still get delivered even if a server goes down (in theory). But, make sure your consumers are idempotent.
- Implementation idea: try using a queue for each service
- Tip: set up a dead letter queue
- Tip: encrypt everything yourself
Message Types
Enterprise Integration Patterns was published back in 2004, but has invaluable information for patterns in developing a system that uses queues for communication. Best of all, the information is clear and practical (by the way, I don’t get anything for recommending this book, I just think it’s really good). The biggest question I had going into implementing a queue system was:
How do I format my messages? (Book gives you the patterns: document, event, command)
Very briefly:
- Document message - data is a single unit of data. It is a piece of information (for example, a MongoDB or SQL document)
- Event message - it’s simply a notification that something happened (*)
- Command message - it is a verb that says “do this”
I’ll give you an example of how these message types interact with one another:
You send a command message to a particular service (with the routing key DoSomething). Some asynchronous stuff happens in the background, and an event message SomethingDone is broadcasted to all queues that are interested when something is done. This message contains the _id
of a document that was affected, and then each service that heard the SomethingDone event requests via a request-reply queue for the document with the _id
that was received in the event message (and whichever service knows about that document type sends a document message to the requesting service) (**).
This is a very lightweight interaction method between services, and is especially useful when the communication can happen asynchronously. It may seem convoluted, but when you have your infrastructure set up, it can all happen pretty automatically.
(*) There is a nuance between event messages that contain metadata, versus an event message that contains a document, which is described in the book
(**) This is the “pull” method, as opposed to the “push” method. The “push” method would actually send the entire document along with the event message so that there doesn’t need to be a separate RPC request for the document after the event is received. For brevity, I’ll leave out the details here, and recommend you again to read the Message Types chapters in the book
Message Delivery
Queues are especially useful when you have important messages that you want to know will be delivered. However, your design pattern for your messages and your message consumers should be idempotent (meaning, given the same message, the consumer will do the same thing each time).  Instead, you want the consumer to set the value to a specific value (which was $1 plus whatever the previous known value was). This is safer.
There are caveats to this, and it depends on if, for example, your queues are durable, your messages are persistent, and your queue server is up (you can mitigate this risk too, by using an offline in-memory queue). However, given that your queue system itself is generally reliable, you have now managed to separate message delivery reliability from the application server itself.
Places where this is helpful:
- If an app server crashes and restarts
- If you have to manually restart a server
- If you need to scale a cloud server, which causes a restart
For points 1 and 2, most people will quip back with “well, you should have error handlers”. Yes, agreed. However, this assumes that the engineer managed to provide 100% error coverage, which isn’t realistic. Servers still crash, servers still need to be restarted, etc.
For point 3, if you’ve used something like Heroku, you’ll notice that you have the option to scale horizontally, which means in Heroku’s context that you increase the number of dynos, which supports more traffic to the dyno. However, this also causes a server restart.
Now, the benefit: I’ve seen a server restart, watched the logs, and then see a message get delivered (a message that was sent immediately before the server restarted). It didn’t really click in my head until I actually saw it happen in production in a critical instance: I restarted the server, and a message was still consumed by the process that I restarted.
This is fantastic. However, it is also extremely important that your services consume messages in an idempotent manner. For example:
A service sends a message to invoke a process that will take 15 seconds, and then the message will be acknowledged. However, the process crashed at 10 seconds, but unfortunately 10 database documents were already manipulated in that time. The message wasn’t acknowledged yet, so when the server boots up again, the message will be redelivered. So, will those updates cause the 10 documents to be updated again? Is there some value you’re incrementing, for example? That wouldn’t necessarily be idempotent.
Queue Per Service
In HTTP, there exist common patterns for deciding how services will communicate (for example, REST). However, a pain point in building out a queue system from scratch is that you also have to figure out what “queue” means in your system. Do I set up a queue for certain message types (possibly)? Do I set up a queue per service and deliver all messages on that queue?
The method I’ve had luck with in production so far is using a queue per service. This is the simplest way for me to reason about it in my head. You have a routing key for your message, and then it goes to a specific place (this would be for a “direct” queue using command messages).
So, if you have a service that maintains user data, and the service is named “user-service”, then you create a queue called “user-service”. There are other patterns, but depending on your system, you may find the “queue per service” pattern useful.
If you’re using RabbitMQ, you can just send a message with a specific routing key, and the queue server knows automatically which queue to send it to.
Dead letters
There are nuances between Dead Letter Channels and Invalid Message Channels. For brevity, again, I’ll recommend you read those 2 chapters in EIP, but for the sake of practical advice, I’ll tell you set up a dead letter queue.
What do you do with those messages? Do you store them to a database? Do you redeliver them?
Depending on your system, you could decrypt the message and store it in a database that provides encryption at rest. This will allow you a quick way to scan through the messages that couldn’t be delivered and debug (your mileage may vary here; depending on your system, you might have to encrypt certain fields yourself, etc.)
Encryption
TL;DR
- Use
amqps://
protocol - Encrypt your message before sending to the queue server
If you’re using the secure protocol, you have encryption while in-transit, but depending on your provider, you might not have encryption at rest.
Encrypting your messages might be a hassle, since now your services all need to use, say, a shared key, but you can bury this under the hood of your API using a message adapater to automatically handle the key negotiation, encryption, and decryption.
Conclusion
Again, I can’t recommend the EIP book enough. It can be hard to find coherent internet resources for implementing a queue, and this book provides well-tested production design patterns. Remember, consider your messages types, encrypt everything, and consider storing your dead letter messages to persistent storage to help you debug your system when (not if) something fails.


Showing 3 of 10
-
Javascript error
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."ThursdayBrian Adams -
Login
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.  Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"ThursdayEnoch Thompson -
Login
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"MondayClarice Thompson -
Login
"Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"YesterdayPaul Underling


respiratory {border-style px;} #ffffff;} patient MERS-CoV MERS operating case performed emergency C-sec However, baby infection medical placental px; syndrome women {font-family East Middle abruption acute confirmed font-size pregnant room Fig. coronavirus double; infectious negative patients pregnancy severe viral woman Infect Obstet Thus, air anesthesia body border-color border-width cases control high maternal normal reports section solid; staff {font-style {font-weight Korean PPE X-ray administered blood bold courier; day delivering delivery designated double em; epidural human known minimize mother obstetrics pressure pt;} reported rooms time ward


OxygenOS 10.0.5 rolls out for the OnePlus 7T while Open Beta 5 rolls out for the OnePlus 7/7 Pro
by Pranob MehrotraLate last month, OnePlus rolled out OxygenOS 10.0.4 for the OnePlus 7T series. Among the usual bug fixes and improvements, the update included a new cloud service feature in the Gallery app, exclusively for Indian users. Now, OnePlus is pushing another update for the OnePlus 7T with some minor tweaks and the Android security patch for October 2019.
OnePlus 7T XDA Forums || OnePlus 7 XDA Forums || OnePlus 7 Pro XDA Forums
As per a recent post on the OnePlus forums, OxygenOS version 10.0.5 is now rolling out for the OnePlus 7T. The update doesn’t pack any significant changes, however, it does address an issue some users were facing with the double-tap to wake gesture on the device. Here’s the official changelog for the OxygenOS 10.0.5 update on the OnePlus 7T:
-
System
- Fixed the double-tap gesture for screen activation
- Updated Android security patch to 2019.10
- Improved system stability and General bug fixes
As with all updates from the company, the OxygenOS 10.0.5 OTA is being rolled out in a staged fashion and is expected to reach only a small percentage of users at first. The broader rollout will begin in a few days, once the company ensures that there are no major issues with the update. In case you don’t wish to wait, you can download the update on your device by following the link below.
OxygenOS 10.0.5 Full OTA for the OnePlus 7T (Indian variant only)
Along with the stable release for the OnePlus 7T, the company is also rolling out OxygenOS Open Beta 5 for the OnePlus 7 and OnePlus 7 Pro. The update brings some minor improvements for the two devices, including optimizations for the touch experience while gaming, a fix for the navigation bar color in dark mode, and new privacy alerts for applications with permissions access to the camera, location, etc. Here’s, the official changelog for the update:
-
System
- Optimized touch experience while playing games
- Fixed the navigation bar color under the dark mode
- Added privacy alerts for the applications with the permissions access to the camera, locations, etc.
- Improved system stability and fixed known issues
-
Weather
- Improved stability and fixed known issues
-
Emergency Rescuer
- Optimized the functionality to improve the product experience
In case you’re using OxygenOS on the beta channel, you should receive the Open Beta 5 OTA update shortly. However, if you don’t wish to wait, you can download the update on your OnePlus 7/7Pro from the links below.
OxygenOS Open Beta 5 for the OnePlus 7 (Full OTA)
OxygenOS Open Beta 5 for the OnePlus 7 (Incremental update from Open Beta 4)
OxygenOS Open Beta 5 for the OnePlus 7 Pro (Full OTA)
OxygenOS Open Beta 5 for the OnePlus 7 Pro (Incremental update from Open Beta 4)
Thanks to XDA Senior Member Some_Random_Username for the download links!


FASHBASH was born in NYC about not too long ago. My best friend and I were going on vacation to the Caribbean and he has been looking for a swim shorts for a long time before that but couldn't find it.
I buy everything online and randomly I got myself 3 pieces of swim shorts. He happened to be over when I opened the box, and right away he fell in love with one of them, and immediately tried to buy it from me.
Of course I did not take his money and gave it to him as gift..
Long story short, I’ve been working in fashion for many years. A lot of people consider me very very stylish and well dressed (you will be the judge of that:) ). I got asked the same question thousands of times, literally..
"Where did you buy your shirt, shoes, jacket etc from?"
Now everytime I buy something it will pop automatically on FASHBASH and all of you can see it. If you want you can even click on it buy it yourself .
FASHBASH is a platform that allows real people to share their real purchase. Only people who are members of our community will be able to see the purchases others have made and of course, share their own.
We implement the old saying: “I’ll show you mine if you show me yours” on purchases.
Curious with how FASHBASH works? Click here.


| Tor Standalone: false | Tor Browser: false |
AnonDetect is a simple script inspired by a test for social media logins.
This script detects if you have Tor, I2P, I2P-Bote, Freenet, Perfect Dark, IPFS, or ZeroNet running on your system, by requesting images from their web interfaces.
This uses no server side code.
If you are using the Tor Browser Bundle, you are protected from this because localhost connections are blocked.
Note for Freenet users: You can prevent this and more serious attacks on Freenet by configuring Freenet to act as a proxy, see these instructions by Arne Babenhauserheide.
Identifying localhost/LAN web services using techniques similar to this is one of many ways websites can fingerprint you, even when you are using a VPN service.
Note: Tor/Tor Browser can only be detected if you are using Firefox. If anyone has a work around for this, please let me know.
Note #2: Firefox blocks some active mixed content used by this project when the parent page (this page) is on a secure (https) website.
(Yes, I know ZeroNet & IPFS are not "anonymity" networks, but I still felt that they fit here).


libTool (with camel case) is a JavaScript library jQuery-free, made to be a web developer's small penknife.
Calls two functions in alternate ways
Syntax
libTool.functions.eventToggle(firstFunction, secondFunction);
Returns true
if there is the passed parameter in the passed array.
libTool.array.exists([2,3,4,5], 4)


---
layout: post
title: Morgan Stanley stuff
---
What is going on about Morgan Stanley in the Syndication world?
-
Strategist Andy Xie warns
about a "hard landing" in lot of sectors in China because they attract too many
investors on the hope of growth. Are we living a Yellow bubble? If that one was to
burst, the whole Asian region could go down. (Yahoo News)
-
Morgan Stanley is also managing
fuel for United Airlines through their Commodities businesses. And it seems it's
quite lucrative! Something I really didn't expect from an investment bank. Amazing!
(Commodity Trader)
-
Cisco and Wal-Mart going down, Yahoo and Ebay going up, that's the latest
index provided by Morgan Stanley Capital International Inc. (Bloomberg)
-
PerfectlyVague
thinks we're a boring company. Girl, you ought to come around, there are lot of
funny people and the atmosphere is far from being that boring! Tell you what, I invite
you for coffee in our building, you'll see how cool everything is here! And yes, i was
really surprised at how relaxed one can be and on how much resources are
devoted to people feeling ok about their job. Can you spell S-U-P-P-O-R-T-I-V-E? Ok
maybe I can't but the company definitely does!
-
From Canada, Morgan Stanley also gets
the contract with Sycamore Networks.
Our company definitely has more and more of a portfolio of IT companies... For the
names, type them in a search engine I can't name but you know! ;-) (Canada.com)
-
As this blog highly respect all opinions, this
one made me laugh for quite a while. Just a snippet: "then we'll know how
much of Bush family is controlled by the Saudis/British Crown!". Frankly amusing
if you don't take it seriously. If you do, how about trying
this web site instead?
-
Still on the subject of Morgan Stanley and petroleum, Andarko
is selling its gulf assets to Apache Corp and a royalty interest to Morgan Stanley
Capital Group. (Yahoo)
-
Morgan Stanley
supports Collin County children. Yes, our company is giving back to the community,
and not only with money. Did you know that Morgan Stanley employees can have
a day off, fully paid, to go and do some community work, once a year? (North
Texas e-News)
-
And for you advices junkies, William Hill has
been upgraded to overweight from equal-weight. Now if anyone took the time
to explain all these barbarian words to me, i'd be glad to explain multi threading
as a payback. (Independent.co.uk)
-
And it would seem Morgan Stanley is going back to investing
in Israel. (Haaretz.com)
-
Finally, Morgan Stanley thinks that the interest rate in the UK has
reached a peek. Quoting the article: "Baker suggests one more rate rise is possible,
although this would be unlikely". The article also says that the City as a whole always
fails at predicting peaks and troughs since 97. We'll see about that one, be back
in November and I'll track back on my own entry. (Business Telegraph)
I actually start liking monitoring all that financial information. There's much more
happening than what I publish, but if it's not available in feeds it doesn't get to
me. And I bet you most investors will do the same way in a few years.


tanked
`Prev `__
T
`Next `__
--------------
**tanked**: adj.
Same as `*down* <../D/down.html>`__, used primarily by Unix hackers. See
also `*hosed* <../H/hosed.html>`__. Popularized as a synonym for ‘drunk’
by Steve Dallas in the late lamented *Bloom County* comic strip.
--------------
+------------------------+----------------------------+------------------------------+
| `Prev `__ | `Up <../T.html>`__ | `Next `__ |
+------------------------+----------------------------+------------------------------+
| TAN | `Home <../index.html>`__ | TANSTAAFL |
+------------------------+----------------------------+------------------------------+


doodle doo
haircare for your doodle
doodle poo
detangle dood
fresh dood
LOGIN
Looking for help styling your doodle? You've come to the right place!
Tell us a bit about your pup...
name:
breed:
color:
submit
Alli Johnson 1.125 Software Engineering and Architecting Homework 1


Object.finalize()
.
Calling Object.finalize()
explicitly may result in objects being placed in an
inconsistent state.
The garbage collector automatically calls this method on an object when it determines that there are no references to this object.
The inspection doesn't report calls to super.finalize()
from within implementations of finalize()
as
they're benign.
Example:
MyObject m = new MyObject();
m.finalize();
System.gc()


vint(psexpr,expr,top)
This function performs a mass-weighted vertical integral in mb pressure coordinates. The three arguments to vint
are:
psexpr
a GrADS expression for the
surface pressure, in mb, which bounds the integral on
the bottom.
expr
a GrADS expression
representing the quantity to be integrated.
top
the bounding top pressure, in mb. This value must be a constant and cannot be
provided as an expression.
The calculation is a sum of the mass-weighted layers:
f/g * sum(expr * Delta(level))
The bounds of the integration are the surface pressure and the
indicated top
value. The scale factors are f=100
and g=9.8. The summation is done for each layer present that is
between the bounds. The layers are determined by the Z levels of the
default file. Each layer is considered to be from the midpoints
between the levels actually present, and is assumed to have the same
value throughout the layer, namely the value of the gridpoint at the
middle of the layer.
expr
.
top
pressure value to be at the top of a layer, which is midway between
grid points. For example, if the default file (and the data) have
pressure levels of ...,500,400,300,250,... then a good value for
top
might be 275, the value at the top of the
layer that extends from 350 to 275 mb.
vint
function operates only in an X-Y varying
dimension environment.
1. This expression will integrate specific humidity to obtain precipitable water, in mm:
vint(ps,q,275)
2. This is an artificial example that demonstrates a vertical integration from a fixed lower bound of 1000mb to the top of the atmosphere, and integrating a field of all 1's. This gives an answer of 10204.1 (or 100000/9.8) which is the mass of air (in kg) of a 1 meter squared column when the surface pressure is 1 bar and the accelleration due to gravity is assumed to be exactly 9.8m/sec**2 over the entire column.
vint(const(ps,1000),const(t,1),0)


Instagram experimenting with hiding 'likes' for some users
by Cox Media Group National Content DeskAfter testing hiding 'likes' on Instagram in several countries, the company plans to hide the metric from some U.S. users next week.
According to WIRED, Instagram's parent company, Facebook, is planning to remove the ability to like posts in an effort to make it 'the safest place on the internet." Head of Instagram, Adam Mosseri, told the magazine that some users can expect their like counts to no longer appear in public view.
“The idea is to try to depressurize Instagram, make it less of a competition, and give people more space to focus on connecting with the people they love and things that inspire them,” Mosseri told the audience at the Wired25 conference.
People will still be able to see how many people liked their own photos, but won’t see counts for other people’s posts.
The test started in Canada and was rolled out to Australia, Brazil, Italy, Japan and New Zealand, according to The Verge.
Instagram is trying to combat criticism that the number of “likes” people’s posts receive could hurt mental health and make people feel bad when comparing themselves to others.
One group that may be affected is Instagram “influencers,” the major, minor or micro celebrities who use social media to market products and otherwise influence their hordes of followers. After all, if you post a photo and no one likes it, did you really post it?
Guy Avigdor, co-founder and chief operating officer of influencer marketing company Klear, said many marketers are also moving toward Story, Instagram’s disappearing video and photo feature.
“If anything, now is a time for the industry to adapt more adequate metrics for measuring influencer impact and reduce reliance on likes,” Avigdor said.
The Associated Press contributed to this report.


Timeseries DataMap is a pre-aggregate table implementation based on 'pre-aggregate' DataMap. Difference is that Timeseries DataMap has built-in understanding of time hierarchy and levels: year, month, day, hour, minute, so that it supports automatic roll-up in time dimension for query.
CAUTION: Current version of CarbonData does not support roll-up.It will be implemented in future versions.
The data loading, querying, compaction command and its behavior is the same as preaggregate DataMap. Please refer to Pre-aggregate DataMap for more information.
To use this datamap, user can create multiple timeseries datamap on the main table which has a event_time column, one datamap for one time granularity.
For example, below statement effectively create multiple pre-aggregate tables on main table called timeseries
CREATE DATAMAP agg_year
ON TABLE sales
USING "timeseries"
DMPROPERTIES (
'event_time'='order_time',
'year_granularity'='1',
) AS
SELECT order_time, country, sex, sum(quantity), max(quantity), count(user_id), sum(price),
avg(price) FROM sales GROUP BY order_time, country, sex
CREATE DATAMAP agg_month
ON TABLE sales
USING "timeseries"
DMPROPERTIES (
'event_time'='order_time',
'month_granularity'='1',
) AS
SELECT order_time, country, sex, sum(quantity), max(quantity), count(user_id), sum(price),
avg(price) FROM sales GROUP BY order_time, country, sex
CREATE DATAMAP agg_day
ON TABLE sales
USING "timeseries"
DMPROPERTIES (
'event_time'='order_time',
'day_granularity'='1',
) AS
SELECT order_time, country, sex, sum(quantity), max(quantity), count(user_id), sum(price),
avg(price) FROM sales GROUP BY order_time, country, sex
CREATE DATAMAP agg_sales_hour
ON TABLE sales
USING "timeseries"
DMPROPERTIES (
'event_time'='order_time',
'hour_granularity'='1',
) AS
SELECT order_time, country, sex, sum(quantity), max(quantity), count(user_id), sum(price),
avg(price) FROM sales GROUP BY order_time, country, sex
CREATE DATAMAP agg_minute
ON TABLE sales
USING "timeseries"
DMPROPERTIES (
'event_time'='order_time',
'minute_granularity'='1',
) AS
SELECT order_time, country, sex, sum(quantity), max(quantity), count(user_id), sum(price),
avg(price) FROM sales GROUP BY order_time, country, sex
For querying timeseries data, Carbondata has builtin support for following time related UDF
timeseries(timeseries column name, 'aggregation level')
SELECT timeseries(order_time, 'hour'), sum(quantity) FROM sales GROUP BY timeseries(order_time,'hour')
It is not necessary to create pre-aggregate tables for each granularity unless required for query.
For Example: For main table sales , if following timeseries datamaps were created for day level and hour level pre-aggregate
CREATE DATAMAP agg_day
ON TABLE sales
USING "timeseries"
DMPROPERTIES (
'event_time'='order_time',
'day_granularity'='1',
) AS
SELECT order_time, country, sex, sum(quantity), max(quantity), count(user_id), sum(price),
avg(price) FROM sales GROUP BY order_time, country, sex
CREATE DATAMAP agg_sales_hour
ON TABLE sales
USING "timeseries"
DMPROPERTIES (
'event_time'='order_time',
'hour_granularity'='1',
) AS
SELECT order_time, country, sex, sum(quantity), max(quantity), count(user_id), sum(price),
avg(price) FROM sales GROUP BY order_time, country, sex
Queries like below will not be rolled-up and hit the main table
Select timeseries(order_time, 'month'), sum(quantity) from sales group by timeseries(order_time,
'month')
Select timeseries(order_time, 'year'), sum(quantity) from sales group by timeseries(order_time,
'year')
NOTE (RESTRICTION):
Refer to Compaction section in preaggregation datamap. Same applies to timeseries datamap.
Refer to Data Management section in preaggregation datamap. Same applies to timeseries datamap.


Hello !
This is what I am trying to do:
https://github.com/gysmovoile/emonTxFirmware/blob/master/emonTx_Interrup...
and here it comes, "BUT" with the RF12 instead of ethernet. Couldn´t find "earlier" version at the github link.
As being ilitterate at software what to exclude and what to paste in to replace the ethernet-module with the RF-module in the "emonTX_Interrupts_EthernetAndLCD.ino"-file
In the transmitting end I have a 3-phase and voltage emonTX V2 up and running OK.
Thank you / C.
Re: "emonRX" with RFM12 and 4-line i2c LCD
That code is for a TRANSMITTER. You seem to be asking for a sketch to receive from your emonTx V2 so completely the wrong place to start. If you want to see how to receive data from an emonTx, look at the emonGLCD or NanodeRF sketches.
Re: "emonRX" with RFM12 and 4-line i2c LCD
Thank you for reply !
You are so right !
In the TX is there the emonTx_CT123_Voltage.ino. All calibrated and good (I know my electrics ;-) )
So what I´m looking for is something for a Nano/Uno with RFM12 and a 4x20 I2C display to match the TX...
There seems a lot of focus on networking so for one that is not a programmer there is a jungle...
Regards / C.
Re: "emonRX" with RFM12 and 4-line i2c LCD
On offer in the OEM on-line store is the emonGLCD. Or if you want to add a receiver to an Arduino, there's the emonTx Shield (yes, it will function as a receiver). Then you'll need to add a display, presumably using the serial port. But without knowing exactly what you wish to achieve, it's quite hard to point you in the right direction.  But I don't know that anyone has fully documented it.
Re: "emonRX" with RFM12 and 4-line i2c LCD
The presentation in the wanted 4x20 I2C display ( no G(lcd) that is ;-) )
If looking in the emonGLCD one want´s to get rid of ethernet and Graphic and get the RFM12 received data through the 3-phase power and voltage calculus out in I2C-display...
I´m sorry for being software-illiterate :-(
Thank you for answering ! / C
Re: "emonRX" with RFM12 and 4-line i2c LCD
I initially wanted to alter the emonGLCD display, but am no programmer.
Using a emonTx v2.2 pcb and the EmonTX Low Power Temperature Node build guide, restored the 5v mini usb supply, I have a unit with a 20x4 HD44780 display.
The software is based on
// LCD Energy Monitor Display, 4 line LCD display connected with Sparkfun SerLCD Serial Backpack
// By Nathan Chantrell. http://zorg.org/
// Builds on emonGLCD example by Trystan Lea and Glyn Hudson at OpenEnergyMonitor.org
The SerLCD is 3 connections, 5v, 0v, Rx.
The Library used is
// Using SoftwareSerial pin 3 = rx, pin 4 = tx // use pins 5 & 6 as pin 4 already hardwired on emonTx v2.2
#include <SoftwareSerial.h>
SoftwareSerial mySerial(5, 6);
My EmonLCD receives data from an emonTx v3.4 and an emonTx v2.2
I have the code if it would be any use to you.
Re: "emonRX" with RFM12 and 4-line i2c LCD
So what I´m looking for is something for a Nano/Uno with RFM12 and a 4x20 I2C display
Have you had a look at this?
Re: "emonRX" with RFM12 and 4-line i2c LCD
Thank you all for your answers. !
The EmonTX is just a board wether using it for rx or tx is just a matter of what sketch to load as said.
I´m looking at the emonLCD_4line.ino-sketch (same place at the github but under emonLCD-master) trying to figure out what to comment out and what to replace for I2C-display (adress0x20) and for the rfm12-868 that I will use, to have the 3-phases load and voltage displayed.
Thank you all / C


This example shows how to use the ArrayAssert object, which contains assertions designed to be used specifically with JavaScript Arrays and array-like objects.
ArrayAssert