| Package | Description |
|---|---|
| com.hazelcast.client.impl |
Contains most of the client side HazelcastInstance implementation functionality.
|
| com.hazelcast.client.proxy |
This package contains client side proxy implementations of the different Hazelcast data structures
and operation types
|
| com.hazelcast.config |
Provides classes for configuring HazelcastInstance.
|
| com.hazelcast.core |
Provides core API interfaces/classes.
|
| com.hazelcast.instance |
This package contains Hazelcast Instance functionality.
|
| com.hazelcast.jca |
This package contains jca functionality
|
| com.hazelcast.map.impl.proxy |
Contains map proxy implementation and support classes.
|
| com.hazelcast.mapreduce |
This package contains the MapReduce API definition for Hazelcast.
All map reduce operations running in a distributed manner inside the active Hazelcast cluster. |
| com.hazelcast.mapreduce.aggregation |
This package contains the aggregation API and the convenience helper classes
to retrieve predefined aggregation implementations.
|
| com.hazelcast.mapreduce.aggregation.impl |
This package contains a set of predefined aggregation implementations
|
| com.hazelcast.mapreduce.impl |
This package contains the default implementation for the map reduce framework
internals.
|
| com.hazelcast.mapreduce.impl.client |
This package contains request and response classes for communication between cluster
members and Hazelcast native clients
|
| com.hazelcast.mapreduce.impl.operation |
This package contains all remote operations that are needed to control work on
supervising or worker nodes.
|
| com.hazelcast.mapreduce.impl.task |
This package contains the base implementation for a standard map reduce job.
|
| com.hazelcast.multimap.impl |
Contains classes for Hazelcast MultiMap module.
|
| Class and Description |
|---|
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
| Class and Description |
|---|
| Job
This interface describes a mapreduce Job that is build by
JobTracker.newJob(KeyValueSource) .It is used to execute mappings and calculations on the different cluster nodes and reduce or collate these mapped values to results. |
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
| KeyValueSource |
| TrackableJob
This interface describes a trackable job.
|
| Class and Description |
|---|
| TopologyChangedStrategy
This enum class is used to define how a map reduce job behaves
if the job owner recognizes a topology changed event.
When members are leaving the cluster it might happen to loose processed data chunks that were already send to the reducers on the leaving node. In addition to that on any topology change there is a redistribution of the member assigned partitions which means that a map job might have a problem to finish it's currently processed partition. The default behavior is immediately cancelling the running task and throwing an TopologyChangedException but it is possible
to submit the same job configuration again if
JobTracker.getTrackableJob(String)
returns null for the requested job id. |
| Class and Description |
|---|
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
| Class and Description |
|---|
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
| Class and Description |
|---|
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
| Class and Description |
|---|
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
| Class and Description |
|---|
| Collator
This interface can be implemented to define a Collator which is executed after calculation
of the MapReduce algorithm on remote cluster nodes but before returning the final result.
Collator can for example be used to sum up a final value. |
| Combiner |
| CombinerFactory |
| Context
The Context interface is used for emitting keys and values to the intermediate working space of
the MapReduce algorithm.
|
| Job
This interface describes a mapreduce Job that is build by
JobTracker.newJob(KeyValueSource) .It is used to execute mappings and calculations on the different cluster nodes and reduce or collate these mapped values to results. |
| JobCompletableFuture
This is a special version of ICompletableFuture to return the assigned job
id of the submit operation.
|
| JobPartitionState
An implementation of this interface contains current information about
the status of an process piece while operation is executing.
|
| JobPartitionState.State
Definition of the processing states
|
| JobProcessInformation
This interface holds basic information about a running map reduce job like
state of the different partitions and the number of currently processed
records.
The number of processed records is not a real time value but updated on regular base (after 1000 processed elements per node). |
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
| KeyPredicate
This interface is used to pre evaluate keys before spreading the MapReduce task to the cluster.
|
| KeyValueSource |
| LifecycleMapper
The LifecycleMapper interface is a more sophisticated version of
Mapper normally used for complexer
algorithms with a need of initialization and finalization. |
| Mapper
The interface Mapper is used to build mappers for the
Job . |
| MappingJob
This interface describes a mapping mapreduce Job.
For further information Job . |
| Reducer
The abstract Reducer class is used to build reducers for the
Job .Reducers may be distributed inside of the cluster but there is always only one Reducer per key. |
| ReducerFactory
A ReducerFactory implementation is used to build
Reducer instances per key.An implementation needs to be serializable by Hazelcast since it might be distributed inside the cluster to do parallel calculations of reducing step. |
| ReducingJob
This interface describes a reducing mapreduce Job.
For further information Job . |
| ReducingSubmittableJob
This interface describes a submittable mapreduce Job.
For further information Job . |
| TopologyChangedStrategy
This enum class is used to define how a map reduce job behaves
if the job owner recognizes a topology changed event.
When members are leaving the cluster it might happen to loose processed data chunks that were already send to the reducers on the leaving node. In addition to that on any topology change there is a redistribution of the member assigned partitions which means that a map job might have a problem to finish it's currently processed partition. The default behavior is immediately cancelling the running task and throwing an TopologyChangedException but it is possible
to submit the same job configuration again if
JobTracker.getTrackableJob(String)
returns null for the requested job id. |
| TrackableJob
This interface describes a trackable job.
|
| Class and Description |
|---|
| Collator
This interface can be implemented to define a Collator which is executed after calculation
of the MapReduce algorithm on remote cluster nodes but before returning the final result.
Collator can for example be used to sum up a final value. |
| CombinerFactory |
| KeyPredicate
This interface is used to pre evaluate keys before spreading the MapReduce task to the cluster.
|
| Mapper
The interface Mapper is used to build mappers for the
Job . |
| ReducerFactory
A ReducerFactory implementation is used to build
Reducer instances per key.An implementation needs to be serializable by Hazelcast since it might be distributed inside the cluster to do parallel calculations of reducing step. |
| Class and Description |
|---|
| Collator
This interface can be implemented to define a Collator which is executed after calculation
of the MapReduce algorithm on remote cluster nodes but before returning the final result.
Collator can for example be used to sum up a final value. |
| CombinerFactory |
| KeyPredicate
This interface is used to pre evaluate keys before spreading the MapReduce task to the cluster.
|
| Mapper
The interface Mapper is used to build mappers for the
Job . |
| ReducerFactory
A ReducerFactory implementation is used to build
Reducer instances per key.An implementation needs to be serializable by Hazelcast since it might be distributed inside the cluster to do parallel calculations of reducing step. |
| Class and Description |
|---|
| Collator
This interface can be implemented to define a Collator which is executed after calculation
of the MapReduce algorithm on remote cluster nodes but before returning the final result.
Collator can for example be used to sum up a final value. |
| CombinerFactory |
| Job
This interface describes a mapreduce Job that is build by
JobTracker.newJob(KeyValueSource) .It is used to execute mappings and calculations on the different cluster nodes and reduce or collate these mapped values to results. |
| JobCompletableFuture
This is a special version of ICompletableFuture to return the assigned job
id of the submit operation.
|
| JobPartitionState
An implementation of this interface contains current information about
the status of an process piece while operation is executing.
|
| JobPartitionState.State
Definition of the processing states
|
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
| KeyPredicate
This interface is used to pre evaluate keys before spreading the MapReduce task to the cluster.
|
| KeyValueSource |
| Mapper
The interface Mapper is used to build mappers for the
Job . |
| MappingJob
This interface describes a mapping mapreduce Job.
For further information Job . |
| PartitionIdAware
This interface can be used to mark implementation being aware of the data partition
it is currently working on.
|
| ReducerFactory
A ReducerFactory implementation is used to build
Reducer instances per key.An implementation needs to be serializable by Hazelcast since it might be distributed inside the cluster to do parallel calculations of reducing step. |
| ReducingJob
This interface describes a reducing mapreduce Job.
For further information Job . |
| ReducingSubmittableJob
This interface describes a submittable mapreduce Job.
For further information Job . |
| TopologyChangedStrategy
This enum class is used to define how a map reduce job behaves
if the job owner recognizes a topology changed event.
When members are leaving the cluster it might happen to loose processed data chunks that were already send to the reducers on the leaving node. In addition to that on any topology change there is a redistribution of the member assigned partitions which means that a map job might have a problem to finish it's currently processed partition. The default behavior is immediately cancelling the running task and throwing an TopologyChangedException but it is possible
to submit the same job configuration again if
JobTracker.getTrackableJob(String)
returns null for the requested job id. |
| Class and Description |
|---|
| CombinerFactory |
| KeyPredicate
This interface is used to pre evaluate keys before spreading the MapReduce task to the cluster.
|
| KeyValueSource |
| Mapper
The interface Mapper is used to build mappers for the
Job . |
| ReducerFactory
A ReducerFactory implementation is used to build
Reducer instances per key.An implementation needs to be serializable by Hazelcast since it might be distributed inside the cluster to do parallel calculations of reducing step. |
| TopologyChangedStrategy
This enum class is used to define how a map reduce job behaves
if the job owner recognizes a topology changed event.
When members are leaving the cluster it might happen to loose processed data chunks that were already send to the reducers on the leaving node. In addition to that on any topology change there is a redistribution of the member assigned partitions which means that a map job might have a problem to finish it's currently processed partition. The default behavior is immediately cancelling the running task and throwing an TopologyChangedException but it is possible
to submit the same job configuration again if
JobTracker.getTrackableJob(String)
returns null for the requested job id. |
| Class and Description |
|---|
| CombinerFactory |
| JobPartitionState.State
Definition of the processing states
|
| KeyPredicate
This interface is used to pre evaluate keys before spreading the MapReduce task to the cluster.
|
| KeyValueSource |
| Mapper
The interface Mapper is used to build mappers for the
Job . |
| ReducerFactory
A ReducerFactory implementation is used to build
Reducer instances per key.An implementation needs to be serializable by Hazelcast since it might be distributed inside the cluster to do parallel calculations of reducing step. |
| TopologyChangedStrategy
This enum class is used to define how a map reduce job behaves
if the job owner recognizes a topology changed event.
When members are leaving the cluster it might happen to loose processed data chunks that were already send to the reducers on the leaving node. In addition to that on any topology change there is a redistribution of the member assigned partitions which means that a map job might have a problem to finish it's currently processed partition. The default behavior is immediately cancelling the running task and throwing an TopologyChangedException but it is possible
to submit the same job configuration again if
JobTracker.getTrackableJob(String)
returns null for the requested job id. |
| Class and Description |
|---|
| Collator
This interface can be implemented to define a Collator which is executed after calculation
of the MapReduce algorithm on remote cluster nodes but before returning the final result.
Collator can for example be used to sum up a final value. |
| Combiner |
| CombinerFactory |
| Context
The Context interface is used for emitting keys and values to the intermediate working space of
the MapReduce algorithm.
|
| Job
This interface describes a mapreduce Job that is build by
JobTracker.newJob(KeyValueSource) .It is used to execute mappings and calculations on the different cluster nodes and reduce or collate these mapped values to results. |
| JobCompletableFuture
This is a special version of ICompletableFuture to return the assigned job
id of the submit operation.
|
| JobPartitionState
An implementation of this interface contains current information about
the status of an process piece while operation is executing.
|
| JobPartitionState.State
Definition of the processing states
|
| JobProcessInformation
This interface holds basic information about a running map reduce job like
state of the different partitions and the number of currently processed
records.
The number of processed records is not a real time value but updated on regular base (after 1000 processed elements per node). |
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
| KeyPredicate
This interface is used to pre evaluate keys before spreading the MapReduce task to the cluster.
|
| KeyValueSource |
| Mapper
The interface Mapper is used to build mappers for the
Job . |
| Reducer
The abstract Reducer class is used to build reducers for the
Job .Reducers may be distributed inside of the cluster but there is always only one Reducer per key. |
| ReducerFactory
A ReducerFactory implementation is used to build
Reducer instances per key.An implementation needs to be serializable by Hazelcast since it might be distributed inside the cluster to do parallel calculations of reducing step. |
| TopologyChangedStrategy
This enum class is used to define how a map reduce job behaves
if the job owner recognizes a topology changed event.
When members are leaving the cluster it might happen to loose processed data chunks that were already send to the reducers on the leaving node. In addition to that on any topology change there is a redistribution of the member assigned partitions which means that a map job might have a problem to finish it's currently processed partition. The default behavior is immediately cancelling the running task and throwing an TopologyChangedException but it is possible
to submit the same job configuration again if
JobTracker.getTrackableJob(String)
returns null for the requested job id. |
| TrackableJob
This interface describes a trackable job.
|
| Class and Description |
|---|
| JobTracker
The JobTracker interface is used to create instances of
Job s depending
on the given data structure / data source. |
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.


- person(Long) - Method in class controllers.PersonController
-
GET the person in the database with his ID if it exist
- Person - Class in models
-
Name of the class : Person
Description : Persistence for the Person
Version : 1.0
Date : 31/10/2016
- Person(Long, String, String, String, String, String, int, String, String, String, String, String, List<Product>, List<Objective>, List<Diary>, List<ProductInBasket>) - Constructor for class models.Person
-
Constructor of a Person who save a person in the database
- PersonController - Class in controllers
-
Name of the class : PersonController
Description : Controller to manage an Person
Version : 1.0
Date : 03/11/2016
- PersonController() - Constructor for class controllers.PersonController
-
- PersonController - Static variable in class controllers.routes.javascript
-
- PersonController - Static variable in class controllers.routes
-
- personCreate() - Method in class controllers.PersonController
-
CREATE a person in the database with the values of the FORM
- personDelete(Long) - Method in class controllers.PersonController
-
DELETE a person in the database with his ID
- persons() - Method in class controllers.PersonController
-
GET all persons in the database
- personUpdate(Long) - Method in class controllers.PersonController
-
UPDATE a person in the database with his ID with the value of the FROM.
- product(long) - Method in class controllers.ProductController
-
GET the product in the database with his ID if it exist
- Product - Class in models
-
Name of the class : Product
Description : Persistence for the Product
Version : 1.0
Date : 31/10/2016
- Product(Long, String, String, Double, int, Person, List<ProductInBasket>) - Constructor for class models.Product
-
Constructor of a Product who save a product in the database
- ProductController - Class in controllers
-
Name of the class : ProductController
Description : Controller to manage an Product
Version : 1.0
Date : 08/11/2016
- ProductController() - Constructor for class controllers.ProductController
-
- ProductController - Static variable in class controllers.routes.javascript
-
- ProductController - Static variable in class controllers.routes
-
- productCreate() - Method in class controllers.ProductController
-
CREATE a product in the database with the values of the FORM
- productDelete(long) - Method in class controllers.ProductController
-
DELETE a product in the database with his ID
- ProductInBasket - Class in models
-
Name of the class : ProductInBasket
Description : Persistence for the ProductInBasket
Version : 1.0
Date : 16/11/2016.
- ProductInBasket(Long, int, Person, Product) - Constructor for class models.ProductInBasket
-
Constructor of the ProductInBasket
- productInBasketDelete(Long) - Method in class controllers.BasketController
-
DELETE a ProductInBasket in the database with his ID
- products() - Method in class controllers.ProductController
-
GET all products in the database
- productUpdate(long) - Method in class controllers.ProductController
-
Update a product with the data in the form


At PhotoLab we take your satisfaction to the utmost priority, if your product does not meet your quality expectation please visit our FAQ to contact our support team so we can help you!
Create an account and get $10 discount on your next order!
Name
Email
Password
Canvas Printing
Whether you want to print your own picture or choose one from our vast collection, canvas print is a beautiful way to showcase it. Starting from $20! Click here to browse!
We got picture frames!
We got a wide variety of picture frames materials, from plastic, wooden or metal starting at $10! Click here to browse!
FREE SHIPPING! on any order over $59.99!
$10 Discount!
Creat an account today and get $10 discount on your first order!


|
C++ Actor Framework 0.18
|
Stores all information necessary for implementing an FSM-based parser. More...
#include <parser_state.hpp>
Public Member Functions | |
| parser_state (Iterator first) noexcept | |
| parser_state (Iterator first, Sentinel last) noexcept | |
| parser_state (const parser_state &) noexcept=default | |
| parser_state & | operator= (const parser_state &) noexcept=default |
| char | next () noexcept |
| Returns the null terminator when reaching the end of the string, otherwise the next character. | |
| char | current () const noexcept |
Returns the null terminator if i == e , otherwise the current character. | |
| bool | at_end () const noexcept |
Checks whether i == e . | |
| void | skip_whitespaces () noexcept |
| Skips any whitespaces characters in the input. | |
| bool | consume (char x) noexcept |
Tries to read x as the next character, automatically skipping leading whitespaces. | |
| template<class Predicate > | |
| bool | consume_if (Predicate predicate) noexcept |
| Consumes the next character if it satisfies given predicate, automatically skipping leading whitespaces. | |
| bool | consume_strict (char x) noexcept |
Tries to read x as the next character without automatically skipping leading whitespaces. | |
| template<class Predicate > | |
| bool | consume_strict_if (Predicate predicate) noexcept |
| Consumes the next character if it satisfies given predicate without automatically skipping leading whitespaces. | |
Public Attributes | |
| Iterator | i |
| Current position of the parser. | |
| Sentinel | e |
| End-of-input marker. | |
| pec | code |
| Current state of the parser. | |
| int32_t | line |
| Current line in the input. | |
| int32_t | column |
| Position in the current line. | |
Stores all information necessary for implementing an FSM-based parser.


Docker from Scratch workshop¶
linux¶
The linux module is a simple Python c extension, containing syscall wrappersmissing from the Python os module. You will need to use these system callsto implement different aspect of process containment during the workshop.
-
linux.
clone
()¶ -
linux.
clone
(callback, flags, callback_args)
create a child process
Parameters: - callback (str) – python function to be executed by the forked child
- flags (int) – combination (using
|
) of flags specifying what should be shared between the calling process and the child process. See below. - callback_args (str) – tuple of arguments for the callback function
Returns: On success, the thread ID of the child process
Raises: RuntimeError – if clone fails
Useful flags:
linux.CLONE_NEWNS
- Unshare the mount namespacelinux.CLONE_NEWUTS
- Unshare the UTS namespace (hostname, domainname, etc)linux.CLONE_NEWNET
- Unshare the network namespacelinux.CLONE_NEWPID
- Unshare the PID namespace
-
-
linux.
mount
()¶ -
linux.
mount
(source, target, filesystemtype, mountflags, mountopts)
mount filesystem
Parameters: - source (str) – filesystem to attach (can be
None
) - target (str) – directory being attached to, or manipulated (in case of flag change)
- filesystemtype (str) – filesystem supported by the kernel (can be
None
) - mountflags (int) – any combination (using
|
) of mount flags supported by mount(2). For the workshop you are most likely to use0
(i.e. no flags), or a combination of:linux.MS_REC
,linux.MS_PRIVATE
- mountopts (str) – options passed to the specified filesystem (can be
None
)
Returns: None
Raises: RuntimeError – if mount fails
-
-
linux.
pivot_root
()¶ -
linux.
pivot_root
(new_root, put_old)
change the root filesystem
Parameters: - new_root (str) – New root file system
- put_old (str) – Directory to move the current process root file system to
Returns: None
Raises: RuntimeError – if pivot_root fails
NOTE: The following restrictions apply to new_root and put_old:
- They must be directories.
- new_root and put_old must not be on the same filesystem as the current root.
- new_root must be a mountpoint.
- put_old must be underneath new_root, that is, adding a nonzero number of /.. to the string pointed to by put_old must yield the same directory as new_root.
- No other filesystem may be mounted on put_old.
-
-
linux.
sethostname
()¶ -
linux.
sethostname
(hostname)
set the system hostname
Parameters: hostname (str) – new hostname value Returns: None Raises: RuntimeError – if sethostname fails -
-
linux.
setns
()¶ -
linux.
setns
(fd, nstype)
reassociate process with a namespace
Parameters: - fd (int) – file descriptor referring to a namespace to associate with
- nstype (int) – one of the following:
0
(Allow any type of namespace to be joined),CLONE_NEWIPC
(join IPC namespace),CLONE_NEWNET
(join network namespace), orCLONE_NEWUTS
(join UTS namespace)
Returns: None
Raises: RuntimeError – if setns fails
-
-
linux.
umount
()¶ -
linux.
umount
(target)
unmount filesystem
Parameters: target (str) – the (topmost) filesystem this directory is mounted on will be removed Returns: None Raises: RuntimeError – if umount fails -
-
linux.
umount2
()¶ -
linux.
umount2
(target, flags)
unmount filesystem but allows additional flags controlling the behavior of the operation
Parameters: - target (str) – the (topmost) filesystem this directory is mounted on will be removed
- flags (int) – control the behavior of the operation. You can combine multiple flags
using
|
. For the workshop you are most likely to uselinux.MNT_DETACH
Returns: None
Raises: RuntimeError – if umount2 fails
-
-
linux.
unshare
(flags)
disassociate parts of the process execution context
Parameters: flags (int) – which parts of the execution context should be unshared. You can combine multiple flags using |
. See below for flags you might want to use in this workshopReturns: None Raises: RuntimeError – if unshare fails Useful flags:
linux.CLONE_NEWNS
- Unshare the mount namespacelinux.CLONE_NEWUTS
- Unshare the UTS namespace (hostname, domainname, etc)linux.CLONE_NEWNET
- Unshare the network namespace
-


Session Class
The session class allows you to maintain state for your application in the stateless environment of the web.
It allows you to store variables on the server using a variety of storage solutions, and recall these variables on the next page request.
The static methods documented on this page use the session driver configured in the configuration via the driver setting.
When you have set the auto_initialize setting to true, a session will be initialized when the Session class is loaded.
If it is set to false, you will have to use one of the methods below, or start a session instance manually, to initialize the session.
If your application needs session support, either "always_load" your session class, or make sure your (base) controllers
will load it. If you do load it, but you choose not to auto_initialize the session, and you don't use any of the session methods,
the session will not be refreshed! This can cause unexpected behaviour of your application due to an expired session.
 Storage backends that
have built-in support for data expiration, such as APC, Memcached or Redis, will use that feature, and
will auto expire stale cache entries.
Storage backends that don't, for example the database or file system drivers, use the gc_probability setting to determine if
garbage collection is needed. If so, they will run it in a shutdown event, after the page has been send to the user.
Downside of this method is that if this takes some time, the page will not finished to be "loading..." until GC is completed.
When using sessions, make ABSOLUTELY sure that the timezone configured in your app/config/config.php and/or your
php.ini file matches the timezone set on your server. Since cookie expiry timestamps are in GMT, expiry time calculation goes
horribly wrong when you have a timezone mismatch, ranging from not expiring properly to session cookies not set at all because they arrive
at the browser already expired.
instance($instance = null)
The instance method returns the default session instance, or a specific instance, identified by name.
| Static |
Yes |
| Parameters |
| Param |
Default |
Description |
| $instance |
null
|
Cookiename (as defined in config/session.php) that identifies the required session instance. |
|
| Returns |
mixed - session object, or false in case the requested instance does not exist. |
| Example |
// get the default session instance (identified by the 'driver' configuration setting).
$session = Session::instance();
// get a specific session instance
$session = Session::instance('myappcookie');
|
set($variable, $value = null)
The set method allows you to set a session variable.
| Static |
Yes |
| Parameters |
| Param |
Type |
Default |
Description |
| $variable |
string|array |
required |
Name of the session variable to set or associative array of values. |
| $value |
mixed |
null
|
The session variables value.
This can be any data type, but pay attention when storing objects in the session, as session data is serialized, and there are restrictions to serializing an object.
|
|
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// store the userid in the session
Session::set('userid', $userid);
// you can also store more complex values
Session::set('array', array('varA', 'varB', 'varC' => array('val1', 'val2'));
// you can also use an array to set multiple values at the same time
Session::set(array(
'userid' => $userid,
'has_cookies' => function()
{
return (bool) \Cookie::get('has_them', false);
}
));
// You can also chain on calls to set values
Session::set('userid', $userid)->set('foo', 'bar');
|
get($variable = null, $default = null)
The get method allows you to retrieve stored variables from the session.
| Static |
Yes |
| Parameters |
| Param |
Default |
Description |
| $variable |
null
|
Name of the session variable to get. If not specified, all session variables are returned. |
| $default |
null
|
Default value to return in case the requested variable does not exist. If no default is given, the method will return null. |
|
| Returns |
mixed - Dependent on the type of the stored $variable. The method returns null if the requested variable does not exist. |
| Example |
// get the stored userid from the session
$userid = Session::get('userid');
if ( $userid === false )
{
echo "no user is logged in";
}
// you can retrieve the entire array stored
$arr = Session::get('array');
// or get a specific key from the array
$arr = Session::get('array.varC');
// get all session variables
$vars = Session::get();
|
delete($variable)
The delete method allows you to delete a stored session variable.
| Static |
Yes |
| Parameters |
| Param |
Default |
Description |
| $variable |
required |
Name of the session variable to delete. |
|
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// delete the stored userid from the session
Session::delete('userid');
// you can also delete a specific key from the array
Session::delete('array.varC');
|
set_flash($variable, $value = null)
The set_flash method allows you to set a session flash variable. Flash variables have a limited lifespan. Depending on the configuration, they will be deleted after the next page request, or after they are retrieved.
| Static |
Yes |
| Parameters |
| Param |
Default |
Description |
| $variable |
required |
Name of the session flash variable to set. |
| $value |
null
|
The session flash variables value.
This can be any data type, but pay attention when storing objects in the session, as session data is serialized, and there are restrictions to serializing an object.
|
|
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// tell the next page request which step to process
Session::set_flash('step', 2);
// you can also store more complex values
Session::set_flash('array', array('varA', 'varB', 'varC' => array('val1', 'val2')));
|
This method supports limited 'dot-notation' to save an element in a multidimensional array. Only the top-level is versioned, the
entire multidimensional array will expire at the same time.
get_flash($variable, $default = null, $expire = false)
The get_flash method allows you to get a session flash variable. Flash variables have a limited lifespan. Depending on the configuration, they will be deleted after the next page request, or after they are retrieved.
| Static |
Yes |
| Parameters |
| Param |
Default |
Description |
| $variable |
required |
Name of the session variable to get. |
| $default |
null
|
Default value to return in case the requested variable does not exist. If no default is given, the method will return null. |
| $expire |
false
|
if true, the session variable expires immediately, even if it is set in the same request. |
|
| Returns |
mixed - Dependent on the type of the stored $variable. The method returns null if the requested variable does not exist. |
| Example |
// find out which step to process
$step = Session::get_flash('step');
|
This method supports 'dot-notation' to retrieve an element from a multidimensional array.
keep_flash($variable)
The keep_flash method resets a flash variable stored in the session to an 'unrequested' state. This allows you to get a flash variable, and still pass it on to the next page request.
| Static |
Yes |
| Parameters |
| Param |
Default |
Description |
| $variable |
required |
Name of the flash variable to keep. |
|
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// keep the step value for one more page request
Session::keep_flash('step');
|
delete_flash($variable)
The delete_flash method allows you to delete a stored flash variable.
| Static |
Yes |
| Parameters |
| Param |
Default |
Description |
| $variable |
required |
Name of the flash variable to delete. |
|
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// delete the step from the session
Session::delete_flash('userid');
|
create()
The create method allows you to create a new session. If a session is already present, it will be destroyed when the new one is created.
| Static |
Yes |
| Parameters |
None |
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// create a new session
Session::create();
|
destroy()
The destroy method allows you to destroy an existing session.
| Static |
Yes |
| Parameters |
None |
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// destroy a session
Session::destroy();
|
read()
The read method allows you to manually read a session. The session is automatically read when the session class is initialized, so under normal circumstances there is no need to use this method.
| Static |
Yes |
| Parameters |
None |
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// read the session
Session::read();
|
write()
The write method allows you to manually write the session. Under normal circumstances, the session is automatically written when the script ends.
| Static |
Yes |
| Parameters |
None |
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// write the session
Session::write();
|
rotate()
The rotate method allows you to manually rotate the session id.
Under normal circumstances, the session id is automatically rotated periodically,
as defined in the configuration. You might want to manually rotate it as an extra
security measure, for example when you change the rights of the logged-in user.
| Static |
Yes |
| Parameters |
None |
| Returns |
FuelCoreSession_Driver - is chainable |
| Example |
// rotate the session
Session::rotate();
|
key()
The key method allows you retrieve elements of the session key,
which uniquely identifies the session.
| Static |
Yes |
| Parameters |
| Param |
Default |
Description |
| $name |
optional |
Name of the key element. By default, it is set to 'session_id'.
Other elements that may be available are 'ip_hash', 'created', 'updated'
'user_agent' and 'payload'.
|
|
| Returns |
mixed - element value, or false if the requested element does not exist. |
| Example |
// get the current session id
$session_id = Session::key('session_id');
|


--- title: Market Analysis author: '' date: '2021-01-23' ---
Data: All data gathered from https://www.coindesk.com/price/ (updated: 08/04/2021). Variables of interest are Currency, Date, Closing Price, the 24h High, and the 24h Low.
In current conditions, Bitcoin is so comparatively expensive that it is hard to gauge the other currencies. As a result, it won’t be included in the following price chart.
Visually, we notice that after a slump over the last two years, cryptocurrency is again regaining popularity very quickly. The questions are:
Most human activities have some sort of seasonality. However, it can be inconsistent when it comes to the stock market.
Regardless of which currency we choose, it is hard to parse out a consistent seasonal pattern. In some years, it looks like price picks up in the middle of the year, while in others the growth is seen at the tails. Since trading is highly responsive to the social climate of the time, it makes sense that season alone isn’t enough to predict pricing. Consecutive closing values appear not to follow one another closely, suggesting an autoregression model for prediction would likely be appropriate, as it often is for stocks.
The most simplistic models for stocks are 3 easy, nonseasonal forecasting methods, and they are often used as benchmarks for future models. The three forecasting methods are:
Average method, literally the mean of all selected historic data, expressed as AM = \(\frac{\Sigma^{T}_{t=1} x_{t}}{T}\) where \(x_t\) is the observation at a given time t and T is the total number of observations
Naïve method, also know as the value for the most recent observation, expressed as NM = \(x_{T}\) where \(x_T\) is the final observation &
Drift method, dependent on the average slope between the first and final observations, expressed as DM = \(x_T + h(\frac{x_T-x_1}{T-1})\) where \(x_T\) is the final observation, \(x_1\) is the first observation, T is the total number of observations, and h is the number of days included in the forecast.
This is what they look like when applied to Etherium.
We can measure to see how well these models performed in comparison against the actual value and against each other using the MAPE, or mean absolute percentage error. We want the lowest error values, so the “drift” forecast seems to be the best. However, these are not good estimates, and we expect to outperform them even with simple time series models.
| Average Method | MAPE |
|---|---|
| Training set | 17.88 |
| Test set | 29.67 |
| Naïve Method | |
| Training set | 4.70 |
| Test set | 29.67 |
| Drift Method | |
| Training set | 4.59 |
| Test set | 6.01 |
We can tackle questions (1) & (3) from above (What kind of growth is this? What is the slope?) fairly quickly by fitting a few models and finding the best \(R^2\) value. We ask this question because the rate of change for the price variable can help us determine which predictive models would be most effective.
The outcomes are as follows:
| Model | \(R^2\) (Adj.) |
|---|---|
| Linear | 0.005 |
| Exponential | 0.071 |
| Quadratic | 0.004 |
| Polynomial | 0.055 |
There are many more regression-type models we could apply, but these are the most common and would give better insight into the type of growth. As a good practice, we would usually check the outlier and multicollinearity assumptions on our best model, but we already know that currency prices do not have a normal distribution, the variance has odd patterning to it, the mean of the residuals is not zero, and price variables are correlated.
Ultimately, attributing cryptocurrency price to exponential growth only explains about 7% of the variance. We didn’t expect time alone to be enough to unlock the secrets of the stock market, so it is hardly surprising that we get poor results when conditioning solely on time. Note: the \(R^2\) values would improve if we only consider data from 2020 forward, since financial data at any particular time is most related to the time period immediately following. With this observation, we can move into the first of our time series models.
The first thing we can do to answer question (2) (How long is the market trending up/down?) is create a simple moving average (MA) or rolling mean for each stock. This is done to make identifying trends easier and to smooth noise from the data set. As we increase the number of days we average over, the MA’s responsiveness to price variation decreases. The formula for the MA is as follows: \[\frac{1}{q}\Sigma^{q-1}_{i=0} x_{t-1}\] where q is the number of days considered, from a series \(x_t\) during time period t.
If we choose a smaller window, the MA can adapt faster to changes. Let’s try 7, 15, and 30 day versions of the MA.
Here is an example of what this would look like for Bitcoin in 2021:
Using this data, we could build a very simple buy/sell indicator. We would “buy” when MA7 crosses over MA30 upwards and sell when MA7 crosses MA30 downwards. We could build this trigger using Python, and it would work well, for a while.
We create a variable for the difference between MA7 and MA30, and watch for a sign change. This model is considered very “unintelligent”, as it cannot learn and adapt from historic data outside the set time period. Sometimes that focus might be useful, but not in all circumstances.
Continuing the Bitcoin example: With this this buy/sell model, let’s see what happened if we followed the model’s buy/sell predictions. Say we first purchase Bitcoin on 1/02, sold on 01/19, purchased again on 02/07, sold on 02/24, purchased on 03/07, sold on 03/20, purchased on 03/29, and finally sold again on 04/05, all in accordance with the trigger we designed.
To be more realistic, let’s assume we bought 3.11% of a Bitcoin for $1,000 on 01/02 of this year.
| Date | Buy/Sell | Cost | Timing |
|---|---|---|---|
| 01/02 | Buy | -1,000.00 | Given |
| 01/19 | Sell | 1,137.56 | Ideal |
| 02/07 | Buy | -1,137.56 | Ideal |
| 02/24 | Sell | 2,632.25 | Ideal |
| 03/07 | Buy | -2,632.25 | Ideal |
| 03/20 | Sell | 2,953.40 | Ideal |
| 03/29 | Buy | -2,953.40 | 4 Days Early |
| 04/05 | Sell | 2,971.66 | Ideal |
| Total Earned | 1,971.65 |
Overall, this model made 1,971.65 dollars or 197% in profit. For reference, if we purchased the same amount of Bitcoin on that first day and left it in until the last day, I would have withdrawn 1,805.05 dollars. This is about 805 dollars of profit, which shows that our model is more profitable than inaction.
This totals 8 transactions (4 each of Buy/Sell). Of these 8 transactions, the model would have made the correct choice (as compared to the actual market rise/fall) 7/8 (87.5%) times.
In Sum: If this (a most simplistic forecasting model) can make money, imagine what we could do with a more complex model (or even better, multiple aggregated complex models). Given current market conditions, this MA model outperforms even Simple Exponential Smoothing (SES) or Autoregressive Integrated Moving Average (ARIMA) models. Overall, it looks like we are expecting an upward trend for cryptocurrency for a little while longer. Good Luck!
Warning! The MA made money because it did not have to account for a sign change in the slope. If the market turned and Bitcoin prices declined while the algorithm was running, the MA model would have lost money. In order to be a safe way to make money, there has to be a built-in trigger. If the slope has changed sign for three consecutive measurements, we would instead buy when the difference was negative and sell when the difference turned positive.
So, let’s say that we decide we want to invest in cryprocurrency but don’t have the funding. What can we do? Learn more about how you can acquire cryptocurrency without purchasing it here or how quantum computers can help miners work more efficiently here.
Image from schwab.com


This page contains information on {{ records['object'] }} that was manually entered, as well as 3rd party supplemental information that can aide an analyst in research. 3rd party sources can include VirusTotal, PassiveTotal, Whois, geolocational data,
and more. You can enable these 3rd party integrations in the settings menu.
On this page, you can also edit the entry to add new fields or change any attributes previously entered. You can also delete the entry if it's no longer needed.
| Attribute | Value |
|---|---|
| Object Type | {{ records['type'] }} |
| Campaign | - |
| Campaign | {{ records['campaign'] }} |
| Confidence | {{ records['confidence'] }} |
| Confidence | {{ records['confidence'] }} |
| Confidence | {{ records['confidence'] }} |
| Diamond Model | {{ records['diamondmodel'] }} |
| First Seen | - |
| First Seen | {{ records['firstseen'] }} |
| Last Seen | - |
| Last Seen | {{ records['lastseen'] }} |
| Comments | - |
| Comments | {{ records['comments'] }} |
| Tags | - |
| Tags | {% for tag in records['tags'].split(",") %} {% endfor %} |
| {{ key }} | {{ records[key] }} |
VirusTotal Information
More information can be found at VirusTotal
| Attribute | Value |
|---|---|
| Scan Date | {{ jsonvt['scan_date'] }} |
| Positives/Total | {{ jsonvt['positives'] }}/{{ jsonvt['total'] }} |
| Scanner | Result | Update | {% for result in jsonvt['scans'] %} {% if jsonvt['scans'][result]['result'] == None %} {% else %}
|---|---|---|
| {{ result }} | {{ jsonvt['scans'][result]['result'] }} | {{ jsonvt['scans'][result]['update'] }} |
Relationships
This table shows the indicators related to {{ records['object'] }}
| Attribute | Value | {% for rel in temprel %}
|---|---|
| {{ rel }} | {{ temprel[rel] }} |


This file will contain the last 'nn' lines of files /var/adm/messages and /var/adm/messages.0 on the target host.


[Join us on #steemSTEM]
The steemSTEM project in a nutshell
At the beginning of this month, 20 days ago, we have decided to relaunch the steemSTEM initiative. To sum up a long story, the steemSTEM project is a community-supported project aiming to increase the quality and the visibility of STEM (STEM is the acronym for Science, Technology, Engineering and Mathematics) articles on Steemit.
The 20-days status report
As a first step towards this aim, the steemSTEM crew has started to promote quality STEM content posted on Steemit with upvotes, comments and resteems via the @steemstem account. Moreover, an extra bonus reward in Steem Power has been sometimes given directly to the creators of well written, informative and correctly referenced STEM articles.
Do not therefore hesitate to follow the @steemstem account for being kept up-to-date of good STEM Steemit articles! We try to guarantee at least 5 good posts a week!
We show below the list of posts that we have resteemed and granted a 5SP reward to their author during the last 20 days. We have hence redistributed a total of 155 SP to the community (and we recall that all steemSTEM members are working freely for the beauty of the project)!
The list also illustrates the diversity of topics that have attracted our attention. It is a real pleasure to encourage following those authors who create great STEM content on Steemit.
Finally, as a Christmas present, we have decided to increase the reward to 10 SP from now on.
The numbers and the list of steemSTEM-acknowledged authors
|Author|Post
|——|—|
|………………………..| …………………………………………………………………………………………….|
| @funnyman | blue-brain|
| @dragosroua | til-that-antimatter-can-and-has-been-measured|
| @krnel |milestone-antimatter-test-is-a-success|
| @papa-pepper |something-i-never-knew-about-dolphins-until-now|
| @doitvoluntarily |broccoli-has-a-lot-to-offer|
| @sykochica |til-archaea-extreme-extremophiles-and-more|
| @mrwang |til-why-my-pee-smells-skunky|
| @krnel |bigger-brains-bigger-burden-or-bigger-benefit-new-study-has-answers|
| @solarguy |cool-new-device-turns-body-movement-into-an-alternative-energy-source|
| @surfermarly |til-how-smart-today-s-ai-artificial-intelligence-is-the-art-of-rebuilding-human-conscious|
| @acondor |go-to-the-ants-an-inquiry-into-an-amazing-world|
| @eugenia |til-why-do-we-have-chills-and-goosebumps-when-listening-to-music-detailed-explanation|
| @natord |the-brightest-stars-in-the-night-sky|
| @darthnava |top-5-galaxies-that-look-awesome|
| @rmach |useless-information-24-as-if-they-weren-t-weird-enough-til-platypuses-are-also-venomous|
| @remlaps |how-do-single-celled-organisms-act-in-groups|
| @valth |some-harmless-animal-species-imitate-the-warning-signs-of-harmful-species-to-scare-predators-amazing-animal-adaptations-7|
| @beowulfoflegend |tibetans-the-tibetan-mastiff-and-how-sex-with-strangers-made-both|
| @krnel |the-future-of-water-on-earth-some-countries-are-drying-up|
| @alcibiades |til-why-haven-t-we-created-artificial-gravity|
| @sykochica |elon-musk-and-google-open-their-artificial-intelligence-platforms-to-researchers|
| @remlaps |ten-rules-for-development-of-biological-databases|
| @valth |mushrooms-can-have-4-000-different-sexes|
| @doitvoluntarily |uncovering-the-underlying-algorithm-of-intelligence|
| @infovore |like-humans-a-look-into-how-animals-learn|
| @natord |hela-immortality-for-the-benefit-of-others|
| @valth |why-many-plants-decide-to-reproduce-asexually|
| @atiliog |english-pareidolias-have-you-seen-faces-or-figures-where-there-are-none|
| @liliana.duarte |introduced-species-that-became-invasive|
| @builderofcastles |a-solar-powered-electrical-plant-that-could-be-built-right-now-from-parts-on-alibaba|
| @rmach |useless-information-15-winning-nobel-prizes-working-as-volunteers-yes-it-happened|
This page is synchronized from the post: The steemSTEM status report - December 1-20


composite(1) composite(1) NAME composite - overlaps one image over another. SYNOPSIS composite [ options ... ] change-file base-file [ mask-file ] output- image OVERVIEW The composite program is a member of the ImageMagick(1) suite of tools. Use it to overlap one image over another. For more information about the composite command, point your browser to file:///usr/share/doc/imagemagick/www/composite.html or http://www.imagemagick.org/script/composite.php. DESCRIPTION Image Settings: -affine matrix affine transform matrix -authenticate value decrypt image with this password -blue-primary point chromaticity blue primary point -channel type apply option to select image channels -colorspace type alternate image colorspace -comment string annotate image with comment -compose operator composite operator -compress type type of pixel compression when writing the image -decipher filename convert cipher pixels to plain pixels -define format:option define one or more image format options -depth value image depth -density geometry horizontal and vertical density of the image -display server get image or font from this X server -dispose method layer disposal method -dither method apply error diffusion to image -encipher filename convert plain pixels to cipher pixels -encoding type text encoding type -endian type endianness (MSB or LSB) of the image -filter type use this filter when resizing an image -font name render text with this font -format "string" output formatted image characteristics -gravity type which direction to gravitate towards -green-primary point chromaticity green primary point -interlace type type of image interlacing scheme -interpolate method pixel color interpolation method -label string assign a label to an image -limit type value pixel cache resource limit -matte store matte channel if the image has one -monitor monitor progress -page geometry size and location of an image canvas (setting) -pointsize value font point size -quality value JPEG/MIFF/PNG compression level -quiet suppress all warning messages -red-primary point chromaticity red primary point -regard-warnings pay attention to warning messages -sampling-factor geometry horizontal and vertical sampling factor -scene value image scene number -seed value seed a new sequence of pseudo-random numbers -size geometry width and height of image -support factor resize support: > 1.0 is blurry, < 1.0 is sharp -synchronize synchronize image to storage device -taint declare the image as modified -transparent-color color transparent color -treedepth value color tree depth -tile repeat composite operation across and down image -units type the units of image resolution -verbose print detailed information about the image -virtual-pixel method virtual pixel access method -white-point point chromaticity white point Image Operators: -blend geometry blend images -colors value preferred number of colors in the image -displace geometry shift image pixels defined by a displacement map -dissolve value dissolve the two images a given percent -extract geometry extract area from image -geometry geometry location of the composite image -identify identify the format and characteristics of the image -monochrome transform image to black and white -negate replace each pixel with its complementary color -profile filename add ICM or IPTC information profile to image -quantize colorspace reduce colors in this colorspace -repage geometry size and location of an image canvas (operator) -rotate degrees apply Paeth rotation to the image -resize geometry resize the image -sharpen geometry sharpen the image -stegano offset hide watermark within an image -stereo combine two image to create a stereo anaglyph -strip strip image of all profiles and comments -thumbnail geometry create a thumbnail of the image -transform affine transform image -type type image type -unsharp geometry sharpen the image -watermark geometry percent brightness and saturation of a watermark -write filename write images to this file Miscellaneous Options: -debug events display copious debugging information -help print program options -log format format of debugging information -list type print a list of supported option arguments -version print version information By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output. SEE ALSO ImageMagick(1) COPYRIGHT Copyright (C) 1999-2012 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/share/doc/imagemag‐ ick/www/license.html or http://www.imagemagick.org/script/license.php ImageMagick Date: 2009/01/10 01:00:00 composite(1)


Using work experience for career planning
Whatever the duration of your work experience, you will have gained some learning, knowledge and skills. It is important to capture the skills and strengths that you have gained or improved, as evidence of your employability.
Think about:
- What skills have you improved? What are the situations which have enabled you to make this progress? Would you like to develop them further? What are your action plans for doing so?
- What skills gap do you still have and would like to improve? Are they ones that you would personally like to develop or are required for the work that you would like to pursue?
- Take note of all your achievements and challenges that you have overcome.
- How could the experience have been different, more appropriate for what I want?
- Has the experience influenced my career path or plan? What should I work on next time?
If you have not recorded them, take the time now to capture the experience – perhaps consider using MyPortfolio. The records will serve as the database of evidence when asked to prove your suitability for a role that you are applying to or being interviewed for.
Update your CV & LinkedIn
Your work experience has earned a new CV entry that will enhance your employability – time to update your CV & LinkedIn profile!


Bootstrap 3
xs for phones - screens less than 768px wide ===> 767px sm for tablets - screens equal to or greater than 768px wide md for small laptops - screens equal to or greater than 992px wide lg for laptops and desktops - screens equal to or greater than 1200px wideBootstrap 4
col-sm for larger mobile phones (devices with resolutions ≥ 576px); col-md for tablets (≥768px); col-lg for laptops (≥992px); col-xl for desktops (≥1200px)


When we started weSPA in 2010, we wanted to build more than a beautiful, shared spa. We wanted to build a community. A place you join as an individual, 'me', but where you become part of a greater 'we'. A place where we’re redefining wellness measured by personal fulfillment, not just the bottom line. Community is our catalyst.
We come together through initiatives that make a difference. From hiring refugees to working with veterans and advancing sustainability, we put people and the planet first.
Explore Our NewsroomWe do what we love and are connected to something greater than ourselves.
We do what we love and are connected to something greater than ourselves.
We do what we love and are connected to something greater than ourselves.
We do what we love and are connected to something greater than ourselves.
We do what we love and are connected to something greater than ourselves.
We do what we love and are connected to something greater than ourselves.
We come together through initiatives that make a difference. From hiring refugees to working with veterans and advancing sustainability, we put people and the planet first.
Explore Our Newsroom


|
| static Vector2 | GetCanvasCoord (GameObject gameObject) |
| | find the "global" position of game object in terms of its canvas More...
|
| |
| static Vector2 | GetCenterCanvasCoord (GameObject gameObject) |
| | find the position of UI element's center with respect to its canvas More...
|
| |
| static Vector2 | GetTopCanvasCoord (GameObject gameObject) |
| | Find the coordinates of object's top right corner with respect to its most immediate canvas. More...
|
| |
| static Canvas | GetMyCanvas (GameObject gameObject) |
| | return the canvas the input game object is currently under More...
|
| |
| static Vector2 | GetMousePosInMyCanvas (GameObject gameObject) |
| | find mouse position under the gameobject's canvas More...
|
| |
◆ GetCanvasCoord()
| static Vector2 JohnnyUITools.GetCanvasCoord |
( |
GameObject |
gameObject | ) |
|
|
static |
find the "global" position of game object in terms of its canvas
- Parameters
-
| gameObject | game object whose position to find |
- Returns
- Vector2: difference vector from canvas lower left corner to the input object
◆ GetCenterCanvasCoord()
| static Vector2 JohnnyUITools.GetCenterCanvasCoord |
( |
GameObject |
gameObject | ) |
|
|
static |
find the position of UI element's center with respect to its canvas
- Parameters
-
| gameObject | game object in question |
- Returns
- Vector2: the center position under canvas
◆ GetMousePosInMyCanvas()
| static Vector2 JohnnyUITools.GetMousePosInMyCanvas |
( |
GameObject |
gameObject | ) |
|
|
static |
find mouse position under the gameobject's canvas
- Parameters
-
- Returns
- Vector2: mouse position
◆ GetMyCanvas()
| static Canvas JohnnyUITools.GetMyCanvas |
( |
GameObject |
gameObject | ) |
|
|
static |
return the canvas the input game object is currently under
- Parameters
-
| gameObject | game object to start the search |
- Returns
- Canvas: the canvas that contains input object
◆ GetTopCanvasCoord()
| static Vector2 JohnnyUITools.GetTopCanvasCoord |
( |
GameObject |
gameObject | ) |
|
|
static |
Find the coordinates of object's top right corner with respect to its most immediate canvas.
- Parameters
-
| gameObject | GameObject: the game object in question, must have RectTransform attached |
- Returns
- Vector2: relative coordinate of top right corner of object
The documentation for this class was generated from the following file:
- D:/CS Projects/CS130/ProjectRepo/13/client/CS130_Team13/Assets/Scripts/Drag n Drop/Utils/JohnnyUITools.cs


| ↑ Up |
Computer graphics interface.
x
seconds. Note that x
may
be a floating point number und thus parts of a second are possible.
w
and
height h
pixels.
c: Canvas
c
by RGB color.
Note: r,g,b
∈[0,1].
c
to the screen.
This operation is somewhat time consuming and thus should
not be done before a larger bunch of pixels is drawn.
w
and height h
pixels at pixel (x,y)
.
r,g,b,a
∈[0,1].
h
∈[0,2π] and s,l
∈[0,1].
(x,y)
.
This operation uses the device independent coordinate system
instead of pixel coordinates.
r
at position
(x,y)
. This operation uses the device independent
coordinate system instead of pixel coordinates.
r
at position
(x,y)
. This operation uses the device independent
coordinate system instead of pixel coordinates.
r
at position
(x,y)
. This operation uses the device independent
coordinate system instead of pixel coordinates.
Graphing data and functions.
A basic example:
use plotlib: system use math: pi, sin s = system() s.plot(|x| sin(pi*x)) s.idle()
w*h
pixels.
s: System
"q"
(quit) is pressed.
f
.
f
as [x,y]=f(t)
using n
points for t∈[t0,t1]
.
F(x,y)==0
.
Uses the bisection method with a maximum of N
iterations,
applied to n
subintervals. A larger value of n
leads to better results. For high quality plots, set
the fibration density to density=2
or larger.
z=F(x,y)
by color. The color change frequency
is given by freq
. Alpha blending is adjusted by
alpha
. The integer number
n
is the raster size in pixels.
f
as w=f(x+y*1i)
where the color (HSL) is H=arg(w)
and
L
depends on abs(w)
. The integer number
n
is the raster size in pixels.
[x1,y1]=p1
to [x2,y2]=p2
.
[x1,y1]=p1
to [x2,y2]=p2
.
[x,y]=a[k]
.
The type
is "disc"
, "circle"
or "box"
.
callback(tstep)
until "q"
(quit)
is pressed. The argument tstep
is a stroboscope that
you can scale to obtain your preferred time parameter.
Note that if the FPS is too slow, you might want to compute
an animated gif instead. That is currently not supported, but planned for
the future.
s.plot(f)
and s.vplot(f)
the color is changed automatically to the next one in the palette.
This is turned off by s.lock_color()
in order
to achieve unimpaired manual control over the color state.
Note that s.animate(callback)
automatically applies s.lock_color()
.
n≥0
from
the color palette. If n
is out of bounds,
n%size
is used.
[r,g,b]
colors.
A random color is picked this way:
rand = rng(s.palette) s.rgb(*rand())
netpbm
is
required for PNG and JPEG.


{% extends "config/base.html" %} {% block config_page_content %}
Here you will find configuration options for the network adapters that {{config.product}} is set up to configure. To add one not listed here, simply add to your local configuration file the following lines:
[interface.device name]
ui_label=a short name
type=wired or wireless
enabled=true
; there are two modes for wireless adapters: Client and AP. In client mode, the network is
; connected to via the /etc/network/interfacces mechanism. Otherwise, hostapd is used.
mode=ap or client
dhcp=true or false
ip=ip address
subnet_mask=subnet mask
gateway=gateway, or nothing
; wireless options
security=wpa or none
psk=allonewordlowercase
ssid=cheesecake
{% endblock %}


Wiki Commodity Prices (Code: COM)
Price data for commodities including agricultural products, metals, and energy, in different regions of the world from a variety of sources. Sources include: USDA, COMEX, MARKIT, FRBNY and more.


This package contains default builder nodes for NanoContainer Groovy script assembly. Each class represents one type of node that will be handled.
The following diagram shows the typical relations in the builder nodes.
In other words:
- GroovyNodeBuilder contains a Map of CustomGroovyNodes that are keyed by CustomGroovyNode.getNodeName(). It uses this map to locate handlers whenever a groovy script node is encountered.
- For each GroovyScriptNode encountered, an attempt to match on a handler is performed. If one is found, then it calls CustomGroovyNode.createNewNode().
- Most (if not all) of the groovy nodes derive from the AbstractCustomBuilderNode that provides services such as attribute placeholding, and default implementation of getNodeName().


Malayalam actor Sreenivasan hospitalised
The veteran actor’s most recent film was ‘Love Action Drama’ that released earlier this year
by Special CorrespondentSenior Malayalam actor Sreenivasan was admitted at a private hospital here on Sunday evening after he experienced breathing difficulty at the Cochin International Airport at Nedumbassery here.
Hospital sources said that his condition was stable and he remains under observation at the intensive care unit. The actor, who was on his way to Chennai, had completed check-in procedures when he complained of breathing difficulty and was taken to a hospital near the airport.
He was later shifted to Aster Medcity hospital here for detailed check-up and investigations.


TUTORIAL: A Simple jQuery Image Fade In/Fade Out With A Delay
byUpdate: March 3rd, 2012: the code below is simple and will do the job. But if you’re looking for something more dynamic, please see this code’s update. It still uses jQuery, but uses a for() loop to make things dynamic. A detailed screencast tutorial on how to create a JavaScript for() loop is included as well!
Clients looooooove images that fade in and fade out on home pages. Flash was once the main tool of choice for this but jQuery now lets us do it with less code and guarantees that things will show up on multiple devices, iPhones included.
I had to do this recently for the project I mentioned in my previous post. You can view the end-result of this over at the Almay site.
Here’s how I did it:
<!DOCTYPE html>

<meta charset="UTF-8" />
<title>A Simple jQuery Fade In/Fade Out</title>

Let’s review the specific parts of the code that make the fade in/fade out work..
We create unique CSS IDs for each of our two images. They need to be hidden when the page first loads and also need to be stacked one on top of the other, so we respectively use display:none and position:absolute. We also need to create a containing for our images, so we create a unique CSS ID called “pics”:
#picOne, #picTwo {
display: none;
position:absolute;
}
#pics {
width:100px;
height:100px;
}
We have to embed the jQuery library into our web page…in this case, I embedded the one hosted over at jQuery.com:
As soon as the page is loaded, the jQuery .fadeIn() function fades in our first image in 1500 milliseconds (or, 1.5 seconds). The .delay() function acts as a counter and waits 3500 milliseconds (or, 3.5 seconds), then the .fadeOut() function fades it out in 1500 milliseconds (or, 1.5 seconds).
$('#picOne').fadeIn(1500).delay(3500).fadeOut(1500);
At the same time that the first image is doing its thing on page load, the .delay() function makes the second image wait 5 seconds before the .fadeIn()function fades it in in 1.5 seconds.
$('#picTwo').delay(5000).fadeIn(1500);
We place our two images in our “pics” tag. The images and tag are of equal width and height. And since the images were styled with position: absolute, they will be stacked one on top of the other. Whichever one is listed first is the one on top:

That should do it…but let me make two points:
I used transparent GIFs for this because transparent PNGs looked weird when they faded in and out. Of course, you can use a JPEG if your images don’t need to be transparent.
Properly syncing the various fades took a little planning. Note the combined time for .fadeIn() and .delay() for the first image is five seconds, equal to the timing on the .delay() for the second image. Also note that the first image takes 1.5 seconds to fade out while the second one takes the same amount of time to fade in. This keeps everything neat.
My HTML5 video posts are coming soon but another short jQuery-related post is coming next.


The project was born in Milan by fellows, friends and brothers, who until then had travelled on parallel paths that were never intended to cross. Gilberto from law school, Gianluca from medicine, and Federico from design had a common passion for accessories
that share a rare mix of qualities: unpretentious design, rich character and strong identity, so they decided to escape consumer labels and create something from scratch.
By merging Gilberto’ s compulsion for challenges, Gianluca’ s care for technique, and Federico’ s creative foundations, Pottwal retraces the secular groove made famous by Italian craftsmen. This legacy has been injected into a contemporary container with materials from both past and present, strong and overcast colors, with simplified but lively forms that do not succumb to the daily drama of forced anonymity creating sophisticated contrast and combinations to be experienced by all five senses.
By merging Gilberto’ s compulsion for challenges, Gianluca’ s care for technique, and Federico’ s creative foundations, Pottwal retraces the secular groove made famous by Italian craftsmen. This legacy has been injected into a contemporary container with materials from both past and present, strong and overcast colors, with simplified but lively forms that do not succumb to the daily drama of forced anonymity creating sophisticated contrast and combinations to be experienced by all five senses.


@(activity: List[discussion.model.WitnessActivity])(implicit request: RequestHeader)
No contributions found. Want to contribute to GuardianWitness? Find out how and take part.


Email: {{_userService.user.email}}
About me: {{_userService.user.aboutMe}}
Member since: {{_userService.user.memberSince| date:'MMM dd, y'}}
Phone: {{_userService.user.phoneNo}}
Friends
Reports Contributed
Expenses Created
This page is under construction


My full name is Nguyễn Văn Tân and I'm come from Ha Noi Viet Nam. Now I'm a student of Hanoi Vocational College Of Technology.With love with mobile development. I want to create applications that can help people in their lives.
With the desire to become a talented Mobile Developer, I always want to learn from colleagues, friends, everyone and share the knowledge I know to them through my Youtube channel, my blog on Medium or open source projects on Github.
More
IoT application
This application makes some devices smart and easy to control.
We built it with React Native.
A lightweight Android bottom bar library
I created this library with the desire to create a bottombar that can help my app and other developers
become
more beautiful and easy to use.
Moreover, I also integrate the Navigation Component in the library so that anyone who wants can use my
library
with it.
An open source project I'm building to be able to detect color directly on the user's camera.
Been Together - Been Love Memory" app is essential for couples or people in love to tracker anniversary day!
Application includes:
- Use the built-in sensors to count your steps.
- Calculate how many calories you consumed, how much time, track distance without using GPS.
-Energy saving.
-Save your workout history.
This is my Open Source Project. This is a similar AssistiveTouch simulation Android project on iphone. You can see the source code on Github.
Would you like to work with me? Awesome!
Let's build together!


WebRTC DJ
Mix and Stream MP3/Ogg Audio Files Directly via P2P Connections
Users connected:
0
Nobody is streaming.


Naive pointcoud visualization in Blender
There is a point cloud vidualizer for Blender - uhlik/bpy. You can follow along with this short youtube tutorial.
However, I received errors when tring to render the pointcloud in Blender-2.91. Apparently, only paid version from blendermarket is supported.
Roundabout
Dirty way to render a pointcloud - use a Python script to place spheres. Simply run a script (Shift-F11
), then the spheres can be rendered as usual.
Warning: it is slow. Let me know what goes wrong here and how to improve it.
Code
import bpy
import bmesh
import mathutils
import numpy as np
import sys
mymesh = bpy.data.meshes.new('PointCloud')
myobj = bpy.data.objects.new('PointCloud', mymesh)
bpy.context.collection.objects.link(myobj)
bpy.context.view_layer.objects.active = myobj
filepath = "/folder/bunny_pointcloud.txt" # path to your data file.
scale = 25 # scaling the point cloud
with open(filepath, "r") as f:
data = np.loadtxt(f)
print(data.shape)
bm = bmesh.new()
# this cycle will take time, progress is reported in the console
for i in range(data.shape[0]):
point = data[i,:3]
mat = mathutils.Matrix.Translation(point*scale) # setting the translation matrix
# creating a sphere in the origin, moving it by translation matrix
mesh = bmesh.ops.create_uvsphere(bm, u_segments=12, v_segments=12,
diameter=0.04, matrix=mat )
# progress console output
msg = f"point {i} of {data.shape[0]-1}"
sys.stdout.write(msg + chr(8) * len(msg))
sys.stdout.flush()
bm.to_mesh(mymesh)
bm.free()
sys.stdout.write("DONE" + " "*len(msg)+"\n")
sys.stdout.flush()
Input
Input is similar to the usual ply
or obj
format, except that we only leave vertices locations. For example:
-0.0369122 0.127512 0.00276757 0.850855 0.5
-0.0457707 0.130327 0.00306785 0.900159 0.5
-0.0708847 0.149834 0.0388672 0.398443 0.5
-0.00331557 0.130403 0.0212208 0.85268 0.5
...


Make a purchase
Send TKN
Reset passcode
Send TKN
Sender address
Recipient address
Amount
Send
Passcode
Send
ETH address
Old passcode
New passcode
Submit
Make a purchase
Address
Product ID
Price
Purchase Item
Passcode
Buy
Back


THE LIGHTHORSEMEN A Film Review by Manavendra K. Thakur Copyright 1988 by Manavendra K. Thakur and The Tech Reproduced with permission.
1987 (*)115 mins. Australia English Rated PG Dolby Stereo Color 35mm/2.35
Cast: Peter Phelps, Anthony Andrews, Sigrid Thornton, John Walton, Tim McKenzie, Jon Blake, Bill Kerr, Tony Bonner, Shane Briant, Ralph Cotterill, Grant Piro, Tony Bonner, Patrick Frost, Adrian Wright, Anthony Hawkins, Gerard Kennedy, Graham Dow, James Wright, Scott Bradley.
Credits: Directed by Simon Wincer. Produced by Ian Jones and Simon Wincer. Executive Producer: Tony Ginnane. Screenplay: Ian Jones. Music Composed and Arranged by Mario Millo. Editor: Adrian Carr. Production Designer: Bernard Hides. Director of Photography: Dean Semler, A.C.S. Sound Editors: Peter Burgess, Craig Carter, and Livia Ruzic. Stunt Coordinator: Grant Page. Masters of Horse: Gerald Egan, Bill Willoughby, Jim Willoughby, and Peter D. Smith.
Production Company: Picture Show / RKO Pictures-FGH Distributor (North America): Cinecom Entertainment Group 1250 Broadway New York, NY 10001<PHONE_NUMBER>
The Australian film renaissance began about a decade and half ago as directors like Peter Weir, Gillian Armstrong, George Miller, Bruce Beresford, and others began to create outstanding and innovative films. Their creative vitality not only opened doors for newer filmmakers but assured significant worldwide distribution of a distinctly Australian cinema. But it is increasingly becoming apparent that not only are the good films crossing the Pacific but the drek as well. THE LIGHTHORSEMEN belongs squarely in the latter category. It practically deifies an Australian military victory in World War I and throws in a ludicrously sappy romance for good measure. Worse yet, it tries to be all things to different people by including a subplot about a young soldier who finds it difficult to shoot a fellow human being.
The Australian Lighthorsemen were a group of mounted soldiers who would ride their horses near their target, dismount, and proceed to attack on foot like infantrymen. In 1917, they won a crucial battle that broke the stalemate in the British campaign in Palestine. 800 Lighthorsemen trekked through the desert and overcame a force of 4000 defenders to overtake the Turkish-German stronghold of Beersheeba. By capturing this strategically vital and water-rich town, the Lighthorsemen succeeded where the British had failed.
It is within this historical context that the film's events unfold. The film focuses on four Lighthorsemen who take part in the attack, Frank (Gary Sweet), Tas (John Walton), Scotty (Jon Blake), and Chiller (Tim McKenzie). They have been together since the battle of Gallipoli, but their camaraderie is shaken early in the film when the wounded Frank is replaced by a young recruit from Melbourne named Dave (Peter Phelps). [See accompanying article for an interview with Peter Phelps.] The three men initially resent Dave's attempts to fill Frank's shoes, and their animosity is heighted when Dave freezes during an enemy attack. While the three men deal with the loss of their buddy, Dave falls in love with a young nurse named Anne (Sigrid Thornton, who played Jessica in THE MANY FROM SNOWY RIVER and its sequel), who had taken care of Dave when he was wounded at one point. Dave eventually transfers to the medical corps, which conveniently puts him close to Anne. The film concludes with a full-scale recreation of the final charge on Beersheeba.
This premise allows the film to incorporate at least two factors that characterize many of the Australian films that have been exported to the US. The first is the same rugged stoicism and basic masculinity of Australian men who make their home in the untamed frontier -- the Marlboro Man come to life -- that is seen in Australian films like MAD MAX 2 [THE ROAD WARRIOR] and "CROCODILE" DUNDEE. The second is the superb technical command of many Australian filmmakers. The Aussies are the ones who have consistently kept alive the art of widescreen shot composition and stereophonic sound in the face of the creeping influence of video. Australian films like GALLIPOLI, DOGS IN SPACE, and THE COCA-COLA KID have shown a remarkable dedication to the masterful use of Cinemascope and Dolby Stereo.
These two factors come into play most prominently in the last thirty minutes of THE LIGHTHORSEMEN, when the soldiers make their assault on Beersheeba. The film has captured the sheer spectacle of the charge so well that it rivals the chase scenes in MAD MAX 2. Cinematographer Dean Semler used a recently developed camera called a "hot head" -- a remote-controlled camera fitted on the end of a mobile crane -- to film the men and horses in closeups that put the viewer in the thick of the battle. The widescreen closeups of horses' hooves are tightly edited with shots counterposing the two forces, and the result is quite thrilling to watch. The sound effects, stereo manipulation, and music by Mario Millo combine to make this the only memorable scene in the film.
The rest of the film can easily be thrown away because it serves little purpose other than expanding the film to feature length and giving viewers hooks to hang their emotions on.  The film can't have Dave be seen as a wimp, so Dave proves his manhood and wins over his three partners by rescuing some horses during an enemy airplane attack. When Dave awakens in a hospital after being wounded, the first person he sees is Anne. The look in their eyes and the love theme on the soundtrack tell the viewer instantly that a solid and everlasting romance has begun -- just like in the movies. Neither bravery nor love is intrinsically cliched, but the random way the filmmakers throw scenes and plot elements onto the screen reduces the emotions to extraordinarily hollow shells reeking of gratuitous idiocy. It is downright insulting to include nice moonlit shots of Dave and Anne walking hand-in-hand by the seashore in a film that is trying to convey the sweat and grit of 800 soldiers who won despite impossible odds.
And there's no mistaking that portraying the glory of the Australian victory is supposed to be the main thrust of scriptwriter Ian Jones' efforts. According to the publicity materials, Jones interviewed many veterans of the attack and came to view the film as a labor of love. But whatever modicum of researched reality is present is constantly destroyed by the cheap emotions offered by director Simon Wincer and Jones. For instance, the only character in the film who doesn't have an identifying label pinned on the forehead is Major Meinertzhagen (Anthony Andrews). He's a slippery and enigmatic intelligence officer who devises a clever ruse to confuse the enemy about the Lighthorsemen's actual target. He purposely wanders close to enemy territory and, when chased by enemy troops, leaves behind forged documents indicating the Australians will attack a target several miles away from Beersheeba. This does in fact create suspense, and it seems as though there's yet some hope left for the film.
But then the film degenerates again into stupidity: it turns out that Meinertzhagen also included a love letter supposedly from his beau back home but written in reality by Anne earlier in the film. When the Turkish officer reads the letter, he is struck by how beautiful and loving the letter is. Such a tender letter can come only from a most pure and honest heart, he decides -- and on the basis of that flimsy evidence concludes that the documents are genuine and orders massive troop movements away from Beersheeba to the false target. This is all too typical of how ludicrously sentimentalized the whole film is. Perhaps Meinertzhagen did in fact conduct the operation this way, but the way Wincer and Jones portray it leaves one gasping in outraged disbelief.
Even worse, the politics of the film are thoroughly muddled by the fundamental ambivalence with which Wincer and Jones have infused the film. To one hand, they want Australians to feel patriotic pride for their country's military victory. To the other, they include throw-away lines to satisfy the pacifists in the audience. When an aide tells the commander of the Lighthorsemen how great it is that only 30 Australians died in the attack, the commander leans back on his haunches and pompously proclaims, "Not if you're one of them." It's difficult not to gag in disgust at how obligatory and empty the commander's line seems -- especially when the first words of the end credits proudly inform the audience that not a single horse was injured or killed in the making of the film. And there's no larger significance at all to the film's depiction of Dave's refusal to shoot another human being. It would have been far better to eliminate the subplot entirely rather than to give mere lip-service to anti-war sentiments that were so movingly portrayed in films like GALLIPOLI and PATHS OF GLORY. Even the laughably ultra right-wing war films like THE GREEN BERETS and RED DAWN didn't trivialize or cheapen the principles of pacifism the way THE LIGHTHORSEMEN does.
A final example: in Lewis Milestone's ALL QUIET ON THE WESTERN FRONT (1930), there is a scene where some soldiers comment on how good it is to go swimming since they haven't been able to bathe in three weeks. That one comment is quite telling about the enormous hardships and difficulties that the fighting men had to face. In THE LIGHTHORSEMEN, there's a similar scene where the soldiers cavort nude on horseback at a seaside R & R station. But once again the film implodes into a ball of fluff. The film conveys no sense of why the men would be eager to grab any opportunity to discard their heavy weapons and dirty clothes.
All these out-of-place scenes may lead one to think that perhaps the film is supposed to be a comedy about war, like John Boorman's recent HOPE AND GLORY. But whereas that excellent film used such scenes to debunk the myths of war, THE LIGHTHORSEMEN in fact employs them to create new legends -- and fails miserably. Aside from the well-shot final attack scene, the film does embarrassingly little credit to its Australian cinematic heritage and ends up being distastefully and stupefyingly mindless.
Filmography of Simon Wincer:
SNAPSHOT/THE DAY AFTER HALLOWEEN 1979 HARLEQUIN 1980 93 mins. PHAR LAP 1983 106 mins. D.A.R.Y.L. 1985 100 mins. THE LIGHTHORSEMEN 1987 (*)115 mins.
Simon Wincer seems to like horses. Both PHAR LAP and THE LIGHTHORSEMEN feature horses prominently. Wincer was also an executive producer of both THE MAN FROM SNOWY RIVER and its sequel, which may help to explain why both of those films are equally as juvenile as THE LIGHTHORSEMEN. He has also directed over 200 hours of Australian television, including the two mini-series "Against the Wind" and "The Sullivans."
(*) This running time does not include approximately 10 minutes of footage that was cut from the film for its American release. Inquiries directed to both RKO Pictures and Cinecom have failed to determine precisely which one edited the film. See the accompanying interview with actor Peter Phelps for more information about the content of the missing footage.
Manavendra K. Thakur {rutgers,decvax!genrad,att}!mit-eddie!thakur<EMAIL_ADDRESS><EMAIL_ADDRESS>The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews