Amsterdam's time for any visitors from any country
Convert date to another timezone in JavaScript
How can I move or force a program installation to another location, even when unsupported? I have an SSD as my main Windows drive, with a 640GB 2.5" HDD, partitioned to store programs and user settings, and also to act as backup (it's the only thing I had lying around at the time of building my PC).  The problem is that whenever I install a program, it installs to C:\Program Files [(x86 for the 32 bit programs]\, although I have changed the environment variables. This wouldn't normally be an issue, however every installation program points its shortcut to my 640GB HDD.  The root layout of both drives:   To clarify:   Program files get installed to C:\ Program shortcuts are always pointed to Z:\, my 640GB HDD   Modifying the relevant environment variables doesn't do anything, I looked at , but however it only talks about modifying the registry and environment variables, which I have already done so.  I install to the Z:\ drive if the installation program lets me change the installation path, but however the installation programs sometimes don't let me change this.  Is there a way that I can force every program to install to the relevant location on Z:\, but at the same time move any programs currently installed to the new location? Perhaps I'm missing something here?  My target is to have every program installed on Z:/, with only the core Windows operating system on C:/.  Found ; would it be appropriate to use in my case? I would be able to move the entire Program Files (and its x86 version) to Z:\, without impacting on the performance.* How can I export the "available software to download" to a file? Sometimes Ubuntu will show a popup like this:    (It looks weird because I'm using )  How can I export the list of packages/changes Ubuntu wants to install to a file? This is for debugging purposes - I think something in this update is breaking my system, and I want to be able to be able to figure out exactly where the break is coming from. Is "data" treated as singular or plural in formal contexts? My non-native English speaking friend just asked me: "Data is..." or "Data are..."?  I said both but that's because I've been desensitized from reading/writing both (especially from writing code and adding quick comments).  My question: Is it acceptable to utilize either for a university paper? Or is one safer than the other (when confronted with stickler professors)?    Related questions: Are there any cheap, fast lenses capable of highschool sports photography? I recently took on my first paying client, and she is also into photgraphy. She usually does sports for her highschool yearbook. They just have an entry level Canon DSLR with a kit zoom on it that goes up to 200mm, but it's not very fast (f/4 or 5.6 or so). She told me that she has a tough time - especially at basketball games - getting shots with any kind of reasonable lighting, and has to do a lot of work in post just to get them reasonable.   mentions the Cannon EF 300mm f/2.8L IS USM II for professional sports photographers. At $6k USD I suspect the yearbook won't be springing for that lens anytime soon.  So I was curious, are there any reasonable quality, fast lenses for Canon cameras that are lower priced (certainly no more than say, $1k)? I'd love to be able to point them to a couple of options. I assume the largest print they'd be making would be a full spread in the yearbook - maybe two 17"x11" (two 8.5" side by side) Why don't we include $\rho g h$ in a hydraulic jack below? I have seen many articles that talk about a star's "habitable zone" as the ring around it which is just the right temperature for planets to have liquid water, which is necessary for life. My question is, why does a planet need to have liquid water in order to sustain life? Who says that extraterrestrial life can't live off of some other kind of sustenance? I need to use the setting Disable tiled raster layer exports from the GUI in my Python code, but I can't seem to find it.  exporter = QgsLayoutExporter(layout)     exporter.exportToPdf(path, QgsLayoutExporter.PdfExportSettings())   How can I do this? How to access namespace which is part of different project? What is the 'Badlock Bug'? A user on the Ask Ubuntu General Room posted a link to . After some googling around, all I can find is that it is a mysterious security bug, that uses the same website template as Heartbleed.  I manage Linux Servers, a mysterious security bug does not sit well with me. What exactly is it, and how can I protect my servers from it? If mastery of the Force is hereditary, how are the Jedi so numerous? Uncommitted work pending in unit test with trigger and queueable callout I have an after insert trigger that invokes queueable Apex which makes a callout.  The trigger and callout work fine in the UI and I don't get any errors in normal operation.  However, my unit test keeps failing with the "uncommitted work pending" error despite all my attempts to separate the callout.  I've used a testVisible variable to disable the callout from the trigger so that I can invoke the queueable job explicitly in a startTest/stopTest block after the DML that fires the trigger.  I've pored over the callout class to make sure it's not doing any DML beforehand.  Anyway, if it was doing DML, I should get the uncommitted work pending errors in the UI, right?  I've tried API version 37 and version 41 but the unit test still fails.   I've had a case open with Salesforce premier support for 6 weeks now but haven't made any progress.  Any suggestions?  The unit test:  @isTest static void testCallout() {     // Disable the callout while setting up data.     CCx_EHR_CMCT_Services.isQueueSendEnabled = false;      // Set up the data and execute the DML.     / ...     insert act;      // Set up the http mock     // ...      // Now enable and execute the callout     Test.startTest();     CCx_EHR_CMCT_Services.isQueueSendEnabled = true;     Test.setMock(HttpCalloutMock.class, mock);     System.enqueueJob(new QueueSendToRedox(new List&lt;ActivityHL__c&gt;{act}, desk)));     Test.stopTest();  }   Trigger:  trigger HL_ActivityHL_c on ActivityHL__c (before insert, before update, after insert) {     if (Trigger.isAfter) {         if (Trigger.isInsert) {             CCx_ClientDataDomain.sendEHRClinicalComm(Trigger.new);         }     } }   Trigger handler class:  public without sharing class CCx_ClientDataDomain {     public static void sendEHRClinicalComm(List&lt;ActivityHL__c&gt; triggerNew) {     // do some processing here.     // ...     // then queue the callout job.     System.enqueueJob(new CCx_EHR_CMCT_Services.QueueSendToRedox(             deskActivities.get((Id) desk.getDeskId()), desk));     } }   Queueable job class with callout method:  public with sharing class CCx_EHR_CMCT_Services {     // isQueueSendEnabled is an attempted workaround for unit tests     @testVisible     private static Boolean isQueueSendEnabled = true;      public class QueueSendToRedox implements Queueable, Database.AllowsCallouts {         private List&lt;ActivityHL__c&gt; activities;         private CCx_DeskHierarchySelector.Desk desk;         private Boolean isEnabled;          public QueueSendToRedox(List&lt;ActivityHL__c&gt; activities, CCx_DeskHierarchySelector.Desk desk) {             this.activities = activities;             this.desk = desk;             this.isEnabled = isQueueSendEnabled;         }          public void execute (QueueableContext context) {             if(this.isEnabled) sendClinicalCommToRedox(activities, desk);         }     }      public static void sendClinicalCommToRedox(List&lt;ActivityHL__c&gt; activities, CCx_DeskHierarchySelector.Desk desk) {         // Set up data for the callout.  No DML actions are executed before the callout.         HttpRequest req = buildRequest();         // ...          // Callout         Http http = new Http();         HttpResponse resp = http.send(req);     } } Qualitative variable coding in regression leads to "singularities" Why is 'that' sometimes optional before dependent clauses? For example, when I type ping 8.8.8.8 &amp;, why can we see ping process working? And when I type find / -name '*test*' &amp; , it's also seen on monitor.  Why is that? Is it not really in background? No sound from speakers on MacBook Pro except the startup chime After plugging my headphones out, suddenly there is no sound from the internal speakers. When I press volume buttons, I see a circle-backslash symbol below the speaker icon.  Restarting doesn't help. However I do hear the startup chime. What should I do? If $x\sqrt{1+y}+y\sqrt{1+x}=0$ find $y'$ Find $\frac{dy}{dx}$ if $x\sqrt{1+y}+y\sqrt{1+x}=0$ for $-1\leq x\leq 1$   My Attempt $$ x\sqrt{1+y}=-y\sqrt{1+x}\implies x^2(1+y)=y^2(1+x)\implies x^2+x^2y=y^2+xy^2\\ 2x+2xy+x^2\frac{dy}{dx}=2y\frac{dy}{dx}+y^2+2xy\frac{dy}{dx}\\ \frac{dy}{dx}\Big[ x^2-2y-2xy \Big]=y^2-2x-2xy\\ \frac{dy}{dx}=\frac{y^2-2x-2xy}{x^2-2y-2xy} $$ How do I proceed further and find the derivative ? Search across Stack Exchange sites in Android app Is it possible to search for a question across all Stack Exchange sites in the Android app?   Right now I can search in only one specific site at a time.   If not, can you add that feature? How is Angular Momentum Conserved when Mass is Released? I am not a physicist (math/comp-sci) but I understand that Angular Momentum is supposed to be conserved.  I find this confusing because there seems to be many simple, common cases where a restrained, revolving body, when released seems to lose it's angular momentum.  For example, let's say that a hammer thrower is revolving a 10kg hammer around herself at a 1 meter distance from their combined center of mass every second.  Taking the hammer as a point-mass, then before release, the hammer and the thrower each have an angular momentum of      $l\omega = (mr^2)*(2\Pi) = (10*1*1)*(2*3.14..) =~ 62.8 kg\text{-}m^2/s$   Now, after the hammer is released, the thrower still has her same angular momentum (also 62.8), but the hammer no longer seems to have any.  Yes, I know that the hammer is still rotating (spinning) as it did when it was revolving around the thrower, so that angular momentum seems to be conserved, but the angular momentum from revolution (orbiting) seems to be gone.  AFAIK, it's not transferred to it's spin angular momentum (observation seems to bear this out).  Nor is it transferred to the thrower.  Besides having no mechanism for this (she let go of it), if it did, we would have noticed hammer throwers being knocked over by having their angular momentum suddenly doubled.  So where does it go?  Or is it not actually conserved in this case? Some Git commands take commit ranges and one valid syntax is to separate two commit names with two dots .., and another syntax uses three dots ....  What are the differences between the two? Ubuntu GNOME 17.04: wi-fi not working -- mac address keeps changing? My Panda USB wi-fi adapter works just fine on 16.10, but when I try to connect to my wi-fi router in 17.04, GNOME network manager reports "Connection failed." I did some tinkering, and noticed that my MAC address for my wifi adapter, according to GNOME, is DIFFERENT every time I make it forget my wifi settings and try to reconnect. Any leads on a possible fix or work-around?   I'm running Ubuntu GNOME 17.04, kernel 4.10.0-19-generic, GNOME 3.24.0.