shocking to me vs shocking for me
Expressing an opinion: to me or for me?
Consistent, complete, and generalized description of the quantum harmonic oscillator How do I obtain the ebony blade and how do I power it up? The ebony blade is a katana like two handed weapon in Skyrim.  Its apparently associated with one of the daedric quests, but which one, and how do I start it?  Also, once I obtain it, how do I power it up? (semi)-Automatic pluralization around a citation If no spell can reawaken the dead, how did the resurrection stone work? Dumbledore himself said that no spell can reawaken the dead. Isn't that the main objective of the resurrection stone? If one can't reawaken the dead then what is the use of the stone? Surely then one of the Hallows is flawed? No direct object in 'give thee faithfully to follow' ? (1670 UK, Isaac Penington) What is the right way to get the current users profile in an apex class?  When I tried to print the following in visualforce page,  i am able to get the profile name  &lt;apex:outputText value="{!$Profile.Name}"/&gt;    But when i tried to print in the Apex class using System.debug(Profile.Name), I couldn't. reports:  Two mathematicians have uncovered a simple, previously unnoticed property of prime numbers [...]. Prime numbers, it seems, have decided preferences about the final digits of the primes that immediately follow them. Among the first billion prime numbers, for instance, a prime ending in 9 is almost 65 percent more likely to be followed by a prime ending in 1 than another prime ending in 9.  Do these insights make breaking keys based on primes more mathematically plausible in a shorter amount of time? Are there critical hits for spells? According to PHB p. 194 you always score a critical hit on any attack roll.  Does this rule also apply to magical attacks, e.g. the  spell? Can I install the free Windows 7/8 -> 10 upgrade on a new empty drive? With the new Windows 10 coming out soon as a free upgrade, I'd like to know if and how I can install the upgrade on a new HDD. I assume the files needed for Windows 10 are only for upgrading an installed copy of Windows 7 or 8 and not a standalone installer to use on an empty hard drive. Or is this assumption wrong?  I have some issues booting (an older non-working version appears in the list of OS's to choose from) and I'd like to replace my current SSD, which is too small, with a new larger capacity one, while keeping my other drives intact. The old SSD will then be removed.  If more information is needed, please let me know. Phrase to give a non-detailed answer/explanation What expression could I use when giving non-detailed answers/explanations about how something works? Let's say I want to explain how a printer works without getting into too much detail, Would it be OK to say:   "At a very superficial level, a printer ...." "At a very high level, a printer ..."   I feel like there are more appropriate expressions to begin such type of sentence. Any help would be greatly appreciated. The label toolbar uses fields in the attribute table of vector layers to fine tune labeling (Data defined labeling). That's the main reason i'm looking for that, but it may have more applications.  I'd like to automatically add some format columns instead of adding them manually every time.   Do you know a plugin or a way to do this manipulation automatically on multiples layers ?  I tried to get the QGIS tool "Add a field to attribute table" into a quick model which works properly, but it creates a new memory layer. And I'd like just new fields.  ##Add_ETIKT_Field=name ##myvlayer=vector ##myvlayer=output vector outputs_QGISADDFIELDTOATTRIBUTESTABLE_2=processing.runalg('qgis:addfieldtoattributestable', myvlayer,'ETIKT_Y',1,15.0,4.0,None) outputs_QGISADDFIELDTOATTRIBUTESTABLE_1=processing.runalg('qgis:addfieldtoattributestable', outputs_QGISADDFIELDTOATTRIBUTESTABLE_2['OUTPUT_LAYER'],'ETIKT_X',1,15.0,5.0,myvlayer)   What I'm looking to automate is :   Open the attribute table Edit button Field Calculator button Add Column + Type + length + Precision   It seems there's some ideas in , but I'd love to avoid coding anything, or at least at minimum go through the modeler.     Adding and Removing Fields       To add fields (attributes), you need to   specify a list of field definitions. For deletion of fields just   provide a list of field indexes.   if caps &amp; QgsVectorDataProvider.AddAttributes:     res = layer.dataProvider().addAttributes([QgsField("mytext", QVariant.String), QgsField("myint", QVariant.Int)])  if caps &amp; QgsVectorDataProvider.DeleteAttributes:     res = layer.dataProvider().deleteAttributes([0]) Compare two objects in Java with possible null values Can you please explain this to me?          Could you please explain this to me?   I am unable to figure out which to use which situation. I did google, and some posts say they are both the same, even if the second one is more formal. Other posts say could is the past tense of can, but in the above example, I don't think could is used as past tense of can.  What is correct way to use these words? "X Department" versus "Department of X" I would like to know whether these phrases "English Department" and "Department of English" have the same meaning. Thanks! Recursive cast from SimpleXMLObject to Array Double Factorial: Number of possibilities to partition a set of $2n$ items into $n$ pairs I know that the partition of $2n$ items into $n$ pairs has something to do with double factorial, but I am not sure how many possibilities we exactly have.   We can choose such a partition into pairs by first choosing $n$ elements to be in one half and the remaining $n$ in the other half, which gives ${{2n} \choose n}$ possibilities. Then we can take a permutation of both sets and match them accordingly.   This gives $${{2n} \choose n} n! n!=\frac{(2n)! n! n!}{n! n!}=(2n)!$$ possibilities. But with this we overcount, since we do not want the pairs to be ordered. Each of the $n$ pairs is counted twice, wherefore we have to divide by 2 for every pair, hence $\frac{(2n)!}{2^n}$?   Well, another possiblity to do that is just to iteratively pick $2$ elements among the remaining ones, which gives ${{2n} \choose 2} {{2n-2} \choose 2} \dotsb {4 \choose 2}$  I am not sure, but I do not think that this is the same and also, I do not see the connection to double factorial. Would be very glad if you could help me with these 3 possiblities.   Thank you. How to detect end of line with sed I'm looking for a way to only execute replacement when the last character is a newline, using sed.  For instance:  lettersAtEndOfLine   is replaced, but this is not:  lettersWithCharacterAfter&amp;   Since sed does not work well with newlines, it is not as simple as  $ sed -E "s/[a-zA-Z]*\n/replace/" file.txt   How can this be accomplished? MacBook Pro 2018 Random Restart > Previous shutdown cause: -20 How can I use pathauto to generate URLs for deeply nested vocabularies? I am generating breadcrumbs from URL arguments as described .  I have a vocabulary that looks like this:  Arts-> Performing-> Dancing-> Ballet  I want my url to look like this: arts/performing/dancing/ballet  Using the pathauto module, I can do this for taxonomy terms:  [term:parent]/[term:name]   Which, on the Ballet page, gives me the following; not what I want:  dancing/ballet    If I use parents instead of parent,  ([term:parents]/[term:name]); this is close but not quite:  arts-performing-dancing/ballet   How can I get from arts-performing-dancing to arts/performing/dancing? Install ffmpeg in Ubuntu 12.04 LTS Background :  I used ffmpeg to merge two videos side by side. First I install ffmpeg by following command as it suggest by Ubuntu itself.  sudo apt-get install libav-tools   or   sudo apt-get install ffmpeg   But then I realize it is not the correct version since it doesn't support for -filter_complex and few other functions.   After a few hours researcher I found  and I succeed with video conversion as well. As per that article, it is suggesting we need to build it our own.        Question :  What is easiest way to install that ffmpeg version (which is support for -filter_complex ) without following all those steps ?