Was Cersei's choice to have the Mountain fight in Tyrion's trial by combat a coincidence or calculated foresight?

Question: Are there any context clues in either the book or the show to support Cersei choosing the Mountain for the trial by combat in having hopes or the foresight to know that Oberyn would choose to fight him and thus affording her with the opportunity to kill both Tyrion and an enemy of the family in one single act?
Comment: I am re-reading ASOS at the time, and it says right there that Tywin says `I intend to keep Ser Gregor far away from Oberyn Martell`, which seems very contradictory to having him champion Cersei right there in King's Landing. It is even rather predicable that Oberyn would interfere somehow there. One has to wonder what Tywin was thinking there.
Comment: In the books Oberyn is the one who suggests Tyrion to ask for a trial by combat. It would seem to me he was the one who had the foresight here, anticipating Cersei would name Ser Gregor as her champion.
Comment: IIRC, she was astonished when Oberyn championed Tyrion, and she'd have chosen the Mountain anyway, since he is most likely to kill anyone else.
Comment: TLP, I couldn't agree more.  Although my initial question may be slightly off by thinking she had the foresight, but I think the overall question/suspicion of the Lannisters and them knowing Oberyn and the Mountain's past has merit...the Lannisters are not a short-witted family, so you have to think this crossed their mind at least once!
Comment: @StewartC If nothing else, it would certainly cross Tywin's mind. Oberyn is unpredictable, proud and overconfident, crazy enough to take on Ser Gregor if they met on the street. Cersei might not realize all this, she might just have picked a crazy strong opponent to prevent Tyrion from using Bronn or someone like him again, but it seems all but impossible that Tywin would miss it.
Answer: The Mountain was chosen to fight before anyone had volunteered for Tyrion and because he is the a ruthless and effective killer. Cersei's main goal is to see Tyrion dead for the murder of Joffrey. She wants the Mountain to fight and win the trial by combat ensuring Tyrion dies. Who he kills in the process did not matter. If anything Oberyn saw the trial as an opportunity to kill the Mountain and avenge his sister rather than the other way around. It likely came as a surprise to all the Lannisters after they had tried to court him.
I no longer have copies of the books or I would find quotes but there are a couple scenes from the show that support this. These scenes contain spoilers from season 4.

Cersie does not care who the Mountain fights.

Cersie believes she has swayed Oberyn to her side.

Tywin (and by extension the Lannisters) needs Oberyn on his side.
Comment: Thanks a bunch for the youtube videos to back this up.  Do you know of any scenes you could find on youtube that show any of the Lannisters being surprised when they find out Oberyn chose to be Tyrion's champion?  I'm not sure they exist in the show since Oberyn's reveal was at the end of episode 7 and the beginning of episode 8 started with the Wildlings, so it may have been left out of the show or not apart of either the show or books, but I figured I'd ask in case I missed that also.
Comment: I guess I ask for this because maybe my initial question wasn't worded like I meant for it to be.  I suppose I knew that they didn't have the foresight to choose the Mountain knowing that Oberyn would choose to fight him, but I just feel the Lannisters are not that shortsighted that they would choose the Mountain and think this would have no effect on Oberyn.  I mean your last video kind of proves how openly passionate Oberyn is against the Mountain to Tywin's face and Tywin even mentions "giving" him the Mountain.  It just all seems to much of a conincidence, but I guess it is a story...
Comment: I don't think its uncharacteristic of them to choose the Mountain. He's the Lannister's personal killer. I believe Tywin thought that offering Oberyn the Mountain would be enough to appease him. And he figured he could get some use out of him before turning him over. But Oberyn saw a chance to ring a public confession out of the Mountain. Having Oberyn fight the Mountain does not guarantee Oberyn's death but instead jeopardizes Tywin's plans. Tywin now either risks further damaging his relation to Dorne by Oberyn dying or letting Tyrion go free.
Comment: Yeah, it makes much more sense to me now that I realize he's the same guy that lopped his horse's head off in the first season.  It doesn't help that this show has countless names (and I'm perpetually bad with names), coupled with the fact they had used a different actor for him 2 different times.  I had figured that the Mountain was a very random character this season hence where my thoughts of there being an underlying reason behind him being chosen.  Thanks again for your help.
Answer: Cersei was going to pick the Mountain regardless. Gregor is probably the most dangerous fighter in single combat around, and Cersei had no real incentive to pick anyone that Tyrion could conceivably beat. It would have been an embarassment for her champion to lose the trial so it is only natural she would pick the strongest available fighter. Oberyn was just an unexpected bonus.
Answer: She wanted the Mountain to fight against Tyrion's champion because he's the most powerful warrior, and she thought Tyrion's champ was going to be Bronn, because he always fought for him.
So she picked a warrior who certainly could beat Bronn, and even better, Bronn knew that, so he wasn't going to fight (because he was a mercenary and the honor is not a priority for him).
Even if someone else thought to fight for Tyrion, when they saw the opponent they rejected that idea instantly.


Is cutting down trees and building something from them good or bad for the climate?

Question: I still don't fully grasp the climate impact of lumbering (unless its purpose is burning the wood for energy or making space for pastures which is obviously bad). Is cutting down trees and making or constructing something from them good or bad for the climate? Deforestation is supposed to be detrimental for the environment, but Finnish researchers suggest we shift from steel and concrete to wood in our building construction. It's gonna cost us all trees in the world considering the population growth and urbanisation, isn't it?
Comment: It's a matter of perspective; a mature forest holds lots of carbon, so chopping it down and replacing with seedlings reduces the capacity of an existing carbon sink. It will take a very long time before it can store the same amount of carbon again. But using wood for building is also creating a new carbon sink. Calculating the net effect is difficult as you often don't know how effective replanting is and how long the new "wood-building" carbon sink will last.
Comment: I would be surprised if replanting efficiency was anywhere below 100%. In fact, efficiency of only 99% would be very surprising. I live in a country where every forest has to be replanted by law (Finland), and failures of replanting just do not happen. If a forest is planted where forest was previously chopped down, it's a rule of nature that the replanting succeeds. It won't fail.
Comment: @juhist replanting itself usually isn't the problem (unless a mono-culture is introduced), the issue is that [a mature forest can sequestering carbon better](https://envirobites.org/2019/09/24/old-is-better-than-young-the-carbon-sequestration-potential-of-letting-forests-mature/) than a newly planted one. On the other hand there's also [research](https://psmag.com/environment/young-trees-suck-up-more-carbon-than-old-ones) that says the exact opposite. My take on this is that it depends on other circumstances than just old and new.
Comment: A middle-aged forest grows the fastest. It is true that in the very start of the lifetime of a forest, it is very slow in capturing carbon but the growth in the very start is exponential. An old forest won't capture any carbon, it's in equilibrium. If we want to have many middle-aged forests, we need to plant many new forests and don't care about the inefficient carbon capture in very young forests, realizing that as the forest becomes slightly older, its carbon capture massively increases.
Answer: Deforestation per se, without replanting trees to compensate for the trees felled, is bad for the environment.
Replacing steel and concrete with lumber/timber from trees for construction purposes is an old concept of sustainability. The manufacturing of steel and concrete is very energy intensive and the manufacturing of both currently produces a lot of carbon dioxide.
In producing steel, currently carbon, in the form of coal, is added to the molten iron ore to remove oxygen from the melt. Basically the chemical equation is iron oxides + carbon gives iron + carbon dioxide:
FexOy + C -> Fe + CO2
There are new processes to produce green steel/iron by using hydrogen instead of coal (carbon) to remove the oxygen from the melt. Such a process would produce water vapor instead of carbon dioxide.
FexOy + H2 -> Fe + H2O
Getting the hydrogen is the tricky part. Currently plans are in place to use electricity from renewables, and hydro electricity to produce hydrogen and oxygen via the electrolysis of water.
The process of manufacturing cement for concrete involves roasting limestone (CaCO3). This produces carbon dioxide.
Using lumber from trees, instead of steel and concrete, avoids the production of vast quantities of carbon dioxide. The tree plantations that were felled to produce construction lumber can eventually be replaced by replanting the forest plantation. This is a more sustainable and less environmentally damaging way of producing construction material.
Answer: Oh yes it is very useful.
Let's consider you have an old forest, something in which the trees have grown very large so if you choose to chop them down, you get a very high share of sawlog and very low share of pulpwood.
There are three sustainable things you can do to it:

Leave the forest there. The trouble is, the forest is already at equilibrium, so any carbon sequestered is matched by carbon dioxide from decomposing. Climate benefit of that particular forest is exactly zero.
Chop down the forest, and use all of the wood as pulpwood. Financially this is a very poor decision, because pulpwood has a far lower price than sawlogs. However, this is still more sustainable than leaving the forest there, because at least the pulpwood substitutes for packaging materials that would have otherwise been made out of oil (plastics). However, the packaging materials created from the pulpwood are rapidly burned for energy, so they don't retain their carbon for long. So the only climate benefit is from substituting for oil use. At least you get some climate benefit.
Chop down the forest, attempting to make the sawlog percentage as high as possible. The sawlogs are maximally used for creating permanent carbon sinks and used for furniture, houses, etc. You can expect them to retain the carbon for 100 years. You will still get a small pulpwood share, but that has climate benefits too: it substitutes for oil use. Also you will get sawdust etc that can be burned for energy (substitutes coal use in heating in cold climates), or be used to make biochar (it retains most of the carbon while still producing some energy for heating although less than if it was burned directly to energy).

In cases 2 and 3, you will obviously plant a new forest that during its rapid growth stage is a very efficient carbon sink. By removing the old forest, you retained its carbon maximally, while at the same time created room for new forest to grow. Forest is always limited by room: if there was infinite room on this planet, there would be no climate crisis as we would just plant exponentially increasing amounts of new forest to capture emissions from exponentially increasing fossil fuel use.
So you can see that chopping down the forest and maximizing the sawlog percentage, building something from the wood, maximizes the climate benefit.


Firefox version 21 installed easily but greasemonkey won't install - error saying not compatible with ver 21

Question: I can't find anyone with this problem of not being able to install greasemonkey since installing Firefox version 21 on my android. My ultimate goal is to combine my fitness pal logging with weight watchers so that mfp will calculate ww points. It can be done but only through using greasemonkey. Any help is greatly appreciated :)
Comment: Have you also tried the latest developer snapshot from https://addons.mozilla.org/de/firefox/addon/greasemonkey/ (scroll down to devel channel to see 1.10b1)? Besides this: your problem seems rather app specific, I suggest you better ask over at mozilla.
Answer: The error message in this case is misleading: it's not that Greasemonkey is incompatible with that version number, rather that it's incompatible with Firefox for Android. The extension mechanism in Firefox for Android is somewhat different to Firefox on desktops, so add-ons for desktop Firefox won't work (in general) on Android.
To find out if/when Android support is planned, or to help out, you could start by contacting the gresemonkey-users mailing list.
Comment: Thanks! Apparently my issue can't resolved after doing more research. I appreciate your input though :).


How to unlock transform on bone - to move it, not just rotate?

Question: I was trying to create IK constraint following a Nathan Vegdahl tutorial, and everything was nice and shiny, until I tried to actually move a bone. It's not moving, only rotating. I see that transform lock panel on location is grey and completely locked, and I have no idea what's wrong.
Comment: Did you know we have a dedicated [Blender StackExchange](https://blender.stackexchange.com/)? While questions asking about how to use Blender to implement game assets & features are not off-topic here, you might find there's a higher density of users able to answer your questions about Blender specifics on the tool-specific SE. Please note that cross-posting is discouraged here, so if you decide to post this question on the Blender SE, please delete the copy here, so we don't split the answers between two different sites.
Answer: What you see is normal behaviour. A bone is defined by two points, the head and tail (also called root and tip).
When a bone is connected to its parent bone, in pose mode you are unable to move the head, you can only rotate the bone so that its tail is in a different location.
To move the head of the bone you need to rotate its parent bone so that the connecting point is in a different location.
Blender provides user feedback by fading out the location of the bone when you can't directly edit that property using the current selection.


Turn based Android game using google play games services

Question: I want to develop a turn-based,multiplayer android game.Its very similar to chess.Is it possible to make entire game just by using google play games services(GPGS) ? ie, creating a game between 2 players,managing player moves,changing game states in database, all this can be done using GPGS?
Also,is google-app-engine anyhow related to this ?
Answer: Yes, Google Play Game Services can do all this for you. It supports leaderboards, cloud saving of progress, room based multiplayer lobby system, achievements and much more.
Here's documentation for turn-based multiplayer game service
Google app engine is hosting environment for your game, in cloud. However, you can only use Python, Go, Java and PHP to develop for it.


How to get relationship id in views drupal 7?

Question: I am using User relationships module and created relation friends. Where we can send and receive friend requests just like fb. So l have created view to list all my-friends and also added remove link to the each friend. In view "status link (action)" field is providing remove link which can be used to remove the particular friend from our friend's list, but the link is not accessible to the users other than admin. I want to get relationship id (rid) in view so that I can create remove link. Is there anyone who knows the way to get rid? I just want to create url like below
myhomesite.com/user/26/relationships/1115/remove?destination=user/373/friends . where 26 is logged in user id and 1115 is the relationship id.Thanks.
Comment: Do you want a link that leads to the page where you can delete the account?
Comment: I have edited My question please have a look on it.
Comment: if it is available for Admin, but not available for anyone else as you state in the question, I would look into permissions - there should be an option along the lines of 'manage own friends', or 'delete own friends'
Comment: @Geoff I have searched there is no such options available in permissions.
Comment: well somehow, somewhere it sounds like a permissions problem based on your question. To test, you could create a new user and role, give them access to everything, and then start taking away permissions until the remove no longer works, then you will know the culprit. Its a first step.
Answer: If you want to output a link in views which leads to the page where the user's account can be deleted you can use the field "User: Cancel link". That field should be present in your view since you have the user as a relationship.

If you still want the user's uid and link to some page on your own you need to add the field called "User: uid" and then rewrite the output of the field.
Add the field called User: uid, then under the settings for the field expand Rewrite results and click Rewrite the output of this field, enter the text that should be displayed. Then click output this field as a link and use the [uid] placeholder in the link. The [uid] will be replaced with the user's uid when the View is rendered. You can see an example of the settings in the image below.
Comment: I have edited My question please have a look on it.
Comment: @D-pak see the section on "Rewrite the output of this field" in my answer. Just change the link user/[uid]/cancel to the url that removes the particular friend from our friend's list.
Comment: Yes, for achieving this. relationship id (i.e rid) is needed. And the biggest concern is that there is nothing to get rid in views also with php as well. I have tried for long.
Comment: @D-pak could you update your question with the URL you want to create?
Comment: I have updated my question please check it.


See what a previously purchased app costs on iOS App Store

Question: How can I on the iOS App Store see what an app that I've already bought costs at the moment?
Comment: Wonder why someone down voted? this is actually a great question.  As far as I can tell, it hasn't been asked before, and without logging into iTunes differently on the store, there doesn't appear to be a method.
Answer: If you're looking for the current price (which might not be the price you paid), you can Google search for the product and Google will display the App Store price in the results:
Comment: Not the greatest method... Hoping someone else has something better!
Comment: Hey, why no freehand? :)
Comment: You can also add site:itunes.apple.com to narrow down the search results.
Answer: You could use an app like AppShopper, which shows the current price of an app as well as past price changes. AppShopper also has a website where you can find the same information, for example for GarageBand: http://appshopper.com/music/garageband (you can change the country/currency at the bottom right of the page, past price changes are shown in the "app activity" box).
Answer: Browse to the app within the iOS app store. Click the 3 dots [edit: for newer versions of iOS, the Send/Share button (box with uparrow)], and select 'Gift app..." you will see the current price displayed.
Comment: I'm not sure if this was available back when the question was originally asked, but this is the best way to do it now.
Answer: The only way to know the price from the Store requires that the specific app is not installed on your device, and not being signed in. Details:
If the app you want to know the price about is not installed on your device, then:

Open the App Store app. The app opens with featured section highlighted.
Go to the bottom of the list in that section.
Tap on your Apple id.
Tap on sign out.
Force-close the app (the App Store app) i.e. open the multitask pane and swipe the app out of the screen.
Open the App Store app again.
Look for your app and you will see its price.

If the app is installed on the device, you could delete it and follow the above process.
If you wouldn't like to uninstall (and possibly install again), then the best option is watching the result from googling itunes appname, where appname is the (approximate) name of the app.
Answer: As I known, there is no way to see on App Store directly.
Usually you will get a receipt deleveried via email after buying an App, in which you can see the price at that moment.


How can I speed up exploration?

Question: I want to get into exploration (mainly because I want to do a bit of everything in this game), but it takes so long to scan every planet, moon, and asteroid belt segment of a system. Is there any way to make the scanning process quicker?
Comment: Also, don't bother scanning asteroid belts and moons, they add very little value to your exploration data. Focus on scanning planets, especially metallic and earth-like ones.
Comment: This is anecdotal evidence, but it feels like scans complete quicker the closer you are.
Comment: @Unionhawk - The system map will give you an idea of which are a waste of time, experience then reinforces this. You'll soon get an idea of which planets are the Icy, valueless ones and which ones look more interesting.
Comment: Depending on the body type, moons may still be worthwhile. Still skip asteroids though - they have literally zero value.
Answer: Much like @Yuuki said in comments, scans complete faster the closer you are (can confirm this), and asteroid/resource sites don't give much for bonus.
A couple things to know about exploration

The basic discovery scanner has a small range of 500LS, intermediate has 1000, and advanced will spot everything within the system. source
The Surface Scanner will increase your exploration reward by a decent amount, as well as give more information.
The range at when you can even start scanning objects varies between their types

Stars: 1000LS
Large planets: around 200LS (depending on size)
Smaller planets (earthlike): around 50LS (again, depending on size)
moons, mining areas, and other small objects: under 10LS.

So how do you use this knowledge? When you jump into an unfamiliar system (the star you jump into will be undiscovered), fire off your scanners and then begin scanning in an outward direction all of the planets. moons and other objects aren't worth much money, so you can just keep them as "UNEXPLORED" and it's probably fine (you still get paid if they are just left as discovered)
If you have the surface scanner, be sure to fire that off on planets, especially if they look like they support life (life supporting planets gets a pretty boost in reward)
Comment: There is much information on the Elite forums about the values of each entity.  For starters, it is worth knowing that the asteroid clusters are (oddly) worth nothing, so don't bother scanning them.  Also, the values for Ice, Rock and Rocky Ice are pretty low, so you can avoid them.  These often look white or pink (depending on the star colour) in the System Map and also have a distinct look on the display next to your scanner when you target them, so they can be easy to avoid - though the display next to the scanner doesn't always display anything/the correct image.
Comment: @MickWaites So if I look in the system map, will I be able to see which planets are a waste of my time too? Or does that only really show itself if I scan the planets?
Comment: @Unionhawk Asteroids are worth hardly anything, so yes, the system map will show you which bodies are a waste of time. Bear in mind that the DS has a limited range (unless you drop the significant chunk of change into the Advanced one), so you might reveal 12 asteroid belts in your initial scan, while a bunch of planets (or even another star) could be lurking outside of your scan range.
Comment: Range to scan objects varies widely even within the object classes you've specified. It all seems roughly tied to the object's radius. I've had large gas giants scan as far away as 1kLs, and some supergiant stars as far out as 200kLs. On the other extreme, White dwarf and neutron stars require an extremely close approach - around 10 Ls - as do black holes.
Comment: Scanning "in an outward direction" according to the system map is a decent start, but can often be far from optimal. The system map shows objects according to the radius of their orbit, regardless of where they are in relation to other objects. So, you could find yourself crossing the center of the system several times by following the map alone.
Answer: As of Elite: Dangerous 3.3 a lot has changed about exploration. Newly equipped as standard are the discovery scanner (equivalent to the advanced discovery scanner in previous patches) and the Full Spectrum Scanner, FSS. Also added to the game is a new Detailed Surface Scanner, DSS, which launches probes at worlds to map them.
When you are exploring, you can ignore anything outside a handful of categories:

Earth-like worlds
Water worlds
Ammonia worlds
High metal content worlds
Metal rich bodies

These worlds can be identified in particular on your FSS by selecting the signal frequencies associated with them. The signal analysis in the bottom right will show you exactly what frequency range you're tuned in on. Let's look at an example:

As you can see, there is at least one signal in the High Metal Content Worlds frequency range (there happen to be two: the signal directly to the right of where I'm tuned here is also high metal content). This signal happens to be coming from Turdetani B 1, which you can kind of see based on the arrows pointing towards the B star.
While it is possible to skip scanning ice worlds altogether in this manner, it can be helpful to clear every signal off the board, since the FSS process does not take very long. What I tend to do is jump into a system and scan every body with my FSS if and only if I see a signal from one of the higher value regions, as a compromise position.
Once you've scanned the bodies, and identified which ones may be worth mapping, you can then fly out to each of these particularly and fire probes at them to obtain additional mapping bonuses.

I would recommend checking out the FSS and DSS tutorial above, as this video goes into great detail on the exact operation of the new mechanics. A lot of exploring has been sped up greatly by the new mechanics, if you know how to use them properly.
Comment: It is worth noting that even some high metal contents are relatively low value. Turdetani A 1 which I mapped for this example only got me around 70k. Some others are worth 300k though. It is a mixed bag.

How can I speed up exploration?


What tool to use for end to end testing of SPA (Single Page Application)

Question: What testing tool to use for automating user acceptance testing?
The app itself uses react.
Should I use Selenium with various wait strategies, Jasmine or a different tool?
Comment: Are you comparing selenium with Jasmine as alternative?
Comment: Jasmine is a BDD based testing framework where selenium is a UI test library.
Answer: WebDriverIO / Protractor
How about using WebDriverIO or using Protractor since they both are the JS like-version of Selenium, using Cucumber for the BDD syntax. We have a SPA, built using Angular4 , and we run almost 200 e2e scenarios, having vanilla JS code in Protractor, using the various waits and it works pretty good actually.
WebDriverIO: http://webdriver.io/
Protractor: http://www.protractortest.org/#/
Both use the "describe, it" format.
TestCafe
Testcafe doesn't use WebDriver to work with browsers as other e2e solutions do.That is why it requires minimal test environment and it is installed with one command. Besides, this approach allows you to run tests on any physical device without requiring anything but the browser. Other pluses include writing tests in ES6/ES7, automatic waiting as well as the elegant and informative console reporter.
TestCafe - https://testcafe.devexpress.com/
CodeceptJS
CodeceptJS is multi-backend testing framework. It is nothing, but a wrapper that provides syntax to write tests that will run in one of the popular test runners. You can choose from the following options

WebDriverIO
Protractor
SeleniumWebDriverJS
NightMareJS
Appium
Others

The e2e scenarios written are almost kinda similar to how you write feature driven tests using Gherkin/Cucumber, so it becomes an excellent choice for BDD lovers.
CodeceptJS - http://codecept.io/
CypressIO
Another framework that can be used to write e2e tests - in fact it can also be used to write integration as well as unit tests for SPA.
CypressIO - https://www.cypress.io/
Answer: nightwatch.js
module.exports = {
  'Demo test Google' : function (client) {
    client
      .url('http://www.google.com')
      .waitForElementVisible('body', 1000)
      .assert.title('Google')
      .assert.visible('input[type=text]')
  }
};

One option is nightwatch.js
One example is to have a single page object file in Nightwatch for each entire site.
For example, one site has about 200 lines of structure declaration and css selectors, and 200 lines for helper functions, e.g. login. There is plenty of "click this, wait for that to be visible, now click this, now wait for that to be invisible".nightwatch lets you see the entire journey and the building blocks that can be reused, all represented together in one place.
Answer: Well, like any other type of web application, single-page applications contain multiple layers of logic such as database connections, request handling, input form validation, template rendering, and so much more. For this reason, end to end tests are required to validate the functionality and usability of an application. Through end-to-end tests, you can uncover performance issues, high-bandwidth consumption, slow loading speed, and other issues on the client and server-side that might affect user experience.
To ensure your end-to-end tests are effective, you must choose the right testing tool. I have used quite a number of tools throughout my life as a developer and project lead. However, one of the most effective and easy-to-use testing tools I ever used is TestCraft.
TestCraft is a codeless test automation tool based on Selenium, one of the most popular frameworks for testing web applications. With TestCraft, you can create and run end-to-end tests without having to write the test scripts manually. I am talking about codeless selenium.
I also wondered how this works at first but creating and executing tests using TestCraft is pretty simple and straightforward. All you need to do is go to their dashboard and initiate the process by supplying the required project details like test name, URL to test (your SPA), and the testing platform to use. This initializes the project and takes you to a dashboard where you can create, edit, and run end-to-end tests for your application, as shown below:

On this dashboard, you can test as many elements as you wish on your application. Additionally, you can add multiple test steps on a single element by configuring the test parameters and providing all the required test data.
Additionally, you can also write failing tests and see if your SPA passes. Once you're done editing all steps in your end-to-end test flow, hit run, and check your test results.
The beauty of TestCraft is that it allows you to create and run any kind of test you would on Selenium without having to write code.
Answer: Jasmine
Jasmine is certainly one option.
It has the 'describe it' syntax that will familiar to some from other BDD tools such as rspec for ruby.
It can be used in various ways and may be suitable for end user testing
Answer: jest
If testing React, one option is to use Jest
https://facebook.github.io/jest/docs/en/getting-started.html#content
const sum = require('./sum');

test('adds 1 + 2 to equal 3', () => {
  expect(sum(1, 2)).toBe(3);
});

Complete and easy to set-up JavaScript testing solution. Works out of the box for any React project.
Instant Feedback
Fast interactive watch mode runs only test files related to changed files and is optimized to give signal quickly.
Snapshot Testing
Capture snapshots of React trees or other serializable values to simplify testing and to analyze how state changes over time.
Zero configuration testing platform
Jest is used by Facebook to test all JavaScript code including React applications. One of Jest's philosophies is to provide an integrated "zero-configuration" experience.

However I'm not sure if Jest is suitable for end-to-end testing as opposed to unit testing javscript.
Comment: I don't think so Jest is used for e2e testing for React applications.
Answer: mocha
http://mochajs.org/
Use the "describe, it" syntax
Runs on node
Usually paired with Chai for the assertions (should, expect, etc).
Can use https://github.com/Automattic/expect.js for the 'expect' syntax
http://mherman.org/blog/2015/09/10/testing-node-js-with-mocha-and-chai/#.WXz6I6x96zc


How can I remove myself from a shared Google Drive?

Question: I was part of a shared Google Drive (not a shared folder) and the manager of the drive disappeared. Since I am a viewer of the drive only, is there a way for me to remove myself from the drive? There is no manager listed in the drive itself anymore.
Answer: You can't remove yourself from a shared drive.
Shared drives belongs to a Google Workspace organization. Ask the organization admin to remove you from the shared drive.
Resources

Who is my administrator?


Can an Ajax script access different website's webpage?

Question: Can an Ajax script access different website's webpage? for example i tried following
<code>xmlhttprequestobj.open("GET","google.com",true);
</code>
What is wrong with this code?
Answer: No, it cannot, due to the Same Origin Policy: http://en.wikipedia.org/wiki/Same_origin_policy
Answer: Your request is valid if the endurl (in your case.. google.com) supports returning data in jsonp format.
Answer: No, you cannot access webpages of other domains and hosts, even i tried the same thing you tried, due to security reasons browsers do not allow so.


Holding the ball up with two hands

Question: I will like to know if it is a foul to take the ball from a player who picks the ball from a rebound and holds it up with two hands? Can the ball be taken from his hands even if they are held high up with both hands?
Comment: Welcome to Sports SE! Are you talking about the NBA? FIBA? There may be different rules for different leagues.
Answer: There is no foul if a defender takes away the ball from a player (who had picked the ball from a rebound and held it with two hands - high or low) without contact. In addition, there may be contact allowed in accordance to Rule 12B Section I (b) below.

From the 2012-2013 NBA Rulebook. Rule 12B Section I (b) states:

Contact initiated by the defensive player guarding a player with the
  ball is not legal. This contact includes, but is not limited to,
  forearm, hands, or body check.

There are several exceptions. Here is one relevant to your question:

(5) Incidental contact with the hand against an offensive player shall
  be ignored if it does not affect the player's speed, quickness,
  balance and/or rhythm.

e. Contact which occurs on the hand of the offensive player, while that hand is in contact with the ball, is legal.

Holding the ball up with two hands


Faulty Motorcycle Regulator?

Question: I am on my second 12v motorcycle battery in a couple of weeks. Will a faulty regulator, ie too higher volts, cause this?
Also I have upgraded my ct110 to a 160cc, all works well for a few days, then gone.
Cheers
Answer: Yes, a bad regulator will cause your motorcycle battery to be overcharged. This is a common failure because of the way motorcycle alternators work.
Measure the battery voltage while the engine is running. It should be between 12V and maybe 14.8V max. Now rev up the engine and see if the voltage shoots above that. If it gets to 15 Volts or more, it is overcharging your battery.
There's a good article here that explains how motorcycle alternators work:
http://www.electrosport.com/technical-resources/technical-articles/how-motorcycle-charging-system-works
But the point is this: The permanent magnet alternator in motorcycles outputs higher and higher voltage (and power) as the engine revs up.
The voltage regulators job is to limit the voltage to about 14.4 Volts by dissipating the extra power that is not get used by the battery, lights, etc. That's why motorcycle regulators have big metal fins and should be out in free air. If this regulator fails, then all that extra power gets pushed into overcharging your battery.
This is different from an automobile alternator where the regulator throttles the amount of output voltage put out by controlling the current through the rotor electromagnet. In a car, the most common failure of the regulator in a car is that it undercharges the battery because it cannot feed enough current into the rotor.
Answer: I believe you mean alternator. It charges your battery when your motorcycle is running.
The alternator needs to output 12.6V to 14.4V when it's working fine, use a multimeter to check it out.
Comment: No, he meant regulator.

Faulty Motorcycle Regulator?


Piano fingering exploration

Question: I have been learning the classical way with proper and consistent fingering for all scales and modes including sight reading and different techniques(staccato, tenuto...)
I am now at the point where I use all the basics as warm up to learn new things.
One of these things is exploring the scales.
What I mean by that is that I no longer ascend or descend on the piano(that's the warm up)but look for melodic inspiration through the scales.
However, I sometimes find it difficult. I know I am training my brain do do a new thing and it feels like I am fighting my muscle memory. It also feels like I want I should abandon the fingering I've spent so long to learn and perfected.
Can you all share your experience. Do I feel that way because I am breaking the rhythm of my practise?
Also,
I only see a glimpse of why I should practise scales. I know it has accelerated learning pieces of music and I can note patterns and difficult or important moments in the music.
Am I on the right path? Will it become clearer soon?
Answer: That's the problem with scales - they require certain fingerings so that they work and are smooth to play. Trouble is, in tunes, there may well be snippets of scales, say four or five consecutive notes from a scale, but there's often no good reason for using the actual fingering that you've become so used to for playing those notes, (due to the fingering either side).
An idea would be to take ,say, five consecutive notes from any scale, and play them in order, but, with different fingering from that that you use in a regular scale session.
Answer: You are on the right path. It sounds like you are beginning your journey into improvisation ('exploring the scales'). It is a tough journey, but keep at it and fluency will come. When you play something that catches your ear, stop and play it again. Figure out why you liked it. Reproduce it. Maybe try a variation of it (changing the notes or rhyme slightly). Finally, find other people's music that inspires you: learn it, mimic it, experiment with it. There are tons of great major scales ideas out there to add to your musical vocabulary!
Answer: Actually, the fingering scary when you are in different modes. I have no problems at all when picking up a new piece of music...
in fact, because all music is based on scales, these patterns appear in all music...( I read a lot of music practising sight singing to help with sight reading)
I understand fingering can vary. However, in my experience the basics are all so important. In fact, for example, there's no real set fingering for pentatonic scales or bebop... it's what you feel is best. But all is based on classic... or most of it and I was always able to sort out fingering and dexterity for new things.
I like the first answer but would like more scared experienced

Piano fingering exploration