Codehaus XFire
DocumentationQuicklinksDevelopers
Sponsors |
Overview of APIsGenerally many of the various frameworks share the same principles.
Axis2Transports and Messages The correlation to a MessageExchange in JBI would be the OperationContext in Axis 2. The OperationContext holds references to the various MessageContexts involved in the message exchange pattern. public class OperationContext { public MessageContext getMessageContext(String messageLabel) throws AxisFault {} } Handlers For the interceptor chain, Axis2 has the concept of Handlers, Phases and flows. There are multiple flows - in, out, and fault. Fore each flow there are many different phases. Handlers can associate themselves with a phase and they can specify that they want to run before/after specific handlers within the phase. Pros:
Cons:
CeltixHandlers Transport API
Celtix really reuses the concept of WS-Addressing endpoint references within its API. Whenever you create a transport you must supply an EPR. This will then set up your ReplyTo/FaultTo streams automatically. Pros:
Cons:
ServiceMix/JBIJBI Javadocs Central to JBI is the concept of a NormalizedMessage. The NormalizedMessage holds a reference to the message as a Source object.
Pros:
Cons:
TuscanyTuscany's Message class holds a simple object containing the Body of the message. It also provides a callback channel for synchronous/correlated responses. TODO: what is getRelatedCallbackMessage for? It seems like maybe its for a correlated response. public interface Message { Object getBody(); void setBody(Object body); public void setTargetInvoker(TargetInvoker invoker); /** * Sets the target invoker to dispatch to when the message passes through the request side of the invocation chain */ public TargetInvoker getTargetInvoker(); public MessageChannel getCallbackChannel(); public Message getRelatedCallbackMessage(); } public interface MessageChannel { void send(Message message); } The MessageChannel class is as close to defining a Transport API as Tuscany comes currently. It does however, define some interception patterns: public interface Interceptor { /** * Process a synchronous wire. */ Message invoke(Message msg); /** * Sets the next interceptor. */ void setNext(Interceptor next); } public interface MessageHandler { boolean processMessage(Message message); } TODO: fill in more details on how these classes are used! Pros:
Cons:
XFireThe XFire model focuses on the idea of Transports and Channels. Channels provide a means of communication on a Transport. When a request comes in, a Channel is opened and a message is sent to the ChannelReceiver. This starts an invocation flow within XFire sending a message down the in pipeline. public interface Channel { void open() throws Exception; void send(MessageContext context, OutMessage message) throws XFireException; void receive(MessageContext context, InMessage message); void setEndpoint(ChannelEndpoint receiver); ChannelEndpoint getEndpoint(); void close(); Transport getTransport(); String getUri(); boolean isAsync(); } public interface Transport extends ChannelFactory, HandlerSupport { boolean isUriSupported(String uri); String[] getSupportedBindings(); void dispose(); Binding findBinding(MessageContext context, Service service); } public interface ChannelFactory { Channel createChannel() throws Exception; Channel createChannel(String uri) throws Exception; void close(Channel c); } Typically transports will want to handle soap messages. To do there is typicall a raw transport class, like HttpTransport, and a Soap transport class which extends it - like SoapHttpTransport. A soap transport will then register additional handlers to parse the soap message, set the soap version, etc. Messages in XFire are represented by the InMessage and OutMessage classes. The InMessage has an XMLStreamReader associated with it. The OutMessage takes a MessageSerializer which is a callback to write the message to an XMLStreamWriter at the appropriate time. The InMessage/OutMessage API is mostly focused around StAX, but can be used to hold objects as well in its Body property. There is also the concept of a MessageExchange in XFire. These holds references to the various messages in the MessageExchange pattern. It also holds a reference to an OperationInfo instance which contains the metadata about the operation being invoked. This class correlates highly with the WSDL operation concept. Handlers are XFire's way to Intercept messages. They provide an invoke method which takes a MessageContext. Handlers can be registered in the in, out, and fault flows of a service & client. Within each flow there are a number of phases a Handler can participate in. Pros:
Cons:
|


Textures and Rendering¶
Textures are global variables, they load when load_textures(...)
called
and stays in memory until free_textures()
called. There are two themes,
there is a global variable called theme
stores current theme. When
load_textures(...)
called, it loads current themes files as textures.
Core sdl does not capable of font rendering. So i used prepared assets for text and
wrote custom rendering function for numbers. It turns numbers to string, then iterates
and pair each character a part of digits texture.
void render_number(SDL_Renderer * renderer, int num, Point c, int size, int len){
int i,w,h;
SDL_Rect source,dest;
char text[100];
SDL_QueryTexture(tDigits,NULL,NULL,&w,&h);
sprintf(text,"%0*d",len,num);
for(i=0;i<len;i++){
dest.h=size;
dest.w=size;
dest.x=c.x+i*size;
dest.y=c.y;
source.y=0;
source.w=w/10;
source.h=h;
switch (text[i]) {
case '1': source.x=source.w; break;
case '2': source.x=source.w*2; break;
case '3': source.x=source.w*3; break;
case '4': source.x=source.w*4; break;
case '5': source.x=source.w*5; break;
case '6': source.x=source.w*6; break;
case '7': source.x=source.w*7; break;
case '8': source.x=source.w*8; break;
case '9': source.x=source.w*9; break;
case '0': source.x=0; break;
}
SDL_RenderCopy(renderer,tDigits,&source,&dest);
}
}


--- layout: post title: RailsConf in 36 minutes categories: - sightings author: David published: true date: 2008-06-02 17:55:00.000000000 +01:00 ---
Gregg Pollack has made a great video with interviews of speakers and attendants at RailsConf as a way of giving people who weren’t there a taste of what it was like. The result is 36 minutes of video and really worth watching. Check it out.


All functions
|
|
accelerometer_data
|
Accelerometer sensor measurements |
|
accelerometer_features()
|
Extract accelerometer features |
|
balance_data
|
Device-Motion data from a performed balance activity |
|
bandpass()
|
Apply a pass-band filter to time series data |
|
calculate_drift()
|
Calculate the drift given x and y |
|
clean_tapped_button_none()
|
Remove duplicates in the given dataframe tap_data which have the buttonid parameter as 'TappedButtonNone' |
|
coef_var()
|
Calculate the Coefficient of Variation (coef_var) for a given sequence |
|
default_kinematic_features()
|
Default feature extraction functions for accelerometer and gyroscope data. |
|
derivative()
|
Take the derivative of a vector v |
|
detrend()
|
Detrend time series data |
|
extract_features()
|
Extract features from a column |
|
fatigue()
|
Calculate the fatigue given a vector x |
|
filter_time()
|
Select a specific time range from sensor data. |
|
frequency_domain_energy()
|
Returns energy for each 0.5Hz band in the frequency spectrum. |
|
frequency_domain_summary()
|
Returns statistical summary of the frequency spectrum |
|
get_balance_features()
|
Preprocess and extract interpretable features from balance activity. |
|
get_ewt_spectrum()
|
Get EWT spectrum |
|
get_filtered_signal()
|
Bandpass and sorted mean filter the given signal |
|
get_heartrate()
|
Preprocess and extract heart rate from smartphone video recordings. |
|
get_hr_from_time_series()
|
Given a processed time series find its period using autocorrelation
and then convert it to heart rate (bpm) |
|
get_kinetic_tremor_features()
|
Preprocess and extract interpretable features from kinetic tremor activity. |
|
get_left_right_events_and_tap_intervals()
|
Curate the raw tapping data to get Left and Right events,
after applying the threshold. |
|
get_sampling_rate()
|
Calculate the sampling rate. |
|
get_spectrum()
|
Get AR spectrum |
|
get_tapping_features()
|
Preprocess and extract interpretable features from screen tapping data. |
|
get_tremor_features()
|
Preprocess and extract interpretable features from resting and postural tremor activities. |
|
get_walk_features()
|
Preprocess and extract interpretable features from walk activity. |
|
gravity_data
|
Gravity sensor measurements |
|
guanlab_model()
|
This model was used to generate the top scoring
submission to the 2017 Parkinson's Disease Digital
Biomarker DREAM Challenge, Subchallenge 1
(https://www.synapse.org/#!Synapse:syn8717496/wiki/422884). |
|
guanlab_nn_architecture()
|
Neural net architecture for GuanLab's winning 2017 PDDB submission |
|
guanlab_nn_weights
|
Weights for the included GuanLab model |
|
gyroscope_data
|
Gyroscope sensor measurements |
|
gyroscope_features()
|
Extract gyroscope features |
|
has_error()
|
Check if a dataframe has an error column with at least one value |
|
heartrate_data
|
Sample heartrate data from a smartphone camera |
|
integral()
|
Take the integral of a vector v |
|
intertap_summary_features()
|
Get default tapping features for intertap distance |
|
kinematic_sensor_argument_validator()
|
Ensure the kinematic sensor arguments are well formed |
|
kinetic_tremor_data
|
Device-Motion data from a performed kinetic tremor activity |
|
load_guanlab_model()
|
Load the GuanLab model with weights. |
|
map_groups()
|
Map a function to a single column within tibble groups |
|
mean_tkeo()
|
Calculate the Mean Teager-Kaiser energy,
adapted from TKEO function in library(seewave) using f = 1, m = 1, M = 1 |
|
mutate_acf()
|
Construct a dataframe with ACF values |
|
mutate_bandpass()
|
Apply a pass-band filter to sensor data |
|
mutate_derivative()
|
Add a column which is the "derivative" of an existing column
to a time-series dataframe. |
|
mutate_detrend()
|
Detrend sensor data |
|
mutate_integral()
|
Add a column which is the "integral" of an existing column
to a time-series dataframe. |
|
prepare_kinematic_sensor_args()
|
Return arguments to be used in general feature functions |
|
rest_tremor_data
|
Device-Motion data from a performed resting tremor activity |
|
sensor_features()
|
Extract sensor features |
|
tag_outlier_windows()
|
Identify abnormal device rotations |
|
tag_outlier_windows_()
|
Get min and max gravity values for each window |
|
tap_data
|
Sample tapping data from the tapping activity on a smartphone |
|
tap_data_summary_features()
|
Get default tapping features |
|
tapdrift_summary_features()
|
Get default tapping features for tap drift |
|
tapping_features()
|
Extract tapping (screen sensor) features |
|
tidy_sensor_data()
|
Gather the axial columns |
|
time_domain_summary()
|
Returns statistical summary of the time series |
|
transformation_imf_window()
|
Generate a function for windowing sensor data after applying EMD |
|
transformation_window()
|
Generate a function for applying a window transformation to sensor data |
|
walk_data
|
Device-Motion data from a performed walk activity |
|
window()
|
Window the value vector of sensor data for each axis |
|
window_signal()
|
Window a signal |
|
window_start_end_times()
|
Compute start/end timestamps for each window |


| Pod::Simple::HTML - convert Pod to HTML |
Pod::Simple::HTML - convert Pod to HTML
perl -MPod::Simple::HTML -e Pod::Simple::HTML::go thingy.pod
This class is for making an HTML rendering of a Pod document.
This is a subclass of Pod::Simple::PullParser and inherits all its methods (and options).
Note that if you want to do a batch conversion of a lot of Pod documents to HTML, you should see the module Pod::Simple::HTMLBatch.
TODO
perl -MPod::Simple::HTML -e Pod::Simple::HTML::go Thing.pod Thing.html
use Pod::Simple::HTML;
my $p = Pod::Simple::HTML->new;
$p->output_string(\my $html);
$p->parse_file('path/to/Module/Name.pm');
open my $out, '>', 'out.html' or die "Cannot open 'out.html': $!\n";
print $out $html;
use Pod::Simple::HTML;
Set the content type:
$Pod::Simple::HTML::Content_decl = q{<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >};
my $p = Pod::Simple::HTML->new;
Include a single javascript source:
$p->html_javascript('http://abc.com/a.js');
Or insert multiple javascript source in the header (or for that matter include anything, thought this is not recommended)
$p->html_javascript('

');
Include a single css source in the header:
$p->html_css('/style.css');
or insert multiple css sources:
$p->html_css('
<link rel="stylesheet" type="text/css" title="pod_stylesheet" href="http://remote.server.com/jquery.css">
<link rel="stylesheet" type="text/css" title="pod_stylesheet" href="/style.css">');
Tell the parser where should the output go. In this case it will be placed in the $html variable:
my $html;
$p->output_string(\$html);
Parse and process a file with pod in it:
$p->parse_file('path/to/Module/Name.pm');
TODO all (most?) accessorized methods
The following variables need to be set before the call to the ->new constructor.
Set the string that is included before the opening  tag:
$Pod::Simple::HTML::Doctype_decl = qq{<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">\n};
Set the content-type in the HTML head: (defaults to ISO-8859-1)
$Pod::Simple::HTML::Content_decl = q{<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >};
Set the value that will be embedded in the opening tags of F, C tags and verbatim text. F maps to , C maps to , Verbatim text maps to
 (Computerese defaults to "")
$Pod::Simple::HTML::Computerese = ' class="some_class_name';
This includes everything before the <title> opening tag including the Document type and including the opening <title> tag. The following call will set it to be a simple HTML file:
$p->html_header_before_title('<title>');
By default Pod::Simple::HTML adds a dummy anchor at the top of the HTML. You can change it by calling
$p->top_anchor('');
Normally =head1 will become
, =head2 will become
 etc. Using the html_h_level method will change these levels setting the h level of =head1 tags:
$p->html_h_level(3);
Will make sure that =head1 will become
 and =head2 will become
 etc...
Set it to some true value if you want to have an index (in reality a table of contents) to be added at the top of the generated HTML.
$p->index(1);
Includes the closing tag of </title> and through the rest of the head till the opening of the body
$p->html_header_after_title('</title>...');
The very end of the document:
$p->html_footer( qq[\n\n\n\n] );
Can use any of the methods described above but for further customization one needs to override some of the methods:
package My::Pod;
use strict;
use warnings;
use base 'Pod::Simple::HTML';
# needs to return a URL string such
# http://some.other.com/page.html
# #anchor_in_the_same_file
# /internal/ref.html
sub do_pod_link {
# My::Pod object and Pod::Simple::PullParserStartToken object
my ($self, $link) = @_;
say $link->tagname; # will be L for links
say $link->attr('to'); #
say $link->attr('type'); # will be 'pod' always
say $link->attr('section');
# Links local to our web site
if ($link->tagname eq 'L' and $link->attr('type') eq 'pod') {
my $to = $link->attr('to');
if ($to =~ /^Padre::/) {
$to =~ s{::}{/}g;
return "/docs/Padre/$to.html";
}
}
# all other links are generated by the parent class
my $ret = $self->SUPER::do_pod_link($link);
return $ret;
}
1;
Meanwhile in script.pl:
use My::Pod;
my $p = My::Pod->new;
my $html;
$p->output_string(\$html);
$p->parse_file('path/to/Module/Name.pm');
open my $out, '>', 'out.html' or die;
print $out $html;
TODO
maybe override do_beginning do_end
Pod::Simple, Pod::Simple::HTMLBatch
TODO: a corpus of sample Pod input and HTML output? Or common idioms?
Questions or discussion about POD and Pod::Simple should be sent to the<EMAIL_ADDRESS>mail list. Send an empty email to<EMAIL_ADDRESS>to subscribe.
This module is managed in an open GitHub repository, https://github.com/perl-pod/pod-simple/. Feel free to fork and contribute, or to clone git://github.com/perl-pod/pod-simple.git and send patches!
Patches against Pod::Simple are welcome. Please send bug reports to<EMAIL_ADDRESS>Copyright (c) 2002-2004 Sean M. Burke.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
Thanks to Hurricane Electric for permission to use its Linux man pages online site for man page links.
Thanks to search.cpan.org for permission to use the site for Perl module links.
Pod::Simple was created by Sean M. Burke<EMAIL_ADDRESS>But don't bother him, he's retired.
Pod::Simple is maintained by:
Allison Randal<EMAIL_ADDRESS>Hans Dieter Pearcey<EMAIL_ADDRESS>David E. Wheeler<EMAIL_ADDRESS>| Pod::Simple::HTML - convert Pod to HTML |


K-Means¶
-
class
sparseklearn.kmeans.
KMeans
(n_components=8, init='kmpp', tol=0.0001, n_init=10, n_passes=1, max_iter=300, means_init_array=None, **kwargs)[source]¶ Sparsified K-Means clustering.
- Parameters
- n_componentsint, default: 8
The number of clusters.
- init{ndarray, ‘kmpp’, ‘random’}, default: ‘kmpp’
Initialization method:
ndarray : shape (n_components, P). Initial cluster centers, must be transformed already.
‘kmpp’: picks initial cluster centers from the data with probability proportional to the distance of each datapoint to the current initial means. More expensive but better convergence. These will be drawn from HDX if the sparsifier has access to it, otherwise they come from RHDX.
‘random’: picks iniitial cluster centers uniformly at random from the datapoints.These will be drawn from HDX if the sparsifier has access to it, otherwise they come from RHDX.
- n_initint, default: 10
Number of times to run k-means on new initializations. The best results are kept.
- max_iterint, default: 300
Maximum number of iterations for each run.
- tolfloat, default: 1e-4
Relative tolerance with regards to inertia for convergence.
- Attributes
- cluster_centers_nd.array, shape (n_components, P)
Coordinates of cluster centers
- labels_np.array, shape (N,)
Labels of each point
- intertia_float
Sum of squared distances of samples to their cluster center.
Methods
apply_HD
(self, X)Apply the preconditioning transform to X.
apply_mask
(self, X, mask)Apply the mask to X.
fit
(self[, X, HDX, RHDX])Compute k-means clustering and assign labels to datapoints.
fit_sparsifier
(self[, X, HDX, RHDX])Fit the sparsifier to specified data.
invert_HD
(self, HDX)Apply the inverse of HD to HDX.
invert_mask_bool
(self)Compute the mask inverse.
pairwise_distances
(self[, Y])Computes the pairwise distance between each sparsified sample, or between each sparsified sample and each full sample in Y if Y is given.
pairwise_mahalanobis_distances
(self, means, …)Computes the mahalanobis distance between each compressed sample and each full mean (each row of means).
weighted_means
(self, W)Computes weighted full means of sparsified samples.
weighted_means_and_variances
(self, W)Computes weighted full means and variances of sparsified samples.
-
fit
(self, X=None, HDX=None, RHDX=None)[source]¶ Compute k-means clustering and assign labels to datapoints. At least one of the parameters must be set.
- Parameters
- Xnd.array, shape (N, P), optional
defaults to None. Dense, raw data.
- HDXnd.array, shape (N, P), optional
defaults to None. Dense, transformed data.
- RHDXnd.array, shape (N, Q), optional
defaults to None. Subsampled, transformed data.


Review: THE THIN RED LINE
Starring: Sean Penn, Nick Nolte, Jim Caviezel, Ben Chaplin, Adrien Brody, George Clooney, John Cusack, Woody Harrelson, John Travolta, etc.
Directed by: Terrence Malick
Review by: Joy Wyse, the SILVER Screen Critic
There are not very many veterans of World War II alive today and those are at least seventy years of age. To most viewers of The Thin Red Line the battles of Guadalcanal seem to have merely lasted a few days instead of the long, bloody, dragged- out siege that it was.
Director Malick has tried to convey the futility of war through the eyes and reactions of the soldiers, particularly those of Private Fife who has come to love and appreciate the native life of the pre-battle islanders. Using flashbacks Malick jumps from savage shooting to children swimming underwater, and back again. There are too many of these cutaway shots. A little symbolism goes a long way.
Many of the `stars' who appear are nothing more than cameos. John Travolta, portraying the General in charge, looks surprisingly reminiscent of John Hodiak, a handsome star of the WWII era. George Clooney has but one scene as well. It is said that his role was longer, but was cut. Bill Pullman is there, too, but don't blink or you'll miss him. He says nothing.
One of the best vignettes is by Woody Harrelson as a well-trained and dedicated career soldier. His act of heroism is so well enacted that it's almost overlooked for what it is.
Others have lauded Nick Nolte, as the psychotic colonel who is determined to secure the `hill' despite the costs, as an Oscar caliber role. It is almost one-dimensional, however, and Sean Penn'' portrayal of the sergeant serving under his command, is much better.
Some of the best acting is from the unknown actors. Adrien Brody, Jim Caviezel and Ben Chaplin are standouts. Their characters seem a bit confusing at times as they resemble each other and all those uniforms are alike. Even the officers forego wearing insignia. It is especially difficult to identify some of the voice-over narration.
Several of the scenes are unusually disturbing such as the American GI who carries pliers with him to extricate gold teeth from the dead…and dying. And there are the dogs feasting on the corpses.
It is very long, needlessly long and so I only give it a B-. I don't want to see it again, and neither does my husband, a WWII veteran.
SEE YOU AT THE MOVIES.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


--- title: Joss Paper Archive ---
This is a digital archive of all 5 prayer packs that were studied in this research project. Each pack was scanned thoroughly to examine its content. These images were then used to build the 5 banner collages. Below are the original scans, with English captions explaining some of the symbols that are continuously used throughout the prayer packs.


Why you should adopt older cats! 🐱 💖 Created by Paige Allen
Description :This will be a website persuading viewers on why they should adopt elderly cats from their local shelters. Last updated Sprint 6, 11/13/20.
Feautures I believe I will be able to incorporate is an eye catching web site that will draw users in and convince them to adopt.
Features I would want to display if I had more time would be advertising the website, possibly uploading videos to the website.
HTML & CSS will be utilized. These are skills that will demonstrate skills I have learned in class, along with
pushing these files to my github and hosting the website through azure. I haven't figured out what feautures I will add to go beyond skills
we have learned in class.


Another Free Labo VR Mini-Game Has Been Released
Explore the moon in VR
by Damien McFerranNintendo has done a great job of supporting its innovative Labo VR kit with free mini-games, and we've just been gifted yet another today.
Dubbed 'Lunar Exploration', the game tasks you with hopping into a lunar rover and exploring the surface of the earth's only natural satellite.
To download the game, head over to the Switch News channel for Nintendo Labo VR – and be sure to let us know what you think of it by posting a comment.


instructions
Use arrows to move
Press space to start
Congratulations!
Keyboard shortcuts:
1
2
3
4
5
M to mute/unmute music


The meet of two objects is denoted: \[ a \wedge b \] And indeed this is part of the construction of our basis: \[ \cssId{e12Id}{e_{12}} = \cssId{e1Id}{e_{1}} \wedge \cssId{e2Id}{e_{2}} \]


Hi, Vaidehi
Employees
Jobs
Log Out
Jobs
Add New Job
View all jobs
ID
Job Name
Details
Edit
Delete
1
Graphic Designer
Details
Edit
Delete
2
Web Designer
Details
Edit
Delete
3
Web Developer
Details
Edit
Delete
4
Content Developer
Details
Edit
Delete
Add Job Details
Add
Job Details
ID
1
Job Created Date
13 March 2021
Job Title
Graphic Designer
Job Description
▪ Study design briefs and determine requirements.
Edit Job Details
Save
Delete Job
Are you sure want to delete job - Graphic Designer?


Unifying Tables, Objects and Documents (XML)
Here. Wouldn't it be an interesting world if the three major data structure abstractions, i.e. relational data (tables), graphs (objects) and strict hierarchy (XML) were all first class citizens in the same language? I found this paper quite an mind-bender.


You can't join Nexus
You can’t register to apply for Nexus if you have a criminal conviction or police caution in the last 10 years or have had more than one conviction or caution at any time. This includes spent convictions.
Exit to GOV.UKYou can’t register to apply for Nexus if you have a criminal conviction or police caution in the last 10 years or have had more than one conviction or caution at any time. This includes spent convictions.
Exit to GOV.UK