In my opinion, auto-conversion to community wiki status has a nasty habit of ruining great posts on Stack Overflow. You pose an interesting question, and people post a bunch of copycat answers hoping to catch a ride on the reputation train. You work to maintain an answer over time, and you're punished by having it expropriated by "community wiki."  As I understand it (and I may very well misunderstand it, since the whole feature has never made sense), community wiki is to encourage more collaboration on posts by lowering the reputation threshold for editing. However, the suggested edits feature provides a better mechanism for allowing low reputation users to contribute to existing posts.   I think community wiki is obsolete.  Could we have some data on how many edits on community wiki posts were made by users under the normal reputation requirement? How do those compare to the number of suggested edits?  There are still plenty of problems with auto-conversion to community wiki. I'd like to see it go away.
The FAQ says that Community Wiki works:     by transferring ownership of the post   from the original author to the   community. They make the post easier   to edit and maintain by a wider group   of users, but they do not contribute   to any user's reputation.   But using the new edit suggestion system, everyone can edit. It's no longer true that community wiki makes a post easier to edit.  Does community wiki still serve a function?    What are good examples of community wiki mode doing what it's supposed to do?
Explaining two-tailed tests I am looking for various ways of explaining to my students (in an elementary statistics course) what is a two tailed test, and how its P value is calculated.  How do you explain to your students the two- vs one- tailed test? How to save an alias of an eval $(other_comand) command I've been using docker for a while and there's a command I write each time I boot up my docker:  eval $(docker-machine env)   I know eval shouldn't be used unless necessary, but it's mentioned by the following:  docker-machine env outputs environment variables like this:  docker-machine env export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://&lt;some_ip&gt;:&lt;some_port&gt;" export DOCKER_CERT_PATH="/home/gableroux/.docker/machine/machines/default" export DOCKER_MACHINE_NAME="default" # Run this command to configure your shell:  # eval $(docker-machine env)   eval grabs these and load them in my current session.  Now what if I'd like to have an alias like this:  alias dockereval="eval $(docker-machine env)"   Syntax is good, but the problem is when a dotfile (let's say .zshrc as an example), well the content of the $() is evaluated when registering the alias when you source that file.  which dockereval   Results in  dockerenv: aliased to eval   I tried a few things like:  alias dockereval="docker-machine env | eval" alias dockereval="docker-machine env | /bin/bash" alias dockereval="eval `docker-machine env`"   but none did work. 2nd one is probably because it's running in a different session, 3rd does the same as $() I guess  Is there an other way to load these environment variables with an alias? I want to add a feature class within a Geodatabase to a map in ArcGIS Pro (1.4.1) using arcpy. I am converting some python code from ArcGIS Desktop to ArcGIS Pro.   This issue is very similar to:    and      However, instead of adding a feature class (or layer) to a map using the Python Window I am doing this from a  Script within a Toolbox. I have included a code snippet below.  lyrTest = r"C:\data\test.gdb\Layer1"  aprx = arcpy.mp.ArcGISProject("CURRENT") aprxMap = aprx.listMaps("MainMap")[0]  lyrFile = arcpy.mp.LayerFile(lyrTest) aprxMap.addLayer(lyrFile)   I get the following error message:  Traceback (most recent call last): File "C:\data\AddLayers.py", line 5, in &lt;module&gt;     aprxMap.addLayer(lyrTest) File "c:\users\user\appdata\local\programs\arcgis\pro\Resources\arcpy\arcpy\utils.py", line 191, in fn_ return fn(*args, **kw) File "c:\users\user\appdata\local\programs\arcgis\pro\Resources\arcpy\arcpy\_mp.py", line 1048, in addLayer return convertArcObjectToPythonObject(self._arc_object.addLayer(*gp_fixargs((add_layer_or_layerfile, add_position), True))) ValueError: C:\data\test.gdb\Layer1 Failed to execute (AddLayers). How can I identify what application is using a given file? Remember last selected items per page in global search Url decode UTF-8 in Python Google sheets split multi-line cell into new rows (+ duplicate surrounding row entries) Neg Binomial and the Jeffreys' Prior I'm trying to obtain the Jeffreys' prior for a negative binomial distribution. I can't see where I go wrong, so if someone could help point that out that would be appreciated.  Okay, so the situation is this: I am to compare the prior distributions obtained using a binomial and a negative binomial, where (in both cases) there are $n$ trials and $m$ successes. I get the right answer for the binomial case, but not for the negative binomial.   Let's call the Jeffreys' prior $\pi_J(\theta)$. Then,  $$ \pi_J(\theta)\propto [I(\theta)]^{1/2}. $$  Under the regularity conditions (fulfilled as we are dealing with the exponential family),  $$ I(\theta)=-E\left(\frac{\partial^2 \log L(\theta|x)}{\partial \theta^2}\right) $$ where for the negative binomial $n$ is $x$ in the above expression (the total number of successes $m$ is fixed, $n$ is not). The distribution --I think-- is  $$ p(m|\theta)\propto\theta^m(1-\theta)^{n-m} $$ since $\theta$ is defined as the probability of success and $m$ is the number of successes. This is also the likelihood, since $m$ is a scalar and not a vector. Hence,  $$ L(\theta|n)\propto\theta^m(1-\theta)^{n-m}\\ \log L(\theta|n)=m\log\theta +(n-m)\log (1-\theta)\\ \frac{\partial\log L(\theta|n)}{\partial \theta}=\frac{m}{\theta}-\frac{n-m}{1-\theta}\\ \frac{\partial^2\log L(\theta|n)}{\partial \theta^2}=-\frac{m}{\theta^2}-\frac{n-m}{(1-\theta)^2} $$ so the Fisher information is  $$ I(\theta)=-E\left(\frac{\partial^2\log L(\theta|n)}{\partial \theta^2}\right)=\frac{m}{\theta^2}+\frac{E(n)-m}{(1-\theta)^2}=\frac{m}{\theta^2}+\frac{\frac{m\theta}{1-\theta}-m}{(1-\theta)^2}\\ =\frac{m(1-\theta)^2+\frac{m\theta^3}{(1-\theta)}-m\theta^2}{\theta^2(1-\theta)^2}=\frac{m(1-2\theta)+\frac{m\theta^3}{(1-\theta)}}{\theta^2(1-\theta)^2}\\ =\frac{m(1-2\theta)(1-\theta)+m\theta^3}{\theta^2(1-\theta)^3}=\frac{m(1-3\theta+2\theta^2+\theta^3)}{\theta^2(1-\theta)^3}\\ \propto\frac{1-3\theta+2\theta^2+\theta^3}{\theta^2(1-\theta)^3} $$  This, however, does not give me the correct answer. The correct answer is  $$ \pi_J(\theta)\propto \frac{1}{\theta(1-\theta)^{1/2}} $$ which means that the Information I get should be   $$ I(\theta)=\frac{1}{\theta^2(1-\theta)} $$ since the prior should be proportional to the square root of the information.   Can anyone find any mistakes? I wouldn't be surprised if I screwed something up with the set up of the distribution (successes vs failures with their respective probabilities, etc).   I used the expected value from  and I know the correct answer from . How to split strings into text and number? I'd like to split strings like these  'foofo21' 'bar432' 'foobar12345'   into  ['foofo', '21'] ['bar', '432'] ['foobar', '12345']   Does somebody know an easy and simple way to do this in python? Every Christmas, Harry receives a mediocre gift from the Dursleys. In Harry Potter and the Chamber of Secrets he gets a toothpick.     At that moment, Hedwig swooped into the room, carrying a very small package in her beak.     “Hello,” said Harry happily as she landed on his bed. “Are you speaking to me again?”     She nibbled his ear in an affectionate sort of way, which was a far better present than the one that    she had brought him, which turned out to be from the Dursleys. They had sent Harry a toothpick    and a note telling him to find out whether he’d be able to stay at Hogwarts for the summer    vacation, too.    They hate owls, but obviously use them to contact Harry at school? How is my laptop ram running in dual channel? How to distinguish between gold, silver, and bronze tag badges on SEDE? How can I distinguish between the levels of , say , querying ? For example, Mr. Jon Skeet has all the gold, silver and bronze badges for LINQ, so the query select * from Badges b with (nolock) where     b.Name = 'linq' and b.UserId = 22656  returns 3, with no distinction between them. Is it possible to include such information into the dump, for example, keep a unique badge ID (40 for the gold  badge)? Given $f(x) = x + |x|$ for what values of $x$ is $f$ differentiable Update Eclipse with Android development tools v. 23 Auto reply to text and/or iMessage? Is it possible to set up an auto-reply to an incoming text or iMessage, either on my iPhone (or the connected Message app on my Mac)?  Ideally I'd like to customize this depending upon the sender. Probability that the sum of 6 dice rolls is even If apostrophe + s is the acceptable way of denoting a genitive in English, is it possible that possessive pronouns, such as hers, ours and yours, started life as possessive adjectives with apostrophe + s?  E.g. her's, our's, your's, their's? Perhaps, even his' ? Its and my obviously stick out from this tempting pattern.  Is there any evidence that this might be the case, or is the 's completely unrelated? Adding shapefile or feature class as layer in ArcMap using ArcPy I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shapefile to the current map. (And then do stuff to it, but that's another story).  The best I can do so far is to add a layer file to the current map, using the following ("addLayer" is a layer file object):  def AddLayerFromLayerFile(addLayer):  import arcpy  mxd = arcpy.mapping.MapDocument("CURRENT")  df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]  arcpy.mapping.AddLayer(df, addLayer, "AUTO_ARRANGE")  arcpy.RefreshActiveView()  arcpy.RefreshTOC()  del mxd, df, addLayer   However, my raw data is always going be shapefiles, so I need to be able to open them. (Equivalently: convert a shapefile to a layer file without opening it, but I'd prefer not to do that). I would like the user to have full rights on this folder (as well as all sub-directories and files in it):  ~/.blabla   currently owned by root.  I have found numerous posts (in this forum and elsewhere) on how to do this for files but I can't find a way to do it for whole folders. How do Idle games progress while not active?