I have a batch file which creates a backup of some source code folders when run. For back file name it creates a string consisting of current date time.   To get date time string following snippet is used.  SET isodt=%date:~-4%_%date:~3,2%_%date:~0,2%__%time:~0,2%_%time:~3,2%_%time:~6,2% echo %isodt% pause   It gives following output when run on my laptop:  2019_09_12__14_25_01   Recently I ran it on a virtual machine and it gave me following output for same code.  2019_ 0_Th__14_18_18   Why is output not the same? Both are run on Windows 10 64 bit machines.
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really compelling backwards-compatible reason for it, particularly because of the regional settings issue with using date. See @npocmaka's     What's a Windows command line statement(s) I can use to get the current datetime in a format that I can put into a filename?  I want to have a .bat file that zips up a directory into an archive with the current date and time as part of the name, for example, Code_2008-10-14_2257.zip. Is there any easy way I can do this, independent of the regional settings of the machine?  I don't really mind about the date format, ideally it'd be yyyy-mm-dd, but anything simple is fine.  So far I've got this, which on my machine gives me Tue_10_14_2008_230050_91:  rem Get the datetime in a format that can go in a filename. set _my_datetime=%date%_%time% set _my_datetime=%_my_datetime: =_% set _my_datetime=%_my_datetime::=% set _my_datetime=%_my_datetime:/=_% set _my_datetime=%_my_datetime:.=_%  rem Now use the timestamp by in a new ZIP file name. "d:\Program Files\7-Zip\7z.exe" a -r Code_%_my_datetime%.zip Code   I can live with this, but it seems a bit clunky. Ideally it'd be briefer and have the format mentioned earlier.  I'm using Windows Server 2003 and Windows&nbsp;XP Professional. I don't want to install additional utilities to achieve this (although I realise there are some that will do nice date formatting).
Home button broken and Notification Center stuck my home button on my ipod touch 5th Gen has been broken for  while so I have been using assistive touch. Earlier on my notification centre got stuck half way down the lock screen, making my ipod completely unusable.   I tried turning it off but the notification centre is blocking the slider and obviously I can't restart it since my home button is broken. Has anyone got any solutions? It's an absolute nightmare! Converting from DMS to DD using Python in Field Calculator? I need to convert lat/long that is expressed as degrees, minutes, and seconds in the data into decimal degrees. For example, in the data, they are listed as N335042.06 in the Latitude column, and W86031.04 in the Longitude column. I have done this problem before where I created a script which converted DMS to DD, and vice-versa, so I guess I could use bits from that. But the problem I'm having is how to ignore (for lack of a better word) the 'N' and 'W' in the data? Can I skip them? And DMS are listed all together without any symbols or spaces.  Can I use len(), range(), split() to specify what part to read from the value? For example, can do the following?  N335042.06 where, 33 = degrees 50 = minutes 42.06 = seconds ...?  I came across  ESRI article, but it's in VB. Will probably use it as a reference but some of the terminology/syntax is different from Python.  Final code that works!   # Pre-logic def latDD(x):   D = int(x[1:3])   M = int(x[3:5])   S = float(x[5:])   DD = D + float(M)/60 + float(S)/3600   return DD  # Expression latDD(!Latitude!) Why does a free-falling body experience no force despite accelerating? component.set not working for picklist field I have a number of lightning:inputField that i'm setting based on certain criteria, these all work except for picklist field types. The code below shows how i am setting the fields. The country field is the picklist and the 2 alerts have the correct value in them, however the value is not getting set on country. Is there a different method for setting picklist fields?  var address = res.getReturnValue(); var country = component.find('Country__c'); var pcodeFld = component.find('Postcode__c');  if(country != undefined){  alert(country);  alert(address.Country);  country.set('v.value', address.Country); } if(pcodeFld != undefined){  pcodeFld.set('v.value', address.Postcode); }   EDIT: I can set a default value whilst using $A.createComponents using .set("v.value", "United Kingdom");  it just seems that i can't set it after the component has rendered based on some user action.  Reproduceable Example:  I just can't seem to set the value of any picklist fields when using lightning:inputField.  Component  &lt;aura:component implements="flexipage:availableForRecordHome, force:hasRecordId"&gt; &lt;div class="slds-p-bottom_large slds-p-left_large" style="width:500px"&gt;     &lt;lightning:recordEditForm aura:id="recordViewForm"                                   recordId="{!v.recordId}"                                  objectApiName="Contact"&gt;         &lt;lightning:messages /&gt;         &lt;lightning:inputField fieldName="FirstName" /&gt;         &lt;lightning:inputField fieldName="LastName" aura:id="lastname"/&gt;         &lt;lightning:inputField fieldName="Birthdate" /&gt;         &lt;lightning:inputField fieldName="Phone" /&gt;         &lt;!--Picklist--&gt;         &lt;lightning:inputField fieldName="Country__c" aura:id="Country__c"/&gt;         &lt;lightning:button label="Update" variant="brand" onclick="{!c.update}"/&gt;     &lt;/lightning:recordEditForm&gt; &lt;/div&gt;     &lt;/aura:component&gt;   Controller  ({         update: function(component, event, helper) {         //alert(component.find("Country__c"));        component.find("Country__c").set("v.value", "Ireland");     },  }) I am solving the TOEIC workbook, by the way, I faced conflict that doesn't match meaning I knew.  The problem is     The newest branch of the library is located in/on Pine Street.   I think either 'in' or 'on' have the same meaning. But the commentary said that 'be located in' is mainly writing in front of building name and city name.   I don't know what is correct? I'll be traveling to Berlin, Germany from Colombo, Sri Lanka via Turkish Airways.  The itinerary would be: Colombo  &lt;--> Istanbul- || Istanbul- &lt;--> Berlin   The flights are all on one ticket. Would I be required to claim and re-check my baggage at Istanbul or can I check it in all the way from Colombo to Berlin without re-checking in the baggage again? How to run Visual Studio post-build events for debug build only How can I limit my post-build events to running only for one type of build?  I'm using the events to copy DLL files to a local IIS virtual directory, but I don't want this happening on the build server in release mode. Is there a way to condition output on a given date? I'd like to be able to print text that varies depending on whether the date matches a given date string  For example  suppose there was a command   \iftoday#1#2#3   which printed #2 if \today matched the string in #1 and #3 otherwise.  So a sample of my proposed usage would be:     \iftoday{February 3, 2016}{There's no garbage today}{Please put out the garbage}    I've tried various commands like pdftexcmd's strcmp, to no avail.    I suspect the problem may have to do with matching the string generated by \today.    While on screen it appears that \today returns February 3, 2016. I can't get it to match February 3, 2016 when I compare strings.  Obviously, I'd be perfectly happy if I could get this to work by represent today's date in any of the standard date formats.  Thanks very much in advance for any suggestions. When reading lens reviews on the Internet, I often find subjective statements about the image quality that a lens produces, such as "good contrast" or "sharp". The problem is that I don't think I am capable to actually see these qualities on an image. I don't even think I could tell the difference between a cheap kit lens and a top lens, if not by "this just looks better".  So my question is: without looking at sharpness tests and MTF curves, how do you learn to judge the quality of a lens based only on sample images? What are the characteristics you look for and what constitutes good or bad in each of them? There is a part of my paper where I use the distributive property and it might not be clear to the reader to see the operation result (I'm using in proposional logic for a proof). The logic equation (part of) is: $$ (l_{1}) \vee \big( (p \vee q) \wedge (\neg p \vee q) \wedge (p \vee \neg q) \wedge (\neg p \vee \neg q)\big) $$ $$ (l_{1} \vee p \vee q) \wedge (l_{1} \vee \neg p \vee q) \wedge (l_{1} \vee p \vee \neg q) \wedge (l_{1} \vee \neg p \vee \neg q) $$  So I was wondering if there is a way to represent this operation like a 'shower' (see another example in pic ). Maybe there is some hidden magic mathmode command or pkg for this. At last we can also rely on tikz. Let $G$ be a matrix Lie group and let $H$ be a Lie subgroup of $G$. My understanding is that all $g \in G$ are matrices, since $G$ is a subgroup of the general linear group. Then aren’t all elements $h \in H$ matrices, since $h \in G$?  From what I can gather $H$ is a matrix Lie group if $H$ is a closed subset of $G$. But if $H$ is not a closed subset of $G$, why is it not a matrix Lie group? Is the reasoning in the first paragraph wrong? Showing that $\int_0^\infty x^{-x} \mathrm{d}x \leq 2$. What would you see if you have 2 huge mirrors (you cant look over it or next to it)  You place them with the reflecting side to each other and you look in the mirror from behind one mirror (one way mirror = 1 side glass 1 side mirror, like in a movie when cops are questioning a suspect.)  The mirror would reflect each other endless.  The example could be preformed with a see trough mirror (1 side mirror other side glass) but I don't have one, also I don't have huge mirrors.    Would it make a diffrence if you place a light source and if you dont have a light source?  My guess is that you would always see black because there is nothing to mirror.  Edit important:   There is nothing in the room to reflect on, so it only reflects the mirror, thats what i ment. Understanding the -exec option of `find` How does gravity work on Star Wars ships? Inspired by the question , how does gravity work on the Millennium Falcon and other ships its size? The passengers are not strapped in and regularly move around just easily as they would on a planet with Earth's gravity.   The answer for the Death Star refers to gravity often being "coreward" (presumably taking advantage of the natural gravity an object of such substantial mass would have), but that doesn't apply for a small ship. So how is gravity accomplished? TP-Link Archer T3U Plus USB adapter Cannot make this wireless adapter work on Ubuntu 20.04... please help. I've tried this:  and now lsusb sees the device, but still doesn't work. lsusb: Bus 002 Device 006: ID 2357:0138 TP-Link 802.11ac NIC uname -r: 5.4.0-39-generic Edit: It works on my other computer with Ubuntu 18.04 using T2U Plus driver from here:  But it does not work with Ubuntu 20.04... sudo modprobe 88x2bu: Gives nothing. modinfo 88x2bu | grep -e version -e 0138 : version:        v5.6.1_30362.20181109_COEX20180928-6a6a srcversion:     9C5282368F93050B7206C8D parm:           rtw_chip_version:int  dmesg | grep 88x2 : [ 8087.334869] 88x2bu: loading out-of-tree module taints kernel. [ 8087.336610] 88x2bu: module verification failed: signature and/or required key missing - tainting kernel [ 8087.341389] usbcore: registered new interface driver rtl88x2bu How do I login to the Gamecenter on PewDiePie's Tuber Simulator, if you have not done it when they asked? Reference undefined I receive the a Reference "LastPage" undefined error when trying to compile a document with this syntax:  \fancyfoot[R]{\thepage/\pageref{LastPage}}   What is necesarry to prevent this error? I'm using TeXworks Version 0.4.3 (MiKTeX 2.9) and pdfLaTeX. Are any of these verb phrases grammatical?        allows the user of modeling and resolving     allows the user to model and resolve      Which version of the following sentence is correct/better?        In particular, it allows to acquire a signal using a sample rate significantly lower than the one dictated by the Nyquist criterion.   In particular, it allows acquiring a signal using a sample rate   significantly lower than the one dictated by the Nyquist criterion.      I searched Google Scholar for "" and "", and it seems people use both more or less with the same frequency. The origin of my question arose from a problem: Let $q: X \to Y$ and $r: Y \to Z$ be covering maps, let $p= r \circ q$. Show that if $r^{-1}(z)$ is finite for each $z \in Z$, then $p$ is a covering map.  I am just wondering is there an easy counter example to show the necessary of "inverse image of every point is finite" condition?  I have already checked Hatcher's book (the wedged circle example) but I wonder is there a less complex and more obvious example?  I tried to construct a counter example by composition of a covering map from $R_+$ to $S^1$ with $R$ in the middle, but I failed due to I can't find a covering map from $R^+$ to $R$ which does the job.