How to get a full name function
For any symbol, how can I get the full context-qualified name of the symbol as a string?
How do I shuffle cards for a card game? I am trying to develop an card game for Android Can anyone suggest me how to write code for effectively shuffling the playing cards? Disable mouse speed check between monitors in windows 8.1 update 1 In windows 8.1 and below, the mouse would seamlessly move through all my monitors.  However, in windows 8.1 update 1 the mouse needs to be going at a certain speed before it goes to a different monitor. How do I disable this?  A google search has turned up nothing, so I'm not sure what exactly is going on I am running linear regression models and wondering what the conditions are for removing the intercept term.   In comparing results from two different regressions where one has the intercept and the other does not, I notice that the $R^2$ of the function without the intercept is much higher. Are there certain conditions or assumptions I should be following to make sure the removal of the intercept term is valid? execute command on a defined range of directories Is it possible to 'partition' a directory listing - say in to blocks of some number, to perform different actions on each 'range'?  For example, lets say I have the following directories inside another folder:  $ ls test abc/ def/ hij/ klm/ nop/ qrs/ tuv/ wxy/ zzz/   And I want to perform some action on the first 3 directories, another on the second 3, and so on.  My thought was that perhaps a loop across numbers would work, based on the output of something like ls | nl (but before anyone mentions it, I know parsing ls is a no-no!)  This obviously doesn't work, but illustrates my point I hope:  for dir in `ls | nl`;  do     do-something-with ${dir{1..3}} # Where $dir has taken on some numerical value linked to the folder)     do-something-with ${dir{4..6}}  # And so on...     do-something-with ${dir{n-3..n}}  done   The folders I intend to actually do this on, can be worked on in any order (i.e. the final splits can be totally arbitrary), but they have no logical naming consistency - by which I mean they can't be organised sensibly alphabetically or numerically based on any key within the directory name themselves. In D&amp;D 5, the saving throws for spells has the following formula:  The DC is set to 8 + prof bonus + magical stat bonus.  The target then makes a saving throw, adding their stat bonus and hoping to get above that DC.  Instead of having the defender roll the saving throw, we would like the attacker to roll the attack against the "defense" of the monster. (Mainly to make play by post run smoother)  Would this mean that the attacker just rolls d20+prof + magic stat bonus, and they try to get a number which is higher than 8+ monster def stat bonus, or is there a different formula which better maintains the math? (This math sounds wrong to me, so I assume there is a better formula) How can I do the following in Git?  My current branch is branch1 and I have made some local changes. However, I now realize that I actually meant to be applying these changes to branch2. Is there a way to apply/merge these changes so that they become local changes on branch2 without committing them on branch1? I'm seeing an odd character like a very flat U, where there should be a space, with the listings package. See example below. Does anyone have any idea why this is happening, or how to get rid or work around it?  \documentclass{standalone} \usepackage{underscore} \usepackage{listings} \usepackage[usenames,dvipsnames, rgb, svgnames, x11names]{xcolor} % Text layout \topmargin 0.0cm \oddsidemargin 0.5cm \evensidemargin 0.5cm \textwidth 16cm \textheight 21cm  \lstnewenvironment{cmd}[1][]{%   \lstset{language=sh, backgroundcolor=\color{LightSteelBlue1}, #1}} {}  \begin{document} \begin{cmd}[caption=Configuration file section including filters] [affy6] [...]     [[hapmap]]     phenofiles = "data/Hapmap6.0/Pheno/hapmappheno_909.csv",     genofile = "/data/snppy/Hapmap6.0/Geno/birdseed-v2.calls.txt"     anno_filter = "chromosome = 5"     idlink_filter = "studyid = 'CEU'"     some_other_stuff = "foo = bar" \end{cmd} \end{document} How to shrink Windows 7 boot partition with unmovable files I was presented with the following problem:      Prove that there exist solutions to $x^2+y^2=z^n$ for all $n$, with $x,y,z, n \in \mathbb{N}$   I showed that by taking any Pythagorean triple $x^2+y^2=z^2$ and multiplying by $z^{2(n-1)}$ we get $(z^{n-1}x)^2+(z^{n-1}y)^2=(z^2)^n$, which allows me to generate solutions easily for any value of $n$. I managed to find several similar questions on this site, such as  concerning the specific case $n=3$. I notice that all of these questions take a similar approach and start with a Pythagorean triple and use it to generate general solutions.  Is there a way to prove the statement (or better yet provide solutions to the equation) without first relying on Pythagoras? I ajaxly call a route and pass data to it, In my controller, I want to get $_POST['var'] , $_POST['var2'], it seems because of using HttpFoundation in drupal 8, $_POST and $_GET are not exists in old method, How I can access $_POST parameters in custom Controller? if command in find -exec I was just trying to list all directories and files under current directory and also write if they are file or directory with the following command:  find -exec echo `echo {} : ;if [ -f {} ]; then echo file; else echo directory;fi` \;   I know it is a silly command, I can use other things like -type f or -type d, but I want to learn why that piece of code did not work as I expected. It just prints directory to all of them. For example while output of find is:  . ./dir ./dir/file   output of my code is :  . : directory ./dir : directory ./dir/file : directory   And output of   echo `echo dir/file : ;if [ -f dir/file ]; then echo file; else echo directory;fi`   is  dir/file : file   I am working on Ubuntu 14.10 and using find (GNU findutils) 4.4.2 Shapefile layer no longer editable (toggle edit option greyed out) in QGIS "have" vs."have got" in American and British English I have looked through several questions and answers on EL&amp;U, and often there is an indication that American English prefers "have" while British English prefers "have got". In addition, there are several references to "have got" being more informal than "have" (e.g.: , ). But where is it considered more informal? In American English alone or both American and British English?   This point may seem obvious to those who made the above mentioned references, but the fact is that even the most fluent users of English in my country will say without a doubt that 'have got' is the preferred usage in the UK and, therefore, it must also be more formal. Why? Because in an academic environment, the more informal structures are generally frowned upon, outside some specific spoken exercises. And if the teachers insist on using "have got", it follows it isn't informal.  So, is the teaching of (British) English in our schools transmitting the wrong idea?  EDIT: I'm adding some information in answer to the comments.  I'm mainly concerned with the idea of possession:      I have got a cat vs. I have a cat and She has got a dog vs. She has a dog   As mentioned in the comments, every (Portuguese) student will be told that "have" and "have got", when it comes to the idea of possession, are absolute synonyms, the only two differences being:    "have got" is preferred by British English, "have" is preferred by American English   the negative and interrogative structures differ    I have never heard of any distinction in formality. In fact, I was rather surprised when I went through the EL&amp;U archives and read about it.  So, would "I have got a cat" be as formal/informal as "I have a cat"?   And how do British and American English look at its formality/informality? Is it the same? $2 \otimes_{R} 2 + x \otimes_{R} x$ is not a simple tensor in $I \otimes_R I$ How do I get my Python program to sleep for 50 milliseconds? How do I get my Python program to sleep for 50 milliseconds? Proof that $ p $ | ${ p^n \choose k } $ for any prime $p$ and $ k < p^n$ I know how to prove the fact that $ p$ | ${ p \choose k } $ (when writing it as a fraction, $p$ cannot be divided by any of the $1\times2\times...\times k$ or $1\times2\times...\times(p-k)$ because $p$ is prime).  When I try to apply the same rationale for $ p$ | ${ p^n \choose k } $ I get stumped because $p^n$ is in fact divisible by one of the $k! = 1\times2\times...\times k$, where $0 &lt; k &lt; p^n$.  If we take the example of $2^3$ and $k = 7$, we can easily see that $k! = 1 \times 2 \times ... \times 6 \times 7$, and $2$ clearly divides $2^3$.  How else can I approach this? What is the purpose of the EBP frame pointer register? I'm a beginner in assembly language and have noticed that the x86 code emitted by compilers usually keeps the frame pointer around even in release/optimized mode when it could use the EBP register for something else.  I understand why the frame pointer might make code easier to debug, and might be necessary if alloca() is called within a function.  However, x86 has very few registers and using two of them to hold the location of the stack frame when one would suffice just doesn't make sense to me.  Why is omitting the frame pointer considered a bad idea even in optimized/release builds? X Windows special programs: do some of these still exist? Is "forte" pronounced "fort" or "for-tay"? I've always heard people say something like     "Pronunciation is not my [for-tay]"   ... but I feel that I've heard that the correct pronunciation is     "Confusing people is my [fort]"   What is the proper way to pronounce this word? What is the grammar behind "Thanks be to God"?