ArchivaAdministrationService
The following resources are applicable:
- /archivaAdministrationService/addFileType
- /archivaAdministrationService/addFileTypePattern
- /archivaAdministrationService/addLegacyArtifactPath
- /archivaAdministrationService/applicationUrl
- /archivaAdministrationService/deleteLegacyArtifactPath
- /archivaAdministrationService/disabledInvalidContentConsumer/{invalidContentConsumer}
- /archivaAdministrationService/disabledKnownContentConsumer/{knownContentConsumer}
- /archivaAdministrationService/enabledInvalidContentConsumer/{invalidContentConsumer}
- /archivaAdministrationService/enabledInvalidContentConsumers
- /archivaAdministrationService/enabledKnownContentConsumer/{knownContentConsumer}
- /archivaAdministrationService/enabledKnownContentConsumers
- /archivaAdministrationService/getFileType
- /archivaAdministrationService/getFileTypes
- /archivaAdministrationService/getInvalidContentAdminRepositoryConsumers
- /archivaAdministrationService/getInvalidContentConsumers
- /archivaAdministrationService/getKnownContentAdminRepositoryConsumers
- /archivaAdministrationService/getKnownContentConsumers
- /archivaAdministrationService/getLegacyArtifactPaths
- /archivaAdministrationService/getNetworkConfiguration
- /archivaAdministrationService/getOrganisationInformation
- /archivaAdministrationService/getUiConfiguration
- /archivaAdministrationService/registrationDisabled
- /archivaAdministrationService/removeFileType
- /archivaAdministrationService/removeFileTypePattern
- /archivaAdministrationService/setNetworkConfiguration
- /archivaAdministrationService/setOrganisationInformation
- /archivaAdministrationService/setUiConfiguration
/archivaAdministrationService/addFileType
Mount Point: /restServices/archivaAdministrationService/addFileType
Available Since: 1.4-M1
POST
Available Since: 1.4-M1
Request Body
| element: | fileType |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/addFileTypePattern
Mount Point: /restServices/archivaAdministrationService/addFileTypePattern
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Parameters
| name | description | type | default |
|---|---|---|---|
| fileTypeId | (no documentation provided) | query | |
| pattern | (no documentation provided) | query |
Response Body
| element: | (custom) |
| media types: | application/xml text/plain application/json |
(no documentation provided)
/archivaAdministrationService/addLegacyArtifactPath
Mount Point: /restServices/archivaAdministrationService/addLegacyArtifactPath
Available Since: 1.4-M1
POST
Available Since: 1.4-M1
Request Body
| element: | legacyArtifactPath |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/applicationUrl
Mount Point: /restServices/archivaAdministrationService/applicationUrl
GET
Available Since: 1.4-M3
Response Body
| element: | (custom) |
| media types: | text/plain |
(no documentation provided)
/archivaAdministrationService/deleteLegacyArtifactPath
Mount Point: /restServices/archivaAdministrationService/deleteLegacyArtifactPath
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Parameters
| name | description | type | default |
|---|---|---|---|
| path | (no documentation provided) | query |
Response Body
| element: | (custom) |
| media types: | application/xml text/plain application/json |
(no documentation provided)
/archivaAdministrationService/disabledInvalidContentConsumer/{invalidContentConsumer}
Mount Point: /restServices/archivaAdministrationService/disabledInvalidContentConsumer/{invalidContentConsumer}
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Parameters
| name | description | type | default |
|---|---|---|---|
| invalidContentConsumer | (no documentation provided) | path |
Response Body
| element: | (custom) |
| media types: | application/xml text/plain application/json |
(no documentation provided)
/archivaAdministrationService/disabledKnownContentConsumer/{knownContentConsumer}
Mount Point: /restServices/archivaAdministrationService/disabledKnownContentConsumer/{knownContentConsumer}
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Parameters
| name | description | type | default |
|---|---|---|---|
| knownContentConsumer | (no documentation provided) | path |
Response Body
| element: | (custom) |
| media types: | application/xml text/plain application/json |
(no documentation provided)
/archivaAdministrationService/enabledInvalidContentConsumer/{invalidContentConsumer}
Mount Point: /restServices/archivaAdministrationService/enabledInvalidContentConsumer/{invalidContentConsumer}
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Parameters
| name | description | type | default |
|---|---|---|---|
| invalidContentConsumer | (no documentation provided) | path |
Response Body
| element: | (custom) |
| media types: | application/xml text/plain application/json |
(no documentation provided)
/archivaAdministrationService/enabledInvalidContentConsumers
Mount Point: /restServices/archivaAdministrationService/enabledInvalidContentConsumers
Available Since: 1.4-M1
POST
Available Since: 1.4-M1
Request Body
| element: | invalidContentConsumers |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/enabledKnownContentConsumer/{knownContentConsumer}
Mount Point: /restServices/archivaAdministrationService/enabledKnownContentConsumer/{knownContentConsumer}
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Parameters
| name | description | type | default |
|---|---|---|---|
| knownContentConsumer | (no documentation provided) | path |
Response Body
| element: | (custom) |
| media types: | application/xml text/plain application/json |
(no documentation provided)
/archivaAdministrationService/enabledKnownContentConsumers
Mount Point: /restServices/archivaAdministrationService/enabledKnownContentConsumers
Available Since: 1.4-M1
POST
Available Since: 1.4-M1
Request Body
| element: | knownContentConsumers |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/getFileType
Mount Point: /restServices/archivaAdministrationService/getFileType
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Parameters
| name | description | type | default |
|---|---|---|---|
| fileTypeId | (no documentation provided) | query |
Response Body
| element: | fileType |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/getFileTypes
Mount Point: /restServices/archivaAdministrationService/getFileTypes
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Response Body
| element: | (custom) |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/getInvalidContentAdminRepositoryConsumers
Mount Point: /restServices/archivaAdministrationService/getInvalidContentAdminRepositoryConsumers
GET
Available Since: 1.4-M3
Response Body
| element: | (custom) |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/getInvalidContentConsumers
Mount Point: /restServices/archivaAdministrationService/getInvalidContentConsumers
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Response Body
| element: | (custom) |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/getKnownContentAdminRepositoryConsumers
Mount Point: /restServices/archivaAdministrationService/getKnownContentAdminRepositoryConsumers
GET
Available Since: 1.4-M3
Response Body
| element: | (custom) |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/getKnownContentConsumers
Mount Point: /restServices/archivaAdministrationService/getKnownContentConsumers
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Response Body
| element: | (custom) |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/getLegacyArtifactPaths
Mount Point: /restServices/archivaAdministrationService/getLegacyArtifactPaths
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Response Body
| element: | (custom) |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/getNetworkConfiguration
Mount Point: /restServices/archivaAdministrationService/getNetworkConfiguration
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Response Body
| element: | networkConfiguration |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/getOrganisationInformation
Mount Point: /restServices/archivaAdministrationService/getOrganisationInformation
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Response Body
| element: | organisationInformation |
| media types: | application/xml text/plain application/json |
(no documentation provided)
/archivaAdministrationService/getUiConfiguration
Mount Point: /restServices/archivaAdministrationService/getUiConfiguration
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Response Body
| element: | uiConfiguration |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/registrationDisabled
Mount Point: /restServices/archivaAdministrationService/registrationDisabled
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Response Body
| element: | (custom) |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/removeFileType
Mount Point: /restServices/archivaAdministrationService/removeFileType
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Parameters
| name | description | type | default |
|---|---|---|---|
| fileTypeId | (no documentation provided) | query |
Response Body
| element: | (custom) |
| media types: | application/xml text/plain application/json |
(no documentation provided)
/archivaAdministrationService/removeFileTypePattern
Mount Point: /restServices/archivaAdministrationService/removeFileTypePattern
Available Since: 1.4-M1
GET
Available Since: 1.4-M1
Parameters
| name | description | type | default |
|---|---|---|---|
| fileTypeId | (no documentation provided) | query | |
| pattern | (no documentation provided) | query |
Response Body
| element: | (custom) |
| media types: | application/xml text/plain application/json |
(no documentation provided)
/archivaAdministrationService/setNetworkConfiguration
Mount Point: /restServices/archivaAdministrationService/setNetworkConfiguration
Available Since: 1.4-M1
POST
Available Since: 1.4-M1
Request Body
| element: | networkConfiguration |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/setOrganisationInformation
Mount Point: /restServices/archivaAdministrationService/setOrganisationInformation
Available Since: 1.4-M1
POST
Available Since: 1.4-M1
Request Body
| element: | organisationInformation |
| media types: | application/xml application/json |
(no documentation provided)
/archivaAdministrationService/setUiConfiguration
Mount Point: /restServices/archivaAdministrationService/setUiConfiguration
Available Since: 1.4-M1
POST
Available Since: 1.4-M1
Request Body
| element: | uiConfiguration |
| media types: | application/xml application/json |
(no documentation provided)


com.codemelon.graph.graph
Interfaces
GraphFactory
WeightedEdgeGraph
Classes
AbstractGraph
BfsGraph
DfsGraph
DirectedEdgeDataGraph
DirectedSimpleGraph
DirectedWeightedEdgeGraph
EdgeResetter
KruskalGraph
Transposer
UndirectedEdgeDataGraph
UndirectedSimpleGraph
UndirectedWeightedEdgeGraph
VertexResetter
Enums
OrderedDfsGraphFactory


Home
About
Concerts
News
Supporters
Contact Us
Become a Benefactor
Barrier Reef Orchestra
PO Box 576, Townsville Qld 4810
p: +61 7 47 222 789
e: brotownsville@gmail.com


This tests inserting a paragraph separator before a horizontal rule. You should see 'foo', empty paragraph, horizontal rule, 'bar', and the caret should be just before the horizontal rule.


|
|
**OpenEnergyMonitor Forums have now moved to https://community.openenergymonitor.org** |
0 |
6 days 2 hours ago by glyn.hudson |
n/a |
|
|
HELP US TO HELP YOU |
0 |
1 year 14 weeks ago by Bill Thomson |
n/a |
|
|
IF YOUR POST ISN'T VISIBLE IMMEDIATELY, PLEASE DON'T DOUBLE POST |
0 |
1 year 15 weeks ago by Bill Thomson |
n/a |
|
|
Please read before posting! |
0 |
3 years 33 weeks ago by Paul Reed |
n/a |
|
|
My Dashboard that's all folks (ish) :) Update V7.5 |
36 |
1 year 14 weeks ago by smitt1979 |
42 weeks 5 hours ago by firefox7518 |
|
|
Feature Request: Emoncms Event Module - support for MQTT |
31 |
2 years 21 weeks ago by nubble |
2 years 13 weeks ago by elyobelyob |
|
|
public dashboard |
20 |
2 years 47 weeks ago by Max |
2 years 34 weeks ago by Olivier |
|
|
New features for EmonCMS |
14 |
2 years 24 weeks ago by XaroRSA |
1 year 18 weeks ago by TrystanLea |
|
|
SteelSeries Gauges Coming Soon WIP |
14 |
3 years 23 weeks ago by XaroRSA |
49 weeks 6 days ago by dafyddhirst |
|
|
Temperature and photovolatic monitoring |
12 |
3 years 32 weeks ago by jb79 |
2 years 43 weeks ago by jb79 |
|
|
PV Panel Widgets for dashboard |
10 |
1 year 11 weeks ago by firefox7518 |
1 year 4 weeks ago by awinner |
|
|
Energy Diversion |
10 |
3 years 33 weeks ago by Paul Reed |
1 year 36 weeks ago by hapless |
|
|
AES Engineering Dashboard |
8 |
1 year 5 weeks ago by awtivy |
38 weeks 2 days ago by rjsears |
|
|
My Net Costs dashboard |
7 |
2 years 19 weeks ago by dBC |
2 years 3 weeks ago by sumnerboy |
|
|
Energy monitor, weather data and more |
7 |
3 years 32 weeks ago by Mattia Rossi |
2 years 48 weeks ago by sferrol |
|
|
Mqtt en Emoncms |
5 |
1 year 15 weeks ago by Fwerryb4 |
1 year 15 weeks ago by Fwerryb4 |
|
|
Getting started with emoncms |
5 |
1 year 44 weeks ago by pashanoid |
1 year 21 weeks ago by Toberwine |
|
|
upload directly from windows 8 |
4 |
1 year 30 weeks ago by nigel91 |
1 year 30 weeks ago by pb66 |
|
|
2 Aspect PV arrays and Solar Water monitor |
4 |
3 years 19 weeks ago by mad_dad |
3 years 17 weeks ago by Robert Wall |
|
|
Mobile Power Dials |
4 |
3 years 22 weeks ago by warlock |
3 years 1 week ago by fake-name (not verified) |
|
|
My Dashboards showing Solar production & Export + House usage over 4 CU's |
3 |
2 years 45 weeks ago by webby |
2 years 44 weeks ago by webby |
|
|
insert data |
2 |
1 year 6 weeks ago by cwodko |
1 year 5 weeks ago by cwodko |
|
|
Dashboard showcase |
2 |
1 year 10 weeks ago by Beire |
1 year 9 weeks ago by Beire |
|
|
Dashboard |
2 |
1 year 11 weeks ago by loop_1 |
1 year 11 weeks ago by loop_1 |
|
|
Integrate Dashboard on Website |
2 |
2 years 42 weeks ago by seb38300 |
1 year 43 weeks ago by Bruno |
|
|
My Main Dashboard |
2 |
2 years 45 weeks ago by nathanmonk |
2 years 45 weeks ago by nathanmonk |
|
|
Dashboard: Household, solar PV and Immersion diverter monitoring |
2 |
3 years 17 weeks ago by ngbod |
3 years 16 weeks ago by ngbod |
|
|
sum only positive value |
2 |
3 years 19 weeks ago by 360back |
3 years 19 weeks ago by 360back |
|
|
Dashboard on Website |
1 |
42 weeks 3 days ago by Gerardo |
42 weeks 3 days ago by firefox7518 |
|
|
Notify module |
1 |
2 years 30 weeks ago by<EMAIL_ADDRESS>|
2 years 2 weeks ago by James |
|
|
Using Automagic on Android |
1 |
3 years 11 weeks ago by rsegoly |
3 years 1 week ago by vfnewman |
|
|
Is data send to emoncms by using thier API stored and accsiable? |
1 |
3 years 11 weeks ago by rsegoly |
3 years 11 weeks ago by Robert Wall |
|
|
Graphs not working since recent site problem |
1 |
3 years 14 weeks ago by Guest |
3 years 11 weeks ago by Robert Wall |
|
|
My job with Emoncms.. |
0 |
47 weeks 5 days ago by fcattaneo |
n/a |
|
|
I use Emoncms for monitoring appliances using smart plugs with a modified / forked version of plugctl |
0 |
1 year 18 weeks ago by joyrider3774 |
n/a |
|
|
Problem uploading values to emoncms with arduino ethernet shield |
0 |
1 year 19 weeks ago by nigel91 |
n/a |
|
|
Heating controller with multi zone scheduling |
0 |
1 year 43 weeks ago by raniaaa |
n/a |
|
|
working on new bargraph possibilities |
0 |
1 year 43 weeks ago by mpruessmeier |
n/a |
|
|
My dashboard for the time..can change |
0 |
1 year 46 weeks ago by Larsjo |
n/a |
|
|
My per-circuit dashboard |
0 |
2 years 19 weeks ago by dBC |
n/a |
|
|
IBM Blog covering Creating a Home Automation network with @NodeRED, #mqtt, #jeenodes and @Openenergymon |
0 |
3 years 8 weeks ago by ukmoose |
n/a |
|
|
excess power control PV and multifuel stove control dashboard |
0 |
3 years 24 weeks ago by bakerA01 |
n/a |


Photo Frames
Rs 100.00
Paper Wall Hanging
Rs 50.00
Paper Snakes
Rs 80.00
Decor Piece - Fish
Rs 150.00
Flower Vase
Rs 300.00
Bookmarks - Set of 4
Rs 100.00
Bird House
Rs 250.00
Crayon Candles - Set of 3
Rs 150.00
Lanterns
Rs 350.00
Cartoon socks
Rs 450.00


| Module | ActionView::Helpers::PrototypeHelper |
| In: |
vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb
|
Provides a set of helpers for calling Prototype JavaScript functions, including functionality to call remote methods using Ajax. This means that you can call actions in your controllers without reloading the page, but still update certain parts of it using injections into the DOM. The common use case is having a form that adds a new element to a list without reloading the page.
To be able to use these helpers, you must include the Prototype JavaScript framework in your pages. See the documentation for ActionView::Helpers::JavaScriptHelper for more information on including the necessary JavaScript.
See link_to_remote for documentation of options common to all Ajax helpers.
See also ActionView::Helpers::ScriptaculousHelper for helpers which work with the Scriptaculous controls and visual effects library.
See JavaScriptGenerator for information on updating multiple elements on the page in an Ajax response.
| CALLBACKS | = | Set.new([ :uninitialized, :loading, :loaded, :interactive, :complete, :failure, :success ] + (100..599).to_a) |
| AJAX_OPTIONS | = | Set.new([ :before, :after, :condition, :url, :asynchronous, :method, :insertion, :position, :form, :with, :update, :script ]).merge(CALLBACKS) |
Returns ‘eval(request.responseText)’ which is the JavaScript function that form_remote_tag can call in :complete to evaluate a multiple update return document using update_element_function calls.
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 281 281: def evaluate_remote_response 282: "eval(request.responseText)" 283: end
Returns a form tag that will submit using XMLHttpRequest in the background instead of the regular reloading POST arrangement. Even though it’s using JavaScript to serialize the form elements, the form submission will work just like a regular submission as viewed by the receiving side (all elements available in params). The options for specifying the target with :url and defining callbacks is the same as link_to_remote.
A "fall-through" target for browsers that doesn’t do JavaScript can be specified with the :action/:method options on :html.
Example:
form_remote_tag :html => { :action => url_for(:controller => "some", :action => "place") }
The Hash passed to the :html key is equivalent to the options (2nd) argument in the FormTagHelper.form_tag method.
By default the fall-through action is the same as the one specified in the :url (and the default method is :post).
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 168 168: def form_remote_tag(options = {}) 169: options[:form] = true 170: 171: options[:html] ||= {} 172: options[:html][:onsubmit] = 173: (options[:html][:onsubmit] ? options[:html][:onsubmit] + "; " : "") + 174: "#{remote_function(options)}; return false;" 175: 176: form_tag(options[:html].delete(:action) || url_for(options[:url]), options[:html]) 177: end
Returns a link to a remote action defined by options[:url] (using the url_for format) that’s called in the background using XMLHttpRequest. The result of that request can then be inserted into a DOM object whose id can be specified with options[:update]. Usually, the result would be a partial prepared by the controller with render :partial.
Examples:
link_to_remote "Delete this post", :update => "posts", :url => { :action => "destroy", :id => post.id } link_to_remote(image_tag("refresh"), :update => "emails", :url => { :action => "list_emails" })
You can also specify a hash for options[:update] to allow for easy redirection of output to an other DOM element if a server-side error occurs:
Example:
link_to_remote "Delete this post", :url => { :action => "destroy", :id => post.id }, :update => { :success => "posts", :failure => "error" }
Optionally, you can use the options[:position] parameter to influence how the target DOM element is updated. It must be one of :before, :top, :bottom, or :after.
The method used is by default POST. You can also specify GET or you can simulate PUT or DELETE over POST. All specified with options[:method]
Example:
link_to_remote "Destroy", person_url(:id => person), :method => :delete
By default, these remote requests are processed asynchronous during which various JavaScript callbacks can be triggered (for progress indicators and the likes). All callbacks get access to the request object, which holds the underlying XMLHttpRequest.
To access the server response, use request.responseText, to find out the HTTP status, use request.status.
Example:
link_to_remote word, :url => { :action => "undo", :n => word_counter }, :complete => "undoRequestCompleted(request)"
The callbacks that may be specified are (in order):
| :loading: | Called when the remote document is being loaded with data by the browser. |
| :loaded: | Called when the browser has finished loading the remote document. |
| :interactive: | Called when the user can interact with the remote document, even though it has not finished loading. |
| :success: | Called when the XMLHttpRequest is completed, and the HTTP status code is in the 2XX range. |
| :failure: | Called when the XMLHttpRequest is completed, and the HTTP status code is not in the 2XX range. |
| :complete: | Called when the XMLHttpRequest is complete (fires after success/failure if they are present). |
You can further refine :success and :failure by adding additional callbacks for specific status codes.
Example:
link_to_remote word, :url => { :action => "action" }, 404 => "alert('Not found...? Wrong URL...?')", :failure => "alert('HTTP Error ' + request.status + '!')"
A status code callback overrides the success/failure handlers if present.
If you for some reason or another need synchronous processing (that’ll block the browser while the request is happening), you can specify options[:type] = :synchronous.
You can customize further browser side call logic by passing in JavaScript code snippets via some optional parameters. In their order of use these are:
| :confirm: | Adds confirmation dialog. |
| :condition: | Perform remote request conditionally by this expression. Use this to describe browser-side conditions when request should not be initiated. |
| :before: | Called before request is initiated. |
| :after: | Called immediately after request was initiated and before :loading. |
| :submit: | Specifies the DOM element ID that’s used as the parent of the form elements. By default this is the current form, but it could just as well be the ID of a table row or any other DOM element. |
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 133 133: def link_to_remote(name, options = {}, html_options = {}) 134: link_to_function(name, remote_function(options), html_options) 135: end
Observes the field with the DOM ID specified by field_id and makes an Ajax call when its contents have changed.
Required options are either of:
| :url: | url_for-style options for the action to call when the field has changed. |
| :function: | Instead of making a remote call to a URL, you can specify a function to be called instead. |
Additional options are:
| :frequency: | The frequency (in seconds) at which changes to this field will be detected. Not setting this option at all or to a value equal to or less than zero will use event based observation instead of time based observation. |
| :update: | Specifies the DOM ID of the element whose innerHTML should be updated with the XMLHttpRequest response text. |
| :with: | A JavaScript expression specifying the parameters for the XMLHttpRequest. This defaults to ‘value’, which in the evaluated context refers to the new field value. If you specify a string without a "=", it’ll be extended to mean the form key that the value should be assigned to. So :with => "term" gives "’term’=value". If a "=" is present, no extension will happen. |
| :on: | Specifies which event handler to observe. By default, it’s set to "changed" for text fields and areas and "click" for radio buttons and checkboxes. With this, you can specify it instead to be "blur" or "focus" or any other event. |
Additionally, you may specify any of the options documented in link_to_remote.
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 358 358: def observe_field(field_id, options = {}) 359: if options[:frequency] && options[:frequency] > 0 360: build_observer('Form.Element.Observer', field_id, options) 361: else 362: build_observer('Form.Element.EventObserver', field_id, options) 363: end 364: end
Like observe_field, but operates on an entire form identified by the DOM ID form_id. options are the same as observe_field, except the default value of the :with option evaluates to the serialized (request string) value of the form.
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 370 370: def observe_form(form_id, options = {}) 371: if options[:frequency] 372: build_observer('Form.Observer', form_id, options) 373: else 374: build_observer('Form.EventObserver', form_id, options) 375: end 376: end
Periodically calls the specified url (options[:url]) every options[:frequency] seconds (default is 10). Usually used to update a specified div (options[:update]) with the results of the remote call. The options for specifying the target with :url and defining callbacks is the same as link_to_remote.
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 142 142: def periodically_call_remote(options = {}) 143: frequency = options[:frequency] || 10 # every ten seconds by default 144: code = "new PeriodicalExecuter(function() {#{remote_function(options)}}, #{frequency})" 145: javascript_tag(code) 146: end
Works like form_remote_tag, but uses form_for semantics.
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 180 180: def remote_form_for(object_name, *args, &proc) 181: options = args.last.is_a?(Hash) ? args.pop : {} 182: concat(form_remote_tag(options), proc.binding) 183: fields_for(object_name, *(args << options), &proc) 184: concat('</form>', proc.binding) 185: end
Returns the JavaScript needed for a remote function. Takes the same arguments as link_to_remote.
Example:
<select id="options" onchange="<%= remote_function(:update => "options", :url => { :action => :update_options }) %>"> <option value="0">Hello</option> <option value="1">World</option> </select>
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 294 294: def remote_function(options) 295: javascript_options = options_for_ajax(options) 296: 297: update = '' 298: if options[:update] && options[:update].is_a?(Hash) 299: update = [] 300: update << "success:'#{options[:update][:success]}'" if options[:update][:success] 301: update << "failure:'#{options[:update][:failure]}'" if options[:update][:failure] 302: update = '{' + update.join(',') + '}' 303: elsif options[:update] 304: update << "'#{options[:update]}'" 305: end 306: 307: function = update.empty? ? 308: "new Ajax.Request(" : 309: "new Ajax.Updater(#{update}, " 310: 311: url_options = options[:url] 312: url_options = url_options.merge(:escape => false) if url_options.is_a?(Hash) 313: function << "'#{url_for(url_options)}'" 314: function << ", #{javascript_options})" 315: 316: function = "#{options[:before]}; #{function}" if options[:before] 317: function = "#{function}; #{options[:after]}" if options[:after] 318: function = "if (#{options[:condition]}) { #{function}; }" if options[:condition] 319: function = "if (confirm('#{escape_javascript(options[:confirm])}')) { #{function}; }" if options[:confirm] 320: 321: return function 322: end
Returns a button input tag that will submit form using XMLHttpRequest in the background instead of regular reloading POST arrangement. options argument is the same as in form_remote_tag.
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 191 191: def submit_to_remote(name, value, options = {}) 192: options[:with] ||= 'Form.serialize(this.form)' 193: 194: options[:html] ||= {} 195: options[:html][:type] = 'button' 196: options[:html][:onclick] = "#{remote_function(options)}; return false;" 197: options[:html][:name] = name 198: options[:html][:value] = value 199: 200: tag("input", options[:html], false) 201: end
Returns a JavaScript function (or expression) that’ll update a DOM element according to the options passed.
Examples:
<%= javascript_tag(update_element_function("products", :position => :bottom, :content => "
New product!
")) %> <% replacement_function = update_element_function("products") do %>
Product 1

Product 2
 <% end %> <%= javascript_tag(replacement_function) %>
This method can also be used in combination with remote method call where the result is evaluated afterwards to cause multiple updates on a page. Example:
# Calling view <%= form_remote_tag :url => { :action => "buy" }, :complete => evaluate_remote_response %> all the inputs here... # Controller action def buy @product = Product.find(1) end # Returning view <%= update_element_function( "cart", :action => :update, :position => :bottom, :content => "
New Product: #{@product.name}
")) %> <% update_element_function("status", :binding => binding) do %> You've bought a new product! <% end %>
Notice how the second call doesn’t need to be in an ERb output block since it uses a block and passes in the binding to render directly. This trick will however only work in ERb (not Builder or other template forms).
See also JavaScriptGenerator and update_page.
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 252 252: def update_element_function(element_id, options = {}, &block) 253: content = escape_javascript(options[:content] || '') 254: content = escape_javascript(capture(&block)) if block 255: 256: javascript_function = case (options[:action] || :update) 257: when :update 258: if options[:position] 259: "new Insertion.#{options[:position].to_s.camelize}('#{element_id}','#{content}')" 260: else 261: "$('#{element_id}').innerHTML = '#{content}'" 262: end 263: 264: when :empty 265: "$('#{element_id}').innerHTML = ''" 266: 267: when :remove 268: "Element.remove('#{element_id}')" 269: 270: else 271: raise ArgumentError, "Invalid action, choose one of :update, :remove, :empty" 272: end 273: 274: javascript_function << ";\n" 275: options[:binding] ? concat(javascript_function, options[:binding]) : javascript_function 276: end
Yields a JavaScriptGenerator and returns the generated JavaScript code. Use this to update multiple elements on a page in an Ajax response. See JavaScriptGenerator for more information.
# File vendor/rails/actionpack/lib/action_view/helpers/prototype_helper.rb, line 675 675: def update_page(&block) 676: JavaScriptGenerator.new(@template, &block).to_s 677: end
Works like update_page but wraps the generated JavaScript in a


Configure wiki markup generation and replacement/insertion settings.
Available markup generators:
You can get links of uploaded attachments. Variable like $LINK[n] will be replaced with link which match
link of uploaded attachment on Confluence.Where n is position number of attached
file(links in array LINK[] will be provided in uploading order on Confluence).
Example of usage:
$JOB_NAME build artifact
- Plain text
Enter custom text for the replacement. Build variables in the replacement text will be expanded.
Available editors:
- Prepend
Content is added to the very beginning of the page
- Append
Content is added to the very end of the page.
- Before Token
Content is inserted before a configurable marker token.
- After Token
Content is inserted after a configurable marker token.
- Between Tokens
Content is inserted between two configurable start/end marker tokens. Existing content between the tokens is replaced.


What is Politicolor?
PolitiColor is an app that converts tweets into sentiment information on the 2016 Presidential Election. Using a choropleth map, Twitter opinions expressed in tweets are color coded and mapped by state. Users can quickly view sentiment data on their favorite candidates, or on general sentiment between the two major parties. When Twitter opinion in a state swings in favor of a candidate, their color appears more prominently; if the opposite occurs, the opposing color is displayed.
PolitiColor is just in time for election season. With campaigns and the country gearing up for the first caucuses and primaries, Politicolor provides a unique outlet for information that is difficult to gather and arguably more accurate than the tried and true method of polls. Politicolor is real time and digital; it can be accessed everywhere and is constantly updating. As a result, even the most tireless of political junkies can get their fill of data and analytics.
How PolitiColor works
The Hose
Twitter is in many ways the heartbeat of the population. Where most people see social media, Politicolor sees data. By tracking thousands of tweets per hour, Politicolor can one-up polls and get a more accurate representation of how people actually feel.
The Engine
The Engine is the centerpiece of Politicolor. To function, Politicolor needs to convert the barely-english of Twitter into something readable for machines. The Engine, composed of a unique machine learning POS algorithm, does just that.
The Calculator
Each individual tweet is a small drop in a huge ocean; to see real data connections, Politicolor uses The Calculator to aggregate the data and draw out meaningful information.
The Map
There is a lot of information being distilled and displayed very rapidly, so design and polish must be the watchwords of Politicolor. The Map above, built to be easily understood, works to draw the user in.
The Sentiment Engine explained
PolitiColor relies on the sentiment engine that powers the natural language processing backend. Here, we break down the engine pipeline to get a better look at what is happening under the hood. NLP here consists of a series of normalization parameters, followed by keyword tagging, and finally sentiment calculation.
Tweets come in from Twitter queries that is related to the political information we are looking for. The Twitter query alone acts as our first filter, ensuring that we are not picking up the daily tweets irrelevant to politics. Each tweet is then filtered against readable location information that can be converted into a state. This leaves about 50 thousand tweets per hour at its peak.
Each tweet is then passed into the sentiment engine. First, the engine normalizes the tweets by replacing slang and emoticons where appropriate, and tagging words that need to be grouped in order to be relevant (e.g. 'Tea-Party' vs 'Tea Party'). Next, the engine looks for keywords in the tweet that may be relevant to the data points we are looking for, and tags the tweet with any keywords it finds. Finally, the tweet is broken down into parts of speech and passed into a sentiment calculator that was manually trained with about 30 thousand tweets. The sentiment calculator converts the tweet into a number - a sentiment - related to the keywords that were tagged previously.
At this point, the data is considered processed and the tweet information is passed along to the aggregator for further analysis.


We provide a meal and recipe for you.
Just a meal may not enough, so we additionally provide you a movie for a better experience.
Randomize may not satisfied your need. That's why we provide an in-developing more options search


Demos
Demo 1
Demo 2
Demo 3
Demo 4
Demo 5
Additional Resources
3js Sample Apps
3js Documentation
Making Earth
PluralSight Video


{% if private == True and right == "owner" %}
Invite People to join your private room (seperate by a single comma (,))
Submit
{% endif %}
Send Message
Send Message
Users
{% for user in users %}
{{ user }}
offline
{% endfor %}


Top 3 Issues
1. Bad road condition in Jalan Kerinchi
2. No street lights in Setapak park, jln 23
3. Electrical cable catches fire at Jln Gasing


All Classes
action
action2
Activity
Blockd
Board
calPanel
Computer
Computer
ComputerMouseAdapter
ComputerPanel
Controller
Course
DataBase
Day
Distribution
Draughts
EndMemoryActionListener
EquipmentView
ExperimentBoard
ExponentialDistribution
GameCalendar
GUI
Hangman
HangmanGame
HangmanView
IndexView
Item
ItemView
KonamiAdapter
Lecturer
Log
Memory
MemoryCard
MemoryFrame
MyFrame
MyFrame
MyInfoFrame
MyMouseAdapter
MyMouseAdapter
MyPanel
NewGame
NormalDistribution
OKButtonAdapter
Pawn
Player
PlayerMouseAdapter
PlayerPanel
Pole
Pole.PolePawn
RandomEvent
Semester
Ship
ShipPlayer
Ships
ShipsBoard
ShipsController
ShipsField
Shop
ShopView
StartMemoryActionListener
UniformDistribution
ViewManager
XMLhandler


Package org.drip.sample.tadonkivial
Tadonki-Vial Cardinality Bound Allocation
- Author:
- Lakshmi Krishnamurthy
-
Class Summary Class Description HeuristicCardinalityBoundOptimizer01 HeuristicCardinalityBoundOptimizer01 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer02 HeuristicCardinalityBoundOptimizer02 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer03 HeuristicCardinalityBoundOptimizer03 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer04 HeuristicCardinalityBoundOptimizer04 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer05 HeuristicCardinalityBoundOptimizer05 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer06 HeuristicCardinalityBoundOptimizer06 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer07 HeuristicCardinalityBoundOptimizer07 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer08 HeuristicCardinalityBoundOptimizer08 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer09 HeuristicCardinalityBoundOptimizer09 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer10 HeuristicCardinalityBoundOptimizer10 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer11 HeuristicCardinalityBoundOptimizer11 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer12 HeuristicCardinalityBoundOptimizer12 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer13 HeuristicCardinalityBoundOptimizer13 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer14 HeuristicCardinalityBoundOptimizer14 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer15 HeuristicCardinalityBoundOptimizer15 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer16 HeuristicCardinalityBoundOptimizer16 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer17 HeuristicCardinalityBoundOptimizer17 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.HeuristicCardinalityBoundOptimizer18 HeuristicCardinalityBoundOptimizer18 demonstrates the Setup and Execution of a Cardinality Bounded Portfolio Allocator with Asset Level Bounds using the Tadonki-Vial (2004) Heuristics.


Plankton Annotator
You are logged in as {{ session.username }}
Logout
Overview
Label Images
{% block body %}{% endblock %}


interactions amino interaction cation-π salt-bridge acids energies structure Chem acid bridge Lys Arg channel Fig amantadine amide Phys binding chain {border-style interactions. kJ/mol px;} virus #ffffff;} protein using Asp hydrogen influenza phase acidic aromatic energy (Arg proton shown Bond group molecular salt CCSD(T) Glu bonds hydrophobic interactions, s-b stronger Tyr, bond calculated study types strong aqueous cation-π, form important neuraminidase play protonated range structures Table Trp Wang calculations carboxyl electrostatic gaseous hepatitis ion pairs px; residues {font-family (Phe, Amino However, Interaction Leu, Liu Trp, alkaline basis design font-size ligand method roles solvation Aqueous Comput G(d,p) Gaseous His) Rev Science Ser, bridge, chains chemical density double; high interaction. natural optimized protein-protein proteins role sites typical –His. (COO (NA) (NH (or ./nature China Chou His). Huang Nature QSD affected based border-color border-width cations channel. drug effects functional histidine inhibitor initio kJ/mol. method. methods model occur quantum solid; solution theory {font-style {font-weight –His (Glu (His) (PDB ./journal.pone..t Amide Asn Cation-π MP/–G(d,p) National Phe Proteins Sci Scuseria Theoretical Trp-. Waals atoms bold code: conditions. courier; der different doubles drugs em; forming geometries groups indole inhibitors kJ/mol) ligands listed mutation new oxygen peptides phase. pocket pockets polarizable protein-DNA protein-ligand proteins, pt;} set singles solutions solvent stable studies targeting van weakened π-plane –Asp


LOCATION & MENUES
REVIEW
ATLANTA action
CHARLOTTE-WAVERLY
CHARLOTTE-PARK ROAD
MYRTLE BEACH
RALEIGH
SAVANNAH
ABOUT
GIFT CARD
PRESS
ORDER ONLINE
A MODERN TAKE ON TRADITIONAL SOUTHEAST ASIAN CUISINE
Pho
Ramen
Dumplings
Banh Mi
Sushi
Cocktails
ATLANTA
CHARLESTON
CHARLOTTE-WAVERLY
CHARLOTTE-PARK ROAD
MYRTEL BEACH
RALEIGH
SAVANNAH
Previous
Next


{% load static %}
This system allows for the registration of materials resources, bridging the gap between existing resources and the end users. The Registry functions as a centrally located service, making the registered information available for research to the materials community.
This is being developed at the National Institute of Standards and Technology and is made available to solicit comments from the Material Science community. Please do not enter any proprietary data into this system.


e
Hi! I'm Shaleila
I'm currently a Consultant at Oliver Wyman, and was recently a UX Researcher at UCL's Interaction Center in London. A Master's in Human-Computer Interaction Master's from UCL brought me to the city. Previously, I was a Product Manager at The Atlantic. I'm based in London, by way of Mumbai, Singapore, Chicago, Washington D.C., and a few other stops along the way! I'm a creative at heart and love to design, create, and optimize. Design thinking, people-centric strategy, and the clever use of digital media fascinate me.
I also make music in my free time, and keep up with the latest in cinema - give my podcast a listen! Talk to me about FC Barcelona, K-Pop history, performing sketch comedy, or concerts.
My interests and involvement can be best expressed through my projects, so take a look!
Gus the Cactus, a bedside assistant prototype promoting mental health, built using Arduino Uno and associated sensors and motors. Take a look at the building process!
TamponTimer, a Fitbit app to help keep TSS at bay. CSS, not TSS!
Are You Still Watching? - A podcast about movies that I co-host with my friend, Eric! We're on Spotify, Apple Podcasts, Google Podcasts, Patreon, and anywhere you get your podcasts!
SNKS & LDNRS, a Fitbit Versa companion app that I created using the Fitbit SDK
Ariana Grande's discography, explored through Machine Learning models and NLP. Take a look at the data and work: I and II
Pill Pal, an Alexa skill for birth control education. Available now on the Alexa Skills store!
On the Wildcat Welcome Board of Directors where I served as Director for the School of Education and Social Policy


Random numbers are required in a number of different problem domains, such as
"Numerical Recipes in C: The art of scientific computing", William H. Press, Saul A. Teukolsky, William A. Vetterling, Brian P. Flannery, 2nd ed., 1992, pp. 274-328Depending on the requirements of the problem domain, different variations of random number generators are appropriate:
The goals for this library are the following:
A number generator is a function object (std:20.3
[lib.function.objects]) that takes zero arguments. Each call to
operator()
returns a number. In the following table,
X
denotes a number generator class returning objects of type
T
, and u
is a value of X
.
NumberGenerator
requirements |
||
|---|---|---|
| expression | return type | pre/post-condition |
X::result_type |
T | std::numeric_limits<T>::is_specialized is true,
T is LessThanComparable |
u.operator()() |
T | - |
Note: The NumberGenerator requirements do not impose any restrictions on the characteristics of the returned numbers.
A uniform random number generator is a NumberGenerator that provides a sequence of random numbers uniformly distributed on a given range. The range can be compile-time fixed or available (only) after run-time construction of the object.
The tight lower bound of some (finite) set S is the (unique) member l in S, so that for all v in S, l <= v holds. Likewise, the tight upper bound of some (finite) set S is the (unique) member u in S, so that for all v in S, v <= u holds.
In the following table, X
denotes a number generator class
returning objects of type T
, and v
is a const
value of X
.
UniformRandomNumberGenerator requirements |
||
|---|---|---|
| expression | return type | pre/post-condition |
X::has_fixed_range |
bool |
compile-time constant; if true , the range on which the
random numbers are uniformly distributed is known at compile-time and
members min_value and max_value exist.
Note: This flag may also be false due to compiler
limitations. |
X::min_value |
T |
compile-time constant; min_value is equal to
v.min() |
X::max_value |
T |
compile-time constant; max_value is equal to
v.max() |
v.min() |
T |
tight lower bound on the set of all values returned by
operator() . The return value of this function shall not
change during the lifetime of the object. |
v.max() |
T |
if std::numeric_limits<T>::is_integer , tight
upper bound on the set of all values returned by
operator() , otherwise, the smallest representable number
larger than the tight upper bound on the set of all values returned by
operator() . In any case, the return value of this function
shall not change during the lifetime of the object. |
The member functions min
, max
, and
operator()
shall have amortized constant time complexity.
Note: For integer generators (i.e. integer T
), the
generated values x
fulfill min() <= x <=
max()
, for non-integer generators (i.e. non-integer T
),
the generated values x
fulfill min() <= x <
max()
.
Rationale: The range description with min
and
max
serves two purposes. First, it allows scaling of the
values to some canonical range, such as [0..1). Second, it describes the
significant bits of the values, which may be relevant for further
processing.
The range is a closed interval [min,max] for integers, because the
underlying type may not be able to represent the half-open interval
[min,max+1). It is a half-open interval [min, max) for non-integers,
because this is much more practical for borderline cases of continuous
distributions.
Note: The UniformRandomNumberGenerator concept does not require
operator()(long)
and thus it does not fulfill the
RandomNumberGenerator (std:25.2.11 [lib.alg.random.shuffle]) requirements.
Use the random_number_generator
adapter for that.
Rationale: operator()(long)
is not provided, because
mapping the output of some generator with integer range to a different
integer range is not trivial.
A non-deterministic uniform random number generator is a UniformRandomNumberGenerator that is based on some stochastic process. Thus, it provides a sequence of truly-random numbers. Examples for such processes are nuclear decay, noise of a Zehner diode, tunneling of quantum particles, rolling a die, drawing from an urn, and tossing a coin. Depending on the environment, inter-arrival times of network packets or keyboard events may be close approximations of stochastic processes.
The class random_device
is a model for
a non-deterministic random number generator.
Note: This type of random-number generator is useful for security applications, where it is important to prevent that an outside attacker guesses the numbers and thus obtains your encryption or authentication key. Thus, models of this concept should be cautious not to leak any information, to the extent possible by the environment. For example, it might be advisable to explicitly clear any temporary storage as soon as it is no longer needed.
A pseudo-random number generator is a UniformRandomNumberGenerator which provides a deterministic sequence of pseudo-random numbers, based on some algorithm and internal state. Linear congruential and inversive congruential generators are examples of such pseudo-random number generators. Often, these generators are very sensitive to their parameters. In order to prevent wrong implementations from being used, an external testsuite should check that the generated sequence and the validation value provided do indeed match.
Donald E. Knuth gives an extensive overview on pseudo-random number generation in his book "The Art of Computer Programming, Vol. 2, 3rd edition, Addison-Wesley, 1997". The descriptions for the specific generators contain additional references.
Note: Because the state of a pseudo-random number generator is necessarily finite, the sequence of numbers returned by the generator will loop eventually.
In addition to the UniformRandomNumberGenerator requirements, a
pseudo-random number generator has some additional requirements. In the
following table, X
denotes a pseudo-random number generator
class returning objects of type T
, x
is a value
of T
, u
is a value of X
, and
v
is a const
value of X
.
PseudoRandomNumberGenerator
requirements |
||
|---|---|---|
| expression | return type | pre/post-condition |
X() |
- | creates a generator in some implementation-defined state. Note: Several generators thusly created may possibly produce dependent or identical sequences of random numbers. |
explicit X(...) |
- | creates a generator with user-provided state; the implementation shall specify the constructor argument(s) |
u.seed(...) |
void | sets the current state according to the argument(s); at least functions with the same signature as the non-default constructor(s) shall be provided. |
X::validation(x) |
bool |
compares the pre-computed and hardcoded 10001th element in the
generator's random number sequence with x . The generator
must have been constructed by its default constructor and
seed must not have been called for the validation to be
meaningful. |
Note: The seed
member function is similar to the
assign
member function in STL containers. However, the naming
did not seem appropriate.
Classes which model a pseudo-random number generator shall also model
EqualityComparable, i.e. implement operator==
. Two
pseudo-random number generators are defined to be equivalent if
they both return an identical sequence of numbers starting from a given
state.
Classes which model a pseudo-random number generator should also model
the Streamable concept, i.e. implement operator<<
and
operator>>
. If so, operator<<
writes
all current state of the pseudo-random number generator to the given
ostream
so that operator>>
can restore the
state at a later time. The state shall be written in a platform-independent
manner, but it is assumed that the locale
s used for writing
and reading be the same. The pseudo-random number generator with the
restored state and the original at the just-written state shall be
equivalent.
Classes which model a pseudo-random number generator may also model the
CopyConstructible and Assignable concepts. However, note that the sequences
of the original and the copy are strongly correlated (in fact, they are
identical), which may make them unsuitable for some problem domains. Thus,
copying pseudo-random number generators is discouraged; they should always
be passed by (non-const
) reference.
The classes rand48
, minstd_rand
, and
mt19937
are models for a pseudo-random number generator.
Note: This type of random-number generator is useful for
numerics, games and testing. The non-zero arguments constructor(s) and the
seed()
member function(s) allow for a user-provided state to
be installed in the generator. This is useful for debugging Monte-Carlo
algorithms and analyzing particular test scenarios. The Streamable concept
allows to save/restore the state of the generator, for example to re-run a
test suite at a later time.
A random distribution produces random numbers distributed according to
some distribution, given uniformly distributed random values as input. In
the following table, X
denotes a random distribution class
returning objects of type T
, u
is a value of
X
, x
is a (possibly const) value of
X
, and e
is an lvalue of an arbitrary type that
meets the requirements of a uniform random number generator, returning
values of type U
.
Random distribution requirements (in
addition to number generator, CopyConstructible , and
Assignable ) |
|||
|---|---|---|---|
| expression | return type | pre/post-condition | complexity |
X::input_type |
U | - | compile-time |
u.reset() |
void |
subsequent uses of u do not depend on values produced
by e prior to invoking reset . |
constant |
u(e) |
T |
the sequence of numbers returned by successive invocations with the
same object e is randomly distributed with some
probability density function p(x) |
amortized constant number of invocations of e |
os << x |
std::ostream& |
writes a textual representation for the parameters and additional
internal data of the distribution x to
os .post: The os.fmtflags and fill character are
unchanged. |
O(size of state) |
is >> u |
std::istream& |
restores the parameters and additional internal data of the
distribution u .pre: is provides a textual representation that was
previously written by operator<< post: The is.fmtflags are unchanged. |
O(size of state) |
Additional requirements: The sequence of numbers produced by repeated
invocations of x(e)
does not change whether or not os
<< x
is invoked between any of the invocations
x(e)
. If a textual representation is written using os
<< x
and that representation is restored into the same or a
different object y
of the same type using is >>
y
, repeated invocations of y(e)
produce the same
sequence of random numbers as would repeated invocations of
x(e)
.
A quasi-random number generator is a Number Generator which provides a deterministic sequence of numbers, based on some algorithm and internal state. The numbers do not have any statistical properties (such as uniform distribution or independence of successive values).
Note: Quasi-random number generators are useful for Monte-Carlo integrations where specially crafted sequences of random numbers will make the approximation converge faster.
[Does anyone have a model?]
Revised 05 December, 2006
Copyright © 2000-2003 Jens Maurer
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


You can either Book a Fitness Center at your nearby location or take a Membership in whichever Fitness form you want to go with like:
You can book session or hire a fitness expert for the wellness of your employees at office. You can book a free Consultation and hire the Fitness Coach for your company.
You can take Online Consultations at yor own pace from Home via Video Call or Telephonic Sessions and our Health Professions will help you out. You can also take Individual or Group workout sessions.
Grassion aims at revolutionizing the Fitness Sector and creating a better Place for the World to live in. A time when everything related to Fitness will be accessible in a better way. A World where everyone is Healthy and Happy!


{{ $parent.$parent.resx.Duration_Txt }}: {{ video.duration }}
No videos have been added to this course. Click here to add videos.


Get ready for a sparkling Christmas with Macmillan Children’s Books by various authors - book reviews -
by Pam NorfolkRapturous reading, festive fun, and gifts galore are on the cards as Macmillan Children’s Books gear up for the season of goodwill, good food… and good books!
Age 4 plus:
The Night Before Christmas in Wonderland
Carys Bexington and Kate Hindley
‘Twas the night before Christmas… with a wonderful Wonderland twist!
Lewis Carroll’s classic Wonderland returns but this time instead of Alice, it’s Santa’s turn for an adventure down the rabbit hole. Join the Cheshire-Cat, the Mad Hatter and the reindeer for a tea party with lots of festive rhyming fun.
The Queen of Hearts hates Christmas… she has banned tinsel, mince pies and even good cheer because when she was a little princess, the White Rabbit was late delivering her letter to Father Christmas and she didn’t receive a present. But one snowy Christmas Eve, Santa finally receives her letter and races to deliver her gift! Will Santa and his reindeer be able to put the Merry back into Christmas in Wonderland?
All the magic, nostalgia and spirit of kindness that mark out Christmas spring to life in this funny, thought-provoking book inspired by Carroll’s famous Wonderland poems and characters, and Clement C. Moore’s classic festive poem ‘Twas the Night Before Christmas.
Written by debut author Carys Bexington, who has a soft spot for characters that don’t always make the best choices, and illustrated by star artist Kate Hindley, The Night Before Christmas in Wonderland embodies the true meaning of Christmas and will bring joy to all the family.
(Macmillan Children’s Books, hardback, £12.99)
Age 9 plus:
Shadows of Winterspell
Amy Wilson
Inventive author Amy Wilson is proving that she certainly has the magic touch when it comes to children’s adventure stories.
Shadows of Winterspell, a captivating story sparkling with frost and magic, is the extraordinary follow-up to the Branford Boase-longlisted novel A Girl Called Owl starring a girl who discovers her father is Jack Frost, A Far Away Magic which sees two troubled youngsters venture into a world of terrifying monsters, and Snowglobe, featuring a land of enchanted but sinister snowglobes.
In her fourth wild and wonderful wintertime thriller, Wilson’s imagination moves into overdrive as she sweeps us away to a world of friendship and magic to uncover family secrets and find out who you really are.
Stella has been living behind the magic of the forest for most of her life. Lonely and isolated, she enrols at the local school, and as she begins to make friends, she discovers that she is even more different than she thought. But as autumn turns to magical winter, Stella realises that uncovering her own family secret is the only way to release the forest from the grip of a dark and old magic.
Shadows of Winterspell is an enthralling and action-packed adventure, full of mystery and magic, but also a tender and insightful exploration of self-discovery, growing up and friendship, all perfectly attuned to the realities of modern day life.
A wintertime winner that will capture the hearts and imaginations of middle-grade readers, and the perfect Christmas gift for your young adventurers!
(Macmillan Children’s Books, paperback, £6.99)
Age 9 plus:
Guardians of Magic
Chris Riddell
Step into a dazzling world of fairy tale wonders, intriguing mysteries, lovable heroes, unforgettable villains and skies filled with cloud horses as author and illustrator extraordinaire Chris Riddell works his special magic on a thrilling new children’s series.
Guardians of Magic is the first book in The Cloud Horse Chronicles, a sumptuously presented and action-packed adventure series which sees former Children’s Laureate and Costa award winner Riddell at his imaginative best as three ordinary children discover that they have extraordinary gifts.
The Kingdom of Thrynne is a place where fairy tales don’t behave and magic can be found in unexpected places. But magic also brings danger to three teenagers with special skills – apprentice baker Zam Zephyr, musician Phoebe Limetree, and orphaned daughter of a giant slayer, Bathsheba Greengrass.
The future of magic is under threat from three powerful enemies and unless the three youngsters can fight back and believe in the impossible, soon magic and the cloud horses that nestle in the branches of the giant Forever Tree will be gone forever.
Set against fantastical landscapes, and featuring witty and inventive twists on traditional fairy tales, Guardians of Magic stars an engaging cast of characters and is highly illustrated throughout in Riddell’s unique, rich and intricately detailed style.
The perfect Christmas gift for all adventure-seekers!
(Macmillan Children’s Books, hardback, £12.99)
Age 9-90:
Shakespeare for Every Day of the Year
Edited by Allie Esiri
Treat yourself – and your family – to the inspirational words and verse of the Bard on every day of the year in a beautiful gift anthology.
This enthralling and enlightening collection of 365 sonnets, soliloquies, quotes and extracts from the works of William Shakespeare, the greatest writer in the English language, has been lovingly curated by Allie Esiri, editor of the bestselling A Poem for Every Day of the Year and A Poem for Every Night of the Year.
Shakespeare wrote at least 37 plays, 154 sonnets and a handful of longer poems and you can discover them all in Esiri’s magical and unique collection. Each page contains an extract, which might be a famous poem, quote or scene, matched to the date.
Esiri’s entertaining and insightful introductions give her readers a new window into the work, time and life of Shakespeare, presenting historical context, important dates and performances, and information about the great man’s sources and rivals.
Perfect for reading aloud and sharing with all the family, this superb anthology contains a wealth of wisdom, words and wonder. A verbal feast of Shakespeare not just for Christmas but for every day of the year!
(Macmillan Children’s Books, hardback, £18.99)
Age 9 plus:
Poems to Fall in Love With
Chosen and illustrated by Chris Riddell
Love in all its many forms and guises springs to glorious life in a breathtaking new book from award-winning illustrator, political cartoonist and former Children’s Laureate Chris Riddell.
In the follow-up to his emotive collection, Poems to Live Your Life By – one of the Bookseller’s best poetry books of the last 25 years – Riddell works his own brand of special magic on a stunning selection of his very favourite classic and modern poems about love.
Blending his considerable artistic talents and a lifelong love of poetry, Riddell’s thoughtful and lovingly curated anthology reinvents how we read and see poetry on the page with words and exquisite, intricate artwork to portray and capture the heartbreak, joy and love in every poem.
From silent admiration through passion to tearful resignation, these poems speak of the universal experiences of the heart and give meaning to the ordinary, the moving and the celebratory. Classic verses sit alongside modern poetry, and include poems from Neil Gaiman, Nikita Gill, Carol Ann Duffy, E. E. Cummings, Shakespeare, Leonard Cohen, Derek Walcott, Hollie McNish, Kate Tempest, John Betjeman and Roger McGough.
This perfect Christmas gift for poetry lovers… and anyone who wants to celebrate the joy of love.
(Macmillan Children’s Books, hardback, £12.99)
Age 7 plus:
The Real Family Christmas: Three Stories in One
Sue Mongredien and Kate Pankhurst
Join in the celebrations with these three funny festive stories about Father Christmas and his bonkers family… because nothing goes to plan when the Christmases are about!
In Uncle Christmas, disaster strikes when Nick (a.k.a. Father Christmas) catches the flu just before Christmas Day, meaning that it’s up to his fun-loving younger brother Harry to save the day.
In Granny Christmas, Nick and Harry’s Granny turns up with her grumpy pet penguin, Percy, to stay for the festive season, causing chaos with her inventions and nearly ruining all the careful preparation the boys have done. Can Granny Christmas prove to her grandsons that her inventions are more helpful than harmful?
And in A Real Family Christmas, pandemonium ensues when the whole extended Christmas family unexpectedly turn up for the festive season. With their parents, Uncle Rufus and Aunty Ruby, three wild cousins, Great Uncle Alf, and seven-year-old Ivy all staying, how can Nick and Harry make sure that Christmas goes smoothly this year?
Perfect for newly confident readers or for the family to enjoy together, Sue Mongredien’s three-in-one Christmas bonanza, featuring gorgeous illustrations from Kate Pankhurst, is guaranteed to put everyone in the festive spirit as the big day approaches!
(Macmillan Children’s Books, paperback, £6.99)
Age 7 plus:
The Treehouse Joke Book
Andy Griffiths and Terry Denton
The ‘wizards of Oz’ – the top Australian writer and illustrator team, Andy Griffiths and Terry Denton, who created the bestselling Treehouse series – are back to put extra fun into the festive season.
Enjoy grimaces and guffaws on every page in this super silly joke book that will have all the family (grown-ups included!) laughing their socks off.
Q: How do monkeys make toast? A: They put it under a gorilla!
Q: What’s grey and powdery? A: Instant elephant mix!
From bears to birds, penguins to pirates, and skeletons to space, The Treehouse Joke Book is packed with gags galore, hilarious jokes and wonderful one-liners, all guaranteed to let youngsters have the last laugh!
(Macmillan Children’s Books, paperback, £6.99)
Age 7 plus:
Beyond Platform 13
Sibéal Pounder and Beatriz Castro
‘That’s the thing about magic… it’s only real if you believe in it.’
Return to the spellbinding wonders of the late much-loved author Eva Ibbotson’s classic book, The Secret of Platform 13, in a new fun, magical adventure inspired by characters from Ibbotson’s original book.
Written by Sibéal Pounder, and beautifully illustrated by Beatriz Castro, this super new story recreates a dazzling world of hags, harpies, mistaken identities, and the beloved Island of Mist.
The island is under siege and Prince Ben and his best friend Odge Gribble (a hag!) are in hiding. Desperate to find out why the island’s protective mist is disappearing, Odge travels through the gump to Vienna, to find a mistmaker expert.
But in yet another case of mistaken identity, Odge finds Lina, a nine-year-old girl looking for adventure. With the help of friends old and new, and some very interesting magic, Odge and Lina must discover the secret of the mist, before they lose their beloved island completely.
An exciting and action-packed adventure which pays warm tribute to the spirit, imagination and vitality of Ibbotson’s work.
(Macmillan Children’s Books, paperback, £6.99)
Age 5 plus:
How Winston Delivered Christmas: An Advent Story in Twenty-Four-and-a-Half Chapters
Alex T. Smith
Here’s a gift book that offers both brilliant storytelling and a sackful of creative Christmas activities!
Writer and illustrator Alex T. Smith invites everyone to join Winston the mouse for storytelling, adventure and creative fun in an innovative and entertaining book that is perfect for sharing in the run-up to Christmas.
How Winston Delivered Christmas is written in 24½ chapters… one to share every day leading up to Christmas, and with each chapter featuring its own Christmas activities for families and friends to make together.
On Christmas Eve, Winston the mouse finds a letter to Father Christmas that didn’t make it to the post box. Follow Winston as he sets out through the festive city to deliver Oliver’s letter to Father Christmas on Christmas Eve. He has a lot of Very Exciting Adventures on this Very Important Mission and makes some wonderful friends along the way. He also learns that a good deed can lead to a very happy ending!
Like an advent calendar counting down to Christmas, each day also features festive things to make and do… you can go on a Christmas scavenger hunt, write a letter to Father Christmas, make mince pies and stained-glass window biscuits, and make your own Christmas cards, presents, decorations and crackers.
Filled with bright and bold illustrations, and the author’s natural warmth and insight into what makes Christmas exciting for children, this wonderful book is destined to become a family favourite that will be returned to every year in the run up to Christmas.
(Macmillan Children’s Books, paperback, £9.99)
Age 5 plus:
The Misadventures of Frederick
Ben Manley and Emma Chichester Clark
The joys and freedom of the great outdoors take the starring role in an exquisitely written and wrought picture book from exciting debut author Ben Manley and much-loved illustrator Emma Chichester Clark.
The Misadventures of Frederick, which has garnered acclaim from the highest quarters, combines a touch of timeless Gothic with a free-spirited, modern and youthful zest to deliver a picture book of delightful contrasts and heartfelt messages.
In a large, gated mansion surrounded by lakes and forests, Frederick is bored. He leads a very sheltered life and when Emily invites him to play outside, he has no choice but to refuse… what if he hurts himself? Frederick thinks it would be much better to stay safely indoors. But determined Emily is not one to take no for an answer and soon a series of letters are flying between them that will eventually open up a new world for lonely Frederick.
Friendship, adventure and discovery all play a part in this playful and appealing story which has been carefully created in shades of dark and light, is a vibrant and timely reminder that youth is there to be enjoyed and not endured.
(Two Hoots, hardback, £12.99)
Age 3 plus:
The Snail and the Whale Festive Edition
Julia Donaldson and Axel Scheffler
Youngsters will love sailing off on the high seas for a special festive edition of top team Julia Donaldson and Axel Scheffler’s classic, multi-award-winning tale of The Snail and the Whale.
The inspirational, rhyming story of the unlikely friendship and life-changing adventures shared by a huge whale and a tiny snail will be brought to life on BBC One this Christmas in a new animated production starring Sally Hawkins, Rob Brydon, Cariad Lloyd and Dame Diana Rigg.
And now readers young and not-so-young can first read and enjoy the classic story with a gorgeous wintry cover design, perfect as a Christmas gift and sharing together with the whole family.
‘This is the tale of a tiny snail And a great big grey-blue humpback whale…’
When a little snail longs to see the big wide world, she hitches a lift on the tail of an enormous whale. Together, they set sail on an amazing journey, past icebergs and volcanoes, sharks and penguins, and the little snail feels so small in the vastness of the world. But when disaster strikes and the whale is beached in a bay, it’s up to the tiny snail to save the day.
Brimming with Donaldson’s genius rhymes and Scheffler’s outstandingly bright and colourful gallery of pictures, this is storytelling and illustration in perfect harmony.
(Macmillan Children’s Books, paperback, £6.99)
Age 3 plus:
Meerkat Christmas
Emily Gravett
What do you need for the perfect Christmas?
A meerkat who lives in the hot sunshine of the Kalahari desert goes on the hunt for the perfect tree, the perfect snowy weather, the perfect presents, the perfect dinner and the perfect music in an outrageously witty and clever picture book from Emily Gravett.
A multi-talented author and illustrator, and winner of two CILIP Kate Greenaway Medals, Gravett works her trademark animal magic on a beautifully imagined, cautionary tale that celebrates festive fun and family love.
Gravett, author and illustrator of the modern classic Meerkat Mail, once again she uses her artistic skills, creative imagination and these appealing little animals to deliver a tasty treat full of exquisitely detailed artwork, storytelling surprises and Christmas card flaps to lift as Sunny the meerkat travels the world in the search of the perfect Christmas.
Sunny wants a white Christmas, with a decorated tree, carols and sprouts for dinner… and none of those can be found at home in the Kalahari. So off he heads to find the perfect Christmas elsewhere, only to discover that maybe the season of love and family isn’t all about the trimmings after all.
Proof that Christmas can be whatever you want it to be!
(Two Hoots, hardback, £12.99)
Age 3 plus:
Oh, Christmas Tree
Sue Hendra and Paul Linnet
Sue Hendra and Paul Linnet, the formidable duo who created the bestselling Supertato and Snowball picture books, have spruced up their imaginative powers once more for the madcap tale of a misbehaving Christmas tree!
Destined to be a runaway Christmas special, Oh, Christmas Tree combines cleverly comical and creative illustrations with a festively funny romp of a story that combines pictures and words in a fantastic fusion of larks and laughter.
It’s Christmas time and every tree on Sidney Street is beautifully decorated – except for one! This rebellious tree would rather sit at the table and pull crackers on Christmas Day than stand in a corner wearing glittery decorations! Bauble, Belle and the Tinsel Snake need the tree to behave, so they can fulfil their decorating destinies, but the argumentative tree just won’t stand still and be decorated. Then Belle has a crafty idea…
Full of warmth and wit, with brilliant characters and a bouncy rhyming text, this is the perfect warm-up for the season of trees and treats.
(Macmillan Children’s Books, paperback, £6.99)
Age 3 plus:
Starbird
Sharon King-Chai
Enjoy a picture book brimming with magical storytelling and mesmerising artwork from talented Australian-born illustrator Sharon King-Chai.
Intricate silver foiling shimmers across every page of this stunning book, an original and beautiful fable about freedom and love featuring the legendary Starbird who must battle to escape the clutches of the angry Moon King.
Starbird’s songs weave the richest dreams and delight all who hear him, but when the Moon King traps him in a cage as gift for his daughter, the colour and life in his voice begin to drain away through sadness. But when the Starbird is freed by the little princess, her father vows to search the globe and bring him back.
King-Chai’s heartfelt fable, filled with lyrical storytelling and intricate illustrations of plants and animals, has the feel of a timeless myth with its resonant message that captivity dims even the brightest star.
(Two Hoots, hardback, £12.99)
Age 3 plus:
The Return of Sproutzilla
Tom Jamieson and Mike Byrne
A paarping good Christmas is guaranteed when youngsters get stuck into another hilarious picture book starring mean, green Sproutzilla!
The villainous veggie was cooked up by author Tom Jamieson and illustrator Mike Byrne in the much-loved Sproutzilla vs. Christmas and now he’s back, ready to ruin Christmas… and this time he isn’t alone.
Jack and Ruby are getting ready for Christmas when suddenly, Santa’s little elves arrive with terrible news… poor Santa has been kidnapped! Can Jack and Ruby rescue Santa from stinky Sproutzilla and his menacing sidekicks Broccolisaurus and Tyrannoparsnip rex, before the vicious vegetables ruin Christmas for everyone? And can Sproutzilla ever be shown the true joy of Christmas?
With Jamieson’s comical story providing the giggles and Byrne’s illustrations turning Sproutzilla into a raucous, rampaging sprout, there’s just an outside chance that this wonderful book might convince even the most reluctant eaters to gobble down their greens this Christmas!
(Macmillan Children’s Books, paperback, £6.99)
Age 3 plus:
Adventures in Moomin Valley
Tove Jansson and Amanda Li
It’s over 70 years since the first book featuring The Moomins was published but Tove Jansson’s globally treasured stories continue to delight generations of children.
The Moomins are a lovable family of roundish fairy tale characters with large snouts that make them resemble hippopotami and were created by Jansson, a celebrated Swedish-speaking Finnish illustrator artist, political cartoonist and author who died in 2001.
All the stories in this in this lavish gift book, featuring nine exciting adventures, are closely based on the warm and whimsical Moomin world and characters created by the celebrated writer, artist and illustrator Tove Jansson.
Presented in chronological order, and reworked by Amanda Li, each story is taken from an animation episode and set in the idyllic and peaceful valley where the round blue Moominhouse stands, and where everyone is welcome.
So join nine-year-old Moomintroll, his parents, Moominmamma and Moominpappa, and their eclectic and happy band of friends – Little My, Snufkin, Snorkmaiden, the hattifatteners and other famous characters from the classic stories.
A wonderfully whimsical Christmas gift for Moomin fans of all ages.
(Macmillan Children’s Books, hardback, £12.99)
Age 3 plus:
Christmas Comes to Moominvalley
Tove Jansson, Alex Haridi, Cecilia Davidsson and Filippa Widlund
Christmas Comes to Moominvalley is another exquisitely illustrated re-telling of one of Jansson’s classic stories, The Fir Tree.
The Moomin family are woken up from their deep winter sleep by a cross Hemulen to be told that ‘Christmas’ is coming and they can’t possibly sleep through it. The only trouble is, the Moomins have never heard of Christmas and have no idea what all the fuss is about. They are just going to have to learn what Christmas is and what it means…
This beautiful classic picture book, sensitively adapted by Alex Haridi and Cecilia Davidsson, captures Jansson’s uniquely wise, perceptive and original voice, is perfectly paired with Filippa Widlund’s eye-catching illustrations, full of character and detail and based on Jansson’s original drawings and colour plates.
A new generation of readers will love the adorable Moomin family and friends, and their special values of tolerance, kindness and integrity, as they prepare for their first Christmas.
A delightful reworking of a classic tale…
(Macmillan Children’s Books, paperback, £6.99)
Age one plus:
Christmas wouldn’t be Christmas without an inventive board book to let the youngest family members get in on the fun, so let them push, pull and slide the tabs in two gorgeous interactive board books.
Busy Reindeer
Samantha Meredith
There’s lots to see and do in Busy Reindeer. Inquisitive little hands can push and pull the tabs and turn the wheel as they read about Ruby Reindeer’s magical Christmas Eve journey with Santa.
Join Ruby Reindeer as she leads Santa’s sleigh and flies through the sky and helps to deliver Christmas presents in the latest book in the popular Busy Books series. Tiny tots will love playing with this bright and colourful board book which has a gentle rhyming text and wonderful illustrations by Samantha Meredith.
With plenty to talk about and things to spot on every page, Santa is sure to find lots more willing helpers to delivers his presents!
First Stories: A Christmas Carol
Jean Claude
And watch little faces light up as they enjoy a bright and colourful interactive introduction to Charles Dickens’ classic Christmas tale. Push, pull, slide and turn the mechanisms to bring the story of A Christmas Carol to life and introduce the familiar figure of Ebenezer Scrooge.
Grumpy old Scrooge finds Christmas a bore, declaring the festivities a load of ‘bah humbug.’ Can a visit by three ghosts persuade him to learn to love the season of joy again, and celebrate with lots of good cheer?
This well-loved story is beautifully imagined and brought to vivid life for a new generation by illustrator Jean Claude.
(Campbell Books, board books, £5.99 each)
Age 2 plus:
Kiki and Jax: The Life-Changing Magic of Friendship
Marie Kondo and Salina Yoon
Renowned ‘tidying’ expert Marie Kondo brings her unique magic and neatness to Kiki and Jax, an enchanting picture book story about how tidying up can spark joy in the lives of young children.
Kondo, star of Netflix’s hit show, Tidying Up With Marie Kondo, began her tidying consultant business as a nineteen-year-old university student in Tokyo and now she is an expert helping people around the world to transform their cluttered homes into spaces of serenity and inspiration.
Kiki the squirrel and Jax the owl are best friends… Jax enjoys sorting but Kiki enjoys collecting and gathers a lot of stuff.  Where is Kiki's ball, what did she do with her swimsuit? Her home has become an obstacle course and it’s hard for Kiki and Jax to play together. But Jax has a plan. He teaches Kiki how to sort everything and to keep only those things that spark joy. Once she and Jax have tidied up, Kiki has room in her life for those things that matter the most… especially her good friend Jax!
Charmingly illustrated by the award-winning Salina Yoon, this entertaining and informative picture book is an easy-to-understand and accessible introduction to Kondo’s concept of tidying and includes a special, step-by-step folding activity to try out at home.
Tidying away Christmas presents might prove to be fun for even the youngest of children this festive season!
(Macmillan Children’s Books, hardback, £11.99)


VectorSourceLinearGradient()
语法
VectorSourceLinearGradient(x1.d, y1.d, x2.d, y2.d)概要
Selects a linear color gradient as the source for vector drawing operations such as FillPath() or StrokePath(). Initially, the gradient is solid black. Color stops have to be added with the VectorSourceGradientColor() after this function.
参数
x1.d, y1.d Specifies the point that represents the start (Position 0.0) of the gradient. The coordinates are specified in terms of the #PB_Coordinate_Source coordinate system. x2.d, y2.d Specifies the point that represents the end (Position 1.0) of the gradient. The coordinates are specified in terms of the #PB_Coordinate_Source coordinate system.
返回值
无.
备注
See the vectordrawing overview for an introduction to the different coordinate systems.
The color gradient is only defined in the area between the (x1, y1) and (x2, y2) points. Outside of these points, the used source color is depending on the operating system, so drawing operations outside of the defined gradient's area should be avoided.
示例
If OpenWindow(0, 0, 0, 400, 200, "VectorDrawing", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) CanvasGadget(0, 0, 0, 400, 200) If StartVectorDrawing(CanvasVectorOutput(0)) VectorSourceLinearGradient(50, 0, 350, 0) VectorSourceGradientColor(RGBA(255, 0, 0, 255), 0.0) VectorSourceGradientColor(RGBA(0, 255, 0, 255), 0.5) VectorSourceGradientColor(RGBA(0, 0, 255, 255), 1.0) AddPathBox(50, 25, 300, 150) FillPath() StopVectorDrawing() EndIf Repeat Event = WaitWindowEvent() Until Event = #PB_Event_CloseWindow EndIf
参阅
VectorSourceGradientColor(), VectorSourceCircularGradient(), VectorSourceColor(), VectorSourceImage()
已支持操作系统
所有