How to visit older files first in a directory in java
Get files in a directory sorted by last modified?
We currently have some indexes where ALLOW_PAGELOCKS is set to off. This presumably was done in order to reduce deadlocks. However I doubt that it would really had an effect back then.   Now I am trying to understand WHEN SQL Server actually chooses to start locking pages rather than keys in a clustered index. I asked Jonathan Keyhaisas recently and he told me that this could happen if I am touching rows on several subsequent pages. However I didn't manage to get any exclusive page locks by updating rows in a clustered index with a sample query.   Could you help me understand page locks better with a sample query and table? I am running SQL Server 2008 SP4.  Thanks in advance  Martin Usage in sentence:  Person A: Ooh - look at that crow!  Person B: Well, actually, as someone who is a scientist who studies crows, I am telling you, specifically, in science, no one calls jackdaws crows. They're not the same thing. If you're saying "crow family" you're referring to the taxonomic grouping of Corvidae, which includes things from nutcrackers to blue jays to ravens. It's not one or the other, that's not how taxonomy works.  Person A: Are you always such an XXX?   "Pedant" is close, but not quite.  It would be a mix of "know-it-all", "condescending" and "arrogant". In the 3rd and 4th editions of D&amp;D, there were explicit rules for determining if a character knew anything about a monster before them.  In 3rd edition, for example, use of the  skill with a general DC of 10 + the monster's HD allowed for determining one fact, plus one fact per 5 points over the check.  Looking at the Intelligence section of the 5e PHB, I don't see any similar notation.  Does 5e provide any guidance as to when a player could use their out-of-game knowledge about a monster, or when the player might be told things their character would probably know in-game? Goofy looking alien robots lose a "Kleptonite Ball" towed behind their spacecraft How do you improve Drupal performance? Drupal is fast at develop, but the performance is so poor.  It is hard to reach 50 request per second.  And there are so many SQL queries in a simple web page.  If you test the request time of a form submit in Drupal.org it will always take seconds to finish.  How do you improve the speed of your web site? Should training data in each batch size be resample only one time or at each epoch when using mini-batch I saw some related question regarding to the fact is one should use sampling with resampling or without when using minibatch.  However my question is different.  Let's assume that I use sampling witouth replacement. Meaning that for each epoch one training example can only belong one 'batch size' group.  I want to know if one should only resample the training data (into the different batch size) only 1 time or before to start to update the parameters before each epoch.  For instance suppose I have 20 'batch size' group. Suppose at the first iteration I have sampled picture A in group 2 and picture B in group 4.  If so should picture A always stay in group 2 and picture B in group 4. Or should I resample it before to start a new epoch (e.g. at epoch 2 put picture B in group 6 and picture B in group 20). Why do we say that the Earth moves around the Sun? In history we are taught that the Catholic Church was wrong, because the Sun does not move around the Earth, instead the Earth moves around the Sun.  But then in physics we learn that movement is relative, and it depends on the reference point that we choose.  Wouldn't the Sun (and the whole universe) move around the Earth if I place my reference point on Earth?  Was movement considered absolute in physics back then? Does it make sense to say, "The speed of light varies?"  Some may say right off the bat "Yes, it changes as a wave passes through a different medium."  However, I'd like to say no, because when I hear someone say the speed of light, I always think of the constant $c$ (unless the medium is specified to not be a vacuum, but then it isn't $c$ anymore), not the speed of a particular wave.  To me, it makes more sense to say something like, "The speed of a particular wave varies." What is the correct way to state this in the professional world? And in general, when professional physicists say "the speed of light," are they referring to the constant or the actual speed of the wave? I haven't seen this behavior out in the wild much, but it happened again recently and I was wondering if a flag could be automatically raised when this happens:   User posts answer Answer is down voted User deletes answer User posts exact same text as a new answer User effectively ditched down votes   Got down voted again? Wash, rinse and repeat. Profit (perhaps after modifying the post, which is what you should have done to begin with)    I feel that this should raise a duplicate content flag, with slightly stronger wording. Would this be possible to implement? Or, perhaps, don't let users post new answers if they have a deleted answer to a question. Rather, force them to edit and restore the deleted answer instead, unless locked by a moderator.  I do have a link, but I don't want a lot of people to descend on it and create an even bigger disruption. It happened exactly as I described. Local colormaps in global coordinate system I am trying to get a surface graph with two colormaps.  Instead of using the full Z range i want to give the first surface its own colormap  and the second surface should receive its own colormap too (it may be even the same)... however the current version takes the full range of Z-Data and calculates the colormap. Is there any way?  \begin{tikzpicture}     \begin{axis}[grid = major, colormap={bw}{gray(0cm)=(0); gray(1cm)=(1)}, view={-30}{15}]   \addplot3[surf]    table     {DATA1.dat};   \addplot3[surf]    table     {DATA2.dat};  \end{axis} \end{tikzpicture}   Right now it looks like that:   I want each of the surface to be scaled individually... just to see more clearly how the amplitude changes :)  Any ideas?  Thanks, Alex I understand what a decibel is, the spirit of the question is different: why do we still use decibels (and with at least two different, context-specific definitions), if we have the feat of scientific notation? I dare to claim that the change of 5e-1 (which is a half) is much more readable than 3dB (voltage? power?). 1e6 is more clear than 120dB, etc. Just for the joy of adding? 3dB + 7dB is 10dB, but 2e5+3e6 is errrm... I see many new datasheets from the top vendors (LTC, for example) use the V/V convention, which is closer to the scientific notation than to the decibels. An upcoming paradigm change? I play D&amp;D 5e and sometimes come here with questions. But sometimes I see things referenced here as sources that I don't have or aren't aware of....  Which are the "official rules" for D&amp;D 5e, and where do I find them? Changing projection of shapefile in QGIS Deriving upper bound for derivative of analytical function $f$ is an analytical function on the unit disk $\mathbb{D}$ for which there is a $C &gt; 0$ such that  $\forall z \in \mathbb{D} \colon |f(z)| \leq \dfrac{C}{1-|z|}$.  I know have to prove that    $\forall z \in \mathbb{D} \colon |f'(z)| \leq \dfrac{4C}{(1-|z|)^2}$.  I tried using the Cauchy integral formula but I can't find a fitting circle to get this result. How can I permanently enable cheating? I'm giving Deus Ex a quick playthrough as a refresher before jumping into Human Revolution. In the interest of expediency, I've decided to cheat. ^.^  Normally, cheats must be re-enabled for each level when playing the original DX. I've encountered instructions on several sites (word-for-word identical instructions, so clearly copy/pasted) for permanently enabling cheats, but they aren't working for me:     Because you will need to redo this for every level, you can open up 'user.ini' and add 'bCheatsEnabled True' in the [DeusEx.DeusExGameInfo] section of the file to allow cheats to be activated forever.   Not only is that not working for me, it doesn't even look right compared to the rest of the file (space instead of =). With increasing desperation, I've tried adding that line (both verbatim and switching to an equal sign) to every section of both User.ini and DeusEx.ini which looks even remotely plausible — even creating a [DeusEx.JCDentonMale] section, just in case.  Does anyone know how to get this working? I'm running DX:GOTY version 1.112fm from Steam on Windows 7. Well, may be this is not really useful, but I've thought if it was possible to put all the document in one long page. I mean, if your document is going to be read in a computer, mix all the pages in a continuous page. If your document has 90 pages (A4), where each one is 21cm by 29.7cm the continuous document should be (more or less) one page which is 21cm by 90 · 29.7 = 2673cm. Is this possible? EDIT: Some things I would like to achieve:  The \newpage, \chapter{}, \part{}, etc. shouldn't go to a new page, they should only add more vertical space. The package pdfpages should add the pages continuously with almost no space between them. The titlepage, in this case, has a different color, so it could go alone in a basic A4 page (just to make things easier).  Question Is this possible? Want to delay startup of program but can't find it in Task Scheduler I'm trying to delay the startup of a specific program that loads at login. As per an answer in , I should be able to do it using Task Scheduler. The problem is, I can't find the program listed anywhere. Is there a particular pane I should be looking in? The program is Razer Synapse so I don't think it would be in the Microsoft or Western Digital folders.    If it's not in Task Scheduler, is there another way I can delay it at startup?  Out of curiosity how many ways are there for a program to be run at Startup in Windows? How can I install Skype on 32-bit Ubuntu 14.04? Extracting tree crown areas from remote sensing data (visual images and LiDAR) Regular Expression to split on spaces unless in quotes I would like to use the .Net Regex.Split method to split this input string into an array. It must split on whitespace unless it is enclosed in a quote.  Input:  Here is "my string"&nbsp;&nbsp;&nbsp;&nbsp;it has "six&nbsp;&nbsp;matches"  Expected output:   Here is my string it has six&nbsp;&nbsp;matches   What pattern do I need? Also do I need to specify any RegexOptions?