|
mbed TLS v2.16.11
|
This file contains GCM definitions and functions. More...
Go to the source code of this file.
Data Structures | |
| struct | mbedtls_gcm_context |
| The GCM context structure. More... | |
Macros | |
| #define | MBEDTLS_GCM_ENCRYPT 1 |
| #define | MBEDTLS_GCM_DECRYPT 0 |
| #define | MBEDTLS_ERR_GCM_AUTH_FAILED -0x0012 |
| #define | MBEDTLS_ERR_GCM_HW_ACCEL_FAILED -0x0013 |
| #define | MBEDTLS_ERR_GCM_BAD_INPUT -0x0014 |
Typedefs | |
| typedef struct mbedtls_gcm_context | mbedtls_gcm_context |
| The GCM context structure. More... | |
Functions | |
| void | mbedtls_gcm_init (mbedtls_gcm_context *ctx) |
| This function initializes the specified GCM context, to make references valid, and prepares the context for mbedtls_gcm_setkey() or mbedtls_gcm_free(). More... | |
| int | mbedtls_gcm_setkey (mbedtls_gcm_context *ctx, mbedtls_cipher_id_t cipher, const unsigned char *key, unsigned int keybits) |
| This function associates a GCM context with a cipher algorithm and a key. More... | |
| int | mbedtls_gcm_crypt_and_tag (mbedtls_gcm_context *ctx, int mode, size_t length, const unsigned char *iv, size_t iv_len, const unsigned char *add, size_t add_len, const unsigned char *input, unsigned char *output, size_t tag_len, unsigned char *tag) |
| This function performs GCM encryption or decryption of a buffer. More... | |
| int | mbedtls_gcm_auth_decrypt (mbedtls_gcm_context *ctx, size_t length, const unsigned char *iv, size_t iv_len, const unsigned char *add, size_t add_len, const unsigned char *tag, size_t tag_len, const unsigned char *input, unsigned char *output) |
| This function performs a GCM authenticated decryption of a buffer. More... | |
| int | mbedtls_gcm_starts (mbedtls_gcm_context *ctx, int mode, const unsigned char *iv, size_t iv_len, const unsigned char *add, size_t add_len) |
| This function starts a GCM encryption or decryption operation. More... | |
| int | mbedtls_gcm_update (mbedtls_gcm_context *ctx, size_t length, const unsigned char *input, unsigned char *output) |
| This function feeds an input buffer into an ongoing GCM encryption or decryption operation. More... | |
| int | mbedtls_gcm_finish (mbedtls_gcm_context *ctx, unsigned char *tag, size_t tag_len) |
| This function finishes the GCM operation and generates the authentication tag. More... | |
| void | mbedtls_gcm_free (mbedtls_gcm_context *ctx) |
| This function clears a GCM context and the underlying cipher sub-context. More... | |
| int | mbedtls_gcm_self_test (int verbose) |
| The GCM checkup routine. More... | |
This file contains GCM definitions and functions.
The Galois/Counter Mode (GCM) for 128-bit block ciphers is defined in D. McGrew, J. Viega, The Galois/Counter Mode of Operation (GCM), Natl. Inst. Stand. Technol.
For more information on GCM, see NIST SP 800-38D: Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC.
Definition in file gcm.h.
| #define MBEDTLS_ERR_GCM_AUTH_FAILED -0x0012 |
| #define MBEDTLS_ERR_GCM_BAD_INPUT -0x0014 |
| #define MBEDTLS_ERR_GCM_HW_ACCEL_FAILED -0x0013 |
| typedef struct mbedtls_gcm_context mbedtls_gcm_context |
The GCM context structure.
| int mbedtls_gcm_auth_decrypt | ( | mbedtls_gcm_context * | ctx, |
| size_t | length, | ||
| const unsigned char * | iv, | ||
| size_t | iv_len, | ||
| const unsigned char * | add, | ||
| size_t | add_len, | ||
| const unsigned char * | tag, | ||
| size_t | tag_len, | ||
| const unsigned char * | input, | ||
| unsigned char * | output | ||
| ) |
This function performs a GCM authenticated decryption of a buffer.
| ctx | The GCM context. This must be initialized. |
| length | The length of the ciphertext to decrypt, which is also the length of the decrypted plaintext. |
| iv | The initialization vector. This must be a readable buffer of at least iv_len Bytes. |
| iv_len | The length of the IV. |
| add | The buffer holding the additional data. This must be of at least that size in Bytes. |
| add_len | The length of the additional data. |
| tag | The buffer holding the tag to verify. This must be a readable buffer of at least tag_len Bytes. |
| tag_len | The length of the tag to verify. |
| input | The buffer holding the ciphertext. If length is greater than zero, this must be a readable buffer of at least that size. |
| output | The buffer for holding the decrypted plaintext. If length is greater than zero, this must be a writable buffer of at least that size. |
0
if successful and authenticated. | int mbedtls_gcm_crypt_and_tag | ( | mbedtls_gcm_context * | ctx, |
| int | mode, | ||
| size_t | length, | ||
| const unsigned char * | iv, | ||
| size_t | iv_len, | ||
| const unsigned char * | add, | ||
| size_t | add_len, | ||
| const unsigned char * | input, | ||
| unsigned char * | output, | ||
| size_t | tag_len, | ||
| unsigned char * | tag | ||
| ) |
This function performs GCM encryption or decryption of a buffer.
| ctx | The GCM context to use for encryption or decryption. This must be initialized. |
| mode | The operation to perform:
|
| length | The length of the input data, which is equal to the length of the output data. |
| iv | The initialization vector. This must be a readable buffer of at least iv_len Bytes. |
| iv_len | The length of the IV. |
| add | The buffer holding the additional data. This must be of at least that size in Bytes. |
| add_len | The length of the additional data. |
| input | The buffer holding the input data. If length is greater than zero, this must be a readable buffer of at least that size in Bytes. |
| output | The buffer for holding the output data. If length is greater than zero, this must be a writable buffer of at least that size in Bytes. |
| tag_len | The length of the tag to generate. |
| tag | The buffer for holding the tag. This must be a writable buffer of at least tag_len Bytes. |
0
if the encryption or decryption was performed successfully. Note that in MBEDTLS_GCM_DECRYPT mode, this does not indicate that the data is authentic. | int mbedtls_gcm_finish | ( | mbedtls_gcm_context * | ctx, |
| unsigned char * | tag, | ||
| size_t | tag_len | ||
| ) |
This function finishes the GCM operation and generates the authentication tag.
It wraps up the GCM stream, and generates the tag. The tag can have a maximum length of 16 Bytes.
| ctx | The GCM context. This must be initialized. |
| tag | The buffer for holding the tag. This must be a writable buffer of at least tag_len Bytes. |
| tag_len | The length of the tag to generate. This must be at least four. |
0
on success. | void mbedtls_gcm_free | ( | mbedtls_gcm_context * | ctx | ) |
This function clears a GCM context and the underlying cipher sub-context.
| ctx | The GCM context to clear. If this is NULL , the call has no effect. Otherwise, this must be initialized. |
| void mbedtls_gcm_init | ( | mbedtls_gcm_context * | ctx | ) |
This function initializes the specified GCM context, to make references valid, and prepares the context for mbedtls_gcm_setkey() or mbedtls_gcm_free().
The function does not bind the GCM context to a particular cipher, nor set the key. For this purpose, use mbedtls_gcm_setkey().
| ctx | The GCM context to initialize. This must not be NULL . |
| int mbedtls_gcm_self_test | ( | int | verbose | ) |
The GCM checkup routine.
0
on success. 1
on failure. | int mbedtls_gcm_setkey | ( | mbedtls_gcm_context * | ctx, |
| mbedtls_cipher_id_t | cipher, | ||
| const unsigned char * | key, | ||
| unsigned int | keybits | ||
| ) |
This function associates a GCM context with a cipher algorithm and a key.
| ctx | The GCM context. This must be initialized. |
| cipher | The 128-bit block cipher to use. |
| key | The encryption key. This must be a readable buffer of at least keybits bits. |
| keybits | The key size in bits. Valid options are:
|
0
on success. | int mbedtls_gcm_starts | ( | mbedtls_gcm_context * | ctx, |
| int | mode, | ||
| const unsigned char * | iv, | ||
| size_t | iv_len, | ||
| const unsigned char * | add, | ||
| size_t | add_len | ||
| ) |
This function starts a GCM encryption or decryption operation.
| ctx | The GCM context. This must be initialized. |
| mode | The operation to perform: MBEDTLS_GCM_ENCRYPT or MBEDTLS_GCM_DECRYPT. |
| iv | The initialization vector. This must be a readable buffer of at least iv_len Bytes. |
| iv_len | The length of the IV. |
| add | The buffer holding the additional data, or NULL if add_len is 0 . |
| add_len | The length of the additional data. If 0 , add may be NULL . |
0
on success. | int mbedtls_gcm_update | ( | mbedtls_gcm_context * | ctx, |
| size_t | length, | ||
| const unsigned char * | input, | ||
| unsigned char * | output | ||
| ) |
This function feeds an input buffer into an ongoing GCM encryption or decryption operation.
` The function expects input to be a multiple of 16 Bytes. Only the last call before calling mbedtls_gcm_finish() can be less than 16 Bytes.
| ctx | The GCM context. This must be initialized. |
| length | The length of the input data. This must be a multiple of 16 except in the last call before mbedtls_gcm_finish(). |
| input | The buffer holding the input data. If length is greater than zero, this must be a readable buffer of at least that size in Bytes. |
| output | The buffer for holding the output data. If length is greater than zero, this must be a writable buffer of at least that size in Bytes. |
0
on success.


| Name | Introduction | |
|---|---|---|
| AzureCloud | https://azure.microsoft.com | |
| AzureChinaCloud | https://www.azure.cn | Runs on dedicated instance in China, operated by 21Vianet |
| AzureGermanCloud | https://www.microsoft.com/en-us/cloud-platform/germany-cloud-regions | Close on October 2021 |
| AzureUSGovernment | https://azure.microsoft.com/en-us/global-infrastructure/government/ |


Offline Image Editor (FileAPI + Canvas demo)
by Kinuko Yasuda <kinuko at chromium.org>
Supported browsers:
|
Tips: you can drag-out the file from this window.
[empty]


--- layout: base title: For facilitators audience: facilitators description: Hundreds of volunteers organize a coderetreat in their community each year. Join us! ---
Hundreds of volunteers organize a coderetreat in their community each
year.
Join us!
Experienced facilitators teach you everything you need to know to run your own coderetreat for free. Check for the next online trainings!
Join a training sessionFind new challenging constraints to mix things up at your event, or go with the classic structure – you decide! We collected some constraints and we're eager to hear yours!
Constraints LibraryFrom pocketmods to full-size posters, volunteers have created tons of material to support you and your attendees. Check out our gallery of downloads!
Resources


The top level Cloud module.
Appcelerator Cloud Services (ACS) provides a wide array of automatically-scaled data storage and web services, such as user logins, photo uploads, checkins, status updates, and push notifications, without the need to learn multiple third-party SDKs or do any server-side programming. Remote calls to ACS are done via a single REST API, which may be used with almost any web technology that has access to an HTTP client.
The Titanium.Cloud
module makes accessing ACS as simple as using any of Titanium's other APIs,
due to its familiar and intuitive API schema.
For a more detailed overview of ACS and how to configure an application to use it, refer to the Integrating with Appcelerator Cloud Services and ACS Quickstart guides.
Beta ACS APIs
Be aware that ACS APIs that are in pre-release form (marked "Beta" in the ACS documentation) may be subject to change. During this period, while they are not supported directly by the Titanium.Cloud module, they may be accessed using the REST API.
Using the Titanium.Cloud Module
This module is not included in the Titanium namespace, but it is bundled with the Titanium SDK as of version 2.0.0. To use it, it must be registered like this:
var Cloud = require('ti.cloud');
Your app must prove that it is allowed to talk to ACS. This keeps your data secure by preventing anyone from making requests to ACS that impersonate your app. ACS provides secure authentication via 2-Legged OAuth. This is a process by which a key and secret are used to sign each request made by your app. When the ACS server receives your request, the secret is used along with the data sent in the request to calculate another signature. If sent signature and calculated signature match, the request will be processed.
An alternate method to authenticate API requests to ACS is to supply an app key with each request.
Titanium Studio will create a pair of keys (Development and Production) for each Titanium
application depending on the user preference specified during new project creation. This pair
of keys will be stored in tiapp.xml
and one of the keys will be used during application build
depending on the build type (development or production).
The supported properties in tiapp.xml
are:
<property name="acs-api-key-development" type="string">YOUR DEVELOPMENT API KEY HERE</property>
<property name="acs-oauth-key-development" type="string">YOUR DEVELOPMENT OAUTH KEY HERE</property>
<property name="acs-oauth-secret-development" type="string">YOUR DEVELOPMENT OAUTH SECRET HERE</property>
<property name="acs-api-key-production" type="string">YOUR PRODUCTION API KEY HERE</property>
<property name="acs-oauth-key-production" type="string">YOUR PRODUCTION OAUTH KEY HERE</property>
<property name="acs-oauth-secret-production" type="string">YOUR PRODUCTION OAUTH SECRET HERE</property>
<property name="acs-api-key" type="string">YOUR API KEY HERE</property>
<property name="acs-oauth-key" type="string">YOUR OAUTH KEY HERE</property>
<property name="acs-oauth-secret" type="string">YOUR OAUTH SECRET HERE</property>
The value for each setting that will be used is based on the following rules:
- OAuth is preferred over apiKey. If both the OAuth key and OAuth secret are provided then OAuth will be used; otherwise, apiKey will be used.
- If a deployment-specific setting is provided (production or development) then that value will be used for the current deployment environment.
There is also an optional setting to allow you to change the base URL for ACS requests. You will most likely never need to specify this. It can be specified deployment-specific, or generic:
<property name="acs-base-url-development" type="string">DEVELOPMENT API URL HERE</property>
<property name="acs-base-url-production" type="string">PRODUCTION API URL HERE</property>
<property name="acs-base-url" type="string">API URL HERE</property>
<property name="acs-authbase-url-development" type="string">AUTHENTICATION URL HERE</property>
<property name="acs-authbase-url-production" type="string">AUTHENTICATION URL HERE</property>
<property name="acs-authbase-url" type="string">AUTHENTICATION URL HERE</property>
Applies the properties to the proxy.
Arguments
| props | [Dictionary] | A dictionary of properties to apply. |
Gets the value of the accessToken property.
Gets the value of the debug property.
Gets the value of the expiresIn property.
Gets the value of the ondatastream property.
Gets the value of the onsendstream property.
Gets the value of the sessionId property.
Gets the value of the useSecure property.
Sets the value of the accessToken property.
Arguments
| accessToken | [String] | New value for the property. |
Sets the value of the debug property.
Arguments
| debug | [Boolean] | New value for the property. |
Sets the value of the ondatastream property.
Arguments
| ondatastream | [Callback<CloudStreamProgress>] | New value for the property. |
Sets the value of the onsendstream property.
Arguments
| onsendstream | [Callback<CloudStreamProgress>] | New value for the property. |
Sets the value of the sessionId property.
Arguments
| sessionId | [String] | New value for the property. |
Sets the value of the useSecure property.
Arguments
| useSecure | [Boolean] | New value for the property. |


Engine Repair
This website is in-depth and offers guides on nearly anything that’s wrong with your
vehicle, and it isn’t free. It does, however, present several purchasing options.
This website is in-depth and offers guides on nearly anything that’s wrong with your
vehicle, and it isn’t free. It does, however, present several purchasing options.
Alignment assures your tires meet the road at the proper angle, your wheels
are pointing straight and your tires are centered in the wheel wells. It adjusts the angles of your vehicle's
wheels to original specs for best gas mileage, proper road contact, a smooth ride, and the longest tire life
Additionally, the cost to have your transmission fluid changed by an
auto mechanic in a show, an auto dealer, service center or private mechanic
can range from $80 to $250. The average cost for both automatic and manual transmissions is around $100.
Learn by decription
Learn by decription
Learn by decription
Learn by decription


The Mummy (1999) A Capsule Review by Nathaniel R. Atcheson Director: Stephen Sommers Cast: Brendan Fraser, Rachel Weisz, John Hannah, Kevin J. O'Connor, Jonathan Hyde Screenplay: Stephen Sommers Producers: Sean Daniel, James Jacks Runtime: 126 min. US Distribution: Universal Rated PG-13: Violence, partial nudity
Copyright 1999 Nathaniel R. Atcheson
Sometime around 1100 BC, an Egyptian guy named Imhotep had an affair with the Pharaoh's wife, killed the Pharaoh, and then was subjected to horrible torture and an eternal curse. Several thousand years later, in the 1920s, an American explorer and a British librarian go looking for treasure, but end up finding Imhotep. Imhotep is still alive, but now he's a mummy, and he's very mad.
Anyone who takes Stephen Sommers' The Mummy seriously is wasting his or her time. This is not a serious film. It's a two-hour joke. It's also relentlessly funny and entertaining as heck. Purists will agree that The Mummy is not as good as Sommers' previous film, the woefully underrated (but similarly hilarious) Deep Rising, but there's still fun to be had here. You see, Stephen Sommers is a man who understands his genre and knows that the only way to truly avoid criticism is to criticize your own movie. So many horror films go for poker-faced stiffness and end up completely absurd (Virus, for instance, would have been ten times better with Sommers at the helm). The Mummy is a film bursting at the seams with logical inconsistencies and senseless plot developments. It also features gleeful use of anachronistic dialogue ("This country is really messed up!" would not have been a common phrase in 1926, even for an American treasure hunter). But I can't avoid admiration of a film in which a CGI mummy explodes into a fearful cloud of dust after being hissed at by a fluffy white cat.
Speaking of dust, The Mummy is the sandiest movie I've ever seen. There is so much dirt and sand and dust here that I felt like I needed to shake out my shoes when the picture was finished. In fact, one of the neatest effects in the movie features a wall of dust that turns into Imhotep's face and swallows an airplane. The characters are constantly covered in sand, they're always sneezing, and the Mummy himself bursts into dust whenever he can.
The Mummy is a loose remake of the 1932 film of the same name. I can recommend this film in good conscience only because it is so acutely aware of its own badness. The cast, too, is in on the joke, which helps a lot. Brendan Fraser, an actor I admire for his range, is quite funny as Rick O'Connell, the surly American treasure hunter; he goes for the throat with the macho-man attitude and hits the right note for the role. Rachel Weisz, playing the British librarian Evelyn, is very appealing and shows splendid comic timing (she's also a Kate Winslet look- and sound-alike, which probably is no accident). John Hannah is on hand as Jonathan, Evelyn's wife, and has some of the funnier lines in the film. Kevin J. O'Connor, who stood out in Deep Rising, has a fine supporting role as Beni, the cowardly Egyptian guide.
There are parts in The Mummy that I found immensely funny. The hissing cat is one such moment. Sommers makes the most of every cliche he can; after a mysterious brush of wind passes by our heroes for about the fifth time, Rick says, "That happens a lot around here." The film is adequate as an action picture; I liked a lot of the special effects, including the sand wall and the walking corpses, and the finale features some truly amazing swordplay between Rick and a horde of CGI skeletons. On the whole, however, the film is more effective as a comedy. That, I believe, will be its box office downfall. The Mummy had a good opening weekend, but the picture was marketed as a serious action-horror film. Fans going in expecting to see serious action will be disappointed. I wasn't disappointed; I got what I expected after learning that Stephen Sommers is responsible for the movie. And though I believe that The Mummy could have been even funnier and a lot more thrilling, it's a commendable effort from a man who clearly would rather make a horror picture that prompts laughter rather than screams.
Psychosis Rating: 6/10
Visit FILM PSYCHOSIS at http://www.pyramid.net/natesmovies
Nathaniel R. Atcheson
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Validating, please wait...
Validation error:
{{ validateError }}
There are no properties to configure
This connection is configured using OAuth. Use the validate button to check if the connection is still authorized


Bookmarklet
Computers
Drag the bookmarklet above to your bookmarks toolbar.
IOS Devices
Copy this text:
Bookmark this page
Edit the bookmark
Delete the address "https://feedreader.co/bookmarklet/"
Paste and tap Done


Hey I'm Tarrke
A hobbyist developper
And a python teacher
Here are some of my projects
Tribute Page
HTML5
CSS3
Survey Parge
HTML5
CSS3
Product Landing Page
HTML5
CSS3
Technical Documentation Page
HTML5
CSS3
Link to project
HTML5
CSS3
Link to project
HTML5
CSS3
Let's work together
Or if you just want to get in touch...


I've been doing only legal drugs, and not too frequently. Tried DXM and some salvia leaf I got by mail. I know everyone doesn't, but I trip hard on just a couple hits of salvia leaf. About a week ago I had done 750mg of DXM in gelcaps, and about 2 1/2 hours into it, as I was getting near the point of immobility, the idea came to me that maybe some salvia would be fun right about now. Luckily I keep my pipe near to where I was sitting.
I remember raising the pipe to my lips a 2nd time. I remember holding in my breath. Somehow I became a rolling sea, which the person I had been was just a pattern on, which was torn apart as the wave crashed and broke and reassembled into new forms. One of the last things that resembled my normal thought was 'I can't possibly have survived that'. I don't think I really cared.
For a couple hours, I was a solid ocean of disassembling and reassembling forms. I became rolling hills and a mauve sky, train tracks atop a building in a city, the deck of a ship and a procession of people, a molecule in an oscillating membrane fervently desiring to rise and fall in time, and many other things, some so alien I can't describe them. Some were very large and some were very small. Distance is just a quality like color or shape. Time is just the rising and falling of waves, the movement of patterns on the surface. Many of them had thoughts and identities within them which I became in part, people with complete lives and memories which I could remember, hopes and fears and dreams which were temporarily my own.
Then the ocean would move and the realities would be ripped apart and changed into something new. I could *feel* this. Parts of me would come apart at the seams, all over the place, and rotate, and slide along like a carpet of writhing nanomachines, turning and grinding and seething with life, flowing into a new facsimile of reality, which would stabilize and again seem like all the world for a while.
It was alien to anything else I've ever experienced. I don't think many people would enjoy this. I'm writing because I searched for a report on this combination and didn't find any. I thought it was pretty interesting, and maybe someone else would too. Of course anyone else might experience something totally different.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


- Handle - Interface in warlock
-
- handleCollision(LevelObject) - Method in class warlock.object.LevelObject
-
- handleCollision(LevelObject) - Method in class warlock.object.projectile.Projectile
-
Handle collision with other objects
- handleCollision(LevelObject) - Method in class warlock.object.warlock.Warlock
-
Handle collision with other objects
- handleInput(InputHandler) - Method in class warlock.game.Game
-
Call phase's handleInput
- handleInput(InputHandler) - Method in class warlock.game.GamePhase
-
- handleInput(InputHandler) - Method in class warlock.game.PlayPhase
-
Call the local player's handleInput
- handleInput(InputHandler) - Method in class warlock.game.ShopPhase
-
Call huds handle input
- handleInput(InputHandler) - Method in class warlock.hud.interactable.Interactable
-
Checks if any event should be triggered.
- handleInput(InputHandler) - Method in class warlock.hud.interactable.InteractableIntCounter
-
Handle the input of this interactable
- handleInput(InputHandler) - Method in class warlock.hud.ShopHud
-
Handle input of all the interactables to see if they're interacted with.
- handleInput(InputHandler) - Method in class warlock.lobby.Lobby
-
Handle the input of all the interactables
- handleInput() - Method in class warlock.Main
-
The handleInput method that's cascaded down the hierarchy to other classes.
- handleInput(InputHandler) - Method in class warlock.menu.Menu
-
Handle input for all interactables
- handleInput(InputHandler) - Method in class warlock.player.ObserverPlayer
-
Handle input, only needs to be able to controll scrolling
- handleInput(InputHandler) - Method in class warlock.player.Player
-
Handle the input, it takes care of scrolling the map and cast spells
- handleInput(InputHandler) - Method in class warlock.state.GameState
-
- handleInput(InputHandler) - Method in interface warlock.state.InputEnabled
-
- handleInput(InputHandler) - Method in class warlock.state.LobbyState
-
Handle the lobby's input
- handleInput(InputHandler) - Method in class warlock.state.MenuState
-
Handle the input of the menu
- handleInput(InputHandler) - Method in class warlock.state.PlayState
-
Handle input of game
- HandleLoader - Class in warlock
-
- HandleLoader() - Constructor for class warlock.HandleLoader
-
- handleScrolling(InputHandler) - Method in class warlock.player.Player
-
Handle the scrolling of the camera for this player
- hasExpired() - Method in class warlock.attribute.StatusEffect
-
- hashCode() - Method in class warlock.attribute.AttributeType
-
- hashCode() - Method in class warlock.attribute.StatusEffect
-
- hashCode() - Method in class warlock.player.Player
-
- hasReachedDestination() - Method in class warlock.object.warlock.Warlock
-
- HEADER_NAME - Static variable in class warlock.Main
-
- hitFX() - Method in class warlock.object.projectile.FireballProjectile
-
The particle effect that plays when this projectile hits a target
- hitFX() - Method in class warlock.object.projectile.LightningProjectile
-
The particle effect that plays when this projectile hits a target
- hitFX() - Method in class warlock.object.projectile.OrbProjectile
-
The particle effect that plays when this projectile hits a target
- hitFX() - Method in class warlock.object.projectile.Projectile
-
- hitFX(double) - Method in class warlock.object.warlock.Warlock
-
The particle effect played when the warlock is hit by an projectile
- hoversItem(ShopItem) - Method in class warlock.shop.Shop
-
Fired when an item is hoovered, to temporary override the selected item
- Hud - Class in warlock.hud
-
- Hud(Player) - Constructor for class warlock.hud.Hud
-
Initialize a hud, take the player it concerns


India lacks quality free and open source (FOSS) events. While there are technology events like PyCon and JSFoo, which are fantastic places to talk about technology, FOSS communities go beyond just technology. FOSS is about creation and sharing of technology. IndiaOS is an attempt to bring this community together, so we can learn and inspire each other. To take this community forward in new directions that we have not yet imagined.
IndiaOS is an event focused on the creators and contributors of FOSS. Participants can learn about new projects, success stories, how to increase adoption, best practices about design, documentation, how to sustain livelihoods and much more.
India, and the world, needs more FOSS. FOSS leads to not only savings, but sharing is a super fast way to get solutions up and ready immediately. With the amount of FOSS tools already available, we should be doing so much more either as non profits or private or public entities.
FOSS is really important to society and we need an event to come together as a community to take it forward. Today there is no such event.
This is why we need IndiaOS.
- Rushabh Mehta
Founder & CEO, Frappe Technologies


Kun ZhanProfessor, School of Information Science and Engineering, Lanzhou University kzhanlzu.edu.cn, ice.echogmail.com |
He received B.S. and Ph.D. degrees from Lanzhou University, in 2005 and 2010, respectively. He was a visiting student with Dalhousie University from 2009 to 2010 and was a visiting scholar with University of Technology Sydney from 2017 to 2018. He is currently with Lanzhou University. Here is his CV.
His general research interests are in machine learning, neural networks, and optimization.
Selected Publications:
Entropy neural estimation for graph contrastive learning |
Improving semi-supervised semantic segmentation with dual-level Siamese structure network |
Self-contrastive graph diffusion network |
View-consistent heterogeneous network on graphs with few labeled nodes |
Stationary diffusion state neural estimation for multiview clustering |
Graph structure fusion for multiview clustering |
Multiview consensus graph clustering |
Adaptive structure discovery for multimedia analysis using multiple features |
Graph learning for multiview clustering |
Computational mechanisms of pulse-coupled neural networks: A comprehensive review |
|
New spiking cortical model for invariant texture retrieval and image processing |
| [more] |


Hello!
{% if likes_same_sport == False %}
swimmingggggg
because mlabbas 3a lozzzzz
{% endif %}
favorite players :
{% for i in favPlayers %}
{{i}}
{% endfor %}


class: center, middle, main-title # CSS The Bad Parts --- class: center, middle, main-title # CSS in a Non-Trivial Codebase
* 4 minor problems ← *There are work-arounds* * 2 hard problems ← *You need a tool to solve these*
--- ## Global namespace ```css button { background: blue; color: white; border: 1px solid #444; border-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4) inset; } button:active { background: navy; border-color: black; color: #eee; } ```
We've just introduced two new global variables! This means we can never use the `.button` class again. Worse: if we do, nothing will error. CSS is happy to let you override current behavior, even if it's an accident. Of course, you can namespace your classes. Plenty of systems have developed to do this: * OOCSS * SMACSS * BEM * SUIT * even inline styles
--- ## So, namespace ```html
...
Hello World
...
``` [via](http://markdalgleish.github.io/presentation-the-case-for-css-modules/#15)
This absolutely gets around the problem, but it's error prone. Ideally, you'd have a system were styles were automatically scoped to their component and their component only.
--- ## Dependencies ```css @import "../../pieces/button"; @import "../../pieces/button-group"; @import "../../pieces/card"; @import "../../components/form-user-switch-branch"; /* Styles for the AdminUserDetail component */ .admin-user-detail .card { margin: 5px 10px 10px 10px; } .admin-user-detail .alert { margin-bottom: 10px; } ```
Of course, it's easy to forget to import the button. And, that might work if something else requires the button already … until you remove that other thing. And there's no way for the build to know that you're missing a dependency!
--- ## Dead Code Elimination ```css .btn.btn-primary { background-color: var(--color-grey70); color: var(--color-grey30); border: 1px solid var(--color-black10); box-shadow: 0px 1px 1px 0px rgba(255,255,255,0.20), inset 0px 1px 1px 0px rgba(255,255,255,0.30); } .btn.btn-primary:hover, .btn.btn-primary:focus { background-color: var(--color-grey70); } .btn.btn-primary:active, .btn.btn-info:active { box-shadow: 0px 1px 1px 0px rgba(255,255,255,0.30), inset 0px 1px 2px 0px rgba(0,0,0,0.40); } ``` [via](https://github.com/Getable/constructable/blob/9ab035a24731a2c551449aad099129288ae5c25e/client/pieces/button/index.css#L116-L130)
Remove all instances of `.btn-primary` from the app, and the CSS will still come down. But, there's no way to know the css isn't needed anymore.
--- ## Minification ```css .checkout-jobsite-pane .delivery-edit-btn, .checkout-jobsite-pane .contact-edit-btn { margin-bottom: 15px; float: right; } ``` [via](https://github.com/Getable/constructable/blob/9ab035a24731a2c551449aad099129288ae5c25e/client/components/checkout-jobsite-step/index.css)
ooof… that's a lot for the browser to download. It would be better if something could hash that classname and shorten it for us.
--- ## Non-deterministic Resolution What's the background color of the `<button>`? ```css /* button-call.css */ .button-call { background: white; } ``` ```css /* button.css */ .button { background: black; } ``` ```html
```
Answer: We don't know! In CSS, the last file was loaded to win. If you're loading CSS async, or can't determine the order which your css files are bundled together, you can't predict what applying both these classes will do. This is where we start to have specificity wars, and that's a never ending struggle once you start it.  Your same button is going to change background colors, and good luck trying to repro the issue!
--- ## Breaking Isolation: Mistakes What's the bug? ```html
{buttonText}
``` ```css /* button.css */ .button { background: black; color: white; } ``` ```css /* alert-danger.css */ .button > span { color: red; } ```
Answer: all buttons now have a red color. This works because your new rule in `alert-danger.css` is more specific than the one on `button.css`. But, you've just accidentally changed the text color of all buttons!
--- ## Breaking Isolation: Harder to Maintain Alternatively, let's say you do this, what's the problem? ```css /* button.css */ .button { background: black; color: white; } ``` ```css /* alert-danger.css */ .alert-danger .button > span { color: red; } ```
Now, you've locked alert-danger into the dom structure of the button component. It makes it very hard to ensure you can change the button component without affecting who-knows-what-else. ### problems * The DOM structure of button now can't be changed w/o breaking alert-danger * There's now a specificity war between `alert-danger` and `button`. You aren't guaranteed that CSS changes to `button` won't break `alert-danger`.
--- ## Breaking Isolation: The cascade gets in the way ```css ul li button { } ```
Selectors are not very specific. The cascade can get in your way and cause unintentional side effects. The easy answer is to *always* use class names. *Never* style elements directly.
--- class: center, middle, main-title # So, Inline Styles?
These problems were shamelessly stolen from the same deck that introduced [inline styles for react](https://speakerdeck.com/vjeux/react-css-in-js). But, inline styles [have their own problems](https://byjoeybaker.com/react-inline-styles).
--- ## The Myths of inline styles - inline styles mean you can just learn JavaScript and won't need to learn CSS: Bullshit. Inline styles are still CSS. Not to mention there are things like media queries and transitions that CSS just does better than JS. - CSS is a pain: Possibly true, but tools like LESS, SCSS, PostCSS, and Autoprefixer solve a lot of problems. --- ## No Style Fallbacks There's no way to override a style on the same selector You can do this in CSS: ```css div { display: -webkit-flex; display: flex; } ``` But not in HTML: This only takes the last `display` decoration. ```html
``` --- ## No Media Queries or Element Queries - You have to use JS to detect widths and update inline styles accordingly. - I was initially excited by this, because it means that element queries could be the default! But, if you go down that route, you'll have to use `.offsetWidth` and `window.resize` all over the place.  --- ## No Cascading Styles So, yes, isolation is good. But sometimes, a global state is nice. e.g. - typography defaults or resets (normalize.css) - `@keyframes` --- ## Performance - [inline styles are slower than a stylesheet](http://jsperf.com/class-vs-inline-styles/6) - it's a lot more content to download (gzip does help)


Often we have additional information about our samples besides the results generated with hap.py, e.g. metadata, build metrics, etc. In this vignette we will illustrate how to incorporate custom metrics into our happy_compare
object, just by adding an additional build_metrics
column to our samplesheet (see extdata/samplesheets/pcrfree_vs_nano.vignettes.csv
for an example).
Let’s load our NovaSeq dataset with PCR-Free vs. Nano builds for NA12878, using a samplesheet that includes custom metrics:
# do not run
samplesheet_path <- system.file("extdata/samplesheets", "pcrfree_vs_nano.vignettes.csv",
package = "happyCompare")
happy_compare <- read_samplesheet(samplesheet_path)
# load from Rds object
download.file("https://raw.githubusercontent.com/Illumina/happyCompare/master/data-raw/stratified_counts/happy_compare.Rds", "happy_compare.Rds", method = "curl")
happy_compare <- readRDS("happy_compare.Rds")
Inspecting the elements of the resulting happy_compare
object confirms that build metrics have been successfully imported:
names(happy_compare)
## [1] "samplesheet" "happy_results" "build_metrics" "ids"
One of the first questions that we can ask given our demo dataset is whether library prep methods have any impact to variant calling performance. ROC curves are a convenient way of visualising accuracy across multiple classification methods (in our case True Positive vs. False Positive calls in PCR-Free vs. Nano builds), and we can quickly produce them from hap.py outputs with hc_plot_roc()
:
# extract metrics
roc_snvs <- extract_metrics(happy_compare, table = "pr.snp.pass")
roc_indels <- extract_metrics(happy_compare, table = "pr.indel.pass")
# plot precision/recall curves
p1 <- hc_plot_roc(happy_roc = roc_snvs, type = "SNP", filter = "PASS", ylim = c(0.995, 1))
p2 <- hc_plot_roc(happy_roc = roc_indels, type = "INDEL", filter = "PASS")
gridExtra::grid.arrange(p1, p2, ncol = 2)
Note the difference in scales between the two plots, which highlights better performance overall for SNPs, regardless of analysis group. We also see that the differences between PCR-Free and Nano are most accentuated in INDELs, with a wider spread in precision across Nano builds.
Since we have imported build metrics when creating our happy_compare
object, we can follow up on the variability seen for INDEL precision in Nano. Let’s start by creating a combined dataset for hap.py and custom metrics:
# link build metrics to hap.py results
summary <- extract_metrics(happy_compare, table = "summary")
build_metrics <- extract_metrics(happy_compare, table = "build.metrics")
merged_df <- summary %>%
filter(Type == "INDEL", Filter == "PASS") %>%
select(happy_prefix, METRIC.Precision) %>%
inner_join(build_metrics)
## Joining, by = "happy_prefix"
This gives us a large number of metrics to work with:
dim(merged_df)
## [1] 14 141
From here, we can investigate the relationship between our build metrics and INDEL precision using a linear model. Since we don’t want to make any assumptions on variable importance, let’s use regsubsets()
from the leaps
package to identify the best predictors:
# clean up metrics dataset and focus on Nano builds for now
subset_df <- merged_df %>%
filter(Group.Id == "Nano") %>%
select_if(function(x) (is.numeric(x) && sum(!is.na(x)) > 0) && n_distinct(x) > 1)
# identify the best model for 1 to nvmax predictors
nvmax <- 5
fit <- leaps::regsubsets(METRIC.Precision ~ ., data = subset_df,
method = "backward", nbest = 1, nvmax = nvmax)
# collect model statistics
fit_stats <- data.frame(
nvars = factor(1:nvmax),
bic = summary(fit)$bic,
adjr2 = summary(fit)$adjr2
)
We now have nvmax
models, ranging from 1 to nvmax
predictor variables. We can assess how much we gain when introducing additional predictors by inspecting model statistics:
fit_stats %>%
ggplot(aes(x = bic, y = adjr2)) +
geom_point(aes(color = nvars), size = 3) +
ggtitle("Model accuracy varies with the number of predictor variables")
From the plot we see that we do a good job at predicting INDEL precision with only one variable, and that adding more information into the model penalises both \(R^2\) and \(BIC\) score. We can learn about our best predictor by inspecting the first model:
stats::coef(fit, 1)
## (Intercept) autosome_callability
## -5.76904999 0.06968588
Overall, we have managed to identify callability as the main contributor to INDEL precision (in Nano builds). Finally, let’s confirm our predictions by visualising the relationship between these two variables in the full dataset:
merged_df %>%
ggplot(aes(x = autosome_callability, y = METRIC.Precision, group = Group.Id)) +
geom_point(aes(color = Group.Id)) +
geom_smooth(method = "lm", aes(color = Group.Id, fill = Group.Id), lwd = 0.25) +
ylab("INDEL_precision") +
ggtitle("Higher callability drives improvements in INDEL precision")


Evening 10 Series 2018 Event 3
| TL 3 |
24 April 18 |
|
10 |
miles |
| Name |
Position |
Road bike |
Actual Time |
Avg. mph |
| |
|
|
|
|
| James
Lowe |
1 |
|
00:24:08 |
24.86 |
| Jonathan
Durnin |
2 |
|
00:24:57 |
24.05 |
| Matt
Plews |
3 |
|
00:24:59 |
24.02 |
| Gary
Roberts |
4 |
|
00:26:17 |
22.83 |
| Chris
Dainty |
5 |
|
00:26:34 |
22.58 |
| Linda
Hubbard |
6 |
|
00:26:54 |
22.30 |
| Simon
Ward |
7 |
|
00:27:37 |
21.73 |
| David
Wilson |
8 |
|
00:27:45 |
21.62 |
| Stewart
Holland |
9 |
1 |
00:30:15 |
19.83 |
| Vic
Barnett |
10 |
|
00:32:05 |
18.70 |
| Huw
Wilson |
11 |
2 |
00:32:56 |
18.22 |
| Andrew
Weatherby |
12 |
3 |
00:34:28 |
17.41 |
| Sophie
Ward |
13 |
4 |
00:41:30 |
14.46 |
| Ivan
Lucas |
|
|
DNF |
|
|
|
|
|
|


{% extends league_base %} {% block main_content %}
Select an option from the menu above.
You can sign in as an admin using demo
as both username and password,
or as standard user using user1
, user2
, ...
user9
as username and password.


Opt-In Test page
Anonymous analytics like Matomo
Status:
Loading
Google Analytics
Status:
Loading
You tube content
Status:
Loading


NutGUI¶
A collection of custom fields to improve your custom editors. It has everything NutGUILayout has.
METHODS¶
BigHeader¶
BigHeader(Rect rect, string title)
BigHeader(Rect rect, GUIContent content)
Draws a big header identical to the BigHeader attribute.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | using NutEditor;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(MyClass))]
public class MyClassEditor : Editor
{
public override void OnInspectorGUI()
{
Rect rect = EditorGUILayout.GetControlRect();
NutGUI.BigHeader(rect, "A BIG TITLE!", "A smaller title.");
// Some code...
}
}
|
IMAGE GOES HERE!
DrawTexture¶
DrawTexture(Rect rect, Texture2D texture)
Draws a texture within a rect.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | using NutEditor;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(MyClass))]
public class MyClassEditor : Editor
{
Texture2D _tex;
public override void OnInspectorGUI()
{
Rect rect = EditorGUILayout.GetControlRect();
rect.height = rect.width = 50f;
NutGUI.DrawTexture(rect, _tex);
// Some code...
}
}
|
IMAGE GOES HERE!
Splitter¶
Splitter(Rect rect)
Splitter(Rect rect, Color color)
Draws a separator line on the screen within the given rect.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | using NutEditor;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(MyClass))]
public class MyClassEditor : Editor
{
public override void OnInspectorGUI()
{
Rect rect = EditorGUILayout.GetControlRect();
rect.height = 1f;
NutGUI.Splitter(rect, Color.red);
// Some code...
}
}
|
IMAGE GOES HERE!
SubHeader¶
SubHeader(Rect rect, string title)
SubHeader(Rect rect, GUIContent content)
Draws a gray header identical to the SubHeader attribute.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | using NutEditor;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(MyClass))]
public class MyClassEditor : Editor
{
public override void OnInspectorGUI()
{
Rect rect = EditorGUILayout.GetControlRect();
NutGUI.SubHeader(rect, "A Sub Header");
// Some code...
}
}
|
IMAGE GOES HERE!
GET HELP¶
Join this Discord server to get help, suggest new features, and vote on future updates!
See also


[ the cutting edge ]
G'Day New Zealand,
I'm down in Christchurch next weekend (3-4 November), speaking
at the Developers
Boot Camp. I'm looking
forward to catching up with everyone down
there.
Following that I'm trekking from Christchurch through to
Wellington, speaking at the
SQL
Server Users Group
on Best Practices for Reporting Services, and then up to
Auckland, speaking at the
Auckland Ellerslie .NET User Group
on
PerformancePoint
Server 2007.
SSW NZ does Business Intelligence solutions consulting in NZ,
so if you're looking for help in that area call us on +64 9
889 2988, email us at
<EMAIL_ADDRESS>or visit us at
www.ssw.net.nz.
We're also looking for new staff in Auckland and Wellington. If
you're interested, keep reading below.
See you soon,
Adam
SSW Chief Architect and Microsoft Regional Director
Got a comment for Adam?
6164616d636f67616e407373772e636f6d2e6175
|


Please use this page to personalize the automatic goal reminders, which are being sent via email. The email body, ending, and greeting is editable. Furthermore, you are able to set the specific day and time the emails will be sent to your users on a weekly basis. (Note: The changes might take up to a day to be applied)


Before Change
def test_part_neighbor_dist(self):
""" Get part_neighbor_dist. """
for ps in [self.ps1, self.ps2]:
self.assertTupleEqual(ps.part_neighbor_dist(ps.order[-1]),
(1, 1))
self.assertTupleEqual(ps.part_neighbor_dist(ps.order[-2]),
ps.dim(ps.order[-1]))
self.assertTupleEqual(ps.part_neighbor_dist(ps.order[-3]),
ps.dim(*ps.order[-2:]))
self.assertTupleEqual(ps.part_neighbor_dist(ps.order[-4]),
ps.dim(*ps.order[-3:]))
def test_part_neighbor_dist_inv(self):
""" Get part_neighbor_dist invalid arg. """
dist = self.ps1.part_neighbor_dist(pe.NUM)
self.assertTrue(all(math.isnan(d) for d in dist))
After Change
nbr_dist = ps.part_neighbor_dist(nr, ps.order[idx])
dim_below = ps.dim(*ps.order[idx + 1:]) if idx + 1 < pe.NUM \
else PhyDim2(1, 1)
dim_cur = ps.dim(ps.order[idx])
if dim_cur.h == 1:
self.assertTrue(math.isinf(nbr_dist.h))
else: