How do I convert to browser timezones using phstc dateFormat?
Convert UTC date time to local date time
The latest beta update made the app crash a lot:   when I press 'Add comment'. after deleting a comment. after up/down/unvoting a post (happened when I upvoted an answer) after editing a post (but the edit is applied).   Spec: Nexus 5 on Lollipop 5.1.1, SE App v1.0.66 (beta) How to pass multiple operator properties via UI layout? Basically, I want to have a single operator which can do multiple things, based on some attributes values.  class MyPanel(bpy.types.Panel):     # (...)     layout = self.layout     row = layout.row()     row.operator("my.button", text="Button text")  class MY_BUTTON_OT_Button(bpy.types.Operator):     bl_idname = "my.button"     bl_description = "Button description"     bl_label = "Button"     foo = bpy.props.IntProperty()     bar = bpy.props.BoolProperty()      if bar:         # Do something with foo     else:         # Do something else :P   I know how to set one attribute, like so:      row.operator("my.button", text="Button text").foo=5   But what about multiple arguments? I tried several things that didn't worked, like (e.g.):   With setattr(): row.operator("my.button", text="Button text").setattr(foo=5,bar=True)   With a custom method setVal() in the operator class: row.operator("my.button", text="Button text").setVal(foo=5,bar=True)   Maybe I must use a single EnumProperty? I hope to avoid this, so my question is: Is it possible to pass multiple custom arguments to set attributes in an operator class? And if yes, how ?  Thanks for your help. We learned in Thor: Ragnarok that Mjolnir is only a focus for Thor's power, not the source. If so, when a worthy​ being lifts Mjolnir and gains "the power of Thor", where are they getting the power from? In what order should the Star Wars movies be watched? Please don't lynch me, but I've never sat through an entire Star Wars film. I'm aware that the 3 (new) films are technically prequels, but I feel strange watching 3 new films then 3 old films?  Do I need to watch the new ones then the old ones? Is 2h 45m enough for a layover in Newark Liberty International transferring from an international to a domestic flight (Terminal B → Terminal C)? Let $X_1,...,X_n$ be mutually independent RVs. Suppose $X_i \perp \mathcal F $ for $1\ \leq \forall i \leq n$.    How can I show that:  $$\sigma (X_1,...,X_n) \perp \mathcal F$$ ?  What I have tried:  $\sigma (X_1...X_n) = \sigma(\cup_{i=1} ^n \sigma(X_i))$ holds. I think I need some Dynkin's lemma-ish argument but can't see how. What's the easiest way to set up a LAMP stack? Trouble with gradient intuition Increasing notebook magnification pushes output onto a new line Not able to execute a .sh file: /bin/bash^M: bad interpreter I wanted to execute a shell script:  -rwxr-x--x 1 root root   17234 Jun  6 18:31 create_mgw_3shelf_6xIPNI1P.sh   I tried to do a standard procedure, but I got this error:  ./create_mgw_3shelf_6xIPNI1P.sh  localhost 389 -l /opt/fews/sessions/AMGWM19/log/2013-06-06-143637_CLA-0  DEBUG   cd/etc/opt/ldapfiles/ldif_in ; ./create_mgw_3shelf_6xIPNI1P.sh  localhost 389 -l /opt/fews/sessions/AMGWM19/log/2013-06-06-143637_CLA-0 **ERROR  sh: ./create_mgw_3shelf_6xIPNI1P.sh: /bin/bash^M: bad interpreter: No such file or directory**   What does it mean? I was doing this as the root user under the root group.  Does it mean that the file does not have the correct permission for the root user? Number of preimages of a group element under a homomorphism. Given a file like this:  1,768,12,46576457,7898 1,123,435,134,146 2,345,6756856,12312,1311 5,234,567465,12341,1341 1,3245,4356345,2442,13 9,423,2342,121,463 9,989,342,121,1212   I would like to list all rows (in bash terminal) such that the value in column 1 appears at least twice (in column 1). The result should be  1,768,12,46576457,7898 1,123,435,134,146 1,3245,4356345,2442,13 9,423,2342,121,463 9,989,342,121,1212 Limit of $2^{1/n}$ as $n\to\infty$ is 1 How do I prove that:   $\lim \limits_{n\to \infty}2^{1/n}=1$  Thank you very much. Screen (not Lock Screen) Timeout Stuck at 1 Minute I recently got a new laptop (Lenovo T440p with Windows 8.1 Pro) and was having the following issue: the screen would lock (screen would go black and require a password to get back in) after 1 minute. I would prefer something more like 10 or 15 minutes. So, I tried the obvious changes (check the screensaver settings, power management settings for sleep, turning off the screen, etc.), with no success. I did, however, notice a rather odd behavior: if I changed the screensaver timeout from 1 minute to anything else (say, 15 mins), clicked OK, and re-opened the screensaver settings window, it would be back to 1 minute. Odd.  At that point, I turned to Google. I found posts ( in particular was helpful) suggesting all sorts of causes and resolutions:   If you have Cisco AnyConnect VPN client (which I did), try uninstalling it. I uninstalled, rebooted, no change. Open the User Accounts control panel and, on the left side of the screen, click Reset Security Policies. My User Accounts control panel, however, has no such link. Reboot into a repair console and run "sfc /scannow". It did indeed find and repair some issues, but didn't fix the screen timeout problem. Edit the Group Policy to force a particular timeout time; the setting showed up correctly (15 mins) in screensaver settings, power management settings, etc., but the screen would still go black and lock after 1 minute. In the registry, manually change the screensaver timeout and the "turn off the screen" timeout. No luck. Natural Sort in MySQL How prove this $\sum_{k=1}^{2^{n-1}}\sigma{(2^n-2k+1)}\sigma{(2k-1)}=8^{n-1}$ Given the positive integer numbers $n$,prove that $$\sum_{k=1}^{2^{n-1}}\sigma{(2^n-2k+1)}\sigma{(2k-1)}=8^{n-1}$$  where $\sigma(n)$ is defined as $$\sigma{(N)}=\sum_{d|N}d$$  This problem I think is very interesting, and have nice methods?  Thank you everyone.  and I find some of this     or can see: Age from Date of Birth using JQuery I need to calculate if someone is over 18 from their date of birth using JQuery.  var curr = new Date(); curr.setFullYear(curr.getFullYear() - 18);  var dob = Date.parse($(this).text());  if((curr-dob)&lt;0) {     $(this).text("Under 18"); } else {     $(this).text(" Over 18"); }   There must be some easier functions to use to compare dates rather than using the setFullYear and getFullYear methods.  Note: My actual reason for wanting to find a new method is length of the code. I have to fit this code into a database field that is limited to 250 chars. Changing the database is not something that can happen quickly or easily. Given this XML, what XPath returns all elements whose prop attribute contains Foo (the first three nodes):  &lt;bla&gt;  &lt;a prop="Foo1"/&gt;  &lt;a prop="Foo2"/&gt;  &lt;a prop="3Foo"/&gt;  &lt;a prop="Bar"/&gt; &lt;/bla&gt; I need to display math in my report, but is it possible to remove the vertical space around align*?  A little example is the following (where I just want the align* to have the same vertical space as a \\  \documentclass[10pt,danish,a4paper,oneside,fleqn]{report}  \usepackage[english]{babel} \usepackage{amsmath}  \begin{document}  ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss \begin{align*}   A{\cap}B\ &amp; =\ {\left\{{b,d,e}\right\}}{\;}{\cap}{\;}{\left\{{a,b,f,g}\right\}}   \\   \nonumber\ &amp; =\ {\left\{{b}\right\}} \end{align*} ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss \\ ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss  \end{document} Why are there non-visible objects in my final render? Have Blender on about 4 machines rendering animations. Just spotted on one of the machines its rendering something different from the actual scene that I have setup.    Top window shows a different set of layers objects to whats actually being rendered in the rendering window below.  In my scene contents, layers objects 1-5 are not visible, but these are the ones that look like they are being rendered.  The only thing I can assume is that perhaps it might be because I did not save the document before clicking render, but I would not have expected that behaviour (you dont need to save your word document before printing it).  Can anyone confirm why this is happening?