|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RoundingMode> java.math.RoundingMode
public enum RoundingMode
Specifies a rounding behavior for numerical operations capable of discarding precision. Each rounding mode indicates how the least significant returned digit of a rounded result is to be calculated. If fewer digits are returned than the digits needed to represent the exact numerical result, the discarded digits will be referred to as the discarded fraction regardless the digits' contribution to the value of the number. In other words, considered as a numerical value, the discarded fraction could have an absolute value greater than one.
Each rounding mode description includes a table listing how
different two-digit decimal values would round to a one digit
decimal value under the rounding mode in question. The result
column in the tables could be gotten by creating a
BigDecimal number with the specified value, forming a
MathContext
object with the proper settings
(precision set to 1, and the
roundingMode set to the rounding mode in question), and
calling round
on this number with the
proper MathContext. A summary table showing the results
of these rounding operations for all rounding modes appears below.
| Result of rounding input to one digit with the given rounding mode | ||||||||
|---|---|---|---|---|---|---|---|---|
| Input Number | UP | DOWN | CEILING | FLOOR | HALF_UP | HALF_DOWN | HALF_EVEN | UNNECESSARY |
| 5.5 | 6 | 5 | 6 | 5 | 6 | 5 | 6 | throw ArithmeticException |
| 2.5 | 3 | 2 | 3 | 2 | 3 | 2 | 2 | throw ArithmeticException |
| 1.6 | 2 | 1 | 2 | 1 | 2 | 2 | 2 | throw ArithmeticException |
| 1.1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | throw ArithmeticException |
| 1.0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| -1.0 | -1 | -1 | -1 | -1 | -1 | -1 | -1 | -1 |
| -1.1 | -2 | -1 | -1 | -2 | -1 | -1 | -1 | throw ArithmeticException |
| -1.6 | -2 | -1 | -1 | -2 | -2 | -2 | -2 | throw ArithmeticException |
| -2.5 | -3 | -2 | -2 | -3 | -3 | -2 | -2 | throw ArithmeticException |
| -5.5 | -6 | -5 | -5 | -6 | -6 | -5 | -6 | throw ArithmeticException |
This enum is intended to replace the integer-based
enumeration of rounding mode constants in BigDecimal
(BigDecimal.ROUND_UP
, BigDecimal.ROUND_DOWN
,
etc. ).
BigDecimal
,
MathContext
| Enum Constant Summary | |
|---|---|
CEILING
Rounding mode to round towards positive infinity. |
|
DOWN
Rounding mode to round towards zero. |
|
FLOOR
Rounding mode to round towards negative infinity. |
|
HALF_DOWN
Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down. |
|
HALF_EVEN
Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor. |
|
HALF_UP
Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round up. |
|
UNNECESSARY
Rounding mode to assert that the requested operation has an exact result, hence no rounding is necessary. |
|
UP
Rounding mode to round away from zero. |
| Method Summary | |
|---|---|
static RoundingMode |
valueOf(int rm)
Returns the RoundingMode object corresponding to a legacy integer rounding mode constant in BigDecimal . |
static RoundingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RoundingMode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final RoundingMode UP
Example:
| Input Number | Input rounded to one digit with UP rounding |
|---|---|
| 5.5 | 6 |
| 2.5 | 3 |
| 1.6 | 2 |
| 1.1 | 2 |
| 1.0 | 1 |
| -1.0 | -1 |
| -1.1 | -2 |
| -1.6 | -2 |
| -2.5 | -3 |
| -5.5 | -6 |
public static final RoundingMode DOWN
Example:
| Input Number | Input rounded to one digit with DOWN rounding |
|---|---|
| 5.5 | 5 |
| 2.5 | 2 |
| 1.6 | 1 |
| 1.1 | 1 |
| 1.0 | 1 |
| -1.0 | -1 |
| -1.1 | -1 |
| -1.6 | -1 |
| -2.5 | -2 |
| -5.5 | -5 |
public static final RoundingMode CEILING
Example:
| Input Number | Input rounded to one digit with CEILING rounding |
|---|---|
| 5.5 | 6 |
| 2.5 | 3 |
| 1.6 | 2 |
| 1.1 | 2 |
| 1.0 | 1 |
| -1.0 | -1 |
| -1.1 | -1 |
| -1.6 | -1 |
| -2.5 | -2 |
| -5.5 | -5 |
public static final RoundingMode FLOOR
Example:
| Input Number | Input rounded to one digit with FLOOR rounding |
|---|---|
| 5.5 | 5 |
| 2.5 | 2 |
| 1.6 | 1 |
| 1.1 | 1 |
| 1.0 | 1 |
| -1.0 | -1 |
| -1.1 | -2 |
| -1.6 | -2 |
| -2.5 | -3 |
| -5.5 | -6 |
public static final RoundingMode HALF_UP
Example:
| Input Number | Input rounded to one digit with HALF_UP rounding |
|---|---|
| 5.5 | 6 |
| 2.5 | 3 |
| 1.6 | 2 |
| 1.1 | 1 |
| 1.0 | 1 |
| -1.0 | -1 |
| -1.1 | -1 |
| -1.6 | -2 |
| -2.5 | -3 |
| -5.5 | -6 |
public static final RoundingMode HALF_DOWN
Example:
| Input Number | Input rounded to one digit with HALF_DOWN rounding |
|---|---|
| 5.5 | 5 |
| 2.5 | 2 |
| 1.6 | 2 |
| 1.1 | 1 |
| 1.0 | 1 |
| -1.0 | -1 |
| -1.1 | -1 |
| -1.6 | -2 |
| -2.5 | -2 |
| -5.5 | -5 |
public static final RoundingMode HALF_EVEN
Example:
| Input Number | Input rounded to one digit with HALF_EVEN rounding |
|---|---|
| 5.5 | 6 |
| 2.5 | 2 |
| 1.6 | 2 |
| 1.1 | 1 |
| 1.0 | 1 |
| -1.0 | -1 |
| -1.1 | -1 |
| -1.6 | -2 |
| -2.5 | -2 |
| -5.5 | -6 |
public static final RoundingMode UNNECESSARY
Example:
| Input Number | Input rounded to one digit with UNNECESSARY rounding |
|---|---|
| 5.5 | throw ArithmeticException |
| 2.5 | throw ArithmeticException |
| 1.6 | throw ArithmeticException |
| 1.1 | throw ArithmeticException |
| 1.0 | 1 |
| -1.0 | -1 |
| -1.1 | throw ArithmeticException |
| -1.6 | throw ArithmeticException |
| -2.5 | throw ArithmeticException |
| -5.5 | throw ArithmeticException |
| Method Detail |
|---|
public static final RoundingMode[] values()
for(RoundingMode c : RoundingMode.values()) System.out.println(c);
public static RoundingMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static RoundingMode valueOf(int rm)
BigDecimal
.
rm
- legacy integer rounding mode to convert
IllegalArgumentException
- integer is out of range
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.


How Art Nouveau influenced the psychedelic art of the '60s
by Rusty BlazenhoffThe Art Nouveau movement was started in response to a rapidly-changing -- and in the eyes of artists, ugly -- world. So it makes sense that the San Francisco artists designing rock posters, album covers, and the like in the 1960s would crib Art Nouveau's distinct style.  While these free-spirited designers took heavy inspiration from Art Nouveau, they made their art their own by popping the colors to be vibrant and high-contrast, according to this Vox video.


[1]
-----------; -----------
[2]
Processing speed, power, balanced weight; poor lens options as kit,


Use appropriate method calls from the
List ADT to create the following list:
< listel1 listel2
| listel3 listel4 >
You should assume that L is passed to the function as an empty list.
Look at the list ADT, and use method calls from there to manipulate what is on list L.


Visualize a social network is a very common graph analysis. Here’s an implementation for a Twitter network of Elon Musk using tweepy and gephi.
First we will utilize the Twitter API. Once you get the key and token codes, we can start requesting data through the keys.
auth = tweepy.OAuthHandler(api_key, api_secret)
auth.set_access_token(token, token_secret)
api = tweepy.API(auth)
Next we can get the top 20 friends using tweepy. Twitter API has a limit where one can only send a number of request per mins, so a sleep timer can be used to get around that:
friendList = [];
while True:
try:
for user in tweepy.Cursor(api.friends, screen_name="elonmusk").items(20):
friendList.append((root_user, user.screen_name))
break;
except tweepy.RateLimitError:
time.sleep(60);
continue;
We can also get followers for each friend from the friend list that we just got.
followerList = [];
for friend_tuple in friendList:
while True:
try:
for user in tweepy.Cursor(api.followers, friend_tuple[1]).items(20):
followerList.append((friend_tuple[1], user.screen_name))
break;
except tweepy.RateLimitError:
time.sleep(60);
continue;
Putting the 2 arrays together:
all = friendList + followerList;
And we can write the data into a csv file, which should just have 2 columns. The first column should be the source and the second column should be the friends or follower of the source. The table should look like this:
| elonmusk | TalulahRiley |
| elonmusk | imgur |
| elonmusk | RickandMorty |
Now we can load the table into gephi. The settings can be modified. The below plot is made with “force atlas” layout. Node sizes and node label sizes are adjusted by proportional weight.
The settings of gephi can be customized in detail. For tutorials on how to use gephi, here’s a link to documentations that helped a lot:


Stop wasting hours searching. Pooch-pin all you and your dog need on the go. Sign up today for free! For more pawsome updates and an invite to our new iOS and Android App coming Spring 2019!
Search
Search our categories at home or on the go
Sign Up
Register For FREE now! You get monthly updates on discounts and events!
Pooch-pin
Pooch-Pin & Save Your Favourites on the go!
With our new geo location app you can find and save whatever you need on the go or at home. Wherever you are in the UK and USA! (Coming Spring 2019!)
Sign up today for free, and pooch-pin your faves to your dashboard today!
Register for freeSign up below, to join our pooch friendly newsletter each month. Receive free discounts, vlogs and only pooch news. No spam! (we paw promise)


--- layout: post title: Should I Stay or Should I Go... date: '2011-12-05T16:49:00-06:00' tags: - Facebook - gowalla - acquisition permalink: /post/13793459417/should-i-stay-or-should-i-go ---
Gowalla was acquired by Facebook and I’m left with a decision of what to do next.
Its been a wild and crazy ride at Gowalla, I’ve enjoyed making some great features and a build a revolutionary product. No mater what happens the band is breaking up, and the curtains are closing in. Some of us are forging towards and will continue to work for Facebook while others are taking the opportunity to explore new ventures. While I would love nothing more than to continue to work on this product I love, that just isn’t a possibility.
I’ve been asked quite frequently on twitter about my future plans. And I’m here to say: It’s complicated. Being acquired has certainly been good for me but…
I am not a part of the team being shipped over to Palo Alto and I haven’t made up my mind about where i’ll go next. I’m currently in talks with several companies both in Austin, Tx and in California and I haven’t yet made that decision.
I’ve grown a lot since I first started at Gowalla, and I just don’t want to stop now. There are plenty of good problems out there, and I aim to make a good dent in them. I need to find that next big challenge out there. I’ll keep everyone posted as I move forward.
Thanks for the good times @Gowalla it was fun while it lasted, i can’t wait to see what new adventures the future brings.
Twitter: @schneems
Github: github.com/schneems
LinkedIN: Richard Schneeman


Phaser
Phaser is a fast, free and fun open source HTML5 game framework. It uses Pixi.js for WebGL and Canvas rendering across desktop and mobile web browsers. Games can be compiled to iOS and Android apps via 3rd party tools.
Along with the fantastic open source community Phaser is actively developed and maintained by Photon Storm Limited. As a result of rapid support and a developer friendly API Phaser is currently one of the most starred game frameworks on Github.
Thousands of developers worldwide use it. From indies and multi-national digital agencies to schools and Universities. Each creating their own incredible games. Grab the source and join in the fun!
- Visit: The Phaser website and follow on Twitter (#phaserjs)
- Learn: API Documentation, Support Forum and StackOverflow
- Code: 700+ Source Examples (also available in this git repo)
- Read: Subscribe to the Newsletter and grab our Phaser Books
- Chat: #phaserio IRC channel or our Slack Channel
- Extend: With Phaser Plugins
- Be awesome: Support the future of Phaser on Patreon or by buying our books
Index
- What's New?
- Support Phaser
- Download Phaser
- Getting Started
- Using Phaser
- Games made with Phaser
- Requirements
- Road Map
- Change Log
- Contributing
What's new in Phaser 2.4.4
15th October 2015
The release of Phaser 2.4.4 continues our work with bug fixes, new features and optimizations. As with the previous version it's a point-release, making it a safe upgrade for anyone using an earlier 2.4 build.
Internally here at Phaser HQ we have been busy with several new projects.
First we released Interphase, a new 400-page publication for Phaser developers. Packed full of exclusive content including 8 complete games, tutorials and a deep dive into the Phaser State Manager. It's been a blast to write and we have been really encouraged by the response from readers. We're planning on releasing Interphase 2 before the end of the year.
We've also released Particle Storm. An advanced particle system allowing you to easily create stunning special effects in your games with just a few lines of code. Our primary design goal was to create a particle system that was extremely flexible. It was important that you should be able to easily integrate the effects into your games. Particles are constructed through easy-to-understand JavaScript objects with multiple properties and options to let you quickly put together complex visuals with minimum effort.
As we close in towards the end of 2015 there are still a couple of new releases on the horizon, as well as Phaser 2.4.5. We're also getting very close to a fully working build of Phaser 2 using our new renderer. As always, keep you eyes on the Phaser web site or Twitter for the latest news.
Finally we'd be extremely grateful if you could get involved with our Phaser Patreon campaign. The uptake so far has been fantastic. Thank you to everyone who now supports Phaser development and shares our belief in the future of HTML5 gaming and Phasers role in that.
Happy coding everyone! See you on the forums.
Cheers,
Rich - @photonstorm
Support Phaser on Patreon
Please help support the future development of Phaser through our Patreon campaign. We've some exciting plans and there's so much we'd like to do. Let's see if we can all work together to make this possible.
Phaser Sponsors
Phaser is sponsored by the following great companies:
QICI Engine: A powerful one-stop integrated Phaser game editor
Zenva Academy: Online courses on Phaser, HTML5 and native app development
Download Phaser
Phaser is hosted on Github. There are a number of ways to download it:
- Clone the git repository via https, ssh or with the Github Windows or Mac clients.
- Download as zip or tar.gz
- Download just the build files: phaser.js and phaser.min.js
- Checkout with svn
Bower / npm
Install via bower
bower install phaser
Install via npm
npm install phaser
CDN
jsDelivr is a "super-fast CDN for developers". Include the following in your html:
<script src="//cdn.jsdelivr.net/phaser/2.4.4/phaser.js"></script>
or the minified version:
<script src="//cdn.jsdelivr.net/phaser/2.4.4/phaser.min.js"></script>
cdnjs.com also offers a free CDN service. They have all versions of Phaser and even the custom builds:
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/2.4.4/phaser.js"></script>
Phaser Sandbox
If you'd like to try coding in Phaser right now, with nothing more than your web browser then you can head over to the Phaser Sandbox. You'll find Quick Start templates and a user-friendly editor filled with handy code-completion features.
Koding
Want to try Phaser without downloading anything? The site Koding offer a complete browser-based virtual machine to work in, allowing you to clone the Phaser repo and start work immediately.
License
Phaser is released under the MIT License.
Getting Started
We have a Getting Started Guide which covers all you need to begin developing games with Phaser. From setting up a web server, to picking an IDE and coding your first game.
Prefer videos to reading? Lynda.com have published a free course: HTML5 Game Development with Phaser
The single biggest Phaser resource is the new Phaser web site. It has hundreds of tutorials listed and fresh ones are added every week, so keep coming back to see what's new!
Using Phaser with TypeScript? Check out this great series of Game From Scratch tutorials.
Source Code Examples
Ever since we started Phaser we've been growing and expanding our extensive set of source code examples. Currently there are over 700 of them!
Browse the Phaser Examples or clone the examples repo and eat your heart out!
Interphase
Interphase is a new book for Phaser developers of all skill levels.
With 400 pages of content you'll find detailed articles, game development "Making Of" guides and tutorials. All were written using the latest version of Phaser, so you won't be learning any out-dated tricks here.
As well as the book you get all the source code, graphics and assets to go with it, as well as lots of extras too.
Game Mechanic Explorer
The Game Mechanic Explorer is a great interactive way to learn how to develop specific game mechanics in Phaser. Well worth exploring once you've got your dev environment set-up.
Mighty Editor - Visual Game Editor
MightyEditor is a browser-based visual Phaser game editor. Create your maps with ease, position objects and share them in seconds. It also exports to native Phaser code. Excellent for quickly setting-up levels and scenes.
Using Phaser
Phaser is provided ready compiled in the build
folder of the repository. There are both plain and minified versions. The plain version is for use during development and the minified version for production.
Custom Builds
Starting from Phaser 2.3.0 we now include a brand new build system which allows you to strip out lots of additional features you may not require, saving hundreds of KB in the process. Don't use any Sound in your game? Then you can now exclude the entire sound system. Don't need Keyboard support? That can be stripped out too.
As a result of this work the minimum build size of Phaser is now just 80KB minified and gzipped.
See the Creating a Custom Phaser Build tutorial for details.
Building from source
Should you wish to build Phaser from source you can take advantage of the provided Grunt scripts. Ensure you have the required packages by running npm install
first.
Run grunt
to perform a default build to the dist
folder.
Games made with Phaser
Thousands of games have been made in Phaser. From game jam entries to titles by some of the largest entertainment brands in the world. Here is a tiny sample:
Artwork copyright their respective owners.
We add new games to the Phaser site weekly, so be sure to send us yours when it's finished!
Requirements
Phaser requires a web browser that supports the canvas tag. This includes Internet Explorer 9+, Firefox, Chrome, Safari and Opera on desktop. iOS Safari, Android Browser and Chrome for Android are supported on mobile.
While Phaser does its best to ensure a consistent cross-platform experience always be aware of browser and device limitations. This is especially important with regard to memory and GPU limitations on mobile, and legacy browser HTML5 compatibility.
IE9
If you need to support IE9 / Android 2.x and use P2 physics then you must use the polyfill in the resources/IE9 Polyfill
folder. If you don't use P2 (or don't care about IE9!) you can skip this.
JavaScript and TypeScript
Phaser is developed in JavaScript. We've made no assumptions about how you like to code and were careful not to impose a strict structure upon you. You won't find Phaser split into modules, requiring a build step, or making you use a class / inheritance OOP approach. That doesn't mean you can't do so, it just means we don't force you to. It's your choice.
If you code with TypeScript there are comprehensive definition files in the typescript
folder. They are for TypeScript 1.4+.
Road Map
The majority of Phaser development is now taking place on the Phaser 3 project. The Phaser 2 branch will still be supported and issues fixed, but roadmap features have been migrated over to Phaser 3.
Phaser 3
We're now a good way in to development of Phaser 3. We've been working hard on creating a brand new and extremely powerful renderer. Progress reports are posted to the web site and Phaser 3 repo.
There is still plenty of time to add your suggestions and feedback in this forum thread.
If you are an exceptional JavaScript developer and would like to join the Phaser 3 development team then let us know. We have a limited budget available to pay towards your time.
Phaser Nano
Phaser Nano is a cut-down and optimized build of Phaser designed specifically for super low file-size environments such as banner ads and interstitials. It still uses the same friendly API as Phaser but in a much smaller footprint. The current release being just 8.3KB.
Change Log
Version 2.4.4 - "Amador" - 15th October 2015
New Features
- Emitter.emitParticle now has 4 new optional arguments:
x
,y
,key
andframe
. These allow you to override whatever the Emitter default values may be and emit the particle from the given coordinates and with a new texture. - Group.resetChild is a new method that allows you to call both
child.reset
and/orchild.loadTexture
on the given child object. This is used internally bygetFirstDead
and similar, but is made public so you can use it as a group iteration callback. Note that the child must have publicreset
andloadTexture
methods to be valid for the call. - Group.getFirstDead, Group.getFirstAlive and Group.getFirstExists all have new optional arguments:
createIfNull
,x
,y
,key
andframe
. If the method you call cannot find a matching child (i.e. getFirstDead cannot find any dead children) then the optionalcreateIfNull
allows you to instantly create a new child in the group using the position and texture arguments to do so. This allows you to always get a child back from the Group and remove the need to do null checks and Group inserts from your game code. The same arguments can also be used in a different way: ifcreateIfNull
is false AND you provide the extra arguments AND a child is found then it will be passed to the newGroup.resetChild
method. This allows you to retrieve a child from the Group and have it reset and instantly ready for use in your game without any extra code. - P2.Body.removeCollisionGroup allows you to remove the given CollisionGroup, or array of CollisionGroups, from the list of groups that a body will collide with and updates the collision masks (thanks @Garbanas #2047)
- Filter.addToWorld allows you to quickly create a Phaser.Image object at the given position and size, with the Filter ready applied to it. This can eliminate lots of duplicate code.
- Tiled 0.13.0 added support for layer data compression when exporting as JSON. This means that any .tmx stored using base64 encoding will start exporting layer data as a base64 encoded string rather than a native array. This update adds in automatic support for this as long as the data isn't compressed. For IE9 support you'll need to use the new polyfill found in the resources folder (thanks @noidexe #2084)
- You can now load single layer Pyxel Edit TileMaps as an atlas (thanks @joshpmcghee #2050)
- Canvas.getSmoothingPrefix will return the vendor prefixed smoothing enabled value from the context if set, otherwise null.
- The Random Number Generator can now get and set its state via rnd.state. This allows you to do things like saving the state of the generator to a string that can be part of a save-game file and load it back in again (thanks @luckylooke #2056 #1900)
- Device.iOSVersion now contains the major version number of iOS.
- The new
PointerMode
enumeration value has been added for better simple input discrimination in the future, between active pointers such as touch screens and passive pointers, such as mouse cursors (thanks @pnstickne #2062) - Button.justReleasedPreventsOver controls if a just-release event on a pointer prevents it from being able to trigger an over event.
- Button.forceOut expanded to accept a PointerMode value such that it can be controlled per-input mode.
- Phaser.KeyCode is a new pseudo-type used by the Keyboard class (and your code) to allow for separation of all the Keyboard constants to their own file. This stops the JSDocs from becoming 'polluted' and allows for easier future expansion (thanks @pnstickne #2118 #2031)
Updates
- TypeScript definitions fixes and updates (thanks @clark-stevenson @milkey-mouse @timotei @qdrj @Garbanas @cloakedninjas)
- Docs typo fixes (thanks @rwrountree @yeluoqiuzhi @pnstickne @fonsecas72 @JackMorganNZ @caryanne)
- Math.average has been optimized (thanks @rwrountree #2025)
- When calling GameObject.revive the
heal
method is called to apply the health value, allowing it to take into consideration amaxHealth
value if set (thanks @bsparks #2027) - Change splice.call(arguments, ..) to use slice instead (thanks @pnstickne #2034 #2032)
- BitmapData.move, moveH and moveV have a new optional
wrap
argument allowing you to control if the contents of the BitmapData are wrapped around the edges (true) or simply scrolled off (false). - Time.desiredFps has moved to a getter / setter.
- Time.physicsElapsed and Time.physicsElapsedMS are no longer calculated every frame, but only when the desiredFps is changed.
- Time.update has been streamlined and the
updateSetTimeout
andupdateRAF
methods merged and duplicate code removed. - Time.desiredFpsMult is a pre-calculated multiplier used in Game.update.
- Time.refresh updates the
Time.time
andTime.elapsedMS
values and is called automatically by Game.update. - DeviceButton was setting a
duration
property on itself, which went against the read only getter of duration (thanks @winstonwolff) - Added Node.js v4 stable to Travis config (thanks @phillipalexander #2070)
- Optimised Canvas.getSmoothingEnabled, Canvas.setSmoothingEnabled and Canvas.setImageRenderingCrisp.
- The Physics Editor Exporter (found in the resources folder of the repo) has had an option to prefix shape names and optimize JSON output added to it (thanks @Garbanas #2093)
- Touch.addTouchLockCallback has a new argument
onEnd
which allows the callback to fire either on a touchstart or a touchend event. - The SoundManager now detects if the browser is running under iOS9 and uses a touchend callback to unlock the audio subsystem. Previous versions of iOS (and Android) still use touchstart. This fixes Apple's screw-up with regard to changing the way Web Audio should be triggered in Mobile Safari. Thanks Apple (thanks @MyCatCarlos for the heads-up #2095)
- InputHandler.validForInput now checks if the game object has
input.enabled
set tofalse
and doesn't validate it for input if that's the case. - The default Button.onOverMouseOnly value has changed from
false
totrue
. If you used this in your touch enabled games then please be aware of this change (#2083) - BitmapData.clear now automatically calls BitmapData.update at the end of it.
- New Color stub added for the custom build process. Contains just the bare minimum of functions that Phaser needs to work. Cuts file size from 48.7KB to 7.4KB. Note: Do not stub this out if using BitmapData objects.
- New DOM stub added for the custom build process. Contains just the bare minimum of functions that Phaser needs to work. Cuts file size from 14.8KB to 2.4KB. Note: Do not stub this out if using the full Scale Manager.
- New Scale Manager stub added. Removes all Scale Manager handling from Phaser! But saves 75KB in the process. If you know you don't need to scale the Phaser canvas, or are handling that externally, then you can safely stub it out in a custom build.
- Added the PIXI.PolyK, PIXI.WebGLGraphics and PIXI.CanvasGraphics files to the Graphics custom build option. They weren't used anyway and this removes an extra 40.2KB from the build size.
- Phaser.Create no longer automatically creates a BitmapData object when it starts. It now only does it when you first make a texture or grid.
- New Create stub added for the custom build process. Cuts file size by 8KB.
- You can now exclude the FlexGrid from custom builds, saving 15KB.
- The ScaleManager no longer creates a Phaser.FlexGrid if the class isn't available (i.e. excluded via a custom build)
- Time.suggestedFps is now defaulted to
Time.desiredFps
for the first few frames until things have settled down (previously it wasnull
) (thanks @noidexe #2130) - Text with anchor 0.5 and word wrap would have an extra space added to its width calculations, this is now adjusted for (thanks @nickryall #2052 #1990)
- ScaleManager.getParentBounds now checks if
parentNode
has anoffsetParent
before callinggetBoundingClientRect
on it (thanks @McFarts #2134)
Bug Fixes
- Loader.bitmapFont wouldn't automatically set the
atlasURL
value if just the key was given. - The Loader would put the baseURL and/or path in front of
data:
andblob
URLs (thanks @rblopes #2044) - When the Text width was being calculated it would add the
strokeThickness
value twice, causing an alignment offset (thanks @nickryall #2039) - Sound.onEndedHandler has a fix for AudioBufferSourceNode listener memory leak (thanks @Pappa #2069)
- Game.update could call
updateLogic
multiple times in a single frame when catching up with slow device frame rates. This would cause Tweens to advance at twice the speed they should have done (thanks @mkristo) - Added useCapture flags to removeEventListener in MSPointer class (thanks @pmcmonagle #2055)
- Under setTimeOut (or when
forceSetTimeOut
was true) the Time was incorrectly settingTime.timeExpected
causing game updates to lag (thanks @satan6 #2087) - Fixes edge case when TilingSprite is removed before render (thanks @pnstickne #2097 #2092)
- Camera.setBoundsToWorld only adjusts the bounds if it exists (thanks @prudolfs #2099)
- Keyboard.addCallbacks didn't check to see if the arguments were
null
, only if they wereundefined
making the jsdocs misleading. - ScaleManager.getParentBounds now takes any transforms into account to get the correct parent bounds (thanks @jdnichollsc #2111 #2098)
- Cache.addBitmapFont now applies a default value for the x and y spacing if the arguments are omitted (thanks @nlotz #2128)
- Removed use of the
tilePosition
property in the Phaser.Rope class as it isn't implemented and caused calls toRope.reset
to crash (thanks @spayton #2135) - ScaleMin and ScaleMax stopped working in Phaser 2.3.0 due to an incorrect transform callback scope (thanks @brianbunch #2132)
Pixi Updates
Please note that Phaser uses a custom build of Pixi and always has done. The following changes have been made to our custom build, not to Pixi in general.
- CanvasRenderer.mapBlendModes optimised to cut down on file size.
- PIXI.WebGLRenderer.updateTexture now returns a boolean depending on if the texture was successfully bound to the gl context or not.
- PIXI.WebGLSpriteBatch.renderBatch would still try and render a texture even if
updateTexture
failed to bind it. It now checks the return value fromupdateTexture
and ignores failed binds. - WebGLRenderer.mapBlendModes optimised to cut down on file size.
- Sprite.getBounds would report an inaccurate value if the sprite was negatively scaled (causing things like generateTexture to be cut off) (thanks @DavidAPC #2108)
- Removed DisplayObject.transformCallback as it's a Game Object component.
- BaseTexture.skipRender is a new boolean that can be set to skip the rendering phase in the WebGL Sprite Batch. You may want to do this if you have a parent Sprite with no visible texture (i.e. uses the internal
__default
texture) that has children that you do want to render, without causing a batch flush in the process.
For changes in previous releases please see the extensive Version History.
Contributing
Please read the Contributors Guide for full details on helping with Phaser, but the main points are:
Found a bug? Report it on GitHub Issues and include a code sample.
Pull Requests should only be made against the
dev
branch. Never againstmaster
.Before submitting a Pull Request run your code through JSHint using our config.
Before contributing please read the code of conduct.
Written something cool that shows Phaser in use? Please tell us about it in our forum or email<EMAIL_ADDRESS>Phaser is a Photon Storm production.
Created by Richard Davey. Powered by coffee, anime, pixels and love.
The Phaser logo and characters are © 2015 Photon Storm Limited.
All rights reserved.
"Above all, video games are meant to be just one thing: fun. Fun for everyone." - Satoru Iwata


'''
created: August 15, 2014
last update: June 6 2015
version 0.2.5
James Houghton<EMAIL_ADDRESS>'''
#pysd specific imports
import translators as _translators
#third party imports
from scipy.integrate import odeint as _odeint
import pandas as _pd
import numpy as np
import imp
######################################################
# Todo:
# - passing optional arguments in the run command through to the integrator,
# to give a finer level of control to those who know what to do with them. (such as `tcrit`)
# - add a logical way to run two or more models together, using the same integrator.
# - import translators within read_XMILE and read_Vensim, so we don't load both if we dont need them
######################################################
######################################################
# Issues:
#
# If two model components (A, and B) depend on the same third model component (C)
# then C will get computed twice. If C itself is dependant on many upstream components (D, E, F...)
# then these will also be computed multiple times.
#
# As the model class depends on its internal state for calculating
# the values of each element, instead of passing that state
# through the function execution network, we can't use caching
# to prevent multiple execution, as we don't know when to update the cache
# (maybe in the calling function?)
#
# Also, this multi-calculation bears the risk that if the state is
# changed during an execution step, the resulting calculation will be
# corrupted, and we won't have any indication of this corruption.
######################################################
[docs]def read_xmile(xmile_file):
""" Construct a model object from `.xmile` file. """
py_model_file = _translators.translate_xmile(xmile_file)
model = load(py_model_file)
model.__str__ = 'Import of ' + xmile_file
return model
read_xmile.__doc__ += _translators.translate_xmile.__doc__
[docs]def read_vensim(mdl_file):
""" Construct a model from Vensim `.mdl` file. """
py_model_file = _translators.translate_vensim(mdl_file)
model = load(py_model_file)
model.__str__ = 'Import of ' + mdl_file
return model
read_vensim.__doc__ += _translators.translate_vensim.__doc__
[docs]def load(py_model_file):
""" Load a python-converted model file. """
module = imp.load_source('modulename', py_model_file)
component_class = module.Components
model = PySD(component_class)
model.__str__ = 'Import of ' + py_model_file
return model
[docs]class PySD(object):
"""
PySD is the default class charged with running a model.
It can be initialized by passing an existing component class.
The import functions pull models and create this class.
"""
def __init__(self, component_class):
""" Construct a PySD object built around the component class """
self.components = component_class()
self.record = []
[docs] def __str__(self):
""" Return model source file """
return self.components.__str__
[docs] def run(self, params={}, return_columns=[], return_timestamps=[],
initial_condition='original', collect=False, **intg_kwargs):
""" Simulate the model's behavior over time.
Return a pandas dataframe with timestamps as rows,
model elements as columns.
Parameters
----------
params : dictionary
Keys are strings of model component names.
Values are numeric or pandas Series.
Numeric values represent constants over the model integration.
Timeseries will be interpolated to give time-varying input.
return_timestamps : list, numeric, numpy array(1-D)
Timestamps in model execution at which to return state information.
Defaults to model-file specified timesteps.
return_columns : list of string model component names
Returned dataframe will have corresponding columns.
Defaults to model stock values.
initial_condition : 'original'/'o', 'current'/'c', (t, {state})
The starting time, and the state of the system (the values of all the stocks)
at that starting time.
* 'original' (default) uses model-file specified initial condition
* 'current' uses the state of the model after the previous execution
* (t, {state}) lets the user specify a starting time and (possibly partial)
list of stock values.
collect: binary (T/F)
When running multiple simulations, collect the results in a way
that we can access down the road.
intg_kwargs: keyword arguments for odeint
Provides precice control over the integrator by passing through
keyword arguments to scipy's odeint function. The most interesting
of these will be `tcrit`, `hmax`, `mxstep`.
Examples
--------
>>> model.run(params={'exogenous_constant':42})
>>> model.run(params={'exogenous_variable':timeseries_input})
>>> model.run(return_timestamps=[1,2,3.1415,4,10])
>>> model.run(return_timestamps=10)
>>> model.run(return_timestamps=np.linspace(1,10,20))
See Also
--------
pysd.set_components : handles setting model parameters
pysd.set_initial_condition : handles setting initial conditions
"""
if params:
self.set_components(params)
if initial_condition != 'current':
self.set_initial_condition(initial_condition)
tseries = self._build_timeseries(return_timestamps)
# the odeint expects the first timestamp in the tseries to be the initial condition,
# so we may need to add the t0 if it is not present in the tseries array
addtflag = tseries[0] != self.components.t
if addtflag:
tseries = np.insert(tseries, 0, self.components.t)
res = _odeint(func=self.components.d_dt,
y0=self.components.state_vector(),
t=tseries,
**intg_kwargs)
#hmax=self.components.time_step())
state_df = _pd.DataFrame(data=res,
index=tseries,
columns=self.components._stocknames)
return_df = self.extend_dataframe(state_df, return_columns) if return_columns else state_df
if addtflag:
return_df.drop(return_df.index[0], inplace=True)
if collect:
self.record.append(return_df) #we could just record the state, and expand it later...
# The integrator takes us past the last point in the tseries.
# Go back to it, in order to maintain the state at a predictable location.
# This may take up more time than we're willing to spend...
if self.components.t != tseries[-1]:
self.set_state(tseries[-1], dict(state_df.iloc[-1]))
return return_df
[docs] def get_record(self):
""" Return the recorded model information.
>>> model.get_record()
"""
return _pd.concat(self.record)
[docs] def clear_record(self):
""" Reset the recorder.
>>> model.clear_record()
"""
self.record = []
[docs] def set_components(self, params):
""" Set the value of exogenous model elements.
Element values can be passed as keyword=value pairs in the function call.
Values can be numeric type or pandas Series.
Series will be interpolated by integrator.
Examples
--------
>>> br = pandas.Series(index=range(30), values=np.sin(range(30))
>>> set_components(birth_rate=br)
>>> set_components(birth_rate=10)
"""
updates_dict = {}
for key, value in params.iteritems():
if isinstance(value, _pd.Series):
updates_dict[key] = self._timeseries_component(value)
else: #could check here for valid value...
updates_dict[key] = self._constant_component(value)
self.components.__dict__.update(updates_dict)
[docs] def extend_dataframe(self, state_df, return_columns):
""" Calculates model values at given system states
This is primarily an internal method used by the run function
"""
#there may be a better way to use the integrator that lets us report
#more values than just the stocks. In the meantime, we have to go
#through the returned values again, set up the model, and measure them.
def get_values(row):
""" Helper method that lets us use 'apply' below """
t = row.name
state = dict(row[self.components.state.keys()])
self.set_state(t, state)
return_vals = {}
for column in return_columns: #there must be a faster way to do this...
func = getattr(self.components, column)
return_vals[column] = func()
return _pd.Series(return_vals)
return state_df.apply(get_values, axis=1)
[docs] def set_state(self, t, state):
""" Set the system state.
t : numeric
The system time
state: dict
Idelly a complete dictionary of system state, but a partial
state dictionary will work if you're confident that the remaining
state elements are correct.
"""
self.components.t = t
self.components.state.update(state)
[docs] def set_initial_condition(self, initial_condition):
""" Set the initial conditions of the integration.
There are several ways to do this:
* 'original'/'o' : Reset to the model-file specified initial condition.
* 'current'/'c' : Use the current state of the system to start
the next simulation. This includes the simulation time, so this
initial condition must be paired with new return timestamps
* (t, {state}) : Lets the user specify a starting time and list of stock values.
>>> model.set_initial_condition('original')
>>> model.set_initial_condition('current')
>>> model.set_initial_condition( (10,{teacup_temperature:50}) )
See also:
pysd.set_state()
"""
if isinstance(initial_condition, tuple):
#we should probably check the values more than just seeing if they are a tuple.
self.set_state(*initial_condition)
elif isinstance(initial_condition, str):
if initial_condition.lower() in ['original', 'o']:
self.components.reset_state()
elif initial_condition.lower() in ['current', 'c']:
pass
else:
raise ValueError('Valid initial condition strings include: \n'+
' "original"/"o", \n'+
' "current"/"c"')
else:
raise TypeError('Check documentation for valid entries')
def _build_timeseries(self, return_timestamps):
""" Build up array of timestamps """
if return_timestamps == []:
tseries = np.arange(self.components.initial_time(),
self.components.final_time(),
self.components.time_step())
elif isinstance(return_timestamps, (list, int, float, long, np.ndarray)):
tseries = np.array(return_timestamps, ndmin=1)
else:
raise TypeError('`return_timestamps` expects a list, array, or numeric value')
return tseries
#these could be better off in a model creation class
def _timeseries_component(self, series):
""" Internal function for creating a timeseries model element """
return lambda: np.interp(self.components.t, series.index, series.values)
def _constant_component(self, value):
""" Internal function for creating a constant model element """
return lambda: value


|
| Value |
Description |
Notes |
|
| 10 |
Text (eye-readable) |
Readable text of the main work: this value is required, together with applicable <ProductForm> and <ProductFormDetail> values,
to designate an e-book or other digital product whose primary content is eye-readable text
|
| 15 |
Extensive links between internal content |
E-publication is enhanced with a significant number of actionable cross-references, hyperlinked notes and annotations, or
with other links between largely textual elements (eg quiz/test questions, ‘choose your own ending’ etc)
|
| 14 |
Extensive links to external content |
E-publication is enhanced with a significant number of actionable (clickable) web links |
| 16 |
Additional eye-readable text not part of main work |
E-publication is enhanced with additional textual content such as interview, feature article, essay, bibliography, quiz/test,
other background material or text that is not included in a primary or ‘unenhanced’ version
|
| 17 |
Promotional text for other book product |
eg Teaser chapter |
| 11 |
Musical notation |
|
| 07 |
Still images / graphics |
Use only when no more detailed specification is provided |
| 18 |
Photographs |
Whether in a plate section / insert, or not |
| 19 |
Figures, diagrams, charts, graphs |
Including other ‘mechanical’ (ie non-photographic) illustrations |
| 20 |
Additional images / graphics not part of main work |
E-publication is enhanced with additional images or graphical content such as supplementary photographs that are not included
in a primary or ‘unenhanced’ version
|
| 12 |
Maps and/or other cartographic content |
|
| 01 |
Audiobook |
Audio recording of a reading of a book or other text |
| 02 |
Performance – spoken word |
Audio recording of a drama or other spoken word performance |
| 13 |
Other speech content |
eg an interview, not a ‘reading’ or ‘performance’) |
| 03 |
Music recording |
Audio recording of a music performance, including musical drama and opera |
| 04 |
Other audio |
Audio recording of other sound, eg birdsong |
| 21 |
Partial performance – spoken word |
Audio recording of a reading, performance or dramatization of part of the work |
| 22 |
Additional audio content not part of main work |
Product is enhanced with audio recording of full or partial reading, performance, dramatization, interview, background documentary
or other audio content not included in the primary or ‘unenhanced’ version
|
| 23 |
Promotional audio for other book product |
eg Reading of teaser chapter |
| 06 |
Video |
Includes Film, video, animation etc. Use only when no more detailed specification is provided. Formerly ‘Moving images’ |
| 26 |
Video recording of a reading |
|
| 27 |
Performance – visual |
Video recording of a drama or other performance, including musical performance |
| 24 |
Animated / interactive illustrations |
eg animated diagrams, charts, graphs or other illustrations |
| 25 |
Narrative animation |
eg cartoon, animatic or CGI animation |
| 28 |
Other video |
Other video content eg interview, not a reading or performance |
| 29 |
Partial performance – video |
Video recording of a reading, performance or dramatization of part of the work |
| 30 |
Additional video content not part of main work |
E-publication is enhanced with video recording of full or partial reading, performance, dramatization, interview, background
documentary or other content not included in the primary or ‘unenhanced’ version
|
| 31 |
Promotional video for other book product |
eg Book trailer |
| 05 |
Game / Puzzle |
No multi-user functionality. Formerly just ‘Game’ |
| 32 |
Contest |
Includes some degree of multi-user functionality |
| 08 |
Software |
Largely ‘content free’ |
| 09 |
Data |
Data files |
| 33 |
Data set plus software |
|
| 34 |
Blank pages |
Intended to be filled in by the reader |
| 35 |
Advertising content |
Use only where type of advertising content is not stated |
| 37 |
Advertising – first party |
‘Back ads’ – promotional pages for other books (that do not include sample content, cf codes 17, 23) |
| 36 |
Advertising – coupons |
Eg to obtain discounts on other products |
| 38 |
Advertising – third party display |
|
| 39 |
Advertising – third party textual |
|
|


Packages
A source file may start with a package declaration:
package foo.bar
fun baz() { ... }
class Goo { ... }
// ...
All the contents (such as classes and functions) of the source file are contained by the package declared.
So, in the example above, the full name of baz()
is foo.bar.baz
, and the full name of Goo
is foo.bar.Goo
.
If the package is not specified, the contents of such a file belong to "default" package that has no name.
Default Imports
A number of packages are imported into every Kotlin file by default:
- kotlin.*
- kotlin.annotation.*
- kotlin.collections.*
- kotlin.comparisons.* (since 1.1)
- kotlin.io.*
- kotlin.ranges.*
- kotlin.sequences.*
- kotlin.text.*
Additional packages are imported depending on the target platform:
- JVM:
- java.lang.*
- kotlin.jvm.*
- JS:
Imports
Apart from the default imports, each file may contain its own import directives. Syntax for imports is described in the grammar.
We can import either a single name, e.g.
import foo.Bar // Bar is now accessible without qualification
or all the accessible contents of a scope (package, class, object etc):
import foo.* // everything in 'foo' becomes accessible
If there is a name clash, we can disambiguate by using as keyword to locally rename the clashing entity:
import foo.Bar // Bar is accessible
import bar.Bar as bBar // bBar stands for 'bar.Bar'
The import
keyword is not restricted to importing classes; you can also use it to import other declarations:
- top-level functions and properties;
- functions and properties declared in object declarations;
- enum constants.
Unlike Java, Kotlin does not have a separate "import static" syntax; all of these declarations are imported using the regular import
keyword.
Visibility of Top-level Declarations
If a top-level declaration is marked private, it is private to the file it's declared in (see Visibility Modifiers).


×
Dynamsoft
/
Dynamic Web TWAIN
/
Code Gallery
/
Reading PDF417 Barcode on Driver's License
Download SDK
The demo demonstrates how to scan or load a picture of a driver's license which contains a PDF417 Barcode and then extract the information from the barcode.
:


XML Parser for Engine, this class works as a factory for a generic
xml parsing. By default the internal parser will use the following
fallbacks:
A selected parser can be choosen if desired using the setInternalParser() method. The returned XML will be returned in a Tree structure, which is common for all backends.
Parsers may change the internal values of the LibXML configuration during parsing to either get better debuggable information or other reasons.
A selected parser can be choosen if desired using the setInternalParser() method. The returned XML will be returned in a Tree structure, which is common for all backends.
Parsers may change the internal values of the LibXML configuration during parsing to either get better debuggable information or other reasons.


{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
{{editor content=data.combat target="data.combat" button=true owner=owner editable=editable}}
{{editor content=data.use target="data.use" button=true owner=owner editable=editable}}
{{editor content=data.environment target="data.environment" button=true owner=owner editable=editable}}
{{editor content=data.loot target="data.loot" button=true owner=owner editable=editable}}


<meta property="og:title"
content="Workday Sets Price Range for I.P.O." />
<meta property="og:site_name" content="My Favorite News"/>
<meta property="og:url"
content="http://www.myfavnews.com/2013/1/1/workday-price-range" />
<meta property="og:description" content="Workday, " />
<meta property="og:type" content="article" />
<meta property="article:publisher" content="https://www.facebook.com/cnn" />
<meta property="article:author" content="https://www.facebook.com/fareedzakaria" />
<meta property="og:image"
content="http://graphics.myfavnews.com/images/logo-100x100.jpg" />
If no og tags, gets the first line of text on webpage and cycle through all images on page
Good reference share link generator
facebook


Word Finder
Given multiple letters, find all possible words that can be made with those letters.
Done
Reset


CSCTFRawToDigi package performs unpacking
of raw CSC Track-Finder data. It is unlikely that you need it,
unless you are explicitly working with CSC TF data (for Data Quality
Monitoring or hardware validation purposes). So far no High Level Trigger
algorithms are known to use this kind of information.
The package is built around a set of core unpacking classes. Those are
accessors:
CSCSP_MEBlock, CSCSP_MBBlock, CSCSP_SPBlock,
CSCSPHeader, and CSCSPTrailer
and containers:
CSCSPRecord(also accessor), CSCSPEvent, and CSCTFEvent.
Accessors are essentially bit field classes, which directly map corresponding
raw data blocks. Containers hold clones of accessors and other containers
in a certain hierarchy. For references see
hardware specification.
The core unpacking classes can be easily compiled in a stand-alone executable.
An example can be found in
test/test.cc. If you want to use it you need to install CSC file reading
package in your local CMSSW installation (you don't need to compile it):
cvs checkout -P IORawData/CSCCommissioning
Go to EventFilter/CSCTFRawToDigi/test and comlipe the package:
cd EventFilter/CSCTFRawToDigi/test
g++ -o test test.cc -I../../../
After that you can run it on any CSCTF .raw data file:
./test YOUR_RAW_FILE.raw
The package is interfaced to CMSSW with help of 2 modules: CSCTFUnpacker and CSCTFPacker.
With parameter producer of edm::InputTag type the unpacking module can
be instructed to query edm::Event
for data buffers from particular producer (by default this is source:).
If you are analyzing 2008 data, you may skip the reset of this paragraph
and go to next one.
Every Sector Processor board (SP) of the CSC Track-Finder crate is connected to
1 of 12 sectors. The firmware on every board should be configured so, that board
reports which sector it is connected to. Unfortunately, this was not a routine
configuration procedure during CSC SliceTest,
and most of our data, taken earlier than August of 2007, lack this information.
Nevertheless, this can be fixed off-line with help of
integral array-parameter slot2sector. In general it has 22 entries (same as
number of slots in CSC Track-Finder crate) which can be set to either 0 or sector number (112).
0 instructs module to use original sector number from data, while numbers from
1 to 12 override it with corresponding value.
If you work with the CSC SliceTest,
data you probably need default settings of
data/csctfunpacker.cfi or you may want to change the first value of slot2sector
array which assigns data from any "unconfigured" SP to sector number, which you set there.
For raw data obtained in simulation (see below) you need to set all values to 0.
Supplementary CSCTFPacker module helps to generate "fake" raw data file
from CSC TF digi. It can be instructed to use digi from certain producers by setting
lctProducer and trackProducer edm::InputTags accordingly.
It is likely, that you don't need to change other parameters from their default
values (zeroSuppression=true and nTBINs=7 are hardware defaults).
One additional parameter, activeSectors, allows to "skim" data from some
particular sector(s). Any of its 12 bit may be set to 1 or 0 allowing
of denying data from corresponding sectors to be converted to raw buffers.
If you are validating some of SP boards you are likely to set only one of these bits.
Output is controlled by two parameters: outputFile, which sets file name
for storing data in local_DAQ-like format (make it an empty string "" if yo don't
need these files), and putBufferToEvent, which specifies if
edm::Event will be populated with raw data buffers. See
test/writedigi.cfg for example of usage.


SEPTEMBER 11-13, 2014
CHARLOTTE, NC
Responsive Email
Design and Tooling
See the Slides
Thank you, Bermon!
My Favorite Services
Links to Awesome Things
Getting Started
The How-To Guide to Responsive Email Design
Emphasis on "The"
Litmus Learning Center
Multiple resources with great information
MailChimp Email Design Reference
Fantastic collection of information
The Ultimate Guide to CSS
An absolute must and I am so thankful Campaign Monitor made this
Action Rocket Labs
So many good posts
Patterns and Templates
Responsive Email Patterns
Everything you could ever want to do and more, thanks to Brian Graves
Zurb Ink
More templates than patterns, but great to learn from
Antwort
Solid starting templates from Julie Ng
Email Blueprints
Solid patterns from MailChimp
Transactional HTML Email Templates
Clean and well-coded set from Lee Munroe
Gettin' Jiggy Wit It
How to Code HTML5 Video Background in Email
Kevin Mandeville brought sexy back to email and shared how he did it
The Hybrid Coding approach
This is so awesome and I'm working on implementing it in all of mine
The Basics of SVG in Email
You know you wanna use SVG
Email Design Workflow
Lee Munroe shares his awesome approach to building emails
A Few People to Follow
Kevin Mandeville
@KEVINgotbounce
Justine Jordan
@meladorri
Jason Rodriguez
@rodriguezcommaj
Fabio Carneiro
@flcarneiro
Unsubscribe
555 South McDowell Street
South Tower
Charlotte,North Carolina 28204


religious issues
`Prev `__
R
`Next `__
--------------
**religious issues**: n.
Questions which seemingly cannot be raised without touching off `*holy
wars* <../H/holy-wars.html>`__, such as “What is the best operating
system (or editor, language, architecture, shell, mail reader, news
reader)?”, “What about that Heinlein guy, eh?”, “What should we add to
the new Jargon File?” See `*holy wars* <../H/holy-wars.html>`__; see
also `*theology* <../T/theology.html>`__, `*bigot* <../B/bigot.html>`__,
and compare `*rathole* `__.
This term is a prime example of `*ha ha only
serious* <../H/ha-ha-only-serious.html>`__. People actually develop the
most amazing and religiously intense attachments to their tools, even
when the tools are intangible. The most constructive thing one can do
when one stumbles into the crossfire is mumble `*Get a
life!* <../G/Get-a-life-.html>`__ and leave — unless, of course, one's
*own* unassailably rational and obviously correct choices are being
slammed.
--------------
+------------------------------------+----------------------------+-------------------------------+
| `Prev `__ | `Up <../R.html>`__ | `Next `__ |
+------------------------------------+----------------------------+-------------------------------+
| religion of CHI | `Home <../index.html>`__ | replicator |
+------------------------------------+----------------------------+-------------------------------+


Career Profile
Innovative strategist committed to the improvement of existing processes through technological means. Proven contributor in multiple disciplines of information technology.
Experience
- Supervise a team of seven distributed throughout the United States
- Enable hundreds of factories, labs, and buildings to deliver greater business value through connected and secured environments
- Guide customers with mission-critical infrastructure and cyber-physical systems to reduce their cybersecurity risk and improve operational resilience
- Create protection, visibility and insights - to enable proactive risk mitigation as well as accelerated response to help avoid disruption and downtime
- Reduce barriers, enabling busy teams to leverage better data for better results
- Help execute on departmental/company goals, increase shared understanding across teams, foster communication/collaboration, and reduce work friction
- Protect and steward specific use networks (manufacturing, process control, lab, test, etc.) in assigned geographic area comprising upper Midwest
- Drive digital transformation of the North Central US territory, containing three top of the twenty-five sites per IT leadership
- Partner with relevant IT teams to improve reliability and performance of the factory floor
- Study factory environments to heavily reduce downtime and assess operational risk, bridge OT/IT support gap when necessary
- Proactively corrected underlying problems that would have caused significant outages
- Created documentation and scripts for factories to use with the service desk in the event of downtime.
- Designing, implementing, and remediating industrial control networks to emphasize redundant communications, functional separation, and manageable security
- Specialize in medium-term projects involving complex geographically distributed systems with costly downtime effects, particularly network design and firewall policy
- Assisted a midstream oil and gas operator with migrating their production network to an isolated domain; separately helped assess emerging solutions in industrial cybersecurity software
- Designed network and hyperconverged systems for high-availability and reliability at milling operation
- Completed system upgrade of a dairy plant, improving virtualization capabilities and SAN storage
- Left on good terms after a change in the political party majority
- Managed a diverse staff of seven, reorganized into three units: IT Services, Systems, and Development
- Catalyzed continuous improvement throughout organization; guided adoption of new technologies; implemented improved identity and access management and SSO through ADFS 3.0 for Office 365
- Prioritized which internal applications to redevelop, improve, fix, cease development of, or abandon; used JIRA to formalize SDLC of existing and new applications; shared future roadmap with leadership
- Orchestrated IT onboarding efforts of new Senate majority and newly-elected Senators including extensive moving and secondary offices; formalized service offerings
- Pioneered use of an internal Knowledge Base for technical documentation as well as a How-to library for end users; When possible, resolved tickets linked to the relevant KB article
- Instituted IT Service Management (ITSM) model offering a standardized method to record and track work using Atlassian products and ITIL methodology; modeled processes for service desk work
- Created first formal efforts at soliciting feedback from end users, discussing changes through a committee structure, and organizing groups of beta testers
- Deployed private and public WiFi network for the MN Capitol Building, including 150+ wireless access points (WAPs); participated in wireless survey; devised security protocols
- Pitched alternate network topology for Capitol renovation, resulting in $20k savings due to more economical SFPs; network topology included 2 core rooms funneling connectivity to 17 closets
- Managed vendor relationships, support contracts, and maintenance costs; deduplicated when beneficial
- Facilitated joint efforts between development and other IT staff (DevOps) to improve software delivery; guided implementation of BitBucket as first version control server and Bamboo for release management
- Planned transition from Novell OES to Microsoft Active Directory; devised scripts to aid in conversion
- Proposed low-cost in-place upgrade of workstation base; devised method to ensure minimal downtime
- Built robust load-balanced Ubuntu Linux servers for websites and internal/external database connections; saved costs by changing database backend from MS SQL to MySQL.
- Formalized vCenter Server virtualization with enforced templates; migrated to C-series Cisco UCS rack server, integrated this with Nimble hybrid flash storage array
- Centralized logging from as many devices as possible into a syslog-ng instance; logs were then forwarded to a Splunk instance for monitoring and analysis
- Instrumental in the network design and deployment at new building including 22 switches and 37 WAPs
- Manage wired and wireless network; maintained 99.993% uptime during tenure
- Dispatched application updating mechanism and enabled remote support capability for over 350 workstations; technicians could support Senators in their home districts
- Evaluated, then executed modern solutions for IP address tracking and enterprise password management, replacing poorly-maintained text files
- Maintained and developed two higher education websites and applications through shared services
- Used version control system to collaborate with back-end developers
- Recommended potential efficiencies, optimized content for voice, readability and search engines
- Collaborated and planned with department faculty to share unique features of each academic program
- Queried, joined and interpreted proprietary data with SQL for use in web applications
- Devised principal features of redesigned website (wireframes, information architecture, content norms)
- Spearheaded effort to replace EOL content management system and migrate to a newer CMS
- Implemented campus-wide calendar/events system in use by academics, admissions, and student life
- Managed e-Marketing budget; completed ~5 targeted online advertising campaigns annually
- Mentored employees in own department; supervised student employee; served on faculty searches
- Developed several key college websites including Admissions, Library, Online Courses, and Orientation
- Wrote new content and refined existing content to ensure a fresh, clear and consistent voice
- Instituted and maintained social network presence including YouTube, LinkedIn, Facebook, and Twitter
- Led technology seminars and presentations at student events and faculty development days
- Offered adjunct teaching position in Innovation Technology and Instruction department
- Created/sourced graphic imagery as needed; directed/produced videos used in new student orientation
- Developed over 35 commercial and non-profit websites via proposal and contract work
- Cultivated entrepreneurial initiative by targeting local businesses and offering web marketing services
- Demonstrated project management skills; handled all aspects of web production including training
- Created websites based on client requirements, prototyped web designs and information architecture
- Trained clients in web best practices and set up basic content management systems
- Developed project-based time recording system for company of 75 employees; created reports
- Responded to help desk tickets as informal member of the IT department; built systems for new employees
- Revised departmental website to meet external audience needs and ensure Sect. 508 compliance
- Developed and implemented an internal Intranet site; composed all content
- While employed at the Center for Small Towns, created web presences for rural MN communities
- Developed or improved several University websites for academic and student service departments
Certifications
Projects
2016 Cisco CCNA NetRiders competition - Cisco NetRiders is a competitive series of online exams and
simulation activities using Cisco Packet Tracer. After three rounds of competition, I was ranked 15th in North America, and the sole representative from Minnesota.
2015 Cisco Live Dream Team - Worked on a team of ten students chosen from over a hundred colleges and universities across North America to install and maintain the physical
network at Ciscos 2015 Cisco Live! event. The network supported over 25,000 users, on 1200+ Cisco WAPs and Antennas as well as over 300+ Switches. Our task was to install the physical equipment on location, and troubleshoot any issues as
they arose.
2015 Cisco CCENT NetRiders competition - Cisco NetRiders is a competitive series of online exams and
simulation activities using Cisco Packet Tracer. I was ranked first at my academy in round one and placed 35th out of 171 students invited to participate in round two.
3rd Overall, SANS CyberAces Minnesota State Championship - On March 15th, 2014
or Cyber Aces Day as proclaimed by Governor Dayton, I competed in-person at the Minnesota CyberAces State Championship presented by the SANS Institute. My score was third-best in the capture-the-flag style competition, and only the top
three reached the final level of flags. This program began in the fall of 2013 with students nationwide signing up to learn cybersecurity skills. Students were assessed on each of three learning modules, and at the conclusion of the
program, my test scores were third overall in Minnesota, securing an invitation to the championship.


--- layout: default nav: tutorial ---
This tutorial will show you how to make the Rails flash and IntercoolerJS play well together.
Here are the basic steps
render :partial
technique in rails.
ic-append-from
and
ic-deps
attributes.
Here is a diff of the changes:
https://github.com/LeadDyno/intercooler-tutorial-app/commit/afba53a5d78b5d79ac352f83ddf62ee5585a7d5e


Nmap 7.70 was initiated at Sat Feb 22 23:35:53 2020 with these arguments:nmap -oA router -sP <IP_ADDRESS>
Verbosity: 0; Debug level 0
Nmap done at Sat Feb 22 23:35:53 2020; 1 IP address (1 host up) scanned in 0.32 seconds


Simple tool that allows you to list all JSONPath expressions for a particular node.
{{ pathInfo.result}}


MIDNIGHT COWBOY [Spoilers] A film review by Ahmed I Shibab Copyright 1996 Ahmed I Shibab
RATING: **** (out of ****)
This "dumb" cowboy blondie who thinks he is a `darn' good loverboy, decides to leave his dusty ol' town somewhere in Texas and go to New York. He puts on his beloved Cowboy attire and off he hops on the next New York coach.
When he arrives to New York, he immediately sets out to play Mr Playboy thinking he is the best `darn' `stud' in the whol'o' New York City. Obviously he fails.
He meets the 'cripple' Rico (Dustin Hoffman, who is terrifically good) in a bar. Rico has a leg that is paralysed from the knee down, so he walks in a peculiar way.  He cheats our Cowboy out of $20 through a somewhat detailed routine and disappears.
Soon, our cowboy runs out of money: he gets kicked out of his hotel, and starts getting hungry. Walking through the city, with "Everybody's talkin'" playing in the background (oh, and his prided techno transistor radio in hand), he spots Rico in a cafe.
Rico, half-scared, pours out all the money in his pocket. 60 filthy cents. Our cowboy, hungry, is forgiving. He is glad he found someone he knows. Rico offers to make it up for him. And he invites him to his place. And what a filthy, cold place it is. Our cowboy falls asleep instantly in the (junk) bed. When he finally wakes (jumps?) up, he finds Rico looking at him. "You wanna cup'a'coffee?" Rico asks in his friendly, sleazy, somewhat-childish manner while he smokes on a ciggy.
"What're you?  What do you want from me? Where are my shoes? What did you do to them?"
But all his doubts turn out to be unfounded. Rico really has a heart. Together, they live in the junk apartment and almost freeze to death. Rico is convinced that the best place to be is Florida, where the sun shines beautifully and there are lots of coconut trees.
"We will soon be in Miami" is the last sentence uttered in this film and what a shocking, moving end of a film it is. The classic theme music: "Midnight Cowboy" helps bring about the feeling of attachment that most viewers will experience towards the end of the film. Whether the attachment is to the two main characters or to their dreams, is probably as debatable as whether it was the acting or the direction that makes this film so memorable.
Review written 2 April, 1996. -----------------------------
Please supply me with feedback, as this is the first time I am posting to this newsgroup. -- ** Ahmed I Shihab, Research Student, Department of Computing, Imperial College, 180 Queen's Gate, London, UK<PHONE_NUMBER> ========= http://www-asds.doc.ic.ac.uk/cgi-bin/ais ==========
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


Come up fancy , Enjoy With fantasy
Make Up Fancy! Party Hard!
Check Out our latest Products .
$100.00 Size : 10
$49.00 Size : XS
$49.00 Size : 12
$1235.00 Size : S
$35.00 Size : 16
$850.00 Size: L
$149.00Size: M
$2500.00 Size: M
$300.00 Size: 10
$125.00 Size: 18
$250.00 Size: 10


Former NBA player Jim Farmer has human trafficking charges dropped
by Louis CasianoFormer NBA player Jim Farmer will not face human trafficking charges following his arrest last month, a Tennessee judge ruled Tuesday.
The decision came during a preliminary hearing for the University of Alabama standout, who was among 16 men arrested on suspicion of seeking sex with minors during a two-day police sting, the Dothan Eagle reported.
CARMELO ANTHONY MAKES DEBUT WITH PORTLAND TRAIL BLAZERS AFTER MORE THAN YEAR OFF COURT
Farmer, 55, who lives in Franklin, Tenn., allegedly communicated with a female undercover police officer posing as a 16-year-old girl.
Police took him into custody when he showed up to meet the fictitious teen.
CLICK HERE TO GET THE FOX NEWS APP
Farmer was a leading scorer at Alabama before embarking on a career in the NBA in 1987. He played for several teams over six seasons, including the Denver Nuggets, the Dallas Mavericks and the Utah Jazz.


Class ChallongeClient.ParticipantsHandler
This class contains all the functions related to the participants api
Inheritance
Inherited Members
Namespace: Challonge
Assembly: Challonge.Net.dll
Syntax
public class ParticipantsHandler
Constructors
| Improve this Doc View SourceParticipantsHandler(String, HttpClient)
Declaration
public ParticipantsHandler(string apiKey, HttpClient httpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | apiKey | |
| System.Net.Http.HttpClient | httpClient |
Methods
| Improve this Doc View SourceCheckInAsync(String, Int32)
Checks a participant in, setting CheckedInAt to the current time.
Declaration
public async Task CheckInAsync(string tournament, int participantId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
| System.Int32 | participantId | The participant's unique id |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
ClearAsync(String)
Deletes all participants in a tournament. (Only allowed if tournament hasn't started yet)
Declaration
public async Task ClearAsync(string tournament)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
CreateParticipantAsync(String, ParticipantBuilder)
Add a participant to a tournament (up until it is started)
Declaration
public async Task<Participant> CreateParticipantAsync(string tournament, ParticipantBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
| ParticipantBuilder | builder | Participant to create |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Participant> | The created participant |
CreateParticipantAsync(String, String, String, String, Nullable<Int32>, String)
Add a participant to a tournament (up until it is started)
Declaration
public async Task<Participant> CreateParticipantAsync(string tournament, string name = null, string challongeUsername = null, string email = null, int? seed = default(int? ), string misc = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
| System.String | name | The name displayed in the bracket/schedule - not required if email or challongeUsername is provided. Must be unique per tournament. |
| System.String | challongeUsername | Provide this if the participant has a Challonge account. He or she will be invited to the tournament. |
| System.String | Providing this will first search for a matching Challonge account. If one is found, this will have the same effect as the "challonge_username" attribute. If one is not found, the "new-user-email" attribute will be set, and the user will be invited via email to create an account. |
|
| System.Nullable<System.Int32> | seed | The participant's new seed. Must be between 1 and the current number of participants (including the new record). Overwriting an existing seed will automatically bump other participants as you would expect. |
| System.String | misc | Max: 255 characters. Multi-purpose field that is only visible via the API and handy for site integration (e.g. key to your users table) |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Participant> | The created participant |
CreateParticipantsAsync(String, ParticipantBuilder[])
Add participants to a tournament
Declaration
public async Task<Participant[]> CreateParticipantsAsync(string tournament, ParticipantBuilder[] builders)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
| ParticipantBuilder[] | builders | The participants to add |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Participant[]> | The created participants |
Remarks
If an invalid participant is detected, participants creation will halt and any previously added participants (from this API request) will be rolled back.
DeleteParticipantAsync(String, Int32)
If the tournament has not started, delete a participant, automatically filling in the abandoned seed number. If tournament is underway, mark a participant inactive, automatically forfeiting his/her remaining matches.
Declaration
public async Task DeleteParticipantAsync(string tournament, int participantId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
| System.Int32 | participantId | The participant's unique id |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
GetParticipantAsync(String, Int32, Boolean)
Retrieve a single participant record for a tournament
Declaration
public async Task<ParticipantApiResult> GetParticipantAsync(string tournament, int participantId, bool includeMatches = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
| System.Int32 | participantId | The participant's unique ID |
| System.Boolean | includeMatches |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<ParticipantApiResult> | A result containing the participant and if requested its match records |
GetParticipantsAsync(String)
Retrieve a tournament's participant list.
Declaration
public async Task<Participant[]> GetParticipantsAsync(string tournament)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Participant[]> | The list of participants of the given tournament |
RandomizeAsync(String)
Randomize seeds among participants. Only applicable before a tournament has started.
Declaration
public async Task RandomizeAsync(string tournament)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
UndoCheckInAsync(String, Int32)
Marks a participant as having not checked in, setting CheckedInAt to null.
Declaration
public async Task UndoCheckInAsync(string tournament, int participantId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
| System.Int32 | participantId | The participant's unique id |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
UpdateParticipantAsync(String, Int32, ParticipantBuilder)
Update the attributes of a tournament participant
Declaration
public async Task<Participant> UpdateParticipantAsync(string tournament, int participantId, ParticipantBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
| System.Int32 | participantId | The participant's unique id |
| ParticipantBuilder | builder | Updated participant |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Participant> | The updated participant |
UpdateParticipantAsync(String, Int32, String, String, String, Nullable<Int32>, String)
Update the attributes of a tournament participant
Declaration
public async Task<Participant> UpdateParticipantAsync(string tournament, int participantId, string name = null, string challongeUsername = null, string email = null, int? seed = default(int? ), string misc = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tournament | Tournament ID (e.g. 10230) or URL (e.g. 'single_elim' for challonge.com/single_elim). If assigned to a subdomain, URL format must be subdomain-tournament_url (e.g. 'test-mytourney' for test.challonge.com/mytourney) |
| System.Int32 | participantId | The participant's unique id |
| System.String | name | The name displayed in the bracket/schedule - not required if email or challongeUsername is provided. Must be unique per tournament. |
| System.String | challongeUsername | Provide this if the participant has a Challonge account. He or she will be invited to the tournament. |
| System.String | Providing this will first search for a matching Challonge account. If one is found, this will have the same effect as the "challonge_username" attribute. If one is not found, the "new-user-email" attribute will be set, and the user will be invited via email to create an account. |
|
| System.Nullable<System.Int32> | seed | The participant's new seed. Must be between 1 and the current number of participants (including the new record). Overwriting an existing seed will automatically bump other participants as you would expect. |
| System.String | misc | Max: 255 characters. Multi-purpose field that is only visible via the API and handy for site integration (e.g. key to your users table) |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<Participant> | The updated participant |


- Breaking: New extension SDK version (user extensions need to be updated)
- New: Twitch.tv client integration
- New: Ability to add new library providers via plugins
- New: Steam friends button added to Modern theme
- New: Option to reopen Playnite's window when game stops running
- New: More detailed progress info when downloading metadata
- New: Greek localization (by metallic77)
- Fix: Updated RetroArch profiles
- Fix: General UI polish and fixes
- Fix: Play time detection of Window Store apps not working properly if game is not installed on c: drive
- Fix: Play time detection not working properly if game is running with elevated rights
- Fix: Memory leak when switching between fullscreen and desktop modes
- Fix: Incorrectly set database path when using portable version
- Fix: Updated Nintendo/Nintendo Pro fullscreen buttons
- Fix: Playnite crashes when trying to sort by category
- Fix: Play time not being counted when starting game via URL
- Fix: InstallDir not working properly with relative paths
- Fix: High CPU usage when game is running
- Fix: Game icon not being set when importing via drag'n'drop
- Fix: Fullscreen mode doesn't respect "When game starts" settings
- Fix: Filter panel opening when using main search box
- Fix: Crash when launching Windows Store game
- Fix: Crash when importing emulated games
- Fix: Detecting installed apps not working on Windows 7 properly


Changeset 472
- Timestamp:
- 07/06/11 16:05:45 (5 years ago)
- Files:
-
- 4 edited
-
branches/UQ/math/examples2/TEST4d_OUQ_surrogate_diam.py (modified) (4 diffs)
-
branches/UQ/math/examples2/TEST_OUQ_surrogate_diam.py (modified) (4 diffs)
-
mystic/_math/dirac_measure.py (modified) (10 diffs)
-
mystic/tests/test_dirac_measure.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/UQ/math/examples2/TEST4d_OUQ_surrogate_diam.py
r471 r472 68 68 69 69 from mystic.math.measures import split_param 70 from mystic.math.dirac_measure import unflatten, flatten 71 from mystic.math.dirac_measure import compose, decompose 70 from mystic.math.dirac_measure import product_measure 72 71 from mystic.math import almostEqual 73 72 from numpy import inf … … 85 84 86 85 # generate secondary constraints function 87 def additional_constraints(c): #XXX: move within 'def constraints'?86 def more_constraints(c): #XXX: move within 'def constraints'? 88 87 ##################### begin function-specific ##################### 89 88 # E = float(c[0].var) # var(h) … … 104 103 return c 105 104 106 # wrapper to fit format for 'impose_expectation'107 def cnstr(x, w): #XXX: move within 'def constraints'?108 c = compose(x,w)109 c = additional_constraints(c)110 return decompose(c)[0]111 112 105 # generate primary constraints function 113 106 def constraints(rv): 114 c = unflatten(rv, npts) 107 c = product_measure() 108 c.load(rv, npts) 115 109 # NOTE: bounds wi in [0,1] enforced by filtering 116 # impose norm on sets117 for setin c:118 if not almostEqual(float( set.mass), 1.0, tol=atol, rel=rtol):119 set.normalize()120 # impose expectation on collection110 # impose norm on each discrete measure 111 for measure in c: 112 if not almostEqual(float(measure.mass), 1.0, tol=atol, rel=rtol): 113 measure.normalize() 114 # impose expectation on product measure 121 115 ##################### begin function-specific ##################### 122 116 E = float(c.get_expect(model)) 123 117 if not (E <= float(target[0] + error[0])) \ 124 118 or not (float(target[0] - error[0]) <= E): 125 c.set_expect((target[0],error[0]), model, (x_lb,x_ub), cnstr)126 127 # c = additional_constraints(c) #XXX: impose constraints again (necessary ?)119 c.set_expect((target[0],error[0]), model, (x_lb,x_ub), more_constraints) 120 121 # c = more_constraints(c) #XXX: impose constraints again (necessary ?) 128 122 ###################### end function-specific ###################### 129 123 # extract weights and positions 130 return flatten(c)124 return c.flatten() 131 125 132 126 # generate maximizing function 133 127 def cost(rv): 134 c = unflatten(rv, npts) 128 c = product_measure() 129 c.load(rv, npts) 135 130 #XXX: apply 'filters' to catch errors in constraints solver (necessary ?) 136 131 ##################### begin function-specific ##################### … … 242 237 243 238 from numpy import array 244 from mystic.math.dirac_measure import unflatten 245 c = unflatten(solved,npts) 239 from mystic.math.dirac_measure import product_measure 240 c = product_measure() 241 c.load(solved,npts) 246 242 print "solved: [wx,x]\n%s" % array(zip(c[0].weights,c[0].coords)) 247 243 print "solved: [wy,y]\n%s" % array(zip(c[1].weights,c[1].coords)) -
branches/UQ/math/examples2/TEST_OUQ_surrogate_diam.py
r471 r472 68 68 69 69 from mystic.math.measures import split_param 70 from mystic.math.dirac_measure import unflatten, flatten70 from mystic.math.dirac_measure import product_measure 71 71 from mystic.math import almostEqual 72 72 from numpy import inf … … 85 85 # generate primary constraints function 86 86 def constraints(rv): 87 c = unflatten(rv, npts) 87 c = product_measure() 88 c.load(rv, npts) 88 89 # NOTE: bounds wi in [0,1] enforced by filtering 89 # impose norm on sets90 for setin c:91 if not almostEqual(float( set.mass), 1.0, tol=atol, rel=rtol):92 set.normalize()93 # impose expectation on collection90 # impose norm on each discrete measure 91 for measure in c: 92 if not almostEqual(float(measure.mass), 1.0, tol=atol, rel=rtol): 93 measure.normalize() 94 # impose expectation on product measure 94 95 ##################### begin function-specific ##################### 95 96 E = float(c.get_expect(model)) … … 99 100 ###################### end function-specific ###################### 100 101 # extract weights and positions 101 return flatten(c)102 return c.flatten() 102 103 103 104 # generate maximizing function 104 105 def cost(rv): 105 c = unflatten(rv, npts) 106 c = product_measure() 107 c.load(rv, npts) 106 108 E = float(c.get_expect(model)) 107 109 if E > (target[0] + error[0]) or E < (target[0] - error[0]): … … 187 189 188 190 from numpy import array 189 from mystic.math.dirac_measure import unflatten 190 c = unflatten(solved,npts) 191 from mystic.math.dirac_measure import product_measure 192 c = product_measure() 193 c.load(solved,npts) 191 194 print "solved: [wx,x]\n%s" % array(zip(c[0].weights,c[0].coords)) 192 195 print "solved: [wy,y]\n%s" % array(zip(c[1].weights,c[1].coords)) -
mystic/_math/dirac_measure.py
r457 r472 40 40 41 41 settings: 42 s.weights = [w1, w2, ..., wn] -- set weights43 s.coords = [x1, x2, ..., xn] -- set positions44 s.normalize() -- normalize sthe weights to 1.042 s.weights = [w1, w2, ..., wn] -- set the weights 43 s.coords = [x1, x2, ..., xn] -- set the positions 44 s.normalize() -- normalize the weights to 1.0 45 45 s.mean(R) -- set the mean 46 46 s.range(R) -- set the range … … 125 125 c.coords -- returns list of position tuples 126 126 c.mass -- returns list of weight norms 127 c.pts -- returns number of points for each discrete measure 128 c.wts -- returns list of weights for each discrete measure 129 c.pos -- returns list of positions for each discrete measure 127 130 128 131 settings: 129 c.coords = [(x1,y1,z1),...] -- set positions (propagates to each set member)132 c.coords = [(x1,y1,z1),...] -- set the positions (tuples in product measure) 130 133 131 134 methods: … … 133 136 c.get_expect(f) -- calculate the expectation 134 137 c.set_expect((center,delta), f) -- impose expectation by adjusting positions 138 c.flatten() -- convert measure to a flat list of parameters 139 c.load(params, pts) -- 'fill' the measure from a flat list of parameters 135 140 136 141 notes: … … 141 146 """ 142 147 148 def __pts(self): 149 return [i.npts for i in self] 150 151 def __wts(self): 152 return [i.weights for i in self] 153 154 def __pos(self): 155 return [i.coords for i in self] 156 143 157 def __n(self): 144 npts = 1 145 for i in self: 146 npts *= i.npts 147 return npts 158 from numpy import product 159 return product(self.pts) 148 160 149 161 def __weights(self): 150 162 from mystic.math.measures import _pack 151 weights = [i.weights for i in self]152 weights = _pack( weights)163 from numpy import product 164 weights = _pack(self.wts) 153 165 _weights = [] 154 166 for wts in weights: 155 weight = 1.0 156 for w in wts: 157 weight *= w 158 _weights.append(weight) 167 _weights.append(product(wts)) 159 168 return _weights 160 169 161 170 def __positions(self): 162 171 from mystic.math.measures import _pack 163 coords = [i.coords for i in self] 164 coords = _pack(coords) 165 return coords 172 return _pack(self.pos) 166 173 167 174 def __set_positions(self, coords): 168 175 from mystic.math.measures import _unpack 169 npts = [i.npts for i in self] 170 coords = _unpack(coords,npts) 176 coords = _unpack(coords, self.pts) 171 177 for i in range(len(coords)): 172 178 self[i].coords = coords[i] … … 198 204 f -- a function that takes a list and returns a number 199 205 bounds -- tuple of lists of bounds (lower_bounds, upper_bounds) 200 constraints -- a function that takes a nested list of N x 1D discrete 201 measure positions and weights x' = constraints(x, w) 206 constraints -- a function that takes a product_measure c' = constraints(c) 202 207 """ 203 208 #self.__center = m 204 209 #self.__delta = D 205 npts = [i.npts for i in self] 206 self.coords = impose_expectation((m,D), f, npts, bounds, self.weights, \ 207 constraints=constraints) 210 if constraints: # then need to adjust interface for 'impose_expectation' 211 def cnstr(x, w): 212 c = compose(x,w) 213 c = constraints(c) 214 return decompose(c)[0] 215 else: cnstr = constraints # 'should' be None 216 self.coords = impose_expectation((m,D), f, self.pts, bounds, self.weights, \ 217 constraints=cnstr) 208 218 return 209 219 … … 258 268 return transpose(pts) #XXX: assumes 'coords' is a list of floats 259 269 270 def load(self, params, pts): 271 """load a list of parameters corresponding to N x 1D discrete measures 272 273 Inputs: 274 params -- a list of parameters (see 'notes') 275 pts -- number of points in each of the underlying discrete measures 276 277 Notes: 278 To append len(pts) new discrete measures to product measure c, where 279 pts = (M, N, ...) 280 params = [wt_x1, ..., wt_xM, \ 281 x1, ..., xM, \ 282 wt_y1, ..., wt_yN, \ 283 y1, ..., yN, \ 284 ...] 285 Thus, the provided list is M weights and the corresponding M positions, 286 followed by N weights and the corresponding N positions, with this 287 pattern followed for each new dimension desired for the product measure. 288 """ 289 c = unflatten(params, pts) 290 for i in range(len(c)): 291 self.append(c[i]) 292 return 293 294 def flatten(self): 295 """flatten the product_measure into a list of parameters 296 297 Returns: 298 params -- a list of parameters (see 'notes') 299 300 Notes: 301 For a product measure c where c.pts = (M, N, ...), then 302 params = [wt_x1, ..., wt_xM, \ 303 x1, ..., xM, \ 304 wt_y1, ..., wt_yN, \ 305 y1, ..., yN, \ 306 ...] 307 Thus, the returned list is M weights and the corresponding M positions, 308 followed by N weights and the corresponding N positions, with this 309 pattern followed for each dimension of the product measure. 310 """ 311 return flatten(self) 312 260 313 #__center = None 261 314 #__delta = None … … 269 322 #expect = property(__expect, __set_expect ) 270 323 mass = property(__mass ) 324 pts = property(__pts ) 325 wts = property(__wts ) 326 pos = property(__pos ) 271 327 pass 272 328 … … 299 355 300 356 301 def compose(samples, weights):302 """ Generate a product_measure objectfrom a nested list of N x 1D357 def _list_of_measures(samples, weights): 358 """generate a list of N x 1D discrete measures from a nested list of N x 1D 303 359 discrete measure positions and a nested list of N x 1D weights.""" 304 360 total = [] … … 308 364 next.append(point( samples[i][j], weights[i][j] )) 309 365 total.append(next) 366 return total 367 368 369 def compose(samples, weights): 370 """Generate a product_measure object from a nested list of N x 1D 371 discrete measure positions and a nested list of N x 1D weights.""" 372 total = _list_of_measures(samples, weights) 310 373 c = product_measure(total) 311 374 return c … … 316 379 N x 1D discrete measure positions and a nested list of N x 1D weights.""" 317 380 from mystic.math.measures import _nested_split 318 npts = [set.npts for set in c] 319 w, x = _nested_split(flatten(c), npts) 381 w, x = _nested_split(flatten(c), c.pts) 320 382 return x, w 321 383 -
mystic/tests/test_dirac_measure.py
r468 r472 196 196 print "randomly selected support:\n %s" % c.support(10) 197 197 198 print "npts: %s " % c.npts198 print "npts: %s (i.e. %s)" % (c.npts, c.pts) 199 199 print "weights: %s" % c.weights 200 200 coords = c.coords … … 247 247 # flatten and unflatten 248 248 from mystic.math.dirac_measure import flatten, unflatten 249 npts = [s.npts for s in c] 250 d = unflatten(flatten(c), npts) 249 d = unflatten(flatten(c), c.pts) 251 250 252 251 # check if the same … … 254 253 assert c.weights == d.weights 255 254 assert c.coords == d.coords 255 256 # flatten() and load(...) 257 e = collection() 258 e.load(c.flatten(), c.pts) 259 260 # check if the same 261 assert c.npts == e.npts 262 assert c.weights == e.weights 263 assert c.coords == e.coords 256 264 257 265 # decompose and compose
Note: See TracChangeset
for help on using the changeset viewer.


--- layout: default title: Home ---
and this is my web page!
est. 2015
think of the qualities the people around you have:
and so on. Nothing is as encouraging as when virtues are visibly embodied in the people around us, when we’re practically showered with them.
✍ Marcus Aurelius' Meditations


TS Entertainment denies child abuse allegations, says they will take legal action
by jennywillTS Entertainment will be taking legal action against Wooyeop and Taeseon.
The two TRCNG members sued TS Entertainment officials for child abuse. Park Sang Hyun, one of the accused, said, "They are not telling the truth. Even though they have schedules, the two members have left. The other 8 members are in Japan for their schedules. We will be making a statement soon. We have proof, including recordings. After we confirm that they have filed a lawsuit, we will be suing them back for libel. They're also lying about how we did not support their livelihood. However, we were not able to check about Yoon because of company matters."
Stay tuned for updates on this issue.


Challege 13 D3
1. Make an SVG with five circles, each with a different color, using data.
2. Make an SVG with five circles, ordered diagonally across the SVG.
3. Make an SVG with five circles, ordered randomly across the SVG. **(Hint: Math.random())**
4. Make an SVG with three circles and a rectangle.
5. Make a triangle with yellow fill and a blue border.
*Extra Credit*: Make the triforce from Zelda
**Super Extra Credit**: Scape all the data from [this visualization](http://bl.ocks.org/mbostock/raw/3887118/), using Javascript, then use it in [this visualization](http://bl.ocks.org/mbostock/3244058).


Places Julia, Tyler, and Jessica Have Been
Click a name to figure out where we've visited!
Julia
Tyler
Jessica