twilio.rest.video.v1 package¶
Subpackages¶
- twilio.rest.video.v1.composition package
- twilio.rest.video.v1.recording package
- twilio.rest.video.v1.room package
Submodules¶
twilio.rest.video.v1.composition_hook module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.video.v1.composition_hook.
CompositionHookContext
(version, sid)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
-
delete
()[source]¶ Deletes the CompositionHookInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the CompositionHookInstance
Returns: The fetched CompositionHookInstance Return type: twilio.rest.video.v1.composition_hook.CompositionHookInstance
-
update
(friendly_name, enabled=<object object>, video_layout=<object object>, audio_sources=<object object>, audio_sources_excluded=<object object>, trim=<object object>, format=<object object>, resolution=<object object>, status_callback=<object object>, status_callback_method=<object object>)[source]¶ Update the CompositionHookInstance
Parameters: - friendly_name (unicode) – A unique string to describe the resource
- enabled (bool) – Whether the composition hook is active
- video_layout (dict) – A JSON object that describes the video layout of the composition hook
- audio_sources (list[unicode]) – An array of track names from the same group room to merge
- audio_sources_excluded (list[unicode]) – An array of track names to exclude
- trim (bool) – Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook
- format (CompositionHookInstance.Format) – The container format of the media files used by the compositions created by the composition hook
- resolution (unicode) – A string that describes the columns (width) and rows (height) of the generated composed video in pixels
- status_callback (unicode) – The URL we should call to send status information to your application
- status_callback_method (unicode) – The HTTP method we should use to call status_callback
Returns: The updated CompositionHookInstance
Return type: twilio.rest.video.v1.composition_hook.CompositionHookInstance
-
-
class
twilio.rest.video.v1.composition_hook.
CompositionHookInstance
(version, payload, sid=None)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
-
account_sid
¶ Returns: The SID of the Account that created the resource Return type: unicode
-
audio_sources
¶ Returns: The array of track names to include in the compositions created by the composition hook Return type: list[unicode]
-
audio_sources_excluded
¶ Returns: The array of track names to exclude from the compositions created by the composition hook Return type: list[unicode]
-
date_created
¶ Returns: The ISO 8601 date and time in GMT when the resource was created Return type: datetime
-
date_updated
¶ Returns: The ISO 8601 date and time in GMT when the resource was last updated Return type: datetime
-
delete
()[source]¶ Deletes the CompositionHookInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the CompositionHookInstance
Returns: The fetched CompositionHookInstance Return type: twilio.rest.video.v1.composition_hook.CompositionHookInstance
-
format
¶ Returns: The container format of the media files used by the compositions created by the composition hook Return type: CompositionHookInstance.Format
-
friendly_name
¶ Returns: The string that you assigned to describe the resource Return type: unicode
-
resolution
¶ Returns: The dimensions of the video image in pixels expressed as columns (width) and rows (height) Return type: unicode
-
sid
¶ Returns: The unique string that identifies the resource Return type: unicode
-
status_callback
¶ Returns: The URL to send status information to your application Return type: unicode
-
status_callback_method
¶ Returns: The HTTP method we should use to call status_callback Return type: unicode
-
update
(friendly_name, enabled=<object object>, video_layout=<object object>, audio_sources=<object object>, audio_sources_excluded=<object object>, trim=<object object>, format=<object object>, resolution=<object object>, status_callback=<object object>, status_callback_method=<object object>)[source]¶ Update the CompositionHookInstance
Parameters: - friendly_name (unicode) – A unique string to describe the resource
- enabled (bool) – Whether the composition hook is active
- video_layout (dict) – A JSON object that describes the video layout of the composition hook
- audio_sources (list[unicode]) – An array of track names from the same group room to merge
- audio_sources_excluded (list[unicode]) – An array of track names to exclude
- trim (bool) – Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook
- format (CompositionHookInstance.Format) – The container format of the media files used by the compositions created by the composition hook
- resolution (unicode) – A string that describes the columns (width) and rows (height) of the generated composed video in pixels
- status_callback (unicode) – The URL we should call to send status information to your application
- status_callback_method (unicode) – The HTTP method we should use to call status_callback
Returns: The updated CompositionHookInstance
Return type: twilio.rest.video.v1.composition_hook.CompositionHookInstance
-
url
¶ Returns: The absolute URL of the resource Return type: unicode
-
-
class
twilio.rest.video.v1.composition_hook.
CompositionHookList
(version)[source]¶ Bases:
twilio.base.list_resource.ListResource
-
create
(friendly_name, enabled=<object object>, video_layout=<object object>, audio_sources=<object object>, audio_sources_excluded=<object object>, resolution=<object object>, format=<object object>, status_callback=<object object>, status_callback_method=<object object>, trim=<object object>)[source]¶ Create the CompositionHookInstance
Parameters: - friendly_name (unicode) – A unique string to describe the resource
- enabled (bool) – Whether the composition hook is active
- video_layout (dict) – An object that describes the video layout of the composition hook
- audio_sources (list[unicode]) – An array of track names from the same group room to merge
- audio_sources_excluded (list[unicode]) – An array of track names to exclude
- resolution (unicode) – A string that describes the rows (width) and columns (height) of the generated composed video in pixels
- format (CompositionHookInstance.Format) – The container format of the media files used by the compositions created by the composition hook
- status_callback (unicode) – The URL we should call to send status information to your application
- status_callback_method (unicode) – The HTTP method we should use to call status_callback
- trim (bool) – Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook
Returns: The created CompositionHookInstance
Return type: twilio.rest.video.v1.composition_hook.CompositionHookInstance
-
get
(sid)[source]¶ Constructs a CompositionHookContext
Parameters: sid – The SID that identifies the resource to fetch Returns: twilio.rest.video.v1.composition_hook.CompositionHookContext Return type: twilio.rest.video.v1.composition_hook.CompositionHookContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of CompositionHookInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of CompositionHookInstance Return type: twilio.rest.video.v1.composition_hook.CompositionHookPage
-
list
(enabled=<object object>, date_created_after=<object object>, date_created_before=<object object>, friendly_name=<object object>, limit=None, page_size=None)[source]¶ Lists CompositionHookInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.
Parameters: - enabled (bool) – Read only CompositionHook resources with an enabled value that matches this parameter
- date_created_after (datetime) – Read only CompositionHook resources created on or after this ISO 8601 datetime with time zone
- date_created_before (datetime) – Read only CompositionHook resources created before this ISO 8601 datetime with time zone
- friendly_name (unicode) – Read only CompositionHook resources with friendly names that match this string
- limit (int) – Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit
- page_size (int) – Number of records to fetch per request, when not set will use the default value of 50 records. If no page_size is defined but a limit is defined, list() will attempt to read the limit with the most efficient page size, i.e. min(limit, 1000)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.video.v1.composition_hook.CompositionHookInstance]
-
page
(enabled=<object object>, date_created_after=<object object>, date_created_before=<object object>, friendly_name=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of CompositionHookInstance records from the API. Request is executed immediately
Parameters: - enabled (bool) – Read only CompositionHook resources with an enabled value that matches this parameter
- date_created_after (datetime) – Read only CompositionHook resources created on or after this ISO 8601 datetime with time zone
- date_created_before (datetime) – Read only CompositionHook resources created before this ISO 8601 datetime with time zone
- friendly_name (unicode) – Read only CompositionHook resources with friendly names that match this string
- page_token (str) – PageToken provided by the API
- page_number (int) – Page Number, this value is simply for client state
- page_size (int) – Number of records to return, defaults to 50
Returns: Page of CompositionHookInstance
Return type:
-
stream
(enabled=<object object>, date_created_after=<object object>, date_created_before=<object object>, friendly_name=<object object>, limit=None, page_size=None)[source]¶ Streams CompositionHookInstance records from the API as a generator stream. This operation lazily loads records as efficiently as possible until the limit is reached. The results are returned as a generator, so this operation is memory efficient.
Parameters: - enabled (bool) – Read only CompositionHook resources with an enabled value that matches this parameter
- date_created_after (datetime) – Read only CompositionHook resources created on or after this ISO 8601 datetime with time zone
- date_created_before (datetime) – Read only CompositionHook resources created before this ISO 8601 datetime with time zone
- friendly_name (unicode) – Read only CompositionHook resources with friendly names that match this string
- limit (int) – Upper limit for the number of records to return. stream() guarantees to never return more than limit. Default is no limit
- page_size (int) – Number of records to fetch per request, when not set will use the default value of 50 records. If no page_size is defined but a limit is defined, stream() will attempt to read the limit with the most efficient page size, i.e. min(limit, 1000)
Returns: Generator that will yield up to limit results
Return type: list[twilio.rest.video.v1.composition_hook.CompositionHookInstance]
-
-
class
twilio.rest.video.v1.composition_hook.
CompositionHookPage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
-
get_instance
(payload)[source]¶ Build an instance of CompositionHookInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.video.v1.composition_hook.CompositionHookInstance Return type: twilio.rest.video.v1.composition_hook.CompositionHookInstance
-
twilio.rest.video.v1.composition_settings module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.video.v1.composition_settings.
CompositionSettingsContext
(version)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
-
create
(friendly_name, aws_credentials_sid=<object object>, encryption_key_sid=<object object>, aws_s3_url=<object object>, aws_storage_enabled=<object object>, encryption_enabled=<object object>)[source]¶ Create the CompositionSettingsInstance
Parameters: - friendly_name (unicode) – A descriptive string that you create to describe the resource
- aws_credentials_sid (unicode) – The SID of the stored Credential resource
- encryption_key_sid (unicode) – The SID of the Public Key resource to use for encryption
- aws_s3_url (unicode) – The URL of the AWS S3 bucket where the compositions should be stored
- aws_storage_enabled (bool) – Whether all compositions should be written to the aws_s3_url
- encryption_enabled (bool) – Whether all compositions should be stored in an encrypted form
Returns: The created CompositionSettingsInstance
Return type: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
-
fetch
()[source]¶ Fetch the CompositionSettingsInstance
Returns: The fetched CompositionSettingsInstance Return type: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
-
-
class
twilio.rest.video.v1.composition_settings.
CompositionSettingsInstance
(version, payload)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
-
account_sid
¶ Returns: The SID of the Account that created the resource Return type: unicode
-
aws_credentials_sid
¶ Returns: The SID of the stored Credential resource Return type: unicode
-
aws_s3_url
¶ Returns: The URL of the AWS S3 bucket where the compositions are stored Return type: unicode
-
aws_storage_enabled
¶ Returns: Whether all compositions are written to the aws_s3_url Return type: bool
-
create
(friendly_name, aws_credentials_sid=<object object>, encryption_key_sid=<object object>, aws_s3_url=<object object>, aws_storage_enabled=<object object>, encryption_enabled=<object object>)[source]¶ Create the CompositionSettingsInstance
Parameters: - friendly_name (unicode) – A descriptive string that you create to describe the resource
- aws_credentials_sid (unicode) – The SID of the stored Credential resource
- encryption_key_sid (unicode) – The SID of the Public Key resource to use for encryption
- aws_s3_url (unicode) – The URL of the AWS S3 bucket where the compositions should be stored
- aws_storage_enabled (bool) – Whether all compositions should be written to the aws_s3_url
- encryption_enabled (bool) – Whether all compositions should be stored in an encrypted form
Returns: The created CompositionSettingsInstance
Return type: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
-
encryption_enabled
¶ Returns: Whether all compositions are stored in an encrypted form Return type: bool
-
encryption_key_sid
¶ Returns: The SID of the Public Key resource used for encryption Return type: unicode
-
fetch
()[source]¶ Fetch the CompositionSettingsInstance
Returns: The fetched CompositionSettingsInstance Return type: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
-
friendly_name
¶ Returns: The string that you assigned to describe the resource Return type: unicode
-
url
¶ Returns: The absolute URL of the resource Return type: unicode
-
-
class
twilio.rest.video.v1.composition_settings.
CompositionSettingsList
(version)[source]¶ Bases:
twilio.base.list_resource.ListResource
-
get
()[source]¶ Constructs a CompositionSettingsContext
Returns: twilio.rest.video.v1.composition_settings.CompositionSettingsContext Return type: twilio.rest.video.v1.composition_settings.CompositionSettingsContext
-
-
class
twilio.rest.video.v1.composition_settings.
CompositionSettingsPage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
-
get_instance
(payload)[source]¶ Build an instance of CompositionSettingsInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance Return type: twilio.rest.video.v1.composition_settings.CompositionSettingsInstance
-
twilio.rest.video.v1.recording_settings module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.video.v1.recording_settings.
RecordingSettingsContext
(version)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
-
create
(friendly_name, aws_credentials_sid=<object object>, encryption_key_sid=<object object>, aws_s3_url=<object object>, aws_storage_enabled=<object object>, encryption_enabled=<object object>)[source]¶ Create the RecordingSettingsInstance
Parameters: - friendly_name (unicode) – A string to describe the resource
- aws_credentials_sid (unicode) – The SID of the stored Credential resource
- encryption_key_sid (unicode) – The SID of the Public Key resource to use for encryption
- aws_s3_url (unicode) – The URL of the AWS S3 bucket where the recordings should be stored
- aws_storage_enabled (bool) – Whether all recordings should be written to the aws_s3_url
- encryption_enabled (bool) – Whether all recordings should be stored in an encrypted form
Returns: The created RecordingSettingsInstance
Return type: twilio.rest.video.v1.recording_settings.RecordingSettingsInstance
-
fetch
()[source]¶ Fetch the RecordingSettingsInstance
Returns: The fetched RecordingSettingsInstance Return type: twilio.rest.video.v1.recording_settings.RecordingSettingsInstance
-
-
class
twilio.rest.video.v1.recording_settings.
RecordingSettingsInstance
(version, payload)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
-
account_sid
¶ Returns: The SID of the Account that created the resource Return type: unicode
-
aws_credentials_sid
¶ Returns: The SID of the stored Credential resource Return type: unicode
-
aws_s3_url
¶ Returns: The URL of the AWS S3 bucket where the recordings are stored Return type: unicode
-
create
(friendly_name, aws_credentials_sid=<object object>, encryption_key_sid=<object object>, aws_s3_url=<object object>, aws_storage_enabled=<object object>, encryption_enabled=<object object>)[source]¶ Create the RecordingSettingsInstance
Parameters: - friendly_name (unicode) – A string to describe the resource
- aws_credentials_sid (unicode) – The SID of the stored Credential resource
- encryption_key_sid (unicode) – The SID of the Public Key resource to use for encryption
- aws_s3_url (unicode) – The URL of the AWS S3 bucket where the recordings should be stored
- aws_storage_enabled (bool) – Whether all recordings should be written to the aws_s3_url
- encryption_enabled (bool) – Whether all recordings should be stored in an encrypted form
Returns: The created RecordingSettingsInstance
Return type: twilio.rest.video.v1.recording_settings.RecordingSettingsInstance
-
encryption_key_sid
¶ Returns: The SID of the Public Key resource used for encryption Return type: unicode
-
fetch
()[source]¶ Fetch the RecordingSettingsInstance
Returns: The fetched RecordingSettingsInstance Return type: twilio.rest.video.v1.recording_settings.RecordingSettingsInstance
-
friendly_name
¶ Returns: The string that you assigned to describe the resource Return type: unicode
-
url
¶ Returns: The absolute URL of the resource Return type: unicode
-
-
class
twilio.rest.video.v1.recording_settings.
RecordingSettingsList
(version)[source]¶ Bases:
twilio.base.list_resource.ListResource
-
get
()[source]¶ Constructs a RecordingSettingsContext
Returns: twilio.rest.video.v1.recording_settings.RecordingSettingsContext Return type: twilio.rest.video.v1.recording_settings.RecordingSettingsContext
-
-
class
twilio.rest.video.v1.recording_settings.
RecordingSettingsPage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
-
get_instance
(payload)[source]¶ Build an instance of RecordingSettingsInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.video.v1.recording_settings.RecordingSettingsInstance Return type: twilio.rest.video.v1.recording_settings.RecordingSettingsInstance
-
Module contents¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.video.v1.
V1
(domain)[source]¶ Bases:
twilio.base.version.Version
-
composition_hooks
¶ Return type: twilio.rest.video.v1.composition_hook.CompositionHookList
-
composition_settings
¶ Return type: twilio.rest.video.v1.composition_settings.CompositionSettingsList
-
compositions
¶ Return type: twilio.rest.video.v1.composition.CompositionList
-
recording_settings
¶ Return type: twilio.rest.video.v1.recording_settings.RecordingSettingsList
-
recordings
¶ Return type: twilio.rest.video.v1.recording.RecordingList
-
rooms
¶ Return type: twilio.rest.video.v1.room.RoomList
-


learning is oftenly difficult and boring but we just have to.If one love his/her life he/she have just cope with the natural need to learn continually. We just have the responsibility of making our learning process interesting as possible as we can.. CONTINUE LEARNING!
Col 1
learning is oftenly difficult and boring but we just have to.If one love his/her life he/she have just cope with the natural need to learn continually. We just have the responsibility of making our learning process interesting as possible as we can.. CONTINUE LEARNING!
Col 2
learning is oftenly difficult and boring but we just have to.If one love his/her life he/she have just cope with the natural need to learn continually. We just have the responsibility of making our learning process interesting as possible as we can. CONTINUE LEARNING!
Col 3
learning is oftenly difficult and boring but we just have to.If one love his/her life he/she have just cope with the natural need to learn continually. We just have the responsibility of making our learning process interesting as possible as we can. CONTINUE LEARNING!
Col 4
learning is oftenly difficult and boring but we just have to.If one love his/her life he/she have just cope with the natural need to learn continually. We just have the responsibility of making our learning process interesting as possible as we can. CONTINUE LEARNING!
learning is oftenly difficult and boring but we just have to.If one love his/her life he/she have just cope with the natural need to learn continually. We just have the responsibility of making our learning process interesting as possible as we can.. CONTINUE LEARNING!
learning is oftenly difficult and boring but we just have to.If one love his/her life he/she have just cope with the natural need to learn continually. We just have the responsibility of making our learning process interesting as possible as we can.. CONTINUE LEARNING!
learning is oftenly difficult and boring but we just have to.If one love his/her life he/she have just cope with the natural need to learn continually. We just have the responsibility of making our learning process interesting as possible as we can.. CONTINUE LEARNING!


To complete your registration online, you will need to provide information about you (registrant), your family,
and your spouse/common-law partner.
Family
For each member of your family (including your children) you will need to provide their:
- Personal Health Number (PHN)
- Date of Birth
Note: If you share custody of any of your children with a former partner, the
children can only be on one parent's Fair PharmaCare account.


What problem is the web page solving?
SoundCloud is a platform for sharing and discovering the world's sounds.
What visual challenges are there?
Visually, the site is very content focused. This creates the visual challenge of
vast information presentation; how will the site be organized in such a way that
content does not look and feel cluttered? Is it obvious to the user which actions
(like, repost, comment) are possible and encouraged through design?
What problem is the web page solving?
Twitter is a channel for text and media, allowing users to broadcast to any audience.
It solves the problem of presenting these broadcasts in near-real time within a structured,
readable stream focused on user content.
What visual challenges are there?
Visual challenges exist because some users perform specific actions outside
of simply reading their Twitter stream. Placement of the buttons, text fields, etc.
should be obvious, yet unobtrusive creating a visual challenge for the site's layout.
What problem is the web page solving?
Quora is a site dedicated to asking and answering questions about any imaginable topic.
It solves the problem of quick and efficient community-based learning, allowing anyone to ask or answer a question about anything.
What visual challenges are there?
The visual challenge with this site is being able to present enough of each answer to garner
the interest and attention of users browsing the site, while still visually presenting enough
content (questions and answers) to demonstrate the utility of the site itself.


In my local language (Bahasa Indonesia) there are no verb-2 or past tense form as time tracker. So, I often forget to use the past form of verb when speaking english. I saw him last night (correct) I see him last night ...
{% extends 'base.html' %} {% block title %}Lazy Topper{% endblock title %} {% block body_content %}
In my local language (Bahasa Indonesia) there are no verb-2 or past tense form as time tracker. So, I often forget to use the past form of verb when speaking english.
I’m a 19-year-old student from Malaysia. I’ve been introduced to the language at a very young age and I’m capable of conducting any type of conversation. However, some of my English-speaking friends on the internet didn’t take too long to ...
(Why I darest say, they darest not get offended when they so indeed have examples that violate their own use and nomenclature!) IE: pudding as a specific dessert, puddings as a general term for desserts. Calling something a Yorkshire pudding ...
Anyone else seeing dramatic ranking shakeups lately? Thankfully, this client is the blue line, but that’s a serious drop and recovery. We don’t operate at all in the black hat world, so our links and content should be in good shape. ...
Recently heard about Heap which seems pretty cool, but I’m not sure if it would really be valuable, or simply another tool that I need to check. We are not at the point of using HubSpot/Marketo yet so Heap’s free ...
As an interviewer, I occasionally conduct interviews that become painful as time goes on because the candidate is doing so poorly. I have the impression that, in these cases, the candidate internally knows they are not getting the job, and ...
If a Google employee reveals that he or she intends to leave because they have *accepted*–not received–an offer from a talent competitor like Facebook, in some cases they will be “walked off” so that they will no longer have access ...


Leaderboard
Leaderboards provide a visual comparison tool for measurements of resources or objects associated with actors. A wide variety of leaderboards are supported including those based achievement or resource based on individual, group or single and multiple games. Leaderboards can utilise any GameData, Actor,Skill or Resource.
Features
- Generate a leaderboard by:
- Game / Resource / Skill / Actor
- ActorType (Group, Player)
- Key (from GameData, Resource, Actor, Skill)
- Aggregation of values by:
- Frequency
- Summation
- Earliest/Latest occurrence
- Highest/Lowest overall occurrence
- Filter results by threshold values (e.g. top 20 or around current player's rank) or Relationships
API
- Client
- Contracts
Examples
- Create a leaderboard This example shows how to create a leaderboard which will display the highest rankings for the combined total of kingdoms the players have conquered. This uses LeaderboardClient's Create function, passing a LeaderboardRequest as the parameter. This request will specify the identifier token "MOST_KINGDOMS_CONQUERED", key for which to check in GameData "KingdomsConquered" and LeaderboardType Cumulative to add all the values of every entry matching the key. The code will then store the Token of the leaderboard from the LeaderboardResponse for later use.
public SUGARClient sugarClient = new SUGARClient(BaseUri);
private LeaderboardClient _leaderboardClient;
private int _gameId;
private string _leaderboardToken;
private void CreateLeaderboard()
{
// create instance of the leaderboard client
_leaderboardClient = sugarClient.Leaderboard;
// create a LeaderboardRequest
var leaderboardRequest = new LeaderboardRequest
{
GameId = _gameId,
Name = "Most Kingdoms Conquered",
Token = "MOST_KINGDOMS_CONQUERED",
Key = "KingdomsConquered",
ActorType = ActorType.User,
GameDataType = GameDataType.Long,
CriteriaScope = CriteriaScope.Actor,
LeaderboardType = LeaderboardType.Cumulative
};
// create the leaderboard and store the response
var leaderboardResponse = _leaderboardClient.Create(leaderboardRequest);
// store the token of the leaderboard for use in other functions
_leaderboardToken = leaderboardResponse.Token;
}
- Get standings for a leaderboard To display the leaderboard inside the game, the current standings of the leaderboard must be retreived. The LeaderboardClient's CreateGetLeaderboardStandings function is called by passing a LeaderboardStandingsRequest object as the parameter, which specifies filters for the returned results. This example will retreive the 8 rankings nearest to the player by setting the LeaderboardFilterType to Near, the limit to 8 and offset as 0. The returned LeaderboardStandingsResponse contains all the data to populate the visual representation of the leaderboard.
private void GetLeaderboardStadings()
{
// create a LeaderboardStandingsRequest
var leaderboardStandingsRequest = new LeaderboardStandingsRequest
{
LeaderboardToken = _leaderboardToken,
GameId = _gameId,
ActorId = _userId,
LeaderboardFilterType = LeaderboardFilterType.Near,
PageLimit = 8,
PageOffset = 0
};
// retreive the standings and store the responses
var leaderboardStandingsResponse = _leaderboardClient.CreateGetLeaderboardStandings(leaderboardStandingReqeusts);
// output the leaderboard
foreach (var standing in leaderboardStandings)
{
Console.WriteLine(standing.Ranking.ToString() + " | " + standing.ActorName + " | Conquered: " + standing.Value);
}
}


Getting to know you...
info about YOU!
Basic information
Last Name:
Age:
What state is your legal residence?
Oregon
Michigan
California
Secret word:
Tell me about yourself:
Start typing here
Which ice cream flavor?
Chocolate
Vanilla
Dark Chocolate
Which of these do you have?
Bicycle
Car
Skateboard
Horse
Validate by pasting .xhtml copy's URL into
https://html5.validator.nu/


CustomFields
Save Order
Save Order
Add New
×
CustomField Deleted.
×
CustomFields Deleted.
×
CustomFields saved.
-
/
Prev
Next
FieldName
FieldName
Description
FieldType
FieldOption
Title
Title
2013/10/24
Edit
×
Delete CustomFields
Are you sure you want to delete?
Confirm


Most SaaS (multi-tenant) applications have editions (packages) those have different features. Thus, they can provide different price and feature options to thier tenants (customers).
See feature management documentation to understand features.
Edition is a simple entity represents an edition (or package) of the application. It has just Name and DisplayName properties.
EditionManager is the domain service to manage editions:
public class EditionManager : AbpEditionManager
{
}
It's derived from AbpEditionManager class. You can inject and use EditionManager to create, delete, update editions. Also, EditionManager is used to manage features of editions. It internally caches edition features for better performance.


On 21 March 2020, 5 new articles were published in 5 journals.
Learning to Rank Spatio-Temporal Event Hotspots
An Impressive View on Profit Driven Cybercrime: A Review of J. Lusthaus’ Industry of Anonymity
Utility of Ecological Momentary Assessments to Collect Data on Fear of Crime
Access to Compensation For Trafficked Persons in Canada


Scripps Institute of Oceanography
Software Development Team Member
UC San Diego
April 2017 - June 2017
Role person
I was a Software Development Team Member during a 3 month project carried out by a researcher at the Scripps Institute of Oceanography. My focus was as a front-end software developer.
Team group
I worked in a team of 4 people under the supervision of a Scripps researcher. The team comprised of 4 software developers, who are all currently UCSD undergraduate students.
Work border_color
The team worked on continuing the development of a Convolutional Neural Network that can categorize and classify recorded fish noises according to species.
Underwater Acoustics: When fishes can make noise
Underwater Acoustics is a Scripps project, implemented under the guidance of Dr. Ana Sirovic, a researcher at the Marine Acoustics Lab of the Scripps Institute of Oceanography. The project came about by researchers at the Scripps Institute of Oceanography when they decided to deploy a detector which recorded ocean sounds following the Deepwater Horizon Oil Spill of 2010. The detector was left in the area for 7 years and has since collected a significant amount of acoustic data, much of which is comprised of fish calls.
Overview
It is often unclear to what extent human activities have damaged ocean environments and whether or not our actions have been effective in repairing damaged habitats and restoring marine populations to their former states. Our project aims to address this issue by allowing researchers to monitor trends in sea life over long periods of time.
Problem
Of the 7 years of acoustic data, researchers have been able to successfully anotate 2 years worth, classifying recurring acoustic patterns by the fish species that are believed to have produced them. This, however, is not an efficient process and even if researchers were to successfully parse all of the data, the question remains: What should be done with all of this information?
Solution
Convolutional Neural Networks. By taking the 2 years of annotated data and feeding it into a custom CNN as training data, the remaining data can be systematically organized and classified. Further, by developing a detector in parallel, the Neural Network can be used as a research tool for the long-term surveilance of sea-life populations.
Deliverables
Our project deliverables included three things: (1) An Automated Detector - takes in acoustic data and outputs the time of signal occurence., (2) A User Friendly Interface - an executable with means of interfacing between detector and classifier to allow researchers without a deep knowledge of MATLAB to use the tool, and (3) The Classifier - a CNN designed to classify fish species by the noises they produce.
What I Did
My task, along with one other team member, was to implement a user-friendly, graphical user interface of the Convolutional Neutral Network program to improve usability.
In addition to the GUI, my teammate and I developed and maintained a website to document progress. Please check it out for more detailed information on this project and the team.
View Website →
Overview
My team decided to divide into 2 sub-teams to take on the deliverables. With that, I and one other teammate took on the task of implementing the User Friendly Interface program for the CNN.
Skills
The development and technology tools used for this project included MATLAB for development and GitHub for version control.
Task
My teammate and I worked on implementing a GUI for the CNN so researchers of any background can easily use and navigate with data they had. I developed the interface using MATLAB's GUIDE tool and consistently tested the program throughout the development phase.
In-Progress Images
Below are some images of the progress my teammate and I made midway of the project of the interface.
The images below show how the interface looks when it is opened for the first time. The user is shown a menu of what they would like to do and they select sound files they would like to begin testing.
***Unfortunately, I do not have images of how the original program worked before implementation of this project began.***
The Process
Here was my process through working on this task (quarter-long project):
- Began looking through the existing code legacy to understand what each file did
- Replicated the program to get an idea of how the program worked with the data passed in by users
- Researched how to create a GUI in MATLAB and began implementation of task
- Ported over the existing code base to the GUI program and modified the files to work towards a working interface
- Extensive testing to ensure the end product met the baseline functionality
More Images
Below are some more images of the progress my teammate and I made near the end of the project of the interface.
Users are able to automate the CNN and train the data. The last photo shows the overall final user interface, where users are able to complete their tasks within one whole interface.
Reflection
Overall, the project was a great way to get experience on working in a team and gaining technical skills. I learned new skills, such as programming in MATLAB and developing a GUI using MATLAB'S GUIDE tool. However, that happened to also be a challenge for me. Prior to this project, I had no knowledge in programming in MATLAB. Additionally, I did not know about Convolutional Neural Networks. I overcame these obstacles by consulting my teammates for help when I needed to and doing lots of research while developing this project.
Also, throughout the project, we were well-monitored by the Scripps researcher by having bi-weekly check-ins to give updates on our progress and receiving feedback on how we were doing. At the end of the quarter, we turned in the final product and it was used to demo at a science conference the next month!


F5 was having difficulty engaging and reaching the global security audience with their new F5 labs.
hypothesis and solutionCollaborate with the F5 labs security team to develop engaging digital experiences to tell their story.
key responsibilitiesUser research, visual design, development and UX.
During discovery for these experiences for the F5 labs team, I developed a sitemap and IA around a security news focused platform. The security engineers I interviewed, spent a siginificant time of their keeping up to date reading security news websites and blogs, therefore a incident response driven platform may have worked for this team to develop credentials in this domain. However, the decision was made to develop smaller one-off experiences, opposed to a larger platform due to budget.


{{ workspace.name }}
#{{ channel }}
Set up a webhook URL for this workspace in your
settings
.
TryThis settings...


Example of sb
movement:
StringBuilder sb = new StringBuilder(); System.out.println(); sb.append(1);
After quick-fix is applied, the result will be:
System.out.println(); StringBuilder sb = new StringBuilder(); sb.append(1);
Use the first checkbox below to only report variables that can be moved inside deeper code blocks.
For example, when the checkbox is checked, the movement will be suggested for sb
variable but not in the example above:
StringBuilder sb = new StringBuilder(a); if (flag) { sb.append(1); }
Use the second checkbox below to report variables which are initialized
with a new expression. This makes the inspection potentially unsafe in cases where the
constructor has non-local side-effects.
For example, when the checkbox is checked, the movement will be suggested for foo
variable:
class Foo { static List<Foo> fooList = new ArrayList<>(); String bar; Foo(String bar) { this.bar = bar; fooList.add(this); } public static void main(String[] args) { Foo foo = new Foo("bar"); // the movement is possible even though is unsafe System.out.println(fooList.size()); System.out.println(foo.bar); } }


Walsall v Stevenage: Saddlers must build on recent run
Walsall may have won their last three matches in a row, but boss Darrell Clarke concedes there is still plenty of work to do.
For starters, just one of those three victories brought the Saddlers three vital points in League Two – the other wins being in the EFL Trophy and FA Cup.
That has only just begun to repair the damage caused by six consecutive league defeats that saw Clarke’s side slip towards the depths of the division.
The team occupying that final place in the EFL, Stevenage, are the visitors to the Banks’s Stadium tomorrow.
Victory would take 21st-placed Walsall eight points clear of the only relegation position.
Defeat, on the other hand, would leave the Saddlers just two points clear of Stevenage having played a game more.
And that’s why there can be no hiding.
“I’m not shirking my own responsibilities,” said Clarke. “I have to do a lot better and my players had to do a lot better.
“We’ve got our three wins on the spin now, but we still have a hell of a lot of work to do to keep progressing. That’s what we will do.
“There’s no problem with the boys’ attitude and desire, but we’re just asking them to be better.
“Even in the six-game run that we lost, we deserved more than we got in some of the games.
“But we didn’t get that and it builds pressure.”
That pressure built so much that tomorrow’s clash could be considered an early-season six-pointer in some quarters – but not with Clarke.
“Everyone is a big game, we want to win every game,” he said.
“It’s about winning, resetting yourself and getting back in the zone.”
One way the Saddlers tried to rediscover the form that took them on a four-match winning run before those six losses in a row was coming together for a team meeting.
And they responded by thrashing League Two leaders Forest Green Rovers 6-0 in the EFL Trophy.
Defender Callum Cockerill-Mollett, who was thrust into the team for the last three matches but may be rested tomorrow, explained: “We had a little team meeting just before Forest Green and we all want to do well for each other. We all want to progress with Walsall so hopefully this is a turning point and we can carry on and keep getting the wins.”
Success tomorrow could lift the Saddlers level on points with Mansfield in 14th and looking at the next group of clubs above them who are all jockeying for position just outside the play-offs.
“Obviously we’re both towards the bottom of the league,” added Cockerill-Mollett. “It should be a good game – hopefully we can get the three points and climb away from the bottom of the table and get into the top.”
Stuart Sinclair and Cameron Pring are still injured and unlikely to feature tomorrow, but boss Clarke hopes the rest of the quad will take confidence from Wednesday’s FA Cup replay win at non-league Darlington.
“Hopefully our boys are a bit buoyed by us getting to the next round, probably not by the performance”, said Clarke.
“But it wasn’t about a performance, it was about getting through to the Cup second round.”


Sprint 3 -technical blog on Javascript and the DOM
Analogy to describe the differences between HTML and CSS.

Explain control flow and loops.
Control flow is like the order in which instructions are carried out. a loop is used to repeat a specific block of instructions.  Some times you have to repeat a process (a loop) and check that it is at the consistence or if its cooked. Like whipping cream till its just write of checking on cookies as it cooks.
Describe what the DOM is and an example of how you might interact with it.
The DOM represents the current content of the page. Through Devtools you can access information/data that you otherwise, could not as just a user viewing or using (clicking/inputting) a web page. Not only can you use it to change styling of colour and text, you can move items around the page to look at layout. More detail can be obtained by looking at things like how many clicks, who were the users, what outputs arrived from using page. Also things like speed to load and the ability to optimise the page.
Accessing data from arrays and objects.
An array (list) and is written as a list of values between square brackets. You access by specifying which value you require in that array.
The first index of an array is zero, not one. So the first element is retrieved with listOfNumbers[0].
You can access object properties in two ways:
objectName.propertyName
objectName["propertyName"]
Explain what functions are and why they are useful.
Like in maths a function is a tool/expression to vary a quantity depending on another quantity. They will return some value. They are useful implementing an instruction based on a user input like what could happen once a user enters info into a page.


Hello, stranger!
This is a HTML file to test different html2text implementations.
And third contains few paragraphs.
Second paragraph.
This is a multi line paragraph. This is a multi line span.
Doc with .
All the world's a stage, and all the men and women merely players: they have their exits and their entrances; and one man in his time plays many parts, his acts being seven ages.
William Shakespeare
a code
in the sentence.
And this is another code
in the sentence.
How about
a snippet
of code
in the middle
of the text?


[gecode-users] Re-execution of program
Christian Schulte
cschulte at kth.se
Sun Jan 8 15:54:17 CET 2017
Yes. Just read a little in MPG… Christian
--
Christian Schulte, www.gecode.org/~schulte <http://www.gecode.org/~schulte>
Professor of Computer Science, KTH, cschulte at kth.se <mailto:cschulte at kth.se>
Expert Researcher, SICS, cschulte at sics.se
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf Of Assia benziane
Sent: Saturday, January 7, 2017 07:36
To: mailng list <users at gecode.org>
Subject: [gecode-users] Re-execution of program
Hi,
I would like to know if it is possible to Re-execut a program with modified variables if it couldn't find any solution in first time.
The solution is to recover the number of solutions found by the program. Is it possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20170108/e9b77d35/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4599 bytes
Desc: not available
URL: <http://www.gecode.org/pipermail/users/attachments/20170108/e9b77d35/attachment.bin>
More information about the users
mailing list


| OLD line(s): 23
<!-- Common Subsmission/Acknowledgement Elements --> | NEW line(s): 23
<!-- Common Submission/Acknowledgement Elements --> |
| OLD line(s): 34
| NEW line(s): 35,38
<!-- SSN - The SSN of the primary filer --> <!-- SSN element applies to TY09 and later filing only --> <xsd:element name="SSN" type="SSNType" minOccurs="0"/> |
| OLD line(s): 73
| NEW line(s): 78,94
<!-- Primary SSN - The SSN of the primary filer --> <!-- Primary SSN element applies to TY09 and later filing only --> <xsd:element name="PrimarySSN" type="SSNType" minOccurs="0"/> <!-- Primary Name Control - The Name Control of the primary filer --> <!-- Primary Name Control element applies to TY09 and later filing only --> <xsd:element name="PrimaryNameControl" type="PersonNameControlType" minOccurs="0"/> <!-- Spouse SSN - The SSN of the primary filer's spouse --> <!-- Spouse SSN element applies to TY09 and later filing only --> <xsd:element name="SpouseSSN" type="SSNType" minOccurs="0"/> <!-- Spouse Name Control - The Name Control of the primary filer's spouse --> <!-- Spouse Name Control element applies to TY09 and later filing only --> <xsd:element name="SpouseNameControl" type="PersonNameControlType" minOccurs="0"/> |
| OLD line(s): 117
| NEW line(s): 139
<xsd:choice> |
| OLD line(s): 119
| NEW line(s): 142,145
<!-- Acceptance Status - Acceptance status of the submission --> <!-- Acceptance Status element applies to TY09 and later filing only --> <xsd:element name="AcceptanceStatus" type="StringType"/> </xsd:choice> |
| OLD line(s): 124
<!-- Status Date - The date the filing status was acknowledged --> | NEW line(s): 150
<!-- Status Date - The date the acknowledgement was created --> |
| OLD line(s): 132
| NEW line(s): 159
<xsd:choice> |
| OLD line(s): 134
| NEW line(s): 162,165
<!-- TIN - The TIN of the filer --> <!-- TIN element applies to TY09 and later filing only --> <xsd:element name="TIN" type="EINType" minOccurs="0"/> </xsd:choice> |
| OLD line(s): 139
<!-- Filing Type Description - For applications for extension, the type of return for which the filing time is being extended --> | NEW line(s): 170
<!-- Filing Type Description - For applications for extension, the description of the submission type of the return for which the filing time is being extended --> |
| OLD line(s): 192
| NEW line(s): 224,251
<!-- Reserved IP Address Code --> <!-- Reserved IP Address Code element applies to TY09 and later filing only --> <xsd:element name="ReservedIPAddressCd" type="StringType" minOccurs="0"/> <!-- Expected Refund Amount and Balance Due Amount elements apply to TY09 and later filing only --> <xsd:choice minOccurs="0"> <!-- Expected Refund Amount --> <xsd:element name="ExpectedRefund" type="USAmountType"/> <!-- Balance Due Amount --> <xsd:element name="BalanceDue" type="USAmountType"/> </xsd:choice> <!-- Date of Birth Validity Code --> <!-- Date of Birth Validity Code element applies to TY09 and later filing only --> <xsd:element name="DateOfBirthValidityCd" type="StringType" minOccurs="0"/> <!-- Debt Code --> <!-- Debt Code element applies to TY09 and later filing only --> <xsd:element name="DebtCd" type="StringType" minOccurs="0"/> <!-- PIN Presence Code --> <!-- PIN Presence Code element applies to TY09 and later filing only --> <xsd:element name="PINPresenceCd" type="StringType" minOccurs="0"/> <!-- ITIN Mismatch Code --> <!--  Common Subsmission/Acknowledgement Elements --> | NEW line(s): 342
<!-- Common Submission/Acknowledgement Elements --> |
| OLD line(s): 423
<xsd:enumeration value="EO"/> | NEW line(s): 482
|
| OLD line(s): 424
| NEW line(s): 484,486
<xsd:enumeration value="EO"/> <xsd:enumeration value="ETEC"/> <xsd:enumeration value="IND"/> |


Samsung Frame Meets It’s Soundbar Match
by Elliot NashThe Samsung Frame TV high-resolution art display has met its match in the Next Level Acoustics high-performance soundbar that fits the elegant aesthetics of the popular home entertainment device.
The New England-based designer of custom speakers and enclosures has unveiled its Fusion Frame soundbar built to complement the super-shallow Frame TV in its four different variations for an opening cost of US$1400.
Next Level Acoustics is currently exploring distribution in Australia for the Fusion Frame Soundbar, with opportunities now currently open to carry the device.
To match the four sizes of Samsung Frame TVs, there are six Fusion Frame models available, with four being stereo soundbars and two LCR models for the larger 55-inch and 65-inch models.
At a depth of only 1.75 inches, the super-slim soundbar is built to provide exceptional sound quality and room-filling dynamics, with the look and feel of the Samsung Frame TV.
Available in either black or white, the Fusion Frame Soundbar may even find its way into other Hi-Fi setups beyond The Frame.
Though for those after something a little more generic, you could always go for the Fusion Flat, a slightly thicker model but one less geared towards the Samsung Frame aesthetic.
With Next Level Acoustics proprietary 4.5-inch aluminium convex cone driver, coupled with the rare earth neodymium motor system, the Fusion Frame promotes high acceleration and excursion to achieve ultra-low audio distortion during use.
Supporting the soundbar is an optional in-wall subwoofer the CI-IW10S, a compact unit with a long-throw 10-inch cast frame driver that’s designed to fit in 2×4 construction.
Providing extended bass response all the way down to 34 Hz, while using only 40 watts of power.


See the Github page for more information.
Also the Miniseed Github page for parsing the returned miniseed.
And the FDSN Web Service Specification.


Yamls
Create Pod
Delete Pod
Pod status
Refresh
Rcs status
Refresh
Service status
Refresh
Edit yaml
Yaml upload
Please upload your yaml.
Submit


--- layout: post permalink: tiedyedepot.html Tags: Array NameOfCoupon: Tie Dye Depot Cash Back Summary: See our Tie Dye Depot Coupon Code, Tie Dye Depot Rebate, Tie Dye Depot Promo Code, Tie Dye Depot Discount, Tie Dye Depot Coupon Cash Back Rebate here. MetaKeywords: Tie Dye Depot Coupon Code, Tie Dye Depot Rebate, Tie Dye Depot Promo Code, Tie Dye Depot Cash Back Rebate, Tie Dye Depot Discount, Tie Dye Depot Coupon Image: images/26936.jpg LinkURL: http://www.shareasale.com/r.cfm?b=225456&u=412002&m=26936 affiliate_url_link: http://www.icouponblog.com/jane.php?id=184 thesis_readmore: See the Tie Dye Depot Coupon thesis_thumb: http://www.icouponblog.com/tn.php?merchantURL=tiedyedepot.com Title: Save 5% - Tie Dye Depot Coupon Code for tiedyedepot.com. Tie Dye Depot Rebate & Discount thesis_description: Our Tie Dye Depot Discount Coupon Code for tiedyedepot.com. We have the best Tie Dye Depot Rebate anywhere. thesis_keywords: Tie Dye Depot, Tie Dye Depot Coupon Code, Tie Dye Depot Discount, Tie Dye Depot Rebate product_name: Tie Dye Depot hop_url: http://www.icouponblog.com/hop.php?id=184 ---
Tie Dye Depot also has a great selection of baby clothes, blankets and beddings.  You can also get Elvis, Betty Boop, Popeye, Marilyn Monroe and many other character t-shirts from Tie Dye Depot. Buy today from Tie Dye Depot and use our discount coupons for savings.


This is the first in a series of posts describing my impressions of converting a large OLAP server to TokuDB. There's a lot to tell, and the experiment is not yet complete, so this is an ongoing blogging. In this post I will describe the case at hand and out initial reasons for looking at TokuDB.
Disclosure: I have no personal interests and no company interests; we did get friendly, useful and free advice from Tokutek engineers. TokuDB is open source and free to use, though commercial license is also available.
The case at hand
We have a large and fast growing DWH MySQL setup. This data warehouse is but one component in a larger data setup, which includes Hadoop, Cassandra and more. For online dashboards and most reports, MySQL is our service. We populate this warehouse mainly via Hive/Hadoop. Thus, we have an hourly load of data from Hive, as well as a larger daily load.
There are some updates on the data, but the majority of writes are just mysqlimports of Hive queries.
Usage of this database is OLAP: no concurrency issues here; we have some should-be-fast-running queries issued by our dashboards, as well as ok-to-run-longer queries issued for reports.
Our initial and most burning trouble is with size. Today we use COMPRESSED InnoDB tables (KEY_BLOCK_SIZE is default, i.e. 8). Our data volume sums right now at about 2TB. I happen to know this translates as 4TB of uncompressed data.
However growth of data is accelerating. A year ago we would capture a dozen GB per month. Today it is a 100GB per month, and by the end of this year it may climb to 150GB per month or more.
Our data is not sharded. We have a simple replication topology of some 6 servers. Machines are quite generous as detailed following. And yet, we will be running out of resources shortly: disk space (total 2.7TB) is now running low and is expected to run out in about six months. One of my first tasks in Outbrain is to find a solution to our DWH growth problem. The solution could be sharding; it could be a commercial DWH product; anything that works.
The approach we experiment with
It was at my initial interview that I suggested TokuDB might be a good solution, with the primary reason of being so good with compression. And we decided to experiment with this simple (setup-wise) solution of compression. If we could compress the data even by 50%, that would buy us considerable time. And it's the simplest approach as we would need to change nothing at the application side, nor add additional frameworks.
Of course, we were already using InnoDB COMPRESSED tables. How about just improving the compression? And here I thought to myself: we can try KEY_BLOCK_SIZE=4, which I know would generally compress by 50% as compared to KEY_BLOCK_SIZE=8 (not always, but in many use cases). We're already using InnoDB so this isn't a new beast; it will be "more of the same". It would work.
I got myself a dedicated machine: a slave in our production topology I am free to play with. I installed TokuDB 7.0.1, later upgraded to 7.0.3, based on MySQL 5.5.30.
The machine is a Dell Inc. PowerEdge R510 machine, with 16 CPUs @ 2.1 GHz and 126 GiB RAM, 16 GiB Swap. OS is CentOS 5.7, kernel 2.6.18. We have RAID 10 over local 10k RPM SAS disks (10x600GB disks)
How to compare InnoDB & TokuDB?
2TB of compressed data (for absolute measurement I consider it to be a 4TB worth of data) is quite a large setup. How do I do the comparison? I don't even have too much disk space here...
We have tables of various size. Our largest is in itself 1TB (2TB uncompressed) - half of the entire volume. The rest ranging 330GB, 140GB, 120GB, 90GB, 50GB and below. We have MONTHly partitioning schemes on most tables and obviously on our larger tables.
For our smaller tables, we could just CREATE TABLE test_table LIKE small_table, populating it and comparing compression. However, the really interesting question (and perhaps the only interesting question compression-wise) is how well would our larger (and specifically largest) tables would compress.
Indeed, for our smaller tables we saw between 20% to 70% reduction in size when using stronger InnoDB compression: KEY_BLOCK_SIZE=4/2/1. How well would that work on our larger tables? How much slower would it be?
We know MySQL partitions are implemented by actual independent tables. Our testing approach was: let's build a test_table from a one month worth of data (== one single partition) of our largest table. We tested:
- The time it takes to load the entire partition (about 120M rows, 100GB COMPRESSED data as seen on .idb file)
- The time it would take to load a single day's worth of data from Hive/Hadoop (loading real data, as does our nightly import)
- The time it would take for various important SELECT query to execute on this data.
InnoDB vs. TokuDB comparison
In this post I will only describe our impressions of compression size. I have a lot to say about TokuDB vs InnoDB partitioning and queries; this will wait till later post.
So here goes:
| Engine | Compression | Time to Insert 1 month | Table size (optimized) | Time to import 1 day |
| InnoDB | 8k | 10.5h | 58GB | 32m |
| InnoDB | 4k | 48h | 33GB | unknown (too long) |
| TokuDB | quicklz | 14h | 17GB | 40m |
| TokuDB | lzma (small/aggresive) | 15h | 7.5GB | 42m |
Some comments and insights:
- Each test was performed 3-4 times. There were no significant differences on the various cycles.
- The 1 month insert was done courtesy QueryScript split, 5,000 rows at a time, no throttling.
- The 1 day import via mysqlimport. There were multiple files imported. Each file is sorted by PRIMARY KEY ASC.
- Isn't it nice to know that your 100GB InnoDB table actually fits within 58GB when rebuilt?
- For InnoDB flush_logs_at_trx_commit=2, flush_method=O_DIRECT.
- I used default configuration to TokuDB -- touched nothing. More on this in later post.
- InnoDB 4k was prohibitively slow to load data. It was so slow so as to be unacceptable. For the 1 day load it took 1 hour for a mere 20% of data to load. 1 hour was already marginal for our requirements; waiting for 5 hours was out of the question. I tested several times, never got to wait for completion. Did I say it would just be "more of the same"? 4k turned to be "not an option".
- I saw almost no difference in load time between the two TokuDB compression formats. Both somewhat (30%) longer than InnoDB to load, but comparable.
- TokuDB compression: nothing short of amazing.
With InnoDB 4k being "not an option", and with both TokuDB compressions being similar in load time yet so different in compression size, we are left with the following conclusion: if we want to compress more than our existing 8k (and we have to) - TokuDB's agressive compression (aka small, aka lzma) is our only option.
Shameless plug
common_schema turned to be quite the "save the day" tool here. Not only did we use it to extract 100GB of data from a large dataset and load it onto our tables, it also helped out in the ALTER process for TokuDB: at this time (<= 7.0.4) TokuDB still has a bug with KEY_BLOCK_SIZE: when this option is found in table definition, it impacts TokuDB's indexes by bloating them. This is how sql_alter_table_tokudb was born. Hopefully it will be redundant shortly.
More to come
Was our test fair? Should we have configure TokuDB differently? Is loading via small 5,000 row chunks the right way?
In the next post I will describe the process of migrating our 4TB worth of data to TokuDB, pitfalls, issues, party crushers, sport spoilers, configuration, recovery, cool behaviour and general advice you should probably want to embrace. At later stage I'll describe how our DWH looks after migration. Finally I'll share some (ongoing) insights on performance.
You'll probably want to know "How much is (non compressed) 4TB of data worth in TokuDB?" Let's keep the suspense :)
comments powered by Disqus


Code Learner Survey Form
Please let us know how you are learning to code
*
Name:
*
Email:
*
Age:
What is your gender?
Male
Female
Other
Prefer not to say
What is your biggest reason for learning to code?
To create art or entertainment
As a hobby
To start a business or to freelance
To meet school requirements
To succeed in current career
To change careers
Other
Which type of learning resources have you found helpful? Choose as many as you like.
Books
Programming Websites
In-person coding-related events
Coding-related Podcasts
Youtube videos
About how many hours do you spend learning each week?
About how many months have you been programming for?
Would you consider attending a full-time coding bootcamp?
Yes
No
Maybe
Any comments or suggestions?
Submit


Toggle navigation
apps
Design Portfolio
Scribble
Getting Older
History of Flight
The Ish Box
Mrs. South Tea
Faerie Fragrance
Earth Share Identity
G Tone Identity
view_day
Printmaking
Monoprints
Editions
account_balance
Info
About Us
Contact
Résumé
Graphic Tone
Previous
Next
Scribble
A magazine for kids designed to increase their creativity, education, exercise, entertainment and social interaction through all of the various sections and articles of the publication.


Kurstin:
It's because my other master wants it. Come to think of it, he wants quite a few items these days. I wonder if he has something special in the works...
Ah, but that's none of your concern, is it? Do you have any other questions? Perhaps something more important?
Ask why he doesn't do it himself.


You need to give values to a and b by looking to the formula: y=ax+b. y is the place of the output character, a and b are your inputs and x is the place of the input (will be encrypted) character.


Tutorials
ChocolateChip-UI version 3.5.3
Icons
Icons are a common feature on all operating systems. If you want to display icons in your app, there are a number of ways to do this. Of course the simplest way is just to put and image in your markup. The problem is that an icon on one operating system may not look appropriate on another. Also it isn't easy to make an image provide hover and touch states without some JavaScript hackery. For icons you have three possibilities: background images, mask images and symbol fonts.
Background Images
And better solution is to use a background image. You could use a png image, or an SVG image. We strongly recommend SVG images because they are resolution independent and can be scaled to any size. If you have Adobe Illustrator, you can make your icon in it and then save it as a plain SVG image. If you have a small set of icons, it makes sense to convert them into data-urls which you can include in your CSS. This means that there is no delay for loading separate images. There will never arise a situation where the images don't load, unless the stylesheet failed to load.
If you're using png, you can use any number of online Website to convert them into data-urls. After converting a png into 64 bit format, past it into your background image style:
.myIcon {
background-image: url(data:image/png; base64, iVBORw0KGgoAAAANSUhEUgA...);
}
In the above example, the data was purposefully cut off to save space. Data-urls can look large, as large as a long paragraph of text. But they are more efficient for single page apps since they are loaded and parsed only one.
You could also use an SVG as a data-url. The advantage of SVG is that, besides being a vector image, it is not a binary file by a text format similar to HTML. You can open the SVG image in a text editor and copy it out to paste in your background image style. An SVG image has this format:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 48 48" xml:space="preserve">
<polygon points="35,25 17,11 17,39 "/>
</svg>
For creating a data-url, you are only interested in the part beging with <svg>
and ending in </svg>
. Copy the entire svg tag into a text editor, then remove all line endings and replace any tabs with spaces. This should have turned your SVG text into one continuous string, otherwise check for any remaining new line and delete it. For your SVG data-url you'll need the following format:
background-image: url('data:image/svg+xml;utf8,');
Paste the single line SVG text right after utf8, and before the final single quote:
url('data:image/svg+xml;utf8, <svg version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 48 48" xml:space="preserve"><polygon points="35,25 17,11 17,39 "/></svg>');
ChocolateChip-UI provides the class icon
to provide initial styling for icons. Put that on a span
, give it an additional classes to indicate the image it will display and you are done. You can also style your icons with a background color. ChocolateChip-UI adds rounded corners to icons for iOS. On Android it makes the icon circular, and for Windows Phone 8 they are perfectly squared. You can change any of this behavior by modify the icon style or creating your own class. Please examine the example Composite Layout 9
to see how these are implemented for each platform.
Mask Images
For iOS and Android the Webkit browsers provide mask images as another way to display icons. You provide the image as a mask. You also need to provide a background color, otherwise there will be nothing to mask. A mask image works exactly like a mask in any image editor: black is transparent and while is opaque. A gray scale will result in a mask with transparency for how the color shows though. When using a mask image and background color, you can effective change the color of your icons at any time by simply changing the background color.
Here is the format:
-webkit-mask-image: url('data:image/svg+xml;utf8,<svg version="1.1" id="svg2" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve"> <g id="g4"> </g> <g id="layer2"> <path id="path7" d="M28.038, 8.381l2.674, 2.599L18.545, 23.146l12.086, 12.086l-2.593, 2.679L17.909, 27.782l-4.636-4.636l4.636-4.636 L28.038,8.381z"/> </g> </svg> ');
You can also provide styles for position, size, etc.:
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: 50% 50%;
-webkit-mask-size: 80% 80%;
background-color: #007aff;
You can use a png or an SVG as a mask image. However, Windows Phone 8 has no support for any kind of image mask. Instead it uses symbol fonts.
Symbol Fonts
The most versatile way to create icons is by using a symbol font. A font can hold far more icons that you will probably every need for your app. To use the font for icons you just output the font directly into the icon tag, or output it as a pseudo element. Actually, this is what Windows 8 and Windows Phone 8 do for icons. They come with a special Segoe-UI Symbol font that provides all the icons for the operating system. The ChocolateChip-UI theme for Windows Phone 8 actually uses the native Segoe-UI Symbol font for some of the system level icons, such as the Windows back button.
Using a symbol font has the advantage that you can change the color of the icon by changing the font color. And you can scale your font icons up or down by merely changing the font size.
Creating your own symbol font is a good choice. There are a number of options from free to commercial prices for Websites and software to create custom fonts. You really only need the most basic font abilities because you are not making a font that needs custom leading, kerning and ligatures. If you create a TrueType or OpenType font, you'll need to convert it to WOFF format for use with your app. This can be done on Website that offer this service for free.
A symbol font has the advantage that all your icons are in one file, so it only needs to load once.
Here is how the show-detail indicator is created. A font value is put in a pseudo-element and then styles to resemble an icon:
.list > li.show-detail::after {
content: 'i';
display: block;
height: 20px;
width: 22px;
border-radius: 20px;
border: solid 1px #007aff;
color: #007aff;
font: bold 14px/0 'Times', serif;
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 10px 8px;
position: absolute;
top: 10px;
right: 15px;
}
And there the iOS back button, where the font character is expressed in Unicode:
a.button.back::before {
content: '\2303';
font-family: 'HelveticaNeue-Light', Courier;
font-weight: 100;
display: block;
height: 10px;
width: 10px;
-webkit-transform: rotate(-90deg);
position: absolute;
left: -2px;
top: 17px;
font-size: 24pt;
}
And here's the same back button for Windows 8:
a.button.back::before {
font-family: "Segoe UI Symbol";
font-weight: normal;
content: "\E0D5";
vertical-align: 50%;
font-size: 14pt;
display: block;
margin-left: -3px;
}


There are 2 ways to access to Settings View.
Set threshold(unit: thou=Milli inch) for use to calculate flick distance level.
(check: Multi phase flick)
These minimal values are 10.
Default values are shown in each settings summary.
Switch on-off of these input control functions.
If you want to know these functions detail, see Control with Multi tap.
You can change keyboard appearance from here.
You can change keyboard height here.
If you turn this preference on, keyboard layout changes to input easily for right hand.
It can also change from keyboard directory.
(check: Keymap > Adjustment)
If you feel bad to fling lower keys on landscape, then you should turn on to lift keyboard.


CFAjax Suggest with Zero Configuration
This example uses CFAjax suggest with very basic configuration, all the function and property
set in this example are the basic essentials that are required to run CFAjax suggest.
In order to use this example, move the cursor focus on the text field and enter the first character
of any us state e.g “v” for Virginia.
US State Name :


print("Pareto front:")
trials = {str(trial.values): trial for trial in study.best_trials}
trials = list(trials.values())
trials.sort(key=lambda t: t.values)
for trial in trials:
print(" Trial//{}".format(trial.number))
print(
print("Pareto front:")
trials = sorted(study.best_trials, key=lambda t: t.values)
for trial in trials:
print(" Trial//{}".format(trial.number))
print(


public interface SendingService extends Runnable, SoftStoppable
This Runnable is meant to be run in a separate Thread and to be (sort of) forgotten about. It is used within a Connection
.
| Modifier and Type | Method and Description |
|---|---|
void |
addSendDoneCallback(Callback<Object> callback)
Adds a Callback, that will be executed, if the object is sent
|
boolean |
isSetup()
This method returns whether or not this SendingService is setup or not.
|
void |
overrideSendingQueue(BlockingQueue<Object> linkedBlockingQueue)
Allows to override the internally saved instance of the BlockingQueue, that contains the Objects that should be send.
|
void |
setConnectionIDSupplier(java.util.function.Supplier<String> supplier)
Allows you to set a supplier, that defines the ConnectionID.
|
void |
setup(OutputStream outputStream,
BlockingQueue<Object> toSendFrom)
Sets up this SendingService.
|
Awaiting |
started()
Returns a synchronization mechanism, that allows to wait until the SendingService is setup.
|
running, softStop
void addSendDoneCallback(Callback<Object> callback)
callback
- the Callback, that should be held internally.void overrideSendingQueue(BlockingQueue<Object> linkedBlockingQueue)
This means, if set to a custom instance, you can provide custom Objects to be send
linkedBlockingQueue
- the new BlockingQueuevoid setup(OutputStream outputStream, BlockingQueue<Object> toSendFrom)
This means, internal dependencies will be resolved and this SendingService is ready to run.
outputStream
- the OutputStream, this SendingService should write to.toSendFrom
- the BlockingQueue, that the Objects to send should be taken fromAwaiting started()
This mechanism stops blocking if the SendingService is setup und running.
void setConnectionIDSupplier(java.util.function.Supplier<String> supplier)
supplier
- the Supplier, that creates the ConnectionIDboolean isSetup()
If it is setup, it can successfully run. To set it up, call setup(OutputStream, BlockingQueue)
.
setup(OutputStream, BlockingQueue)
Copyright © 2018. All rights reserved.


database: Different sets of directives are activated depending on the value of the parameter other. If this parameter is not specified, "kleio" is assumed.


--- layout: page title: Misc. ---
I'm currently dual-booting Arch Linux and NixOS (a purely functional linux distribution). I spend the vast majority of my time in emacs. Here's a nice quote from Neal Stephenson (1998; In the Beginning was the Command Line):
...the engineer-hours that, in the case of Microsoft Word, were devoted to features like mail merge, and the ability to embed feature-length motion pictures in corporate memoranda, were, in the case of emacs, focused with maniacal intensity on the deceptively simple-seeming problem of editing text. If you are a professional writer – i.e., if someone else is getting paid to worry about how your words are formatted and printed – emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish.


Tools for working with rotational data, including simulation from the most commonly used distributions on SO(3), methods for different Bayes, mean and median type estimators for the central orientation of a sample, confidence/credible regions for the central orientation based on those estimators and a novel visualization technique for rotation data. Most recently, functions to identify potentially discordant (outlying) values have been added.
| Version: | 1.5 |
| Depends: | R (≥ 3.2), ggplot2, Rcpp, rgl |
| Imports: | stats, utils, methods, sphereplot |
| LinkingTo: | Rcpp, RcppArmadillo |
| Suggests: | gridExtra, knitr, onion, orientlib, testthat |
| Published: | 2016-01-06 |
| Author: | Bryan Stanfill, Heike Hofmann, Ulrike Genschel |
| Maintainer: | Bryan Stanfill <bstanfill2003 at gmail.com> |
| BugReports: | https://github.com/stanfill/rotationsC/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/stanfill/rotationsC/tree/master/rotations |
| NeedsCompilation: | yes |
| Citation: | rotations citation info |
| Materials: | NEWS |
| CRAN checks: | rotations results |
| Reference manual: | rotations.pdf |
| Vignettes: |
Introduction to rotations |
| Package source: | rotations_1.5.tar.gz |
| Windows binaries: | r-devel: rotations_1.5.zip, r-release: rotations_1.5.zip, r-oldrel: rotations_1.5.zip |
| OS X binaries: | r-release: rotations_1.5.tgz, r-oldrel: rotations_1.5.tgz |
| Old sources: | rotations archive |
Please use the canonical form https://CRAN.R-project.org/package=rotations to link to this page.


--- title: adobeanalyticsr v0.2.1 - What's New? author: Ben R Woodard date: '2022-01-03' slug: [] categories: [] tags: [adobe analytics, R] images: ['newpackage.jpg'] authors: [benrwoodard] ---
I’m happy to announce there is a new version of adobeanalyticsr on CRAN. The new version brings some pretty big updates with it. Here are the top 4 that I feel are the biggest changes and improvements.
This has been a long time coming. I have to admit that I have been working on getting JWT authentication working since the first version of the R package was published but just couldn’t get it done. Early last year after the first version was published to CRAN I had several conversations with analysts who, unfortunately, could not use the R package simply because it only used the OAuth authentication process.
Well that all changes with adobeanalyticsr v0.2.1 thanks to the work of Charlie Gallagher. A few months back he submitted the package’s first official pull request from the community and it was JWT authentication.
The old ‘aw_token()’ function still works but has been deprecated due to the need to include 2 options for authentication versus just one. The goal was to not break existing workflows but enable future workflows to switch between authentication options as seamlessly as possible. (more on this below)
I’ve been using the new auth functions in my workflow since early November of last year and it is a great improvement, especially if you have the need to switch between authentication types.
The new update brings a change to the authentication process with some new functions:
aw_auth()
aw_auth_with()
aw_auth_name()
aw_auth_path()
There are a few options for setting session options that are going to be really helpful when creating automated workflows. There is a two step process that lets you set a session option for which authentication type you want to use. By using the function aw_auth_with('jwt')
you are setting your preferred method as jwt
(alternatively aw_auth_with('oauth')
sets the preferred method as oauth
) and then you can use the function aw_auth()
to authenticate, without having to define anything else.
In addition, you can also just include the value jwt
or oauth
in the aw_auth()
function call like so: aw_auth('jwt')
. I usually end up doing that since I’m mainly working on analysis reports and not developing work streams that require more modular development.
aw_auth('jwt')
## Successfully authenticated with JWT: access token valid until 2022-01-07 02:09:01
# or
aw_auth_with('jwt')
aw_auth()
## Successfully authenticated with JWT: access token valid until 2022-01-07 02:09:01
There are several big differences between these two types of authentication, more to come soon on what those are.
aw_token()
Since we have a new function that handles the authentication process, we have added an end of life notice for the aw_token() function with a life-cycle warning.
This function still exists but has been superseded by aw_auth()
. While it does not require a change right now, I would encourage you to start changing over to the new authentication functions, even if you are still using OAuth. We have added a live-cycle warning to help remind users to do so.
We have also added a new function which returns one or multiple segments as dimensions and their corresponding metrics in each row. The new function is aw_segment_table()
. It mimics the output of aw_freeform_table()
but doesn’t support dimension breakdowns at this time. It does however have a segment filter you can add so you are able to segment your segment report by another segment.
I think I get excited about most of these new features because of it creates an efficiency that can’t be created outside of code.
Here is a sample process you can use to run the report.
#pull up to 1,000 segments from adobe
segs <- aw_get_segments(limit = 1000, rsids = Sys.getenv('AW_REPORTSUITE_ID'))
This is a very simple example but I’m wanting to compare ‘Mobile’ and ‘Desktop’ visitors to the site. To get the Id for these, I’m simply using the base grepl()
function to pull back the Segment IDs.
mobilevisitors <- segs$id[grepl('Mobile Visitors', segs$name)]
desktopvisitors <- segs$id[grepl('Desktop Visitors', segs$name)]
segments <- c(mobilevisitors, desktopvisitors)
Now I can use those 2 segments to pull my data for each segment in a table.
df <- aw_segment_table(date_range = c('2021-11-01', '2021-12-31'),
segmentIds = segments,
metrics = c('visitors', 'visits', 'pageviews'))
## Getting 3 metrics for 2 segments...
## Done!
| name | id | visitors | visits | pageviews |
|---|---|---|---|---|
| Mobile Visitors | s300003965_61d5033245fa4d21d021d103 | 2790 | 3746 | 5883 |
| Desktop Visitors | s300003965_61d50339b6b2a971a557d296 | 12639 | 22366 | 32203 |
I’ll definitely be writing more on the different ways you can utilize this functions but even the most basic use cases have already proven to be a huge benefit to my analysis workflows.
If you have any questions or suggestions I would love to hear them. Let me know in the comments or via #MeasureSlack.


Avorion Script API Documentation
Sector [Server]
This object is only available on the server.
function Sector()
Returns
A new instance of Sector
| property Seed seed | [read-only] |
| property string name | [read-only] |
| property var numPlayers | [read-only] |
function Entity createStation(Faction faction, BlockPlan plan, Matrix position, string... scripts)
Convenience function to create a station. Creates a new station in the sector. A random name will be assigned in case of an AI station. This entity will have all components required for a default station.
Parameters
plan The plan of the station
position The position of the station
scripts An arbitrary number of script paths can be passed here, which will be added to the station in the order they are give.
Returns
An entity representing the new station
function Entity createShip(Faction faction, string name, BlockPlan plan, Matrix position)
Convenience function to create a ship. Creates a new ship in the sector. This entity will have all components required for a default ship.
Parameters
name The name of the ship, pass "" for a random name
plan The plan of the ship
position The position of the ship
Returns
An entity representing the new ship
function Entity createAsteroid(BlockPlan plan, bool mineable, Matrix position)
Convenience function to create an asteroid. Creates a new asteroid in the sector. This entity will have all components required for a default asteroid.
Parameters
resources 1 if the asteroid should have mineable resources, 0 if not
material The material of the asteroid and its resources
position The position of the asteroid
Returns
An entity representing the new asteroid
function Entity createWreckage(BlockPlan plan, Matrix position)
Convenience function to create a wreckage. Creates a new wreckage in the sector. This entity will have all components required for a default wreckage.
Parameters
position The position of the wreckage
Returns
An entity representing the new wreckage
function Entity createObject(BlockPlan plan, Matrix position)
Convenience function to create a default object. Creates a new default object in the sector. This object has basic components for appearance and physics simulation, such as a plan, velocity and physics
Parameters
position The position of the object
Returns
An entity representing the new object
function Entity createWormHole(int x, int y, Color color, float size)
Convenience function to create a wormhole. Creates a new wormhole in the sector. This entity will have all components required for a default wormhole.
Parameters
y The destination sector's Y coordinate
color The color of the wormhole
size The size of the wormhole
Returns
An entity representing the new wormhole
function Entity createEntity(EntityDescriptor descriptor)
Creates a new arbitrary entity in the sector
Parameters
Returns
The new entity
function resendEntity(Entity entity)
Returns
nothing
function dropBundle(vec3 position, Faction [or nil] reservedFor, Faction [or nil] deniedFor, int money, int... resources)
Returns
nothing
function Entity dropMoney(vec3 position, Faction [or nil] reservedFor, Faction [or nil] deniedFor, int amount)
function Entity dropResources(vec3 position, Faction [or nil] reservedFor, Faction [or nil] deniedFor, Material material, int amount)
function Entity dropCargo(vec3 position, Faction [or nil] reservedFor, Faction [or nil] deniedFor, TradingGood good, int owner, int amount)
function Entity dropColor(vec3 position, Faction [or nil] reservedFor, Faction [or nil] deniedFor, Color color)
function Entity dropRandomColor(vec3 position, Faction [or nil] reservedFor, Faction [or nil] deniedFor)
function Entity dropTurret(vec3 position, Faction [or nil] reservedFor, Faction [or nil] deniedFor, TurretTemplate desc)
function Entity dropSectorTurret(vec3 position, Faction [or nil] reservedFor, Faction [or nil] deniedFor)
function Entity dropUpgrade(vec3 position, Faction [or nil] reservedFor, Faction [or nil] deniedFor, SystemUpgradeTemplate upgrade)
function deleteEntity(Entity entity)
Sets an entity for deletion. The entity is not deleted right away, but will be marked for deletion and will be deleted at the end of the current frame.
Parameters
Returns
nothing
function deleteEntityJumped(Entity entity)
Sets an entity for deletion. The entity is not deleted right away, but will be marked for deletion and will be deleted at the end of the current frame. This function also creates a hyperspace animation when deleting the entity.
Parameters
Returns
nothing
function collectGarbage(var entity)
Immediately deletes all entities in the sector that are set for deletion. Don't call this function from an entity script. Only call this if you know what you're doing.
Parameters
Returns
nothing
function string resolveScriptPath(string path)
function var... invokeFunction(string script, string functionName, var... arguments)
function int addScript(string scriptPath, var... arguments)
function int addScriptOnce(string scriptPath, var... arguments)
function removeScript(var script)
Returns
nothing
function bool hasScript(string name)
function table<int, string> getScripts()
function registerCallback(string callbackName, string functionName)
Register a callback in the sector. The callback receiver has to be inside the sector for the registration to succeed. The callback will be removed if the receiver leaves the sector or gets destroyed, or the sector gets unloaded.
Parameters
functionName The name of the function that will be executed in the script when the callback happens
Returns
nothing
function unregisterCallback(string callbackName, string functionName)
Returns
nothing
function int, int getCoordinates()
Access the x, y coordinates of the sector
Returns
2 return values: x, y coordinates of the sector
function Entity getEntity(int index)
Find an entity by index in the sector.
Complexity: O(logn)
Parameters
Returns
The entity or nil if not found
function Entity getEntityByFactionAndName(int factionIndex, string name)
function Entity... getEntities()
Returns all entities in the sector
Returns
Multiple return values: All entities in the sector
function Entity... getEntitiesByType(int type)
Returns all entities in the sector that have a specific type
Parameters
Returns
Multiple return values: All matching entities in the sector
function Entity... getEntitiesByScript(string script)
Returns all entities in the sector that have a specific script attached to them
Parameters
Returns
Multiple return values: All matching entities in the sector
function Entity... getEntitiesByComponent(int type)
Returns all entities in the sector that have a specific component
Parameters
Returns
Multiple return values: All matching entities in the sector
function Entity... getEntitiesByComponents(ComponentType... types)
Returns all entities in the sector that have a specific set of components
Parameters
Returns
Multiple return values: All matching entities in the sector
function Entity... getEntitiesByLocation(Sphere sphere)
Returns all entities in the sector whose bounding spheres intersect with the given sphere. Entities without a bounding sphere component will not be considered.
Complexity: O(logn)
Parameters
Returns
Multiple return values: All matching entities in the sector
function Entity... getEntitiesByFaction(int factionIndex)
Returns all entities in the sector that belong to the given faction Complexity: O(n)
Parameters
Returns
Multiple return values: All matching entities in the sector
function Player... getPlayers()
Returns all players that are currently in the sector
Returns
Multiple return values: All players in the sector
function broadcastChatMessage(string sender, int messageType, string message, string... arguments)
Broadcast a chat message to all players that are currently in the sector.
Parameters
sender The sender that will be displayed for the chat message
messageType The type of chat message, 0 = Normal, 1 = Error, 2 = Warning, 3 = Info
Returns
nothing
function var getValue(string key)
Retrieves a custom value saved in the entity with the given key
Parameters
Returns
The value if the key exists, otherwise nil
function table<string, var> getValues()
Retrieves all key-value pairs of custom values of the entity
Returns
A table containing all custom key-value pairs
function setValue(string key, var value)
Sets a custom value
Parameters
value The value to save. Must be bool, number, string or nil. If nil is given, the value will be deleted.
Returns
nothing
Callbacks ClientSector Callbacks Entity Callbacks Galaxy Callbacks Player Callbacks Sector Callbacks Server Callbacks Turret Callbacks
Hangar BspTree DeletionTimer Engine Weapons Plan ShipAI Velocity InteractionText WormHole
QuadTree Ray Color Box vec2 vec3 vec4 dvec2 dvec3 dvec4 ivec2 ivec3 ivec4 Rect Matrix Sphere Seed Random FighterTemplate Rarity CraftStyle BlockPlanBlock BlockPlan EntityDescriptor Language Inventory PlanBspTree Weapon Crew CrewProfession CrewMan TurretTemplate InventoryTurret TradingGood Entity Mail Material SystemUpgradeTemplate PlayerId
Tooltip TooltipLine SelectionItem Planet Sector [Client] Galaxy [Client] Achievements Player [Client] GalaxyMap Faction [Client] Mouse Keyboard LaserFX
Line UIOrganizer UIVerticalLister UIHorizontalSplitter UIVerticalSplitter UIHorizontalMultiSplitter UIVerticalMultiSplitter UIArbitraryVerticalSplitter Tab TabbedWindow StatisticsBar ComboBox MultiLineTextBox UIElement PlanDisplayer ListBoxEx ListBox Window ScrollFrame Slider Frame TextBox Selection CheckBox Label TextField Button Picture UIRenderer NumbersBar UIContainer
This is the official documentation for the scripting API of Avorion. This documentation is automatically generated and not necessarily complete. Depending on the context in which functions exist, some documentation such as descriptions, return values or variable names or types may be missing.
Work in Progress. Documentation of Avorion Version: Beta 0.10.2 r7392


Call for action
Walet
Profile
3
Inbox
1
Profile
Settings
Actions
Lock Account
Log out
Your Title...
Your description goes here...
Add the reward...
Location...
Your email...
Enter information here
Title
Description
Address
Email
Reward
Image url
Call for action


The Siege of Jerusalem Electronic Archive presents full transcriptions and accompanying color images of all surviving manuscript versions of The Siege of Jerusalem, an anonymous 14th-century Middle English poem. Texts and images are accompanied by detailed descriptions of the manuscripts and tools for searching the archive and comparing the variant readings found in all manuscript copies. These materials are made available under agreement with partner libraries, and all users must review and accept our terms and conditions.
If you have questions or comments concerning this site, please contact Prof. Timothy Stinson at tlstinson@gmail.com.


"""The match_hostname() function from Python 3.3.3, essential when using SSL.""" # Note: This file is under the PSF license as the code comes from the python # stdlib. http://docs.python.org/3/license.html import re import sys # ipaddress has been backported to 2.6+ in pypi. If it is installed on the # system, use it to handle IPAddress ServerAltnames (this was added in # python-3.5) otherwise only do DNS matching. This allows # backports.ssl_match_hostname to continue to be used in Python 2.7. try: from pip._vendor import ipaddress except ImportError: ipaddress = None __version__ = "<IP_ADDRESS>" class CertificateError(ValueError): pass def _dnsname_match(dn, hostname, max_wildcards=1): """Matching according to RFC 6125, section 6.4.3 http://tools.ietf.org/html/rfc6125#section-6.4.3 """ pats = [] if not dn: return False # Ported from python3-syntax: # leftmost, *remainder = dn.split(r'.') parts = dn.split(r".") leftmost = parts[0] remainder = parts[1:] wildcards = leftmost.count("*") if wildcards > max_wildcards: # Issue #17980: avoid denials of service by refusing more # than one wildcard per fragment. A survey of established # policy among SSL implementations showed it to be a # reasonable choice. raise CertificateError( "too many wildcards in certificate DNS name: " + repr(dn) ) # speed up common case w/o wildcards if not wildcards: return dn.lower() == hostname.lower() # RFC 6125, section 6.4.3, subitem 1. # The client SHOULD NOT attempt to match a presented identifier in which # the wildcard character comprises a label other than the left-most label. if leftmost == "*": # When '*' is a fragment by itself, it matches a non-empty dotless # fragment. pats.append("[^.]+") elif leftmost.startswith("xn--") or hostname.startswith("xn--"): # RFC 6125, section 6.4.3, subitem 3. # The client SHOULD NOT attempt to match a presented identifier # where the wildcard character is embedded within an A-label or # U-label of an internationalized domain name. pats.append(re.escape(leftmost)) else: # Otherwise, '*' matches any dotless string, e.g. www* pats.append(re.escape(leftmost).replace(r"\*", "[^.]*")) # add the remaining fragments, ignore any wildcards for frag in remainder: pats.append(re.escape(frag)) pat = re.compile(r"\A" + r"\.".join(pats) + r"\Z", re.IGNORECASE) return pat.match(hostname) def _to_unicode(obj): if isinstance(obj, str) and sys.version_info < (3,): obj = unicode(obj, encoding="ascii", errors="strict") return obj def _ipaddress_match(ipname, host_ip): """Exact matching of IP addresses. RFC 6125 explicitly doesn't define an algorithm for this (section 1.7.2 - "Out of Scope"). """ # OpenSSL may add a trailing newline to a subjectAltName's IP address # Divergence from upstream: ipaddress can't handle byte str ip = ipaddress.ip_address(_to_unicode(ipname).rstrip()) return ip == host_ip def match_hostname(cert, hostname): """Verify that *cert* (in decoded format as returned by SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125 rules are followed, but IP addresses are not accepted for *hostname*. CertificateError is raised on failure. On success, the function returns nothing. """ if not cert: raise ValueError( "empty or no certificate, match_hostname needs a " "SSL socket or SSL context with either " "CERT_OPTIONAL or CERT_REQUIRED" ) try: # Divergence from upstream: ipaddress can't handle byte str host_ip = ipaddress.ip_address(_to_unicode(hostname)) except ValueError: # Not an IP address (common case) host_ip = None except UnicodeError: # Divergence from upstream: Have to deal with ipaddress not taking # byte strings. addresses should be all ascii, so we consider it not # an ipaddress in this case host_ip = None except AttributeError: # Divergence from upstream: Make ipaddress library optional if ipaddress is None: host_ip = None else: raise dnsnames = [] san = cert.get("subjectAltName", ()) for key, value in san: if key == "DNS": if host_ip is None and _dnsname_match(value, hostname): return dnsnames.append(value) elif key == "IP Address": if host_ip is not None and _ipaddress_match(value, host_ip): return dnsnames.append(value) if not dnsnames: # The subject is only checked when there is no dNSName entry # in subjectAltName for sub in cert.get("subject", ()): for key, value in sub: # XXX according to RFC 2818, the most specific Common Name # must be used. if key == "commonName": if _dnsname_match(value, hostname): return dnsnames.append(value) if len(dnsnames) > 1: raise CertificateError( "hostname %r " "doesn't match either of %s" % (hostname, ", ".join(map(repr, dnsnames))) ) elif len(dnsnames) == 1: raise CertificateError("hostname %r doesn't match %r" % (hostname, dnsnames[0])) else: raise CertificateError( "no appropriate commonName or subjectAltName fields were found" )


You are being redirected to the new home of friendly reservations! If your browser does not automatically redirect, then click on this link {{.Label}}.