Sequence not working as expected
Splicing a list of arguments into a function with Sequence
With the enthusiastic question of "Who wants ice-cream?", what is the more correct response?         (Not) I.   (Not) me.      Neither response is a sentence. The first response of "(not) I" sounds stuffy, like it should be followed with an indignant sniff. The second sounds like American idiom and acceptable for casual speech.    What do you say? What defines a PC's consciousness of self, memories and knowledge? Every irreducible Polynomial is primitive or irreducible constant Using ECDSA keys for encryption I know that ECDSA is used for signature only, but I wonder if I can use the public/private Elliptic Curve keys for encryption too.  I have ECDSA SSH public keys and I wonder if I can use them to encrypt data that only the matching machine could decrypt, writing the proper software.  Pointers welcomed. Editing network interfaces without system rebooting I'd like to make some changes to my networking configuration by editing my /etc/network/interfaces file. What's the cleanest way to make changes to this file and have them take effect, without having to reboot? Typically, I've been doing:   Edit the file service networking restart   But I have the impression that this isn't the "right" way to make these kinds of changes. Eigenvalues of symmetric matrices are real without (!) complex numbers Is there any proof of the fact that the eigenvalues of symmetric matrices (i.e. $A\in\mathbb{R}^{n\times n}$ with $A^t=A$) are real without the use of the concept of complex numbers? How can I make a more realistic glass shader? Here's a sample scene:  A room with a window, a point light to project light into the room, an HDR environment outside the room and a nice Image by Rembrandt that should be somewhat reflected on the glass:    Using a standard glass shader on the window, the direct light from the lamp does not shine into the room, regardless of how bright that light is. So I can't recreate the impression of hard day light, with clearly defined areas of light and shadow.    Adding a transparent shader to the glass shader I get a very pleasing result. The light from the lamp illuminates into the room creating defined shadows, transparency seems unaffected, to see the HDR in the background, the refection seem correct to me (I also like how I get double reflections from the thick glass).    Even though I am quite happy with this solution, I've gotten a few comments on making a setup with light path nodes controlling the mix of transparent and glass. The biggest issue is that the reflections on the glass are brighter than what they should be.  So the question is: By using this approach am I messing up any of the qualities of glass? And if so, what would make a proper glass shader that is realistic, in terms of letting direct light through, while keeping reflections, refraction and transparency?  A file to play with:    The HDR image used was created by Executing .bat file The link button in the post editor incorrectly escapes square brackets in inline code.  To reproduce:   Write the following MarkDown in the editor  text text `function[]` text text  Select `function[]`, press the link button (), and enter some link the result will be [`function\[\]`][1] which renders as function\[\]   This comes up very often in   when I'm linking to the documentation because the usual way to indicate that a symbol is a function in Mathematica is adding [] after it.  This is a minor thing, as it's easy to manually remove the backslashes, but it's somewhat annoying so I thought I'd mention it.    Edit by Mr.Wizard It is September 2013 and this still hasn't been fixed.  While "adding [] after it" is not presently the custom on Mathematica.SE this is still a bug and still needs to be fixed. 'was' versus 'had been' When I asked the driver/ to come with me to the temple/ he had been reluctant./ No error.   I think instead of 'had been', there should be 'was'. Even the answer key points that the error is in the 'he had been reluctant' part. But I am not sure why exactly is 'had been' wrong.  If we replace the first part with 'when I had asked the driver', would that make 'had been' in the third part correct? Can I fetch the value of a non-standard CSS property via Javascript? I am trying to read a custom (non-standard) CSS property, set in a stylesheet (not the inline style attribute) and get its value. Take this CSS for example:  #someElement {   foo: 'bar'; }   I have managed to get its value with the currentStyle property in IE7:  var element = document.getElementById('someElement'); var val = element.currentStyle.foo;   But currentStyle is MS-specific. So I tried getComputedStyle() in Firefox 3 and Safari 3:  var val = getComputedStyle(element,null).foo;   ...and it returns undefined. Does anyone know a cross-browser way of retreiving a custom CSS property value?  (As you might have noticed, this isn't valid CSS. But it should work as long as the value follows the correct syntax. A better property name would be "-myNameSpace-foo" or something.) How do I use Drush 8 site aliases in Drush 9? Pointing the camera in a particular direction programmatically I'm trying to use Python to place a camera. I know the camera's location, and the forward and up vectors for the camera (i.e. the direction it's pointing and its orientation). How do I do this?  I know that it's possible to calculate a raw world matrix from the above information, which I can then apply to the camera, but I was rather hoping not to have to. Is there an easier way? How do malloc() and free() work? What does the , operator do in C? Capturing SOAP requests to an ASP.NET ASMX web service Creating a gradient-based legend I have a map with graduated symbology, with 328 unique values. I would like to add a legend to my map (as in the picture), illustrating that light blue indicates low values and dark blue high values.  I have done this in ArcGIS before. Is there a way to do this in QGIS as well? Automatically Locate Included Images Do you think it's possible to include images into LaTeX without specifying the exact path to them. So instead of:  \includegraphics{path/to/image/myfig.pdf}   It would be:  \includegraphics{myfig.pdf}   While the image would still reside in the path/to/image/ directory. Basically, I'm asking if there is a macro that can recursively search for the image.  An alternative for me is to write a script outside of LaTeX that determines all the images that are included, performs the recursive search and copies those files temporarily in the same directory as the .tex file. Intraclass correlation coefficient vs. F-test (one-way ANOVA)? As the title says, how can I make this shape without resorting to a Boolean operation?    This is obviously a very simple example, but I find myself needing to do something like this relatively often when modelling.  Despite using Blender for a couple of years, and considering myself an intermediate to possibly advanced user, I still know of no easy way to make this kind of indentation in an object.  Obviously, if you are looking to make an indentation in the middle of the surface, you can simply select a face and extrude down. As you will know, this does not work at the edge of the surface.  I can create this shape using loop cuts, deleting the faces and then using snap to edge to extrude the edges down to the same level (and then filling in the faces), but it feels cumbersome and a lot of work for what feels like it should be very simple.