Detect if variable provides a function in template
Templated check for the existence of a class member function?
Inline suggested edit reviews are truncated in medium-width windows When reviewing a suggested edit inline (not from the queue) on a site with the new “responsive” design, at a window width where normal content does fit, the diff window is truncated on both sides, as is the edit window after cliking “Improve Edit” or “Reject and Edit”.    This is from  which happened to have a pending suggested edit at the time, after clicking the edit(1) button. Note how the scroll bar is all the way to the left, but there's content that vanishes to the left of the window. That's in Chrome 67.0.3396.87 on Linux at zoom level 100%, with a window width of 800.  Note that I'm not complaining that the user interface isn't responsive yet (although now that this has been deployed to SO I'd expect it to be), but that the interface is completely unusable even with scrolling. In sites with the old UI, you can see all the content even if it requires scrolling.  Reviews done from the suggested edit review queue are ok (not responsive, but you can see the content by scrolling). Inline edits are ok. The problem is specific to inline suggested edit reviews. 6-letter permutations in MISSISSIPPI How many 6-letter permutations can be formed using only the letters of the word, MISSISSIPPI? I understand the trivial case where there are no repeating letters in the word (for arranging smaller words) but I stumble when this isn't satisfied. I'm wondering if there's a simpler way to computing all the possible permutations, as an alternative to manually calculating all the possible 6-letter combinations and summing the corresponding permutations of each. In addition, is there a method to generalize the result based on any P number of letters in a set with repeating letters, to calculate the number of n-letter permutations?  Sorry if this question (or similar) has been asked before, but if it has, please link me to the relevant page. I also apologize if the explanation is unclear, or if I've incorrectly used any terminology (I'm only a high-school student.) If so, please comment. :-) For instance if me and my friend had a Pidgeot and we powered them all the way up. Could mine end up with like 525 and his at like 500? Showing the inequality $|\alpha + \beta|^p \leq 2^{p-1}(|\alpha|^p + |\beta|^p)$ I’ve run into a limitation in the cURL bindings for PHP. It appears there is no easy way to send the same multiple values for the same key for postfields. Most of the workarounds I have come across for this have involved creating the URL encoded post fields by hand tag=foo&amp;tag=bar&amp;tag=baz) instead of using the associative array version of CURLOPT_POSTFIELDS.  It seems like a pretty common thing to need to support so I feel like I must have missed something. Is this really the only way to handle multiple values for the same key?  While this workaround might be considered workable (if not really annoying), my main problem is that I need to be able to do multiple values for the same key and also support file upload. As far as I can tell, file upload more or less requires to use the associate arravy version of CURLOPT_POSTFIELDS. So I feel like I am stuck.  I have  about this problem in more detail on the cURL PHP mailing list in the hopes that someone there has some ideas about this.  Suggestions or hints on where I can look for more information on this are greatly appreciated! I have a collection of articles written in latex, and I would like to "merge" them into a larger thesis document, in which each article will be a chapter. I have been looking at include and input, which are great if you start with the meta-document in mind. However in my articles I have sometimes a bit exotic dependencies, such as dot2texi, and using the naive approach fails rather abysmally with all kinds of broken paths.  So I was wondering, do you recommend any "best practices" for merging non-trivial documents -- which packages to look at, or to avoid at all cost, etc.  Thanks "It looks straightforward, but actually it isn't" In , I asked about proof of statements which are simple but incorrect.   Here, I ask about statements which seems, at a first glance, straightforward, but if we try to write a proof, we can see it's much harder than it looked. So I expect the answers to contain:   the statement; why it looks easy to prove; why actually it isn't. Prove $\frac{|a+b|}{1+|a+b|}<\frac{|a|}{1+|a|}+\frac{|b|}{1+|b|}$. Prove that for every $a, b\in R\setminus\{0\}$ is correct this inequality:  $$\frac{|a+b|}{1+|a+b|}&lt;\frac{|a|}{1+|a|}+\frac{|b|}{1+|b|}.$$ How can I run blender from command line or a python script without opening a GUI? I'm interested in using Blender for producing images, 3d files, or calculating geometry on a server.  Can I make blender run a python script without opening a GUI?  If not, can I incorporate Blender's python API into my own python script without running a GUI? "Access denied" when trying to end a process on Windows 8 In JavaScript can I make a "click" event fire programmatically for a file input element? I'd like to make a click event fire on an &lt;input type="file"&gt; tag programmatically.  Just calling click() doesn't seem to do anything or at least it doesn't pop up a file selection dialog.  I've been experimenting with capturing events using listeners and redirecting the event, but I haven't been able to get that to actually perform the event like someone clicked on it. Can all circles of radius $1/n$ be packed in a unit disk, excluding the circle of radius $1/1$? This problem occurred to me when I came across a similar problem where the radii were taken over only the primes. That question was unanswered, but it seems to me infinitely many circles of radius $1/2, 1/3, 1/4...$ can fit into a unit disk. The area of all those circles would be $\pi \sum_2^\infty 1/n^2 = \pi^3/6 -\pi$, which is less than the area of the unit disk $\pi$. But can the circles actually be packed with no overlaps? Max Block Height for a Redstone Contraption What's the max height of blocks for a redstone contraption to still work even I'm in the surface below?  Like if I build a pillar to the max height of blocks and build a redstone contraption there, is it still going to work even I'm on the surface below? Making an elastic waistband on clothing? 2D Integration With Quadratic Arg. of Delta Function Java Server Socket not connecting How to simulate slow internet connections on the mac What's a good software solution to slow down internet connections on the mac for testing and simulations?  My primary need is when testing code in the iPhone / iOS simulator, so slowing down the connection for specific applications or processes would be great. Prove the divisibility test by $7,11,13$ for numbers more than six digits I consistently have more than one terminal open. Anywhere from two to ten, doing various bits and bobs. Now let's say I restart and open up another set of terminals. Some remember certain things, some forget.  I want a history that:   Remembers everything from every terminal Is instantly accessible from every terminal (eg if I ls in one, switch to another already-running terminal and then press up, ls shows up) Doesn't forget command if there are spaces at the front of the command.   Anything I can do to make bash work more like that? Finding Maximum value of consecutive positive integers with constraints Let, $x,y,z$ be consecutive positive integers such that $\frac{1}{x} + \frac{1}{y} + \frac{1}{z} &gt; \frac{1}{10}$ I need to find the maximum value of $x+y+z$ ?  My attempt:  I tried guessing first, To maximise $x+y+z$ it is necessary to have high value for $x$, But not too high which will contradict the constrain of the problem. As we can roughly split the $0.1$ into three parts so I started with numbers closer to $30$ with trial an error I got that for $x=29$ we get the optimum and final result would be 90 (=max. value of $x+y+z$).   Is there any way to arrive at this conclusion with using inequalities? Any hints will be appreciated...