For reference I am referring to the answer in this   The author of the answer gives the following code  def sum(*values, **options):     s = 0     for i in values:         s = s + i     if "neg" in options:         if neg:             s = -s     return s  s = sum(1, 2, 3, 4, 5)            # returns 15 s = sum(1, 2, 3, 4, 5, neg=True)  # returns -15 s = sum(1, 2, 3, 4, 5, neg=False) # returns 15   However when I run on mine I get the following error  NameError: global name 'neg' is not defined   Can anyone explain this.  And in general, how does the function know when values ends and when options begins
In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):
Any idea why the piece of code below does not add the script element to the DOM?  var code = "&lt;script&gt;&lt;/script&gt;"; $("#someElement").append(code); How to set a JavaScript breakpoint from code in Chrome? Server only reachable over VPN I have an Apache server running on a Raspberry P and it works just fine in the local network. And after forwarding port 80 and trying to connect using the public IP, Chrome says ERR_CONNECTION_REFUSED. But the strange thing is that I CAN reach the server when using VPN and using the same IP. What can I do?     -telnet 80.***.***.78 80      Trying 80.***.***.78...     telnet: connect to address 80.***.***.78: Connection refused     telnet: Unable to connect to remote host     -route -n      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0     192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0      -sudo netstat -lapute:              Active Internet connections (servers and established)     Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name     tcp        0      0 *:http                  *:*                     LISTEN      root       6137        2051/apache2     tcp        0      0 *:ssh                   *:*                     LISTEN      root       6367        2249/sshd     tcp        0      0 pi.local:ssh            nmb.local:65535         ESTABLISHED root       8669        2565/sshd: pi [priv     udp        0      0 *:9949                  *:*                                 root       5918        1809/dhclient     udp        0      0 *:mdns                  *:*                                 avahi      6293        2184/avahi-daemon:     udp        0      0 *:54070                 *:*                                 avahi      6295        2184/avahi-daemon:     udp        0      0 *:bootpc                *:*                                 root       5946        1809/dhclient     udp        0      0 pi.local:ntp            *:*                                 root       6310        2200/ntpd     udp        0      0 localhost:ntp           *:*                                 root       6309        2200/ntpd     udp        0      0 *:ntp                   *:*                                 root       6304        2200/ntpd Pros and Cons of a Decentralized Puppet Architecture We have around 300 RHEL servers that are currently connecting to a Puppetmaster server.  However, we have noticed some performance bottlenecks and it is the point of failure in our system.  I am fairly new to puppet in general and I am considering creating a decentralized puppet architecture instead of having Puppet clients connect to the Puppetmaster server.  Aside from what I would suspect to happen such as performance gain and lack of signing and exchanging SSL certs for new machines, what are other pros and cons to setting up a decentralized architecture? I made something like this:    I did this with the Ellipse Tool and the Line Tool.  Now the circle is accurate, but the lines inside are very inaccurate. Is there another tool that does the same thing but with a lot more accuracy? Strange issue with the right side margin Allowing users to compile / run PLSQL and SQL As a DBA - assuming my users are knowledgeable with PLSQL and SQL - why would I not grant my users privileges to compile and run their own PLSQL code. We have an MI database environment where the data has undergone ETL. The tables contain a large numbers of rows but not necessarily large rows in size. The analysis - will be - I assume of calculus in nature. The users are wanting to run their own code on the data for the purposes of ad-hoc analysis - within their own schemas. They come from a SAS background which from my understanding has allowed them to write and run their own analysis of data. Albeit, SAS runs on its own dataset - extracted from Oracle or elsewhere.  In my opinion this is a dangerous set-up - but without answering my own question - what are the pitfalls? Two icons on Unity Launcher on non-standard application launch I have an application which doesn't come from any Ubuntu repo (neither official, nor PPA) but available as tgz and supposed to be unpacked and ready to use. To be precise it is .   The problem is the  application when launched shows its own icon in Unity Launcher. After making a custom .desktop file and placing shortcut onto Unity Launcher (by dragging from the dash) and launching it I see two icons - one placed by me and another one with real application.  This is the .desktop contents:  [Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=/opt/LightTable/LightTable Name=Light Table Icon=/opt/LightTable/core/img/lticon.png   One more thing. The /opt/LightTable/LightTable is bash script file and eventually /opt/LightTable/ltbin is being launched. I think this is the problem but have no idea how to fix the problem. I've created a new C++ project in Visual Studio 2008.  No code has been written yet;  Only project settings have been changed.  When I compile the project, I receive the following fatal error:     fatal error LNK1104: cannot open file 'C:\Program.obj' Continuity of absolute value of a function Let $f(x)$ be a continuous function. Prove that $\left|f(x)\right|$ is also continuous.  Is it correct to say that, by the reverse triangle inequality, $\left|f(x)-f(c)\right| \geq \left|f(x)\right|-\left|f(c)\right|$ in all cases, so we will always have that for all $\left|x-c\right|&lt;\delta$ implies $\left|f(x)-f(c)\right|\leq \epsilon$?  I am not sure if my solution adequately uses the functional form, since I just used the equation and not my actual function. Please help with the proper solution! It is common to see things described as the &quot;gold standard&quot;. It means that something is the best and is the ideal against which other things are to be compared; it cannot be superseded. I often , where a certain diagnostic test (e.g., the nasopharyngeal swab PCR test for infection with the Coronavirus causing COVID-19) is considered the most accurate and then other tests (e.g., cheaper or faster tests) are then evaluated against this benchmark. The etymology is covered in . In short, it is derived from the . Thus gold was the thing against which the value of all other currencies was measured. I don't like this term and would like to avoid using it. First, the desired meaning is not predominant; if you  you will mostly get results for the monetary system, not the more general phrase. Second, the etymology is outdated; the original meaning of the term now has the opposite connotation. The monetary gold standard was abandoned in the 1970s. Economists consider the gold standard to be a bad monetary system. Thus, if you are interested in economics and history, the term &quot;gold standard&quot; actually is associated with being outdated and flawed -- which is close to the opposite of the intended meaning. (Of course, many people are unaware of the original meaning of the term. ) (A note in response to comments: Why I want to avoid this term is relevant, but not essential, to the question. If you don't see a problem with the term, the question can be answered regardless.) My question: Is there a better phrase to use in place of &quot;gold standard&quot;? For example, what term could be used in a medical study comparing a new diagnostic test against the gold standard test? I'm not aware of any good substitute that has essentially the same meaning. Here are two example sentences where I would like a replacement:   A nasal swab is the gold standard for diagnosing COVID-19.     The  served as the gold standard for all scales from 1889 until 2019.   The best substitute I can think of is &quot;official,&quot; as in &quot;a nasal swab is the official way to diagnose COVID-19&quot;. &quot;Official&quot; implies some form of uniqueness. But &quot;official&quot; implies the existence of some authority that gives it this designation (as opposed to scientific consensus). A  asks for a &quot;perhaps humorous&quot; alternative -- the suggestion there, &quot;mother of all&quot;, is not appropriate here. (There is also .)  In response to the answers and comments doubting the premise of this question: I personally have a negative association with the phrase &quot;gold standard&quot; because I know people who advocate for returning to the gold standard or its modern equivalent, , and have discussed the topic at length. Several  US  continue to advocate for a return to the gold standard. Thus asserting that no one will interpret the phrase in terms of monetary policy is simply not convincing. Mathoverflow - why so different Curious why  (se site) doesn't have hot questions list on the right.  It also uses the old stackoverflow design.  Why has this site's design and functionality been abandoned (or at least look abandoned?) How can I prove that every planar graph can be expressed as a union of (maximum) five edge-disjoint forests?  Only thing I can think about is going somehow like the $5$ color theorem but I get stuck in the middle. Or with induction, but still something doesn't fit. Can you help? "Insufficient storage" when trying to install new app Why square the difference instead of taking the absolute value in standard deviation? Subversion Obliterate feature I was just thinking of writing a shell script to implement the obliterate functionality in an easy to do way (externally, using the suggested way, but automated).  Here's what I had in mind:  On the client   svn list -R &gt; file-list. filter file-list in several ways like grep to create a file "files-to-delete", something like a set of grep XXX  file-list&gt;&gt;files-to-delete. transfer files-to-delete to the server using scp.   On the server   Dump the repository svnadmin dump /path/to/repos &gt; repos-dumpfile, this can be kept as a backup too. Filter the dump file, for each word in "files-to-delete", do: cat repos-dumpfile | svndumpfilter exclude $file &gt; new-dumpfile Create a new repository and load the new file to it svnadmin create new-name; svnadmin load new-name &lt; new-dumpfile   Would this work? How can it fail? Any other ideas? cron ignores variables defined in ".bashrc" and ".bash_profile" I have defined "SHELL" variable in /etc/crontab file:  [martin@martin ~]$ grep SHELL /etc/crontab  SHELL=/usr/local/bin/bash [martin@martin ~]$ file /usr/local/bin/bash /usr/local/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800107), stripped [martin@martin ~]$    In addition, all my scripts in /etc/crontab file are started under user "martin". However /home/martin/.bash_profile(for login shell) and /home/martin/.bashrc(for non-logging shell) contain some variables which are ignored in case of cron job, but are used in case I log into machine over SSH or open new bash session. Why cron ignores those variables? Isn't cron simply executing "/usr/local/bin/bash my-script.sh" with permissions for user "martin"? If I can generally reach web pages on the Internet but can't reach a specific one, how do I troubleshoot what the cause is as an end user?       This question was a .   Read the  for more details or  yourself keyboard hard remap keys? Removing all \n\r characters from a node XSLT? wondered if you could help me please? I have node in xml that is as followed  $LOG: 08880xbpnd $ fhdsafidsfsd df sd fsd f sd fsd  I was wondering is there anyway to make all the text go on to one line so that it then can be passsed through to a javascript function? so it would turn out like this   $LOG: 08880xbpnd $fhdsafidsfsddfsdfsdfsdfsd