The World Wide Web is a system of Internet servers that support specially formatted documents.
The documents are formatted in a markup language called HTML (HyperText Markup Language) that supports links to other documents, as well as graphics, audio, and video files. This means you can jump from one document to another simply by clicking on hot spots. Not all Internet servers are part of the World Wide Web.
Here are some main parts of the World Wide Web.
Tags, atributes and inline and block elements
1. TagsAre commands inserted in a document that specifies how the document, or a portion of the document, should be formatted. Tags are used by all format specifications that store documents as text files. This includes SGML and HTML.
2. AttributesAn HTML attribute is a modifier of an HTML element. They are usually added to a HTML start tag, which along with content and end tag comprises most HTML elements.
3. Inline and Block ElementsMost HTML elements are defined as block level elements or inline elements.
Block level elements normally start (and end) with a new line, when displayed in a browser.Inline elements are normally displayed without line breaks.


TinyMCE 5.x + elFinder Integration

This TinyMCE editor is fully integrated with the elFinder file manager.

You can upload images on TinyMCE upload dialog and save the result of image editing on TinyMCE to elFinder.


Maxwell’s Equations and Transfer of Momentum and Energy
Energy transfer can be described through Poynting vector which in the simplist plane wave case is basically where is the energy density. Obviously Poynting vector is the energy transfer rate.
Momentum density is in the same plane wave.
Let’s start from conservation of charge. Taking the divergence of the following equation,
I get the conservation law,
On the next step we find energy density of the wave. The starting point is the interaction of charge and electric field, e.g., , .
Upon this we can find which is
As for momentum, we have
where
The equation for monochromatic wave,
In the case of (no free charge) and no free current,
The important relation is dispersion relation which is the relation between wave number and frequency. In this context,
which reduces to
as now we can define a new velocity which stands for the phase velocity by
Since corresponds to the magnetic part , we would like to rewrite one of the equation to
where
If , we have
Matching conditions are not just something written down on the textbook. They all have meanings.
In order to satisfy these matching conditions, the phase of all fields should be the same. Thus leading to the Snell’s law
The parallel parts of the fields give us the other relation,
Recall that impedance is which leads to or corresponds to
Impedance shows the scaling between the magnetic field and the electric field. In fact for monochromatic TEM,
Then we derive the ratios,
By definition, impedance becomes when . In this limit,
Now what I need to be careful is that in this derivation, I used the geometry to project the fields on to the surface where the polarization of the wave matters. For the result above, they are only valid for waves with polarization parallel to the surface.
Using similar tricks, I can write down the result for waves with polarization perpendicular to surface. The matching conditions are
This can be abtained by just draw a graph of the incident wave, reflected wave and refracted wave.
Solving the equations
Reflection coefficient and transmission coefficient find the energy reflected and transmitted.
For normal incident, these becomes easier to calculate because all thetas becomes 0. The result is
Evanescent wave is the case when the wave vector becomes imaginary and the wave tenuates to 0 quickly. In the situation of total reflection, the transmitted wave can be calculated. To find out the evanescent wave one need to calculate the condition for total reflection then plug in the condition for a assumed wave in medium 2.
Evanescent wave doesn’t mean energy lose in reflection, it only proves that wave can not go deep into the material and all waves are reflected. The material does NOT nessarily obsorbe all the energy of the wave. One can show that in total reflection, energy flowing in all flows out, i.e.,
The question is, what is dissipative material? They are those with complex wave vectors such that wave dissipates as they passing through the bulk material.
A term of current
is added to the equations so that it describes matter which supports current.
Ohm’s law shows the relations between current and field,
By plug in this to the Maxwell’s equations, we can have a new permitivity. For monochromatic wave,
Using dispersion relation derived, we can define the complex refractive index.
Given the dispersion relation we could also find the waves and calculate Poynting vector
This is our anticipation since the wave vector has a length of due to dispersion relation . Plug this into the expression for plane wave, we have the spatial part proportional to
We can directly see the damping part. This is how one finds the skin depth which means the Poynting vector drops to of that of the incident wave,
If the imaginary part becomes very large, i.e.,
the atenuation becomes significant or both real part and imaginary part of refractive index becomes much larger than 1. This is equivalent to good conductor. We can see the skin depth
Refrective index also becomes 1.
Remember surface current is defined as
We could use this to find a effective surface current. Current density is
Using dispersion relation, and suppose we have wave vector in z direction. We can write down the incident wave
Fresnel’s relation tells us the refracted wave, which is
The last step is true for good conductor. The current density is therefore clear so is the surface current.
In summary, good conductor has a
Dispersive media can be modeled using Drude model, Lorentz model and many other. Read Drude Model and Lorentz Model in vocabulary part.
By definition, group velocity is the result of dispersion relation,
while phase velocity is always where n can be larger than 1.
Read chapte 5 of Kevin Cahill’s book for knowledge of complex dispersion relation and more. Notice that both group velocity and phase velocity can be larger than the vacuum speed of light.


Oklahoma oil prices and drilling report for Nov. 20, 2019
Oklahoma crude oil prices as of 5 p.m. Tuesday:
Oklahoma Sweet:
Sunoco Inc. — $51.75
Oklahoma Sour:
Sunoco Inc. — $39.75
Oklahoma oil and gas drilling activity posted Nov. 8:
COMPLETION
Kingfisher: Oklahoma Energy Acquisitions LP; Lil Sebastian 1606 No. 5-24MH Well; NW1/4 NW1/4 NE1/4 NE1/4 of 24-16N-06W; 1,047,000 cu-ft gas per day, 336 barrels oil per day; TD 12,549.
Oklahoma Energy Acquisitions LP; Lil Sebastian 1606 No. 7-24MH Well; NW1/4 NW1/4 NE1/4 NE1/4 of 24-16N-08W; 360,000 cu-ft gas per day, 220 barrels oil per day; TD 12,477.
Oklahoma Energy Acquisitions LP; Tullamore 1706 No. 10-7MH Well; SE1/4 SW1/4 SE1/4 SE1/4 (SL) of 06-17N-06W; 277 barrels oil per day, 174,000 cu-ft gas per day; TD 12,734.
Major: Chisholm Oil & Gas Operating LLC; Newt 20-09-21 No. 1MH Well; NW1/4 NW1/4 NW1/4 NE1/4 (BHL) of 21-20N-09W; 602,000 cu-ft gas per day, 120 barrels oil per day; TD 13,364.
Oklahoma Energy Acquisitions LP; Hilltop 2009 No. 1-19MH Well; NW1/4 NW1/4 NE1/4 NW1/4 of 19-20N-09W; 1,044,000 cu-ft gas per day, 164 barrels oil per day; TD 12,838.
Oklahoma Energy Acquisitions LP; Springer 2109 No. 1-29MH Well; SW1/4 SW1/4 SE1/4 SE1/4 (SL) of 20-21N-09W; 857,000 cu-ft gas per day, 145 barrels oil per day; TD 13,040.
INTENT TO DRILL
Kingfisher: Chaparral Energy LLC; Low Valley 1807 No. 1LMH-36 Well; SE1/4 SE1/4 SE1/4 SE1/4 (SL) of 36-18N-07W; TD 12,740.
Chisholm Oil & Gas Operating LLC; F. Lip 1808 No. 28-33 Well; SW1/4 SW1/4 SE1/4 SE1/4 (SL) of 21-18N-08W; TD 18,889.
Tillman: AC Operating Co. LLC; Cougar No. 1 Well; NE1/4 SW1/4 SW1/4 NW1/4 of 08-03S-18W; TD 6,000.
Tulsa: Sage NR OK LLC; Ross Scroggins No. 9A Well; NW1/4 SW1/4 NW1/4 NE1/4 of 32-21N-13E; TD 1,250.
Source: Oil-Law Records Corp.


$:{RENDER("common/user_tools.html", [profile, userinfo, relationship])}
$:{RENDER("common/user_tabs.html", [profile['username'], feature, profile['show_favorites_tab']])}
$if feature == "staffnotes":
Reporting Stats
$# open reports should come first in the list
Open:
${"0" if 'Open' not in userinfo['reportstats'] else userinfo['reportstats']['Open']} |
$for closuretype, reportcount in userinfo['reportstats'].items():
$if closuretype != 'Open':
${closuretype}:
${reportcount} |
Total:
${userinfo['reporttotal']}
Staff notes for ${profile['username']}
$else:
${profile['username']}'s Shouts
$if(shouts):
$:{RENDER("common/comment_thread.html", ["shouts_comments", shouts, "userid", myself, None, profile['userid']])}
$else:
There are no ${'staff notes' if feature == "staffnotes" else 'comments'} to display.
$if(myself):
$:{RENDER("common/comment_form.html", [myself, profile['userid'], feature])}


{% extends "layout.html" %} {% set title = "Declaration" %} {% set version = "4" %} {% block page_title %} {{title}} {% endblock %} {% block service_name %} Check and challenge your business rates valuation {% endblock %} {% block content %} {% include "includes/phase_banner_prototype.html" %} {{title}} I declare that: the information I have given in this form is correct and complete the file that I have uploaded is a business rates bill or one of the specified alternate documents, and the dates on the document relate to the period of time in which my request is for I understand that I could be taken to court if I knowingly submit false information. Warning Once you submit the form you will not be able to go back and make any changes. I agree to the above declaration Continue Back {% include "includes/get_help.html" %} {% endblock %} {% block body_end %} {% include "includes/" + version +"/scripts.html" %} {% endblock %}
I declare that:
I understand that I could be taken to court if I knowingly submit false information.
Continue


Does Pokemon Sword and Shield put a limit on leveling?
Source: iMore
Best answer: Yes. In Pokémon Sword and Shield, players can't catch any Pokémon higher than their current level. The only way to increase the level cap is by defeating a gym.
- Unsheathe your sword: Pokémon Sword ($60 at Amazon)
- Take up your shield: Pokémon Shield ($60 at Amazon)
Can't catch 'em all
Pokémon Sword and Shield are finally here. While they have a familiar look and feel, these Gen 8 titles have come with some big changes, including which Pokémon you can catch. We won't get into details here about the reduced Pokédex, but the new versions have added a restriction when it comes to catching wild Pokémon.
In the past, players were able to catch Pokémon in the wild, no matter the level. With Sword and Shield, players can only catch Pokémon equivalent to or lower than their current level. This restriction was put in place to create more overall balance within the game. Essentially, if you have a gym badge that lets you catch up to level 25, you can't catch a level 28 Pokémon. With this added restriction, if you encounter any higher-level Pokémon, you have to let it go or turn tail and run.
In the wild, especially when you are exploring a new area, you may encounter "strong-looking" Pokémon. If you run into a Pokémon described as strong-looking, you won't be able to catch it until you increase your level cap.  It won't get its guard down."
So, how do I increase my level cap?
Source: iMore
That's an easy one. You have to be the very best like no one ever was. Howevr, you have to be the best in order. The only way to increase the level cap for your Pokémon is to beat gyms, and they must be completed sequentially.
Unfortunately, if you were excited about and open-world Pokémon experience, this adds some linearity to it. That also means you can't just grind your way to the top, which creates a good balance for the game too. The first gym lets you catch Pokémon up to level 25 and as you defeat more, the level cap will increase.
Trouble with the level cap
Longtime fans of the series aren't exactly pleased with the new level restrictions. In the previous entries in the series, if a player encountered a high-level Pokémon, it would be a high-risk, high-reward scenario. Of course, if you did manage to catch one, these Pokémon weren't necessarily compliant. Often, they would ignore commands. However, when they did perform, their attacks would be devastating, thanks to being over-leveled. With the new restriction in place, this model is a thing of the past.
Level caps aren't necessarily a bad thing. They create balance in other aspects of the game, especially when it comes to online or co-op. The max level is 100, after all. The system ensures that you can't grind early and slaughter your competition. Nobody likes OP player-killers. Plus, it creates a challenge for the main story. Unless you're the type that likes to break the game earlier, this model forces a bit of challenge and strategy. Love it or hate it, the level restriction is here to stay.
Attack!
Pokémon Sword
Let the battle begin
Explore a whole new world in the 8th Gen Pokémon Sword. Adventure, discover and catch 'em all as you work your way through the Galar region battling anyone who crosses your path.
Defend
Pokémon Shield
Steel guard!
It's time to explore, though you have to keep an eye on that level cap. Adventure through Galar while catching brand new Pokémon in this Gen 8 release.
We may earn a commission for purchases using our links. Learn more.


Airship iOS SDK 13.2 to 14.0 Migration Guide
Airship SDK 14 is a major update that prepares our automation module to support future IAA enhancements, revamps our Channel Capture tool, improves support for Xcode 12 & iOS 14, and provides other improvements.
UAWhitelist is now UAURLAllowList
We have renamed UAWhitelist
to UAURLAllowList
. In addition to the class, many properties, methods and constants have been renamed.
There are now three URLAllowList keys that can be added to AirshipConfig.plist
:
URLAllowList
: The list used to validate which URLs can be opened or can load the JavaScript native bridge. This key was previously namedwhitelist
.URLAllowListScopeOpenURL
: The list used to validate which URLs can be opened.URLAllowListScopeJavaScriptInterface
: The list used to validate which URLs can load the JavaScript native bridge.
The values for any of the three keys are arrays of patterns that are matched to the URL. See UAURLAllowList for the syntax of the pattern entries.
WARNING (Behavior Change)
The openURLWhitelistingEnabled
config key has been removed. OpenURL-scoped URLs are now always verified. This will likely cause the Open URL and Landing Page actions to no longer work if you are using the default for that key (NO
). To fix this issue, add a wildcard (*
) entry to the new URLAllowListScopeOpenURL
key in AirshipConfig.plist. This will allow any URLs for those actions.
Automation Changes
Standard In-App Messages
In UALegacyInAppMessageBuilderExtender
the method extendScheduleInfoBuilder:message:
has been renamed to extendScheduleBuilder:message:
. It is passed a UAScheduleBuilder
object instead of the now removed UAInAppMessageScheduleInfoBuilder
object. All of the properties that used to exist in UAInAppMessageScheduleInfoBuilder
are now available on `UAScheduleBuilder
.
For example, the following is our pre-SDK 14 Example UALegacyInAppMessageBuilderExtender:
- (void)extendScheduleInfoBuilder:(UAInAppMessageScheduleInfoBuilder *)builder
message:(UALegacyInAppMessage *)message {
builder.limit = 2;
}
- (void)extendMessageBuilder:(UAInAppMessageBuilder *)builder
message:(UALegacyInAppMessage *)message {
UAInAppMessageBannerDisplayContent *bannerDisplayContent = (UAInAppMessageBannerDisplayContent *) builder.displayContent;
[bannerDisplayContent extend:^(UAInAppMessageBannerDisplayContentBuilder * _Nonnull builder) {
builder.borderRadiusPoints = 10;
}];
builder.displayContent = bannerDisplayContent;
}
The example updated for the new SDK 14 API:
- (void)extendScheduleBuilder:(UAScheduleBuilder *)builder
message:(UALegacyInAppMessage *)message {
builder.limit = 2;
}
- (void)extendMessageBuilder:(UAInAppMessageBuilder *)builder
message:(UALegacyInAppMessage *)message {
UAInAppMessageBannerDisplayContent *bannerDisplayContent = (UAInAppMessageBannerDisplayContent *) builder.displayContent;
[bannerDisplayContent extend:^(UAInAppMessageBannerDisplayContentBuilder * _Nonnull builder) {
builder.borderRadiusPoints = 10;
}];
builder.displayContent = bannerDisplayContent;
}
The required changes are limited to the method signature for extendMessageBuilder:message:
. The builder code remains the same.
In-App Automation API
The properties from the UAInAppMessageScheduleInfo
class have been merged into the UAInAppMessageSchedule
class. Instances are created using the scheduleWithMessage:builderBlock:
class method.
UAInAppMessageAudience
has been renamedUAScheduleAudience
, and has been moved fromUAInAppMessage
toUAInAppMessageSchedule
. TheUAInAppMessageAudienceMissBehaviorType
enum has been renamedUAScheduleAudienceMissBehaviorType
.UAInAppMessage
no longer has anidentifier
property. TheUAInAppMessageSchedule
identifier property is now used instead.
Note: The first time SDK 14 runs it will migrate existing in-app automations, setting the schedule identifier of each existing schedule to the message’s identifier, as long as the message identifiers are unique. If your app’s message identifiers are all unique, they can be used as the schedule identifiers when accessing schedules after migration. If your message identifiers are not unique, follow this process to map your existing message identifiers to the new schedule identifiers:
- During the migration, the existing message identifier and schedule identifier will be added to the metadata for each schedule, under the keys
com.urbanairship.original_message_id
andcom.urbanairship.original_schedule_id
, respectively. - After the migration, your code can use the methods in the Retrieving In-App Automation Schedules section below to loop through all schedules, mapping your app’s previous message and schedule identifiers to the new schedule identifiers.
Scheduling In-App Automation Schedules
// Schedule one in-app automation schedule
[[UAInAppAutomation shared] schedule:schedule completionHandler:^(BOOL result) {
NSLog(@"Schedule result = %@", (result) ? @"YES" : @"NO");
}];
// Schedule multiple in-app automation schedule
[[UAInAppAutomation shared] scheduleMultiple:schedules completionHandler:^(BOOL result) {
NSLog(@"Schedule multiple result = %@", (result) ? @"YES" : @"NO");
}];
Retrieving In-App Automation Schedules
[[UAInAppAutomation shared] getMessageScheduleWithID:identifier completionHandler:^(UAInAppMessageSchedule *schedule) {
// get schedule
}];
[[UAInAppAutomation shared] getMessageSchedules:^(NSArray<UAInAppMessageSchedule *> *schedules) {
// get all schedules
}];
[[UAInAppAutomation shared] getMessageSchedulesWithGroup:@"group_name" completionHandler:^(NSArray<UAInAppMessageSchedule *> *actionSchedules) {
// get all schedules of the given group.
}];
Canceling In-App Automation Schedules
Methods for canceling a single schedule or a group of schedules have also been moved from UAActionAutomation
to UAInAppAutomation
. There is no longer a method for canceling all schedules.
// Cancels a schedule with the given identifier
[[UAInAppAutomation shared] cancelScheduleWithID:@"some_scheduled_identifier" completionHandler:^(BOOL result) {
NSLog(@"Cancel result = %@", (result) ? @"YES" : @"NO");
}];
// Cancels all schedules of the given group
[[UAInAppAutomation shared] cancelMessageSchedulesWithGroup:@"some_group_name" completionHandler:^(BOOL result) {
NSLog(@"Cancel result = %@", (result) ? @"YES" : @"NO");
}];
Action Automation API
The UAActionScheduleInfo
class has been replaced by the UAActionSchedule
class. Instances are created using the scheduleWithActions:builderBlock:
class method. Schedule the action schedule instance using UAInAppAutomation
‘s schedule:completionHandler:
or scheduleMultiple:completionHandler:
methods.
Scheduling Actions
The UAActionAutomation
method scheduleActions:completionHandler:
has been moved to UAInAppAutomation
and renamed schedule:completionHandler:
. It is passed a UASchedule
object instead of the now removed UAActionScheduleInfo
. All of the properties that used to exist in UAActionScheduleInfo
are now available on `UAScheduleBuilder
.
For example, the following is our pre-SDK 14 scheduling actions example:
// Build the schedule info
UAActionScheduleInfo *scheduleInfo = [UAActionScheduleInfo actionScheduleInfoWithBuilderBlock:^(UAActionScheduleInfoBuilder *builder) {
UAJSONValueMatcher *valueMatcher = [UAJSONValueMatcher matcherWhereStringEquals:@"name"];
UAJSONMatcher *jsonMatcher = [UAJSONMatcher matcherWithValueMatcher:valueMatcher scope:@[UACustomEventNameKey]];
UAJSONPredicate *predicate = [UAJSONPredicate predicateWithJSONMatcher:jsonMatcher];
UAScheduleTrigger *customEventTrigger = [UAScheduleTrigger customEventTriggerWithPredicate:predicate count:2];
UAScheduleTrigger *foregroundEventTrigger = [UAScheduleTrigger foregroundTriggerWithCount:2];
builder.actions = @{@"add_tags_action": @"my_tag"};
builder.triggers = @[customEventTrigger, foregroundEventTrigger];
builder.group = @"group_name";
builder.limit = 4;
builder.start = [NSDate dateWithTimeIntervalSinceNow:10];
builder.end = [NSDate dateWithTimeIntervalSinceNow:1000];
}];
// Schedule the schedule info
[[UAirship automation] scheduleActions:scheduleInfo completionHandler:^(UASchedule *schedule) {
NSLog(@"Unique schedule identifier: %@", schedule.identifier);
}];
The example updated for the new SDK 14 API:
// Build the action schedule
UAActionSchedule *schedule = [UAActionSchedule scheduleWithActions:@{@"add_tags_action": @"my_tag"} builderBlock:^(UAScheduleBuilder *builder) {
UAJSONValueMatcher *valueMatcher = [UAJSONValueMatcher matcherWhereStringEquals:@"name"];
UAJSONMatcher *jsonMatcher = [UAJSONMatcher matcherWithValueMatcher:valueMatcher scope:@[UACustomEventNameKey]];
UAJSONPredicate *predicate = [UAJSONPredicate predicateWithJSONMatcher:jsonMatcher];
UAScheduleTrigger *customEventTrigger = [UAScheduleTrigger customEventTriggerWithPredicate:predicate count:2];
UAScheduleTrigger *foregroundEventTrigger = [UAScheduleTrigger foregroundTriggerWithCount:2];
builder.triggers = @[customEventTrigger, foregroundEventTrigger];
builder.group = @"group_name";
builder.limit = 4;
builder.start = [NSDate dateWithTimeIntervalSinceNow:10];
builder.end = [NSDate dateWithTimeIntervalSinceNow:1000];
}];
// Schedule the action schedule
[[UAInAppAutomation shared] schedule:schedule completionHandler:^(BOOL result) {
NSLog(@"Schedule result = %@", (result) ? @"YES" : @"NO");
}];
The required changes are in the UAActionSchedule *schedule = ...
line, and in the call to and the completion handler for the UAInAppAutomation
schedule:completionHandler
method. The builder code remains the same.
Retrieving Action Schedules
Similarly, the methods for retrieving a single schedule, a group of schedules, or all schedules have moved from UAActionAutomation
to UAInAppAutomation
.
[[UAInAppAutomation shared] getActionScheduleWithID:identifier completionHandler:^(UAActionSchedule *schedule) {
// get schedule
}];
[[UAInAppAutomation shared] getActionSchedules:^(NSArray<UAActionSchedule *> *schedules) {
// get all schedules
}];
[[UAInAppAutomation shared] getActionSchedulesWithGroup:@"group_name" completionHandler:^(NSArray<UAActionSchedule *> *actionSchedules) {
// get all schedules of the given group.
}];
Canceling Action Schedules
Methods for canceling a single schedule or a group of schedules have also been moved from UAActionAutomation
to UAInAppAutomation
. There is no longer a method for canceling all schedules.
// Cancels a schedule with the given identifier
[[UAInAppAutomation shared] cancelScheduleWithID:@"some_scheduled_identifier" completionHandler:^(BOOL result) {
NSLog(@"Cancel result = %@", (result) ? @"YES" : @"NO");
}];
// Cancels all schedules of the given group
[[UAInAppAutomation shared] cancelActionSchedulesWithGroup:@"some_group_name" completionHandler:^(BOOL result) {
NSLog(@"Cancel result = %@", (result) ? @"YES" : @"NO");
}];
Channel Capture Changes
The Channel Capture tool has been completely revamped.
The channel capture tool now defaults to enabled unless disabled using the channelCaptureEnabled
key in AirshipConfig.plist
. When the channel capture tool is enabled, the user can “capture” the channel id by “knocking” 6 times within 30 seconds. The user knocks by moving the app from the background into the foreground, i.e. exiting the app and then running the app. When the channel channel is captured, it is copied to the clipboard with a leading “ua:”. If there is no channel, only the “ua:” will be present. The channel will remain on the clipboard for 60 seconds.
The channel capture tool can be programatically enabled or disabled using the new enable
property. This enable state no longer persists through app init, and will instead revert to the value of the channelCaptureEnabled
key in AirshipConfig.plist
. It is no longer possible to enable channel capture for a specified amount of time.
The disable method has been removed. To programatically disable, simply set the enable
property to NO
.
The channel capture action has been removed. If your app depended on the channel capture action to enable or disable the channel capture tool, it will need to use another technique.
Xcode 12 / iOS 14 support
The UAMessageCenterStyle *style
property in our Message Center view classes conflicts with Apple’s new iOS 14 style property UISplitViewControllerStyle style
in UISplitViewController
. To resolve the conflict, we have renamed our style
property to messageCenterStyle
in all Message Center view classes:
UADefaultMessageCenterListViewController
UADefaultMessageCenterSplitViewController
UADefaultMessageCenterUI
UAMessageCenterListCell
Deprecated code
We have removed all code that was deprecated and targeted for removal in SDK 14. The following sections list what was removed and include recommended replacement functionality.
Renamed classes and related files
| Old Name | Replacement |
|---|---|
UAMessageCenterListViewController |
UADefaultMessageCenterListViewController |
UAMessageCenterListViewController.xib |
UADefaultMessageCenterListViewController.xib |
UAMessageCenterMessageViewController |
UADefaultMessageCenterMessageViewController |
UAMessageCenterMessageViewController.xib |
UADefaultMessageCenterMessageViewController.xib |
UAMessageCenterMessageViewProtocol.h |
The protocol has been removed. Use properties and methods of UADefaultMessageCenterMessageViewController . |
UAMessageCenterSplitViewController |
UADefaultMessageCenterSplitViewController |
Renamed constants
| Old Name | Replacement |
|---|---|
kUAAddCustomEventActionDefaultRegistryName |
UAAddCustomEventActionDefaultRegistryName |
kUAAddTagsActionDefaultRegistryAlias |
UAAddTagsActionDefaultRegistryAlias |
kUAAddTagsActionDefaultRegistryName |
UAAddTagsActionDefaultRegistryName |
kUACancelSchedulesActionDefaultRegistryAlias |
UACancelSchedulesActionDefaultRegistryAlias |
kUACancelSchedulesActionDefaultRegistryName |
UACancelSchedulesActionDefaultRegistryName |
kUACircularRegionKey |
UACircularRegionKey |
kUACircularRegionMaxRadius |
UACircularRegionMaxRadius |
kUACircularRegionMinRadius |
UACircularRegionMinRadius |
kUACircularRegionRadiusKey |
UACircularRegionRadiusKey |
kUAConnectionTypeCell |
UAConnectionTypeCell |
kUAConnectionTypeNone |
UAConnectionTypeNone |
kUAConnectionTypeWifi |
UAConnectionTypeWifi |
kUADeepLinkActionDefaultRegistryAlias |
UADeepLinkActionDefaultRegistryAlias |
kUADeepLinkActionDefaultRegistryName |
UADeepLinkActionDefaultRegistryName |
kUAEnableFeatureActionDefaultRegistryAlias |
UAEnableFeatureActionDefaultRegistryAlias |
kUAEnableFeatureActionDefaultRegistryName |
UAEnableFeatureActionDefaultRegistryName |
kUAFetchDeviceInfoActionDefaultRegistryAlias |
UAFetchDeviceInfoActionDefaultRegistryAlias |
kUAFetchDeviceInfoActionDefaultRegistryName |
UAFetchDeviceInfoActionDefaultRegistryName |
kUAInteractionMCRAP |
UAInteractionMCRAP |
kUALandingPageActionDefaultRegistryAlias |
UALandingPageActionDefaultRegistryAlias |
kUALandingPageActionDefaultRegistryName |
UALandingPageActionDefaultRegistryName |
kUAOpenExternalURLActionDefaultRegistryAlias |
UAOpenExternalURLActionDefaultRegistryAlias |
kUAOpenExternalURLActionDefaultRegistryName |
UAOpenExternalURLActionDefaultRegistryName |
kUAPasteboardActionDefaultRegistryAlias |
UAPasteboardActionDefaultRegistryAlias |
kUAPasteboardActionDefaultRegistryName |
UAPasteboardActionDefaultRegistryName |
kUAProximityRegionIDKey |
UAProximityRegionIDKey |
kUAProximityRegionKey |
UAProximityRegionKey |
kUAProximityRegionMajorKey |
UAProximityRegionMajorKey |
kUAProximityRegionMaxRSSI |
UAProximityRegionMaxRSSI |
kUAProximityRegionMinRSSI |
UAProximityRegionMinRSSI |
kUAProximityRegionMinorKey |
UAProximityRegionMinorKey |
kUAProximityRegionRSSIKey |
UAProximityRegionRSSIKey |
kUARateAppActionDefaultRegistryAlias |
UARateAppActionDefaultRegistryAlias |
kUARateAppActionDefaultRegistryName |
UARateAppActionDefaultRegistryName |
kUARegionBoundaryEventEnterValue |
UARegionBoundaryEventEnterValue |
kUARegionBoundaryEventExitValue |
UARegionBoundaryEventExitValue |
kUARegionBoundaryEventKey |
UARegionBoundaryEventKey |
kUARegionEventMaxCharacters |
UARegionEventMaxCharacters |
kUARegionEventMaxLatitude |
UARegionEventMaxLatitude |
kUARegionEventMaxLongitude |
UARegionEventMaxLongitude |
kUARegionEventMinCharacters |
UARegionEventMinCharacters |
kUARegionEventMinLatitude |
UARegionEventMinLatitude |
kUARegionEventMinLongitude |
UARegionEventMinLongitude |
kUARegionEventType |
UARegionEventType |
kUARegionIDKey |
UARegionIDKey |
kUARegionLatitudeKey |
UARegionLatitudeKey |
kUARegionLongitudeKey |
UARegionLongitudeKey |
kUARegionSourceKey |
UARegionSourceKey |
kUARemoveTagsActionDefaultRegistryAlias |
UARemoveTagsActionDefaultRegistryAlias |
kUARemoveTagsActionDefaultRegistryName |
UARemoveTagsActionDefaultRegistryName |
kUAScheduleActionDefaultRegistryAlias |
UAScheduleActionDefaultRegistryAlias |
kUAScheduleActionDefaultRegistryName |
UAScheduleActionDefaultRegistryName |
kUAShareActionDefaultRegistryAlias |
UAShareActionDefaultRegistryAlias |
kUAShareActionDefaultRegistryName |
UAShareActionDefaultRegistryName |
kUAWalletActionDefaultRegistryAlias |
UAWalletActionDefaultRegistryAlias |
kUAWalletActionDefaultRegistryName |
UAWalletActionDefaultRegistryName |
UACustomEvent methods removed
The following methods used to set typed properties on UACustomEvent
have been removed.
setBoolProperty:forKey:
setStringProperty:forKey:
setNumberProperty:forKey:
setStringArrayProperty:forKey:
Instead use the properties
property of UACustomEvent
. properties
must be valid JSON:
- All objects are
NSString
,NSNumber
,NSArray
,NSDictionary
, orNSNull
- All dictionary keys are
NSStrings
NSNumbers
are notNaN
or infinity
UAPush methods and properties renamed and moved
presentationOptionsForNotification:
has been renamed extendPresentationOptions:notification:
.
Methods moved to UAChannel
addTag:
addTags:
removeTag:
removeTags:
addTags:group:
removeTags:group:
setTags:group:
enableChannelCreation
Properties moved to UAChannel
channelID
(renamedidentifier
)tags
channelTagRegistrationEnabled


Hey {{vm.getUsername()}}, thanks for logging into the Data Service Builder. Hopefully you're finding it easy to use this tool to design and collaborate on new (and existing) Data Services.


This will test your device's display performance under several conditions.
At the end of the test, you will have the chance to upload your results. After enough samples are collected, all results will be published.
For best results, close all other programs and let your phone rest for a few seconds before beginning the test.
Sorry. This test cannot be run on your browser. requestAnimationFrame() is not available.
Please drag your finger around your screen until the test ends.
Test starts when you touch the screen.
requestAnimationFrame()
to measure render speeds.| Avg | 0 |
| Max | 0 |
| Min | 0 |
| StdDev | 0 |
| Samples taken | 0 |
| Avg | 0 |
| Max | 0 |
| Min | 0 |
| StdDev | 0 |
| Samples taken | 0 |
| Avg | 0 |
| Max | 0 |
| Min | 0 |
| StdDev | 0 |
| Samples taken | 0 |
| Avg | 0 |
| Max | 0 |
| Min | 0 |
| StdDev | 0 |
| Samples taken | 0 |
| Avg | 0 |
| Max | 0 |
| Min | 0 |
| StdDev | 0 |
| Samples taken | 0 |
Please help the community. Consider sharing your results.
Device description:
Maker:
Model:
Screen: x (x)
Your useragent string:
Samples collected


Login Password
To
video audio chat page mode chat file image share
Please allow camera/microphone permissions.
Contacting ...
Incoming from
Connected with
sendonly hold
Communication ended.
getStatus():
Sent Received 0/0 bytes - Complete! Download File
Sent Received 0/0 bytes - Complete!
Websocket URL (Use ws://...:80 for insecure or wss://...:443 for secure)
Default Media Types audio audio,video
Auto accept video upgrades/downgrades
Use first ICE candidate
Public ID: [Login]
Private ID: [Login]
Display Name
Conference Factory
Conf call workaround for Chrome
STUN Server
Crypto SDES DTLS
Add missing webrtc audio (OPUS),video (VP8, red, ulpfec) codecs to incoming SDP offer/answer
Remove IPV6 candidates
Enable IMDN Capability
DTMF method inband sip-info both
DTMF duration
DTMF gap
DTMF workaround for MRF
Audio bandwidth (kbps)
Video bandwidth (kbps)
Data bandwidth (kbps)
Limit Audio Codecs to use in Offer/Answer
opus/48000/2 ISAC/16000 ISAC/32000 PCMU/8000 PCMA/8000 G722/8000 CN/8000 CN/16000 CN/32000 telephone-event/8000 telephone-event/16000 telephone-event/32000 telephone-event/48000 Additional Audio Codecs (comma separated list)
opus/48000/2
ISAC/16000
ISAC/32000
PCMU/8000
PCMA/8000
G722/8000
CN/8000
CN/16000
CN/32000
telephone-event/8000
telephone-event/16000
telephone-event/32000
telephone-event/48000
Additional Audio Codecs (comma separated list)
Limit Video Codecs to use in Offer/Answer
VP8/90000 H264/90000 red/90000 ulpfec/90000 rtx/90000 Additional Video Codecs (comma separated list)
VP8/90000
H264/90000
red/90000
ulpfec/90000
rtx/90000
Additional Video Codecs (comma separated list)
Breaker
Strip Extra SSRC
MSID Handling Strip Incoming MSID Generate/Replace Incoming MSID (default) None, no applicable handling
Register on Startup
Auto-Answer Time After Registration
Maximum Recovery Attempts
Network Connection Retry Interval
Send Register On Call Recovery
Register Response Time
Register Refresh Time
Enable MDSP Support
Secondary Device Identifier


Here should be something witty, but clearly I don't have one.
Some of my projects could be found here.
January 04, 2016
This snake game is written in JavaScript after I've read the tutorial in This Link
You are welcome to play with it XP.


You can enable the configuration for RabbitMQ Consumer if checked.
- If turn on, connection will be established automatically.
- If turn off, connection is disconnected immediately.
- Any connection will not be established if URI for RabbitMQ is not provided yet.


UCLA - Networked and Embedded Systems Laboratory
LabViz
Feeds from NESL, at your fingertips!
Configure Feed (Required):
Configure Time (Optional):
Configure Options (Optional):
Punch it.
×
Warning!
Best check yo self, you're not looking too good.
Door Sensor
Light Sensor
Temp Sensor


To prevent typhoons from reaching your city (Hong Kong), damaging its stock market.
This is the health of the stock market (stock price).
It will rise steadily as long as people go to work.
You build new structures at a cost of the stock price
When a typhoon becomes too close to Hong Kong, the stock price goes down sharply too.
When HSI becomes zero, the game is over as the economy of Hong Kong is at stake.
you have
3 types of offensive towers,
2 types of power plants, and
3 types of research structures.
Offensive towers must be built on sea, the others on land.
All structures rely on power. you can see the power requirements by pointing your mouse cursor over the build button (when you can build it)
Towers need power to attack.
Power plants generate power quota, towers consume power.
The available power is shown in the top right corner
If power quota is not enough for the towers, there is a power outage and ALL towers will not shoot.
Inside the game, you can see how much power each structure needs by pointing your cursor at the button.
You start with the basic LaserTower. As you build more research structures, new towers are unlocked and existing towers get upgraded.
Shoots laser at typhoon, disrupting local temperature and reduce typhoon strength.
Shoots cold air at typhoon, reducing it movement speed
Exerts a repel force at 1 typhoon around it. It may push the entire typhoon away (or the other way?) depends on how you place it.
You start with the basic PowerPlant, and you can unlock the nuclear powerplant later.
Generates power that can hold a few LaserTower.
Generates more power than the normal one, but it is also much more expensive because it takes less space.

Note: You only need 1 of each tech structure to have their powers. Effects don't stack.
It unlocks the freeze tower, and it upgrades LaserTowers in range and flat damage, and increases cost
Unlocks The RepelTower,
further increases LaserTower range, damage and cost,
as well as FreezeTower slowrate, range, damage and cost
Upgrades Repel tower, increasing range, force, cost. Also doubles HSI increase Rate.


Sample Application for buliding AR-Apps with FUDGE
This will be the main window of FUDGE. FUDGE will be a game editor for students that is currently in progress.
Some project information
Opened the following phonegap project:
Created the following phonegap project and opened it:
Serve project (run locally)
Kill serve process
Build project (android)
Run project on android
Install project (android)
[DEPRECATED]
Clear terminal


Your third logo concept is here, and it's a little different to the last.
You know how this goes. Just take a second to clear your mind of any clutter and get ready to form a first impression...
The aim of this concept is to purposefully disconnect the typeface with a visual icon (such as a player or football as used previously). I have presented a version below that unifies the typeface and he image of a football (for reasons of clarity) but the focus of the concept was to allow each component to be used together or separately and where necessary in the theme of the website and other collateral.
Ensuring that the logo is suited to a number of different applications is an important consideration when developing a concept. Where and how the logo is seen may not always be ideal, but strong, well-balanced visual elements should always successfully deliver your visual message, even when resized or rearranged.
Below are some examples of reapplications:
Moving away from the colours used in previous concepts I have used two tones of blue and white. The heavy outline feature of the logo allows it to remain distinctive and readable when in duotone (white overlaying any colour, as above on black).
#0071bc
#66aad7
Note that the typeface in the logo has been skewed.
Kenyan Coffee is also available as a webfont.


Michael S. Shanzer
Open Market, Inc.
19 January 1995
Tcl (tool command language) is an embeddable scripting language that's often used for CGI programming. Tcl is freely available as a source kit.
We've built a Tcl interpreter that runs as a FastCGI application. Our purpose in doing so was twofold:
We've succeeded on both counts. We now have a platform for migrating our Tcl-based CGI applications to FastCGI. And the integration required a very small effort. The only source code change to the Tcl interpreter was the routine addition of a handful of new commands: FCGI_Accept, FCGI_Finish, FCGI_SetExitStatus, and FCGI_StartFilterData.
The FastCGI-integrated Tcl interpreter works as usual when run from a shell or as a CGI program. You don't need two Tcls, one for FastCGI and one for other uses.
The remainder of this document gives a recipe you can follow to build FastCGI into Tcl, explains what's happening in the recipe, and illustrates the use of FastCGI Tcl with an example program.
Here are the assumptions embedded in the following recipe:
If those are valid assumptions, follow these steps:
Unpack the tar file in the parent directory of the FastCGI kit directory you used in the previous step, so that the directories tcl7.4 and fcgi-devel-kit are siblings. After unpacking the tar file, follow the directions in the README to apply the patches.
The Sun Labs Tcl/Tk Project Page contains a wealth of information on Tcl, including up to date information on the latest kits.
> cd tcl7.4 > mv tclAppInit.c tclAppInit.c.orig > mv Makefile.in.orig Makefile.in.orig.orig > mv Makefile.in Makefile.in.orig > mv configure.in configure.in.orig > cp ../fcgi-devel-kit/tcl/tcl7.4/* . > cp ../fcgi-devel-kit/tcl/common/* .
> autoconf
> ./configure > makeThe make creates the Tcl interpreter tclsh and library archive libtcl.a (for embedding Tcl in your own C applications). The Tcl README file explains how you can experiment with tclsh without installing it in a standard place.
The recipe alone is fine if you are using Tcl 7.4p3, you have gcc version 2.7, and you have GNU autoconf. In case one or more of these assumptions doesn't hold for you, and to illuminate how little work was involved in integrating FastCGI, here's an explanation of how and why you would modify the files tclAppInit.c, Makefile.in, and configure.in from the Tcl kit.
if (FCGI_Init(interp) == TCL_ERROR) { return TCL_ERROR; }This registers four Tcl commands (FCGI_Accept, FCGI_Finish, FCGI_SetExitStatus, and FCGI_StartFilterData), implemented in tclFCGI.c, with the Tcl interpreter.
This builds the FastCGI Tcl commands and links them into the Tcl interpreter.
This includes fcgi_stdio.h when compiling C code for the Tcl interpreter, overriding the normal stdio types, variables, and functions.
This links the implementation of fcgi_stdio.h into the Tcl interpreter, for use by the FCGI_accept command and any code that uses stdio variables or calls stdio functions.
The last two edits will vary if you use a compiler other than gcc or install the tcl7.4 directory somewhere else in relation to the fcgi-devel-kit directory.
AC_C_CROSS CC=${CC-cc}with the lines
AC_PROG_CC AC_C_CROSSThis selects gcc in preference to other C compilers.
AC_CHECK_LIB(socket, main, [LIBS="$LIBS -lsocket"]) AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"]) AC_SUBST(LIBS)This ensures that the socket libraries used by FastCGI are linked into the Tcl interpreter.
> SETENV CC gccbefore running configure.
The Tcl program tcl/tiny-tcl-fcgi performs the same function as the C program examples/tiny-fcgi.c that's used as an example in the FastCGI Developer's Kit document. Here's what the Tcl version looks like:
#!./tclsh set count 0 while {[FCGI_Accept] >= 0 } { incr count puts -nonewline "Content-type: text/html\r\n\r\n" puts "<title>FastCGI Hello! (Tcl)</title>" puts "
FastCGI Hello! (Tcl)
" puts "Request number $count running on host $env(SERVER_NAME)" }
If you've built Tcl according to the recipe and you have a Web server set up to run FastCGI applications, load the FastCGI Developer's Kit Index Page in that server and run this Tcl application now.
The script invokes Tcl indirectly via the symbolic link examples/tclsh. It does this because HP-UX has a limit of 32 characters for the first line of a command-interpreter file such as examples/tiny-tcl-fcgi. If you run on HP-UX you won't want to sprinkle symbolic links to tclsh everywhere, so you should install tclsh with a shorter pathname than /usr/local/tcl7.4-fcgi/bin/tclsh7.4.
The Tcl command FCGI_Accept treats the initial environment differently than the C function FCGI_Accept. The first call to the C function FCGI_Accept replaces the initial environment with the environment of the first request. The first call to the Tcl command FCGI_Accept adds the variable bindings of the first request to the bindings present in the initial environment. So when the first call to FCGI_Accept returns, bindings from the initial environment are still there (unless, due to naming conflicts, some of them have been overwritten by the first request). The next call to FCGI_Accept removes the bindings made on the previous call before adding a new set for the request just accepted, again preserving the initial environment.
The FastCGI-integrated tclsh also includes commands FCGI_Finish, FCGI_SetExitStatus, and FCGI_StartFilterData that correspond to C functions in fcgi_stdio.h; see the manpages for full information.
Converting a Tcl CGI application to FastCGI is not fundamentally different from converting a C CGI application. You separate the portion of the application that performs one-time initialization from the portion that performs per-request processing. You put the per-request processing into a loop controlled by FCGI_Accept.


# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import division
import numpy as np
from .core import Kernel1D, Kernel2D, Kernel
from .utils import KernelSizeError
from ..modeling import models
from ..modeling.core import Parametric1DModel, Parametric2DModel
__all__ = sorted(['Gaussian1DKernel', 'Gaussian2DKernel', 'CustomKernel',
'Box1DKernel', 'Box2DKernel', 'Tophat2DKernel',
'Trapezoid1DKernel', 'MexicanHat1DKernel',
'MexicanHat2DKernel', 'AiryDisk2DKernel',
'Model1DKernel', 'Model2DKernel',
'TrapezoidDisk2DKernel', 'Ring2DKernel'])
def _round_up_to_odd_integer(value):
i = int(np.ceil(value))
if i % 2 == 0:
return i + 1
else:
return i
[docs]class Gaussian1DKernel(Kernel1D):
"""
1D Gaussian filter kernel.
The Gaussian filter is a filter with great smoothing properties. It is
isotropic and does not produce artifacts.
Parameters
----------
width : number
Width of the filter kernel.
x_size : odd int, optional
Size of the kernel array. Default = 8 * width.
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by linearly interpolating
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin. Very slow.
factor : number, optional
Factor of oversampling. Default factor = 10. If the factor
is too large, evaluation can be very slow.
See Also
--------
Box1DKernel, Trapezoid1DKernel, MexicanHat1DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import Gaussian1DKernel
gauss_1D_kernel = Gaussian1DKernel(10)
plt.plot(gauss_1D_kernel, drawstyle='steps')
plt.xlabel('x [pixels]')
plt.ylabel('value')
plt.show()
"""
_separable = True
_is_bool = False
def __init__(self, width, **kwargs):
self._model = models.Gaussian1D(1. / (np.sqrt(2 * np.pi) * width),
0, width)
self._default_size = _round_up_to_odd_integer(8 * width)
super(Gaussian1DKernel, self).__init__(**kwargs)
self._truncation = np.abs(1. - 1 / self._normalization)
[docs]class Gaussian2DKernel(Kernel2D):
"""
2D Gaussian filter kernel.
The Gaussian filter is a filter with great smoothing properties. It is
isotropic and does not produce artifacts.
Parameters
----------
width : number
Width of the filter kernel.
x_size : odd int, optional
Size in x direction of the kernel array. Default = 8 * width.
y_size : odd int, optional
Size in y direction of the kernel array. Default = 8 * width.
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by performing a bilinear interpolation
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Box2DKernel, Tophat2DKernel, MexicanHat2DKernel, Ring2DKernel,
TrapezoidDisk2DKernel, AiryDisk2DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import Gaussian2DKernel
gaussian_2D_kernel = Gaussian2DKernel(10)
plt.imshow(gaussian_2D_kernel, interpolation='none', origin='lower')
plt.xlabel('x [pixels]')
plt.ylabel('y [pixels]')
plt.colorbar()
plt.show()
"""
_separable = True
_is_bool = False
def __init__(self, width, **kwargs):
self._model = models.Gaussian2D(1. / (2 * np.pi * width ** 2), 0,
0, width, width)
self._default_size = _round_up_to_odd_integer(8 * width)
super(Gaussian2DKernel, self).__init__(**kwargs)
self._truncation = np.abs(1. - 1 / self._normalization)
[docs]class Box1DKernel(Kernel1D):
"""
1D Box filter kernel.
The Box filter or running mean is a smoothing filter. It is not isotropic
and can produce artifacts, when applied repeatedly to the same data.
By default the Box kernel uses the `linear_interp` discretization mode,
which allows non-shifting, even-sized kernels. This is achieved by
weighting the edge pixels with 1/2. E.g a Box kernel with an effective
smoothing of 4 pixel would have the following array: [0.5, 1, 1, 1, 0.5].
Parameters
----------
width : number
Width of the filter kernel.
mode : str, optional
One of the following discretization modes:
* 'center'
Discretize model by taking the value
at the center of the bin.
* 'linear_interp' (default)
Discretize model by linearly interpolating
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Gaussian1DKernel, Trapezoid1DKernel, MexicanHat1DKernel
Examples
--------
Kernel response function:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import Box1DKernel
box_1D_kernel = Box1DKernel(9)
plt.plot(box_1D_kernel, drawstyle='steps')
plt.xlim(-1, 9)
plt.xlabel('x [pixels]')
plt.ylabel('value')
plt.show()
"""
_separable = True
_is_bool = True
def __init__(self, width, **kwargs):
self._model = models.Box1D(1. / width, 0, width)
self._default_size = _round_up_to_odd_integer(width)
kwargs['mode'] = 'linear_interp'
super(Box1DKernel, self).__init__(**kwargs)
self._truncation = 0
self.normalize()
[docs]class Box2DKernel(Kernel2D):
"""
2D Box filter kernel.
The Box filter or running mean is a smoothing filter. It is not isotropic
and can produce artifact, when applied repeatedly to the same data.
By default the Box kernel uses the `linear_interp` discretization mode,
which allows non-shifting, even-sized kernels. This is achieved by
weighting the edge pixels with 1/2.
Parameters
----------
width : number
Width of the filter kernel.
mode : str, optional
One of the following discretization modes:
* 'center'
Discretize model by taking the value
at the center of the bin.
* 'linear_interp' (default)
Discretize model by performing a bilinear interpolation
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Box2DKernel, Tophat2DKernel, MexicanHat2DKernel, Ring2DKernel,
TrapezoidDisk2DKernel, AiryDisk2DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import Box2DKernel
box_2D_kernel = Box2DKernel(9)
plt.imshow(box_2D_kernel, interpolation='none', origin='lower',
vmin=0.0, vmax=0.015)
plt.xlim(-1, 9)
plt.ylim(-1, 9)
plt.xlabel('x [pixels]')
plt.ylabel('y [pixels]')
plt.colorbar()
plt.show()
"""
_separable = True
_is_bool = True
def __init__(self, width, **kwargs):
self._model = models.Box2D(1. / width ** 2, 0, 0, width, width)
self._default_size = _round_up_to_odd_integer(width)
kwargs['mode'] = 'linear_interp'
super(Box2DKernel, self).__init__(**kwargs)
self._truncation = 0
self.normalize()
[docs]class Tophat2DKernel(Kernel2D):
"""
2D Tophat filter kernel.
The Tophat filter is an isotropic smoothing filter. It can produce
artifacts when applied repeatedly on the same data.
Parameters
----------
radius : int
Radius of the filter kernel.
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by performing a bilinear interpolation
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Box2DKernel, Tophat2DKernel, MexicanHat2DKernel, Ring2DKernel,
TrapezoidDisk2DKernel, AiryDisk2DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import Tophat2DKernel
tophat_2D_kernel = Tophat2DKernel(40)
plt.imshow(tophat_2D_kernel, interpolation='none', origin='lower')
plt.xlabel('x [pixels]')
plt.ylabel('y [pixels]')
plt.colorbar()
plt.show()
"""
def __init__(self, radius, **kwargs):
self._model = models.Disk2D(1. / (np.pi * radius ** 2), 0, 0, radius)
self._default_size = _round_up_to_odd_integer(2 * radius)
super(Tophat2DKernel, self).__init__(**kwargs)
self._truncation = 0
[docs]class Ring2DKernel(Kernel2D):
"""
2D Ring filter kernel.
The Ring filter kernel is the difference between two Tophat kernels of
different width. This kernel is useful for, e.g., background estimation.
Parameters
----------
radius_in : number
Inner radius of the ring kernel.
width : number
Width of the ring kernel.
mode: str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by performing a bilinear interpolation
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Box2DKernel, Gaussian2DKernel, MexicanHat2DKernel, Tophat2DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import Ring2DKernel
ring_2D_kernel = Ring2DKernel(9, 8)
plt.imshow(ring_2D_kernel, interpolation='none', origin='lower')
plt.xlabel('x [pixels]')
plt.ylabel('y [pixels]')
plt.colorbar()
plt.show()
"""
def __init__(self, radius_in, width, **kwargs):
radius_out = radius_in + width
self._model = models.Ring2D(1. / (np.pi * (radius_out ** 2 - radius_in ** 2)),
0, 0, radius_in, width)
self._default_size = _round_up_to_odd_integer(2 * radius_out)
super(Ring2DKernel, self).__init__(**kwargs)
self._truncation = 0
[docs]class Trapezoid1DKernel(Kernel1D):
"""
1D trapezoid kernel.
Parameters
----------
width : number
Width of the filter kernel.
slope : number
Slope of the filter kernel's tails
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by linearly interpolating
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Box1DKernel, Gaussian1DKernel, MexicanHat1DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import Trapezoid1DKernel
trapezoid_1D_kernel = Trapezoid1DKernel(17, slope=0.2)
plt.plot(trapezoid_1D_kernel, drawstyle='steps')
plt.xlabel('x [pixels]')
plt.ylabel('amplitude')
plt.xlim(-1, 28)
plt.show()
"""
_is_bool = False
def __init__(self, width, slope=1., **kwargs):
self._model = models.Trapezoid1D(1, 0, width, slope)
self._default_size = _round_up_to_odd_integer(width + 2. / slope)
super(Trapezoid1DKernel, self).__init__(**kwargs)
self._truncation = 0
self.normalize()
[docs]class TrapezoidDisk2DKernel(Kernel2D):
"""
2D trapezoid kernel.
Parameters
----------
width : number
Width of the filter kernel.
slope : number
Slope of the filter kernel's tails
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by performing a bilinear interpolation
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Box2DKernel, Tophat2DKernel, MexicanHat2DKernel, Ring2DKernel,
TrapezoidDisk2DKernel, AiryDisk2DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import TrapezoidDisk2DKernel
trapezoid_2D_kernel = TrapezoidDisk2DKernel(20, slope=0.2)
plt.imshow(trapezoid_2D_kernel, interpolation='none', origin='lower')
plt.xlabel('x [pixels]')
plt.ylabel('y [pixels]')
plt.colorbar()
plt.show()
"""
_is_bool = False
def __init__(self, radius, slope=1., **kwargs):
self._model = models.TrapezoidDisk2D(1, 0, 0, radius, slope)
self._default_size = _round_up_to_odd_integer(2 * radius + 2. / slope)
super(TrapezoidDisk2DKernel, self).__init__(**kwargs)
self._truncation = 0
self.normalize()
[docs]class MexicanHat1DKernel(Kernel1D):
"""
1D Mexican hat filter kernel.
The Mexican Hat, or inverted Gaussian-Laplace filter, is a
bandpass filter. It smoothes the data and removes slowly varying
or constant structures (e.g. Background). It is useful for peak or
multi-scale detection.
This kernel is derived from a normalized Gaussian function, by
computing the second derivative. This results in an amplitude
at the kernels center of 1. / (sqrt(2 * pi) * width ** 3). The
normalization is the same as for `scipy.ndimage.filters.gaussian_laplace`,
except for a minus sign.
Parameters
----------
width : number
Width of the filter kernel.
x_size : odd int, optional
Size in x direction of the kernel array. Default = 8 * width.
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by linearly interpolating
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Box1DKernel, Gaussian1DKernel, Trapezoid1DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import MexicanHat1DKernel
mexicanhat_1D_kernel = MexicanHat1DKernel(10)
plt.plot(mexicanhat_1D_kernel, drawstyle='steps')
plt.xlabel('x [pixels]')
plt.ylabel('value')
plt.show()
"""
_is_bool = True
def __init__(self, width, **kwargs):
amplitude = 1.0 / (np.sqrt(2 * np.pi) * width ** 3)
self._model = models.MexicanHat1D(amplitude, 0, width)
self._default_size = _round_up_to_odd_integer(8 * width)
super(MexicanHat1DKernel, self).__init__(**kwargs)
self._truncation = np.abs(self._array.sum() / self._array.size)
[docs]class MexicanHat2DKernel(Kernel2D):
"""
2D Mexican hat filter kernel.
The Mexican Hat, or inverted Gaussian-Laplace filter, is a
bandpass filter. It smoothes the data and removes slowly varying
or constant structures (e.g. Background). It is useful for peak or
multi-scale detection.
This kernel is derived from a normalized Gaussian function, by
computing the second derivative. This results in an amplitude
at the kernels center of 1. / (pi * width ** 4). The normalization
is the same as for `scipy.ndimage.filters.gaussian_laplace`, except
for a minus sign.
Parameters
----------
width : number
Width of the filter kernel.
x_size : odd int, optional
Size in x direction of the kernel array. Default = 8 * width.
y_size : odd int, optional
Size in y direction of the kernel array. Default = 8 * width.
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by performing a bilinear interpolation
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Box2DKernel, Tophat2DKernel, MexicanHat2DKernel, Ring2DKernel,
TrapezoidDisk2DKernel, AiryDisk2DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import MexicanHat2DKernel
mexicanhat_2D_kernel = MexicanHat2DKernel(10)
plt.imshow(mexicanhat_2D_kernel, interpolation='none', origin='lower')
plt.xlabel('x [pixels]')
plt.ylabel('y [pixels]')
plt.colorbar()
plt.show()
"""
_is_bool = False
def __init__(self, width, **kwargs):
amplitude = 1.0 / (np.pi * width ** 4)
self._model = models.MexicanHat2D(amplitude, 0, 0, width)
self._default_size = _round_up_to_odd_integer(8 * width)
super(MexicanHat2DKernel, self).__init__(**kwargs)
self._truncation = np.abs(self._array.sum() / self._array.size)
[docs]class AiryDisk2DKernel(Kernel2D):
"""
2D Airy disk kernel.
This kernel models the diffraction pattern of a circular aperture. This
kernel is normalized to a peak value of 1.
Parameters
----------
width : number
Width of the filter kernel.
x_size : odd int, optional
Size in x direction of the kernel array. Default = 8 * width.
y_size : odd int, optional
Size in y direction of the kernel array. Default = 8 * width.
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by performing a bilinear interpolation
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
See Also
--------
Box2DKernel, Tophat2DKernel, MexicanHat2DKernel, Ring2DKernel,
TrapezoidDisk2DKernel, AiryDisk2DKernel
Examples
--------
Kernel response:
.. plot::
:include-source:
import matplotlib.pyplot as plt
from astropy.convolution import AiryDisk2DKernel
airydisk_2D_kernel = AiryDisk2DKernel(10)
plt.imshow(airydisk_2D_kernel, interpolation='none', origin='lower')
plt.xlabel('x [pixels]')
plt.ylabel('y [pixels]')
plt.colorbar()
plt.show()
"""
_is_bool = False
def __init__(self, width, **kwargs):
self._model = models.AiryDisk2D(1, 0, 0, width)
self._default_size = _round_up_to_odd_integer(8 * width)
super(AiryDisk2DKernel, self).__init__(**kwargs)
self.normalize()
self._truncation = None
[docs]class Model1DKernel(Kernel1D):
"""
Create kernel from astropy.models.Parametric1DModel.
The model has to be centered on x = 0.
Parameters
----------
model : Parametric1DModel
Kernel response function model
x_size : odd int, optional
Size in x direction of the kernel array. Default = 8 * width.
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by linearly interpolating
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
Raises
------
TypeError
If model is not an instance of astropy.models.Parametric1DModel
See also
--------
Model2DKernel : Create kernel from astropy.models.Parametric2DModel
CustomKernel : Create kernel from list or array
Examples
--------
Define a Gaussian1D model:
>>> from astropy.modeling.models import Gaussian1D
>>> from astropy.convolution.kernels import Model1DKernel
>>> gauss = Gaussian1D(1, 0, 2)
And create a custom one dimensional kernel from it:
>>> gauss_kernel = Model1DKernel(gauss, x_size=9)
This kernel can now be used like a usual astropy kernel.
"""
_separable = False
_is_bool = False
def __init__(self, model, **kwargs):
if isinstance(model, Parametric1DModel):
self._model = model
else:
raise TypeError("Must be Parametric1DModel")
super(Model1DKernel, self).__init__(**kwargs)
[docs]class Model2DKernel(Kernel2D):
"""
Create kernel from astropy.models.Parametric2DModel.
The model has to be centered on x = 0 and y= 0.
Parameters
----------
model : Parametric2DModel
Kernel response function model
x_size : odd int, optional
Size in x direction of the kernel array. Default = 8 * width.
y_size : odd int, optional
Size in y direction of the kernel array. Default = 8 * width.
mode : str, optional
One of the following discretization modes:
* 'center' (default)
Discretize model by taking the value
at the center of the bin.
* 'linear_interp'
Discretize model by performing a bilinear interpolation
between the values at the corners of the bin.
* 'oversample'
Discretize model by taking the average
on an oversampled grid.
* 'integrate'
Discretize model by integrating the
model over the bin.
factor : number, optional
Factor of oversampling. Default factor = 10.
Raises
------
TypeError
If model is not an instance of astropy.models.Parametric2DModel
See also
--------
Model1DKernel : Create kernel from astropy.models.Parametric1DModel
CustomKernel : Create kernel from list or array
Examples
--------
Define a Gaussian2D model:
>>> from astropy.modeling.models import Gaussian2D
>>> from astropy.convolution.kernels import Model2DKernel
>>> gauss = Gaussian2D(1, 0, 0, 2, 2)
And create a custom two dimensional kernel from it:
>>> gauss_kernel = Model2DKernel(gauss, x_size=9)
This kernel can now be used like a usual astropy kernel.
"""
_is_bool = False
_separable = False
def __init__(self, model, **kwargs):
self._separable = False
if isinstance(model, Parametric2DModel):
self._model = model
else:
raise TypeError("Must be Parametric2DModel")
super(Model2DKernel, self).__init__(**kwargs)
class PSFKernel(Kernel2D):
"""
Initialize filter kernel from astropy PSF instance.
"""
_separable = False
def __init__(self):
raise NotImplementedError('Not yet implemented')
[docs]class CustomKernel(Kernel):
"""
Create filter kernel from list or array.
Parameters
----------
array : list or array
Filter kernel array. Size must be odd.
Raises
------
TypeError
If array is not a list or array.
KernelSizeError
If array size is even.
See also
--------
Model2DKernel, Model1DKernel
Examples
--------
Define one dimensional array:
>>> from astropy.convolution.kernels import CustomKernel
>>> import numpy as np
>>> array = np.array([1, 2, 3, 2, 1])
>>> kernel = CustomKernel(array)
>>> kernel.dimension
1
Define two dimensional array:
>>> array = np.array([[1, 1, 1], [1, 2, 1], [1, 1, 1]])
>>> kernel = CustomKernel(array)
>>> kernel.dimension
2
"""
def __init__(self, array):
self.array = array
super(CustomKernel, self).__init__(self._array)
@property
def array(self):
"""
Filter kernel array.
"""
return self._array
@array.setter
[docs] def array(self, array):
"""
Filter kernel array setter
"""
if isinstance(array, np.ndarray):
self._array = array.astype(np.float64)
elif isinstance(array, list):
self._array = np.array(array, dtype=np.float64)
else:
raise TypeError("Must be list or array.")
# Check if array is odd in all axes
odd = np.all([axes_size % 2 != 0 for axes_size in self.shape])
if not odd:
raise KernelSizeError("Kernel size must be odd in all axes.")
# Check if array is bool
ones = self._array == 1.
zeros = self._array == 0
self._is_bool = np.all(np.logical_or(ones, zeros))
self._truncation = 0.0


Surprise Me!
Feeling adventurous? We have something for you.
1
Going from:
2
When would you like to travel?
Departure:
Return:
I'm ready.


Hamlet
by William Shakespeare
Act 5, Scene 2
Additional Information
- Year Published: 0
- Language: English
- Country of Origin: England
- Source: White, R.G. ed. The Complete Works of William Shakespeare. New York: Sully and Kleinteich.
-
Readability:
- Flesch–Kincaid Level: 11.0
- Word Count: 3,517
- Genre: Tragedy
- Keywords: betrayal, death, murder, revenge
- ✎ Cite This
Downloads
SCENE II. A hall in the castle.
(Enter HAMLET and HORATIO)
HAMLET
So much for this, sir: now shall you see the other;
You do remember all the circumstance?
HORATIO
Remember it, my lord?
HAMLET
Sir, in my heart there was a kind of fighting,
That would not let me sleep: methought I lay
Worse than the mutines in the bilboes. Rashly,
And praised be rashness for it, let us know,
Our indiscretion sometimes serves us well,
When our deep plots do pall: and that should teach us
There's a divinity that shapes our ends,
Rough-hew them how we will,—
HORATIO
That is most certain.
HAMLET
Up from my cabin,
My sea-gown scarf'd about me, in the dark
Groped I to find out them; had my desire.
Finger'd their packet, and in fine withdrew
To mine own room again; making so bold,
My fears forgetting manners, to unseal
Their grand commission; where I found, Horatio,—
O royal knavery!—an exact command,
Larded with many several sorts of reasons
Importing Denmark's health and England's too,
With, ho! such bugs and goblins in my life,
That, on the supervise, no leisure bated,
No, not to stay the grinding of the axe,
My head should be struck off.
HORATIO
Is't possible?
HAMLET
Here's the commission: read it at more leisure.
But wilt thou hear me how I did proceed?
HORATIO
I beseech you.
HAMLET
Being thus be-netted round with villanies,—
Ere I could make a prologue to my brains,
They had begun the play—I sat me down,
Devised a new commission, wrote it fair:
I once did hold it, as our statists do,
A baseness to write fair and labour'd much
How to forget that learning, but, sir, now
It did me yeoman's service: wilt thou know
The effect of what I wrote?
HORATIO
Ay, good my lord.
HAMLET
An earnest conjuration from the king,
As England was his faithful tributary,
As love between them like the palm might flourish,
As peace should stiff her wheaten garland wear
And stand a comma 'tween their amities,
And many such-like 'As'es of great charge,
That, on the view and knowing of these contents,
Without debatement further, more or less,
He should the bearers put to sudden death,
Not shriving-time allow'd.
HORATIO
How was this seal'd?
HAMLET
Why, even in that was heaven ordinant.
I had my father's signet in my purse,
Which was the model of that Danish seal;
Folded the writ up in form of the other,
Subscribed it, gave't the impression, placed it safely,
The changeling never known. Now, the next day
Was our sea-fight; and what to this was sequent
Thou know'st already.
HORATIO
So Guildenstern and Rosencrantz go to't.
HAMLET
Why, man, they did make love to this employment;
They are not near my conscience; their defeat
Does by their own insinuation grow:
'Tis dangerous when the baser nature comes
Between the pass and fell incensed points
Of mighty opposites.
HORATIO
Why, what a king is this!
HAMLET
Does it not, think'st thee, stand me now upon—
He that hath kill'd my king and whored my mother,
Popp'd in between the election and my hopes,
Thrown out his angle for my proper life,
And with such cozenage—is't not perfect conscience,
To quit him with this arm? and is't not to be damn'd,
To let this canker of our nature come
In further evil?
HORATIO
It must be shortly known to him from England
What is the issue of the business there.
HAMLET
It will be short: the interim is mine;
And a man's life's no more than to say 'One.'
But I am very sorry, good Horatio,
That to Laertes I forgot myself;
For, by the image of my cause, I see
The portraiture of his: I'll court his favours.
But, sure, the bravery of his grief did put me
Into a towering passion.
HORATIO
Peace! who comes here?
(Enter OSRIC)
OSRIC
Your lordship is right welcome back to Denmark.
HAMLET
I humbly thank you, sir. Dost know this water-fly?
HORATIO
No, my good lord.
HAMLET
Thy state is the more gracious; for 'tis a vice to
know him. He hath much land, and fertile: let a
beast be lord of beasts, and his crib shall stand at
the king's mess: 'tis a chough; but, as I say,
spacious in the possession of dirt.
OSRIC
Sweet lord, if your lordship were at leisure, I
should impart a thing to you from his majesty.
HAMLET
I will receive it, sir, with all diligence of
spirit. Put your bonnet to his right use; 'tis for the head.
OSRIC
I thank your lordship, it is very hot.
HAMLET
No, believe me, 'tis very cold; the wind is
northerly.
OSRIC
It is indifferent cold, my lord, indeed.
HAMLET
But yet methinks it is very sultry and hot for my
complexion.
OSRIC
Exceedingly, my lord; it is very sultry,—as
'twere,—I cannot tell how. But, my lord, his
majesty bade me signify to you that he has laid a
great wager on your head: sir, this is the matter,—
HAMLET
I beseech you, remember—
(HAMLET moves him to put on his hat)
OSRIC
Nay, good my lord; for mine ease, in good faith.
Sir, here is newly come to court Laertes; believe
me, an absolute gentleman, full of most excellent
differences, of very soft society and great showing:
indeed, to speak feelingly of him, he is the card or
calendar of gentry, for you shall find in him the
continent of what part a gentleman would see.
HAMLET
Sir, his definement suffers no perdition in you;
though, I know, to divide him inventorially would
dizzy the arithmetic of memory, and yet but yaw
neither, in respect of his quick sail. But, in the
verity of extolment, I take him to be a soul of
great article; and his infusion of such dearth and
rareness, as, to make true diction of him, his
semblable is his mirror; and who else would trace
him, his umbrage, nothing more.
OSRIC
Your lordship speaks most infallibly of him.
HAMLET
The concernancy, sir? why do we wrap the gentleman
in our more rawer breath?
OSRIC
Sir?
HORATIO
Is't not possible to understand in another tongue?
You will do't, sir, really.
HAMLET
What imports the nomination of this gentleman?
OSRIC
Of Laertes?
HORATIO
His purse is empty already; all's golden words are spent.
HAMLET
Of him, sir.
OSRIC
I know you are not ignorant—
HAMLET
I would you did, sir; yet, in faith, if you did,
it would not much approve me. Well, sir?

OSRIC
I mean, sir, for his weapon; but in the imputation
laid on him by them, in his meed he's unfellowed.
HAMLET
What's his weapon?
OSRIC
Rapier and dagger.
HAMLET
That's two of his weapons: but, well.
OSRIC
The king, sir, hath wagered with him six Barbary
horses: against the which he has imponed, as I take
it, six French rapiers and poniards, with their
assigns, as girdle, hangers, and so: three of the
carriages, in faith, are very dear to fancy, very
responsive to the hilts, most delicate carriages,
and of very liberal conceit.
HAMLET
What call you the carriages?
HORATIO
I knew you must be edified by the margent ere you had done.
OSRIC
The carriages, sir, are the hangers.
HAMLET
The phrase would be more german to the matter, if we
could carry cannon by our sides: I would it might
be hangers till then. But, on: six Barbary horses
against six French swords, their assigns, and three
liberal-conceited carriages; that's the French bet
against the Danish. Why is this 'imponed,' as you call it?
OSRIC
The king, sir, hath laid, that in a dozen passes
between yourself and him, he shall not exceed you
three hits: he hath laid on twelve for nine; and it
would come to immediate trial, if your lordship
would vouchsafe the answer.
HAMLET
How if I answer 'no'?

HAMLET
Sir, I will walk here in the hall: if it please his
majesty, 'tis the breathing time of day with me; let
the foils be brought, the gentleman willing, and the
king hold his purpose, I will win for him an I can;
if not, I will gain nothing but my shame and the odd hits.
OSRIC
Shall I re-deliver you e'en so?
HAMLET
To this effect, sir; after what flourish your nature will.
OSRIC
I commend my duty to your lordship.
HAMLET
Yours, yours.
(Exit OSRIC)
He does well to commend it himself; there are no
tongues else for's turn.
HORATIO
This lapwing runs away with the shell on his head.
HAMLET
He did comply with his dug, before he sucked it.
Thus has he—and many more of the same bevy that I
know the dressy age dotes on—only got the tune of
the time and outward habit of encounter; a kind of
yesty collection, which carries them through and
through the most fond and winnowed opinions; and do
but blow them to their trial, the bubbles are out.
Enter a Lord
Lord
My lord, his majesty commended him to you by young
Osric, who brings back to him that you attend him in
the hall: he sends to know if your pleasure hold to
play with Laertes, or that you will take longer time.
HAMLET
I am constant to my purpose; they follow the king's
pleasure: if his fitness speaks, mine is ready; now
or whensoever, provided I be so able as now.
Lord
The king and queen and all are coming down.
HAMLET
In happy time.
Lord
The queen desires you to use some gentle
entertainment to Laertes before you fall to play.
HAMLET
She well instructs me.
(Exit Lord)
HORATIO
You will lose this wager, my lord.
HAMLET
I do not think so: since he went into France, I
have been in continual practise: I shall win at the
odds. But thou wouldst not think how ill all's here
about my heart: but it is no matter.
HORATIO
Nay, good my lord,—
HAMLET
It is but foolery; but it is such a kind of
gain-giving, as would perhaps trouble a woman.
HORATIO
If your mind dislike any thing, obey it: I will
forestall their repair hither, and say you are not
fit.
HAMLET
Not a whit, we defy augury: there's a special
providence in the fall of a sparrow. If it be now,
'tis not to come; if it be not to come, it will be
now; if it be not now, yet it will come: the
readiness is all: since no man has aught of what he
leaves, what is't to leave betimes?
(Enter KING CLAUDIUS, QUEEN GERTRUDE, LAERTES, Lords, OSRIC, and Attendants with foils, & c)
KING CLAUDIUS
Come, Hamlet, come, and take this hand from me.

This presence knows,
And you must needs have heard, how I am punish'd
With sore distraction. What I have done,
That might your nature, honour and exception
Roughly awake, I here proclaim was madness.
Was't Hamlet wrong'd Laertes? Never Hamlet:
If Hamlet from himself be ta'en away,
And when he's not himself does wrong Laertes,
Then Hamlet does it not, Hamlet denies it.
Who does it, then? His madness: if't be so,
Hamlet is of the faction that is wrong'd;
His madness is poor Hamlet's enemy.
Sir, in this audience,
Let my disclaiming from a purposed evil
Free me so far in your most generous thoughts,
That I have shot mine arrow o'er the house,
And hurt my brother.
LAERTES
I am satisfied in nature,
Whose motive, in this case, should stir me most
To my revenge: but in my terms of honour
I stand aloof; and will no reconcilement,
Till by some elder masters, of known honour,
I have a voice and precedent of peace,
To keep my name ungored. But till that time,
I do receive your offer'd love like love,
And will not wrong it.
HAMLET
I embrace it freely;
And will this brother's wager frankly play.
Give us the foils. Come on.
LAERTES
Come, one for me.

LAERTES
You mock me, sir.
HAMLET
No, by this hand.
KING CLAUDIUS
Give them the foils, young Osric. Cousin Hamlet,
You know the wager?
HAMLET
Very well, my lord
Your grace hath laid the odds o' the weaker side.
KING CLAUDIUS
I do not fear it; I have seen you both:
But since he is better'd, we have therefore odds.
LAERTES
This is too heavy, let me see another.
HAMLET
This likes me well. These foils have all a length?
(They prepare to play)
OSRIC
Ay, my good lord.
KING CLAUDIUS
Set me the stoops of wine upon that table.
If Hamlet give the first or second hit,
Or quit in answer of the third exchange,
Let all the battlements their ordnance fire:
The king shall drink to Hamlet's better breath;
And in the cup an union shall he throw,
Richer than that which four successive kings
In Denmark's crown have worn. Give me the cups;
And let the kettle to the trumpet speak,
The trumpet to the cannoneer without,
The cannons to the heavens, the heavens to earth,
'Now the king dunks to Hamlet.' Come, begin:
And you, the judges, bear a wary eye.
HAMLET
Come on, sir.
LAERTES
Come, my lord.
(They play)
HAMLET
One.
LAERTES
No.
HAMLET
Judgment.
OSRIC
A hit, a very palpable hit.
LAERTES
Well; again.
KING CLAUDIUS
Stay; give me drink. Hamlet, this pearl is thine;
Here's to thy health.
[Trumpets sound, and cannon shot off within]
Give him the cup.
HAMLET
I'll play this bout first; set it by awhile. Come.
(They play)
Another hit; what say you?
LAERTES
A touch, a touch, I do confess.
KING CLAUDIUS
Our son shall win.
QUEEN GERTRUDE
He's fat, and scant of breath.
Here, Hamlet, take my napkin, rub thy brows;
The queen carouses to thy fortune, Hamlet.
HAMLET
Good madam!
KING CLAUDIUS
Gertrude, do not drink.
QUEEN GERTRUDE
I will, my lord; I pray you, pardon me.
KING CLAUDIUS
[Aside] It is the poison'd cup: it is too late.
HAMLET
I dare not drink yet, madam; by and by.
QUEEN GERTRUDE
Come, let me wipe thy face.
LAERTES
My lord, I'll hit him now.
KING CLAUDIUS
I do not think't.
LAERTES
[Aside] And yet 'tis almost 'gainst my conscience.
HAMLET
Come, for the third, Laertes: you but dally;
I pray you, pass with your best violence;
I am afeard you make a wanton of me.
LAERTES
Say you so? come on.
(They play)
OSRIC
Nothing, neither way.
LAERTES
Have at you now!
LAERTES wounds HAMLET; then in scuffling, they change rapiers, and HAMLET wounds LAERTES
KING CLAUDIUS
Part them; they are incensed.
HAMLET
Nay, come, again.
QUEEN GERTRUDE falls
OSRIC
Look to the queen there, ho!
HORATIO
They bleed on both sides. How is it, my lord?
OSRIC
How is't, Laertes?
LAERTES
Why, as a woodcock to mine own springe, Osric;
I am justly kill'd with mine own treachery.
HAMLET
How does the queen?
KING CLAUDIUS
She swounds to see them bleed.
QUEEN GERTRUDE
No, no, the drink, the drink,—O my dear Hamlet,—
The drink, the drink! I am poison'd.
(Dies)
HAMLET
O villany! Ho! let the door be lock'd:
Treachery! Seek it out.
LAERTES
It is here, Hamlet: Hamlet, thou art slain;
No medicine in the world can do thee good;
In thee there is not half an hour of life;
The treacherous instrument is in thy hand,
Unbated and envenom'd: the foul practise
Hath turn'd itself on me lo, here I lie,
Never to rise again: thy mother's poison'd:
I can no more: the king, the king's to blame.
HAMLET
The point!—envenom'd too!
Then, venom, to thy work.
(Stabs KING CLAUDIUS)
All
Treason! treason!
KING CLAUDIUS
O, yet defend me, friends; I am but hurt.
HAMLET
Here, thou incestuous, murderous, damned Dane,
Drink off this potion. Is thy union here?
Follow my mother.
(KING CLAUDIUS dies)
LAERTES
He is justly served;
It is a poison temper'd by himself.
Exchange forgiveness with me, noble Hamlet:
Mine and my father's death come not upon thee,
Nor thine on me.
(Dies)
HAMLET
Heaven make thee free of it! I follow thee.
I am dead, Horatio. Wretched queen, adieu!
You that look pale and tremble at this chance,
That are but mutes or audience to this act,
Had I but time—as this fell sergeant, death,
Is strict in his arrest—O, I could tell you—
But let it be. Horatio, I am dead;
Thou livest; report me and my cause aright
To the unsatisfied.
HORATIO
Never believe it:
I am more an antique Roman than a Dane:
Here's yet some liquor left.
HAMLET
As thou'rt a man,
Give me the cup: let go; by heaven, I'll have't.
O good Horatio, what a wounded name,
Things standing thus unknown, shall live behind me!
If thou didst ever hold me in thy heart
Absent thee from felicity awhile,
And in this harsh world draw thy breath in pain,
To tell my story.
[March afar off, and shot within]
What warlike noise is this?
OSRIC
Young Fortinbras, with conquest come from Poland,
To the ambassadors of England gives
This warlike volley.
HAMLET
O, I die, Horatio;
The potent poison quite o'er-crows my spirit:
I cannot live to hear the news from England;
But I do prophesy the election lights
On Fortinbras: he has my dying voice;
So tell him, with the occurrents, more and less,
Which have solicited. The rest is silence.
(Dies)
HORATIO
Now cracks a noble heart. Good night sweet prince:
And flights of angels sing thee to thy rest!
Why does the drum come hither?
[March within]
(Enter FORTINBRAS, the English Ambassadors, and others)
PRINCE FORTINBRAS
Where is this sight?
HORATIO
What is it ye would see?
If aught of woe or wonder, cease your search.
PRINCE FORTINBRAS
This quarry cries on havoc. O proud death,
What feast is toward in thine eternal cell,
That thou so many princes at a shot
So bloodily hast struck?
First Ambassador
The sight is dismal;
And our affairs from England come too late:
The ears are senseless that should give us hearing,
To tell him his commandment is fulfill'd,
That Rosencrantz and Guildenstern are dead:
Where should we have our thanks?
HORATIO
Not from his mouth,
Had it the ability of life to thank you:
He never gave commandment for their death.

PRINCE FORTINBRAS
Let us haste to hear it,
And call the noblest to the audience.
For me, with sorrow I embrace my fortune:
I have some rights of memory in this kingdom,
Which now to claim my vantage doth invite me.
HORATIO
Of that I shall have also cause to speak,
And from his mouth whose voice will draw on more;
But let this same be presently perform'd,
Even while men's minds are wild; lest more mischance
On plots and errors, happen.
PRINCE FORTINBRAS
Let four captains
Bear Hamlet, like a soldier, to the stage;
For he was likely, had he been put on,
To have proved most royally: and, for his passage,
The soldiers' music and the rites of war
Speak loudly for him.
Take up the bodies: such a sight as this
Becomes the field, but here shows much amiss.
Go, bid the soldiers shoot.
(A dead march. Exeunt, bearing off the dead bodies; after which a peal of ordnance is shot off)


--- layout: post date: 2008-07-23 time: "09:00:00" authors: ["Greg Wilson"] title: Badge of Reproducibility tags: ["Community", "Noticed", "Opinion"] ---
Coming back to the badge meme from earlier this week, John Cook's new Reproducible Research blog pointed me at this page on the EPFL site advertising a paper called "What, Why and How of Reproducible Research in Signal Processing". Notice the "Reproducible Research" badge? The "add your evaluation" link takes you to a formlet that lets you choose between:
It's a good start...


'); //add input box
}
});
$(wrapper).on("click",".remove_field", function(e){ //user click on remove text
e.preventDefault(); $(this).parent('div').remove(); x--;
})
});
$("#input-24").fileinput({
initialPreview: [
"",
"",
],
overwriteInitial: false,
maxFileSize: 100,
initialCaption: "The Moon and the Earth"
});
// Display preview on load with preset files/images and captions
// with `overwriteInitial` set to true.
$("#input-25").fileinput({
initialPreview: [
"",
"",
],
overwriteInitial: true,
initialCaption: "The Moon and the Earth"
});
// Display the widget as a single block button
/* Initialize your widget via javascript as follows */
$("#input-20").fileinput({
browseClass: "btn btn-primary btn-block",
showCaption: false,
showRemove: false,
showUpload: false
});
// Show only image files for selection & preview. Control button labels, styles,
// and icons for the browse, upload, and remove buttons.
// Preview section control. Change preview background and allow text files ONLY
// for selection as well as preview.
// Advanced customization using templates. For example, change position of buttons
// from right to left.
// Using plugin methods to alter input at runtime. For example, click the
// Modify button to disable the plugin and change plugin options.
// Allow only image and video file types to be uploaded. You can configure
// the condition for validating the file types using `fileTypeSettings`.
// Allow only specific file extensions to be uploaded.
// Disable preview and customize your own error container and messages.


MAST.Rd
Run and visualize MAST analysis on a SCtkExperiment object.
MAST(inSCE, condition = NULL, interest.level = NULL, freqExpressed = 0.1, fcThreshold = log2(1.5), p.value = 0.05, useThresh = FALSE, useAssay = "logcounts") thresholdGenes(inSCE, useAssay = "logcounts") MASTviolin(inSCE, useAssay = "logcounts", fcHurdleSig, samplesize = 49, threshP = FALSE, condition) MASTregression(inSCE, useAssay = "logcounts", fcHurdleSig, samplesize = 49, threshP = FALSE, condition)
| inSCE | Input SCtkExperiment object. Required |
|---|---|
| condition | select variable (from the colData) that is used for the model. |
| interest.level | If the condition of interest has more than two factors, indicate which level should be used to compare to all other samples. |
| freqExpressed | Filter genes that are expressed in at least this fraction of cells. The default is expression in 0.1 of samples. |
| fcThreshold | Minimum fold change for differentially expressed gene. |
| p.value | p values for selecting the hurdle result, default is 0.05 |
| useThresh | Use adaptive thresholding to filter genes. The default is FALSE. |
| useAssay | The assay to use for the MAST calculations. The default is "logcounts" |
| fcHurdleSig | The filtered result from hurdle model |
| samplesize | The number of most significant genes |
| threshP | Plot threshold values from adaptive thresholding. Default is FALSE |
MAST(): A data.frame of differentially expressed genes with p-values.
thresholdGenes(): list of thresholded counts (on natural scale), thresholds, bins, densities estimated on each bin, and the original data from MAST::thresholdSCRNACountMatrix
MASTviolin(): A ggplot object of MAST violin plots.
MASTregression(): A ggplot object of MAST linear regression plots.
MAST
: Run MAST analysis.
thresholdGenes
: Identify adaptive thresholds
MASTviolin
: Visualize MAST results using violin plots
MASTregression
: Visualize MAST results using linear model plots
#>#>#>


Best deals from XIDU Official Store for Double Eleven - Gizchina.com
by Ying HuaRate this post
XIDU shoppers get ready, the promotion activity launched by XIDU official store is upon us. As we all know, XIDU, an innovative Shenzhen-based company that has made a big splash in the laptop and tablet markets by offering affordable and high-quality computers, has developed its own official store to expand business around the world. the best deals activity from November 11 to November 30 is launched by our official store to express our gratitude to your support and attention! That means XIDU is kicking off its promotion discounts more than 2 weeks! You can save up to 50 dollars for every order and acquire a free wired gaming mouse with the price of 30 dollars.
Here’s a list of our popular laptops that are on sale right now. Don’t hesitate, visit our official store to obtain the best deals!
XIDU 13.3-inch PhilPad touchscreen 2-in-1 laptop
Brief Introduction:
- Golden ratio 2K (2560×1440) display
- Intel Atom x7-E3950 processor (up to 2.0GHz), 6GB RAM 128GBROMexpanded to 256GB, ultra-thin 0.4-inch thickness, 5000MAH/7.4V powerful battery
- 1 x USB Type-C, 2 x USB 3.0, 1 x Microphone Jack, 1 x MicroSD card slot Dual band 2.4GHz/5.0GHz WiFi
Buy from XIDU O fficial Store During the Promotion:
- Sale Price: $439.99
- Store Coupon: 50$ OFF directly
- Final Price: $389
XIDU PhilBook Max 14.1-inch Touchscreen Laptop
Brief Introduction:
- Outstanding appearance
- Switch between a notebook and a tablet by rotating the screen with a 360°flexible hinge.
- Touchscreen with 1920*1080 resolution, 4.9mm ultra-narrow screen border
- Backlit keyboard
- Intel E3950 quad-coreCPU at up to 2.5GHz burst frequency with 8GB RAM and 128GB SSD
- 1x Mini HDMI, 2 x USB 3.0, 1 x Microphone Jack, 1 x Bluetooth 4.2, 1 x MicroSD card slot, 802.11 ac/a/b/g/n, Webcam.
Buy from XIDU O fficial Store During the Promotion:
- Sale Price:$419
- Store Coupon: 50$ OFF directly
- Final Price: $369
XIDU 12.5-inch Tour Pro Touchscreen Laptop
Brief Introduction:
- Portable, easy to carry, 2.22 lbs weight and 16.6mm thickness
- 2560×1440 Screen Resolution and Ultra-thin Border, 85% screen-to-body ratio and IPS screen
- Intel 3867U 8thGen CPU, 8G RAM and 256GB ROM, new 14nm technology, a cooling fan
- A front camera, inbuilt speakers and microphones, ergonomic keyboard design, compatible with 802.1 b/g WiFi and 4.2 Bluetooth, equipped with 2 USB3.0 ports, 1 mini HDMI port, TF card slot and headphone jack.
Buy from XIDU O fficial Store During the Promotion:
- Sale Price: $449
- Store Coupon: 50$ OFF directly
- Final Price: $399
XIDU 11.6-inch PhilBook Pro Laptop
Best deals from XIDU Official Store for Double Eleven
Brief Introduction
- 2560×1440 IPS screen display
- A strong Aluminium Alloy body while astonishingly portable weight of only 2.65 lbs
- The design of 360 degrees of flexible hinge featured by a dual-torque technology with the perfect combination of flexibility and strength. Various options include laptop, tablet, and tent modes.
- An Intel J3355 Quad Core 2.0GHz Processor, 6 GB LPDDR RAM, hard drive 128 GB SSD, Windows 10 system with fast running speed and less stuttering.
Buy from XIDU O fficial Store During the Promotion:
- Sale Price: $349
- Store Coupon: 50$ OFF directly
- Final Price: $299
XIDU 11.6-inch Philbook Touchscreen 2-in-1 Laptop
Brief introduction:
- 360° flexi-hinge
- 1920 x 1080 resolution.
- An Intel Atom Quad-core Processor, 64GB storage and 4GB RAM, 2.42 pounds weight.
- 1x USB 3.0, 1x USB 2.0, 1x MicroSD Card Reader, 1x Mini HDMI, 1x Headphone jack, 802.11b/g/n WiFi and Bluetooth 4.0.
- Pre-installed with Windows 10 system
Buy from XIDU O fficial Store During the Promotion:
- Sale Price: $309
- Store Coupon: 50$ OFF directly
- Final Price: $259
This kind of large-scale promotion is rare to find given the current momentum in the industry. Time is limited so place your order during the promotion as soon as possible! Get ready to get the best products with the best deals.
And we also have stores on Amazon and Aliexpress.  You can find more coupons here.


{% trans "thank you for submiting your feedback" %}
{% trans "close feedback" %}
{% trans "some error occured submiting submiting your feedback, please try again later" %}
{% trans "close feedback" %}
Your VM has been suspended, please contact us for more details.
{% blocktrans with EXTERNAL_CLIENT_URL as EXTERNAL_CLIENT_URL %}Use the following API key along with the ./kamaki client to manage
your cloud resources from outside this page.{% endblocktrans %}
{% blocktrans %} The API key provides full access to your {{ BRANDING_SERVICE_NAME }} account, so always keep it private.{% endblocktrans %}
Use the following API key along with the ./kamaki client to manage your cloud resources from outside this page.
Loading images...
Loading flavors...
Loading resources...
Loading quotas...
Loading machines...
Loading networks...
Rendering layout...
{% include "partials/custom_images.html" %}
{% include "partials/vm_resize.html" %}
{% include "footer.html" %}


1
test scenarios (1 tests in all, including 1
rows of test data)
|
Distribution of tests (including rows in data-driven tests) by test result.
Show/Hide Pie Chart
|
|
|
Test Result Summary
| Test Type |
Total |
Pass |
Fail |
Pending |
Ignore/Skip |
| Automated |
1 |
1 (100%) |
0 (0%) |
0 (0%) |
0 (0%) |
| Manual |
0 |
0 (0%) |
0 (0%) |
0 (0%) |
0 (0%) |
| Total |
1 |
1 (100%) |
0 (0%) |
0 (0%) |
0 (0%) |
| Total Duration |
7 seconds |
|
|
Test results weighted by test size in steps (average steps per test: 7) .
Show/Hide Pie
Chart
|
|
|
Test Result Summary
| Test Type |
Total |
Pass |
Fail |
Pending |
Ignore/Skip |
| Automated |
1 |
1 (100%) |
0 (0%) |
0 (0%) |
0 (0%) |
| Manual |
0 |
0 (0%) |
0 (0%) |
0 (0%) |
0 (0%) |
| Total |
1 |
1 (100%) |
0 (0%) |
0 (0%) |
0 (0%) |
| Total Duration |
7 seconds |
|
|