Why has ls never had a parsable option implemented?
Is there a reason why ls does not have a --zero or -0 option
How to know what program is listening on a given port? I suspect a program is listening on port 8000 on my machine.  When I run the following command, I get this error:  &gt; python -m SimpleHTTPServer # Lots of python error socket.error: [Errno 98] Address already in use   If I use another port (8000 is the default), the web server runs fine.  If I run wget localhost:8000 from the command line, it returns 404 Not Found.  What can I do (or what tools are available) to find what program is listening on port 8000, and from there where that program is configured? In C# check that filename is *possibly* valid (not that it exists) Is there a method in the System.IO namespace that checks the validity of a filename?  For example, C:\foo\bar would validate and :"~-* would not  Or a little trickier, X:\foo\bar would validate is there is an X: drive on the system, but wouldn't otherwise.  I suppose I could write such a method myself, but I'm more interested in a built-in one. I took some shots recently and I noticed that I'm getting a lot of little black dots in my images.  I cleaned my lens thoroughly with the Nikon camelhair brush and retook the pictures but once again, the dots appear.  I'm shooting with a Nikon D7000 and using a starter lens. I've attached an example (notice the black spots on the chairs, on the ceiling, etc). Bonferroni adjustment in SPSS - what does it do? My prisoners wont move from the holding to cell to the actual cell I have a cell block with 25 cells but none of my prisoners will move there from the holding cell. I have working power and water beds and toilets they are separate from each other it has all the requirements why wont it work? Any ideas? Since  from other SE sites and is not thought to point out a lack of quality or helpfulness, but only to express agreement or disagreement, I'm wondering why downvoted answers here on meta are shown semi-transparent.  Shouldn't they be non-transparent then (like upvoted answers)?  Or am I missing something? How to change specific values in a List How do I trim a string in JavaScript? That is, how do I remove all whitespace from the beginning and the end of the string in JavaScript? Can I run out of disk space by creating a very large number of empty files? It is well-known that empty text files have zero bytes:    However, each of them contains , which according to my research, is stored in , and do use space.   Given this, it seems logical to me that it is possible to fill a disk by purely creating empty text files. Is this correct? If so, how many empty text files would I need to fill in a disk of, say, 1GB?    To do some checks, I run df -i but this apparently shows the % of inodes being used(?) rather than how much they weigh.  Filesystem             Inodes  IUsed    IFree IUse% Mounted on udev                   947470    556   946914    1% /dev tmpfs                  952593    805   951788    1% /run /dev/sda2            28786688 667980 28118708    3% / tmpfs                  952593     25   952568    1% /dev/shm tmpfs                  952593      5   952588    1% /run/lock tmpfs                  952593     16   952577    1% /sys/fs/cgroup /dev/sda1                   0      0        0     - /boot/efi tmpfs                  952593     25   952568    1% /run/user/1000 /home/lucho/.Private 28786688 667980 28118708    3% /home/lucho What is the "N+1 selects problem" in ORM (Object-Relational Mapping)? The "N+1 selects problem" is generally stated as a problem in Object-Relational mapping (ORM) discussions, and I understand that it has something to do with having to make a lot of database queries for something that seems simple in the object world.  Does anybody have a more detailed explanation of the problem? When we find the electric field between the plates of a parallel plate capacitor we assume that the electric field from both plates is $${\bf E}=\frac{\sigma}{2\epsilon_0}\hat{n.}$$ The factor of two in the denominator comes from the fact that there is a surface charge density on both sides of the (very thin) plates. This result can be obtained easily for each plate. Therefore when we put them together the net field between the plates is $${\bf E}=\frac{\sigma}{\epsilon_0}\hat{n}$$ and zero everywhere else. Here, $\sigma$ is the surface charge density on a single side of the plate, or $Q/2A$, since half the charge will be on each side.   But in a real capacitor the plates are conducting, and the surface charge density will change on each plate when the other plate is brought closer to it. That is, in the limit that the two plates get brought closer together, all of the charge of each plate must be on a single side. If we let $d$ denote the distance between the plates, then we must have $$\lim_{d \rightarrow 0}{\bf E}=\frac{2\sigma}{\epsilon_0}\hat{n}$$ which disagrees with the above equation. Where is the mistake in this reasoning?  Or more likely, do our textbook authors commonly assume that we are in this limit, and that this is why the conductor behaves like a perfectly thin charged sheet? Request Web Page in c# spoofing the Host I need to create a request for a web page delivered to our web sites, but I need to be able to set the host header information too.  I have tried this using HttpWebRequest, but the Header information is read only (Or at least the Host part of it is).  I need to do this because we want to perform the initial request for a page before the user can.  We have 10 web server which are load balanced, so we need to request the file from each of the web servers.    I have tried the following:  HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://192.168.1.5/filename.htm"); request.Headers.Set("Host", "www.mywebsite.com"); WebResponse response = request.GetResponse();   Obviously this does not work, as I can't update the header, and I don't know if this is indeed the right way to do it. I have noticed that guest quarters on the Enterprise D have fruit bowls on their tables.  A prominent instance is the fruit bowl in Berlinghoff Rasmussen's quarters in "".  The first thing that Rasmussen does when Data takes him to his guest quarters is take a piece of fruit and shove it in his pocket.  Who replicates fruit for these fruit bowls before guests arrive?  More generally, who removes unused fruit and tidies quarters after guests leave?  Is there a ship hospitality staff, perhaps including Guinan's wait staff in Ten Forward? I think some good words would be conflicted, or confused. As an example of context, think of someone who believes in freedom of speech, but, at the same time, they would support banning comedians who make jokes about certain issues that person cares about. When I get an idea for something I'd like to make in Blender, I hit up Google for specifics, then blender SE when I get stuck.   I'm very overwhelmed by the immensity of Blender and I'm a little afraid that this self-directed approach is going to lead me to develop bad habits. Is there a "best practice" way of learning to use Blender? I'm an Indian. I'm planning to book a journey from Mumbai to Johannesburg, South Africa and back (conference visa). I looked at refundable tickets, while they are priced higher, they give you half your money back, for instance if the to and fro flight costs INR 40,000 they give you INR 20,000 . But this is if you are cancelling for some reason.   What if you have to cancel because your visa application or the transit visa application got rejected. As far as I understand the procedure is :-  a. Buy airline tickets   b. Apply for Visa   c. Wait between 1-6 weeks to get update about your visa application, for both visa and transit visa (although transit visa should be shorter I guess.)  d. If visa is granted then move on to planning other things about the trip.   Now in case, if the visa application fails (for whatever reason ) what recourse does the traveler have ?  Are there any airlines who are better understanding than others about this situation ?  In non-refundable tickets, I guess that all is lost or is there some way to save money there too.   Lastly, I read travel insurance can help in this case. How does travel insurance help in the above scenario ?  Edit :- One of the pre-conditions of getting the visa is   Proof of a Valid Return or onward ticket or purchase of ticket. This is from   and All Stack Exchange data dumps How can I find a saved Wi-Fi password? I have an Android phone which is connected to a secured Wi-Fi hotspot.  How can I find out the password of the hotspot from the phone? Propagate all arguments in a bash shell script JavaScript curry: what are the practical applications? I don’t think I’ve grokked currying yet. I understand what it does, and how to do it. I just can’t think of a situation I would use it.  Where are you using currying in JavaScript (or where are the main libraries using it)? DOM manipulation or general application development examples welcome.   mentions animation. Functions like slideUp, fadeIn take an element as an arguments and are normally a curried function returning the high order function with the default “animation function” built-in. Why is that better than just applying the higher-up function with some defaults?  Are there any drawbacks to using it?  As requested here are some good resources on JavaScript currying:    Crockford, Douglas (2008) JavaScript: The Good Parts  (Takes a detour into ML so skip the whole section from “A crash course in ML” and start again at “How to write curried JavaScript”)    (Mr. Resig on the money as per usual)    I’ll add more as they crop up in the comments.    So, according to the answers, currying and partial application in general are convenience techniques.  If you are frequently “refining” a high-level function by calling it with same configuration, you can curry (or use Resig’s partial) the higher-level function to create simple, concise helper methods.