Sometimes you open a lengthy question, read through it and then discover "Closed as ..." at the bottom (sometimes only after scrolling) - oops, not something you can answer. Wouldn't it make more sense to display that message before the actual question? Or maybe even in both locations? That's really important information.  Edit: Looks like my concern would be solved by , thanks to Tim Stone for pointing that out.
For example:   For an MVC architecture, should I prefer Ruby on Rails or PHP [closed] Gmail: What is a jQuery selector for incoming mail senders only? How to work with highly compressed and nested CSS in general? [closed]   Better to convert to   [closed] For an MVC architecture, should I prefer Ruby on Rails or PHP [closed] Gmail: What is a jQuery selector for incoming mail senders only? How to work with highly compressed and nested CSS in general?   I should first read the title and sometimes open the question to understand if the question is closed.  I think the [closed] mark  should be at the beginning of the title, not in the end, where I won't ever be if the title is long.  Also coloring will be a good improvement (via @Shadow Wizard).
How can I communicate with a Unix domain socket via the shell on Debian Squeeze? I’m running a Debian Squeeze web server. I’ve installed memcached on it, and configured memcached to listen on a Unix domain socket (at /tmp/memcached.sock), as it only needs to receive messages from the website, which lives on the same server.  It seems to be working fine, but I’d also like to communicate with memcached via the shell, to check that it’s doing what I think it’s doing.  memcached accepts messages via a simple ASCII protocol (if I understand correctly). If it was listening on TCP/IP, I could send messages to it via e.g. nc:  $ echo "stats settings" | nc localhost 11211   But I can’t figure out how to send that text to the domain socket instead.  On my laptop (which runs OS X Lion), both nc and telnet have options (-U and -u respectively) to use domain sockets. However, on my Debian Squeeze web server, these options aren’t present. I want to repeatedly execute a function in Python every 60 seconds forever (just like an  in Objective C). This code will run as a daemon and is effectively like calling the python script every minute using a cron, but without requiring that to be set up by the user.  In , the solution appears to effectively just  for x seconds. I don't need such advanced functionality so perhaps something like this would work  while True:     # Code executed here     time.sleep(60)   Are there any foreseeable problems with this code? Deleting files older than 30 days based on filename as date If I have a folder of files with their filenames as the date they were created:  2019_04_30.txt 2019_04_15.txt 2019_04_10.txt 2019_02_20.txt 2019_01_05.txt   How would I compare the files names against todays current date  $ date "+%Y_%m_%d" &gt;&gt;&gt; 2019_04_30   If the file names date is greater than 30 days then delete it. I would expect to end up with  2019_04_30.txt 2019_04_15.txt 2019_04_10.txt   I don't have to follow this naming convention, I could use a more suitable date format. After seeing a question regarding the acquisition of Data's cat Spot, the point was brought up that Data's  midway through the series.  My question is, how? I have thought up two possibilities (see below to my own answer) but I'm wondering if there aren't possibly others that might fit better. Exhibit A- Spot the Younger  Exhibit B- Spot the Older How to design partitions for SSHD? I'm going to install Linux on Lenovo B5400, which contains:   500GB Hybrid SSHD with a 8 GB SSD and 500 GB HDD   Designing partitions for my 2 Linux distros was quite easy before, when I had only HDD. I always had:   10GB for Linux distro (mounted as "/") 10GB for another distro (again "/"; for another distro; for testing purposes or to assure continuity when switching distros) 2GB for swap (used for both distros; no need to separate) 300GB+ for "/home" (used for both distros; different usernames eliminates possible conflicts)   It's simple, isn't it? I would like to keep this approach, but I know that SSD has its own specificity - it prefers to be read, continuous writing may affect its life span. I don't want to kill SSD in a year, so I would like to move some system partitions to HDD in order to protect SSD. As far as I know /tmp is one of often read&amp;written locations. How much space it needs? What else should be placed on HDD?  Or: how to design partitions to achieve exactly the same effect and to keep SSD as safe as possible?  I'd be grateful for your help. Checking if a double (or float) is NaN in C++ Searching by user id in Android app only shows questions, no answers I have a Samsung Galaxy S3. Android version 4.3  I downloaded the official StackExchange app today. I am not able to view post related to android tag from my profile. I tried refreshing also  Snap     Edit:  However i am able to see one post for the relevant from the drop down list    Edit 2:  I tried what Steven V suggested. However it's the same.    I tried for a different user its the same. Validate/verify PDF files integrity is piped ls the same as ls -1? ls returns output in several columns, whereas ls|cat returns byte-identical output with ls -1 for directories I've tried. Still I see ls -1 piped in answers, like ls -1|wc -l. Is there ever a reason to prefer ls -1? Why does ...|cat change the output of ls? Do we have to tune the number of trees in a random forest? How quickly is the desired state of curl of the Electric Field around a point achieved where a Magnetic Field Vector has just begun changing? My question and context with explanation are given below. Thank you in advance.   Faraday’s Law () states that a time-changing magnetic field vector induces a curl of the Electric field around that point. However it does not specify how quickly the necessary spatial gradient is developed in the Electric Field to satisfy that curl. Of course, the Electric Field vectors around that point cannot just jump to the required values instantaneously in accompaniment as soon as the magnetic field starts changing at a fixed rate, since it is required that the Electric Field has a sensible rate of change to in turn induce a curl of the magnetic Field and continue the propagation of the wave. It would seem the exact rates at which the Electric and Magnetic Fields are changing is critical in the mechanism of an EM wave’s propagation. How would I then calculate the rate of change of E somewhere along the wave given I know the rate of change of the B vector that began it, and given the wave is restricted to one dimension for simplicity? There should after all be some delay in how the EM wave moves from point to point in space, seeing as it moves at the finite speed of causality (3*10^8 m/s), as shown in the first image:    Some of my ideas so far have been that perhaps the rate of change of E is determined such that it exactly cancels the growth of the time-changing E vector that gave rise to a curl of B before, which developed at such a rate to induce a curl of E, which demands this rate of change of E which I am talking about now. In this way the wave might level out the growth of the fields in its wake and spread the change further outwards, in the same way smoothening out a crease spreads it elsewhere. However I am stuck on how to show this rigorously.  I am open to any difficulty of maths, so long as the answer provides the explanation. Below are some diagrams to help visualize what I am talking about:    Faraday's Law requires that a curl of E is developed, which under these restrictions requires a spatial gradient of E to appear across that point. Since the field across that point was previously in some other state, it is required that the Electric Field vectors that are infinitesimally close to that point undergo a rate of change through time to achieve the desired state of curl. The question is, how quickly is this desired state of curl achieved? Do I add quotes around my thoughts? He staggered in, late as usual, his hair this way and his collar the other. His socks were as mismatched as were his principles. I thought to myself, here comes yet another disastrous sales meeting.  It seems to me too much to write :     I thought to myself 'Here comes yet another disastrous sales meeting'.   The Authorised Version deliberately did away with punctuated speech, retaining only the capital to indicate the beginning of a quote but leaving out quotation marks.  Can I therefore do the same in common writing, for my thoughts ?     I thought to myself, Here comes yet another disastrous sales meeting.   I cannot find another question on EL&amp;U which covers this. Some examples include:     We fear the damned.   He honored our fallen.   This is a given.   You are the chosen.   The lost were among us.   They obey the venerated.   My beloved kissed me. (TIL “beloved” is a verb thanks to RegDwight АΑA)   Is there a word to describe the past participle used as a noun? I’m hesitant to refer to it as a gerund, since it doesn’t end in -ing. Another possibility is adjectival noun, if you originally treat the word as a participle (e.g. “the damned man”) that has given up its modified noun.  Also, why does English tend to preface such nouns with the? How do I ensure that figures appear in the section they're associated with? Often floats may land quite a bit later in the document than the point they are created, sometimes after a section break.  Is there a way to force a new section to start on a new page, after any unplaced floats? Cat 5/6 in same conduit as power: is NM-B required, or is THHN acceptable? Preface: I'd like to avoid the question of whether one should run data and power together; my question is focused on Code compliance.  I'm trying to ensure I interpret Code correctly when running Cat 5/6 cabling and power together in the same conduit.  For starters, I understand that nothing in Code prohibits one from doing this; I'm trying to ensure I understand how to do it properly.  I'm wiring a basement office for power and data, and I'll be running the electrical in EMT.  My plan was to pull THHN for the power rather than pull NM-B, but then 800.133(2) Exception 1 made me scratch my head.  Is my understanding of the Article that if I want to run both data (Cat6) and power in the same conduit, that the power needs to be sheathed (i.e. NM-B).  Is it unacceptable to pull individual THHN conductors and the Cat6 together in the same conduit?     800.133 2) Other Applications. Communications wires and cables shall be separated at least 50 mm (2 in.) from conductors of any electric   light, power, Class 1, non–power-limited fire alarm, or medium-power   network-powered broadband communications circuits.      Exception No. 1: Where either (1) all of the conductors of the   electric light, power, Class 1, non–power-limited fire alarm, and   medium-power network-powered broadband communications circuits are in   a raceway or in metal-sheathed, metal-clad, nonmetallic-sheathed, Type   AC, or Type UF cables, or (2) all of the conductors of communications   circuits are encased in raceway. Why should I use the keyword "final" on a method parameter in Java? What do potential postdoc advisers seek in research statement letters? I am putting together my application for a postdoctoral position in theoretical condensed matter physics. The position is not a fellowship and is a regular postdoc position. If you have gone through the process of applying for such positions a number of times, or, even better, if you have reviewed such research statement letters, what are the main points that are sought/you seek in such letters? Specifically, should I put more emphasize on my PhD research to demonstrate my "depth of knowledge" on projects I have worked on (past research), or dwell more on things that I want/am capable to do (future research)? How useful is that rule and how many times we can use that in one game?  Under what conditions can the en passant rule be used?  How often does it come up and is it a good idea to use it? Could normal users have an easier way to flag for migration? How to increase the signal power of a wi-fi card? I use an atheros card that requires ath9k driver. Are there any tools that can be used to increase the signal power of the wi-fi card?