Class that represents our SpriteComponent handles performing certain animations of this object.
More...
#include <SpriteComponent.hpp>
|
|
bool | m_flipped |
| |
|
int | m_frame =0 |
| |
|
SDL_Rect | m_src |
| |
|
std::map< std::string, std::pair< int, int > > | m_animations |
| |
|
std::pair< int, int > | m_frameRange |
| |
|
int | m_animationSpeed |
| |
|
std::string | m_currentAction |
| |
|
SDL_Rect | m_dest |
| |
|
SDL_Texture * | m_texture |
| |
|
SDL_Renderer * | m_renderer |
| |
Class that represents our SpriteComponent handles performing certain animations of this object.
◆ SpriteComponent()
| SpriteComponent::SpriteComponent |
( |
std::string |
filePath, |
|
|
SDL_Rect |
src |
|
) |
| |
constructor for SpriteComponent
- Parameters
-
| filepath | string that Represents the filepath of our sprite |
| src | SDL_rect representing the rectangle we want to create |
◆ getHeight()
| float SpriteComponent::getHeight |
( |
| ) |
|
- Returns
- float value that represents the height of this object
◆ getWidth()
| float SpriteComponent::getWidth |
( |
| ) |
|
- Returns
- float value that represents the width of this object
◆ setDim()
| void SpriteComponent::setDim |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
sets the Dimensions of this object
- Parameters
-
| width | float value we want this object's width to be |
| height | float value we want this object's height to be |
◆ updatePosition()
| void SpriteComponent::updatePosition |
( |
Vec2 |
pos | ) |
|
updates the position of this object
- Parameters
-
| pos | Vec2 that we want to apply changes to |
The documentation for this class was generated from the following file:
- /home/rumanstheddy/Documents/Edu/test/finalproject-final-pog/Engine/include/SpriteComponent.hpp


Adding Eww to your app takes two lines of code:
import eww
eww.embed()
Then just connect with the provided client:
basecamp ~: eww
Welcome to the Eww console. Type 'help' at any point for a list of available commands.
Running in PID: 86232 Name: ./demo.py
(eww)
That's it.
Head over to our documentation for more information on getting started.


{{income.amount}} {{income.currency + ' - ' + income.period}}
{{expense.amount}} {{expense.currency + ' - ' + expense.period}}


| Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Struts Configuration Elements > Exception Configuration |
Exception mappings is a powerful feature for dealing with an Action class that throws an Exception. The core idea is that an Exception thrown during the Action method can be automatically caught and mapped to a predefined Result. This declarative strategy is especially useful for frameworks, like Hibernate and Acegi, that throw RuntimeExceptions.
As with many other parts of the framework, an Interceptor is needed to activate the exception mapping functionality. Below is a snippet from struts-default.xml which has the exception mapping already activated.
... <interceptors> ... <interceptor name="exception" class="com.opensymphony.xwork.interceptor.ExceptionMappingInterceptor"/> ... </interceptors> <interceptor-stack name="defaultStack"> <interceptor-ref name="exception"/> <interceptor-ref name="alias"/> <interceptor-ref name="servlet-config"/> <interceptor-ref name="prepare"/> <interceptor-ref name="i18n"/> <interceptor-ref name="chain"/> <interceptor-ref name="debugging"/> <interceptor-ref name="profiling"/> <interceptor-ref name="scoped-model-driven"/> <interceptor-ref name="model-driven"/> <interceptor-ref name="fileUpload"/> <interceptor-ref name="checkbox"/> <interceptor-ref name="static-params"/> <interceptor-ref name="params"/> <interceptor-ref name="conversionError"/> <interceptor-ref name="validation"> <param name="excludeMethods">input,back,cancel,browse</param> </interceptor-ref> <interceptor-ref name="workflow"> <param name="excludeMethods">input,back,cancel,browse</param> </interceptor-ref> </interceptor-stack> ...
To use exception mapping, we simply need to map Exceptions to specific Results. The framework provides two ways to declare an exception mapping <exception-mapping/> - globally or for a specific action mapping. The exception mapping element takes two attributes, exception and result.
When declaring an exception mapping, the Interceptor will find the closest class inheritance match between the Exception thrown and the Exception declared. The Interceptor will examine all declared mappings applicable to the action mapping, first local and then global mappings. If a match is found, the Result is processed, just as if it had been returned by the Action.
This process follows the same rules as a Result returned from an Action. It first looks for the Result in the local action mapping, and if not found, it looks for a global Result.
Below is an example of global and local exception mappings.
<struts> <package name="default"> ... <global-results> <result name="login" type="redirect">/Login.action</result> <result name="Exception">/Exception.jsp</result> </global-results> <global-exception-mappings> <exception-mapping exception="java.sql.SQLException" result="SQLException"/> <exception-mapping exception="java.lang.Exception" result="Exception"/> </global-exception-mappings> ... <action name="DataAccess" class="com.company.DataAccess"> <exception-mapping exception="com.company.SecurityException" result="login"/> <result name="SQLException" type="chain">SQLExceptionAction</result> <result>/DataAccess.jsp</result> </action> ... </package> </xwork>
In the example above, here is what happens based upon each Exception:
By default, the ExceptionMappingInterceptor adds the following values to the Value Stack:
| exception | The exception object itself |
|---|---|
| exceptionStack | The value from the stack trace |


[gecode-users] Extending Integer Variable
Gustavo Gutierrez
ggutierrez at cic.puj.edu.co
Tue Apr 8 15:46:18 CEST 2008
On Tue, Apr 8, 2008 at 2:52 AM, Filip Konvička <filip.konvicka at logis.cz>
wrote:
> > I am also interested in implementing FloatVars. I already built a solver
> which
> > works on floating variables using the MPFR library (http://www.mpfr.org/).
> I
> > designed some propagators
> > (+,-,*,/,max,min,cos,acos,sin,atan,asin,exp,log,sqr,sqrt) which work
> quite
> > well on my benchmarks.
> > I came to GeCode recently because of all the work done for the integer
> and set
> > variables, but I will be glad to share my code with anyone who is
> interested
> > in implementing FloatVars in GeCode.
>
> MPFR is nice, but unfortunately it is licensed under LGPL, which I'm
> trying to avoid. I think that for my purposes Boost.Intervals operating
> on 'double' should be sufficient.
>
> But let's not waste effort on implementing FloatVar twice! I have
> limited time for all this myself, but with the help of my colleagues I
> think we can try to do some initial sketch implementation, while we'll
> try to make the domain implementation part parametrized, so we can
> switch between Boost.Interval, MPFR, CUDA :-D or whatever.
>
There are some other implementations that may result useful. One is the
interval library that comes with boost (already mentioned), also there is an
implementation by T. Hickey called smath (
http://interval.sourceforge.net/interval/prolog/clip/clip/smath/README.html)
and a complete solver for continous domains called elisa (
http://sourceforge.net/projects/elisa/).
Smath provides a wide set of narrowing operator implementations and claims
to be correct, i have used it before and its quite good. Elisa comes with
different representations for constraints on continous domains (natural
interval form, newton interval form, etc.) and that makes it promising.
Boost.interval is the one that best deal with portability which is a matter
when dealing with floating point numbers.
I think there are very good sources of information (papers and
implementations) and gecode could benefit of all of them.
>
> Personally, I am all for contributing and sharing code. From our
> company's point of view, however, we must be sure that we can actually
> benefit from that - and basing our work on LGPL code is more risky (and
> uncomfortable) for us. That's why I prefer the MIT-style licenses.
>
> Cheers,
> Filip
>
>
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
>
--
Gustavo Gutierrez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20080408/d26dfed8/attachment.htm>
More information about the gecode-users
mailing list


include/DataTypeHandling.h
include/functions/FastIVM.h
include/Greedy.h
include/IndependentSetImprovement.h
include/functions/IVM.h
include/functions/kernels/Kernel.h
include/functions/Matrix.h
include/Python.cpp
include/Random.h
include/functions/kernels/RBFKernel.h
include/Salsa.h
include/SieveStreaming.h
include/SieveStreamingPP.h
include/SubmodularFunction.h
include/SubmodularOptimizer.h
include/ThreeSieves.h


Welcome to the CM Cellular homepage.
We sell the top of the line cellphones of all brands
- Apple
- Samsung
- Nokia
- Huawei
- Motorola
and more at the lowest prices!
Click on our catalog to see our products!
Welcome! Bien Venidas! Bienvenue! ようこそ! 환영! ยินดีต้อนรับ
We sell the top of the line cellphones of all brands
and more at the lowest prices!
Click on our catalog to see our products!


{% extends "base.html" %} {% load staticfiles %} {% block title %} BilgeCode - Help Make BilgeCode Better {% endblock %} {% block content %}
I’d love to spend all my time working on software like this, built around sailing, and I have a ton of ideas. If you like what I've done so far, I'm hoping you can help me.
I'll publish all BilgeCode expenses and income. For more information about my principles and why this is free, please read more about Bilgecode.
The most effective way to ensure the stability of BilgeCode is to commit to regular contributions. This will allow me to have consistent income and have a good idea of what I can expect each month.
 Vote for a feature by pledging for it.
I won’t ask for the money until I actually build the feature.
The Pipeline. Don’t see your PassagePlanner feature listed or have an idea for a whole new project?
Like a feature, but didn't get a chance to pledge for it? Not ready to become a BACKER? Win the lottery and want to share?? Whatever your reason, you can still simply send me one-off donation.


Superfit former PE teacher paralysed after breaking back in horrific cycling crash
Mike McKeon was thrown off his bike in a horror smash at 40mph on a descent to Ribchester in Lancashire
by Kelly-Ann Mills, Jonny Wilkinson, https://www.facebook.com/dailymirror/A former PE teacher who dreamed of spending his retirement skiing, golfing and walking, has been paralysed in a horrific cycling accident.
Mike McKeon was thrown off his bike in a horror smash on a descent to Ribchester in Lancashire back in March.
The 68-year-old said he believes something stopped his bike while going at 40mph downhill and flipped him over the top, breaking a bone in his neck.
He then spent a month in Royal Preston Hospital and four months in rehab at Southport and Ormskirk Hospital's spinal unit, the Manchester evening News .
Now paralysed from the chest down, Mike said his life has been "completely thrown upside down" and "the hardest thing is acceptance".
Mike, from Rishton, near Blackburn, in Lancashire, said: "My head was sort of pushed down into my chest.  Then the force of landing on the road on my back caused the major injury.
"You spent a huge amount of time at the beginning going through the things that you've lost and thinking very dark thoughts with huge amounts of regret.
"I loved playing golf, going skiing with my wife a couple of times a year, we played tennis and did ballroom dancing and we'd go walking in the Lakes and the Dales.
"We were very, very active and I was looking forward to spending the rest of my retirement doing these things. So it's incredibly hard to accept that I can't do all of these things now.
"We want to see more of our grandchildren but they live in Edinburgh and unfortunately I don't think I'll ever be able to get back into their house again because of the number of steps.
"It's real cause of real sadness to me that I won't be able to do all these things anymore.
"It's not just me who's had my life changed and completely thrown upside down - my wife's life now is completely different to what we had before the accident. She's my main carer.
"It's a bit like grieving - you've lost something so important, you've lost the life that you led. And the life that you lead, you don't realise how good it was until it's been taken away from you.
"I miss everything I used to be able to do. The first time some golf friends came to visit me in the hospital they went away thinking 'Mike was in really good form and like himself'.
Mike said he had been out for a couple of hours on a familiar route with a cycling pal when the accident happened at about 10am on March 28.
His friend had gone out ahead but when he became aware of cars stopping behind him he retraced his steps to find Mike in and out of consciousness on the road.
Mike said: "It would have been literally minutes between him leaving me and finding me again.
"I was aware of incredible pain and vaguely aware of people around me saying 'don't move' but that could have been half an hour or ten seconds after the accident, I have no idea."
He added: "We've resumed ballroom dancing - my wife dances obviously and I'm head judge now. I enjoy watching them dance and the music and talking with my friends.
"I am a determined person who is doing all I can to make the most of what is a new life - I want to go skiing again for example and resume travelling. "


|
Bullet Collision Detection & Physics Library
|
#include "btMultiBody.h"
#include "btMultiBodyLink.h"
#include "btMultiBodyLinkCollider.h"
#include "btMultiBodyJointFeedback.h"
#include "LinearMath/btTransformUtil.h"
#include "LinearMath/btSerializer.h"
Go to the source code of this file.
Macros | |
| #define | vecMulVecTranspose(v0, v1Transposed) outerProduct(v0, v1Transposed) |
Functions | |
| btMatrix3x3 | outerProduct (const btVector3 &v0, const btVector3 &v1) |
| #define vecMulVecTranspose | ( | v0, | |
| v1Transposed | |||
| ) | outerProduct(v0, v1Transposed) |
Definition at line 729 of file btMultiBody.cpp.
|
inline |
Definition at line 708 of file btMultiBody.cpp.


I make sure messages make it from the cloud to your phone.
Specifically, we have developed our own sync layer to manage the complex and distributed nature of the backend of Teams, and I help to maintain the sync engine and internal database.
I majored in Computer Science, and minored in Honors Mathematics.
I love Programming languages, especially ones which change the paradigms of concurrency (Clojure, Elixir, Rust).
In my free time, I do Ballroom Dancing. That photo above was taken at the Ohio Star Ball!
I work as an IA for my university's Discrete Math course
I'm a student web developer on the school's web team


Has functions to implement the weighted scores method and CL1 information criteria as an intermediate step for variable/correlation selection for longitudinal categorical and count data in Nikoloulopoulos, Joe and Chaganty (2011, Biostatistics, 12: 653-665) and Nikoloulopoulos (2015a,2015b).
| Version: | <IP_ADDRESS> |
| Depends: | R (≥ 2.0.0), mvtnorm, rootSolve |
| Published: | 2015-10-22 |
| Author: | A. K. Nikoloulopoulos and H. Joe |
| Maintainer: | Aristidis K. Nikoloulopoulos <A.Nikoloulopoulos at uea.ac.uk> |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| NeedsCompilation: | yes |
| CRAN checks: | weightedScores results |
| Reference manual: | weightedScores.pdf |
| Package source: | weightedScores_<IP_ADDRESS>.tar.gz |
| Windows binaries: | r-devel: weightedScores_<IP_ADDRESS>.zip, r-release: weightedScores_<IP_ADDRESS>.zip, r-oldrel: weightedScores_<IP_ADDRESS>.zip |
| OS X binaries: | r-release: weightedScores_<IP_ADDRESS>.tgz, r-oldrel: weightedScores_<IP_ADDRESS>.tgz |
| Old sources: | weightedScores archive |
Please use the canonical form https://CRAN.R-project.org/package=weightedScores to link to this page.


Post a job to tell us about your project. We'll quickly match you with the right freelancers.
Web Themes.pvt.Ltd
Confederate Drive Potsdam, NY 13676
1 Minute ago
Web Themescode.pvt.Ltd
Rogers Street Cincinnati, OH 45202
3 Minute ago
Web Creative.pvt.Ltd
Carolina Avenue Encinal, TX 78019
5 Minute ago
Design Brand.pvt.Ltd
Holt Street West Palm Beach, FL 33401
7 Minute ago
Web Coding.pvt.Ltd
Stark Hollow Road Hillrose, CO 80733
8 Minute ago
Themes Brand.pvt.Ltd
Riverside Drive Athens, GA 30606
10 Minute ago


O'Fallon Township High School
Student Computer Technician
I helped maintain the computers by troubleshooting them when problems arose, cleaning them, and installing new software as needed. I also helped install new network lines and cameras, running the cables to the necessary locations.This was the first job that I ever held and started as a summer position that earned me a few bucks while I was still in school. In my senior year I also worked during the school year as part of the co-op program, giving me one of the shortest commutes to work I've ever heard of.
O'Fallon, Illinois City Hall
IT Intern
I helped decomission old computers for the city, reformatting the hard drives so that they were still imediately useable, but didn't have any city documents or software on them. I also helped to upgrade the computers at the local police station, providing them with new computers and monitors with all the necessary software pre installed. It was an interesting position that I was offered through my job at the school. I worked both positions for a while, but my boss at the city was rarely around and I still had school to deal with as well. In the end, I left the job after about eight months, but stuck with the school as long as I could.
Blockbuster
Customer Service Representative
This one's pretty self explanatory if you've ever been inside a Blockbuster, but my job was to to keep the manage returned movies, keep the shelves stocked as best as possible, and to check out customers. We also had the occasional overnight inventory shift, but that was fortunately just a once a month thing. This job was certainly not the greatest, as most retail workers will say about their position, but it came with some nice perks for someone like me(10 free rentals a week!) and it helped keep me fed through college so I guess it wasn't so bad.
MC Machinery
Electronics Bench Technician
For this job, I repaired the main control boards for older EDM(Electrical Discharge Machining) cutting machines by cleaning them, troubleshooting what was wrong with their circuits, and replacing any defective components. I would then test the boards in our own machine to verify their working status. Being my first job out of college, I had hoped for a better paying position, as I made nowhere near a living wage for the area. I enjoyed the job immensely, but after a year of working and no hope for a pay raise, I was left with no choice but to leave.
Allied Barton
Security Center Operator
This job was somewhat of a jump from my previous positions and had me monitoring alarms for John Deere facilities across across the country as a contract security officer. I would dispatch onsite security or emergency services to facilities based on alarm criteria as well as assisst anyone calling into the ops center. I got this job thanks to a friend I met in college who recomended it to me when he heard about my employment troubles. He offered me a room at his place for cheap rent and a good word with the hiring manager which led to a job making quite a bit more money than before and with regular raises. Despite the excellent area and decent pay though, this job too came to an end so I could come take some launchcode classes and get into a career path that I could actually enjoy.


When you look at someone's profile it'll show you what server they are on but that's all. You can click on that server name / link and join from the following page. But if you want to join on that person they either have to be a friend of yours or you have to work a bit harder to be able to it (explained below).
So why am I asking for this. As a server admin with a server that run a 24/7 Metro we all know that despite DICE fixing 1 of the glitches that allowed people to get in the ceiling there are 2 others that I know of. As a good server admin instead of just taking people at their word that someone is up there I like to try to get a screen shot of it so if they try to dispute it we have proof that says other wise.
Here is what I've been having to do as it is:
I go to the server's page on Battlelog and find the glitcher.
Click on the glitcher's name which takes me to his stats page.
From there I have to go to his Profile page (this part I'm ok with so far).
Now I click on the friend's list and pick on of his friends at random.
On that person's Profile page I click on the friend's list again.
This will show me that the offender is playing and what server and includes a Join button along side the "Add as friend" button
I'm now able to join directly on the glitcher's team and in their squad even if it's locked.
 No idea who the person is. I just picked it at random, hence wiping out their name and other identifying information.


This example shows how to set PANOMNOM.GooglePhotoSphereLoader to load from a google maps URL.
Try https://www.google.es/maps/@41.9025842,12.4960618,3a,75y,291.76h,88.91t/data=!3m5!1e1!3m3!1sco81qaLRcf4AAAAGO0u97w!2e0!3e11?hl=en


Rejection created by the various akka.http.javadsl.server.directives.SecurityDirectives.
Rejection created by the 'authorize' directive.
Rejection created by the 'authorize' directive. Signals that the request was rejected because the user is not authorized.
Rejection created by the onCompleteWithBreaker
directive.
Rejection created by the onCompleteWithBreaker
directive.
Signals that the request was rejected because the supplied circuit breaker is open and requests are failing fast.
To be extended by user-provided custom rejections, such that they may be consumed in either Java or Scala DSLs.
Handles exceptions by turning them into routes.
Handles exceptions by turning them into routes. You can create an exception handler in Java code like the following example:
ExceptionHandler myHandler = ExceptionHandler.of (ExceptionHandler.newPFBuilder() .match(IllegalArgumentException.class, x -> Directives.complete(StatusCodes.BAD_REQUEST)) .build() ));
Rejection created when a websocket request was expected but none was found.
Rejection created by akka.http.scaladsl.server.directives.HeaderDirectives.checkSameOrigin.
Rejection created by akka.http.scaladsl.server.directives.HeaderDirectives.checkSameOrigin.
Signals that the request was rejected because Origin
header value is invalid.
Rejection created by form field filters.
Rejection created by form field filters. Signals that the request was rejected because a form field could not be interpreted.
Rejection created by header directives.
Rejection created by header directives. Signals that the request was rejected because a header value is malformed.
Rejection created by parameter filters.
Rejection created by parameter filters. Signals that the request was rejected because a query parameter could not be interpreted.
Rejection created by unmarshallers.
Rejection created by unmarshallers.
Signals that the request was rejected because unmarshalling failed with an error that wasn't
an IllegalArgumentException
. Usually that means that the request content was not of the expected format.
Note that semantic issues with the request content (e.g. because some parameter was out of range)
will usually trigger a ValidationRejection
instead.
Rejection created by method filters.
Rejection created by method filters. Signals that the request was rejected because the HTTP method is unsupported.
Rejection created by the cookie
directive.
Rejection created by the cookie
directive.
Signals that the request was rejected because a cookie was not found.
Rejection created by form field filters.
Rejection created by form field filters. Signals that the request was rejected because a form field was not found.
Rejection created by header directives.
Rejection created by header directives. Signals that the request was rejected because a required header could not be found.
Rejection created by parameter filters.
Rejection created by parameter filters. Signals that the request was rejected because a query parameter was not found.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
It is not possible to append more matchers with keeping their values as parameters (due to limit of Tuple22).
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
It is not possible to append more matchers with keeping their values as parameters (due to limit of Tuple22).
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatchers.Unmatched.
A rejection encapsulates a specific reason why a Route was not able to handle a request.
A rejection encapsulates a specific reason why a Route was not able to handle a request. Rejections are gathered
up over the course of a Route evaluation and finally converted to akka.http.scaladsl.model.HttpResponses by the
handleRejections
directive, if there was no way for the request to be completed.
If providing custom rejections, extend CustomRejection instead.
A Throwable wrapping a Rejection.
A Throwable wrapping a Rejection.
Can be used for marshalling Future[T]
or Try[T]
instances, whose failure side is supposed to trigger a route
rejection rather than an Exception that is handled by the nearest ExceptionHandler.
(Custom marshallers can of course use it as well.)
Rejection created by unmarshallers.
Rejection created by unmarshallers. Signals that the request was rejected because an message body entity was expected but not supplied.
In the Java DSL, a Route can only consist of combinations of the built-in directives.
In the Java DSL, a Route can only consist of combinations of the built-in directives. A Route can not be instantiated directly.
However, the built-in directives may be combined methods like:
Route myDirective(String test, Supplierinner) { return path("fixed", () -> path(test), inner ) ); }
The above example will invoke [inner] whenever the path "fixed/{test}" is matched, where "{test}" is the actual String that was given as method argument.
Rejection created by scheme filters.
Rejection created by scheme filters. Signals that the request was rejected because the Uri scheme is unsupported.
Rejection created by range directives.
Rejection created by range directives. Signals that the request contains too many ranges. An irregular high number of ranges indicates a broken client or a denial of service attack.
A special Rejection that serves as a container for a transformation function on rejections.
A special Rejection that serves as a container for a transformation function on rejections. It is used by some directives to "cancel" rejections that are added by later directives of a similar type.
Consider this route structure for example:
put { reject(ValidationRejection("no") } ~ get { ... }
If this structure is applied to a PUT request the list of rejections coming back contains three elements:
1. A ValidationRejection 2. A MethodRejection 3. A TransformationRejection holding a function filtering out the MethodRejection
so that in the end the RejectionHandler will only see one rejection (the ValidationRejection), because the
MethodRejection added by the get
directive is canceled by the put
directive (since the HTTP method
did indeed match eventually).
Rejection created by marshallers.
Rejection created by marshallers. Signals that the request was rejected because the service is not capable of producing a response entity whose content type is accepted by the client
Rejection created by encoding filters.
Rejection created by encoding filters. Signals that the request was rejected because the service is not capable of producing a response entity whose content encoding is accepted by the client
Rejection created by range directives.
Rejection created by range directives. Signals that the request was rejected because the requests contains only unsatisfiable ByteRanges. The actualEntityLength gives the client a hint to create satisfiable ByteRanges.
Rejection created by unmarshallers.
Rejection created by unmarshallers. Signals that the request was rejected because the requests content-type is unsupported.
Rejection created by decoding filters.
Rejection created by decoding filters. Signals that the request was rejected because the requests content encoding is unsupported.
Rejection created when a websocket request was not handled because none of the given subprotocols was supported.
Rejection created by the validation
directive as well as for IllegalArgumentExceptions
thrown by domain model constructors (e.g.
Rejection created by the validation
directive as well as for IllegalArgumentExceptions
thrown by domain model constructors (e.g. via require
).
It signals that an expected value was semantically invalid.
INTERNAL API
Rejection created by the various akka.http.javadsl.server.directives.SecurityDirectives. Signals that the request was rejected because the user could not be authenticated. The reason for the rejection is specified in the cause.


---
layout: default
title: Runewizard for Diablo II LoD 1.13
---
What is it?
The Runewizard lets you check easily what
runewords you can make with the
runes you have on a Diablo II character.
It is compatible with Diablo II LoD up to version 1.13 (note: patches after 1.11 didn't introduce new runewords).
Click on the runes to indicate which ones you have found. The available runewords will be highlighted automatically.
The table can be sorted, try clicking on "Type" to sort runewords by equipment type, you may find it useful!
Runes
The runes are listed in order of rarity, from the most common to the most rare, from top to bottom, and left to right.
The vertical groups of runes represent roughly
Common,
Semi-Rare, and
Extremely Rare runes. Note also that the order is
consistent with the rune
upgrade formulas for the Horadric Cube. For example 3 x Tal = 1 x Ral rune.
Note about Cookies
This page remembers which runes you have selected by saving them in a "cookie" in your web browser. Thus, be aware that clearing/deleting cookies in your browser will reset the selected runes.
Misc. notes
The small
icon indicates Ladder-only runewords.
Close help
Help
Runewords
| Runeword |
Rune |
Rune |
Rune |
Rune |
Rune |
Rune |
Type |
LVL |
Missing Runes |
| |
|
|
|
|
|
|
|
|
|
Level 9 Fanaticism Aura When Equipped
+40% Increased Attack Speed
+240-270% Enhanced Damage (varies)
20% Chance of Crushing Blow
25% Chance of Open Wounds
+3 To Werebear
+3 To Lycanthropy
Prevent Monster Heal
+25-40 To Strength (varies)
+10 To Energy
+2 To Mana After Each Kill
Level 13 Summon Grizzly (5 Charges)
+50% Enhanced Defense
Cold Resist +43%
Fire Resist +48%
Lightning Resist +48%
Poison Resist +48%
10% Damage Goes To Mana
+120% Enhanced Damage
40% Chance Of Crushing Blow
+200 To Attack Rating
Adds 3-14 Cold Damage - Cold Duration 3 Seconds
+10 To Vitality
15% Increased Attack Speed
Knockback
Magic Damage Reduced By 2
Level 4 Corpse Explosion (12 Charges)
+209% Enhanced Damage
40% Increased Attack Speed
Prevent Monster Heal
66% Chance Of Open Wounds
33% Deadly Strike
Ignore Target's Defense
-25% Target Defense
20% Bonus To Attack Rating
6% Life Stolen Per Hit
+5 To Frenzy (Barbarian Only)
+60% Enhanced Damage
-25% Target Defense
Adds 5-30 Fire Damage
Adds 21-110 Lightning Damage
+75 Poison Damage Over 5 Seconds
+10 To Maximum Damage
Lightning Resistance +60%
+5 To Maximum Lightning Resistance
+3 To Holy Shock (Paladin Only)
Level 7 Chain Lightning (60 Charges)
+160% Enhanced Damage
+9 To Minimum Damage
+9 To Maximum Damage
25% Deadly Strike
+250 To Attack Rating
+1 to All Skills
7% Life Stolen Per Hit
Replenish Life +10
+10 To Strength
+1 To Light Radius
+2 To Mana After Each Kill
+100% Enhanced Damage
+100% Damage To Demons
+50% Damage To Undead
Adds 5-30 Fire Damage
Adds 3-14 Cold Damage - 3 Second Duration
+150 To Attack Rating
+100 To Attack Rating Against Demons
+100 To Attack Rating Against Undead
7% Life Stolen Per Hit
Adds 5-30 Fire Damage
+3 To Fire Skills
+3 To Fire Bolt (Sorceress Only)
+3 To Inferno (Sorceress Only)
+3 To Warmth (Sorceress Only)
+2 To Mana After Each Kill
+ (2 Per Character Level) +2-198 To Defense (Based On Character Level)
Cold Resist +33%
+20% Enhanced Damage
Requirements -15%
+25 To Strength
+10 To Energy
+20 To Vitality
+15 To Dexterity
+50 To Life
All Resistances +30
+1 To All Skill Levels
+10 To Energy
+2 To Mana After Each Kill
Lightning Resist +30%
Damage Reduced By 7
+2 To Light Radius
+33% Enhanced Damage
+9 To Maximum Damage
100% Chance Of Open Wounds
-25% Target Defense
-100 To Monster Defense Per Hit
Prevent Monster Heal
+50 To Attack Rating
Drain Life -5
+50% Enhanced Damage
+300% Damage To Undead
+3 To Bow and Crossbow Skills (Amazon Only)
+3 To Critical Strike (Amazon Only)
+3 To Dodge (Amazon Only)
+3 To Slow Missiles (Amazon Only)
20% Increased Attack Speed
+10 To Dexterity
Knockback
+3 to Sorceress Skill Levels
33% Faster Cast Rate
Increase Maximum Mana 20%
+3 Energy Shield (Sorceress Only)
+2 Static Field (Sorceress Only)
+10 To Energy
+10 To Vitality
+9 To Minimum Damage
-25% Target Defense
Magic Damage Reduced By 7
+50% Enhanced Defense
+50% Enhanced Defense
+10 Defense
+30 Defense vs. Missile
Level 13 Cloak of Shadows (9 Charges)
+2 To Mana After Each Kill
+5 To Strength
-33% Extra Gold From Monsters
-3 To Light Radius
+75% Enhanced Defense
+30 Defense Vs. Missile
+10 To Energy
+10 To Vitality
15% Damage Goes To Mana
Magic Damage Reduced By 3
+33 To Mana
Damage Reduced By 7
+5 To Light Radius
20% Increased Chance of Blocking
40% Faster Block Rate
All Resistances +25
Regenerate Mana 15%
Cannot Be Frozen
50% Extra Gold From Monsters
25% Better Chance Of Getting Magic Items
200% Enhanced Damage
+75% Damage To Undead
Requirements -20%
20% Increased Attack Speed
+50 To Attack Rating Against Undead
+2 To All Skills
All Resistances +75
20% Faster Hit Recovery
11% Mana Stolen Per Hit
Hit Causes Monster To Flee 25%
Hit Blinds Target +33
+2 To Mana After Each Kill
30% Better Chance Of Getting Magic Items
+75% Enhanced Defense
+280 Defense Vs. Missile
All Resistances +50
20% Faster Hit Recovery
Level 6 Weaken (18 Charges)
+10 To Energy
-1 To Light Radius
Magic Damage Reduced By 3
+6 To Dexterity
+15 To Maximum Stamina
Poison Resist +30%
Regenerate Mana 15%
25% Faster Run/Walk
25% Faster Cast Rate
25% Faster Hit Recovery
20% Enhanced Damage
+3 To Minimum Damage
+3 To Maximum Damage
+50 To Attack Rating
50% Chance Of Open Wounds
25% Increased Attack Speed
+2 To Mana After Each Kill
+1 To Light Radius
35% Enhanced Damage
25% Chance Of Crushing Blow
7% Life Stolen Per Hit
+2 To Mana After Each Kill
+20 To Strength
+10 To Vitality
Hit Causes Monster To Flee 25%
Prevent Monster Heal
Ignore Target's Defense
7% Mana Stolen Per Hit
Level 15 Poison Explosion (27 Charges)
Level 13 Poison Nova (11 Charges)
+273 Poison Damage Over 6 seconds
300% Extra Gold From Monsters
100% Better Chance Of Getting Magic Items
+2 To Mana After Each Kill
+10 To Dexterity
Hit Causes Monster To Flee 25%
+10 To Vitality
+3 To Poison And Bone Skills (Necromancer Only)
+3 To Bone Armor (Necromancer Only)
+2 To Bone Spear (Necromancer Only)
+4 To Skeleton Mastery (Necromancer Only)
Magic Damage Reduced By 4
20% Faster Cast Rate
+13 To Mana
+33% Enhanced Damage
+66 To Attack Rating
Adds 1-50 Lightning Damage
-25% Target Defense
+25 Defense
25% Faster Run/Walk
25% Increased Attack Speed
7% Chance To Cast Level 1 Twister When Struck
Level 9 Fanaticism Aura When Equipped
+40% Increased Attack Speed
+240-270% Enhanced Damage (varies)
20% Chance of Crushing Blow
25% Chance of Open Wounds
+3 To Werebear
+3 To Lycanthropy
Prevent Monster Heal
+25-40 To Strength (varies)
+10 To Energy
+2 To Mana After Each Kill
Level 13 Summon Grizzly (5 Charges)
Level 15-21 Thorns Aura When Equipped (varies)
+50% Faster Hit Recovery
+25-50% To Poison Skill Damage (varies)
+300 Defense
Increase Maximum Mana 5%
Regenerate Mana 15%
+5% To Maximum Cold Resist
Fire Resist +30%
Poison Resist +100%
+13 Life After Each Kill
Level 13 Spirit of Barbs (33 Charges)
50% Chance To Cast Level 20 Poison Nova When You Kill An Enemy
Indestructible
+60% Increased Attack Speed
+350-400% Enhanced Damage (varies)
+200% Damage To Undead
-25% Target Defense
+50 To Attack Rating
+50 To Attack Rating Against Undead
7% Mana Stolen Per Hit
12-15% Life Stolen Per Hit (varies)
Prevent Monster Heal
+30 To All Attributes
+1 To Light Radius
Requirements -20%
+1 To All Skills
+40% Increased Attack Speed
+250-290% Enhanced Damage (varies)
Adds 5-30 Fire Damage
7% Life Stolen Per Hit
+2-6 To Battle Command (varies)*
+1-6 To Battle Orders (varies)*
+1-4 To Battle Cry (varies)*
Prevent Monster Heal
Replenish Life +12
30% Better Chance of Getting Magic Items
9% Chance To Cast Level 11 Frozen Orb On Striking
11% Chance To Cast Level 9 Charged Bolt On Striking
+35% Increased Attack Speed
+290-340% Enhanced Damage (varies)
Adds 216-471 Magic Damage
25% Chance of Open Wounds
+1 To Whirlwind
+10 To Strength
+15 Life After Each Demon Kill
+2 To All Skills
+200% Damage To Demons
+100% Damage To Undead
8% Life Stolen Per Hit
+70% Enhanced Defense
+20 To Strength
Replenish Life +7
All Resistances +65
Damage Reduced By 8%
25% Better Chance of Getting Magic Items
10% Chance To Cast Level 17 Chain Lightning On Striking
7% Chance To Cast Level 13 Static Field On Striking
+20% Increased Attack Speed
+180-220% Enhanced Damage (varies)
Ignore Target's Defense
-35% To Enemy Lightning Resistance
25% Chance of Open Wounds
+9-11 Magic Absorb (varies)
+2 To Mana After Each Kill
Level 18 Summon Spirit Wolf (30 Charges)
1% Chance To Cast Level 50 Delirium* (morph) When Struck
6% Chance To Cast Level 14 Mind Blast When Struck
14% Chance To Cast Level 13 Terror When Struck
11% Chance To Cast Level 18 Confuse On Striking
+2 To All Skills
+261 Defense
+10 To Vitality
50% Extra Gold From Monsters
25% Better Chance of Getting Magic Items
Level 17 Attract (60 Charges)
5% Chance To Cast Level 18 Volcano On Striking
Level 12 Holy Freeze Aura When Equipped
+2 To All Skills
+45% Increased Attack Speed
+330-370% Enhanced Damage (varies)
-(40-60)% To Enemy Cold Resistance (varies)
20% Deadly Strike
25% Chance of Open Wounds
Prevent Monster Heal
Freezes Target +3
Requirements -20%
+40% Faster Hit Recovery
+10-20% Enhanced Damage (varies)
Adds 37-133 Cold Damage 2 sec. Duration (Normal)
15% Chance of Crushing Blow
33% Chance of Open Wounds
+150-200% Enhanced Defense (varies)
-20% Slower Stamina Drain
Cold Resist +45%
Lightning Resist +15%
Fire Resist +15%
Poison Resist +15%
+2 To All Skills
+45% Faster Run/Walk
+1 To Teleport
+750-775 Defense (varies)
+ (0.75 Per Character Level) +0-74 To Strength (Based On Character Level)
Increase Maximum Life 5%
Damage Reduced By 8%
+14 Life After Each Kill
15% Damage Taken Goes To Mana
+ (1 Per Character Level) +1-99% Better Chance of Getting Magic Items (Based On Character Level)
Indestructible
+260-310% Enhanced Damage (varies)
+9 To Minimum Damage
7% Life Stolen Per Hit
20% Chance of Crushing Blow
Hit Blinds Target
Slows Target By 33%
Regenerate Mana 16%
Replenish Life +16
Cannot Be Frozen
30% Better Chance Of Getting Magic Items
Level 8 Revive (88 Charges)
15% Chance To Cast Level 5 Life Tap On Striking
Level 13-16 Defiance Aura When Equipped (varies)
+2 To Offensive Auras (Paladin Only)
+30% Faster Block Rate
Freezes Target
+220-260% Enhanced Defense (varies)
Replenish Life +7
+5% To Maximum Cold Resist
+5% To Maximum Fire Resist
25% Better Chance Of Getting Magic Items
Repairs 1 Durability in 4 Seconds
+30% Increased Attack Speed
+320-370% Enhanced Damage (varies)
Ignore Target's Defense
Adds 180-200 Magic Damage
Adds 50-200 Fire Damage
Adds 51-250 Lightning Damage
Adds 50-200 Cold Damage
12% Life Stolen Per Hit
Prevent Monster Heal
+10 To Strength
15% Chance To Cast Level 3 Dim Vision When Struck
+10% Faster Hit Recovery
+200-260% Enhanced Defense (varies)
+10 To Strength
All Resistances +45
Half Freeze Duration
5% Damage Taken Goes To Mana
-3 To Light Radius
100% Chance To Cast Level 36 Blaze When You Level-Up
100% Chance To Cast Level 48 Meteor When You Die
Level 16 Holy Fire Aura When Equipped
+33% Increased Attack Speed
+280-330% Enhanced Damage (varies)
Ignore Target's Defense
7% Life Stolen Per Hit
-20% To Enemy Fire Resistance
20% Deadly Strike
Hit Blinds Target
Freezes Target +3
+3 To All Skills
+40% Faster Cast Rate
+75% Damage To Demons
+100 To Attack Rating Against Demons
Adds 3-14 Cold Damage, 3 sec. Duration (Normal)
7% Mana Stolen Per Hit
+10 To Dexterity
Replenish Life +20
Increase Maximum Mana 15%
All Resistances +30-40 (varies)
Level 4 Oak Sage (25 Charges)
Level 14 Raven (60 Charges)
+30% Increased Attack Speed
+230-270% Enhanced Damage (varies)
-25% Target Defense
20% Bonus To Attack Rating
33% Chance of Crushing Blow
50% Chance of Open Wounds
+1 To Vengeance
Prevent Monster Heal
+10 To Strength
40% Extra Gold From Monsters
+25% Increased Attack Speed
+160-210% Enhanced Damage (varies)
50-80% Bonus To Attack Rating (varies)
+75% Damage To Undead
+50 To Attack Rating Against Undead
Adds 1-50 Lightning Damage
+1 To Berserk
+1 To Zeal
Hit Blinds Target +10
Hit Causes Monster To Flee 25%
75% Extra Gold From Monsters
Level 3 Heart of Wolverine (12 Charges)
+25% Faster Hit Recovery
+140-170% Enhanced Defense (varies)
All Resistances +25-35 (varies)
Damage Reduced by 3
Magic Damage Reduced by 17
+2 To Mana After Each Kill
+1 To Light Radius
Repairs Durability 1 In 4 Seconds
+20% Faster Hit Recovery
+20% Faster Block Rate
20% Increased Chance of Blocking
+130-160% Enhanced Defense (varies)
+250 Defense vs. Missile
+20 To Dexterity
All Resistances +50-70 (varies)
Magic Damage Reduced By 7
Level 12 Slow Missiles (60 Charges)
+1 To All Skills
+10% Faster Cast Rate
+20% Faster Block Rate
+60-100% Enhanced Defense (varies)
+10 To Energy
Regenerate Mana 15%
50% Extra Gold From Monsters
20% Better Chance of Getting Magic Items
+3 To Light Radius
+60% Faster Hit Recovery
+250-290% Enhanced Defense (varies)
+300 Defense Vs. Missile
+16 To Strength
+16 To Vitality
+10 To Energy
All Resistances +15
Level 16 Molten Boulder (80 Charges)
Level 16 Clay Golem (16 Charges)
10% Chance To Cast Level 9 Tornado On Striking
+20% Faster Run/Walk
+40% Increased Attack Speed
+15% Faster Hit Recovery
+120-160% Enhanced Damage (varies)
-50% Target Defense
+50 To Attack Rating
Hit Blinds Target
+1 To Light Radius
Level 13 Twister (127 Charges)
35% Chance To Cast Level 14 Amplify Damage When Struck
100% Chance To Cast Level 18 Bone Spear On Striking
+260-340% Enhanced Damage (varies)
Ignore Target's Defense
20% Bonus to Attack Rating
+280-330% Damage To Demons (varies)
20% Deadly Strike
Prevent Monster Heal
Knockback
Fires Explosive Arrows or Bolts (15)
100% Chance To Cast Level 44 Chain Lightning When You Die
25% Chance To Cast Level 18 Glacial Spike On Attack
Indestructible
+300-385% Enhanced Damage (varies)*
20% Bonus To Attack Rating
+50 To Attack Rating
Adds 1-50 Lightning Damage
7% Mana Stolen Per Hit
50% Chance of Crushing Blow
+(0.5 per Character Level) 0.5-49.5% Deadly Strike (Based on Character Level)
+1 To Light Radius
Level 22 Blood Golem (15 Charges)
Requirements -20%
23% Chance To Cast Level 12 Volcano On Striking
5% Chance To Cast Level 23 Molten Boulder On Striking
100% Chance To Cast level 45 Meteor When You Die
15% Chance To Cast Level 22 Nova On Attack
+350% Enhanced Damage
Ignore Target's Defense
Adds 100-180 Magic Damage
7% Mana Stolen Per Hit
20% Chance Of Crushing Blow
20% Deadly Strike
Prevent Monster Heal
+10 To Dexterity
20% Chance to Cast Level 18 Venom When Struck
12% Chance To Cast Level 15 Hydra On Striking
Level 14 Holy Fire Aura When Equipped
+360 Defense
+230 Defense Vs. Missile
+3-5 To All Attributes (varies)
+0.375-37.125 To Strength (Based on Character Level)
Increase Maximum Mana 5% (Armor Only)
+50 To Mana (Shields Only)
+5% To Maximum Lightning Resist
Damage Reduced by 7
10% Chance To Cast Level 15 Confuse When Struck
Level 15 Holy Shock Aura When Equipped
+20-30% Faster Hit Recovery (varies)
+30% Enhanced Defense
+150-220 Defense (varies)
+10 To Vitality
Increase Maximum Life 5% (Helms Only)
+50 To Life (Shields Only)
+0.625-61.875 To Mana (Based On Character Level)
All Resistances +5-20 (varies)
12-25% Better Chance of Getting Magic Items (varies)
Level 15 Thorns Aura When Equipped
+35% Increased Attack Speed
+320-380% Damage To Demons (varies)
+280% Damage To Undead
+75 Poison Damage Over 5 Seconds
7% Life Stolen Per Hit
Prevent Monster Heal
+5-10 To All Attributes (varies)
+2 To Mana After Each Kill
Reduces All Vendor Prices 15%!!!
Level 12-15 Fanaticism Aura When Equipped (varies)
+1-2 To All Skills (varies)
+330% Enhanced Damage
Ignore Target's Defense
300% Bonus To Attack Rating
+75% Damage To Undead
+50 To Attack Rating Against Undead
+120 Fire Damage
All Resistances +15
10% Reanimate As: Returned
75% Extra Gold From Monsters
Weapons
20% Chance To Cast Level 15 Chilling Armor when Struck
+25% Faster Cast Rate
+300% Enhanced Damage
+9 To Minimum Damage
+50 To Attack Rating
20% Deadly Strike
Hit Causes Monster To Flee 25%
+200% Enhanced Defense
+X To Life (Based on Character Level)*
All Resistances +25-30 (varies)
12% Damage Taken Goes To Mana
+1 To Light Radius
Body Armor
20% Chance To Cast Level 15 Chilling Armor when Struck
+25% Faster Cast Rate
+300% Enhanced Damage
+200% Enhanced Defense
+15 Defense
+X To Life (Based on Character Level)*
Replenish Life +7
+5% To Maximum Lightning Resist
All Resistances +25-30 (varies)
Damage Reduced By 7
12% Damage Taken Goes To Mana
+1 To Light Radius
35% Chance To Cast Level 15 Venom On Striking
+30-40% Increased Attack Speed (varies)
Damage +340-400 (varies)
Ignore Target's Defense
-25% Target Defense
+(1.875 per character level) 1.875-185.625% Damage To Demons (Based on Character Level)
Adds 5-30 Fire Damage
-20-25% To Enemy Poison Resistance (varies)
20% Deadly Strike
Prevent Monster Heal
+2 To Mana After Each Kill
+10-15 Life After Each Kill (varies)
Level 10 Vigor Aura When Equipped
+200-275% Enhanced Damage (varies)
+9 To Minimum Damage
+9 To Maximum Damage
Adds 55-160 Lightning Damage
Adds 55-160 Fire Damage
Adds 55-160 Cold Damage
+2-6 To Valkyrie (varies)
+10 To Dexterity
Regenerate Mana 20%
+2 To Mana After Each Kill
+2 To Light Radius
Level 20 Revive (25 Charges)
100% Chance To Cast Level 40 Blizzard When You Level-up
25% Chance To Cast Level 22 Frost Nova On Striking
Level 18 Holy Freeze Aura When Equipped
+20% Increased Attack Speed
+140-210% Enhanced Damage (varies)
Ignore Target's Defense
+25-30% To Cold Skill Damage (varies)
-20% To Enemy Cold Resistance
7% Life Stolen Per Hit
20% Deadly Strike
3.125-309.375 Extra Gold From Monsters (Based on Character Level)
50% Chance To Cast Level 20 Chain Lightning When You Kill An Enemy
Level 12 Conviction Aura When Equipped
+35% Faster Run/Walk
+255-325% Enhanced Damage (varies)
-(45-55)% To Enemy Lightning Resistance (varies)
40% Chance of Crushing Blow
Prevent Monster Heal
0.5-49.5 To Vitality (Based on Character Level)
30% Better Chance of Getting Magic Items
Level 21 Cyclone Armor (30 Charges)
Level 12-17 Meditation Aura When Equipped (varies)
+35% Faster Cast Rate
+200-260% Enhanced Damage (varies)
+9 To Minimum Damage
180-250% Bonus to Attack Rating (varies)
Adds 5-30 Fire Damage
+75 Poison Damage Over 5 Seconds
+1-6 To Critical Strike (varies)
+5 To All Attributes
+2 To Mana After Each Kill
23% Better Chance of Getting Magic Items
6% Chance To Cast Level 11 Fade When Struck
10% Chance To Cast Level 18 Life Tap On Striking
20% Chance To Cast Level 20 Charged Bolt On Attack
Level 17 Might Aura When Equipped
+330-375% Enhanced Damage (varies)
Ignore Target's Defense
60-70% Chance of Crushing Blow (varies)
Prevent Monster Heal
Hit Blinds Target
+(0.5 per character level) 0.5-49.5% Chance of Getting Magic Items (Based on Character Level)
20% Chance To Cast Level 15 Decrepify On Striking
Level 16-18 Sanctuary Aura When Equipped (varies)
-50% Target Defense
Adds 150-210 Fire Damage
Adds 130-180 Cold Damage
7% Life Stolen Per Hit
Slain Monsters Rest In Peace
+200-250 Defense Vs. Missile (varies)
+10 To Dexterity
75% Extra Gold From Monsters
30% Chance To Cast Level 20 Bone Spirit On Striking
Indestructible
+50% Increased Attack Speed
+210-340% Enhanced Damage (varies)
+75% Damage To Demons
+100 To Attack Rating Against Demons
Prevent Monster Heal
+10 To Energy
+10-15 Magic Absorb (varies)
Level 16 Heart Of Wolverine (20 Charges)
Level 17 Iron Golem (14 Charges)
30% Chance To Cast Level 21 Enchant When You Kill An Enemy
40% Faster Hit Recovery
+370% Enhanced Damage
-25% Target Defense
Adds 3-14 Cold Damage 3 Second Duration (Normal)
-25% To Enemy Fire Resistance
40% Chance of Crushing Blow
+200-300 Defense (varies)
+10 To Strength
+10 To Dexterity
All Resistances +20-30 (varies)
Requirements -20%
Weapons
100% Chance To Cast level 40 Blaze When You Level-up
40% Chance To Cast Level 22 Firestorm On Striking
Level 10-15 Redemption Aura When Equipped (varies)
+350-400% Enhanced Damage (varies)
Ignores Target's Defense
14% Mana Stolen Per Hit
-28% To Enemy Fire Resistance
20% Deadly Strike
+350-400 Defense Vs. Missile (varies)
+15-21 Fire Absorb (varies)
Shields
100% Chance To Cast level 40 Blaze When You Level-up
40% Chance To Cast Level 22 Firestorm On Striking
Level 10-15 Redemption Aura When Equipped (varies)
+350-400 Defense Vs. Missile (varies)
+350-400% Enhanced Damage (varies)
-28% To Enemy Fire Resistance
+50 To Life
+5% To Maximum Lightning Resist
+10% To Maximum Fire Resist
+15-21 Fire Absorb (varies)
25% Chance To Cast Level 17 Fire Wall When Struck
Level 16-20 Concentration Aura When Equipped (varies)
260-300% Bonus To Attack Rating (varies)
+1-99% Damage To Demons (Based on Character Level)
Adds 50-280 Lightning Damage
20% Deadly Strike
Hit Blinds Target
Freezes Target +3
+10 To Vitality
Replenish Life +8
1.875-185.625% Extra Gold From Monsters (Based on Character Level)
20% Chance To Cast Level 16 Tornado On Striking
16% Chance To Cast Level 21 Frozen Orb On Attack
20% Bonus To Attack Rating
Adds 160-250 Magic Damage
Adds 60-180 Fire Damage
+5-10 To All Stats (varies)
+10 To Dexterity
38% Damage Taken Goes To Mana
75% Extra Gold From Monsters
Level 15 Iron Maiden (40 Charges)
Requirements -20%
Weapons
+2 To All Skills
+25-35% Faster Cast Rate (varies)
+55% Faster Hit Recovery
Adds 1-50 Lightning Damage
Adds 3-14 Cold Damage 3 Second Duration (Normal)
+75 Poison Damage Over 5 Seconds
7% Life Stolen Per Hit
+250 Defense Vs. Missile
+22 To Vitality
+89-112 To Mana (varies)
+3-8 Magic Absorb (varies)
Shields
+2 To All Skills
+25-35% Faster Cast Rate (varies)
+55% Faster Hit Recovery
+250 Defense Vs. Missile
+22 To Vitality
+89-112 To Mana (varies)
Cold Resist +35%
Lightning Resist +35%
Poison Resist +35%
+3-8 Magic Absorb (varies)
Attacker Takes Damage of 14
15% Chance To Cast Level 13 Frozen Orb On Striking
18% Chance To Cast Level 20 Ice Blast On Striking
+50 To Attack Rating
+220-350% Damage To Demons
+355-375% Damage To Undead (varies)
+50 To Attack Rating Against Undead
Adds 100-220 Cold Damage
-24% To Enemy Cold Resistance
+10 To Dexterity
Cannot Be Frozen
75% Extra Gold From Monsters
+1 To Light Radius
30% Chance To Cast Level 1 Decrepify On Striking
5% Chance To Cast Level 10 Life Tap On Striking
+375% Damage To Demons
+100 To Attack Rating Against Demons
+250-300% Damage To Undead (varies)
Adds 85-120 Magic Damage
Adds 41-240 Lightning Damage
20% Chance of Crushing Blow
Prevent Monster Heal
+10 To Energy
Cannot Be Frozen
15% Chance To Cast level 10 Bone Armor When Struck
15% Chance To Cast level 10 Bone Spear On Striking
+2 To Necromancer Skill Levels
+100-150 To Mana (varies)
All Resistances +30
Damage Reduced By 7
5% Chance To Cast Level 15 Blaze When Struck
5% Chance To Cast level 15 Fire Ball On Striking
+2 To Sorceress Skill Levels
+1 To Warmth
+30% Enhanced Defense
Fire Resist +30%
Damage Reduced By 7
3% Chance To Cast Level 1 Howl When Struck
10% Chance To Cast Level 1 Taunt On Striking
+2 To Barbarian Skill Levels
+30 Defense Vs. Missile
Replenish Life +10
Attacker Takes Damage of 14
Requirements -15%
4% Chance To Cast Level 5 Slow Missiles When Struck
2% Chance To Cast level 15 Valkyrie On Striking
+2 To Amazon Skill Levels
+20% Faster Hit Recovery
+2 To Critical Strike
Cold Resist +30%
Attacker Takes Damage of 14
100% Chance To Cast Level 5 Holy Bolt On Striking
+2 To Paladin Skill Levels
15% Slower Stamina Drain
+5% To Maximum Poison Resist
Fire Resist +30%
5% Chance To Cast Level 15 Cyclone Armor When Struck
5% Chance To Cast Level 15 Twister On Striking
+2 To Druid Skills
+100-150 To Mana (varies)
Lightning Resist +30%
Magic Damage Reduced By 7
15% Damage Taken Goes to Mana
5% Chance To Cast Level 15 Fade When Struck
25% Chance To Cast level 15 Venom On Striking
+2 To Assassin Skills
+45% Increased Attack Speed
+20% Faster Hit Recovery
Cold Resist +30%
50% Extra Gold From Monsters


Protocol
SubscriptionCollection
public protocol SubscriptionCollection
Abstraction over subscription collection (DisposeBag
or Set<AnyCancellable
depending on your chosen reactive framework), useful for keeping
subscriptions alive while the parent class is alive, binding the lifecycle of subscriptions to the lifecycle of views, view controllers or
presenters. Subscriptions added to a subscription collection will be cancelled/disposed automatically once the collection gets deallocated,
stopping any pending operation and cleaning up the resources.
This abstraction uses concept similar to type-erasure or protocol witness pattern, wrapping the behaviour of concrete implementations and
delegating to them once the wrapper funcions are called.
Requirements
store(subscription:)
mutating func store(subscription: SubscriptionType)


--- layout: archive title: Zulip Chat Archive permalink: /stream/113488-general/topic/Will.20simp.20go.20in.20a.20loop.3F.html ---
If I have two simp lemmas that are the inverse of each other, will simp go into a loop? For example:
@[simp] lemma mul_act : (g * h) • x = g • h • x := group_action.mul g h x @[simp] lemma act_act : g • h • x = (g * h) • x := eq.symm $ group_action.mul g h x
Why don't you try it? I think the answer is yes
I tried it and it succeeded
oh, it went in a loop when the goal can't be closed
I think you should think of simp
lemmas as a way to decrease the complexity of your expressions. If they cancel each other, one of them must not be decreasing the complexity. Which one should you apply by name?
Last updated: Apr 24 2020 at 19:02 UTC


Web & App Development Workshop
This workshop will demonstrate how to quickly & easily you can build web & mobile backend applications using Heroku, part of the Salesforce App Cloud, using a $7 Keepod Android device. Using free, open source technologies such as Java, Php, Ruby, Angular, Bootstrap, Ember, React etc. you can start your own business using Heroku!
Welcome & Opening Remarks
Speaker: Carl Meyer - SourceIT
What is Heroku
Speaker: David Baliles - Salesforce
In this session David will discuss how hosting technologies have evolved so you no longer need an entire server to host a web or mobile app, but just a 'container' in which to run it. You will learn what Heroku is, how it relates to Salesforce.com and how it can help you create, deploy and manage your web applications easily and cost-effectively.
Building your First Heroku Application
Speaker: David Baliles
In this session David will demonstrate how to log into Heroku and begin creating a new web application, including creating the container of compute, the additional services required to host the web application, and stitching everything together to have a fully-working application.
11:00am - 11:15amBreak
Hands On Workshop
Speaker: David Baliles
In this session, attendees will learn how to sign up & deploy an application on Heroku through a quick, hands-on activity.
12:00pm - 12:30amWays to Get Involved
Speaker: Carl Meyer
Carl will conclude our day with a brief overview of SourceIT & introduce opportunities for how you can get involved and begin creating web and mobile applications of your own.
You will learn how to start building web apps using the latest $7 Keepod USB Android device
You will learn how to host your new web application on Salesforce's Heroku platform
You will come away having built your first web application on Heroku using your Keepod, completely for free
6 May, Polytechnic Chichiri Campus, Blantyre
Contact<EMAIL_ADDRESS>for detailsInterested in becoming a sponsor? Get in touch


TL;DR: Subsetting JavaScript is easy, you can do it with
jsub
.
At SimpliField, we allow users to collect and analyse field data and as part of it, our users can create their own data models.
As a consequence, we needed a solution that allows to define dynamically computed relational constraints. Things like dynamically define a form field as optional based on some conditions/computations.
We ended up with a reliable solution based on a user interface and simple conditions. The problem we faced was that every new feature resulted in new complexity.
We were also defining a new language our API consumers would certainly hate, once publicly available. And friends don't let friends struggling with bad APIs ;).
We're using a full JavaScript stack (we call it MEANI for Mongo Express Angular NodeJS and Ionic). The big win of this kind of stack is not only isomorphism (I had great moments building the end-to-end user's rights management system for our apps) but is mainly skill reuse.
As a JavaScript developer, I can make some changes to the back-end and apply the resulting changes in both the front-end and the mobile app. It is really valuable as you don't have to rely on someone else to make a bunch of related changes.
So we choose to rely on JavaScript for conditionally displayed fields, computed fields, etc... The idea is simple: we need a formula language like those you can find in Open Office Calc or Microsoft Excel but we don't want to reinvent the wheel.
We also want to have the minimal learning curve for developpers that will interact with our API. Since JavaScript was already a first class citizen in our stack, subsetting its syntax was in evidence.
Thanks to the great Esprima project, only a few hours were sufficient to create a first prototype of jsub; a tiny project aimed to simply define a custom JavaScript subset.
You basically define a set of conditions that shapes syntactically allowed expressions. Then, you check your script against those conditions and if something is going wrong, errors will simply show up.
var simpleMath = { conditions: [{ type: 'Program' // allow the root node }, { type: 'ExpressionStatement' // allow expressions }, { type: 'BinaryExpression', // allow the + and - operators operator: ['+', '-'] }, { type: 'Literal', raw: /^([0-9]{1,5})$/ // allow positive numbers }] }; var errors = jsub('(1 + 2) - 1', simpleMath); assert.equal(errors.length, 0);
Having a custom syntax subsetting JavaScript provides a lot of out of the box advantages:
There's probably a lot more things interesting with this approach let me know your thoughts.


=== Test case: lasp_SUITE:contracted_latency_test/1 (click for source code)
=== Config value:
[{watchdog,<0.501.0>},
<EMAIL_ADDRESS>{tc_group_properties,[]},
{tc_group_path,[]},
{data_dir,"/Users/anne-francevanswieten/lasp/_build/test/lib/lasp/test/lasp_SUITE_data/"},
<EMAIL_ADDRESS>=== Current directory is<EMAIL_ADDRESS>=== Started at 2017-05-05 22:09:33
*** User 2017-05-05 22:09:33.376 ***
Beginning case: contracted_latency_test
*** User 2017-05-05 22:09:33.390 ***
22:09:33.390 [info] Configured peer_service_manager partisan_default_peer_service_manager on node 'runner@MacBook-Pro-de-Anne-France'
*** User 2017-05-05 22:09:34.731 ***
22:09:34.731 [info] Enabling membership...
*** User 2017-05-05 22:09:34.733 ***
22:09:34.733 [info] Disabling blocking sync...
*** User 2017-05-05 22:09:34.739 ***
22:09:34.739 [info] Configured peer_service_manager partisan_default_peer_service_manager on node 'node-1@MacBook-Pro-de-Anne-France'
*** User 2017-05-05 22:09:36.365 ***
22:09:36.365 [info] Enabling membership...
*** User 2017-05-05 22:09:36.367 ***
22:09:36.367 [info] Disabling blocking sync...
*** User 2017-05-05 22:09:36.372 ***
22:09:36.372 [info] Configured peer_service_manager partisan_default_peer_service_manager on node 'node-2@MacBook-Pro-de-Anne-France'
*** User 2017-05-05 22:09:37.921 ***
22:09:37.920 [info] Enabling membership...
*** User 2017-05-05 22:09:37.922 ***
22:09:37.922 [info] Disabling blocking sync...
*** User 2017-05-05 22:09:37.927 ***
22:09:37.926 [info] Configured peer_service_manager partisan_default_peer_service_manager on node 'node-3@MacBook-Pro-de-Anne-France'
*** User 2017-05-05 22:09:38.178 ***
Joining node: 'node-3@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53579
*** User 2017-05-05 22:09:38.182 ***
Joining issued: 'node-3@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53579
*** User 2017-05-05 22:09:38.183 ***
Joining node: 'node-2@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53562
*** User 2017-05-05 22:09:38.183 ***
Joining issued: 'node-2@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53562
*** User 2017-05-05 22:09:38.184 ***
Joining node: 'node-1@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53548
*** User 2017-05-05 22:09:38.188 ***
Joining issued: 'node-1@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53548
*** User 2017-05-05 22:09:38.248 ***
Waiting for join to complete with manager: partisan_default_peer_service_manager
*** User 2017-05-05 22:09:38.249 ***
Finished.
*** CT 2017-05-05 22:09:38.263 *** COVER INFO
Adding nodes to cover test: ['runner@MacBook-Pro-de-Anne-France']
*** CT 2017-05-05 22:09:38.271 *** COVER INFO
Successfully added nodes to cover test: []
*** User 2017-05-05 22:09:38.272 ***
Case finished: contracted_latency_test
*** User 2017-05-05 22:09:45.316 ***
22:09:45.316 [info] Application lasp exited with reason: stopped
=== Ended at 2017-05-05 22:09:45
=== successfully completed test case
=== Returned value: ok
Test run history
| Top level test index


HTML shows the structure of the web page, and can be thought of as a Tree Like Structure which is also called the "DOM"-Document Object Module.
Text Content still shows up as text within HTML, but how you format it will change the context to be important to the reader.
Markup changes the look of plain text to Bold, Italics, etc. You can also include Links.
CSS is also a language and controls the style of a page and how it looks. Within each Web Page, the HTML Structure and CSS Style code can be viewed in the Developer Tools view. CSS allows you to use Selectors to avoid repetition in code, and to create rules for formatting. By changing one item in CSS, it will change your layout desired, and avoid the need for HTML recoding-AWESOME!!! There are several Text Editors available to assist the program writer-CodePen, ScratchPad, and Sublime Text to assist with HTML, and CSS code.
Before Web Designer begins to think of the Web Page code, layout is the first plan of action! How should the Website look? Since a page is essentially boxes, what content would naturally look best in each box? This is called Box Positioning and includes Margins, Borders, Padding, and Content. Repeated styles and semantic elements should then be considered. Then write the HTML. Apply the styles from BIGGEST to smallest. Then take a good look at your web page and tweak what you don't care for.
Kellie Roy


#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""
Python package for statistical functions in MLlib.
"""
from pyspark import RDD
from pyspark.mllib.common import callMLlibFunc, JavaModelWrapper
from pyspark.mllib.linalg import Matrix, _convert_to_vector
from pyspark.mllib.regression import LabeledPoint
__all__ = ['MultivariateStatisticalSummary', 'ChiSqTestResult', 'Statistics']
[docs]class MultivariateStatisticalSummary(JavaModelWrapper):
"""
Trait for multivariate statistical summary of a data matrix.
"""
[docs] def mean(self):
return self.call("mean").toArray()
[docs] def variance(self):
return self.call("variance").toArray()
[docs] def count(self):
return self.call("count")
[docs] def numNonzeros(self):
return self.call("numNonzeros").toArray()
[docs] def max(self):
return self.call("max").toArray()
[docs] def min(self):
return self.call("min").toArray()
[docs]class ChiSqTestResult(JavaModelWrapper):
"""
:: Experimental ::
Object containing the test results for the chi-squared hypothesis test.
"""
@property
[docs] def method(self):
"""
Name of the test method
"""
return self._java_model.method()
@property
[docs] def pValue(self):
"""
The probability of obtaining a test statistic result at least as
extreme as the one that was actually observed, assuming that the
null hypothesis is true.
"""
return self._java_model.pValue()
@property
[docs] def degreesOfFreedom(self):
"""
Returns the degree(s) of freedom of the hypothesis test.
Return type should be Number(e.g. Int, Double) or tuples of Numbers.
"""
return self._java_model.degreesOfFreedom()
@property
[docs] def statistic(self):
"""
Test statistic.
"""
return self._java_model.statistic()
@property
[docs] def nullHypothesis(self):
"""
Null hypothesis of the test.
"""
return self._java_model.nullHypothesis()
def __str__(self):
return self._java_model.toString()
[docs]class Statistics(object):
@staticmethod
[docs] def colStats(rdd):
"""
Computes column-wise summary statistics for the input RDD[Vector].
:param rdd: an RDD[Vector] for which column-wise summary statistics
are to be computed.
:return: :class:`MultivariateStatisticalSummary` object containing
column-wise summary statistics.
>>> from pyspark.mllib.linalg import Vectors
>>> rdd = sc.parallelize([Vectors.dense([2, 0, 0, -2]),
... Vectors.dense([4, 5, 0, 3]),
... Vectors.dense([6, 7, 0, 8])])
>>> cStats = Statistics.colStats(rdd)
>>> cStats.mean()
array([ 4., 4., 0., 3.])
>>> cStats.variance()
array([ 4., 13., 0., 25.])
>>> cStats.count()
3L
>>> cStats.numNonzeros()
array([ 3., 2., 0., 3.])
>>> cStats.max()
array([ 6., 7., 0., 8.])
>>> cStats.min()
array([ 2., 0., 0., -2.])
"""
cStats = callMLlibFunc("colStats", rdd.map(_convert_to_vector))
return MultivariateStatisticalSummary(cStats)
@staticmethod
[docs] def corr(x, y=None, method=None):
"""
Compute the correlation (matrix) for the input RDD(s) using the
specified method.
Methods currently supported: I{pearson (default), spearman}.
If a single RDD of Vectors is passed in, a correlation matrix
comparing the columns in the input RDD is returned. Use C{method=}
to specify the method to be used for single RDD inout.
If two RDDs of floats are passed in, a single float is returned.
:param x: an RDD of vector for which the correlation matrix is to be computed,
or an RDD of float of the same cardinality as y when y is specified.
:param y: an RDD of float of the same cardinality as x.
:param method: String specifying the method to use for computing correlation.
Supported: `pearson` (default), `spearman`
:return: Correlation matrix comparing columns in x.
>>> x = sc.parallelize([1.0, 0.0, -2.0], 2)
>>> y = sc.parallelize([4.0, 5.0, 3.0], 2)
>>> zeros = sc.parallelize([0.0, 0.0, 0.0], 2)
>>> abs(Statistics.corr(x, y) - 0.6546537) < 1e-7
True
>>> Statistics.corr(x, y) == Statistics.corr(x, y, "pearson")
True
>>> Statistics.corr(x, y, "spearman")
0.5
>>> from math import isnan
>>> isnan(Statistics.corr(x, zeros))
True
>>> from pyspark.mllib.linalg import Vectors
>>> rdd = sc.parallelize([Vectors.dense([1, 0, 0, -2]), Vectors.dense([4, 5, 0, 3]),
... Vectors.dense([6, 7, 0, 8]), Vectors.dense([9, 0, 0, 1])])
>>> pearsonCorr = Statistics.corr(rdd)
>>> print str(pearsonCorr).replace('nan', 'NaN')
[[ 1. 0.05564149 NaN 0.40047142]
[ 0.05564149 1. NaN 0.91359586]
[ NaN NaN 1. NaN]
[ 0.40047142 0.91359586 NaN 1. ]]
>>> spearmanCorr = Statistics.corr(rdd, method="spearman")
>>> print str(spearmanCorr).replace('nan', 'NaN')
[[ 1. 0.10540926 NaN 0.4 ]
[ 0.10540926 1. NaN 0.9486833 ]
[ NaN NaN 1. NaN]
[ 0.4 0.9486833 NaN 1. ]]
>>> try:
... Statistics.corr(rdd, "spearman")
... print "Method name as second argument without 'method=' shouldn't be allowed."
... except TypeError:
... pass
"""
# Check inputs to determine whether a single value or a matrix is needed for output.
# Since it's legal for users to use the method name as the second argument, we need to
# check if y is used to specify the method name instead.
if type(y) == str:
raise TypeError("Use 'method=' to specify method name.")
if not y:
return callMLlibFunc("corr", x.map(_convert_to_vector), method).toArray()
else:
return callMLlibFunc("corr", x.map(float), y.map(float), method)
@staticmethod
[docs] def chiSqTest(observed, expected=None):
"""
:: Experimental ::
If `observed` is Vector, conduct Pearson's chi-squared goodness
of fit test of the observed data against the expected distribution,
or againt the uniform distribution (by default), with each category
having an expected frequency of `1 / len(observed)`.
(Note: `observed` cannot contain negative values)
If `observed` is matrix, conduct Pearson's independence test on the
input contingency matrix, which cannot contain negative entries or
columns or rows that sum up to 0.
If `observed` is an RDD of LabeledPoint, conduct Pearson's independence
test for every feature against the label across the input RDD.
For each feature, the (feature, label) pairs are converted into a
contingency matrix for which the chi-squared statistic is computed.
All label and feature values must be categorical.
:param observed: it could be a vector containing the observed categorical
counts/relative frequencies, or the contingency matrix
(containing either counts or relative frequencies),
or an RDD of LabeledPoint containing the labeled dataset
with categorical features. Real-valued features will be
treated as categorical for each distinct value.
:param expected: Vector containing the expected categorical counts/relative
frequencies. `expected` is rescaled if the `expected` sum
differs from the `observed` sum.
:return: ChiSquaredTest object containing the test statistic, degrees
of freedom, p-value, the method used, and the null hypothesis.
>>> from pyspark.mllib.linalg import Vectors, Matrices
>>> observed = Vectors.dense([4, 6, 5])
>>> pearson = Statistics.chiSqTest(observed)
>>> print pearson.statistic
0.4
>>> pearson.degreesOfFreedom
2
>>> print round(pearson.pValue, 4)
0.8187
>>> pearson.method
u'pearson'
>>> pearson.nullHypothesis
u'observed follows the same distribution as expected.'
>>> observed = Vectors.dense([21, 38, 43, 80])
>>> expected = Vectors.dense([3, 5, 7, 20])
>>> pearson = Statistics.chiSqTest(observed, expected)
>>> print round(pearson.pValue, 4)
0.0027
>>> data = [40.0, 24.0, 29.0, 56.0, 32.0, 42.0, 31.0, 10.0, 0.0, 30.0, 15.0, 12.0]
>>> chi = Statistics.chiSqTest(Matrices.dense(3, 4, data))
>>> print round(chi.statistic, 4)
21.9958
>>> data = [LabeledPoint(0.0, Vectors.dense([0.5, 10.0])),
... LabeledPoint(0.0, Vectors.dense([1.5, 20.0])),
... LabeledPoint(1.0, Vectors.dense([1.5, 30.0])),
... LabeledPoint(0.0, Vectors.dense([3.5, 30.0])),
... LabeledPoint(0.0, Vectors.dense([3.5, 40.0])),
... LabeledPoint(1.0, Vectors.dense([3.5, 40.0])),]
>>> rdd = sc.parallelize(data, 4)
>>> chi = Statistics.chiSqTest(rdd)
>>> print chi[0].statistic
0.75
>>> print chi[1].statistic
1.5
"""
if isinstance(observed, RDD):
if not isinstance(observed.first(), LabeledPoint):
raise ValueError("observed should be an RDD of LabeledPoint")
jmodels = callMLlibFunc("chiSqTest", observed)
return [ChiSqTestResult(m) for m in jmodels]
if isinstance(observed, Matrix):
jmodel = callMLlibFunc("chiSqTest", observed)
else:
if expected and len(expected) != len(observed):
raise ValueError("`expected` should have same length with `observed`")
jmodel = callMLlibFunc("chiSqTest", _convert_to_vector(observed), expected)
return ChiSqTestResult(jmodel)
def _test():
import doctest
from pyspark import SparkContext
globs = globals().copy()
globs['sc'] = SparkContext('local[4]', 'PythonTest', batchSize=2)
(failure_count, test_count) = doctest.testmod(globs=globs, optionflags=doctest.ELLIPSIS)
globs['sc'].stop()
if failure_count:
exit(-1)
if __name__ == "__main__":
_test()


Over 20 years of system design and software development experience in a variety of fields from telecommunications to military systems.
Object oriented desing and development for large systems. Real-time embedded system development as well as development of systems based on Java that use relational as well as NoSQL databases.
You can message me through LinkedIn


Which Brewdog Beer?
Select from the following options and the best beer for you will appear shortly...
How strong do you like your beer? Stronger beers have higher alcoholic content.
Light, I'm actually a little girl.
Strong, I'm a real man!
Yolo! I want to forget my name...
How bitter do you like your beer?
I have a sweet tooth, no bitterness for me.
Life is bitter-sweet anyway.
The bitter the better!
What about colour?
I like blondes, they are more simple!
What happened to in between?
Dark is the night, dark be my beer!
Submit
Surprise me!


public final class Strings
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
compareNatural(java.text.Collator collator,
java.lang.String s,
java.lang.String t)
Compares two strings using the given collator and comparing contained numbers based on their
numeric values.
|
static int |
compareNatural(java.lang.String s,
java.lang.String t)
Compares two strings using the current locale's rules and comparing contained numbers based
on their numeric values.
|
static int |
compareNaturalAscii(java.lang.String s,
java.lang.String t)
Compares two strings using each character's Unicode value for non-digit characters and the
numeric values off any contained numbers.
|
static int |
compareNaturalIgnoreCaseAscii(java.lang.String s,
java.lang.String t)
Compares two strings using each character's Unicode value - ignoring upper/lower case - for
non-digit characters and the numeric values of any contained numbers.
|
static java.util.Comparator<java.lang.String> |
getNaturalComparator()
Returns a comparator that compares contained numbers based on their numeric values and
compares other parts
using the current locale's order rules.
|
static java.util.Comparator<java.lang.String> |
getNaturalComparator(java.text.Collator collator)
Returns a comparator that compares contained numbers based on their numeric values and
compares other parts
using the given collator.
|
static java.util.Comparator<java.lang.String> |
getNaturalComparatorAscii()
Returns a comparator that compares contained numbers based on their numeric values and
compares other parts
based on each character's Unicode value.
|
static java.util.Comparator<java.lang.String> |
getNaturalComparatorIgnoreCaseAscii()
Returns a comparator that compares contained numbers based on their numeric values and
compares other parts
based on each character's Unicode value while ignore upper/lower case differences.
|
public static java.util.Comparator<java.lang.String> getNaturalComparator()
For example in German locale this will be a comparator that handles umlauts correctly and ignores upper/lower case differences.
A string comparator that uses the current locale's order rules and handles embedded numbers correctly.
getNaturalComparator(java.text.Collator)
public static java.util.Comparator<java.lang.String> getNaturalComparator(java.text.Collator collator)
collator
- used for locale specific comparison of text (non-number) subwords - must not
be nullA string comparator that uses the given Collator to compare subwords and handles embedded numbers correctly.
getNaturalComparator()
public static java.util.Comparator<java.lang.String> getNaturalComparatorAscii()
a string comparator that does case sensitive comparisons on pure ascii strings and handles embedded numbers correctly.
Do not use if your app might ever run on any locale that uses more than 7-bit ascii characters.getNaturalComparator()
,
getNaturalComparator(java.text.Collator)
public static java.util.Comparator<java.lang.String> getNaturalComparatorIgnoreCaseAscii()
a string comparator that does case insensitive comparisons on pure ascii strings and handles embedded numbers correctly.
getNaturalComparator()
,
getNaturalComparator(java.text.Collator)
public static int compareNatural(java.lang.String s, java.lang.String t)
Compares two strings using the current locale's rules and comparing contained numbers based on their numeric values.
This is probably the best default comparison to use.
If you know that the texts to be compared are in a certain language that differs from the
default locale's langage, then get a collator for the desired locale (
Collator.getInstance(java.util.Locale)
) and pass it to
compareNatural(java.text.Collator, String, String)
s
- first stringt
- second strings
and t
are equal,
a value less than zero iff s
lexicographically precedes t
and a value larger than zero iff s
lexicographically follows
t
public static int compareNatural(java.text.Collator collator, java.lang.String s, java.lang.String t)
Compares two strings using the given collator and comparing contained numbers based on their numeric values.
s
- first stringt
- second strings
and t
are equal,
a value less than zero iff s
lexicographically precedes t
and a value larger than zero iff s
lexicographically follows
t
public static int compareNaturalAscii(java.lang.String s, java.lang.String t)
Compares two strings using each character's Unicode value for non-digit characters and the numeric values off any contained numbers.
(This will probably make sense only for strings containing 7-bit ascii characters only.)
s
and t
are equal,
a value less than zero iff s
lexicographically precedes t
and a value larger than zero iff s
lexicographically follows
t
public static int compareNaturalIgnoreCaseAscii(java.lang.String s, java.lang.String t)
Compares two strings using each character's Unicode value - ignoring upper/lower case - for non-digit characters and the numeric values of any contained numbers.
(This will probably make sense only for strings containing 7-bit ascii characters only.)
s
and t
are equal,
a value less than zero iff s
lexicographically precedes t
and a value larger than zero iff s
lexicographically follows
t


Ford Mustang Mach-E Shelb-E Renderings Predict The Inevitable
Shelby all the things!
by Christopher SmithIs this really inevitable? Possibly, but before the Shelby fans of the world send us hate mail over these GT500-esque renderings of the new Mustang Mach-E, let us revisit some Shelby history. Yes, the iconic stripes and branding are synonymous with the Mustang, but these days you can also get a Shelby F-150 pickup and once upon a time, Shelby badges adorned turbocharged front-wheel-drive Dodge hatchbacks in the 1980s. In the grand scheme of things, then, a Shelby-branded electric crossover might not be so bad.
The Mach-E Is Here:
Actually, we’re rather impressed with the way these renderings came out. It’s not like the Mach-E is completely unrelated to the Mustang, so dialing in some GT500 flavor is easy peasy. The squared-off front clip is a good look for this EV crossover, and yes, we’re well aware that a power bulge hood on an electric car makes as much sense as a vegan crocodile. It still looks cool though, and in this instance, the extra space can offer a bit more frunk storage as opposed to clearance for a non-existant supercharger.
Gallery: Ford Mustang Shelb-E Renderings
As for performance, Ford already has a GT model of the Mach-E planned for 2021 that will rival the current Shelby GT500, at least in a sprint to 60 mph. The 760-horsepower muscle car gets there in 3.3 seconds, while the Mach-E GT is shooting for a time in the mid-3-second range. Juicing the battery for a proposed Ford Shelb-E model could see this crossover cut a full second off that time. Would you feel better about a Shelby-branded electric SUV that could hit 60 mph in 2.5 seconds and rip a 10-second quarter-mile?
Admittedly, this Shelb-E creation is just a flight-of-fancy on our part but it could well preview the future of performance. Electric power is here to stay, and there’s no denying the performance potential of instant thrust with right now torque that electricity can offer. So why not add some stripes and a Shelby badge and just have some fun?
After all, it worked for the Dodge Omni.


Medicare Open Enrollment: Your Time Is Valuable
By Jonathan Blum, Deputy Administrator and Director for the Center for Medicare
Have you ever gotten a great deal to try a new restaurant or dry cleaner, only to realize that it just wasn’t worth the hassle? Maybe it was on the other side of town, or the hours weren’t convenient, or there were too many exceptions. We all like to get a good deal, but convenience is a big part of the value.
The same is true when it comes to choosing a health plan: convenience matters. So in addition to cost, coverage, and benefits, here are some other things you may want to consider as you compare Medicare options this year:
Doctor and hospital choice
You want to be comfortable with the people you’re working with, especially when it comes to something as private as your health. Do the doctors you know accept your coverage? Where are the doctors’ offices? What are their hours? Do they often keep you waiting?
Pharmacy access
Is the pharmacy you use included in your drug plan’s network? Do they use e-prescribing? Can you get refills by mail? Remember that plan networks can change from year to year. If it’s important to you to stay with the same pharmacy, it’s worth checking to make sure they’ll still be in your plan’s network.
Travel
Maybe you travel a lot, or spend part of the year in a different state. If you do, make sure you know whether your coverage will travel with you.
Quality
Ask yourself whether you’re truly satisfied with your medical care. Not all health care is created equal, and the doctors, hospitals and facilities you choose can impact your health. Look for plans with a 5‑star performance rating — the right expertise and care may help speed your recovery and improve your outcomes.
 The health care law brought more benefits and better choice to the Medicare program, but only you know what mix of coverage and convenience is most important to you and your family.
That’s why we’re working hard to make sure you have choice and control over the Medicare benefits you’ve earned. Look around for all the Medicare information out there. And visit our Open Enrollment center, where we’ve gathered everything you need, including a video on how the Medicare Plan Finder works, to walk through your options.
Medicare Open Enrollment: 3 C’s for Thanksgiving Dinner
Kathy Greenlee, Assistant Secretary for Aging
It happens in my family every year during the December holidays: as we push our chairs back from dinner, my aunt asks if she should change her Medicare plan. “I have to do it by the end of December, you know,” she says.
This year, my aunt needs to make any changes to her Medicare coverage even sooner – by December 7 – because Open Enrollment ends earlier.
If you usually help your loved ones review and compare their Medicare coverage over the holiday season, take advantage of Thanksgiving to have that important talk. If you wait until the December holidays this year, it’ll be too late - Medicare Open Enrollment ends this year on December 7.
Speaking of Thanksgiving, there’s a lot to be thankful for when it comes to Medicare. Thanks to the health care law, Medicare is stronger than ever, with better choices, expanded benefits, and lower overall costs.
As you gather around the table to help a family member or friend review their Medicare coverage, remember the “3 Cs”:
1. Cost: Finances seem to be in the news every day, and on everyone’s minds these days. Open Enrollment is the time to compare plans total cost –the lowest premium health plan option might not necessarily be his or her best choice overall.
2. Coverage: While health care needs can be hard to predict, looking backward can help. Think about the past year of health – does your loved one have new or different health concerns that may require different services and benefits in the coming year? Look for plans with a 5‑star performance rating — the right expertise and care may help speed your recovery and improve your outcomes. Rest assured that no matter what plan you pick, the Affordable Care Act provides access to a variety of preventive services and screenings, at no cost.
3. Convenience: We hear so much about the “sandwich” generation – those of us who get our children on the bus in the morning, work all day, and stop by to take care of our parents in the evenings. Your time is valuable, so make sure you and your loved one consider things like office hours, pharmacy availability and whether the doctors prescribe electronically. A little time thinking about these things now could save you a lot of running around next year.
Our goal by December 7 is that every single American with Medicare has health and drug coverage that meets their needs.  Or, visit Ask Medicare – specially designed for caregivers -- for resources to make your job as a caregiver easier.
If you’d prefer a more personal touch, call or visit one of the thousands of wonderful volunteers staffing the State Health Insurance Assistance Programs across the country.
This Thanksgiving, I’ll be talking with my aunt about her Medicare coverage, so please take the time to talk to your loved one about their Medicare too. I know she’s thankful for the peace of mind that Medicare provides. And I’m just as thankful for all of the information that’s available to help me make sure she’s making the best choice.
Medicare Open Enrollment: Extra Benefits & Preventive Services
By Jonathan Blum, Deputy Administrator and Director for the Center for Medicare
I belong to a gym I really like. It has all the equipment I use – weights, cardio machines, a pool. But what really sold me on membership were the extra features and services: personal training and convenient parking, among others.
Extra benefits can be a big plus in health coverage, too.
A full 99% of people with Medicare have access to Medicare Advantage Plans in 2012, and these plans often offer extra benefits that Original Medicare doesn’t cover. Medicare Advantage Plans may offer vision, hearing, or dental coverage, or extend coverage while you travel. Most Medicare Advantage Plans also include prescription drug coverage.
Even better, Medicare Advantage Plan premiums are predicted to be 4% lower in 2012, on average, than they are in 2011. It’s worth it to compare.
Folks in Original Medicare will enjoy more benefits this year, too. Thanks to the Affordable Care Act, EVERYONE with Medicare has access to a variety of preventive tests and screenings, most at no cost to them. That’s right – no cost.
 Just during the first half of this year, 20.5 million people with Original Medicare got one or more free preventive services through the end of July.
Medicare also covers an Annual Wellness Visit each year. This is a great chance to sit down with your doctor and take the time you need to talk about your needs — and address small health concerns before they become big ones.
To help you track these services, take this checklist to your next doctor’s visit. This comprehensive list spells out the Medicare-covered preventive services and lets you keep track of when you got a particular test or service, and when you’re due for your next one. You also can get preventive service reminders on www.mymedicare.gov.
Just as you and I might look for different things in a gym, we almost certainly also need different kinds of health coverage. Only you know what extra benefits and services are most important for you and your family.
That’s why we want to make sure you have choice and control over the Medicare benefits you’ve earned. Look around for all the Medicare information out there. And visit our Open Enrollment center, where we’ve gathered everything you need, including a video on how the Medicare Plan Finder works, to walk through your options.
More Reasons to Say Thanks this November
By Julia Eisman, HHS New Media Communications Director. Crosspost from Healthcare.gov
There are a lot of ways that the law, signed 20 months ago, has provided significant relief to families throughout the country, easing worries and ensuring that focus is on health, not on fighting with insurance companies over the phone. Chances are, someone in your family is seeing new rights and benefits.
In the spirit of Thanksgiving, during the month of November on our Twitter and Facebook pages we’ll be highlighting these benefits and sharing some of the stories we’ve heard from people around the country who have been helped by the law. We also want to hear from you, so we encourage you to tell us your story about how you’ve been helped by benefits in the law. Share on Twitter with the hashtag #ThanksHCR. You can find us on Twitter at: @HealthCareGov.
To give you an idea, here are a few new benefits we have thanks to the health care law:
Thanks to health reform, insurers cannot deny coverage to children due to pre-existing conditions.
Thanks to health reform, preventive services will be available for millions for free.
Thanks to health reform, being a woman will soon no longer be considered a pre-existing condition.
Thanks to health reform, people with Medicare get discounts on prescription drugs and a free annual wellness visit, AKA more time with their doctor.
Thanks to health reform, young adults under 26 can stay on their parents’ health insurance.
Thanks to health reform, insurers can no longer raise rates with no accountability.
Thanks to health reform, insurers must spend most of your premium dollar towards your health care instead of on advertising or big CEO salaries. If they don't, they must provide refunds to you.
And the list goes on…
Many of the items in the law are common-sense provisions that end the worst insurance company abuses. From new consumer rights like appealing denied insurance claims, to new benefits like prescription drug rebates for Seniors, there are a lot of reasons to be thankful.
Join us on Twitter this November in saying thanks and share your story.
Go to @HealthCareGov, and let’s get started!
Medicare Open Enrollment: Making the Best Choice for You
By Jonathan Blum, Deputy Administrator and Director Center for Medicare
We’ve all had the experience of making outdoor plans for a weekend that’s supposed to be gorgeous, only to cancel when the weather turns out to be 48 degrees and drizzly. Despite our best planning, uncertainty is just a fact of life.
Health can be as unpredictable as the weather. It’s hard to know what you’ll feel like next week, much less what health care you’ll need next year – yet that’s exactly what you need to predict when you’re shopping for health coverage during Medicare Open Enrollment.
We know future needs can be hard to forecast, but taking stock of current circumstances can help. Maybe your family situation is different this year, or you have new health concerns. Maybe you’ve been traveling a lot, so you want a flexible plan that offers coverage in multiple states.
If you’ve recently retired —or even if you’re still working — you may have other health insurance options. If you do, make sure you understand exactly how that other coverage works with Medicare.
The good news is that now more than ever, you can find a plan tailored to your unique needs. There are better prescription drug plan choices, with premiums that generally have held steady from last year. A full 99% of people with Medicare have access to Medicare Advantage Plans. Even better, Medicare Advantage Plan premiums in 2012 are 4% lower, on average, than they were this year.
The Affordable Care Act delivered better choices and more benefits to the Medicare program. So no matter which plan you pick, you’ll have access to benefits like these:
• A 50% discount on covered brand-name drugs if you hit the Part D prescription drug coverage gap (“donut hole”)
• A free Annual Wellness Visit, so you can sit down with your doctor and talk about your health concerns and the best ways to stay healthy
• A host of preventive tests and screenings — including cancer screenings — most at no cost to you
It’s worth it to take a look and compare coverage. We recently learned about a man in central Arkansas who’s had Medicare Part D since 2009. Last year, our State Health Insurance Assistance Program (SHIP) counselors helped him compare his Part D drug coverage with other plan options. They found a new plan that covered more of the prescriptions he needs. The Medicare Plan Finder can help you compare plans – check out our video on how the Plan Finder works.
So this year, this gentleman has been spending only $18.90 for 3 prescriptions each month — which saves him more than $720 a month. That’s real money.
As you start comparing coverage for yourself, you’ll find Medicare in the mail, on TV or the radio, in the paper, and on your computer. You’ll be hearing so much about Open Enrollment that it may not surprise you to get phone calls or visits to your house from people selling Medicare plans.
Remember to keep yourself and your personal information safe [link to blog #4 on fraud when posted]- we’ll never call and ask for your Medicare number or bank information, and we’ll never come to your home uninvited to sell Medicare products. Visit stopmedicarefraud.gov to learn what to do if this happens to you.
While you can’t always predict everything in life, you can do your best to be prepared. Medicare will be there to help you, stronger than ever.


Before Change
filter_shape = conv_layer.kernel_size
n_filters = conv_layer.filters
weight = np.zeros(filter_shape + (n_filters, n_filters))
center = (int((filter_shape[0] - 1) / 2), int((filter_shape[1] - 1) / 2))
for i in range(n_filters):
filter_weight = np.zeros(filter_shape + (n_filters,))
filter_weight[center[0], center[1], i] = 1
weight[:, :, :, i] = filter_weight
After Change
center = tuple(map(lambda x: int((x - 1) / 2), filter_shape))
for i in range(n_filters):
filter_weight = np.zeros(filter_shape + (n_filters,))
index = center + (i,)
filter_weight[index] = 1
weight[..., i] = filter_weight
bias = np.zeros(n_filters)
conv_func = get_conv_layer_func(len(filter_shape))