module training.sgd_learning_loss
¶
Short summary¶
module onnxcustom.training.sgd_learning_loss
Helper for onnxruntime-training.
Classes¶
class |
truncated documentation |
|---|---|
Implements a square loss where Y is the output and Z the expected output. See |
|
Class handling the loss for class |
|
Implements a square loss where Y is the output and Z the expected … |
|
Implements a negative log loss ‘log(yt, yp) = -(1-yt)log(1-yp) - ytlog(yp), this only works for a binary classification … |
|
Implements a square loss where Y is the output and Z the expected output. See |
Static Methods¶
staticmethod |
truncated documentation |
|---|---|
|
Returns an instance of a given initialized with kwargs. |
Returns an instance of a given initialized with kwargs. |
|
|
Returns an instance of a given initialized with kwargs. |
|
Returns an instance of a given initialized with kwargs. |
|
Returns an instance of a given initialized with kwargs. |
Methods¶
method |
truncated documentation |
|---|---|
|
|
|
|
|
|
|
|
|
Assuming the loss function was created. This one takes the onnx graph and generate the onnx graph for the … |
Assuming the loss function was created. This one takes the onnx graph and generate the onnx graph for the … |
|
|
Assuming the loss function was created. This one takes the onnx graph and generate the onnx graph for the … |
|
Assuming the loss function was created. This one takes the onnx graph and generate the onnx graph for the … |
|
Assuming the loss function was created. This one takes the onnx graph and generate the onnx graph for the … |
|
Returns the loss and the gradient as OrtValue. |
Returns the loss and the gradient as OrtValue. |
|
|
Returns the loss and the gradient as OrtValue. |
|
Returns the loss and the gradient as OrtValue. |
|
Returns the loss and the gradient as OrtValue. |
|
Returns the weighted loss (or score) for every observation as OrtValue. |
Returns the weighted loss (or score) for every observation as OrtValue. |
|
|
Returns the weighted loss (or score) for every observation as OrtValue. |
|
Returns the weighted loss (or score) for every observation as OrtValue. |
|
Returns the weighted loss (or score) for every observation as OrtValue. |
Documentation¶
Helper for onnxruntime-training.
- class onnxcustom.training.sgd_learning_loss.AbsoluteLearningLoss¶
Bases:
onnxcustom.training.sgd_learning_loss.BaseLearningLoss
Implements a square loss where Y is the output and Z the expected output. See
_onnx_grad_loss_absolute_error
for the ONNX implementation.- __init__()¶
- build_onnx_function(opset, device, weight_name)¶
This class updates the weights. It assumes it can do operator on OrtValue. This can be done through ONNX graph. This function creates InferenceSession which do that.
- Parameters
opset – opset to use
device – C_OrtDevice
args – additional arguments
- class onnxcustom.training.sgd_learning_loss.BaseLearningLoss¶
Bases:
onnxcustom.training._base_onnx_function.BaseLearningOnnx
Class handling the loss for class
OrtGradientForwardBackwardOptimizer
. All classes inheriting from this one creates one ONNX function, returning the loss and the gradient of the loss against the outputs. Method loss_gradient is the main method, it computes the loss and the gradient defiend by one ONNX graph and executed by an instance of InferenceSession.- __init__()¶
- _call_iobinding(sess, bind)¶
- build_onnx_score_function(opset, device, weight_name)¶
Assuming the loss function was created. This one takes the onnx graph and generate the onnx graph for the method loss_score.
- loss_gradient(device, expected, predicted, weight=None)¶
Returns the loss and the gradient as OrtValue.
- Parameters
device – device where the training takes place
expected – expected value
predicted – predicted value
weight – optional, training weights (same dimension as expected and predicted tensors)
- Returns
loss and gradient
- loss_scores(device, expected, predicted, weight=None)¶
Returns the weighted loss (or score) for every observation as OrtValue.
- Parameters
device – device where the training takes place
expected – expected value
predicted – predicted value
weight – optional, training weights (same dimension as expected and predicted tensors)
- Returns
a score for every observation
- static select(class_name, **kwargs)¶
Returns an instance of a given initialized with kwargs. :param class_name: an instance of
BaseLearningLoss
or a string among the following class names (see below)
- Returns
instance of
BaseLearningLoss
Possible values for class_name: * ‘square_error’: see
SquareLearningLoss
* ‘absolute_error’: seeAbsoluteLearningLoss
* ‘elastic_error’: seeElasticLearningLoss
- class onnxcustom.training.sgd_learning_loss.ElasticLearningLoss(l1_weight=0.5, l2_weight=0.5)¶
Bases:
onnxcustom.training.sgd_learning_loss.BaseLearningLoss
Implements a square loss where Y is the output and Z the expected output, is l2_weight and is l1_weight.
- Parameters
l1_weight – weight of L1 norm
l2_weight – weight of L2 norm
See
_onnx_grad_loss_elastic_error
for the ONNX implementation.- __init__(l1_weight=0.5, l2_weight=0.5)¶
- build_onnx_function(opset, device, weight_name)¶
This class updates the weights. It assumes it can do operator on OrtValue. This can be done through ONNX graph. This function creates InferenceSession which do that.
- Parameters
opset – opset to use
device – C_OrtDevice
args – additional arguments
- class onnxcustom.training.sgd_learning_loss.NegLogLearningLoss(eps=1e-05, probability_function='sigmoid')¶
Bases:
onnxcustom.training.sgd_learning_loss.BaseLearningLoss
Implements a negative log loss ‘log(yt, yp) = -(1-yt)log(1-yp) - ytlog(yp), this only works for a binary classification where yp is the predicted probability, yt is the expected probability. yt is expected to be binary, yp is a matrix with two columns, the sum on every line is 1. However, this loss is usually applied after a function softmax and the gradient is directly computed from the loss to the raw score before they are processed through the softmax function (see class Log).
- Parameters
eps – clipping value for probabilities, avoids computing log(0)
probability_function – function to convert raw scores into probabilities, default value is sigmoid for a logistic regression
- __init__(eps=1e-05, probability_function='sigmoid')¶
- build_onnx_function(opset, device, weight_name)¶
This class updates the weights. It assumes it can do operator on OrtValue. This can be done through ONNX graph. This function creates InferenceSession which do that.
- Parameters
opset – opset to use
device – C_OrtDevice
args – additional arguments
- class onnxcustom.training.sgd_learning_loss.SquareLearningLoss¶
Bases:
onnxcustom.training.sgd_learning_loss.BaseLearningLoss
Implements a square loss where Y is the output and Z the expected output. See
_onnx_grad_loss_square_error
for the ONNX implementation.- __init__()¶
- build_onnx_function(opset, device, weight_name)¶
This class updates the weights. It assumes it can do operator on OrtValue. This can be done through ONNX graph. This function creates InferenceSession which do that.
- Parameters
opset – opset to use
device – C_OrtDevice
args – additional arguments


class AddPaymentMethodActivity : StripeActivity
Activity used to display a AddPaymentMethodView and receive the resulting
PaymentMethod in the Activity#onActivityResult(int, int, Intent)
of the
launching Activity.
Should be started with AddPaymentMethodActivityStarter.
<init> |
Activity used to display a AddPaymentMethodView and receive the resulting
PaymentMethod in the AddPaymentMethodActivity() |
onActionSave |
fun onActionSave(): Unit |
onCreate |
fun onCreate(savedInstanceState: Bundle?): Unit |
onProgressBarVisibilityChanged |
fun onProgressBarVisibilityChanged(visible: Boolean): Unit |
onResume |
fun onResume(): Unit |


| enum EDMA3_RM_TccStatus |
This enum defines the channel specific status codes of an EDMA3 transfer. It is returned while calling the channel specific callback function to tell the status.
| enum EDMA3_RM_GlobalError |
This enum defines the global (not specific to any channel) error codes of completion of an EDMA3 transfer.
| EDMA3_RM_E_CC_QUE_THRES_EXCEED |
Threshold exceed:- for all event queues. These get latched in EDMA3CC error register (CCERR). This error has a direct relation with the setting of EDMA3_RM_GblConfigParams.evtQueueWaterMarkLvl |
| EDMA3_RM_E_CC_TCC |
TCC error:- for outstanding transfer requests expected to return completion code (TCCHEN or TCINTEN bit in OPT is set to 1) exceeding the maximum limit of 63. This also gets latched in the CCERR. |
| EDMA3_RM_E_TC_MEM_LOCATION_READ_ERROR |
Transfer Controller has reported an error Detection of a Read error signaled by the source or destination address |
| EDMA3_RM_E_TC_MEM_LOCATION_WRITE_ERROR |
Detection of a Write error signaled by the source or destination address |
| EDMA3_RM_E_TC_INVALID_ADDR |
Attempt to read or write to an invalid address in the configuration memory map. |
| EDMA3_RM_E_TC_TR_ERROR |
Detection of a FIFO mode TR violating the FIFO mode transfer rules (the source/destination addresses and source/destination indexes must be aligned to 32 bytes). |
| enum EDMA3_RM_ResType |
DMA Channels assigned to different Hardware Events.
They should be used while requesting a specific DMA channel. One possible usage is to maintain a SoC specific file, which will contain the mapping of these hardware events to the respective peripherals for better understanding and lesser probability of errors. Also, if any event associated with a particular peripheral gets changed, only that SoC specific file needs to be changed. for eg, the sample SoC specific file "soc.h" can have these defines:
define EDMA3_RM_HW_CHANNEL_MCBSP_TX EDMA3_RM_HW_CHANNEL_EVENT_2 define EDMA3_RM_HW_CHANNEL_MCBSP_RX EDMA3_RM_HW_CHANNEL_EVENT_3
These defines will be used by the MCBSP driver. The same event EDMA3_RM_HW_CHANNEL_EVENT_2/3 could be mapped to some other peripheral also.
QDMA Trigger Word.
Use this enum to set the QDMA trigger word to any of the 8 DWords(uint32_t) within a Parameter RAM set
CC/TC Physical Address.
Use this enum to get the physical address of the Channel Controller or the Transfer Controller. The address returned could be used by the advanced users to set/get some specific registers direclty.
| enum EDMA3_RM_IoctlCmd |
EDMA3 Resource Manager IOCTL commands.


Half Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
Half Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
One Third Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
One Third Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
One Third Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
One Third Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been
Two Third Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
One Fourth Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
One Fourth Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
One Fourth Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
One Fourth Column
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text


Charted SMTM Songs
by scent_of_rainThere're many songs in SMTM discography, but some of them also succeeded in the charts. Such tracks sold hundreds of thousands.
To limit the content, I only listed the songs charted in top 10 the charts. In the list you can also see the sales of the songs in Gaon.
(Season 4) Incredivle feat. Tablo&Jinusean - Oppa’s Car
Peak Position on Gaon: 1
Sales: 864,877
(Season 5) One feat. Simon D, Gray - Comfortable
Peak Position on Gaon: 1
Sales: 750,349
(Season 5) BeWhy feat.Jay Park - Day Day
Peak Position on Gaon: 2
Sales: 1,039,009
(Season 5) BeWhy - Forever
Peak Position on Gaon: 2
Sales: 918,132
(Season 5) Team Simon D&Gray Track Mission - I'm Not The Person You Used To Know
Peak Position on Gaon: 2
Sales: 751,667
(Season 3) IRON - Malice
Peak Position on Gaon: 2
Sales: 671,664
(Season 5) Zion.T - Knock
Peak Position on Gaon: 2
Sales: 474,535
(Season 4) Song Minho feat. Taeyang – Fear
Peak Position on Gaon: 3
Sales: 1,049,930
(Season 6) Team Dynamic Duo - 1/N
Peak Position on Gaon: 3
Sales: 750,050
(Season 6) Hangzoo feat. Zico, Swings - Red Sun
Peak Position on Gaon: 3
Sales: 410,643
(Season 4) Team ZICO&Paloato Track Mission - Turtle Ship
Peak Position on Gaon: 4
Sales: 813,526
(Season 3) Bobby - YGGR#Hip Hop
Peak Position on Gaon: 4
Sales: 684,994
(Season 3) Bobby - Raise Your Guard And Bounce
Peak Position on Gaon: 4
Sales: 543,442
(Season 5) Team Zion.T&Kush Track Mission - $insa
Peak Position on Gaon: 4
Sales: 493,535
(Season 7) Team Paloalto&Code Kunst Track Mission - Good Day
Peak Position on Gaon: 4
(Season 5) Boi B feat. Gill, Rhythm Power - Horangnabi
Peak Position on Gaon: 5
Sales: 720,563
(Season 6) Team ZICO & DEAN - People These Days
Peak Position on Gaon: 5
Sales: 612,987
(Season 5) Team Dok2&The Quiett Track Mission - Air DoTheQ
Peak Position on Gaon: 5
Sales: 455,171
(Season 5) #Gun feat. Jessi - Crazy Guy
Peak Position on Gaon: 5
Sales: 436,901
(Season 3) BI - BE I
Peak Position on Gaon: 5
Sales: 426,413
(Season 5) #gun feat. Gummy, Mad Clown - Going Home
Peak Position on Gaon: 6
Sales: 433,732
(Season 4) Team Jay Park&Loco Track Mission - RESPECT
Peak Position on Gaon: 6
Sales: 411,916
(Season 6) Nucksal feat. Kim Bum-soo - Filament
Peak Position on Gaon: 6
Sales: 254,964
(Season 3) Bobby feat. Dok2, The Quiett - L4L (Lookin' For Luv)
Peak Position on Gaon: 7
Sales: 400,775
(Season 4) Song Minho feat. ZICO&Paloalto - Moneyflow
Peak Position on Gaon: 7
Sales: 362,442
(Season 7) Team Changmo&The Quiett Track Mission- SaimSaim
Peak Position on Gaon: 7
(Season 5) C Jamm feat.ZICO - Beautiful
Peak Position on Gaon: 8
Sales: 314,516
(Season 6) Killagramz feat. Zico & Dean - Where
Peak Position on Gaon: 8
Sales: 265,774
(Season 6) Nucksal & Jo Woo-chan feat. Gaeko & Don Mills- What You Call Is The Price
Peak Position on Gaon: 8
Sales: 174,664
(Season 7) Loopy feat. Paloalto - Save
Peak Position on Gaon: 8
(Season 4) Song Minho feat. ZICO - Okey Dokey
Peak Position on Gaon: 9
Sales: 659,353
(Season 5) Zion.T & Kush feat. Song Minho - Machine Gun
Peak Position on Gaon: 10
Sales: 339,523
There are many rappers who did not win the competition but achieved chart success. Do you think the criteria for winning the challenge and the chart achievements are the same?
Source: wikipedia


I was inspired by Thomas Mcckeon to write out this 'Impossible List' that is stacked with goals that I wish to accomplish in my life.
Nothing will be removed in order for me to keep track of the things I want to do in life as well as my perspective of life.
Main Focus:
Currently adding (WIP)
thank you for visiting my site


This component is a wrapper around MDC Layout Grid which is a css only component. Read more about grids at Material components documentation
A grid is a container that consists of a group of cells. Grid can define its own max-width or designate its columns to be a certain width. Cells get positioned in sequence according to a predefined number of columns.
The grid has 12 columns in desktop mode (>= 840px), 8 columns in tablet mode (>= 480px), and 4 columns in phone mode (< 480px). Cells specify how many columns to span (the default is 4). Cells are placed side by side until there is no more room, then the next cell is placed at the beginning of the next row.
Margins (the space between the edge of the grid and the edge of the first cell) and gutters (the space between edges of adjacent cells) can be customized on different devices respectively based on design needs. The columns are evenly distributed within the container width, minus the width of all margins and gutters. Layout grids set default margins and gutters to 24px on desktop, 16px on tablet and phone, according to the Material Design spec.
The grid and cells are not styled in any way, serving only for alignment and positioning of elements.
This is a basic layout used with material components:
Equal part with bridge component:
Set fixed-width attribute to true to add class mdc-layout-grid--fixed-column-width to mdc-layout-grid:
To span columns set attributes span, span-desktop, span-tablet and/or span-phone to a numeric value (1-12):
Reorder columns by setting attribute order to a numeric value (1-12):
Align column content by setting attribute align to a string value ("top", "middle", "bottom"):
When your contents need extra structure that cannot be supported by single layout grid, you can nest layout grid within each other. To nest layout grid, add a new mdc-layout-grid-inner element to wrap around nested cells.
cell span ${step}
cell span ${12-step}


The full card track contents should not be stored under any circumstances.
The full card track contents should not be stored to limit the potential damage in the event of a successful attack. The term "track contents" refers to the information stored on the magnetic strip of the physical card issued to a cardholder. New cards also include a chip, the contents of which should be also considered "track contents." If an attacker has this information, he may be able to use it to make fraudulent transactions; therefore, the full track contents should never be stored.
Check the following to make sure that the full track contents are not stored:
Identify the storage mechanism that stores the full track contents, for example a script or a database query. Change the storage mechanism so that it does not record the full track contents.


When someone contacts you though your coworker page, which email address(s) do you want your messages, reservation requests & tour bookings sent to?


We enhance platforms!
- deploy cutting-edge platforms
- engineer ubiquitous metrics
- orchestrate out-of-the-box architectures
- architect 24/7 networks
- enhance rich channels
- leverage ubiquitous users
- incubate end-to-end methodologies
- strategize vertical eyeballs


The idea for this page was inspired from the news about the US open championships, The link to the website is right here. I believe the main reason the page stands out is because of the colorful nature and proper arrangement of the contents, The content provided is apt and promotes the game which is the direct intention of the site. The links to navigate within the website are beautifully hidden in the "Menu" such that it provides more space for the actual content. It is evident from the first look at the site that there are lot more of photos than text or any other content, this is the most brilliant way to make people look at the entire site cause who doesn't like to look at pictures, also you can notice that like all websites, it employs the colors that our brain picks up immediately, blue, red and yellow. I believe the styling and the arrangement makes it look extraordinary.


{{ .Title }}
Last week, the Federal Election Commission (FEC) unveiled their new website at FEC.gov. This new site is the result of a years-long collaboration with GSA’s 18F and features completely revamped tools for exploring campaign finance data. It provides user-centered content for understanding the reporting and compliance requirements for people participating in federal elections, redesigned tools […]


500
The change you wanted was rejected
Maybe you tried to change something you didn't have access to.
Return to
homepage


Created by Ben Attenborough / @WebDesignerBen
Native fonts Vs Self hosted fonts Vs Remote hosted fonts
Native fonts live on the user’s system. Since they are already on the user’s computer they will display instantly. Be careful though, as fonts available on one system may not be available on another. For example the font “Helvetica” is available on OSX (Macs), but not Windows (PCs)
Systems default to one of five generic categories
You can check which fonts are available on each operating system at: http://www.cssfontstack.com/
Because all systems have default fonts for all these categories we should specify them as backup fonts in our “font stack”.
A font stack specifies a list of fonts to use with each subesquent font being a fall back if the previous font was not found
For example:
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
Is an example of a font stack for Helvetica Neue. This typeface in available on modern Macs but may not be available for older ones. If the typeface isn't found we default to Helvetica, then Arial (the Windows equvilent) and finally sans-serif. Check http://www.cssfontstack.com/ for example font stacks.
This is important because when we use our own fonts we still need a font-stack so that the user still gets a useable typeface if ours fails to be delivered for whatever reason.
These are fonts that we install on our server and the user’s browser downloads when they visit the page.
We generally call them using the @font-face
code in our css
Fonts come in a variety of formats:
We mostly want to use woff2 and woff, but may need to provide ttf, eot and svg as fallbacks for very old browsers
@font-face {
font-family: 'MyWebFont';
src: url('myfont.woff2') format('woff2'),
url('myfont.woff') format('woff');
}
body {
font-family: 'MyWebFont', Fallback, sans-serif;
}
Self hosted gives you more control over the fonts you use
More reliable delivery, since you are relying on your server and not someone elses
Get to chose from all the web fonts available in the world
Expensive
Calls for a commitment
Fiddly to setup and get working - requires downloading files, uploading them to your server
An alternative to buying fonts and installing them on your system is to use a remote service. Options include:
Instead of calling the font files from your own server these are called from a seperate service.
 Subscription services cost money - but gives you the chance to play with fonts more
...therefore no commitment
Quick to set up
Baseline
Cap-height
X-height
Type for the moment
Type for long-form reading
Eccentrities amplified when repeated e.g. Bree Vs Calluna
Good x-height: 60-70% of cap height
Low to medium contrast
Distinct letterforms
Full punctuation / extended language as required
Contrast Vs Harmony
Pairing serifs with sans-serifs to create contrast
You might consider using just one typeface and using scale, colour or weight to indicate heirarchy
If you do choose to pair fonts there are some considerations
You want enough contrast to indicate a deliberate difference between typefaces
Pairing two serifs with each other is difficult because the different serif styles tend to clash
Therefore it's common practice to pair serif body text with sans-serif headlines or vice-versa
The most obvious way to indicate heading and subheading priority is through scale
Simply put, the larger the font the more important it is
But there are other ways to establish hierarchy:
Weight
colour
Style
You can style fonts with by simply specifying the size in pixels
BUT: You can also size fonts using ems and rems
An Em is a relative sizing method. 1em is set by the browser to 16px.
You can then use this to set other typographic elements relative to an em.
So we could set our p element to 1.2em then our h1 element to 2em
The advatnage of doing this is that if we ever want to change the size of our p element font the other elements will scale appropriately
This is particularly useful because not all typefaces are the same size. Also we may want to tinker with the text size on different displays
There are two schools of thought about how to size typographic elements in relation to one another
The first school is to do everything by eye. So for example using 16px as a base double the size for a sub head and double again for a headline size and adjust it until it looks right.
The other school suggests using a typographic scale to provide a mathematical base for the scaling of type.
You can find examples of these at: type-scale.com
An old rule from print typography is that the measure (line length) should be between 45 and 75 charcters, so adjust your text boxes to accomodate this length. Ideally aim for something in the mid 60s.
The line height is the distance between lines of text. There is no magic number as to what this should be because it depends on the fonts descenders, ascenders and things like the font weight.
Generally the longer the line length the more line height you need to make it more comfortable for the eye to move between lines of text.
Neglecting measure is super common on websites, but it's easy to fix.
In products like Adobe InDesign there are a host of options to handle hyphenation which don't exist in css.
Because of this is often best to avoid hyphenating text on the web.
Therefore, unless we have a generous measure a left justified / ragged right setting is usually best.
This avoids rivers in our text.
On a desktop people are usually reading text from about an arm's length away.
On a phone or tablet, however we generally read from a closer position.
Therefore we can reduce the font size a bit to compensate. This has the added advantage of increasing our measure slightly.
The measure will always bit a bit short on a mobile, but again we can compenstate by decreasing the line height a bit.


WITNESS LIST State Affairs Committee July 26, 2006 - 9:00A Interim Charge 5 ON: Anderson, Elaine (Texas Hospital Association), Arlington, TX Bailey, Charles (Texas Hospital Association), Austin, TX Bingham, Bill (Texas Department of Insurance), Austin, TX Enochs, Kathy (Group & Pension Administrators, Inc.), Mesquite, TX Francis, Sam (Texas Professional Benefit Administrators Association), Austin, TX Green, Shelton (Texas Association of Business), Austin, TX Haggard, Corey (Texas Ambulatory Surgical Center Society), Lubbock, TX Hickey, James (Texas Association of Health Plans), Missouri City, TX Houston, Ora (Self), Austin, TX Kennedy, Karen (The Medical Clinic of North Texas), Fort Worth, TX Kolodzey, Patricia (Texas Hospital Association), Austin, TX Lemieux, Jeff (America's Health Insurance Plans), Washington, DC Longley, Dianne (Texas Department of Insurance), Austin, TX Luke, Ron (Texas Association of Business), Austin, TX McCandless, Pati (Texas Association of Health Plans and WellPoint/UniCare), Austin, TX Menon, Ramdas (Texas Department of State Health Services), Austin, TX Norwood, Stephen (Texas Ambulatory Surgery Center Society), San Marcos, TX Pate, Matt (United Surgical Partners International), Addison, TX Pollard, Mike (Texas Association of Life and Health Insurers), Austin, TX Rohack, J. James (Texas Medical Association), Temple, TX Savelsbergh, Frederick (Texas Hospital Association), Colleyville, TX Schlotter, William (Texas Medical Group Management Association), Austin, TX Scholl, Catherine (Texas Medical Association), Austin, TX Stanley, Michael (Texas Medical Association), Ft. Worth, TX Thompson, Jay (Texas Association of Life & Health Insurers), Austin, TX Valdez, David (Aetna), San Antonio, TX Williams, Marinan (Legacy Health Plan), San Angelo, TX Interim Charge 9 ON: Lyons, Jim (Texas ambulance Association), Marlin, TX Nethery, Gene (Sabine County), Milam, TX Perkins, Kathryn (Texas Department of State Health Services), Austin, TX Pitts, Randell (Self), Cedar Park, TX Wolfe, Jared (Texas Association of Health Plans), Austin, TX Interim Charge 5 Registering, but not testifying: On: Agnew, Brian (Texas Medical Group Management Association), Austin, TX Crews, Krista (Texas Medical Group Management Association), Austin, TX Moore, John (Texas Medical Group Management Association), Austin, TX Pruden, Shellie (Texas Medical Group Management Association and Dallas County Medical Society), Arlington, TX Thompson, Matthew (Texas Medical Group Management Association), Austin, TX Providing written testimony: On: Arnold, Jim (Trinity Mother Frances Health System), Austin, TX


Current School and Supervisory Union/School District
Date of Best Interest Determination Meeting
{{> bidMeetingAttendees}}
Please list who was consulted and/or who attended a meeting about BID.
{{#each documentsUsedForBid}}
{{key}}
{{/each}}
Name
Role
Contact Info
{{#each attendees}}
{{name}}
{{role}}
{{contactInfo}}
{{/each}}
{{#each considerations}}
Key factors in decision:
{{/each}}
Please summarize the key factors influencing the decision of the team above.
The next steps are:
DCF Social Worker sends supervisor and District Director all materials shared with local school authorities including the case plan and reasons for denial. DCF District Director shall forward this information to DCF Child Protection and Field Operations Director.
The school district shall contact the AOE State Interagency Coordinator, send the same documentation and reasons for denial.


8/17/2020
Houston, TX, USA
Tags: Zen, Vedanta, Meditation, Lankavatara Sutra, Mind-Only, Yoga
While Zen has become quite popular in the West, the tradition of Advaita Vedanta is generally not very well-known. Because the two traditions of spiritual cultivation are so similar I thought I'd compare and contrast them here, just for fun.
I won’t be detailing historical facts. This will primarily look at aspects of the actual practices themselves, with some minor background information for context.
Advaita (non-dual) Vedanta (what comes at the end of the Vedas), often referred to just as Vedanta, is a branch of Hinduism that focuses on non-dualism. Per Vedanta philosophy, the physical world (maya) is an illusion created by the mind and is a result of considering oneself to be separate from the Divine. Once the mind is transcended and the true self is realized (or remembered), an individual returns to Sat-Chit-Ananda (Being-Consciousness-Bliss). When that happens, duality ceases, thus the focus on attaining non-duality.
The most important aspect of each tradition is the application of the "Mind-Only" approach. Both traditions get straight to the crux of all spiritual endeavor and don’t put much focus on outer rituals or activities. The gist of both practices is, “Investigate the mind and it will disappear.” Since the entire physical universe is a creation of the mind, and the limited mind is what continues our ignorance that keeps us from knowing our true Self (God/Buddha Nature), one should go straight to transcending the mind.
Just as the spider emits the thread (of the web) out of itself and again withdraws it into itself, likewise the mind projects the world out of itself and again resolves it into itself. When the mind comes out of the Self, the world appears. Therefore, when the world appears (to be real), the Self does not appear; and when the Self appears (shines) the world does not appear. When one persistently inquires into the nature of the mind, the mind will end leaving the Self (as the residue). What is referred to as the Self is the Atman. The mind always exists only in dependence on something gross; it cannot stay alone. It is the mind that is called the subtle body or the soul (jiva).
Who Am I? - Ramana Maharshi
Bodhidharma also expounded the Mind-Only approach. Legend says that when Bodhidharma named Huike as his successor, he gave him his copy of the Lankāvatāra Sutra and told him that everything he needed to know was in the text. The Lankāvatāra Sutra focuses heavily on the Mind-Only teaching.
I wrote a little bit about the similarity in language of Vedanta texts and the Lankāvatāra Sutra here.
What initially drew my attention to the similarity between Zen and Vedanta is the importance placed on Self-Inquiry. In Vedanta, ātma-vichār is the practice of investigating the mind. This is most commonly done through the question “Who am I?” It’s not a mantra or something to be repeated mechanically, but forms the basis for the actual investigative practice.
The thought ‘who am I?’ will destroy all other thoughts, and like the stick used for stirring the burning pyre, it will itself in the end get destroyed. Then, there will arise Self-realization.
Who Am I? - Ramana Maharshi
In Zen, there is a practice called “Hua Tou”, which focuses on employing questioning like “Who am I?”, “Who is repeating the Buddha’s name?” and “What was my Original Face before my father and mother were born?” The late Master Hsuan Hua refers to the practice of investigating the mind as “Investigating Chan”.
The goal of investigating Chan is to understand the mind and see the true nature. That is, to remove all the defilements in our minds and to actually see the image of our self-nature. Defilements refer to false thoughts and attachments, while the self-nature refers to our inherent wisdom and virtue, which is identical to that of all Buddhas. The Thus Come Ones’ wisdom and virtue is embodied within all Buddhas and sentient beings and is not dual or different.
https://terebess.hu/zen/mesterek/Hsuan-Hua-Chan-Handbook.pdf
The point is the same: when you turn the mind in on itself, it disappears and your True Nature shines. It should be noted that the questioning eventually falls away and only silence remains. At the highest level, the questioning isn’t needed anymore since the illusion of the mind is gone.
Hinduism has three overall paths for attaining Self-realization: "Jñāna Yoga" (Path of Knowledge), "Bhakti Yoga" (Path of Devotion) and "Karma Yoga" (Path of Action).
Jñāna Yoga is done primarily through the practice of self-inquiry.
Bhakti Yoga focuses on devotional practices with the aim of one’s devotion becoming so deep that the subject forgets any separation between themself and the object - the Divine. The focus of the devotion is on whatever form most appeals to the individual, such as Krishna, Shiva or Kāli Mā. In Buddhism, the devotion is usually towards a Buddha or Bodhisattva, such as Śakyamuni Buddha, Amitābha Buddha or Avalokiteśvāra Bodhisattva. Bhakti Yoga is generally the focus of most religions.
Karma Yoga focuses on serving the Divine through actions that serve humanity, since serving humanity is serving God. The focus is to give up all thought that one is the “doer” of the actions and see oneself as a vehicle of service for the will of the Divine. Performing actions this way is a means of purifying oneself and gradually eliminating the egoic self. This can be compared to the ideal of the Bodhisattva - one who sacrifices themself to serve others. A Bodhisattva is often seen is a highly advanced spiritual being that puts off final enlightenment in order to aid sentient beings, but a Bodhisattva can also be any being who gives themself up to the service others.


HP Spectre x360 2019 is already $200 cheaper ahead of Black Friday at Best Buy
by Bill ThomasHP Spectre x360 2019 is already $200 cheaper ahead of Black Friday at Best Buy
Get a sleek 2-in-1 for cheap at Best Buy
(Image credit: Future)
The HP Spectre x360 has always been a premium device with an appropriately premium price tag. The elegant build quality, fast performance and convenient 2-in-1 design has always ranked highly with us at TechRadar, and you can save big on this excellent laptop with this early Best Buy Black Friday deal.
This Black Friday laptop deal slashes $200 off of the HP Spectre x360 2019, which only launched back in September. That means you can get this premium 2-in-1 laptop for just $1,099, a price that's absolutely worth it for the laptop you're getting.
The HP Spectre x360 is easily one of the best laptops in the world, especially with the 2019 redesign. Packed with an Intel Ice Lake processor and one of the most beautiful screens in the game, this $200 discount at Best Buy is a fantastic bargain.View Deal
The 2019 version of the HP Spectre x360 is a beast of a laptop, as it's packed with an Intel Ice Lake processor – which means excellent graphics performance and battery life. It's also got one of the best displays we've ever seen, along with a tiny webcam up in the top bezel. This is all topped off with an extremely comfy keyboard.
Basically, if you're after a 2-in-1 laptop that can power through all of your daily tasks, this Spectre x360 should be near the top of your list, especially when you can save $200 off the list price.
- TechRadar is scouring every retailer and rounding up all the top deals over the Black Friday period, and we’ve put all the best Black Friday deals and Cyber Monday deals in easy-to-navigate articles to help you find the bargains you’re looking for.


Tags
Selection
Feed language
English
French
German
Italian
Korean
Portuguese (Br)
Spanish
Traditional Chinese (HK)


Beyond the Basics: Extensions and Software Development¶
We have presented one way of thinking about automatic differentiation and the graph structure of functions which underly the computations in both forward and reverse mode. This section includes another way of thinking about automatic differentiation through dual numbers and considerations about how to implement automatic differentiation in software.
The Dual Numbers¶
Another way to think about automatic differentiation is through the dual numbers. Like complex numbers, which are written a+bi with real and imaginary part, we write the dual numbers as \(a+b\epsilon\) with real and dual part. Similarly to the imaginary numbers where \(i^2 = -1\), we have \(\epsilon^2=0\) for the dual numbers. Note that \(\epsilon\) is not equal to zero, but is a nonreal constant defined by this property. We will now see why this is useful when we consider the relationship between the dual numbers and differentiation.
Consider the function y=x^2 whose derivative we know to be 2x. Let’s evaluate y at the dual number \(a+b\epsilon\).
By the property of \(\epsilon\), this is just the dual number \(a^2+2ab\epsilon\). Taking b=1, the real part of the dual number y is the function y evaluated at x=a and the dual part of the dual number y is the derivative of y evaluated at x=a.
Let’s consider a second example. This time let \(y=sin(x)\). Again, let’s evaluate at \(x=a+b\epsilon\). Using the angle addition formula,
To further simplify this expression, we can write \(sin(b\epsilon)\) and \(cos(b\epsilon)\) as Taylor series.
By the property of epsilon, powers of epsilon greater than 2 are 0, giving us \(sin(b\epsilon) = \epsilon b\) and \(cos(b\epsilon) = 1\). Substituting these expressions back into y, we have \(y = sin(a)+cos(a)b\epsilon\), and as in the previous example, the real part is the function evaluated at a and the dual component is the derivative evaluated at a.
Toward Software Implementation¶
In our discussion of automatic differentiation, we noted that automatic differentiation is possible because functions can be decomposed into elementary functions whose derivatives we know explicitly. Implementing this in software requires code so that these known derivatives are coded as part of the function. We can do this through operator overloading.
In operator overloading, we use different implementation of operators depending on the class of the object that is being operated on. This can be done easily in Python by redefining the dunder methods for basic operations (i.e., __add__, __radd__, __pow__, __rpow__, etc.) for a class of automatic differentiation objects.
We can see an example of operator overloading in rewriting addition for a class defined for complex numbers.
In our computational tables, we saw that each node of the graph in foward mode had a function evaluation and a derivative component, similar to the dual numbers. We can use operator overloading to specify how the different elementary operations and functions act on these two components to produce a new node with a function evaluation and derivative.
Exercises¶
Exercise 1: Dual Numbers¶
Using the dual numbers, find the derivative of \(y=e^{x^2}\). Note that you will need to use Taylor series.
Exercise 2: Toy AD Example¶
Write a forward mode automatic differentiation class capable of handling functions composed of addition and multiplication operations. The class AutoDiffToy should return the value and derivative of functions of the form \(f(x)=\alpha x+\beta\) for \(\alpha , \beta\) real constants.
Some thoughts on implementation: * The constructor should set the value of the function and the derivative. This is similar to the first row in the computational tables. * Overload operations as appropriate. Note that Python’s __add__(self, other) and __mul__(self, other) methods are meant to be defined for objects of the same type, so your implementation should not assume that other is a real number but be robust enough to handle the case where it is. * Handle exceptions appropriately. You may want to use duck-typing, where ratehr than checking if an argument to a special method is an instance of the object, you instead use a try-except blcok and catch an AttributeError. * Make your implementation robust encough to handle functions written as \(f = alpha*x+beta, f=x*alpha+beta, f=beta+alpha*x, f=beta+x*alpha\).
Example Use Case:


| GTK+ 2.0 Tutorial using Ocaml | ||
|---|---|---|
| <<< Previous | Scribble, A Simple Example Drawing Program | Next >>> |
We now turn to the process of drawing on the screen. The widget we use for this is the DrawingArea widget. A drawing area widget is essentially an X window and nothing more. It is a blank canvas in which we can draw whatever we like. A drawing area is created using the call:
val GMisc.drawing_area : ?width:int -> ?height:int -> ?packing:(GObj.widget -> unit) -> ?show:bool -> unit -> drawing_area |
The arguments width and height specifies the default size of the drawing area.
The default size can be overridden, as is true for all widgets, by calling misc#set_size_request method, and that, in turn, can be overridden if the user manually resizes the the window containing the drawing area.
It should be noted that when we create a DrawingArea widget, we are completely responsible for drawing the contents. If our window is obscured then uncovered, we get an exposure event and must redraw what was previously hidden.
Having to remember everything that was drawn on the screen so we can properly redraw it can, to say the least, be a nuisance. In addition, it can be visually distracting if portions of the window are cleared, then redrawn step by step. The solution to this problem is to use an offscreen backing pixmap. Instead of drawing directly to the screen, we draw to an image stored in server memory but not displayed, then when the image changes or new portions of the image are displayed, we copy the relevant portions onto the screen.
To create an offscreen pixmap, we call the function:
val GDraw.pixmap : width:int -> height:int -> ?mask:bool -> ?window:< misc : #misc_ops; .. > -> ?colormap:Gdk.colormap -> unit -> pixmap |
The window parameter specifies a GDK window that this pixmap takes some of its properties from. width and height specify the size of the pixmap. colormap tells the color depth, that is the number of bits per pixel, for the new window. If the colormap is not specified, default_colormap() is used.
We create the pixmap in our "configure" handler. This event is generated whenever the window changes size, including when it is originally created.
(* Backing pixmap for drawing area *) let backing = ref (GDraw.pixmap ~width:200 ~height:200 ()) (* Create a new backing pixmap of the appropriate size *) let configure window backing ev = let width = GdkEvent.Configure.width ev in let height = GdkEvent.Configure.height ev in let pixmap = GDraw.pixmap ~width ~height ~window () in pixmap#set_foreground `WHITE; pixmap#rectangle ~x:0 ~y:0 ~width ~height ~filled:true (); backing := pixmap; true |
The call to rectangle method clears the pixmap initially to white. We'll say more about that in a moment.
Our exposure event handler then simply copies the relevant portion of the pixmap onto the screen (we determine the area we need to redraw by using GdkEvent.Expost.area method to the exposure event):
(* Redraw the screen from the backing pixmap *) let expose (drawing_area:GMisc.drawing_area) (backing:GDraw.pixmap ref) ev = let area = GdkEvent.Expose.area ev in let x = Gdk.Rectangle.x area in let y = Gdk.Rectangle.y area in let width = Gdk.Rectangle.width area in let height = Gdk.Rectangle.width area in let drawing = drawing_area#misc#realize (); new GDraw.drawable (drawing_area#misc#window) in drawing#put_pixmap ~x ~y ~xsrc:x ~ysrc:y ~width ~height !backing#pixmap; false |
We've now seen how to keep the screen up to date with our pixmap, but how do we actually draw interesting stuff on our pixmap? There are a large number of calls in GTK's GDK library for drawing on drawables. A drawable is simply something that can be drawn upon. It can be a window, a pixmap, or a bitmap (a black and white image). We've already seen two such calls above, rectangle and put_pixmap methods. The some of them are: see GDraw.drawable
method arc : x:int -> y:int -> width:int -> height:int -> ?filled:bool -> ?start:float -> ?angle:float -> unit -> unit method line : x:int -> y:int -> x:int -> y:int -> unit method point : x:int -> y:int -> unit method polygon : ?filled:bool -> (int * int) list -> unit method rectangle : x:int -> y:int -> width:int -> height:int -> ?filled:bool -> unit -> unit method string : string -> font:Gdk.font -> x:int -> y:int -> unit method points : (int * int) list -> unit method lines : (int * int) list -> unit method segments : ((int * int) * (int * int)) list -> unit method put_layout : x:int -> y:int -> ?fore:color -> ?back:color -> Pango.layout -> unit method put_image : x:int -> y:int -> ?xsrc:int -> ?ysrc:int -> ?width:int -> ?height:int -> Gdk.image -> unit method put_pixmap : x:int -> y:int -> ?xsrc:int -> ?ysrc:int -> ?width:int -> ?height:int -> Gdk.pixmap -> unit method put_rgb_data : width:int -> height:int -> ?x:int -> ?y:int -> ?dither:Gdk.Tags.rgb_dither -> ?row_stride:int -> Gpointer.region -> unit method put_pixbuf : x:int -> y:int -> ?width:int -> ?height:int -> ?dither:Gdk.Tags.rgb_dither -> ?x_dither:int -> ?y_dither:int -> ?src_x:int -> ?src_y:int -> GdkPixbuf.pixbuf -> unit |
All of these functions uses graphics context (GC). A graphics context encapsulates information about things such as foreground and background color and line width. GDK has a full set of functions for creating and modifying graphics contexts. GDraw.drawable has the default GC and you can change it using:
method set_background : color -> unit method set_foreground : color -> unit method set_clip_region : Gdk.region -> unit method set_clip_origin : x:int -> y:int -> unit method set_clip_mask : Gdk.bitmap -> unit method set_clip_rectangle : Gdk.Rectangle.t -> unit method set_line_attributes : ?width:int -> ?style:Gdk.GC.gdkLineStyle -> ?cap:Gdk.GC.gdkCapStyle -> ?join:Gdk.GC.gdkJoinStyle -> unit -> unit |
Our function draw_brush, which does the actual drawing on the screen, is then:
(* Draw a rectangle on the screen *) let draw_brush (area:GMisc.drawing_area) (backing:GDraw.pixmap ref) x y = let x = x - 5 in let y = y - 5 in let width = 10 in let height = 10 in let update_rect = Gdk.Rectangle.create ~x ~y ~width ~height in !backing#set_foreground `BLACK; !backing#rectangle ~x ~y ~width ~height ~filled:true (); area#misc#draw (Some update_rect) |
After we draw the rectangle representing the brush onto the pixmap, we call the method:
method misc#draw : Gdk.Rectangle.t option -> unit |
which notifies X that the given area needs to be updated. X will eventually generate an expose event (possibly combining the areas passed in several calls to misc#draw) which will cause our expose event handler to copy the relevant portions to the screen.
We have now covered the entire drawing program except for a few mundane details like creating the main window.
| <<< Previous | Home | Next >>> |
| Event Handling | Up | Contributing |


Please wait...
Reload the page (F5) to start over.
Left/Right/A/D = Movement
Tab = beam up/down from UFO
Space (hold down) = give speech or fire UFO laser to collect human-suit
Green bar = voters for the Reptilian Illuminati Party
Red bar = voters for the Grand Ancients Party
Blue bar = voters for the Demopublican SuperPAX Party
Brown bar = The durability of your human-suit; if it drops too low you'll be seen as a reptilian
Orange bar = The level of fear among the citizens
To win: Get over 50% of the vote for the Reptilian Illuminati Party (green)!
Version 1.0 was originally developed in 48 hours for the Ludum Dare 35 game jam (theme "Shapeshift") and Low Rez Jam (64x64 px)
by Luke Nickerson
@deathraygames
using the
RocketBoots web game starter kit
© 2016


| Total net profit | -7.39 | Gross profit | 3.72 | Gross loss | -11.11 |
| Profit factor | 0.33 | Expected payoff | -0.62 | ||
| Absolute drawdown | -7.39 | Maximal drawdown (%) | 9.14 (522.29%) | ||
| Total trades | 12 | Profit trades (% of total) | 3 (25.0%) | Loss trades (% of total) | 9 (75.0%) |
| Long positions (won %) | 6 (16.67%) | Short positions (won %) | 6 (33.33%) | ||
| Largest | profit trade | 2.46 | loss trade | -2.66 | |
| Average | profit trade | 1.24 | loss trade | -1.23 | |
| Minimum | profit trade | 0.32 | loss trade | -0.56 | |
| Maximum | take profit in pips | 74.8 | stop loss in pips | -76.3 | |
| Average | take profit in pips | 34.0 | stop loss in pips | -34.1 | |
| Minimum | take profit in pips | -18.2 | stop loss in pips | -14.8 | |
| Maximum | Reward-Risk | 3.4 | Duration in minutes | 293 | |
| Average | Reward-Risk | 1.4 | Duration in minutes | 62.5 | |
| Minimum | Reward-Risk | 0.0 | Duration in minutes | 0 | |
| Maximum | consecutive wins (profit in money) | 1.0 (0.94) | consecutive losses (loss in money) | 6.0 (-7.4) | |
| Average | consecutive wins | 1.0 | consecutive losses | 3.0 |
| Total net profit | -6.82 | Gross profit | 0.94 | Gross loss | -7.76 |
| Profit factor | 0.12 | Expected payoff | -1.14 | ||
| Absolute drawdown | -6.82 | Maximal drawdown (%) | 7.76 (825.53%) | ||
| Total trades | 6 | Profit trades (% of total) | 1 (16.67%) | Loss trades (% of total) | 5 (83.33%) |
| Largest | profit trade | 0.94 | loss trade | -2.66 | |
| Average | profit trade | 0.94 | loss trade | -1.55 | |
| Minimum | profit trade | 0.94 | loss trade | -0.7 | |
| Maximum | take profit in pips | 71.5 | stop loss in pips | -76.3 | |
| Average | take profit in pips | 28.6 | stop loss in pips | -42.4 | |
| Minimum | take profit in pips | -18.2 | stop loss in pips | -20.8 | |
| Maximum | Reward-Risk | 3.4 | Duration in minutes | 293.0 | |
| Average | Reward-Risk | 1.1 | Duration in minutes | 104.2 | |
| Minimum | Reward-Risk | 0.0 | Duration in minutes | 17.0 | |
| Maximum | consecutive wins (profit in money) | 1.0 (0.94) | consecutive losses (loss in money) | 5.0 (-7.76) | |
| Average | consecutive wins | 1.0 | consecutive losses | 5.0 |
| Total net profit | -0.57 | Gross profit | 2.78 | Gross loss | -3.35 |
| Profit factor | 0.83 | Expected payoff | -0.1 | ||
| Absolute drawdown | -0.57 | Maximal drawdown (%) | 3.03 (123.17%) | ||
| Total trades | 6 | Profit trades (% of total) | 2 (33.33%) | Loss trades (% of total) | 4 (66.67%) |
| Largest | profit trade | 2.46 | loss trade | -1.06 | |
| Average | profit trade | 1.39 | loss trade | -0.84 | |
| Minimum | profit trade | 0.32 | loss trade | -0.56 | |
| Maximum | take profit in pips | 74.8 | stop loss in pips | -31.3 | |
| Average | take profit in pips | 39.4 | stop loss in pips | -25.7 | |
| Minimum | take profit in pips | 9.3 | stop loss in pips | -14.8 | |
| Maximum | Reward-Risk | 3.4 | Duration in minutes | 63.0 | |
| Average | Reward-Risk | 1.7 | Duration in minutes | 20.8 | |
| Minimum | Reward-Risk | Duration in minutes | 0.0 | ||
| Maximum | consecutive wins (profit in money) | 1.0 (2.46) | consecutive losses (loss in money) | 2.0 (-1.29) | |
| Average | consecutive wins | 1.0 | consecutive losses | 2.0 |


Deletes data blobs and associated metadata.
get(bucket, object, projection=None)
Retrieves objects or their associated metadata.
get_media(bucket, object, projection=None)
Retrieves objects or their associated metadata.
insert(bucket, body=None, media_body=None, name=None, projection=None)
Stores new data blobs and associated metadata.
insert_media(bucket, body=None, media_body=None, name=None, projection=None)
Stores new data blobs and associated metadata.
list(bucket, projection=None, pageToken=None, delimiter=None, prefix=None, max_results=None)
Retrieves a list of objects matching the criteria.
list_next(previous_request, previous_response)
Retrieves the next page of results.
patch(bucket, object, body, projection=None)
Updates a data blob's associated metadata. This method supports patch semantics.
update(bucket, object, body, projection=None)
Updates a data blob's associated metadata.
update_media(bucket, object, body, projection=None)
Updates a data blob's associated metadata.
delete(bucket, object)
Deletes data blobs and associated metadata. Args: bucket: string, Name of the bucket in which the object resides. (required) object: string, Name of the object. (required)
get(bucket, object, projection=None)
Retrieves objects or their associated metadata. Args: bucket: string, Name of the bucket in which the object resides. (required) object: string, Name of the object. (required) projection: string, Set of properties to return. Defaults to no_acl. Allowed values full - Include all properties. no_acl - Omit the acl property. Returns: An object of the form: { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, }
get_media(bucket, object, projection=None)
Retrieves objects or their associated metadata. Args: bucket: string, Name of the bucket in which the object resides. (required) object: string, Name of the object. (required) projection: string, Set of properties to return. Defaults to no_acl. Allowed values full - Include all properties. no_acl - Omit the acl property. Returns: The media object as a string.
insert(bucket, body=None, media_body=None, name=None, projection=None)
Stores new data blobs and associated metadata. Args: bucket: string, Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. (required) body: object, The request body. The object takes the form of: { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, } media_body: string, The filename of the media request body, or an instance of a MediaUpload object. name: string, Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. projection: string, Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full. Allowed values full - Include all properties. no_acl - Omit the acl property. Returns: An object of the form: { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, }
insert_media(bucket, body=None, media_body=None, name=None, projection=None)
Stores new data blobs and associated metadata. Args: bucket: string, Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. (required) body: object, The request body. The object takes the form of: { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, } media_body: string, The filename of the media request body, or an instance of a MediaUpload object. name: string, Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. projection: string, Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full. Allowed values full - Include all properties. no_acl - Omit the acl property. Returns: The media object as a string.
list(bucket, projection=None, pageToken=None, delimiter=None, prefix=None, max_results=None)
Retrieves a list of objects matching the criteria. Args: bucket: string, Name of the bucket in which to look for objects. (required) projection: string, Set of properties to return. Defaults to no_acl. Allowed values full - Include all properties. no_acl - Omit the acl property. pageToken: string, A previously-returned page token representing part of the larger set of results to view. delimiter: string, Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted. prefix: string, Filter results to objects whose names begin with this prefix. max_results: integer, Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested. Returns: An object of the form: { # A list of objects. "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results. "items": [ # The list of items. { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, }, ], "kind": "storage#objects", # The kind of item this is. For lists of objects, this is always storage#objects. "prefixes": [ # The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter. "A String", ], }
list_next(previous_request, previous_response)
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(bucket, object, body, projection=None)
Updates a data blob's associated metadata. This method supports patch semantics. Args: bucket: string, Name of the bucket in which the object resides. (required) object: string, Name of the object. (required) body: object, The request body. (required) The object takes the form of: { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, } projection: string, Set of properties to return. Defaults to full. Allowed values full - Include all properties. no_acl - Omit the acl property. Returns: An object of the form: { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, }
update(bucket, object, body, projection=None)
Updates a data blob's associated metadata. Args: bucket: string, Name of the bucket in which the object resides. (required) object: string, Name of the object. (required) body: object, The request body. (required) The object takes the form of: { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, } projection: string, Set of properties to return. Defaults to full. Allowed values full - Include all properties. no_acl - Omit the acl property. Returns: An object of the form: { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, }
update_media(bucket, object, body, projection=None)
Updates a data blob's associated metadata. Args: bucket: string, Name of the bucket in which the object resides. (required) object: string, Name of the object. (required) body: object, The request body. (required) The object takes the form of: { # An object. "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object. "name": "A String", # The name of this object. Required if not specified by URL parameter. "contentLanguage": "A String", # Content-Language of the object data. "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part. "contentType": "A String", # Content-Type of the object data. "timeCreated": "A String", # Creation time of the data in RFC 3339 format. "algorithm": "A String", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided. "length": "A String", # Content-Length of the data in bytes. "link": "A String", # Media download link. "hash": "A String", # Hash of the data. Required if a hash algorithm is provided. "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted. }, "bucket": "A String", # The bucket containing this object. "contentEncoding": "A String", # Content-Encoding of the object data. "selfLink": "A String", # The link to this object. "owner": { # The owner of the object. This will always be the uploader of the object. "entityId": "A String", # The ID for the entity. "entity": "A String", # The entity, in the form user-userId. }, "cacheControl": "A String", # Cache-Control directive for the object data. "acl": [ # Access controls on the object. { # An access-control entry. "domain": "A String", # The domain associated with the entity, if any. "object": "A String", # The name of the object. "bucket": "A String", # The name of the bucket. "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl. "id": "A String", # The ID of the access-control entry. "role": "A String", # The access permission for the entity. Can be READER or OWNER. "entityId": "A String", # The ID for the entity, if any. "entity": "A String", # The entity holding the permission, in one of the following forms: # - user-userId # - user-email # - group-groupId # - group-email # - allUsers # - allAuthenticatedUsers "email": "A String", # The email address associated with the entity, if any. "selfLink": "A String", # The link to this access-control entry. }, ], "id": "A String", # The ID of the object. "contentDisposition": "A String", # Content-Disposition of the object data. "metadata": { # User-provided metadata, in key/value pairs. "a_key": "A String", # An individual metadata entry. }, } projection: string, Set of properties to return. Defaults to full. Allowed values full - Include all properties. no_acl - Omit the acl property. Returns: The media object as a string.


---
layout: post
title: ATECC508A Embedded Crypto - AWS costs
date: '2017-10-24T12:27:00.000-07:00'
author: gojimmypi
tags:
modified_time: '2017-11-19T18:35:19.026-08:00'
thumbnail: https://4.bp.blogspot.com/-WLwnk9VFdXA/We-QnraKZuI/AAAAAAAAAtQ/osWYa9aKXYkF7KqpZdyWpjH78YBMQs4WACLcBGAs/s72-c/charges.JPG
blogger_id: tag:blogger.com,1999:blog-4109066286647243251.post-3159515213943499269
blogger_orig_url: https://gojimmypi.blogspot.com/2017/10/atecc508a-embedded-crypto-aws-costs.html
---
TL;DR;
Dont leave aws_interact_gui.py running!
In my previous post, I wrote about my
first impressions setting up AWS
.
This is just a quick blog post to show my crazy AWS charges after just a few days. Actually, not so much the cost, but the number of messages:
Note that my AWS
IoT monitor has recorded less than 20 connections.
Also on that page, just a bit further down - shows I've only published a few hundred messages:
And only 2 rules executed:
Yet somehow, I've been charged for hundreds of thousands of "messages". The curious thing, is they are listed under the "Shadow Message".
So ok - 2 bucks is not a big deal... but scale that for more devices and more than a few days - and the costs get out of hand really rather quickly.
I've posted a
message on the AWS forum
requesting help in understanding these charges. I'm wondering if simply launching the shadow monitoring page... if there's perhaps there are repeated messages from the browser to my device such as this shadow monitor:
I've contacted AWS billing, but they have "limited access" to give me any more details as to exactly how those hundreds of thousands of messages occurred.
Fortunately, the folks at Microchip are super responsive. I had an answer within hours! (Thanks, Ben!) The forum answer copied here:
The demo GUI (aws_interact_gui.py), polls the GetThingShadow (http://docs.aws.amazon.com/iot/latest/developerguide/API_GetThingShadow.html
) API function to show the current shadow state. However, if left running, its polling period of 500ms could incur a lot of messages.
This polling method was not intended to be an example of how an IoT system would interact with the devices, but just a quick and easy way to display the state. Typically, one would use the IoT rules engine to trigger other actions within AWS:http://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html
We're looking into changing how this script works so leaving it running doesn't create so many messages.
So the super important take-away here is to NOT leave the aws_interact_gui.py running
(at least not until updated)! At 500ms intervals (2 per second), that would be 31*24*60*60*2 = 5,356,800 messages per month! Even at $5 per million messages, that's $30 a month just to leave the diagnostic app running.
Stay tuned... I'm now digging into the RTOS code which is really quite interesting :)
Copyright (c) gojimmypi all rights reserved. Blogger Image Move Cleaned: 5/3/2021 1:35:53 PM


A short title of your website, for example "My lovely website". This will be used as the title of the link that is displayed in the top left corner of the customer interface to enable them to return to your website.
URL of your website, for example "http://www.yourwebsite.com". Make sure this is a valid URL and you start it with either http:// or https:// . This will be used as the URL of the link that is be displayed in top left corner of customer interface and enable them to return to your website.
Default webmaster email address. Make sure you enter a valid email address, it can be the same as Support email.
Your "From:" email address. This is the email address that will be shown as email sender (From: header) in all emails sent by HESK. Usually it is an email you don't read and don't reply to. Make sure you enter a valid email address, it can be the same as Support email but it is recommended to use a different one.
This is the name that will be shown as email sender (From:) in all emails sent by HESK. If no name is set the email From: header will only show your From: email address.
If you have several languages installed for Hesk this will be the default language. All properly installed languages are displayed in the drop-down box. Please refer to the readme.html file for instructions on how to install more languages. The "Test language folder" link will help you troubleshoot non-working language installations.
If multiple languages are enabled you can set your preferred language on the "Profile" page.
Enabling this setting will allow your users and staff to choose their preferred language from the list of installed languages. Do not enable this feature unless you provide support in all of the installed languages!
Database host server, "localhost" works for most users. Do NOT change this unless you know what your MySQL host is. Ask your hosting company if not sure or if you are having problems connecting to the MySQL database.
The name of your MySQL database. You should create one in your web hosting control panel or ask your hosting company for this info.
The username you use to connect to your MySQL database. You should create a MySQL user in your web hosting control panel or ask your hosting company for this info
The password you use to connect to MySQL database. You should create a MySQL user in your web hosting control panel or ask your hosting company for this info
The prefix that will be added to all table names. If set to hesk_ table "users" will actually be named "hesk_users" in your database. This is useful if you want to run multiple installs of Hesk using one MySQL database, just give each install a unique table prefix name (hesk1_, hesk2_, hesk3_, ...)


Daniel Niknam
Senior Backend Developer
About Me
A skilled and self-educated developer with more than 10 years of experience in web development, building a range of advanced applications using Ruby and PHP. An experienced technical leader with good communication skills and enthusiasm for learning. The fine knowledge of project lifecycle makes me a good candidate for implementing applications from design to deploy.
- ResidenceAustralia
- Working at Envato


Nigeria Begins Issuance Of E-passport In Tokyo, South Korea
He said this was done in a bid to further expand the service's operations and the delivery abroad.
by SaharaReporters, New YorkThe Nigeria Immigration Service has inaugurated two more passport and biometric visa facilities in Tokyo, Japan; and Seoul, South Korea.
Public Relations Officer of the NIS, Mr Sunday James, disclosed this in a statement on Friday in Abuja.
James said the operation desks were inaugurated by the Minister of Interior, Rauf Aregbesola, on November 21, 2019.
He said this was done in a bid to further expand the service's operations and the delivery abroad.
According to him, the Comptroller-General, NIS, Muhammad Babandede, wishes to inform the general public that these facilities are expected to start attending to passport and visa applications with immediate effect.


JASPAR is an open-access and widely used database of manually curated, non-redundant transcription factor (TF) binding profiles stored as position frequency matrices (PFM) and transcription factor flexible models (TFFM) for TFs from species in six taxonomic groups.
Source: Extract from JASPAR about page [2019/10/30]
This plugin is developed by Aziz Khan from JASPAR consortium.
Example queries: 'SPI1', 'MA0466', 'CTCF', 'SMAD3'


|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
| Class Summary | |
|---|---|
| BaseEventEntry<E extends BaseEventEntry<E>> | Customizes the base entry to define an event entry. |
| BaseEventEntry.EventStatus | Defines the base set of values for event status. |
| BaseEventEntry.Transparency | Defines the base set of values for event transparency. |
| BaseEventEntry.Visibility | Defines the base set of values for event visibility. |
| BaseEventFeed<F extends BaseEventFeed<F,E>,E extends BaseEventEntry<E>> | Customizes the base feed class to define a feed of events. |
| Comments | GData schema extension describing a comments feed. |
| Deleted | GData schema extension element for indicating a deleted element (tombstone). |
| GData schema extension describing an email address. | |
| Email.Rel | The email type. |
| EntryLink<E extends BaseEntry<?>> | The EntryLink class defines the object model for a link entity that refers to a GData entry. |
| EventEntry | Extension class for manipulating entries of the Event kind. |
| EventFeed | The EventFeed class customizes the generic event feed class to define a feed of events. |
| ExtendedProperty | GData schema extension describing an entity's auxiliary property. |
| ExtendedProperty.Realm | Limits on where the extended property applies. |
| FeedLink<F extends BaseFeed<?,?>> | The FeedLink class defines the object model for a link entity that refers to a GData feed. |
| GeoPt | Deprecated. Use com.google.gdata.data.geo.impl package. |
| Im | Describes an instant messaging address. |
| Im.Protocol | Im protocol. |
| Im.Rel | Im type. |
| Image | GData schema extension describing an image. |
| Image.Rel | Image type. |
| Labels | A utility aggregating gdata common data entry labels |
| LastModifiedBy | The user who last modified the object. |
| LastViewed | The time the object was last viewed. |
| MessageEntry | Extension class for manipulating entries of the Message kind. |
| MessageFeed | The Message class customizes the generic BaseEntry class to define a feed of Message entries. |
| Money | Describes money. |
| Organization | Describes an organization (like Company). |
| Organization.Rel | Organization type. |
| OrgDepartment | Department in the organization. |
| OrgJobDescription | Job description. |
| OrgName | Name of organization. |
| OrgSymbol | Organization symbol/ticker. |
| OrgTitle | Position in organization. |
| OriginalEvent | GData schema extension describing a link to a recurring event. |
| PhoneNumber | GData schema extension describing a phone number. |
| PhoneNumber.Rel | The phone number type. |
| PostalAddress | GData schema extension describing a postal address. |
| PostalAddress.Rel | The postal address type. |
| QuotaBytesUsed | The amount of quota consumed by the object. |
| Rating | GData schema extension describing an object's rating. |
| Rating.Rel | Rating type. |
| Recurrence | GData schema extension describing an RFC 2445 recurrence rule. |
| RecurrenceException | GData schema extension describing individual exceptions to a recurring event. |
| Reminder | GData schema extension describing a reminder on an event. |
| ResourceId | Resource ID is the unique identifier of an entry within a given scope implied from the entry type. |
| When | GData schema extension describing a period of time. |
| Where | GData schema extension describing a place (not necessarily a specific geographical location). |
| Where.Rel | Relation type. |
| Who | GData schema extension describing a person. |
| Who.AttendeeStatus | Status of event attendee. |
| Who.AttendeeType | Type of event attendee. |
| Who.Rel | Relation type. |
| Enum Summary | |
|---|---|
| Reminder.Method |
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |