How do you specifically order ggplot2 x axis instead of alphabetical order?
Order discrete x scale by frequency/value
Custom cursor in WPF? I want to use an image or icon as a custom cursor in WPF app. What's the best way to do it? Problem from iOS 10.1.1 to 10.2.1.  I have no photos at all on my iPhone yet in settings it says my photo library is taking up ~200MB of space. The number of space being taken up keeps changing constantly(in the settings app on my phone). In iTunes, the storage bar at the bottom does(when in the sync menu) not show photos.           What is taking up this storage, and how can I reduce it?  Troubleshooting:   I disabled iCloud photo library and iCloud photo stream, still showing the same thing. Tried doing what @User9125 said, didn't work. I had set the date all the way back when I first got my phone, nothing showed up. Rebooting I had hundreds of photos in Whatsapp, I deleted them but I didn't get the storage back. It didn't even make a dent in the amount of storage being used by Photos so I don't think a third-party app could be taking up this storage. I don't think a system app is taking this space either, because I cleared the pictures in mail and messages. I tried using (through sideloading) in Secure Mode and Fast Mode, but it did not clear up the photos. Sets with no asymptotical density over $\mathbb N$ Let's consider the  defined by:      Take $ A\subset \mathbb N$; define the sequence $x_n= \dfrac{|A\cap[1,n]|}{n}$, and then if $\lim\limits_{n\to\infty} x_n$ exists, call it $d(A)$, the density of $A$ over $\mathbb N$.   My teacher said that the collection of sets that have a natural density is not an algebra, but I don't know why. I can't even find a set that does not have a natural density.  Please help me )= Completely clear all output from a Terminal window How do I properly use the "Not an Answer" flag? What is the "Not an Answer" flag and what is its purpose? When should I use this flag? When should I not use this flag? But I'm still not sure if I'm using the flag correctly... An answer is "Not an Answer", but the flag was declined or disputed!   See also: I'm curious to see some real examples of where simply capturing the same photo in RAW (and being processed by someone who can do it justice) has significantly improved the photo at the end of the process.  I understand what RAW is and why you might want to use it over JPEG, however, I'd like to actually see some examples where it has allowed for a better result. More control over tone, conversion from the more detailed data to 8-bit RGB etc.  Does anyone have or know of some processed RAW+JPEG shots for exact comparison? Human & Alien captured, observed by higher beings From a collection of short stories I read at least 30 years ago. :/  This is going to be incredibly vague, so apologies in advance.  A human and alien (blob/octopus-like...I think) from warring races are captured by an unidentified higher intelligence and put in an enclosure (more like a zoo habitat rather than a prison cell). They are separated by an invisible barrier and can see each other.  I think they were both trying to escape or trying to figure out how they could kill the other first. There was a bulldozer/loader type vehicle they could use at one point to build a shelter (or something).  I believe they were crafting makeshift weapons as well. There was no communication between the two as far as I remember.  The main tension in the story seemed to be was the race to get to the other first.  This has been stuck in my head forever. I know its a very common theme.  The short stories may have included Asimov. Material Opacity in viewport? I'd like to do motion graphics type work in blender and it would be really helpful if I could see the results of keyframing material opacity to cut items in and out of view.  Blender internal is sufficient, using shadeless materials.  I could have swore there used to be something in view options.  Any ideas? Meaning of different Orders of Derivative I have been trying to analyse the meaning of higher order derivatives and their geometrical significance.  Given a function $f(x)$ what are the unique geometric interpretation of its higher orders?   $f'(x)$ - slope (rate of change of x w.r.t y) $f''(x)$ - convexity / concavity of $f(x)$ based on $sign(f''(x))$ $f'''(x)$ - increasing / decreasing slope of $f'(x)$ $f''''(x)$ - ?? ... $f^n(x)$ - ??   I apologize if this question is rudimentary. "Heard me [infinitive]" vs. "heard me [present participle]"             At that time, you wouldn't have heard me talk about it.   At that time, you wouldn't have heard me talking about it.         At that time, you wouldn't have heard me condemn it.   At that time, you wouldn't have heard me condemning it.         Which one of the above sentences are incorrect and why? Permutation count of AABBC Given a string:  $AABBC=A^2B^2C^1$   I am trying to find the Total Permutations (this may be incorrect):  $\dfrac{5!}{2!\cdot2!}=30$  My question is how would I find the partial sums (perhaps the wrong choice in words) when added together would give an index such that:   $AABBC=1$ $ABABC=2$ $CBABA=29$ $CBBAA=30$   (30 might be the wrong number here but is suppose to be the last)   I have tried to draw out a tree structure to get an idea and thought with as the minimum:  $CAABB$  $4(\dfrac{4!}{2!\cdot2!})$ + 1  And:  $CABAB$  I would get something like:  $4(\dfrac{4!}{2!\cdot2!}) + 0 + 1(\dfrac{2!}{2!}) + 0 + 0$  But I am missing something here. How would I find the sums needed for $BACAB$ ?  More specifically I am trying to find the index of a word that is arbitrarily long in alphanumeric.  So the string may also be something like:  $AAAAABBBBDDEEFFFGGGGGHIIIIJJJJKLMOOOPZZZZZ$ A coin is tossed three times: The probability of zero heads is 1/8 and the probability of zero tails is 1/8.  And my question is: What is the probability that all three tosses result in the same outcome?   So, if P(zero heads)= 1/8 , then that should be the same of p(all tails)?  If so, we could use the Addition Rule which is $P(A \cup B) = P(A) + P(B)$  where A and B are disjoint events, i.e. $A \cap B = \emptyset$, A is the event of tossing all heads and B is the event of tossing all tails.  I'm not sure how to continue after that... would the complement be used? Normally while searching using grep, the command I was using was this:  grep -nri "String"   whereas most of my colleagues do this:  grep -nri "String" *   What does the latter do (the * part)? What is the appropriate public key encryption for secure coin flipping? I quote Bobby's question here since I encountered the same one...    Consider the following protocol for two parties to flip a fair coin.   Trusted party $T$ publishes her public key $K_{pub}$ $A$ chooses a random bit $b_A$, encrypts it under $K_{pub}$, and announces the ciphertext $c_A$ to $B$ and $T$ $B$ does the same and announces a ciphertext $c_B$ (where $c_B \neq c_A$) $T$ decrypts $c_A$ and $c_B$, and announces the results. Both parties $XOR$ the results to obtain the random value $b_A\oplus b_B$.   It was shown that  was not appropriate for the encryption scheme.  seems to fail to work also. Since $c_A=m^e \mod N$. Then if $m=1$, $c=1$. If $B$ receives $A$'s cipher he will know the exact value of $m$.   So what should the appropriate encryption scheme be? $n$-th digit in the sequence of natural numbers What's the $n$-th digit in the sequence $S$ of numbers formed by the natural numbers, i.e.,  $n$-th digit in the sequence 1 2 3 4 5 6 7 8 9 10 11 12... ? For example 11th digit in the sequence is 0. Is there a word for the sadness over "What might have been"? When applying for post-doctoral and faculty positions you are typically asked for three (sometimes more) reference letters to support your application.    Given that it is competitive out there, it also makes sense to apply for all positions that are good matches to your qualifications and career development goals (in the case of post-docs).  Sometimes this may mean asking for several reference letters (or pre-application "can you support me if required?" requests) in a short space of time.  Also, there may only be a small pool of people (i.e. 3 or 4) who know your work sufficiently well to give an excellent reference.  I have also been told that referees want to help you out, and that there is no reason to fear asking them.  And, that in many cases once a letter is written it can typically be quickly repurposed.  But there must be a breaking point.  How do I manage this without being disrespectful?  How many requests in a given unit of time is too many, or harms my credibility?   I am asking this question in this forum, as I am interested in the norms in the academic world, which are often somewhat different than the rest of the working world. Holomorphic self map on the open unit disc A number of questions "has been" or "have been" asked? Formally, is it correct to write:     A number of questions has been asked here.   or:     A number of questions have been asked here.   As a non-native speaker of English, I would prefer the former: the subject seems to be "number", therefore the verb ought to be singular, I'd say. However, the latter seems more common, and therefore I believe that my gut feeling is just plain wrong — but I would really like to have a definite answer.  Moreover, is it the same for "a myriad of", "a plethora of", and so on? I am trying to use netcat to send a simple message over TCP, e.g. I want to send the digit 1.  So I understood that I write the following in the terminal, after installing netcat  netcat [ip-address] [port]  But how do I specify the message to be sent? i.e. where to I write "1" ?