Unauthorized Access using Named Credentials
Salesforce to Xero integration using Named Credentials by OAuth 2.0
Who is blowing the horn to alert the Night's Watch? I have the low battery alarm disabled in the BIOS settings on my Lemur laptop, but the alarm still sounds when the battery is low.  The sound is a very loud and annoying beep that repeats every couple seconds. The laptop will last another 20 minutes without being plugged in so the battery level isn't properly being detected anymore anyways. I found that if I mute my audio then the beep stops but I obviously cannot listen to anything anymore. If i turn the volume back on even to just 1% the battery alarm is audible again at full volume.  I remember there used to be a mixer somewhere that could control the internal speaker and so if I could find that again then maybe i could mute that and fix this problem.   I have Ubuntu 14.04.  Note that I'm not talking about a low battery notification, which is something through gnome; as opposed to a low battery ALARM which is this very loud beep every couple seconds coming through the internal speaker.  Nevertheless, here are my gnome power settings:  $ gsettings list-recursively org.gnome.settings-daemon.plugins.power org.gnome.settings-daemon.plugins.power button-power 'interactive' org.gnome.settings-daemon.plugins.power critical-battery-action 'nothing' org.gnome.settings-daemon.plugins.power percentage-low 1 org.gnome.settings-daemon.plugins.power priority 0 org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor false org.gnome.settings-daemon.plugins.power idle-dim false org.gnome.settings-daemon.plugins.power button-hibernate 'hibernate' org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend' org.gnome.settings-daemon.plugins.power button-sleep 'suspend' org.gnome.settings-daemon.plugins.power button-suspend 'suspend' org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0 org.gnome.settings-daemon.plugins.power time-low 1200 org.gnome.settings-daemon.plugins.power lid-close-ac-action 'nothing' org.gnome.settings-daemon.plugins.power notify-perhaps-recall true org.gnome.settings-daemon.plugins.power percentage-critical 1 org.gnome.settings-daemon.plugins.power percentage-action 1 org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend' org.gnome.settings-daemon.plugins.power time-action 120 org.gnome.settings-daemon.plugins.power lid-close-battery-action 'nothing' org.gnome.settings-daemon.plugins.power idle-brightness 30 org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 org.gnome.settings-daemon.plugins.power time-critical 300 org.gnome.settings-daemon.plugins.power active true org.gnome.settings-daemon.plugins.power use-time-for-policy false $ How to run scripts without typing the full path? I'd like to know if there is a way to run  program/shell script without typing full path:  /opt/idea/bin/idea.sh Is there any explanation for why the other 2 schools in the TriWizard tournament are both single-gender, unlike Hogwarts?  Was single-gender education normal in wizarding world with Hogwarts being the exception?  Was this some special intentional literary trick on Rowling's part or on movie creators'?    Here's the evidence from the movies:  Durmstrang Institute is boys-only:    Beauxbatons Academy of Magic seems to be an all-girl school: Shortest code to calculate list min/max in .NET I'd like something like  int minIndex = list.FindMin(delegate (MyClass a, MyClass b) {returns a.CompareTo(b);});   Is there a builtin way to do this in .NET? What does one second after big bang mean? Consider the following statement:     Hadron Epoch, from $10^{-6}$ seconds to $1$ second: The temperature of the   universe cools to about a trillion degrees, cool enough to allow   quarks to combine to form hadrons (like protons and neutrons).   What does it mean to say "from $10^{-6}$ seconds to $1$ second"?   How is time being measured?  One particle might feel just $10^{-20}\ \mathrm s$ having passed and another could feel $10^{-10}\ \mathrm s$ having passed.   Is saying "1 second after the big bang" a meaningful statement? Distance between points along polyline ArcGIS for Desktop? I'm using ArcGIS 10.3 (Desktop), and I'm trying to measure the distance between points following a path determined by a set of polylines.  Hand measurement is not a viable option-- there are ~7500 points, and my polyline set is the global coastline.  The ultimate goal is to get the spacing of these points along the polylines, so that I can analyze this with respect to a few other variables.   I can read python-- with a bit of effort-- but not write or edit it, so code-based solutions will not be particularly useful to me.  I have tried using the linear referencing tools-- I snapped the points to the lines, then transformed the polylines to routes and used 'locate features'-- but because my points are not (entirely) ordered along the path, using the difference between  linear reference locations of subsequent points yields some fairly unlikely answers.  In addition, spot checks of (hand-measured, using the built-in path length measuring tool) point-to-point along-polyline distance yield different answers than given by the corresponding linear references for the point pair. (Some of the answers were close enough that they could very well be measurement error on my part, but others were nearly 20%, despite my having zoomed in and snapped the measurement cursor to the polyline, proceeding vertex-to-vertex.)  Sorting first by linear distance seems to fix the first problem, but in light of the second one, I remain skeptical of this process.   I then tried simply splitting the polylines into segments ('split line at point') using the (snapped) points as the dividers, with the eventual goal of finding the segment length with the calculate geometry feature.  This produced gibberish. I'm not sure what criteria ArcGIS used to split the lines, but it wasn't the point set I provided.  Segments in the resulting shapefile ran right through tens of points, only to terminate at a place with no point. (Also, there were segments utterly empty of points...you get the gist.) I reiterate that the pointset was specifically snapped to the polylines, so this problem shouldn't be caused by excessive distance between the point and the polyline.  I'm at a bit of a loss, here: could someone point out where I might have gone astray and/or suggest a solution?  Or, failing that, a new method that I could try?  It seems like a fairly basic (not necessarily simple, but fundamental) analysis to do with geographic data, and I don't understand why it has presented so many difficulties. Support for hardware components How can I find out if Ubuntu supports a particular hardware component, that is, if it works in Ubuntu?  I am going to put together a computer and I am choosing components.   How do I know if Ubuntu supports this or that motherboard, or this or that sound card, or this or that graphics card, etc? How do I know that there is no conflict in Ubuntu between this and that hardware component?   What resources are there to help with such situations?  I know that there are computers with Ubuntu pre-installed and that there are  for whole computers but this is not what I'm looking for. I'm looking for resources to find out support for particular hardware components and conflicts among particular hardware components. Estimate of analytic function in a unit disk Pandemic, Global Epidemic, Epidemic, Endemic I really want to hear from the experts the definitions of all 4 terms especially whether global epidemic is equivalent to pandemic. Or should this question be directed to the epidemiologist?   Pandemic Global Epidemic Epidemic Endemic   I have Googled the terms and I understand the definition of 1), 3) and 4). In short the definition is based on geographical location and scale of outbreak, Pandemic is an outbreak of disease on a global scale (e.g. HIV). Epidemic is an outbreak of disease on a localised area. Endemic is a disease in a localised area. However, a definition for Global Epidemic is not available online.  Recently, WHO mentioned that "“It is important to put this on the table: this virus(Covid19) may become just another endemic virus in our communities, and this virus may never go away,” WHO emergencies expert Mike Ryan told an online briefing." Isn't covid19 considered a pandemic since it is on a global scale and is spreading rapidly?  Another term that I come across often is Global Epidemic. For example in the WHO website, HIV is listed as Global Epidemic. Does that mean Pandemic and Global Epidemic are the same? I have to prove that if $E$ is a connected space, then so is $\overline{E}$ (the closure of $E$) a connected space. I tried to prove the contrapositive. So suppose that $\overline{E}$ is not connected in a metric space $X$. This implies there are $A\subset X$ and $B\subset X$ such that $A\cap B=\emptyset$, $A\cap \overline{E}\neq \emptyset$, $B\cap \overline{E}\neq \emptyset$ and $\overline{E}\subset A\cup B$. I will try to prove that this $A$ and $B$ will also work for $E$. Suppose that $A\cap E=\emptyset$ and $B\cap E=\emptyset$, this implies that $A\cup B$ is a subset of the limit points of $E$, because $A\cap \overline{E}\neq \emptyset$ and $B\cap \overline{E}\neq \emptyset$. This contradicts the fact that $\overline{E}\subset A\cup B$, so we have to conclude that $A\cap E\neq \emptyset\neq B\cap E$. Since $E\subset\overline{E}\subset A\cup B$, we have that $E$ is also not connected.  My question is whether my proof is correct, because I have a little bit doubt. If it's not correct, what is the best I can do? Thanks in advance!   Edit1: The definition we use for a connected space $E$ in a metric space $X$ is that if $E$ is connected, then there are no open $A,B\subset X$ such that $A\cap B=\emptyset$, $A\cap E\neq \emptyset\neq B\cap E$ and $E\subset A\cup B$.  Edit2: $A$ and $B$ must be open. I have changed the coordinates of couple points in the attribute table and I want to update the location. I have found the script that is working in field calculator.   Does anybody know how to write it using a Python script in ArcGIS Desktop (not in Field Calculator)?  def XYsetVALUE( shape, X_value, Y_value):    point = shape.getPart(0)    point.X = X_value    point.Y = Y_value    return point  __esri_field_calculator_splitter__ XYsetVALUE ( !SHAPE!, !X_COORD!, !Y_COORD! )   COORDINATE FIELD TYPE ------ STRING !!!! For every prime of the form $2^{4n}+1$, 7 is a primitive root. $X_1, X_2, \ldots, X_n$ are $n$ i.i.d. uniform random variables. Let $Y = \min(X_1, X_2,\ldots, X_n)$. Then, what's the expectation of $Y$(i.e., $E(Y)$)?  I have conducted some simulations by Matlab, and the results show that $E(Y)$ may equal to $\frac{1}{n+1}$. Can anyone give a rigorous proof or some hints? Thanks! Why does String.split need pipe delimiter to be escaped? What is "summoning sickness" and how does it affect my creatures? Note: this is intended to be a canonical question about summoning sickness.  "Summoning sickness", broadly, is the rule that stops you from attacking or paying {T} costs with a creature that you just played. But how exactly does it work? How does it interact with other rules and effects?  For example, if I'm trying to figure out how a creature is affected:   Does the status matter (tapped/untapped, face down/face up, etc.)? What if it came into play, but I didn't cast it? What if it's a token? What if it was on the battlefield when my turn started, but it wasn't a creature? What if it stops being a creature? What if it's a creature and also another card type? What if it's a double-faced card that just transformed? What if it changes control? What if it's a copy of another creature? Which of the creature's activated abilities can I use? Are any of its other abilities affected? Can I tap the creature to pay a cost that is not a {T} cost?   (These examples are primarily taken from questions about summoning sickness that have already been asked on the site) What are the alternatives to the FHS? I'm a long time Linux user for over 15 years but one thing I hate with a passion is the mandated directory structure. I don't like that /usr/bin is the dumping ground for binaries or libs in /usr/lib, /usr/lib32, /usr/libx32, /lib, /lib32 etc... Random stuff in /usr/share etc. It's dumb and confusing. But some like it and tastes differ.  I want a directory structure where each package is isolated. Imagine instead if the media player dragon had it's own structure:  /software/dragon /software/dragon/bin/x86/dragon /software/dragon/doc/README /software/dragon/doc/copyright /software/dragon/lib/x86/libdragon.so   Or:  /software/zlib/include/zlib.h /software/zlib/lib/1.2.8/x86/libz.so /software/zlib/lib/1.2.8/x64/libz.so /software/zlib/doc/examples/... /software/zlib/man/...   You get the point. What are my options? Is there any Linux distro that uses something like my scheme? Can some distro be modified to work like I want it (Gentoo??) or do I need LFS? Is there any prior art in this area? Like publications on if the scheme is feasible or unfeasible?  Not looking for OS X. :) But OS X-inspired is totally ok.  Edit: I have no idea how PATH, LD_LIBRARY_PATH and other environment variables that depend on a small set of paths should work out. I'm thinking that if I have the KDE editor  installed in /software/kate/bin/x86/bin/kate then I'm ok with having to type the full path to the binary to start it. How it should work for dynamic libraries and dlopen calls, I don't know but it can't be an unsolvable engineering problem. How to iterate over a comma separated list? How can I iterate, loop, process, or otherwise do something, with each element from a comma separated list of things?  This question       , and the are already lots of very good answers everywhere. However I think it would also be valuable to have a single reference point where all such alternative techniques are explained in detail, with their advantages and disadvantages discussed.  All of plain-TeX, LaTeX, LaTeX3, LuaTeX, Context, etoolbox, pgffor, etc. answers are invited. Please consider explaining, for example:   How does the command/method deal with whitespace around items? How does the command/method deal with empty/missing items? (e.g. a,b,,c) How does the command/method deal with a trailing comma? Can the command/method work of a list stored on a macro? Is each iteration evaluated globally or on a local group? (i.e., if a command is defined during an iteration, does the command survive the loop?) Do items get expanded or somehow mangled before being processed? What about lists where items are key=value or some other kind of pairs? Does the method work for lists separated with something other than a comma? Any other thing I should know before deciding to use this method? Diamond is not shown for mod name under wiki posts If a diamond mod is an author of a wiki post then the diamond is not displayed besides the mod name. E.g. :        Even when the name refers to the user profile page (in case of more then one author) like in :        Is it intentional or a bug? Safari can load internet but none of the other apps cannot! This is by far the weirdest problem I've come across,  My mac can perfectly access internet through safari web browser, but when I tried to do   ping www.google.com   through the terminal, it's requests is being timed out.  None of the other apps are able to reach internet either. Dropbox, Skype, Spotify all showing offline, except the browser itself  I'm guessing something bad with the DNS, but spend 2 hours trying to fix this with no luck