It is covered well  that sacrificing one creature cannot fulfill the requirements for two abilities that are both activated abilities (have 'Sacrifice a creature: do something', like ), or other costs ("As an additional cost to cast , sacrifice a creature"), but can cause multiple triggered abilities (like 's).  However, there's one other type of sacrifice that some cards call for; when you're commanded to ("Target opponent sacrifices a creature" as in ), or optionally "may sacrifice" (like ).  Are those "commanded to" or "optionally may" actions costs (and therefore must have a creature sacrificed specifically to it and no other cost), or some other sort of trigger?  A complete example: I have a  and a  in play. An opponent casts  on me. Can I sacrifice the Bane Alley Blackguard to the Falkenrath Aristocrat's ability (she gains indestructable for the turn and a +1/+1 token), and have fulfilled the requirements for what Cruel Edict needs me to do?
Two very closely related questions:  If a card has two different "Sacrifice this creature for X" abilities on it, does sacrificing it give both benefits?  Likewise, if a card requires a creature to be sacrificed, but that creature has a "Sacrifice this creature for X" ability, do you get the sacrifice benefit when you sacrifice it for the other requirement?
Is SO/SE about to be sold (and does that explain recent events)? Update all objects in a collection using LINQ Is there a way to do the following using LINQ?  foreach (var c in collection) {     c.PropertyToSet = value; }   To clarify, I want to iterate through each object in a collection and then update a property on each object.  My use case is I have a bunch of comments on a blog post, and I want to iterate through each comment on a blog post and set the datetime on the blog post to be +10 hours. I could do it in SQL, but I want to keep it in the business layer. Work the Spring There's a book that I read several years ago that I'd like to find.  However, I cannot remember enough about it to find it myself.  Neither the title nor author remain in my mind, nor any keyword or phrase that's unique enough for the Grand Google to nail for me.  Hence my desperate plea here.  In the book, there is an interstellar civilization composed of several power blocks.  The entire civilization did not fill the galaxy, but it did span several stellar systems.  Maybe 10s or 100s.  I seem to remember that one of the civilizations was a decentralized group referred to as the Brotherhood and they seemed to have been keen on preserving old learning and political ideals.  A derelict alien spacecraft from outside all of this had been discovered and at least two of the power blocks sent ships to recover it.  I don't recall if they knew at the time about the power the alien ship had, but they must have had some clue since there was some urgency in capturing this ship.  One of the ships sent to capture the Alien craft was commanded by somebody who was rather shaken up, to say the least.  He had had some big trauma in his past (like... the last ship he captained was annihilated with all hands.) so he was kinda bummed out about things and wasn't really putting his heart into getting this done.  He was assisted by the ship's AI who had a lot of soul-to-soul chats with the captain, and at one point almost relieved him of command because he was just not getting the job done.  I think the ship's name was Boaz.  These were the "good guys".  There was at least one other ship sent from the "bad guys."  The alien craft had some remarkable powers.  The interior volume was apparently infinite and the operators could see and manipulate anything in the universe.  There might have been some example given where all the rats somewhere were found and disposed of.  Whoever had control was tempted by the ole absolute power corrupts absolutely problem, but nobody but nobody could stop them because of their power.  They could eat and multiply within the ship and become real bad-asses.  But alas... (or hurray, depending upon which side you're one) everything fails eventually, and whoever controlled the ship would eventually succumb to some horrible end.  Whereupon the ship became derelict again until some other lucky race found it and repeated the cycle.  The ship had an AI that was real interested in taking the power for itself, but there was some mechanical, spring-loaded, mechanism outside of its control that needed to be worked in order to execute power.  The AI apparently never figured out how to "work the spring" and this made him crazy angry.  The ending is equally foggy for me.  I'm pretty sure the good guys got the ship.  They agonized over what to do with it.  Apparently it was indestructable and nobody wanted to taste the temptation of all that power.  In the end they dumped it on the surface of a neutron star.  There it sat forever more, probably with the crazy AI really pissed off about being there.  If you've read this book, you'll recognize it immediately from these clues.  I'm looking forward to finding out the name of this book.  Thanks! What is the best way to convert an array to a hash in Ruby In Ruby, given an array in one of the following forms...  [apple, 1, banana, 2] [[apple, 1], [banana, 2]]   ...what is the best way to convert this into a hash in the form of...  {apple =&gt; 1, banana =&gt; 2} How to set date format when manually inserting date on excel, without changing regional settings? In my locale, date is inserted as dd/mm/yyyy or variations of that (including dd-mm-yy). I made an Excel form (in normal Excel file), already formatted to show date as dd/mm/yyyy, but when I typed "05/04/2015" it will be shown as "04/05/2015". I know this can be solved by changing the regional setting to my local setting, but I need to distribute this form to a lot of people with no knowledge of changing regional setting, and assuming no one can teach how to, hence my question :  Is there any way to input "05/04/2015" and be recognized as "5 April 2015", without having to change regional settings ?  Additional note: When I mean "4 May 15" (typed in 4/5/15), Excel will recognize this as "5 April 15" because Excel takes input as "mm/dd/yy" format. I need to change the default behavior of Excel to take as "dd/mm/yyyy" as this is the way the users will input.  If possible, the setting should also included/embedded on the file to allow end-users use the form without even changing setting.  I'm not familiar with macros and VBA, but willing to try those :)  EDIT : this is related to my question :   but I don't need to change the whole formula bar, as long as Excel recognize that I'm typing in dd/mm/yy format. Question on determinants of matrices changing between integer matrices The following problem came up from a though I had while reading:  Let's say we have $M=\mathbb{Z}^n$ and we have another free $\mathbb{Z}$-module, $N$, inside of $M$ also with rank $n$.  We know we can make a matrix $A$ that changes $N$ to its representation in $M$ (ie has as columns the basis $N$ expressed in coordinates coming from the basis of $M$). If the index of $N$ in $M$ is $m$, I am pretty sure just from tinkering that the determinant of $A$ should also be $m$, however, I have not been able to show this.  It is unclear to me how to proceed. I though maybe I could do something related to the points in $\mathbb{Z}^n$ that are within the unit box of $N$, but I cannot really make sense of this.  Thank you for any help or direction. "My wife and I's seafood collaboration dinner" Is a 2-hour transit time enough to catch a connecting flight in Muscat airport? Both flights are with Oman Air I am flying from Dubai to India with Oman Air with a layover of 2 hours at Muscat airport. Is 2 hours enough for me to catch my connecting flight from Muscat to New Delhi? My flight from Dubai to Muscat as well as the connecting flight from Muscat to New Delhi are with Oman Air. Do I need to re-check in my luggage? Am I taking a risk or should I take an earlier flight from Dubai to get more layover time to be on the safer side? How to validate phone numbers using regex From my old HD (Ubuntu 16.04) I copied ~/.thunderbird and other programs to the new disk with Ubuntu 18.04 installed. All went good. I tried to install Opera. The installation was unsuccessful, a window asking something was held. After that Thunderbird Local Folders -> Inbox (only) was invaded by large icons like this screenshot  Flowers, plants, trucks and others. I restarted but those images are still there. Opera was successfully installed. What can I do to remove them? I've created a Lightning component to view key details for the Account and Contact lookups from a Case, like so:    The problem is, I have been unable to get field content to render when  using the &lt;force:inputField/&gt; or &lt;force:outputField/&gt; components when I place them inside the markup to style them as cards. I've used &lt;ui:outputText/&gt; as a workaround, but that means I don't get any of the built-in behaviors I would get with the &lt;force:*Field/&gt; components -- like Lightning styling, which means I have to manually do it using SLDS.  This displays the contact name as expected:  &lt;aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" controller="LightningCaseTestController"&gt;   &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}" /&gt;   &lt;aura:attribute name="recordId" type="Id" /&gt;   &lt;aura:attribute name="contact" type="Contact" default="{sobjectType: 'Contact'}"/&gt;    &lt;force:outputField value="{!v.contact.Name}"/&gt;   &lt;force:inputField value="{!v.contact.Name}"/&gt;  &lt;/aura:component&gt;   This does not:  &lt;aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" controller="LightningCaseTestController"&gt;   &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}" /&gt;   &lt;aura:attribute name="recordId" type="Id" /&gt;   &lt;aura:attribute name="contact" type="Contact" default="{sobjectType: 'Contact'}"/&gt;    &lt;article&gt;     &lt;force:outputField value="{!v.contact.Name}"/&gt;     &lt;force:inputField value="{!v.contact.Name}"/&gt;   &lt;/article&gt;  &lt;/aura:component&gt;   Basically, it appears that as soon as any markup is placed around the &lt;force:*Field/&gt; tags -- even just a &lt;div&gt; -- they no longer render. Examples in Trailhead and other places all seem to use &lt;ui:outputText/&gt; or &lt;ui:input*/&gt;.  This seems like a lot of extra manual work. Am I missing something?  Update: it only fails when the component is included in a Lightning page -- such as the record detail page -- from Lightning App Builder. If I add it to a simple Lightning app, it works:  &lt;aura:application &gt;     &lt;c:LightningCaseTest recordId="SOMECASEID" /&gt; &lt;/aura:application&gt;   So it appears to be a bug? Why has the innkeeper put a price on my head? So, I was just assaulted by a trio of fairly well armed thugs while walking out of Riften. Before attacking me, they informed me that they were 'here to teach me a lesson.'  After dispatching them in due course, I found this on the body of what I can only assume to be the leader, given his vastly superior armaments:   Orgnar is the innkeeper in Riverwood. Now, I admit, I've stolen a fair amount, but I pride myself on having never been caught. My total bounty to date is at zero. So, how did he figure out that I stole something, why is he taking the law into his own hands, and if I go back to Riverwood, am I going to get shanked? What are the odd of a single coin toss after many consecutive ones? I have little knowledge of probability and have recently been thinking of a math problem I am sure you guys could answer  If for example I tossed a coin ten times and got all heads, would the odds of the next coin toss beeing heads be 50 50 or s very low as the odds of getting 11 in a row is tiny?   Thanks Integral $\int\csc^3{x} \ dx$ I found these step which explain how to integrate $\csc^3{x} \ dx$. I understand everything, except the step I highlighted below.  How did we go from: $$\int\frac{\csc^2 x - \csc x \cot x}{\csc x - \cot x}\,dx%$$ to  $$\int \frac{d(-\cot x + \csc x)}{-\cot x + \csc x} \quad?$$  Thank you for your time! $$ \int \csc^3 x\,dx = \int\csc^2x \csc x\,dx$$ To integrate by parts, let $dv = \csc^2x$ and $u=\csc x$. Then $v=-\cot x$ and $du = -\cot x \csc x \,dx$. Integrating by parts, we have: $$\begin{align*} \int\csc^2 x \csc x \,dx &amp;= -\cot x \csc x - \int(-\cot x)(-\cot x\csc x\,dx)\\ &amp;= -\cot x \csc x - \int \cot^2 x \csc x\,dx\\ &amp;= -\cot x\csc x - \int(\csc^2x - 1)\csc x\,dx &amp;\text{(since }\cot^2 x = \csc^2-1\text{)}\\ &amp;= -\cot x \csc x - \int(\csc^3 x - \csc x)\,dx\\ &amp;= -\cot x\csc x - \int\csc^3 x\,dx + \int \csc x\,dx \end{align*}$$ From $$\int \csc^3 x\,dx = -\cot x\csc x - \int\csc^3 x\,dx + \int \csc x\,dx$$ we obtain $$\begin{align*} \int\csc^3x\,dx + \int\csc^3 x\,dx &amp;= -\cot x \csc x + \int\csc x\,dx\\ 2\int\csc^3 x\,dx &amp;= -\cot x\csc x + \int\csc x\,dx\\ \int\csc^3x\,dx &amp;= -\frac{1}{2}\cot x\csc x + \frac{1}{2}\int\csc x\,dx\\ &amp;=-\frac{1}{2}\cot x\csc x + \frac{1}{2}\int\frac{\csc x(\csc x - \cot x)}{\csc x - \cot x}\,dx\\ &amp;= -\frac{1}{2}\cot x \csc x + \frac{1}{2}\int\frac{\csc^2 x - \csc x\cot x}{\csc x - \cot x}\,dx\\ &amp;= -\frac{1}{2}\cot x \csc x + \frac{1}{2}\int\frac{d(-\cot x+\csc x)}{-\cot x +\csc x}\\ &amp;= -\frac{1}{2}\cot x\csc x + \frac{1}{2}\ln|\csc x - \cot x|+ C \end{align*}$$ When should comments be flagged/deleted on per-site metas? We all know , but that guidance is, naturally, geared toward main sites, where we want to keep things clean and focused.  Meta, on the other hand, is a site's "second place", with some different rules and conventions.  For example, questions on main sites can be closed as primarily-opinion-based, but meta is all about opinions.  There's a "discussion" tag and such questions collect many opinions.  Meta is different.  Occasionally I see comment flags on metas and I'm never sure what to do with them.  Setting aside things that are blatantly offensive or spam (that's a no-brainer), is there such a thing as "too chatty" or a comment discussion that should be moved to chat on meta?  I am very conservative in deleting things on per-site metas (except on  posts, which like main should stay focused).  Are there any guidelines specific to per-site metas?  I'm specifying per-site metas and not MSE because MSE seems to have conventions that fall somewhere between "main site" and "per-site meta".  If the answer is the same for all metas then great, but I don't want to assume it'll be the same. I have a string variable that represents the name of a custom class. Example:   string s = "Customer";   I will need to create an arraylist of customers. So, the syntax needed is:  List&lt;Customer&gt; cust = new ..    How do I convert the string s to be able to create this arraylist on runtime? How do I make the player name show up on a /tellraw command? So I am currently making a minecraft custom map (for 1.9). I want to make the player "say" something using /tellraw commands. I did figure out how to make the player name come up using /say commands, but still have no idea how to do it using the /tellraw command.  How do I do that? Can I get from Gatwick airport to London by Oyster card? I read many contradictions as to whether one can use a Oyster card from Gatwick Airport to central London.  What is the most time-efficient way to go from Gatwick to "Old Billingsgate" (Monument tube station is nearby)? Public transportation is preferred over taxi. CLI path to ftp network connection I've setup a connectio to an FTP server in Nautilus / Nemo / Caja, the file manager. Now I can browse the contents via this file manager.  How can I browse these files via the command line? What is the path to this network connection? Is this possible, is this a system connection, or specific to the file manager, and do I have to setup a separate FTP connection to do that? If I open this connection in Caja, I see it in Nemo as well, so it seems like a system connection. Why can array constants only be used in initializers?