view release on metacpan or search on metacpan
lib/Acme/Globus.pm view on Meta::CPAN
be ill-advised if not impossible.
=head1 SYNOPSIS
my $g = Globus->new($username,$path_to_ssh_key) ;
$g->endpoint_add_shared( 'institution#endpoint', $directory, $endpoint_name ) ;
$g->acl_add( $endpoint . '/', 'djacoby@example.com' ) ;
=head1 METHODS
=head2 BASICS
lib/Acme/Globus.pm view on Meta::CPAN
=head3 B<scp>
=head3 B<transfer>
Both commands take a source, or from path (including endpoint),
a destination, or to path (includint endpoint), and a boolean indicating
whether you're copying recursively or not.
=cut
sub delete { }
lib/Acme/Globus.pm view on Meta::CPAN
acl-* is the way that Globus refers to permissions
By the interface, Globus supports adding shares by email address,
by Globus username or by Globus group name. This module sticks to
using email address. acl_add() takes an endpoint, an email address
you're sharing to, and a boolean indicating whether this share is
read-only or read-write. acl_add() returns a share id.
acl_remove() uses that share id to identify which shares are to be
removed.
acl_list() returns an array of hashes containing the information about
each user with access to an endpoint, including the share ID and permissions.
=cut
sub identity_details {
my ( $self, $identity_id ) = @_ ;
lib/Acme/Globus.pm view on Meta::CPAN
my $obj = decode_json $result ;
return wantarray ? %$obj : $obj ;
}
sub acl_add {
my ( $self, $endpoint, $email, $rw ) = @_ ;
my $readwrite = 'rw' ;
$readwrite = 'r' unless $rw ;
my $command
= qq{acl-add $endpoint --identityusername=${email} --perm $readwrite }
;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
my ($id) = reverse grep {m{\w}} split m{\s}, $result ;
return $id ;
}
sub acl_list {
my ( $self, $endpoint ) = @_ ;
my $command = qq{acl-list $endpoint} ;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
my $slist = decode_json $result ;
my @list = grep { $_->{permissions} ne 'rw' } @$slist ;
return wantarray ? @list : \@list ;
}
sub acl_remove {
my ( $self, $endpoint_uuid, $share_uuid ) = @_ ;
my $command = qq{acl-remove $endpoint_uuid --id $share_uuid} ;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
return $result ;
}
=head3 B<endpoint_add_shared>
=head3 B<endpoint_list>
=head3 B<endpoint_search>
=head3 B<endpoint_remove>
endpoint_add_shared() handles the specific case of creating an endpoint
from an existing endpoint, not the general case. It takes the endpoint
where you're sharing from, the path you're sharing, and the endpoint
you're creating. If you are user 'user' and creating the endpoint 'test',
the command takes 'test', not 'user#test'.
endpoint_remove and endpoint_list, however, take a full endpoint name, like 'user#test'.
Current usage is endpoint_list for a list of all our shares, and endpoint_search
for details of each individual share
=head3 B<list_my_endpoints>
=head3 B<search_my_endpoints>
list_my_endpoints() and search_my_endpoints() were added once I discovered
the failings of existing list and search. These tools return a hashref
of hashrefs holding the owner, host_endpoint, host_endpoint_name,
credential_status, and most importantly, the id, legacy_name and display_name.
For older shares, legacy_name will be something like 'purduegcore#hr00001_firstshare'
and display_name will be 'n/a', while for newer shares, legacy_name will be
'purduegcore#SAME_AS_ID' and display_name will be like older shares' legacy_name,
'purduegcore#hr99999_filled_the_space'. In both cases, the value you want
to use to get details or to remove a share is the id, which is a UUID.
=cut
sub endpoint_add_shared {
my ( $self, $sharer_endpoint, $path, $endpoint ) = @_ ;
# my $command
# = qq{endpoint-add --sharing "$sharer_endpoint$path" $endpoint } ;
# my $command
# = qq{endpoint-add -n $endpoint --sharing "$sharer_endpoint$path" } ;
my $command = join ' ',
q{endpoint-add},
q{--sharing}, "$sharer_endpoint$path",
q{-n}, $endpoint,
;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
return $result ;
}
# sub endpoint_list {
# my ( $self, $endpoint ) = @_ ;
# my $command ;
# if ($endpoint) {
# $command = qq{endpoint-list $endpoint } ;
# }
# else {
# $command = qq{endpoint-list} ;
# }
# my $result
# = _globus_action( $command, $self->{username}, $self->{key_path} ) ;
# my @result = map { ( split m{\s}, $_ )[0] } split "\n", $result ;
# return wantarray ? @result : \@result ;
# }
#lists all my endpoint
sub endpoint_list {
my ($self) = @_ ;
my $command = 'endpoint-search --scope=my-endpoints' ;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
my @result = map { s{\s}{}g ; $_ }
map { ( reverse split m{:} )[0] }
grep {m{Legacy}}
split m{\n}, $result ;
return wantarray ? @result : \@result ;
}
sub endpoint_search {
my ( $self, $search ) = @_ ;
return {} unless $search ;
my $command = qq{endpoint-search $search --scope=my-endpoints} ;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
my %result = map {
chomp ;
my ( $k, $v ) = split m{\s*:\s}, $_ ;
lib/Acme/Globus.pm view on Meta::CPAN
}
split m{\n}, $result ;
return wantarray ? %result : \%result ;
}
sub list_my_endpoints {
my ($self) = @_ ;
my $command = 'endpoint-search --scope=my-endpoints' ;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
my %result = map {
my $hash ;
%$hash = map {
lib/Acme/Globus.pm view on Meta::CPAN
}
split m{\n\n}, $result ;
return wantarray ? %result : \%result ;
}
sub search_my_endpoints {
my ( $self, $search ) = @_ ;
my %result ;
my $command = qq{endpoint-search $search --scope=my-endpoints} ;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
%result = map {
my $hash ;
%$hash = map {
lib/Acme/Globus.pm view on Meta::CPAN
}
split m{\n\n}, $result ;
return wantarray ? %result : \%result ;
}
sub endpoint_remove {
my ( $self, $endpoint ) = @_ ;
my $command = qq{endpoint-remove $endpoint} ;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
return $result ;
}
# Sucks. Use endpoint_search instead
sub endpoint_details {
my ( $self, $endpoint ) = @_ ;
my $command = qq{endpoint-details $endpoint} ;
my $result
= _globus_action( $command, $self->{username}, $self->{key_path} ) ;
my %result = map {
chomp ;
lib/Acme/Globus.pm view on Meta::CPAN
} split m{\n}, $result ;
return wantarray ? %result : \%result ;
}
=head3 B<endpoint_activate>
=head3 B<endpoint_add>
=head3 B<endpoint_deactivate>
=head3 B<endpoint_modify>
=head3 B<endpoint_rename>
Stubs
=cut
sub endpoint_activate { }
sub endpoint_add { }
sub endpoint_deactivate { }
sub endpoint_modify { }
sub endpoint_rename { }
=head2 OTHER
=head3 B<help>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/Insult/Glax.pm view on Meta::CPAN
our %EXPORT_TAGS = ( all => [ our @EXPORT_OK = qw[insult adjective] ] );
#
use overload '""' => sub ( $s, $u, $b ) { $s->{insult} // () };
my $api = URI->new('https://insult.mattbas.org/api/');
#
sub _http ( $endpoint, %params ) {
state $http
//= HTTP::Tiny->new( default_headers => { Accept => 'application/json' }, agent => sprintf '%s/%.2f ', __PACKAGE__, our $VERSION );
( my $hey = $api->clone )->path( '/api/' . $endpoint . '.json' );
$hey->query_form(%params);
my $res = $http->get( $hey->as_string ); # {success} is true even when advice is not found but we'll at least know when we have valid JSON
$res->{success} ? decode_json( $res->{content} ) : ();
}
#
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Acme/MetaSyntactic/services.pm view on Meta::CPAN
neteh_ext
netgw
netinfo
netinfo_local
netiq
netiq_endpoint
netiq_endpt
netiq_mc
netiq_ncap
netiq_qcheck
netiq_voipa
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Akamai/PropertyFetcher.pm view on Meta::CPAN
# åºæ¬URL
my $baseurl = "https://" . $agent->{host};
# Endpoint to retrieve contract IDs
my $contracts_endpoint = "$baseurl/papi/v1/contracts";
my $contracts_resp = $agent->get($contracts_endpoint);
die "Error retrieving contract ID: " . $contracts_resp->status_line unless $contracts_resp->is_success;
my $contracts_data = decode_json($contracts_resp->decoded_content);
my @contract_ids = map { $_->{contractId} } @{ $contracts_data->{contracts}->{items} };
# Endpoint to retrieve group IDs
my $groups_endpoint = "$baseurl/papi/v1/groups";
my $groups_resp = $agent->get($groups_endpoint);
die "Error retrieving group ID: " . $groups_resp->status_line unless $groups_resp->is_success;
my $groups_data = decode_json($groups_resp->decoded_content);
my @group_ids = map { $_->{groupId} } @{ $groups_data->{groups}->{items} };
# Process all combinations of contract IDs and group IDs
foreach my $contract_id (@contract_ids) {
foreach my $group_id (@group_ids) {
my $properties_endpoint = "$baseurl/papi/v1/properties?contractId=$contract_id&groupId=$group_id";
my $properties_resp = $agent->get($properties_endpoint);
if ($properties_resp->is_success) {
# Retrieve property information
my $properties_data = decode_json($properties_resp->decoded_content);
my $properties = $properties_data->{properties}->{items};
lib/Akamai/PropertyFetcher.pm view on Meta::CPAN
my $base_dir = "property";
my $property_dir = File::Spec->catdir($base_dir, $property_name);
make_path($property_dir) unless -d $property_dir;
# Retrieve activated version information
my $activations_endpoint = "$baseurl/papi/v1/properties/$property_id/activations?contractId=$contract_id&groupId=$group_id";
my $activations_resp = $agent->get($activations_endpoint);
if ($activations_resp->is_success) {
my $activations_data = decode_json($activations_resp->decoded_content);
# Sort activations to get the latest active versions for STAGING and PRODUCTION
lib/Akamai/PropertyFetcher.pm view on Meta::CPAN
$pm->finish;
}
# Retrieve and save staging version details if an active version is found
if (defined $staging_version) {
my $staging_rules_endpoint = "$baseurl/papi/v1/properties/$property_id/versions/$staging_version/rules?contractId=$contract_id&groupId=$group_id";
my $staging_rules_resp = $agent->get($staging_rules_endpoint);
if ($staging_rules_resp->is_success) {
my $staging_rules_content = $staging_rules_resp->decoded_content;
my $staging_file_path = File::Spec->catfile($property_dir, "staging.json");
lib/Akamai/PropertyFetcher.pm view on Meta::CPAN
}
}
# Retrieve and save production version details if an active version is found
if (defined $production_version) {
my $production_rules_endpoint = "$baseurl/papi/v1/properties/$property_id/versions/$production_version/rules?contractId=$contract_id&groupId=$group_id";
my $production_rules_resp = $agent->get($production_rules_endpoint);
if ($production_rules_resp->is_success) {
my $production_rules_content = $production_rules_resp->decoded_content;
my $production_file_path = File::Spec->catfile($property_dir, "production.json");
view all matches for this distribution
view release on metacpan or search on metacpan
while (1) {
my @path = map { @$_ } $dbh->selectall_array($sth,
{}, $start, $max_length);
my @endpoints = indexes { $_ eq $final } @path;
my $last_elem = random_element( @endpoints );
next unless defined $last_elem;
splice @path, $last_elem + 1;
while (1) {
my @path = map { @$_ } $dbh->selectall_array($sth,
{}, $start_id, $max_length);
my @endpoints = indexes { %accepting{$_} } @path;
my $last_elem = random_element( @endpoints );
next unless defined $last_elem;
splice @path, $last_elem + 1;
view all matches for this distribution
view release on metacpan or search on metacpan
Interval2Prefix.pm view on Meta::CPAN
=over 4
=item *
With interval2prefix(), the endpoints of the interval must be the
same length (same number of digits in the particular number base)
for the results to make any sense.
=item *
view all matches for this distribution
view release on metacpan or search on metacpan
/*
The variables stx, fx, dgx contain the values of the step,
function, and directional derivative at the best step.
The variables sty, fy, dgy contain the value of the step,
function, and derivative at the other endpoint of
the interval of uncertainty.
The variables stp, f, dg contain the values of the step,
function, and derivative at the current step.
*/
stx = sty = 0.;
*
* The parameter x represents the step with the least function value.
* The parameter t represents the current step. This function assumes
* that the derivative at the point of x in the direction of the step.
* If the bracket is set to true, the minimizer has been bracketed in
* an interval of uncertainty with endpoints between x and y.
*
* @param x The pointer to the value of one endpoint.
* @param fx The pointer to the value of f(x).
* @param dx The pointer to the value of f'(x).
* @param y The pointer to the value of another endpoint.
* @param fy The pointer to the value of f(y).
* @param dy The pointer to the value of f'(y).
* @param t The pointer to the value of the trial value, t.
* @param ft The pointer to the value of f(t).
* @param dt The pointer to the value of f'(t).
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Algorithm/Networksort.pm view on Meta::CPAN
my $t = length sprintf("%b", $inputs - 1);
my $lastbit = 1 << $t;
#
# $x and $y are the comparator endpoints.
# We begin with values of zero and one.
#
my($x, $y) = (0, 1);
while (1 == 1)
lib/Algorithm/Networksort.pm view on Meta::CPAN
my $clen = $to - $from;
if ($cmptr[$clen] == 0)
{
$cmptr[$clen] = 1;
my $endpoint = $vcoord[$to] - $vcoord[$from];
$string .=
qq( <g id="C$clen$salt" $g_style >\n) .
qq( <desc>Comparator size $clen</desc>\n) .
qq( <line $l_style x1="0" y1="0" x2="0" y2="$endpoint" />\n);
if ($c_radius > 0)
{
$string .= qq( <circle $b_style cx="0" cy="0" r="$c_radius" />) .
qq( <circle $e_style cx="0" cy="$endpoint" r="$c_radius" />\n);
}
$string .= qq( </g>\n);
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Algorithm/Shape/RandomTree.pm view on Meta::CPAN
my $start_point = $parent->end_point;
my $verb = $self->verbose;
my ( $dx, $dy ) = $self->calc_new_deltas( $parent );
my ( $x_end, $y_end ) = $self->calc_new_endpoints(
$start_point, $dx, $dy
);
my $end_point = Algorithm::Shape::RandomTree::Branch::Point->new(
x => $x_end, y => $y_end
lib/Algorithm/Shape/RandomTree.pm view on Meta::CPAN
return( $new_dx, $new_dy );
}
# Calculate New End-points: ( by adding the deltas to the start-points )
sub calc_new_endpoints {
my ( $self, $start_point, $dx, $dy ) = @_;
my $x_end = $dx + $start_point->x;
my $y_end = $dy + $start_point->y;
lib/Algorithm/Shape/RandomTree.pm view on Meta::CPAN
my $name = $parent->name;
$verb && print "[make_branche] on parent: $name\n";
my ( $dx, $dy ) = $self->calc_new_deltas( $parent );
my ( $x_end, $y_end ) = $self->calc_new_endpoints(
$start_point, $dx, $dy
);
my $end_point = Algorithm::Shape::RandomTree::Branch::Point->new(
x => $x_end, y => $y_end
lib/Algorithm/Shape/RandomTree.pm view on Meta::CPAN
=head1 SUBROUTINES/METHODS
=head2 calc_new_deltas
=head2 calc_new_endpoints
=head2 calc_new_nodulation
=head2 create_branch
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Algorithm/TravelingSalesman/BitonicTour.pm view on Meta::CPAN
=over 4
=item 1. Focus on optimal B<open> bitonic tours.
B<Optimal open bitonic tours> have endpoints (i,j) where C<< i < j < R >>, and
they are the building blocks of the optimal closed bitonic tour we're trying to
find.
An open bitonic tour, optimal or not, has these properties:
* it's bitonic (a vertical line crosses the tour at most twice)
* it's open (it has endpoints), which we call "i" and "j" (i < j)
* all points to the left of "j" are visited by the tour
* points i and j are endpoints (connected to exactly one edge)
* all other points in the tour are connected to two edges
For a given set of points there may be many open bitonic tours with endpoints
(i,j), but we are only interested in the I<optimal> open tour--the tour with
the shortest length. Let's call this tour B<C<T(i,j)>>.
=item 2. Grok the (slightly) messy recurrence relation.
lib/Algorithm/TravelingSalesman/BitonicTour.pm view on Meta::CPAN
=over 4
=item B<Finding C<T(0,5)>>
From our definition, C<T(0,5)> must have endpoints C<0> and C<5>, and must also
include all intermediate points C<1>-C<4>. This means C<T(0,5)> is composed of
points C<0> through C<5> in order. This is also the union of C<T(0,4)> and the
line segment C<4>-C<5>.
=item B<Finding C<T(1,5)>>
C<T(1,5)> has endpoints at C<1> and C<5>, and visits all points to the left of
C<5>. To preserve the bitonicity of C<T(1,5)>, the only possibility for the
tour is the union of C<T(1,4)> and line segment C<4>-C<5>. I have included a
short proof by contradiction of this in the source code.
=begin comment
Proof by contradiction:
1. Assume the following:
* T(1,5) is an optimal open bitonic tour having endpoints 1 and 5.
* Points 4 and 5 are not adjacent in the tour, i.e. the final segment in
the tour joins points "P" and 5, where "P" is to the left of point 4.
2. Since T(1,5) is an optimal open bitonic tour, point 4 is included in the
middle of the tour, not at an endpoint, and is connected to two edges.
3. Since 4 is not connected to 5, both its edges connect to points to its
left.
4. Combined with the segment from 5 to P, a vertical line immediately to the
left of point 4 must cross at least three line segments, thus our proposed
T(1,5) is not bitonic.
lib/Algorithm/TravelingSalesman/BitonicTour.pm view on Meta::CPAN
Our logic for finding C<T(1,5)> applies to these cases as well.
=item B<Finding C<T(4,5)>>
Tour C<T(4,5)> breaks the pattern seen in C<T(0,5)> through C<T(3,5)>, because
the leftmost point (point 4) must be an endpoint in the tour. Via proof by
contradiction similar to the above, our choices for constructing C<T(4,5)> are:
T(0,4) + line segment from 0 to 5
T(1,4) + line segment from 1 to 5
T(2,4) + line segment from 2 to 5
lib/Algorithm/TravelingSalesman/BitonicTour.pm view on Meta::CPAN
Find the length of the optimal complete (closed) bitonic tour. This is done by
choosing the shortest tour from the set of all possible complete tours.
A possible closed tour is composed of a partial tour with rightmost point C<R>
as one of its endpoints plus the final return segment from R to the other
endpoint of the tour.
T(0,R) + delta(0,R)
T(1,R) + delta(1,R)
...
T(i,R) + delta(i,R)
lib/Algorithm/TravelingSalesman/BitonicTour.pm view on Meta::CPAN
}
=head2 $obj->optimal_open_tour_adjacent($i,$j)
Uses information about optimal open tours to the left of <$j> to find the
optimal tour with endpoints (C<$i>, C<$j>).
This method handles the case where C<$i> and C<$j> are adjacent, i.e. C<< $i =
$j - 1 >>. In this case there are many possible bitonic tours, all going from
C<$i> to "C<$x>" to C<$j>. All points C<$x> in the range C<(0 .. $i - 1)> are
examined to find the optimal tour.
lib/Algorithm/TravelingSalesman/BitonicTour.pm view on Meta::CPAN
}
=head2 $obj->optimal_open_tour_nonadjacent($i,$j)
Uses information about optimal open tours to the left of <$j> to find the
optimal tour with endpoints (C<$i>, C<$j>).
This method handles the case where C<$i> and C<$j> are not adjacent, i.e. C<<
$i < $j - 1 >>. In this case there is only one bitonic tour possible, going
from C<$i> to C<$j-1> to C<$j>.
lib/Algorithm/TravelingSalesman/BitonicTour.pm view on Meta::CPAN
=head2 $b->tour($i,$j)
Returns the data structure associated with the optimal open bitonic tour with
endpoints (C<$i>, C<$j>).
=cut
sub tour {
my ($self, $i, $j) = @_;
lib/Algorithm/TravelingSalesman/BitonicTour.pm view on Meta::CPAN
return $self->_tour->{$i}{$j};
}
=head2 $b->tour_length($i, $j, [$len])
Returns the length of the optimal open bitonic tour with endpoints (C<$i>,
C<$j>). If C<$len> is specified, set the length to C<$len>.
=cut
sub tour_length {
lib/Algorithm/TravelingSalesman/BitonicTour.pm view on Meta::CPAN
}
=head2 $b->tour_points($i, $j, [@points])
Returns an array containing the indices of the points in the optimal open
bitonic tour with endpoints (C<$i>, C<$j>).
If C<@points> is specified, set the endpoints to C<@points>.
=cut
sub tour_points {
my $self = shift;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/Build/Plugin/Download/GitHub.pm view on Meta::CPAN
else
{
$meta->add_requires('configure' => 'Alien::Build::Plugin::Download::GitHub' => 0 );
}
my $endpoint = $self->tags_only ? 'tags' : 'releases' ;
$meta->prop->{start_url} ||= "https://api.github.com/repos/@{[ $self->github_user ]}/@{[ $self->github_repo ]}/$endpoint";
$meta->apply_plugin('Download',
prefer => $self->prefer,
version => $self->version,
);
lib/Alien/Build/Plugin/Download/GitHub.pm view on Meta::CPAN
=back
=head2 tags_only
Boolean value for those repositories that do not upgrade their tags to releases.
There are two different endpoints. One for
L<releases|https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository>
and one for simple L<tags|https://developer.github.com/v3/repos/#list-tags>. The
default is to interrogate the former for downloads. Passing a true value for
L</"tags_only"> interrogates the latter for downloads.
view all matches for this distribution
view release on metacpan or search on metacpan
src/Source/LibPNG/png.c view on Meta::CPAN
return 0;
}
static int
png_colorspace_endpoints_match(const png_xy *xy1, const png_xy *xy2, int delta)
{
/* Allow an error of +/-0.01 (absolute value) on each chromaticity */
if (PNG_OUT_OF_RANGE(xy1->whitex, xy2->whitex,delta) ||
PNG_OUT_OF_RANGE(xy1->whitey, xy2->whitey,delta) ||
PNG_OUT_OF_RANGE(xy1->redx, xy2->redx, delta) ||
src/Source/LibPNG/png.c view on Meta::CPAN
png_colorspace_check_xy(png_XYZ *XYZ, const png_xy *xy)
{
int result;
png_xy xy_test;
/* As a side-effect this routine also returns the XYZ endpoints. */
result = png_XYZ_from_xy(XYZ, xy);
if (result != 0)
return result;
result = png_xy_from_XYZ(&xy_test, XYZ);
if (result != 0)
return result;
if (png_colorspace_endpoints_match(xy, &xy_test,
5/*actually, the math is pretty accurate*/) != 0)
return 0;
/* Too much slip */
return 1;
src/Source/LibPNG/png.c view on Meta::CPAN
XYZtemp = *XYZ;
return png_colorspace_check_xy(&XYZtemp, xy);
}
/* Used to check for an endpoint match against sRGB */
static const png_xy sRGB_xy = /* From ITU-R BT.709-3 */
{
/* color x y */
/* red */ 64000, 33000,
/* green */ 30000, 60000,
src/Source/LibPNG/png.c view on Meta::CPAN
(colorspace->flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0)
{
/* The end points must be reasonably close to any we already have. The
* following allows an error of up to +/-.001
*/
if (png_colorspace_endpoints_match(xy, &colorspace->end_points_xy,
100) == 0)
{
colorspace->flags |= PNG_COLORSPACE_INVALID;
png_benign_error(png_ptr, "inconsistent chromaticities");
return 0; /* failed */
src/Source/LibPNG/png.c view on Meta::CPAN
colorspace->flags |= PNG_COLORSPACE_HAVE_ENDPOINTS;
/* The end points are normally quoted to two decimal digits, so allow +/-0.01
* on this test.
*/
if (png_colorspace_endpoints_match(xy, &sRGB_xy, 1000) != 0)
colorspace->flags |= PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB;
else
colorspace->flags &= PNG_COLORSPACE_CANCEL(
PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB);
src/Source/LibPNG/png.c view on Meta::CPAN
return 0; /* failed */
}
int /* PRIVATE */
png_colorspace_set_endpoints(png_const_structrp png_ptr,
png_colorspacerp colorspace, const png_XYZ *XYZ_in, int preferred)
{
png_XYZ XYZ = *XYZ_in;
png_xy xy;
src/Source/LibPNG/png.c view on Meta::CPAN
/* If the standard sRGB cHRM chunk does not match the one from the PNG file
* warn but overwrite the value with the correct one.
*/
if ((colorspace->flags & PNG_COLORSPACE_HAVE_ENDPOINTS) != 0 &&
!png_colorspace_endpoints_match(&sRGB_xy, &colorspace->end_points_xy,
100))
png_chunk_report(png_ptr, "cHRM chunk does not match sRGB",
PNG_CHUNK_ERROR);
/* This check is just done for the error reporting - the routine always
src/Source/LibPNG/png.c view on Meta::CPAN
/* intent: bugs in GCC force 'int' to be used as the parameter type. */
colorspace->rendering_intent = (png_uint_16)intent;
colorspace->flags |= PNG_COLORSPACE_HAVE_INTENT;
/* endpoints */
colorspace->end_points_xy = sRGB_xy;
colorspace->end_points_XYZ = sRGB_XYZ;
colorspace->flags |=
(PNG_COLORSPACE_HAVE_ENDPOINTS|PNG_COLORSPACE_ENDPOINTS_MATCH_sRGB);
view all matches for this distribution
view release on metacpan or search on metacpan
}
}
sub do_dist_temurin {
# API documentation: <https://github.com/adoptium/api.adoptium.net>
my $endpoint_server = 'https://api.adoptium.net';
start_url $endpoint_server . '/v3/info/available_releases';
# Perl to API
my %os_mapping = (
linux => 'linux',
MSWin32 => 'windows',
my $release = $available_releases->{most_recent_lts};
$build->log( "Using release $release" );
my $assets = _decode( $orig->($build,
$endpoint_server
. "/v3/assets/latest/${release}/hotspot"
. "?image_type=jdk"
. "&os=${os}"
. "&architecture=${arch}"
. "&vendor=eclipse"
view all matches for this distribution
view release on metacpan or search on metacpan
src/subversion/subversion/include/private/svn_mergeinfo_private.h view on Meta::CPAN
/* Set *YOUNGEST_REV and *OLDEST_REV to the youngest and oldest revisions
found in the rangelists within MERGEINFO. Note that *OLDEST_REV is
exclusive and *YOUNGEST_REV is inclusive. If MERGEINFO is NULL or empty
set *YOUNGEST_REV and *OLDEST_REV to SVN_INVALID_REVNUM. */
svn_error_t *
svn_mergeinfo__get_range_endpoints(svn_revnum_t *youngest_rev,
svn_revnum_t *oldest_rev,
svn_mergeinfo_t mergeinfo,
apr_pool_t *pool);
/* Set *FILTERED_MERGEINFO to a deep copy of MERGEINFO, allocated in
view all matches for this distribution
view release on metacpan or search on metacpan
share/swagger-ui-bundle.js.map view on Meta::CPAN
{"version":3,"sources":["webpack://SwaggerUIBundle/webpack/universalModuleDefinition","webpack://SwaggerUIBundle/webpack/bootstrap","webpack://SwaggerUIBundle/./node_modules/react/react.js","webpack://SwaggerUIBundle/./node_modules/immutable/dist/imm...
view all matches for this distribution
view release on metacpan or search on metacpan
share/vendor/js/backbone.js view on Meta::CPAN
if (!options.wait) destroy();
return xhr;
},
// Default URL for the model's representation on the server -- if you're
// using Backbone's restful methods, override this to change the endpoint
// that will be called.
url: function() {
var base = _.result(this, 'urlRoot') || _.result(this.collection, 'url') || urlError();
if (this.isNew()) return base;
return base + (base.charAt(base.length - 1) === '/' ? '' : '/') + encodeURIComponent(this.id);
view all matches for this distribution
view release on metacpan or search on metacpan
xgboost/dmlc-core/src/io/s3_filesys.cc view on Meta::CPAN
if (region_name == "us-east-1") {
return "s3.amazonaws.com";
} else if (region_name == "cn-north-1") {
return "s3.cn-north-1.amazonaws.com.cn";
} else {
std::string result_endpoint = std::string("s3-");
result_endpoint.append(region_name);
result_endpoint.append(".amazonaws.com");
return result_endpoint;
}
}
// useful callback for reading memory
view all matches for this distribution
view release on metacpan or search on metacpan
libcares/ares_platform.c view on Meta::CPAN
{"swdtp", {NULL}, 10104, "udp"},
{"bctp-server", {NULL}, 10107, "tcp"},
{"bctp-server", {NULL}, 10107, "udp"},
{"nmea-0183", {NULL}, 10110, "tcp"},
{"nmea-0183", {NULL}, 10110, "udp"},
{"netiq-endpoint", {NULL}, 10113, "tcp"},
{"netiq-endpoint", {NULL}, 10113, "udp"},
{"netiq-qcheck", {NULL}, 10114, "tcp"},
{"netiq-qcheck", {NULL}, 10114, "udp"},
{"netiq-endpt", {NULL}, 10115, "tcp"},
{"netiq-endpt", {NULL}, 10115, "udp"},
{"netiq-voipa", {NULL}, 10116, "tcp"},
view all matches for this distribution
view release on metacpan or search on metacpan
libuv/docs/src/errors.rst view on Meta::CPAN
read-only file system
.. c:macro:: UV_ESHUTDOWN
cannot send after transport endpoint shutdown
.. c:macro:: UV_ESPIPE
invalid seek
view all matches for this distribution
view release on metacpan or search on metacpan
t/test/resources/terms view on Meta::CPAN
degradation intermediate degradation intermediate
degradative enzyme degradative enzyme
degradative enzyme synthesis degradative enzyme synthesis
deletion analysis deletion analysis
deletion derivative deletion derivative
deletion endpoints deletion endpoints
deletion formation deletion formation
deletion frequency deletion frequency
deletion from a sequence sequence deletion
deletion mapping deletion mapping
deletion mapping experiment deletion mapping experiment
view all matches for this distribution
view release on metacpan or search on metacpan
Revision history for Amazon-CloudFront-Thin
0.05 2019-04-20
- update API endpoints (Chris Compton)
- support filenames containing ']]>'
- updated CloudFront documentation links
0.04 2015-12-29
- Docs on handling unicode paths (Devin Ceartas)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Amazon/MWS/Client.pm view on Meta::CPAN
=head3 version
The version of your application. Defaults to the current version of this
module.
=head3 endpoint
Where MWS lives. Defaults to 'https://mws.amazonaws.com'.
=head3 access_key_id
lib/Amazon/MWS/Client.pm view on Meta::CPAN
The call to the API method was missing a required argument. The name of the
missing argument can be found in $e->name.
=head2 Amazon::MWS::Exception::Transport
There was an error communicating with the Amazon endpoint. The HTTP::Request
and Response objects can be found in $e->request and $e->response.
=head2 Amazon::MWS::Exception::Response
Amazon returned an response, but indicated an error. An arrayref of hashrefs
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Amazon/S3.pm view on Meta::CPAN
########################################################################
my ( $self, $verify_region ) = @_;
# The "default" region for Amazon is us-east-1
# This is the region to set it to for listing buckets
# You may need to reset the signer's endpoint to 'us-east-1'
# temporarily cache signer
my $region = $self->_region;
my $bucket_list;
lib/Amazon/S3.pm view on Meta::CPAN
$self->last_request($request);
$request->content($data);
$self->signer->region($region); # always set regional endpoint for signing
$self->signer->sign($request);
$self->get_logger->trace( sub { return Dumper( [$request] ); } );
lib/Amazon/S3.pm view on Meta::CPAN
# Don't recurse through multiple redirects
return $FALSE
if $called_from_redirect;
# With a permanent redirect error, they are telling us the explicit
# host to use. The endpoint will be in the form of bucket.host
my $host = $error_hash->{'Endpoint'};
# Remove the bucket name from the front of the host name
# All the requests will need to be of the form https://host/bucket
$host =~ s/\A$bucket[.]//xsm;
lib/Amazon/S3.pm view on Meta::CPAN
if ( $error_hash->{'Code'} eq 'AuthorizationHeaderMalformed'
and $error_hash->{'Region'} ) {
# Set the signer to use the correct reader evermore
$self->{'signer'}{'endpoint'} = $error_hash->{'Region'};
# Only change the host if we haven't been called as a redirect
# where an exact host has been given
if ( !$called_from_redirect ) {
$self->host( 's3-' . $error_hash->{'Region'} . '.amazonaws.com' );
lib/Amazon/S3.pm view on Meta::CPAN
# This is hackish; but in this case the region name only appears in the message
if ( $error_hash->{'Message'} =~ /The (\S+) location/xsm ) {
my $region = $1;
# Correct the region for the signer
$self->{'signer'}{'endpoint'} = $region;
# Set the proper host for the region
$self->host( 's3.' . $region . '.amazonaws.com' );
return $TRUE;
lib/Amazon/S3.pm view on Meta::CPAN
default: off
=item host
Defines the S3 host endpoint to use.
default: s3.amazonaws.com
Note that requests are made to domain buckets when possible. You can
prevent that behavior if either the bucket name does not conform to
DNS bucket naming conventions or you preface the bucket name with '/'.
If you set a region then the host name will be modified accordingly if
it is an Amazon endpoint.
=item region
The AWS region you where your bucket is located.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Amazon/SNS/V4.pm view on Meta::CPAN
} @{$r->{'ListTopicsResult'}{'Topics'}[0]{'member'}};
}
sub Subscribe
{
my ($self, $protocol, $topicarn, $endpoint) = @_;
$self->dispatch({
'Action' => 'Subscribe',
'Protocol' => $protocol,
'TopicArn' => $topicarn,
'Endpoint' => $endpoint,
});
}
sub Unsubscribe
{
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Amazon/SNS.pm view on Meta::CPAN
} @{$r->{'ListTopicsResult'}{'Topics'}[0]{'member'}};
}
sub Subscribe
{
my ($self, $protocol, $topicarn, $endpoint) = @_;
$self->dispatch({
'Action' => 'Subscribe',
'Protocol' => $protocol,
'TopicArn' => $topicarn,
'Endpoint' => $endpoint,
});
}
sub Unsubscribe
{
view all matches for this distribution
view release on metacpan or search on metacpan
bin/QueueDaemon.pl view on Meta::CPAN
config|c=s
create-queue|C
daemonize|d!
delete-when|D=s
exit-when|E=s
endpoint_url|e=s
help|h
logfile|L=s
loglevel|l=s
max-children|m=i
max-sleep-time=i
bin/QueueDaemon.pl view on Meta::CPAN
autoload $options->{handler};
my $handler = $options->{handler}->new(
config => $config,
logger => $logger,
endpoint_url => $options->{endpoint_url},
name => $options->{queue},
url => $options->{'queue-url'},
message_type => $options->{'message-type'},
create_queue => $options->{'create-queue'},
wait_time => $options->{'wait-time'},
bin/QueueDaemon.pl view on Meta::CPAN
-C, --create-queue create the queue if it does not exist
-d, --daemonize daemonize the script (default)
--no-daemonize
-D, --delete-when never, always, error
-E, --exit-when never, always, error, false
-e, --endpoint-url default: https://sqs.amazonaws.com
-L, --logfile name of logfile
-l, --loglevel log level (trace, debug, info, warn, error)
-H, --handler name of the handler class, default: Amazon::SQS::QueueHandler
-m, --max-children not implemented (default: 1)
-s, --max-sleep-time default: 5 seconds
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Amazon/SQS/Simple/AnyEvent.pm view on Meta::CPAN
use Amazon::SQS::Simple;
use Amazon::SQS::Simple::AnyEvent;
my $sqs = Amazon::SQS::Simple->new($access_key, $secret_key);
my $queue = $sqs->GetQueue($endpoint);
my $cb = sub {my $message = shift};
my $msg = $queue->ReceiveMessage(); # Blocking
my $guard = $queue->ReceiveMessage($cb); # Non-blocking
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Amazon/SQS/Simple.pm view on Meta::CPAN
our $VERSION = '2.07';
our @EXPORT_OK = qw( timestamp );
sub GetQueue {
my ($self, $queue_endpoint) = @_;
if ($queue_endpoint =~ /^arn:aws:sqs/) {
my ($host, $user, $queue);
(undef, undef, undef, $host, $user, $queue) = split(/:/, $queue_endpoint);
$queue_endpoint = "https://sqs.$host.amazonaws.com/$user/$queue";
}
return Amazon::SQS::Simple::Queue->new(
$self->{AWSAccessKeyId}, #AWSAccessKeyId and SecretKey are the first two arguments to Amazon::SQS::Simple::Base->new
$self->{SecretKey},
%$self,
Endpoint => $queue_endpoint,
);
}
sub CreateQueue {
my ($self, $queue_name, %params) = @_;
lib/Amazon/SQS/Simple.pm view on Meta::CPAN
=head1 METHODS
=over 2
=item GetQueue($queue_endpoint)
Gets the queue with the given endpoint. Returns a
C<Amazon::SQS::Simple::Queue> object. (See L<Amazon::SQS::Simple::Queue> for details.)
=item CreateQueue($queue_name, [%opts])
Creates a new queue with the given name. Returns a
view all matches for this distribution
view release on metacpan or search on metacpan
factpacks/jargon-split.fact view on Meta::CPAN
legal2 is the trailing linefeed." Hackers often model their work as a sort of game played with the environment in which the objective is to maneuver through the thicket of `natural laws' to achieve a desired objective. Their use of `legal'...
legal3 is as by the more conventional one having to do with courts and lawyers. Compare {language lawyer}, {legalese}.
legalese is n. Dense, pedantic verbiage in a language description, product specification, or interface standard; text that seems designed to obfuscate and requires a {language lawyer} to {parse} it. Though hackers are not afraid of high infor...
legalese2 is (indeed, they rather enjoy both), they share a deep and abiding loathing for legalese; they associate it with deception, {suit}s, and situations in which hackers generally get the short end of the stick.
LER is /L-E-R/ [TMRC, from `Light-Emitting Diode] n. A light-emitting resistor (that is, one in the process of burning up). Ohm's law was broken. See {SED}.
LERP is /lerp/ vi.,n. Quasi-acronym for Linear Interpolation, used as a verb or noun for the operation. E.g., Bresenham's algorithm lerps incrementally between the two endpoints of the line.
let the smoke out is v. To fry hardware (see {fried}). See {magic smoke} for the mythology behind this.
letterbomb is n. A piece of {email} containing {live data} intended to do nefarious things to the recipient's machine or terminal. It is possible, for example, to send letterbombs that will lock up some specific kinds of terminals when they a...
letterbomb2 is {cycle power} to unwedge them. Under UNIX, a letterbomb can also try to get part of its contents interpreted as a shell command to the mailer. The results of this could range from silly to tragic. See also {Trojan horse}; co...
lexer is /lek'sr/ n. Common hacker shorthand for `lexical analyzer', the input-tokenizing stage in the parser for a language (the part that breaks it into word-like pieces). "Some C lexers get confused by the old-style compound ops like `=-'....
lexiphage is /lek'si-fayj`/ n. A notorious word {chomper} on ITS. See {bagbiter}.
factpacks/jargon-split.fact view on Meta::CPAN
smash the stack3 is also {aliasing bug}, {fandango on core}, {memory leak}, {precedence lossage}, {overrun screw}.
smiley is n. See {emoticon}.
smoke test is n. 1. A rudimentary form of testing applied to electronic equipment following repair or reconfiguration, in which power is applied and the tester checks for sparks, smoke, or other dramatic signs of fundamental failure. See {mag...
smoke test2 is of a piece of software after construction or a critical change. See and compare {reality check}. There is an interesting semi-parallel to this term among typographers and printers When new typefaces are being punch-cut by han...
smoke test3 is smoke, then press it onto paper) is used to check out new dies.
smoking clover is [ITS] n. A {display hack} originally due to Bill Gosper. Many convergent lines are drawn on a color monitor in {AOS} mode (so that every pixel struck has its color incremented). The lines all have one endpoint in the middle...
smoking clover2 is spaced one pixel apart around the perimeter of a large square. The color map is then repeatedly rotated. This results in a striking, rainbow-hued, shimmering four-leaf clover. Gosper joked about keeping it hidden from the...
smoking clover3 is Administration) lest its hallucinogenic properties cause it to be banned.
SMOP is /S-M-O-P/ [Simple (or Small) Matter of Programming] n. 1. A piece of code, not yet written, whose anticipated length is significantly greater than its complexity. Used to refer to a program that could obviously be written, but is not ...
SMOP2 is imply that a difficult problem can be easily solved because a program can be written to do it; the irony is that it is very clear that writing such a program will be a great deal of work. "It's easy to enhance a FORTRAN compiler to ...
SMOP3 is Often used ironically by the intended victim when a suggestion for a program is made which seems easy to the suggester, but is obviously (to the victim) a lot of work.
view all matches for this distribution
view release on metacpan or search on metacpan
3.05 2011-10-13
[ENHANCEMENTS]
- Flavor::Minimum: more minimalistic
- Flavor::Basic: logout endpoint should be only accept post
3.04 2011-10-11
[FEATURE ENHACEMENTS]
* Flavor::Large: better div structure on admin page
view all matches for this distribution