Is it possible to make continuous raster legend in QGIS? Something like in ArcGIS???
I'm looking for a way to insert continuous colour legend for a raster layer.  I managed to create discrete symbols with values along the bar, but I would like to have a continuous bar with some values on the bar, similar to the old plugin "One-Band Raster", that it doesn't work with the QGIS version higher than 1.7  I tried to set in properties->style, where I selected the  Render Type "Singleband pseudocolor" and see the "generate new color ramp" box.  I tried both "Continuous" or "Equal interval". However, in the Composer the legend always is displayed with discrete symbols.  Is there any way that can make QGIS Composer to display a nice continuous band for a raster layer?
Blender image output is greyish and not white Why does $(\frac{p-1}{2}!)^2 = (-1)^{\frac{p+1}{2}}$ mod $p$? Assume $p$ is prime and $p\ge 3$.  Through experimentation, I can see that it's probably true. Using Wilson's theorem and Fermat's little theorem, it's equivalent to saying $2^2 4^2 6^2 \cdots (p-1)^2 = (-1)^{\frac{p+1}{2}}$ mod $p$, but I can't figure out any more than that. Which serial protocol or encoding scheme does this scoreboard use? I am trying to decode a signal stream coming from a Nevco scoreboard controller:    Packets like this are sent every ~2.7 ms.  I suspect it is some sort of UART signal because it is on the RX line of a ATMEGA48, but I cannot identify the finer protocol details like parity and stop bits. All the combinations I have tried returns junk data, so it may be another encoding scheme.  What's unusual is that the same signal is also sent to the MOSI pin of the microcontroller, but there is no clock signal anywhere.  A .vcd file is .   The shortest pulses (both high and low) are always 8us in length.    This is what two packets look like. Anyone got ideas? Where is the password stored for ssh authentication? It's known that when you're connecting to a wrong server via ssh and send your password  to it, your password comes in a plain text and a server saves it by default. Probably. I wonder, where I can retrieve it? I don't see it in /var/log/auth.log, although I do see all the attempts to authenticate. Evaluate this power series Evaluate the sum  $$x+\frac{2}{3}x^3+\frac{2}{3}\cdot\frac{4}{5}x^5+\frac{2}{3}\cdot\frac{4}{5}\cdot\frac{6}{7}x^7+\dots$$  Totally no idea. I think this series may related to the $\sin x$ series because of those missing even powers. Another way of writing this series:  $$\sum_{k=0}^{\infty}\frac{(2k)!!}{(2k+1)!!}x^{2k+1}.$$ I'm running Bash scripting, but sometimes I get confused which of these commands I use belong to who. Sometimes man xxx works, sometimes doesn't, so I use --help or info, mostly one of these works to show description of the command. Can anyone tell me how I would know what command belongs to what? Bash builtin, GNU utility, etc. For example, in a novel, if someone is so powerful that no one can stop him, something like this would be said:     He [insert word] in the continent [or some other location].   "Moved unhinderedly" somewhat fits it, but it doesn't really seem like the right term.  The word I'm looking for describes a few things:   Should have an implication that the person himself is powerful That person can go wherever he wishes to, and cannot be stopped because of his strength That person can do whatever he wishes to, and like above, cannot be stopped because of his strength   The other word I have is "swept", i.e.:     He swept through the continent.   I used "swept" because when you sweep the floor, nothing stops you and everything is swept away, similar to the example. However, the dictionary definitions don't match up, so that isn't the word either.  Any suggestions? One of the mysteries that my numerics class left me with are "stiff systems". Our prof didn't really manage to explain what they are. Now that the class (and the test) are over, I'm still curious.   The most concise definition about "stiff systems" I've found so far is: "There is no universally accepted definition of stiffness". So, if there is none, I don't expect one.   I'd be thankful about information on both of the following points:   From what kind of (real-world) problems do stiff systems arise? What's so "stiff" about them? What's the good thing - or the bad thing - that I'd worry about when I have to numerically solve such a real-world problem? What is Snell's law's main formula? My book states it as $(\sin i)/(\sin r)=n$. However, University Physics has a different say.  It says, $n_{a} \sin a =n_{b} \sin b$. Which of the following is correct? $$\lim _{x \rightarrow 0} \left(\frac{ \sin x}{x}\right)^{1/x}$$  I have spent an hour on the above limit and have no work to show. I tried using L'Hopital's Rule, but just kept going around in circles. Any help would be appreciated. Thank you. What happened to the Dursleys? As last seen, the Dursleys are forced to move by the ministry of magic, put into protective custody by the ministry. However, the ministry fell only a few weeks later, and there was evidence that it couldn't be trusted, even then. Are they still alive, and if so, how did they survive the purge from the ministry? Does Stack Exchange have an Economics section? Determinant of a block lower triangular matrix I'm trying to prove the following: Let $A$ be a  $k\times k$ matrix, let $D$ have size $n\times n$, and $C$ have size $n\times k$. Then,  $$\det\left(\begin{array}{cc} A&amp;0\\ C&amp;D \end{array}\right) = \det(A)\det(D).$$  Can I just say that $AD - 0C = AD$, and I'm done? 2015 Macbook Air screen gradually dimming and dying This is not a problem at booting up. For a couple months now I'll be using my laptop when suddenly the screen dims to about 50% of normal. According to the brightness indicator the brightness is all the way up; I can make it dimmer, but not as bright as normal. The dimming isn't super even either, there are small areas of the screen that seem darker/brighter. In the past the problem easily goes away if I close the lid and reopen it... but now it's happening a lot and sometimes going completely black. Is this an easy/cheap fix? I'm traveling and can't do it myself. Is it worth bringing to the Mac store?  Thanks! Why doesn't the Moon fall onto the Earth? Why doesn't the Moon fall onto the Earth? For that matter, why doesn't anything rotating a larger body ever fall onto the larger body? How do I set a monitor resolution that is not available in the Display Settings dialog? I have created a VF page and used "render as pdf"  &lt;apex:commandButton value="Save to Opportunity" action="{!savePdf}"  /&gt;   Its working fine when i am using above line without rerender and oncomplete but when i am adding rerender or oncomplete it is not working.I am able to save the PDF in attachment folder but when i am trying to open its showing  "Unable to load document"  Even if i remove oncomplete and use Rerender then also its saving the attachment in Attachment object and when i view ,it is not loading and says "Unable to load document"      &lt;apex:commandButton value="Save to Opportunity" action="{!savePdf}"  oncomplete="myClose();"/&gt;   Javascript Code  function myClose(){      self.close();     window.opener.location.href="/{!$CurrentPage.parameters.Id}";  }   Class Code  public void savePdf() {      PageReference pdf = Page.GenerateQuotePDF;     pdf.getParameters().put('id',parentId);      Attachment attach = new Attachment();      Blob body;     body = pdf.getContent();     attach.Body = body;     attach.Name = 'Opportunity'+ '.pdf';       attach.IsPrivate = false;     attach.ParentId = parentId;     attach.ContentType = 'application/pdf';     insert attach;     }     Please help.. 3 more votes from other users are needed to close this question.   This is the message I got hovering the mouse over close voting tab.   I wonder can we begin any sentence with a numeric value? Is it good practice? A woman's butt was allegedly touched by a man several times during a commute on the MRT.   How to use butt, bottom, buttock and ass? I am confusing with these words. In an older question from June 2011, , apparently revived by the system, a user is asking about the origin of the rotation of celestial bodies.  The  (with 17 votes) states the following:     When things collapse under their own gravity in space (i.e. clouds of gas and dust), any small amount of asymmetry in the collapse will be enough start it spinning.   And then it goes on saying:     Even if it spins by a tiny amount, as it collapses, angular momentum     conservation will mean it spins more and more quickly.   Is all this really correct?  I could try to ask in a comment to the answer. I actually did. But the author is no longer registered.  Hence I am asking it as a question.  But that is not the end of the story. As I was about to ask my question, I looked for other relevant questions, and there are some. I did not make an exaustive survey, but I did not find one that had satisfactory answers:    (december 2011) has just one accepted answer (0 votes) stating essentially that the solar system has angular momentum because it started from a cloud that had angular momentum. No comment.  (july 2011) is questionning about everything from galaxies to electrons. The answers are of a much higher quality, but while they seem to justify the possiblility of spin and angular momentum (and its conservation), there are not clear on how it appears, at least for celestial bodies.  (june 2013): That was my own very naive first question on this site. It is related but does not directly address spin.   One answer I found is that momentum appear from bodies in relative motion past each other. Nice, but not really an answer: where did they get their relative speed to begin with. Unfortunately the answer is: from the angular momentum of larger structures they belong to (well, it can be more comples). So this is just chicken and egg explanation. But how did it get started?  Note that my question is not a duplicate, since it is primarily whether the above statements are correct, which is not considered in these other questions.  Furthermore, these questions are fairly old, and given that none had received answers that seem to answer the question of the origine of existence of celestial angular momentum (not in a way I can understand anyway), it may be appropriate to attempt restarting the process, with the above discussion to motivate that an answer should explain the physical mechanism that started the existence of spin of celestial bodies.