Sometimes I want to make a minor edit to a text file (e.g., fix a typo), but I want to keep its modification time unchanged. (Motivation: modtime is useful for listing directories in chronological order, for telling when a file's content was last substantively updated, etc. I don't want a trivial edit to obliterate this information.)  This is certainly possible: Unix allows me to manually set the modtime to anything I want (this does set the ctime to the present, which is fine by me). E.g., with touch -t &lt;time&gt;, or with the utimes(2) system call. This question is about a simple way to edit a file and then set the modification time to exactly what it was before editing. I am mainly interested in solutions that are editor-agnostic, i.e., if emacs has a save-file-no-update-mtime command, that's interesting but not what I'm looking for.
For files within a specific folder, I would like vim to never touch "modified" timestamp at all.  The background is that I use  for blogging, which uses plain text files in ~/bloxsom as source of all articles.  The article date (and therefore order of appearence) is based on modification date of the text file. I don't want article pop up like if it's new whenever I just fix a typo. (I do lots of them... :D)  So far, vim changes timestamp and the original stamp is lost forever.  This is OK and I want to keep it that way for most of files on the system.  But I don't want that for the blog files - I can always touch the file if I need.  Any ideas on how to tweak vim into this behavior?
Extending the User model with custom fields in Django Goofy looking alien robots lose a "Kleptonite Ball" towed behind their spacecraft How to set identity_insert to on in SQL Server Filter data.frame rows by a logical condition External hard disk detection issue what exactly happened:  I have a Seagate 1 TB external hard disk.It was working fine till now.The problem started when I plugged it in my android phone and then back in my pc then simply it does not showup anywhere and :  It does not appear in file explorer   It does not appear in disk management   It is not listed in Diskpart command   It only appears in Device Manager under disk drives   It does not appear in BIOS  only makes sound when plugged and unplugged.  disk spins and light is also showing.   . What I already tried:   updated usb drivers.  used new cable also.  plugged in another pc  usb mass storage is also enabled in BIOS  no issue in any usb port  Anything else i can do? Is the 9-speed Sora crankset compatible with 105 11-speed chain? How do I stop the excel file being in use? I'm opening an Excel file and I'm getting the File in use pop-up that says it's locked for editing by me. However, I've not got it open on this computer (I think I had it open and my machine blue-screened). How do I go about fixing this?  Should specify, this is a file on a file share.  edit I'm not talking about if this is being used by another user on another machine, this is only accessible by me on this file share. Differences in meaning when the verb tense changes (headlines) What is the difference between the examples below?  Generally, in a newspaper, news is based on past tense (things which have already happened).   Then why are headlines written in ways that says: He Kills (shouldn't it be: He Killed)?  For example:  Parliament passes bill vs. Parliament passed bill  Also  He kills his friend vs. He killed his friend  Please help. Urdu language not listed in my ubuntu 16.04 LTS I am a new user of Ubuntu 16.04 LTS. To my surprise it does not have Urdu Language in language support widow. Kindly help.   The given answer to  is not helping me. Why was "An Update to our Community and an Apology" deleted? Recently, Sara Chipps posted her message . After reading it, I wanted to compare it with . It turns out that she deleted it. Does anyone know why? It looks strange since (as far as remember) it was a sort of official position of SE. Why would such a statement be deleted? Time complexity of nested for-loop I need to calculate the time complexity of the following code:  for (i = 1; i &lt;= n; i++) {   for(j = 1; j &lt;= i; j++)   {    // Some code   } }   Is it O(n^2)? Git for beginners: The definitive practical guide Ok, after seeing , I have decided to skip to the end and go with .  So what I need is a beginner's practical guide to Git.  "Beginner" being defined as someone who knows how to handle their compiler, understands to some level what a  is, and has touched source control without understanding it very well.  "Practical" being defined as this person doesn't want to get into great detail regarding what Git is doing in the background, and doesn't even care (or know) that it's distributed.  Your answers might hint at the possibilities, but try to aim for the beginner that wants to keep a 'main' repository on a 'server' which is backed up and secure, and treat their local repository as merely a 'client' resource.  So:  Installation/Setup    How do you set up Git?  Try to cover Linux, Windows, Mac, think 'client/server' mindset.         Working with the code          How do you handle binary files (visio docs, for instance, or compiler environments)? How do you merge files changed at the "same time"?    Tagging, branching, releases, baselines    How do you pull a particular 'release'?   How do you resolve conflicts and complete the merge? How do you merge parts of one branch into another branch?        Other   Describe and link to a good GUI, IDE plugin, etc. that makes Git a non-command line resource, but please list its limitations as well as its good.    - Cross platform, included with Git  - Cross platform history viewer, included with Git  - Mac OS X  - Mac OS X history viewer  - Cross platform, commercial, beta  - console GUI for Linux  - GUI for Windows, Linux  - package for Windows, includes friendly GUI  Any other common tasks a beginner should know?     How do I work effectively with a subversion repository set as my source control source?   Other Git beginner's references                 Delving into Git     (and )    I will go through the entries from time to time and 'tidy' them up so they have a consistent look/feel and it's easy to scan the list - feel free to follow a simple "header - brief explanation - list of instructions - gotchas and extra info" template.  I'll also link to the entries from the bullet list above so it's easy to find them later. Is there any advantage to using pedal straps over clipless pedals? Other than not having to buy special biking shoes, is there any clear advantage to using pedal straps over clipless (aka clip-in or step-in) pedals? How do I do a case-insensitive string comparison? Pivoting rows into columns dynamically in Oracle Where can I get a device with 'Ubuntu for phones' pre-installed? Canonical has recently announced , which is Ubuntu with a specific interface for mobile devices.  Where can I get phones with this version of Ubuntu pre-installed? If no devices are available yet, where can I pre-order one? Passport validity for Canada I am traveling from Boston to Canada by cruise ship. The first port of arrival is on July 30 and the last port in Canada is on August 4. Then I'm flying on August 5 from Montreal to California. My passport is valid until August 20th. Will I have a problem? I need to get a history of which processes have run on my Windows machine, and when they were run.  However, I cannot use any third-party software, as I cannot guarantee that it will always be running.  Is there any way to get this information only using Windows built-in functionality? Search only for the currently active language How can I restrict the results from a default search in Drupal 7, to bring only the nodes that are in the current language?  My website has a three language switcher; the user chooses what language he wants to use when viewing the site. If he searches something, the result page bring results from other languages. Today I have only 3 enabled languages, but we plan to expand this to 6 or more. Probability of two uniform random numbers being more than $\frac{1}{2}$ apart Two numbers are chosen randomly and independently from the unit interval $(0,1)$.  What is the probability that they differ by more than $\frac{1}{2}$? Hint: Think of the $2$ numbers chosen as coordinates in the Cartesian plane. Draw a square with vertices at $(0,0)$,$(1,0)$,$(1,1)$, and $(0,1)$. Allowable choices for the $2$ points lie below the line $y=x-\frac{1}{2}$ or the above $y=x+\frac{1}{2}$. Find the combined area of these regions.  I need help on this. I know what $y=x-\frac{1}{2}$ and $y=x+\frac{1}{2}$ looks like but I am not understanding the problem as a whole