Can't access domain internally via public IP address

I have a dedicated server running Proxmox and a VM inside Proxmox running  (Wheezy).  As I only have one IP address, I'm using  to forward ports to the VM.  My /etc/network/interfaces:  # The loopback network interface auto lo iface lo inet loopback  # For routing auto vmbr1 iface vmbr1 inet manual     post-up /etc/pve/kvm-networking.sh     bridge_ports dummy0     bridge_stp off     bridge_fd 0   # vmbr0: Bridging. Make sure to use only MAC adresses that were assigned to you. auto vmbr0 iface vmbr0 inet static     address 91.121.<redacted>     netmask 255.255.255.0     network 91.121.<redacted>.0     broadcast 91.121.<redacted>.255     gateway 91.121.<redacted>.254     bridge_ports eth0     bridge_stp off     bridge_fd 0  iface vmbr0 inet6 static     address 2001:41D0:1:A790::1     netmask 64     post-up /sbin/ip -f inet6 route add 2001:41D0:1:A7ff:ff:ff:ff:ff dev vmbr0     post-up /sbin/ip -f inet6 route add default via 2001:41D0:1:A7ff:ff:ff:ff:ff     pre-down /sbin/ip -f inet6 route del default via 2001:41D0:1:A7ff:ff:ff:ff:ff     pre-down /sbin/ip -f inet6 route del 2001:41D0:1:A7ff:ff:ff:ff:ff dev vmbr0  auto vmbr2 iface vmbr2 inet static     address 10.21.21.254     netmask 255.255.255.0     bridge_ports none     bridge_stp off     bridge_fd 0     pre-up echo 1 > /proc/sys/net/ipv4/ip_forward     pre-up iptables-restore < /etc/iptables.rules   The iptable rule looks like so (along with more ports, but they all look the same more or less):  -A PREROUTING -i vmbr0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.21.21.4:80 -A POSTROUTING -s 10.21.21.0/24 -o vmbr0 -j MASQUERADE   There is a site running using , proxied by  all running inside the VM.  My Nginx configuration is:  upstream node {     server 127.0.0.1:4567; } server {     listen 80;     server_name myDomain.co.uk;     location / {         proxy_pass http://node;         proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;         proxy_redirect off;         proxy_buffering off;         proxy_set_header        Host            $host;         proxy_set_header        X-Real-IP       $remote_addr;         proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;         proxy_http_version 1.1;         proxy_set_header Upgrade $http_upgrade;         proxy_set_header Connection "Upgrade";     } }   When pinging my domain, it works fine:  PING myDomain.co.uk (my.ip.address) 56(84) bytes of data. 64 bytes from myHostName.eu (my.ip.address): icmp_req=1 ttl=64 time=0.282 ms 64 bytes from myHostName.eu (my.ip.address): icmp_req=2 ttl=64 time=0.275 ms 64 bytes from myHostName.eu (my.ip.address): icmp_req=3 ttl=64 time=0.284 ms 64 bytes from myHostName.eu (my.ip.address): icmp_req=4 ttl=64 time=0.339 ms   However when trying , it refuses to connect.  curl --verbose myDomain.co.uk * About to connect() to myDomain.co.uk port 80 (#0) *   Trying my.ip.address... * Connection refused * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host   Edit:  I've changed the rules to (as per @FrederikNielsen's advice):  -A PREROUTING -d my.ip.address/32 -p tcp -m multiport --dports 80 -j DNAT --to-destination 10.21.21.4 -A POSTROUTING -s 10.21.21.0/24 -o vmbr0 -j MASQUERADE -A POSTROUTING -s 10.21.21.0/24 -d 10.21.21.4/32 -p tcp -m multiport --dports 80 -j SNAT --to-source my.ip.address   But still no luck. The error has changed to:  * About to connect() to myDomain.co.uk port 80 (#0) *   Trying my.ip.address... * Connection timed out * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host


At or in? What's the difference? Which is more preferable?

Which one is correct and what's the difference?  What would you say if someone asked you what you were doing yesterday:     I was shopping at a convenience store yesterday.       I was shopping in a convenience store yesterday.      I was doing the shopping at a convenience store yesterday.      I was doing the shopping in a convenience store yesterday.   or what you did yesterday:     I did the shopping at a convenience store yesterday.       I did the shopping in a convenience store yesterday.


I accidently ran chown myname /usr -R and now the login screen won't show up! I have tried various things in the root terminal, but nothing works. What can I do?


How can we handle sums of the type:$$\sum_{n=0}^{\infty}\frac{1}{2^{2^n}}$$ It is different from geometric series. Is there any general approach to deal such sums?


Does 2K or 4K media look better than HD on 1080p monitor?

Imagine that I have 3 different quality versions of the same media on my computer.  HD(1080p) version, 2K and 4K versions. And I have 1080p monitor. Can I see any difference between them on my monitor? (The only difference is resolution. Frame rate and any other properties are exactly same.)


Different proofs for infinitude of primes

Euclid first proved the infinitude of primes. For those who don't know, here's his proof:  Let $p_1=2,p_2=3,p_3=5,...$ be the primes in ascending order, and suppose there is a last prime, call it $p_n$. Now consider the positive integer $$P=p_1p_2p_3....p_n+1$$ Because $P>1$, the Fundamental theorem of Arithmetic tells us that $P$ is divisible by some prime $p$. But $p_1,p_2,...p_n$ are the only prime numbers, so $p$ must be equal to one of $p_1,p_2,...p_n$. Combining the divisibility relations $p|p_1p_2...p_n$ with $p|P$, we get $p|P-p_1p_2...p_n$ or equivalently, $p|1$, so $p=1$ or $p=-1$, which is absurd. So $p$ is not one of $p_1,p_2,...p_n$, so the list of primes never ends.  Many people (like me) are not content with only one proof. An alternative proof was given by Euler:  For a prime $p$, the ratio $\frac{1}{(1−1/p)}$ can be expanded into a geometric series: $$\frac{1}{(1−1/p)}=1+\frac{1}{p}+\frac{1}{p^2}+\frac{1}{p^3}+...$$ We will now multiply together these ratios for different primes. To see what can be obtained, let’s look at the product of these terms for the primes $2$, $3$, and $5$: $\frac{1}{1−1/2}\frac{1}{1-1/3}\frac{1}{1-1/5}$ equals $$\left ( 1+\frac{1}{2}+\frac{1}{4}+... \right )\left (1+\frac{1}{3}+\frac{1}{9}+...  \right )\left ( 1+\frac{1}{5}+\frac{1}{25}+... \right )$$ and if we multiply together one term from each series (this is the distributive law for multiplying infinite series, and it is valid when multiplying convergent series of positive numbers) we will get unit fractions $1/n$ where $n$ is a product of powers of $2, 3$, and $5$: $$1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\frac{1}{5}+\frac{1}{6}+\frac{1}{8}+\frac{1}{9}+\frac{1}{10}+\frac{1}{12}+\frac{1}{15}+\frac{1}{16}+...$$ This looks like the harmonic series, but it is missing terms 1/n where n has a prime factor greater than $5$, such as terms $1/7, 1/11$, and $1/14$. If we multiply by additional factors $1/(1 − 1/p)$ for more primes $p$ we’ll introduce into the harmonic-like series new terms $1/n$ where $n$ has prime factors involving the new primes and the ones we already used ($2, 3$, and $5$). Because of unique factorization in $\mathbb{Z}^+$, each term $1/n$ that appears will do so just once. Therefore if we multiply together $1/(1 − 1/p)$ for all the primes, the harmonic-like series turns into the harmonic series: $$\prod_{p\,\text{prime}}\frac{1}{1-p^{-1}}=\sum_{k\geq1}\frac{1}{k}$$ Since the RHS diverges, the LHS also diverges, but since there are only finitely many primes, the LHS has to be convergent, which is a contradiction. So, there are infinitely many primes.  But, I would like to see more proofs. So this question is to give as many proofs as you can. So please give some more proofs. Every answer will be appreciated.


install Ubuntu/Linux on internal hard drive or on external hard drive

I want to install Ubuntu/Linux on my laptop because I really hate windows 10!! I think windows 10 is not totally compatible with the hardware of my laptop or I do not know what happen, but I have several issues such as slow initial booting, it is slow to turn off the laptop and more issues. I have a dell inspiron with 16 GB RAM, 128GBSSD (OS installed there) and 1TB SATA, core i7 and nvidia 4GB, so pretty good stuff for using google chrome and couple other softwares.   I am really decided to change to linux as my OS, but after reading several experiences the best solution is to either dual boot windows and linux or install LInux on a external hard disk. I am not a computer expert, so I need some guidance to know the best option (preserve windows and not mess the internal hard disk) and to install linux.  Thank you.


Difference in performance of 8MB cache and 16MB cache Hard disk

I want to know what are the performance differences between a 8mb cache hard disk drive and 16mb. If i buy one should i prefer 16MB if yes then why?


Select out of a combined view with concatenation not working?

I tried creating a view with two values in one column using +, and the view was created successfully, but when I try selecting all from it it gives me this error:  select *         * ERROR at line 1:  ORA-01722: invalid number    I tried researching this and the concatenation operator but to my dismay have found no help. Here is the code I used to create the view, and the select also.  CREATE VIEW CombinedNameEmployeePhoneView AS SELECT (EMPLOYEE.LastName + ' ' + EMPLOYEE.FirstName) AS EmployeeName, EMPLOYEE.Phone as EmployeePhone from EMPLOYEE;  select *  from CombinedNameEmployeePhoneView;


Since gravity is so similar with the Yang-Mills theory, the Christoffel connection is the gauge potential, the Riemann curvature is the field strength, then why is quantising gravity so difficult when we already have a successful quantum yang-mills theory? I know by dimensional analysis, we can deduce that Einstein theory is not renormalizable. But are there something else truly essential that make quantising gravity so difficult?


Using sed command I want to delete every other three lines from a file which has e.g. 99 lines in total. I mean to keep the first three lines and delete the second three lines and so on.  My starting script is as below:  for i in `seq 1 6 99`; do    sed '$i,${i+2}!d' test.txt > o$i.txt done cat o*.txt > O.txt rm o*.txt   Individual i works fine, likes  sed '1,3!d' test.txt > o1.txt sed '7,9!d' test.txt > o7.txt ...   But it doesn't works inside sed. Would you please let me know where I am doing wrong? Thanks


Suppose that $(a,m,n)\in \mathbb{N}^{3}$, as $a>1$  How can I prove that $a^m-1|a^n-1 \Leftrightarrow m|n$?  I proved that $m|n \implies a^m-1|a^n-1$, but I couldn't prove the reciproque.


I am trying to learn discrete mathematics on my own and have been reading Rosen's discrete math textbook, there is one step in his proof that I do not understand.  Where $<2*k!$ becomes $(K + 1)K!$  he states that $2 < k + 1$ but how is he determining that?  I have attached an image of the proof for viewers to see exactly, it is the second last line of the inequalities.


Cannot upgrade Windows 7 Pro 64bit to Windows 10 on Dell Vostro 3460 (dual boot with Kubuntu)

I am trying to upgrade Windows 7 Pro 64bit in my dell vostro 3460 to Windows 10, however when the instalation procedure is reboots the machine for the first time, it loads Windows 7 again and the setup program gives me the message     The installation failed in the SAFE_OS phase with an error during BOOT operation   and the error codes 0xC1900101 - 0x20017. I have searched the internet for solutions, like updating drivers on the dell website, but nothing works. I do not have an encrypted HDD or similar. I have also tried with a minimal boot and disabling all unnecessary devices in the BIOS (like USB devices and card readers, everything !!). Nothing works.   The only thing different is that i have a dual boot system, Windows 7 and Kubuntu, using Grub as boot loader, but according to the internet, that should not be a problem.  Any ideas on what else can i try to do to get the upgrade going?  UPDATE: This question is not answered by the suggested question in the duplicated tag. The problem was not other that GRUB. Windows 10 installation seems to have problems with grub being the boot loader. I used Windows recovery mode to uninstall grub from the MBR and reinstall Windows 7 boot loader and once i did that, Windows 10 installed flawlessly.


How to install tzdata on a ubuntu docker image?

I have the following line in the Dockerfile.  RUN apt-get install -y tzdata   When I run it, it asks for my input. After I provided my input, it hung there. Does anybody know how to solve this problem?  Step 25/25 : RUN apt-get install -y tzdata  ---> Running in ee47a1beff84 Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed:   tzdata 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 189 kB of archives. After this operation, 3104 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tzdata all 2018i-0ubuntu0.18.04 [189 kB] debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin:  Fetched 189 kB in 1s (219 kB/s) Selecting previously unselected package tzdata. (Reading database ... 25194 files and directories currently installed.) Preparing to unpack .../tzdata_2018i-0ubuntu0.18.04_all.deb ... Unpacking tzdata (2018i-0ubuntu0.18.04) ... Setting up tzdata (2018i-0ubuntu0.18.04) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Configuring tzdata ------------------  Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located.    1. Africa      4. Australia  7. Atlantic  10. Pacific  13. Etc   2. America     5. Arctic     8. Europe    11. SystemV   3. Antarctica  6. Asia       9. Indian    12. US Geographic area: ``


AMD Radeon HD 7600M Series drivers on Ubuntu 18.04 LTS

I have a Samsung laptop a bit old, with Ubuntu 18.04 LTS and an integrated gpu card (Intel HD Graphics 4000), but also a dedicated graphic card : AMD Radeon HD 7600M Series.  The amd driver is not recognized by Ubuntu, only the Intel HD Graphics.  The "additional driver" tool don't help me because he can't find anything..  I don't find the driver for this card on the AMD website.  So, my questions :    can I install the AMD Radeon HD 7610M driver? AMD Catalyst™ 15.9 Proprietary Ubuntu 14.04 x86_64 Video Driver for Graphics Accelerators Revision Number 15.9 - Release Date 9/15/2015.  There arre 4 different files. Which is the good one?   AMD Catalyst™ 15.9 Proprietary Ubuntu 14.04 x86_64 Video Driver for Graphics Accelerators Minimal Video Driver for Graphics Accelerators (Non-X Support)  Video Driver for Graphics Accelerators Devel Files (OGL, OCL)  AMD Catalyst™ 15.9 Proprietary Ubuntu 14.04 x86_64 Catalyst Control Center     I tried a live Zorin OS, and I think the driver was recognized because in the about thing it was written: Intel HD Graphics 4000 / AMD track (I think..). So a driver exists!  Anyone has a solution ?


Energy conservation when light reflects from mirror

Suppose we have a perfectly reflecting mirror which reflects 100% of the light incident on it. When a light beam falls on the mirror normal to the surface it will reflect in opposite direction from where it came. Hence its momentum is changed and also the momentum of the mirror. The light reflected off with the same speed and so its energy will be equal to energy of the light before incidence. But the mirror now, has also gained kinetic energy (because it gained velocity) . So the final energy comes out to be greater than initial energy. From where does this extra energy came into the mirror


Arrays with spaces: do groupinstalls from script

I know, the group names that contains spaces has to be enclosed by quotes and they are, still this does not want to work out as I would expect it:  export instdesk="xterm java-1.8.0-openjdk xrdp tigervnc-server" export grpdesk=(Desktop "Desktop Platform" "General Purpose Desktop" "X Window System" "Legacy X Window System compatibility" Fonts) yumdesk() { for ginstdesk in "${grpdesk[@]}"; do     yum -y groupinstall $ginstdesk done }   Have tried simply just yum -y groupinstall ${grpdesk[*]} still won't work.


Apostrophe in HTML textarea causing PHP error

This is my first ever post on Stack Overflow. I have had a good try with this and a good search for answers, but to no avail. So here goes:  I have made a basic messaging app just for coding practice. Obviously, I want it to be safe from xss so have used "HTMLspecialchars".   The problem: The app works fine as long as no one puts an apostrophe in the message. So the message "Let's go" throws an error:     let's go Error:INSERT INTO chat (msg) VALUES ('Hello let's go')   You have an error in your SQL syntax; check the manual that corresponds to your >MariaDB server version for the right syntax to use near 's go')' at line 2   Here's my code for inputting and sending to mysql:  <!DOCTYPE html>    <?php // define variables and set to empty values  $name = $msg = "";  if ($_SERVER["REQUEST_METHOD"] == "POST") {   $name = test_input($_POST["name"]);   $msg = test_input($_POST["msg"]); }  function test_input($data) {   $data = trim($data);   $data = stripslashes($data);   $data = htmlspecialchars($data);     return $data; } ?>
Messaging Appq
 <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">     Name: <input type="text" name="name" value ="<?php echo htmlspecialchars($_POST['name']); ?> ">

   Message: <textarea name="msg" rows="5" cols="40"></textarea>

   <input type="submit" name="submit" value="Submit">   </form>    <?php $servername = "localhost"; $username = "*********"; $password = "*********"; $dbname = "***********";  // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }  $name=$_POST['name']; $msg=$_POST['msg']; $bothd = $name . $msg;  $sql = "INSERT INTO chat (msg) VALUES ('$bothd')";  if ($conn->query($sql) === TRUE) {     echo "New record created successfully

"; } else {     echo "Error:" . $sql . "
" . $conn->error; } $conn->close(); ?>   So, I know i need to use "ent_quotes". But where should it go? I see the normal syntax is   <?php echo htmlspecialchars($str, ENT_QUOTES); ?>   and I have tried putting "ent_quotes" in the following positions, obviously not all at the same time:   <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES);?>">     Name: <input type="text" name="name" value ="<?php echo htmlspecialchars($_POST['name'], ENT_QUOTES); ?> ">

   Message: <textarea name="msg" rows="5" cols="40" value ="<?php echo htmlspecialchars($msg, ENT_QUOTES); ?>"></textarea>

   <input type="submit" name="submit" value="Submit">   </form>   I also tried adding it to the function:   function test_input($data) {       $data = trim($data);       $data = stripslashes($data);       $data = htmlspecialchars($data, ENT_QUOTES);         return $data;     }   Apologies if I am missing something obvious! I am relatively new to this!


I know that I can negate group of chars as in [^bar] but I need a regular expression where negation applies to the specific word - so in my example how do I negate an actual bar, and not "any chars in bar"?


C++ Using static class function from another header, "class_name" has not been declared

EDIT:thanks for pointing me in the right direction of circular dependency. I tried removing #include "datastructure.h" from Mathfg.h, and I added a "Class ArithmeticTree" in "Matfg.h" to forward declare it, but I get another error inside the CleanExpression function:  cannot convert 'std::__cxx11::basic_string::iterator {aka __gnu_cxx::__normal_iterator >}' to 'const char*' for argument '1' to 'int remove(const char*)'. When I hover over the word "remove", Qt tells me I have "too many arguments". This is on the one line of code that Calculator::CleanExpression comprises.  I am writing a math parser and I have created a header file Mathfg which includes a Calculator class that handles inputs. So far I have a static function called CleanExpression which simply removes whitespace from the input string.  I saw a somewhat similar problem here: , but I could not apply the answers there to my own problem.  (I left out irrelevant sections such as the implementation of the Node struct, but it all works, except for the CleanExpression call.)  Mathfg.h  #ifndef MATHFG_H #define MATHFG_H  #include <string> #include "datastructure.h" using namespace std;  class Mathfg { private:     Mathfg(); };  class Calculator { private:     Calculator(); public:     static void CleanExpression(string& expression)     {         expression.erase(remove(expression.begin(), expression.end(), ' '), expression.end());     } };  #endif // MATHFG_H   Note: I do not use a source file for Mathfg.h.  Datastructure.h  In another header, "Datastructure.h", I fix the input and produce an output. I wanted to call the static function CleanExpression from "Mathfg.h", but I get the error: 'Calculator' has not been declared.   #ifndef DATASTRUCTURE_H #define DATASTRUCTURE_H  #include <iostream> #include <string> #include "mfg\mathfg.h" using namespace std;  struct ArithmeticTree { private:     struct Node     {         // Doing some unrelated stuff here     };  public:     ArithmeticTree()     {      }     ArithmeticTree(string expression_in)     {         Calculator::CleanExpression(expression_in);     // <- Here's the problem!         // Doing some unrelated stuff here     }      // Doing some unrelated stuff here };  #endif // DATASTRUCTURE_H   Note: I do not use a source file for Datastructure.h.  What does work:  In my game loop, I can successfully run this code:   std::string str = "2 +3-4 /      5"; cout << "Cleaning string:\t'" << str << "'\n"; Calculator::CleanExpression(str); cout << "Cleaned:\t\t'" << str << "'\n";   ...which outputs:  Cleaning string:    '2 +3-4 /      5' Cleaned:            '2+3-4/5'   ...but when I try to call Calculator::CleanExpression from within "Datastructure.h" - or more specifically, from within ArithmeticTree's constructor - I get the aforementioned error. I never created a Calculator or Mathfg object anywhere in my code; I just call its static function like I would normally expect it to behave. I am sure I have misunderstood how static functions work in C++, which probably also is the cause of my error.  I would really like some tips on how to go about fixing this problem!  I am using Qt Creator 4.2.1 and MinGW 5.3.0 32bit2.


Get comma separated values and count in mySQL

Tables  Fruits  f_id  | names --------------- 1   |   Apple 2   |   grapes 3   |   mango 4   |   orange 5   |   cherry   Some common table, where I'm storing fruits table f_id is comma separated  or single   common  id  |   f_id    |   m_id ------------------------- 1   |   1       |   7 2   |   1       |   7 3   |   1       |   7 4   |   3,4     |   8 5   |   2       |   7 6   |   5       |   8 5   |   2       |   9 5   |   2,4     |   9 5   |   4,5     |   9 5   |   1,3     |   10 5   |   2       |   10   Now, I want to fetch the data based on m_id. I have m_id 7 if I pass 7 into below query      SELECT COUNT(C.f_id) as count, C.f_id, (select name from fruits where   f_id = C.f_id) as name FROM common C  where C.m_id = 7 group by   C.f_id   Based on my query I'm getting the result   count   |   f_id    |   name ------------------------------ 3       |   1       |   Apple 1       |   2       |   grapes   But, I'm failed when I pass 8 OR 9 OR 10 which has comma separated values and I aslo tried IN() operator and FIND_IN_SET()     SELECT COUNT(C.f_id) as count, C.f_id, (select name from fruits where   f_id IN(C.f_id)) as name FROM common C  where C.m_id = 8 group by   C.f_id   How can I fetch the data as I expected for m_id = 8 (I want as per below, please suggest)  count   |   f_id    |   name ------------------------------ 1       |   3,4     |   Mango, orange 1       |   5       |   cherry


How can I see what version of Linux I'm running?

What's the Linux command that outputs the OS version? Like Winver.exe on Windows.


I know, the Winterbash has ended (it makes me cry everyday) and still asking questions about it is futile. However, I was really fascinated by the mystery surrounding . As far as I know, this was the only hat for which the requirements weren't made public. Now that the party has ended, could someone reveal what were those secret requirements? Or is it a secret to die with? I suspect you'd need to be awarded the hat by a moderator but I like to hope you could gain it via a strange unlikely succession of actions... Please help me sleep at night again! :)


How to understand the LaTeX warning “there were undefined references”?

I am running this LaTeX file through pdflatex and getting these warnings:     latex warning: there were undefined references.   latex warning: label(s) may have changed. Rerun to get cross-reference right.   and also some more warnings like this:     latex warning: reference 'lastpage' on page 76 undefined on input line 3200.   on every page end.  My LaTeX file is like this   \documentclass[a4paper,leqno,twoside]{article}  \usepackage[latin1]{inputenc} \usepackage[english]{babel} \usepackage{multirow}  \renewcommand{\familydefault}{\sfdefault}  \usepackage{color} \usepackage[colorlinks=true]{hyperref} \usepackage{draftwatermark} \SetWatermarkText{EXPERIMENTAL}  \SetWatermarkScale{0.6}  \usepackage{parskip}   \graphicspath{{Figure/}}    \let\oldsection\section  \renewcommand{\section}{\clearpage\oldsection}   \begin{document}      % Issued by {Name, acronym, department, phone}  \issuedby{vrebwr}  % Checked by   \checkedby{-}   % Approved by  \approvedby{-}   % Document title. Use \doctitleShort{} to insert a shorter title in the header.   \doctitle{test numbers with id}   \doctitleShort{document for tests}   % Publish date  \publishdate{\today}     % Titlepage  \frontmatter % Should be on first page  \maketitle     \vspace*{08eX}   \begin{center}    \subsection*{Abstract}    \end{center}    \noindent      it contains information about tests.    \newpage     \mainmatter     % Main pages. This command should be on page 2 or later.     \phantom{phantom}    \cleardoublepage     \subsection*{Change Record}    \begin{itemize}   \item R.1: Initial version.    \begin{itemize}   \item  generation of documentation using the vrebwr     \end{itemize}    \end{itemize}      \cleardoublepage    \setcounter{tocdepth}{2}     \tableofcontents      \cleardoublepage     \section{ How to read the tset information}     \begin{enumerate}      \item information how to read     \item information of tests     \end{enumerate}      \section{test numbers}     \subsection*{1, temperature sensor. }    \addcontentsline{toc}{subsection}{ 1, temperature sensor.}    \subsubsection*{data}    some data regarding test where we performed    \subsubsection*{values}    temperature sensor value here three or more.     \subsubsection*{reason}        why we get like this.      \newpage      \subsection*{2, humidity sensor. }     \addcontentsline{toc}{subsection}{ 2, humidity sensor.}    \subsubsection*{data}    some data regarding test where we performed    \subsubsection*{values}    humidity sensor value here three or more.     \subsubsection*{reason}         why we get like this.    \subsection*{3, pressure sensor. }    \addcontentsline{toc}{subsection}{ 3, pressure sensor.}    \subsubsection*{data}    some data regarding test where we performed    \subsubsection*{values}    pressure sensor value here three or more.    \subsubsection*{reason}      why we get like this.    \newpage   \end{document}   In the above LaTeX file I have around 100 tests. I used the * symbol to eliminate numbering in subsections, because I am using test names with number so there is no need to add numbering. It looks bad in the PDF, so I  tried to add that test name and number in table of contents by using this command:  \addcontentsline{toc}{subsection}{1,temperature sensor.}   When I used this command I am getting errors like as I explained above. I searched and I found some reasons why this error occurred, because of \label{} and \ref{} is not used like that. But I don't know how to use that in my file. Can anyone help me with it?


How to get accurate time stamps from the computer?

I'm working in matlab and I need to get a very precise time measurement. The accuracy I need is at least 1ms (and preferably much better than that). It needs to be a timestamp and not just a duration measurement, because I need it for clock synchronization. Answers for python can also help.  For clarification - I know how to get the current time. My problem is with the accuracy. As far as I know, the "clock" function is not accurate enough.


Change to question invalidates my answer, what to do?

What should I do if a question has changed since I answered it? The other members vote my answer down because it actually doesn't answer the current question.  This kind of editing sometimes happens with  where the OP keeps adding new questions, making my pre-existing answer now incomplete.  But another pattern is when the OP asks an "XY problem" question, an answer points it out, and he changes the question to react to that.  Those answers now not only aren't answers but can look very tangential to people who don't review the edit history.


Nikon EM and Vivitar 35-105mm 1:3:5 (auto zoom) compatibility

I've inherited an old Nikon EM camera and Vivitar 35-105mm f/3.5 zoom lens. I have absolutely zero experience in photography but I wanted to get into it. Would the lens that I have fit on a modern day digital camera body? From what I have seen the lens is the most expensive part of the kit. If I could buy a digital body for cheap that would be awesome.  Thank you!


how to rotate a sphere around centre (x y z)

I have centre of sphere at x y z. now I want to rotate any point (a b c) on the sphere about centre. how can I do it in c++.


I am working with a data set of the mass of plastic found at various sites. At most sites, we found no plastic and so the data is zero-inflated (see histogram below). I want to model the data using variables such as human population, season (etc.) as explanatory variables, but am not sure which model to use. Does anyone have any suggestions?   I have been doing some reading and am not sure if a hurdle model or a zero-inflated model would be best.


Does a rest charge on the surface of the earth emit radiation

Suppose we have an observer $O$ in free fall and electric charge $e$ on the surface of the earth. As $O$ is in inertial frame, Maxwell's equations are valid for $O$. However, according to general relativity the electric charge $e$ is accelerated.  Does the observer $O$ see radiation emitted by the charge $e$? Has any experience been made?


How is a splitting point chosen for continuous variables in decision trees?

I have two questions related to decision trees:   If we have a continuous attribute, how do we choose the splitting value?  Example: Age=(20,29,50,40....) Imagine that we have a continuous attribute $f$ that have values in $R$. How can I  write an algorithm that finds the split point $v$, in order that when we split $f$ by $v$, we have a minimum gain for $f>v$?


Accidentally dropped table from mysql server

I'm new to MySQL, and I accidentally dropped a table with approx 3gb worth of data. Good news, I think I have a backup file .dump. Now is there an easy way to import this file to my MySQL?


How do you find a vector in the form  when only the angle and magnitude are given?  Here is an example where an angle of 80 degrees is given along with a magnitude of 3.


Missing processing toolbox in qgis 3.10.3 for mac

I am trying to understand the basics of QGIS following their online training manual but I can't find the processing toolbox anywhere in qgis 3.10.3 for mac.


Conservation of Angular Momentum in case of rolling with sliding

Say a ball is given an initial velocity $v_i$ on a rough horizontal surface in the positive $x$-direction. The surface provides frictional force $f$ which applies a torque $fr$ (where $r$ is the radius of the ball). Due to the frictional force, there is an acceleration $a$ in the negative $x$-direction and an angular acceleration $\alpha$ in the clockwise direction. After some time $t$, at the instantaneous axis of rotation $O$, the translational velocity becomes equal to $r\omega_f$, i.e., $v_f = r\omega_f$ and the ball starts pure rolling. We get $v_f$ and $\omega_f$ from the equations: $v_f = v_i - at$ and $\omega_f = \alpha t$ We can calculate $\alpha$ from the torque equation: $fr = I_\textrm{com} \alpha$ I have been taught that during this entire process from $t=0$ to $t=t$, the angular momentum of the ball is conserved. Therefore, conserving angular momentum about the instantaneous axis of rotation $O$, we can write, $$mv_ir=I_\textrm{com}\omega_f + mv_fr$$ My question: How are we able to conserve the angular momentum, even though there is an external torque $fr$ acting on the ball (i.e., $\tau_{\textrm{ext}} \neq 0$)?


The Desktop wouldn't appear after my recent update to 13.04

I have a hp 8570w workstation with an Nvidia graphics card.  I did not update my system for a long time fearing that the graphics card would break and by mistake i updated the system recently. As expected it happen, my laptop gets stuck in blank screen when I power on. I am only able to login through tty1 to tty6 and on tty7 it just shows a blank screen and wouldn't proceed to the desktop.  Can someone help me fix this problem ?  Thank you


How to Open .001 .002 .003 and .r01 .r02 .r03 RAR Files

Is WinRAR the same as Linux rar?  Additional features?  Missing features?  Special way of handling files?     Software is available for Microsoft Windows (named WinRAR), Linux...   -wikipedia  The context is files :     Sometimes you'll download a large file and find that instead of the   single file you wanted, your folder is full of .001 .002 .003 or .r01   .r02 .r03 files. These files are part of a split RAR archive. Much   like a zip file, a RAR file is a compressed version of what you   downloaded. Rather than transmit in a single file, it's spread out   over these several files -- usually to speed downloading or to   accommodate the file size limit of a commercial file storage host.   I'm not asking how to unrar files.  I'm asking:  why are these files named so?  Is this a Windows convention, or also Linux?  Is this just a "split" ?  Not inclined to install WINE solely  install QuickPar.   These specific files are named with this pattern:  foo bar - baz.rar.001   complete with the spacees and hyphens between foo, bar, baz.  Not named .r01, just 001.  If that makes a difference.  (?)


Does one ever use apostrophes when writing plurals?

I am writing an essay on blood types and the Japanese culture, and I am not quite sure if my use of apostrophes is correct.  I've read through this article, , but I can't seem to find this situation.  Here is what I have written; is this the correct format?     Type A's are cool, calm, and conscientious. Type B’s are practical, relaxed, and the most unconventional.


How to bind column = value to a PDO statement

I have a Query like this in my PDO statement:  SELECT * FROM table WHERE ? = ? ORDER BY id DESC  I wanted to bind column name to first ? and the value to second ? (column = value)  I tried many things such as below, but they all fail or return empty array (when there should be result)  This returns empty array  $query = "SELECT * FROM table WHERE ? = ? ORDER BY id DESC" $db->prepare($query); $stmt->bindValue(1, $column, PDO::PARAM_STR); $stmt->bindValue(2, $value, PDO::PARAM_STR);   and this one displays an error  $query = "SELECT * FROM table WHERE column = :value ORDER BY id DESC" $db->prepare($query); $stmt->bindColumn('column', $column); $stmt->bindValue(':value', $value, PDO::PARAM_STR);   Column is variable, so i had to bind it and can't put it in query directly.  What am I doing wrong here? I tried many things but no luck...     Please note that I know how to bind values if column is static, my issue is when column is also variable like above.


Fifth year of my PhD and I hate my project. What should I do?

I am a PhD student in mechE. After paying the first year tuition out of pocket, I accepted a PhD project due to desperation for funding. However, after an year I realized that I hate the project. Here I made a mistake of not leaving/changing the project, I just waited out hoping I would like the project. I also asked my advisor a couple for a different project and he did not want to change my project due to sponsor obligations. For some reason I couldn’t assert myself and stayed on. However my hate for the project only grew with time and now I am in my fifth year. I have reached a stage where I absolutely hate the project and don’t know what to do. I can hardly do any work. I feel like quitting everyday and still feel it is wrong to quit this late. I have a very substandard thesis. I am lost and feel stuck, please advise on what to do. Thanks


I have been making my first game, I have a number of levels I was thinking of making, around 20-30 but I'm not sure if this is too many. Is there a hard and fast rule for number of levels to include in a game?


What level spells can my Arcane Trickster 7/Wizard 1 copy into their spellbook?

I looked and can't seem to find my question so here it is.  I have a 7th level rogue trickster, who has prepared 2nd level spells and 1st level spells. These of course are all spells known so he can cast them at any time. Now he took up a 1st level wizard class. He found some new spells from a spell book.  Can he learn and prepare 2nd level spells because his casting level is high enough or can he only prepare 1st level spells because his wizards highest level casting is level 1. If so he could prepare in addition to his spell known of 2nd level. Same goes for 3rd level and so on.  DND 5E  Characters levels Int 19 +4 Rogue trickster 7th level Wizard 1st level  Rogue has Spell slots 3 cantrips, 4 first level, and 2 second level spells. Spells known 5 Wizard has Spell Slots 3 cantrips, 2 first level spells, Prepared 5 spells unlimited spell can be transcribed.  Combined they have a spell caster level of 3rd level 3rd level 4-first level spells and 2 second level spells.  Can a rogue 7, wizard 1 transcribe spells of second level into his or her spellbook and prepare them to cast even though his wizard level is not high enough to prepare them his overall caster level is.


Set layer visibility using QgsMapCanvasLayer in QGIS 3?

How should one migrate code using QgsMapCanvasLayer to set layer visibility?  The  didn't say that QgsMapCanvasLayer is removed or replaced by another class. Yet, it is not listed in the  page either.   For qgis 2 code to set layer visibility :  ml = QgsMapCanvasLayer(lyr) ml.setVisible(False)   Does it require certain importS in QGIS3 or should it be replaced by something else?


Maximum Electron Speed Around an Atomic Nucleus

At what element do we hit a wall because of the electrons relativistic speed?  i.e. the speed of the outer shells can go no faster?


2 objects use the same mesh; how to separate?

I don't know how I ended up with 2 objects that share the same mesh (Cube.143) in my bench model; I want to have a unique mesh for each. Suggestions welcome. thanks  ps: I can't find any apparent linkage between the two objects.


I am building a village in minecraft and in this village is a little restaurant called Ichiraku's Ramen what i want is when someone walks in it says Hi welcome to ichiraku's ramen, and another command block to say what would you like. but only with a 5 block radius. Please Answer.


I am pretty sure that I had an associated Meta account in Stack Exchange already and I have also asked a question. (Though it was marked duplicate and I am not able to search for that question anymore. Maybe it was deleted too?)  But today, when I came here, it asked me to sign-up again and re-associate with my account.  Was my account deleted for some reason in Meta? I don't see any reason if so, because all other Stack Exchange sites are perfectly fine.


Python 3 variable scoping (2 test cases): Is y4 a local variable? Is y4 being referenced before assignment?

The following code was more unpredictable than I had expected.  Test case 1:  # Line with print is OK:  y4 = 0      def G6():     print(f"y4={y4}")  G6()   Output: y4=0  Test case 2:  # Line with print throws error this time: # UnboundLocalError: local variable 'y5' referenced before assignment # But why exactly? If y5 is a local variable, then y4 (above) should be too, IMO. # Is y4 (above) even a local variable? Is y4 (above) also being referenced before assignment, or not?  y5 = 0      def G7():     print(f"y5={y5}")     y5 += 2  G7()   Output on the line print(): UnboundLocalError: local variable 'y5' referenced before assignment  Can this python behavior be rationalized?


Are quantities of units considered singular or plural?

Whenever I recite recipes or measurements in my head, the quantity of units is usually plural, but I find myself using singular verbs. For instance, "three cups of butter yields 12 batches" or "when measuring speed, five people gives a 20% increase." I figured that since three cups is obviously plural, it should be "three cups of butter yield 12 batches" and "when measuring speed, five people give a 20% increase." But that just doesn't sound right at all, to my ears at least. This might also just be a poor understanding of English on my part, since I didn't grow up with fluent English speaker, but I'm certain that I've heard other people (including my grammar puritan English teacher) talk like this before.


What is the likelihood of any side of a die appearing more than 200 times after 1000 dice rolls? It seems like I need to figure out the standard deviation for this but not sure how to do this. I know the expected amount of times a number pops up is 1000/6, but how do I calculate the standard deviation and variance?


Piggyback Ubuntu Desktop on Peppermint laptop wifi

As of late,i have had some real wireless USB problems and i've decided to just try and use the piggyback-a-laptop method, i have an Ethernet cord, a ubuntu 15.04 Desktop and a Peppermint 5 laptop.  i've tried the usual methods, i have not done any IP address and i am kinda frustrated.  ALL help is greatly appreciated


Is $C^1[a,b]$ with the norm   $\left \| f \right \|_1=(\int_{a}^{b}\left | f(t) \right |dt)+(\int_{a}^{b}\left | f´(t) \right |dt)$ a complete space?  I thought with parabolas based on this link , but the area is infinite .  Thanks.


Obtain user and kernel time of a running process?

Is there way to determine using standard Linux/Unix tools how much a process has spent in User mode and how much waiting for kernel?  In other words, exactly the "user" and "sys" values that you get when using time, but during process runtime?  NOTE: one way is to use WBEM and enumerate Linux_UnixProcess, but I need to use other tool than this; my aim is to verify what WBEM provider tells me, i.e. I need to use different tool.


I execute a sed command in my script:  sed -i "${1}s/${2}=.*/${2}=${REPLY}/" $3   this is the echo:  sed -i 13s/log4j.appender.ROOT2.File=.*/log4j.appender.ROOT2.File=/app/TET/log.log/ /applis/DIAPASON/diapason1/conf/log4j.properties   My error:  sed: -e expression n°1, character 61: unknown option fors`'


Why is variance defined as the expected value of difference squared?

As I understand it, variance of a random variable is defined as follows:  \begin{equation} \text{Var}(X) = \text{E}[(X-\mu)^2] \end{equation}  $X-\mu$ is obviously the difference between the value of the random variable and the expected value of the random variable.   Why don't we define variance as  \begin{equation} \text{Var}(X) = \text{E}[X-\mu] \end{equation}   To me, this would make more sense because it would express the difference between the expected value and the value it takes...which to me sounds like variation.   Why do we use the $(X-\mu)^2$ instead?


Contruct a surjective homomorphism $\phi: S_4 \to S_3$

Honestly I don't know how to come up with a way to explicitly write a surjective homomorphism $\phi: S_4 \to S_3$  What I do know (which is what I did):   Showed that $S_4/H \cong S_3$, where $H$ is a normal subgroup of $S_4$. Since $|S_4/H| = \frac{|S_4|}{|H|} = |S_3| \implies \frac{24}{|H|} = 6 \implies |H| = 4$. Since a normal subgroup can be written as the union of (some) of the conjugacy classes of (in this case) $S_4$, I write them down and found out (after proving that $H$ is indeed a subgroup) that $H = \{e, (12)(34), (13)(24), (14)(23) \}$, which is the Klein-$4$ group (I didn't know about Klein groups before this problem (: ). Then by the theorem of homomorphisms $\exists$ surjective homomorphism $\phi: S_4 \to S_3$, such that $\mathrm{Ker}(\phi) = H$.   And here I'm stuck. By googling I found material ( and ), where showed that the (surjective) homomorphism exists (if I didn't misunderstood what it's written there) by conjugating the elements of $H$ by those of $S_3$. But   On what basis they decided that conjugation is a good idea to show that the homomorphism exists? From what it's written there (if possible) how can one write down and explicit function $\phi$ or it's not necessary?


In the background is a white wall or in the background there is a white wall?


I recently built a one-page-site, All main pages are loaded via ajax, so they exist as standalone too versions as well in HTML format  through jQuery, only pages' content is loaded in the one-page-site.  I have created a sitemap and submitted all these things to Google Webmaster Tools, which tells me that everything is fine and pages are indexed and not blocked  I also posted the site URL in some specific forums where people talk about main product (Chirofol); a Facebook page is also to be released soon  Despite all these things, when I type "chirofol" on Google, the site is not even in the first three or four pages, and this is simply driving me mad.


Does anyone know if there's a way to have Illustrator CC (2014) constrain control points to the pixel grid? I understand that "Align to pixel grid" makes it so that a shape will try to match the pixel grid, but the actual control points don't line up to said grid... The image I've attached illustrates my problem.


Wrong pluralization on accounts tab of user profile

Under accounts tab of a user's profile, words questions and answers are used even when count is 1. For live example, you can go to my profile & click accounts tab. Scroll down to Drupal Answers row where you can find "1 answers" which should be "1 answer". Or, scroll down to Server Fault row to see both "1 questions" and "1 answers".


Is there an easy way to reproduce pre-1.8 Adventure gamemode block handling rules in 1.8?

In Minecraft 1.8, the Adventure gamemode is much more configurable than it has been in previous versions. However, by default, players cannot break or place blocks at all. In previous versions, players could break blocks given the proper tool (e.g., a player could break stone if they had a pickaxe), and place blocks freely. Is there a way to reproduce this old behavior in Minecraft 1.8?


How to include graphics with spaces in their path?

I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces.   also discusses this subject, but there is no solution there.  My compilation routine is latex->dvips->ps2pdf (because of PSTricks).


Captain America and Iron Man both had worked together in Avengers and Avengers 2,  What lead to the fights between Iron Man and Captain America in Captain America: Civil War?


cannot make sublime text 3 work on ubuntu 14.04

Downloaded different versions and from different places, still cannot get it work on 14.04. I could get it to run successfully on OS X and Ubuntu 12.04.  drwxrwxrwx  5 root    root       4096 Sep  5 17:14 ./ drwxr-xr-x 10 root    root       4096 Aug 19 17:39 ../ drwxr-xr-x  3 root    root       4096 Aug 26 20:51 opt/ drwxrwxr-x  4 achippa achippa    4096 Aug 26 20:50 sublime_text_3/ -rw-r--r--  1 achippa achippa 7557246 Sep  5 17:14 sublime_text_3_build_3065_x64.tar.bz2 -rw-r--r--  1 achippa achippa 6369566 Sep  5 16:53 sublime-text_build-3065_i386.deb drwxr-xr-x  4 root    root       4096 Aug 26 20:51 usr/ achippa@ubuntu:/usr/local/src$ cd sublime_text_3/ achippa@ubuntu:/usr/local/src/sublime_text_3$ ./sublime_text  -bash: ./sublime_text: cannot execute binary file: Exec format error achippa@ubuntu:/usr/local/src/sublime_text_3$ /usr/local/bin/subl Unable to load libgdk-x11-2.0.so Unable to load gdk_cairo_create from libgdk-x11-2.0.so Unable to load gdk_cursor_new_for_display from libgdk-x11-2.0.so Unable to load gdk_cursor_unref from libgdk-x11-2.0.so ...   With i386.deb I see a bunch of unable to load... errors. With x64_tar.bz2, I see an Exec format error. Which is the right file to download for 64-bit Ubuntu 14.04.


Is it an open problem? (Sums of squares)

Has it been proven that if n can be represented as a sum of squares of two rational numbers, then it can also be represented as a sum of squares of two integers? This is a relatively simple statement, but I haven't found a simple proof for it, at least not yet. If it has been proven/is known to be true, does it require very advanced mathematics to prove it?


The differential equation $y''+xy=0$ is given.  Find the solution of the differential equation, using the power series method.  That's what I have tried:  We are looking for a solution of the form $y(x)= \sum_{n=0}^{\infty} a_n x^n$ with radius of convergence of the power series $R>0$.  Then:  $$y'(x)= \sum_{n=1}^{\infty} n a_n x^{n-1}= \sum_{n=0}^{\infty} (n+1) a_{n+1} x^n$$  $$y''(x)= \sum_{n=1}^{\infty} (n+1) n a_{n+1} x^{n-1}= \sum_{n=0}^{\infty} (n+2) (n+1) a_{n+2} x^n$$  Thus:  $$\sum_{n=0}^{\infty} (n+2) (n+1) a_{n+2} x^n+ x \sum_{n=0}^{\infty} a_n x^n=0 \\ \Rightarrow \sum_{n=0}^{\infty} (n+2)(n+1) a_{n+2} x^n+ \sum_{n=0}^{\infty} a_n x^{n+1}=0 \\ \Rightarrow \sum_{n=0}^{\infty} (n+2)(n+1) a_{n+2} x^n+ \sum_{n=1}^{\infty} a_{n-1} x^n=0 \\ \Rightarrow 2a_2+\sum_{n=1}^{\infty} \left[ (n+2) (n+1) a_{n+2}+ a_{n-1}\right] x^n=0$$  So it has to hold:  $$a_2=0 \\ (n+2) (n+1) a_{n+2}+a_{n-1}=0, \forall n=1,2,3, \dots$$  For $n=1$: $3 \cdot 2 \cdot a_3+ a_0=0 \Rightarrow a_3=-\frac{a_0}{6}$  For $n=2$: $4 \cdot 3 \cdot a_4+a_1=0 \Rightarrow a_4=-\frac{a_1}{12}$  For $n=3$: $5 \cdot 4 \cdot a_5+a_2=0 \Rightarrow a_5=0$  For $n=4$: $6 \cdot 5 \cdot a_6+a_3=0 \Rightarrow 30 a_6-\frac{a_0}{6}=0 \Rightarrow a_6=\frac{a_0}{6 \cdot 30}=\frac{a_0}{180}$  For $n=5$: $7 \cdot 6 \cdot a_7+ a_4=0 \Rightarrow 7 \cdot 6 \cdot a_7-\frac{a_1}{12}=0 \Rightarrow a_7=\frac{a_1}{12 \cdot 42}$  Is it right so far? If so, how could we find a general formula for the coefficients $a_n$?  EDIT:  Will it be as follows:  $$a_{3k+2}=0$$  $$a_{3k}=(-1)^k \frac{a_0}{(3k)!} \prod_{i=0}^{k-1} (3i+1)$$  $$a_{3k+1}=(-1)^k \frac{a_1}{(3k+1)!} \prod_{i=0}^{k-1} (3i+2)$$  If so, then do we have to write seperately the formula for the coefficients of $x^0, x^1$, because otherwhise the sum would be from $0$ to $-1$ ?


Function Overloading on prototype Javascript?

I wanted to know if we can overload a function on prototype object in JavaScript?          function Person(name, family) {   this.name = name;   this.family = family; }  Person.prototype.getFull = function() {   return this.name + " " + this.family; };  Person.prototype.getFull = function(someParam) {   return this.name + " " + this.family; };   var p =  new Person(); p.getFull(); p.getFull(someparam);


Why did Anakin lose against Obi-Wan in "Episode 3 - Revenge of the Sith"?

In the climactic scene, where Obi-Wan and Anakin are dueling with their light-sabres across a wide range of platforms (moving rafts, on precarious ledges etc) without the slightest awkwardness - why is it that when Obi-Wan got a slightly higher ground than Anakin (and even explicitly pointed this out), did Anakin lose the fight so spectacularly?   Anakin could have   Walked/run up the incline Used his Jedi powers to engage Obi-Wan at a distance Do a host of other things, instead of leaping in a way that would make him a sitting duck   I'm just curious: having a "high ground" generally makes for an advantage for "normal" battles involving projectiles (an arrow fired with the same force would cover more distance from a higher position to a lower position, than vice-versa), where participants are subject to laws of physics.  Is this not the same with Jedi battles?  It'd be nice to know if there is an explanation that fits within the scope of the story.


Other (related) nodes with the same taxonomy block grouping problem

Quick view: I want to create a views block that lists all other nodes that have the same taxonomy term(s) and I want to group the related nodes by term.    I have trouble while doing this:  The content type has some taxonomy terms fields and one of them is my_taxonomy_field. I can enter multiple values to this field.  What I basically want is to show all other nodes tagged with the term(s) on this node and group them by terms. I could do this by contextual filters (content: has taxonomy term ID + ) as explained  or .    Let me explain:    This is my node list:   NODE 1 taxonomy term field: term 1, term 2, term 3 NODE 2 taxonomy term field: term 3, term 4 NODE 3 taxonomy term field: term 5, term 6, term 7 NODE 4 taxonomy term field: term 6, term 7 NODE 5 taxonomy term field: term 1, term 3 NODE 6 taxonomy term field: term 1 NODE 7 taxonomy term field: term 8 NODE 8 taxonomy term field: term 2, term 9     Let's look at NODE 1, it has these terms: term 1, term 2, term 3  And the terms are tagged on that nodes:  term 1: node 1, node 5, node 6  term 2: node 1, node 8  term 3: node 1, node 2, node 5    This is the related nodes block based on the taxonomy term field:   node 1 (excluded) node 2  node 5  node 6  node 8     I want to group them by terms as that (note that current node (node 1) excluded):  BLOCK   TERM 1   node 5 node 6  TERM 2   node 8  TERM 3   node 2 node 5      I tried to this with that way: views -> style -> settings (grouping field) and I selected the taxonomy term field. It does what I want, not what I want actually, more than what I want because it creates a views block as that:  BLOCK   TERM 1   node 5 node 6  TERM 2   node 8  TERM 3   node 2 node 5  TERM 4   node 2  TERM 9   node 8      This views doesn't add any (irrelevant) nodes to the list, the nodes are the same with the un-grouped one but because node 2 and node 8 are tagged with other terms, other terms listed here.    How I could list related nodes as grouped but without this 'unwanted' terms, with only the terms in the current node?  (Note: I'm working on both two ways mentioned above, these are the screenshots of them):    :


Is there any statistical test to confirm if a dependent variable converges to a value as the independent variable approaches infinity?

I have a very large set with 40,000 elements, and the dependent variable appears to approach a value as the independent variable goes to infinity. Is there any test I can perform to confirm if this is true?  I have considered using a chi square independence test and a linear regression test, but I do not know if these are the most appropriate tests for this case. Can someone please help?


I've been playing Counter-Strike: Global Offensive for about a month and never got a case. I've even tried idling. Do you have to be MVP? How does it work for CS:GO?


Identify an SF short - humanity alone in universe.

I could have sworn this story was by James White, but I can't ID it if it is.    Basic premise, story opens with a guy waiting for a starship to arrive.  It had been sent out decades before as part of a search to track down an alien race that had left traces on an extra-solar planet.  This was the only race we had found evidence of.  All other ships had returned with no success.  This ship was the last.  Ship comes in, crew exits.  They either didn't find anything or they found the other race's home planet and they were extinct.  (Don't remember.)  Humanity is alone in the universe.  Only distinctive element I recall is one of the crew had memorized the Bible during the round trip.


What is a Pythonic way to pad a numeric string with zeroes to the left, i.e. so the numeric string has a specific length?


For awhile or In awhile- Would you say I haven't moved in awhile or for awhile when referring to traffic

Which one would be correct: I haven't moved in awhile or for awhile when referring to traffic- i need a clearer explanation for- for awhile and in awhile


I have a bug-problem with the apt-packages of emacs:  >>Error occurred processing debian-ispell.el: File error (("Opening input file" "no such file or directory" "/usr/share/emacs23/site-lisp/dictionaries-common/debian-ispell.el")) >>Error occurred processing ispell.el: File error (("Opening input file" "no such file or directory" "/usr/share/emacs23/site-lisp/dictionaries-common/ispell.el")) >>Error occurred processing flyspell.el: File error (("Opening input file" "no such file or directory" "/usr/share/emacs23/site-lisp/dictionaries-common/flyspell.el")) emacs-install: /usr/lib/emacsen-common/packages/install/dictionaries-common emacs23 failed at /usr/lib/emacsen-common/emacs-install line 28, <TSORT> line 30. dpkg: error processing emacs23-lucid (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of emacs:  emacs depends on emacs23 | emacs23-lucid | emacs23-nox; however:   Package emacs23 is not installed.   Package emacs23-lucid which provides emacs23 is not configured yet.   Package emacs23-nox which provides emacs23 is not installed.   Package emacs23-lucid is not configured yet.   Package emacs23-nox is not installed. dpkg: error processing emacs (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.          Errors were encountered while processing:  emacs23-lucid  emacs E: Sub-process /usr/bin/dpkg returned an error code (1)   In fact I would be satisfied with just emacs23-nox, a couple of plugins - from apt. But I can neither --purge nor --purge reinstall, nor remove the packages. It always processes until this certain bug. I did some google-searching, found some stuff on Launchpad suggesting:  sudo apt-get install --reinstall --purge emacsen-common   But this is the same... so I hope there a way to tell app to just remove everything releated to emacs, and to start from scratch again?  Thanks, Marius


Will the new Fantastic Four movie be a part of the Marvel Cinematic Universe?

I was just wondering about that because all the actors and actresses would have to stick this time. The only reason Chris Evans got to portray another character in Marvel was because the Fantastic Four movies weren't that good, and they were produced by Fox. But now if the new movie is under the Marvel Cinematic Universe umbrella, then they won't be able to change anything later on.


Is there a 'mechanical' explanation for the right-hand rule?

So why is for example the magnetic field orientated counterclockwise when the electrons are going down in a current wire (or current going up)? Why is the magnetic field not going clockwise, is there a more fundamental reason for?  Probably why-questions are often not appropriate in physics but perhaps sometimes you can ask for deeper causes?!


I want a date object I can just sprinkle throughout my document at any moment. For example, I might type "Today (\date) happens to be quite nice."


Folks,  below is my code,  <apex:inputtext value="{Account.Name}" rendered="True"/>  <apex:commandbutton>   am not using controller here, so i want to change the value to rendered="False" using javascript. is it possible to change rendered="False" using javascript?


Explaining "ground" and grounding as simple as possible

I am a student of electronics, I am also new to it but I am interested in the whole world of electronics. I've managed to get a hang of everything for now without much of a problem. But there is one thing, ground. They never truly explained to us what ground is except a discharge of electricity in real ground. I would like to ask the community to help me out as simple as you can so I can intuitively know what ground is and how it works exactly. Thank you on your time guys! P.S. I got this problem when learning about a breadboard online and didn't acctualy understanded how do you ground something on a breadboard.


How to "ungroup" windows from an icon on the launcher?

When I have more than one instance of a program running and I minimize all of them, they are grouped in a single icon on the launcher. For example, I'm chatting with three people on Emesene: Joe, Mary and Paul. Then I minimize all three windows and they are grouped in the same Emesene icon on the launcher. Then, if I want to restore only Joe's window, I can't because if I click on the Emesene icon on the launcher, it restores all three windows automatically (or it shows that animation with all open windows available for me to choose - but this is laggy for me here - probably my computer - so it's useless).  I'd like to know if there's any way to either "ungroup" windows, showing a separate icon for each of them, or have a kind of a "context menu" or a quick list, showing a list of all grouped windows so I could choose and click on the one I want only.  If I can disable windows grouping, excellent. I think that would be better. If not, I thought of something like this...   Right-click on the icon with grouped windows. A menu appears showing all windows available: Restore all, Joe, Mary, Paul. I pick what I want from the list and the window(s) is(are) shown.   That's it. Does this exist yet? If so, please, could you help me find it or do it?


Rendered and Material Preview shows flat dark texture but Solid does

Anytime I try to view an object in Material Preview and Rendered View, it goes the same dark grey colour of the world. Or gives me weird colourful lights when I move around the object. I can view textures in solid view.  Files that have rendered correctly in the past do not anymore. When I try rendering an object, it will appear transparent   For reference here's how the render turned out.  I've tried this in both fresh installs of Blender 2.91 and 2.83.10 LTS. I suspect this is due to my graphics card (a fairly old 4GB RX 580) as this started happening after a driver update and I've used both versions of Blender without issue. I honestly have no idea what to do other than to roll back to a previous graphics driver. Any help would be appreciated.


Escaping single quotes **with** an alias

I am aware that there are many questions asked in the past about escaping single quotes, but none of them addresses this challenge, i.e how to do it with an alias.  I have already successfully defined many aliases to replace sed/awk/grep/perl commands which use regex in the last release of bash (4.4.0(1)).  For instance, the following alias can escape double quotes in any string:  alias esc_double_quotes=$'sed \'s|"|\\\\"|g\'' string="JC's alias to escape \"double quotes\"" echo "$string" | esc_double_quotes JC's alias to escape \"double quotes\"   However, when it comes to escaping single quotes with an alias, it seems that the mission is impossible.   I have already tried 5 different methods which all fail for different reasons:  # 1) My first technique alias esc_single_quotes=$'sed \"s|'|\\\\'|g\"' # 2) My second technique alias esc_single_quotes="sed 's|'\''|\\\'\''|g'" # 3) My third technique alias esc_single_quotes="sed \"s|'|\\\\'|g\"" # 4) Technique inspired from http://stackoverflow.com/questions/1250079/how-to-escape-single-quotes-within-single-quoted-strings?answertab=active#tab-top alias esc_single_quotes='sed '"'"'s|'|\\\\'|g'"'" # 5) Technique inspired from http://stackoverflow.com/posts/1315213/revisions alias esc_single_quotes='sed '\''s|'|\\\\'|g'\'''   Would anyone live up to this impossible challenge & prove me wrong?


By creating a Console application (Console Application) with .Net; Netstat -a -n command via Windows cmd will read the output and write a "json" file type application in the following format, where the port and its Associated Address (Foreign Address) are only foreign ip,


Is there any way to force Git into treating it as a file move? (delete and move)

I started by creating a new file, then manually moving it, and then modifying it. It's both a new and removed file, according to Git. Is there a way to make Git handle it like a file transfer?


Why is there a difference between the badge votes on the Stack Exchange Android app and desktop Stack Overflow page

I notice that the Android Stack Exchange app shows my SO  and  tags have upvote scores of 111 and 103 respectively but via my desktop browser it shows that I have 108 and 100 respectively. This difference has lasted for over 4 days, is there a lag or difference in the calculation? All other tags have correct scores and number of answers posted.


So I have two flash drives in, one is running Ubuntu as a live cd and I'm using that to install Ubuntu on the other. I've gone through the download process, clicked on "something else" and now I have to partition my flash drive. I don't know how to do this. What exactly do I do now?    Thank you guys so much! That link helped a lot, I'm just not sure if I have quite the right amount of space partitioned to each thing(I'm using a 14gig flashdrive) but I think I'm close enough. Does it matter if the colors that show how much space is is used are swapped with the ones in the link?


Tab switching for google chrome via mouse wheel for latest versions of chrome?

There have been a lot of updates since the last answered question on this topic, including removal of the chrome toolbox from the extension site.  While I have been able to, for some time, continue to have my tabs scroll by manually porting chrome toolbox and enabling it.  However, recently this method has stopped working.  I would rather not have to bind the ctrl+tab and ctrl+shift+tab to my mouse up/down as it would not allow me to scroll when over the page itself.  I know one of the reasons that this was removed was that it interferes with youtube playback somehow, but I rarely use youtube and this functionality is more important to me.  Is there any current and reputable extensions that will provide this functionality?  Is there a way to enable and/or modify the browser myself in order to achieve this?


C++:: #include:ing template class header file in multiple source files?

I am using this class with--all except for one--template member functions, which will be used in a project with multiple source files which get linked on compilation. The template type is unknown and can take just about any type to it. In this case I have two source files which use the class, therefore the header file with the class declaration and definition is #include:ed in both source files. I then get the error "multiple definition" at the non-template member function declaration of the class. I presume that is because it is being defined twice during the linking process since both source files have a definition of the non-template member function. Imagine the non-sense scenario below:  Note: Assume all files are include guarded and iostream is #include:ed wherever required.  foo.hpp  class foo { public:     template <typename X>     void f(X);      void ff (); };  #include "foo.tpp"   foo.tpp  template <typename X> void foo::f(X val) {     cout << val; }  void foo::ff() // multiple definitions {     cout << sizeof(*this); }   main2.cpp  #include "foo.hpp"   main.cpp  #include "foo.hpp"  int main() {     return 0; }   Adding the inline keyword to the function definition seems to solve this error, though I don't want to use it because I've got other non-template member functions suffering the same issue which are way larger and are referenced in multiple parts of the code. Is there any work-around or valid way to do what I'm trying to do? Thanks in advance!


How to move the axes in front of plots? The example below produces plots which are blocking the axes. I want those plots to be behind the axes.   \documentclass{article} \usepackage{paralist,pst-func, pst-plot, pst-math, pstricks-add,pgfplots} \usetikzlibrary{patterns,matrix,arrows} \begin{document} \begin{tikzpicture}     \begin{axis}[axis lines=center,clip=false,xmin=-4,xmax=4,ymin=0,ymax=1]      \addplot[color=lime,fill=lime, samples=100] {1/sqrt(2)*exp(-(x+1)^2/1)} \closedcycle;     \addplot[color=cyan!40,fill=cyan!40, samples=100] {1/sqrt(2)*exp(-(x-1)^2/1)} \closedcycle;     \end{axis} \end{tikzpicture} \end{document}


Express a matrix $A$ as the sum of a symmetric and a skew symmetric matrix

I'm trying to express   $$A = \left[ \begin{array} { r r r } { 2 } & { - 2 } & { - 4 } \\ { - 1 } & { 3 } & { 4 } \\ { 1 } & { - 2 } & { - 3 } \end{array} \right]$$  as the sum of a symmetric and a skew symmetric matrix.  So far I have tried this:  converting into transpose  $A ^ { \prime } = \left[ \begin{array} { c c c } { 2 } & { - 1 } & { 1 } \\ { - 2 } & { 3 } & { 4 } \\ { - 4 } & { 4 } & { - 3 } \end{array} \right]$  well this dont seem to be symmteric matrix according to me. are there steps to be taken.   and for skew symmteric matrix i tried to do like this   transpose of equation  $A ^ { \prime } = \left[ \begin{array} { c c c } { 2 } & { - 1 } & { 1 } \\ { - 2 } & { 3 } & { 4 } \\ { - 4 } & { 4 } & { - 3 } \end{array} \right]$  took minus as common  $A ^ { \prime } = \left[ \begin{array} { c c c } { - 2 } & { 1 } & { - 1 } \\ { 2 } & { - 3 } & { 2 } \\ { 4 } & { - 4 } & { 3 } \end{array} \right]$  can you guide me how to proceed with them


How might I determine whether $\sum_{n\ge0}\frac1{2^{2^n}}$ is rational?  I have seen in the answers to  that the sum converges and it was also mentioned that this is called Kempner's number.  mentions this under the name Fredholm number.


Radio antenna producing waves in the visible spectrum

If a radio could produce waves in the visible light spectrum, what would the result be?  This is a thought experiment that I've pondered for a few years now.  I realize there are a few/many real-world constraints, but if we lifted these constraints for the sake of thought, what could we expect?  Personally, I don't see why we wouldn't observe visible light emitting from the antenna, disregarding any light from Blackbody Radiation.


I am looking for the best font for not only programmers but all people which are "forced" to sit long hours in front of a computer and staring at screen. I expect less distraction, less eye tiredness, more readability etc. than anything casual/default.  Does exist some font with verifiable attributes suitable for usage during long hours programming / scripting?   Is Inconsolata a good choice?


Getting into grad school with a bad record.

So I'm currently in junior year of my undergrad as an Electrical Engineering major. As of this moment my GPA's 3.25; however, throughout my college career I've had to retake courses multiple times in order to get passing grades, and I still have some B's and C's. I plan on talking to advisors for grad school but at this rate it feels pointless to even consider thinking about applying in the future. Especially because the classes I retook were classes I initially failed, and because sophomore and freshmen year I was a different major (Biology) so it's going to take more time for me to finish my undergrad.


def pass_thru(func_to_decorate):     def new_func(*args, **kwargs):  #1         print("Function has been decorated.  Congratulations.")         # Do whatever else you want here         return func_to_decorate(*args, **kwargs)  #2     return new_func   def print_args(*args):     for arg in args:         print(arg)   a = pass_thru(print_args) a(1,2,3)  >> Function has been decorated.  Congratulations. 1 2 3   I understand that *args is used in #1 since it is a function declaration. But why is it necessary to write *args in #2 even if it not a function declaration?


What to do to have an equation going over the page

I had no idea how to word my question. Sorry for that ! I am working in an  \align environment. Because my equation is made up of few blocks, Latex creates a page break and starts it on the new page. The image below shows this situation. How can I make him start the equation on page 49 and go over the page to page 50 rather than start on page 50 and leave the massive white gap? I work with wwww.sharelatex.com if that makes any difference.    EDIT: As Werner suggested adding  \allowdisplaybreaks   fixes the problem.


Locally bounded additive function is linear

Let $T:\mathbb{R}^k\to\mathbb{R}^m$ is additive, i.e. $T(X_1+X_2)=T(X_1)+T(X_2)$. $T$ is locally bounded. Prove that $T$ is a linear transformation.  I know there is a relation between boundedness, convexity and scalar multiplicity. But not sure where to start or how to tie things together.


I am an undergrad physics student and my research experience has mainly been in the field of Condensed Matter Physics. Through the experience I have come to realize that it is not what I want to continue with and wish to change my specialization when I apply for my masters. If I were to contact an advisor from a field different from the one I have some experience working in to join a group for say a Research Masters, will the experience (despite it being in a different field) work in my favour?


How can i link my UserProfile on my personal homepage?

I want to put a link to my SO profile on my homepage. I remember a codesnippet i saw somewhere that would basically display my Username and my reputation. Where was that?


I created a terrain in blender. I have on it a base layer. The base layer comprised of two textures. These are a dirt and rock texture mixed together using another texture as a mask. On top of this texture I would like to create a road. I have another mask texture for the road. I am using tiling textures for the base layer, only the masks are non-tiling: they take up the entire UV space. The road also must be tiling somehow, I cannot create a 32k texture.     How can I have a tiling road texture follow a path so that it looks like an actual road? This is an example of a tiling road that correctly follow a path.      textures are packed and set up is clear


I have the problem, that PHP replaces all spaces with underscores in POST and GET variables. For example if I have the URL: http://localhost/proxy.php?user name=Max the browser will convert it to http://localhost/proxy.php?user%20name=Max. But if I give the $_GET parameters out, the key is not user name but user_name (note the underscore)! Is there any possibility to change this behaviour?


I have some apex classes generated by WSDL2APEX utility. Is there a way to generate WSDL from the apex class?


In a layman sense we called that the black spot of  image is the event horizon. But in some technical references [1] the author said that the black spot actually delimits the photon sphere. I would like to know what is, precisely, that black spot on M87* image: Is the event Horizon or the Photon Sphere?   $$* * *$$ Feel free to be mathematically precise.  $[1]$ GRENZEBACH A. The Shadow of Black Holes.Springer.2016


Finding the limit as $(x,y)\rightarrow (0,0)$

I know the answer is supposed to be 2 but I do not understand. $${\lim_{(x,y)\rightarrow (0,0)}} \frac{x^{2}+y^{2}}{\sqrt{x^{2}+y^{2} +1}-1}$$ I tried using intuition by reasoning that the numerator will be virtually $0$, and as the value under the root will be slightly greater than $1$, the root of a value slightly greater than $1$ will also be slightly greater than one. Then by subtracting $1$ that means the answer will be $0$.   Please explain where the flaw in my intuition is.


I'm always trying to find underlying principles, like that the force is always directed toward a (locally) lower potential energy and alot of stuff like that.  Recently I've begun to gain some layman understanding of GR and it seems that things move toward states in which time flows slower.  Is this generally true? And if so, is there some sense in which forces like the E&M-force brings particles to a state of slower moving time? I can't really think of anything obvious but maybe some of you guys have some ideas/have thought about this kind of stuff already...


Prevent external devices being locked to launcher

If I connect an external device (such as a USB stick or android smartphone) it will automatically open in nautilus and get a corresponding icon locked to unity launcher. Is there any way to prevent this?  I'm using Ubuntu 14.04


Given two separate annulus with centers $[C_1,C_2]$ and their corresponding radii being $[R_1,r_1]$ and $[R_2,r_2]$ respectively, larger radius being $R$. There are methods to look at whether they are overlapping or not. If they overlap how to find the overlapping area. Is there any close form expression for it?  equation of first annulus   $r_1^2<(x-x_{c1})^2 + (y-y_{c1})^2 <R_1^2$   equation of second annulus  $r_2^2<(x-x_{c2})^2 + (y-y_{c2})^2 <R_2^2$  If there are three circles overlapping, we get overlapping area as solution to set of 4 in-equations by least squares approach(Though we don't end up getting total area but, area within tangents of circles ).


I'm trying to install macOS Mojave beta from the app store. I have a 2009 iMac (iMac9,1) and apple has giving me an error when trying to download it from the App Store:     macOS Mojave cannot be on this Mac.   I am familiar with .  It successfully patched my Mac without any problems.  Since Mojave is so new, there has not been a patch released for that version.  I was wondering if there was a way to manually patch it and get the file since the App Store won't let me download it.


Let $M$ be the maximal ideal in $C(X,\mathbb R)$. Prove that there exists $x\in X$ such that $M=M_x$.

I have done part $(a)$ by defining a map from $C(X,\mathbb R) \to \mathbb R $ as    $\phi (f)=f(x) $ and got the $M_x$ as kernel of homomorphism and got the answer.   But I am unable to solve for part $(b).$  Any Hint will be appreciated.


Vector equation and parametric equation for a line segment

Suppose that $P = (1,1,7)$ and $Q = (8,6,1)$. Inside parenthesis are x-coordinate value, y-coordinate and z-coordinate. The question is to find vector and parametric equation for a line segment.   Now, I used equation that goes like $(1-t)<1,1,7>+t<8,6,1>, where, 0\leq t\leq 1$.   But, the answer says that I am wrong. So, I am wondering what is going on.   Also, why do we write parametric equations? Are they really different from vector functions anyway?   If vector function is $<2t,3t,1>$, according to my knowledge, parametric equations would be $x(t)=2t, y(t)=3t, z(t)=1$ ....


the package linux-firmware does not install...see below.please help

sudo apt-get -f install linux-firmware Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   amd64-microcode intel-microcode iucode-tool Use 'apt-get autoremove' to remove them. The following NEW packages will be installed:   linux-firmware 0 upgraded, 1 newly installed, 0 to remove and 1800 not upgraded. 36 not fully installed or removed. Need to get 0 B/27.6 MB of archives. After this operation, 50.7 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated!   linux-firmware Install these packages without verification [y/N]? y (Reading database ... 355777 files and directories currently installed.) Unpacking linux-firmware (from .../linux-firmware_1.79.18_all.deb) ... dpkg: error processing /var/cache/apt/archives/linux-firmware_1.79.18_all.deb (--unpack):  trying to overwrite '/lib/firmware/usbduxfast_firmware.bin', which is also in package firmware-linux-free 3.3 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/linux-firmware_1.79.18_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) apt-get autoremove  Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  linux-image-generic : Depends: linux-firmware but it is not installed E: Unmet dependencies. Try using -f.


How to proof that $\forall n \ge 1: \sum_{i=1}^n (i(i+1))^{-1} = n(n+1)^{-1}$ using mathematical induction

So for a better presentation:   I need to prove this using mathematical induction, so i started with a base of $n=1$  Since $i$ starts at $i = 1$ I got this:  $$\frac{1}{i(i+1)} = \frac{n}{n+1}$$ $$\frac{1}{2} = \frac{1}{2}$$  So since this was true I went to the induction part: I chose $n = k$ and assumed this was true:  $$\frac{1}{i(i+1)} = \frac{n}{n+1}$$ $$\frac{1}{i(i+1)} = \frac{k}{k+1}$$  but I got stuck here since I didn't know if I needed to increment $i$ or not and because I didn't know if I needed to add the summation symbol or not and needed to do a few things with it.


how to remove page numbers from first page of chapters

My report requires page numbers to start from 1st chapter 1st page. So I use   \pagenumbering{arabic}   just before I do   \include{tex_files/chapter1)Introduction}   Now I want the page counting to start from 1st page, but I dont want the page numbers to appear on the first page of each chapter.  How to do this?  Answer : Quick (and dirty?) solution: \thispagestyle{empty} just after \chapter{...}.


Rayleigh-Jeans Law difference between the frequency and wavelength forms

I don't understand the conversion between the frequency and wavelength forms of the Rayleigh-Jeans equation for spectral radiance. According to the :     However, if λ=c/f and we substitute c/f for lambda in the left side of the equation it does not come out to be the same as the right side of the equation. In other words:    Which seems to be different than the right side of the first equation above.


How to encrypt a file in VBScript using AES?

When trying to make a secure encryption system for some secret keys, I wanted to see if we can encrypt the file containing the key in VBScript using AES  Looking at other posts, I found that:  '----------------------------------------------------- Dim obj,arr,i,r,str,enc,asc dim bytes,bytesd,s,sc,sd set obj=WScript.CreateObject("System.Security.Cryptography.RijndaelManaged") Set asc = CreateObject("System.Text.UTF8Encoding") s="This is a private message" bytes=asc.GetBytes_4(s) obj.GenerateKey() obj.GenerateIV() set enc=obj.CreateEncryptor() set dec=obj.CreateDecryptor()  bytec=enc.TransformFinalBlock((bytes),0,lenb(bytes)) sc=asc.GetString((bytec)) msgbox sc  byted=dec.TransformFinalBlock((bytec),0,lenb(bytec)) sd=asc.GetString((byted)) msgbox sd '-----------------------------------------------------   This is useful to encrypt a string, but, it will be possible to set a default key and IV to the AES encryption, because I want to encrypt a and decrypt file, so I need to have already a key and IV to decrypt.  Is there any way to encrypt a file in VBScript using AES?


Can somebody recommend me any books to read that cover the following   topics?   Chapter 1. Vector Spaces   1.1. Solutions of Simultaneous Linear Equations 1.2. Fields and Vector Spaces 1.3. Product of Sets and of Vector Spaces 1.4. Vector Subspaces 1.5. Linear Independence and Bases 1.6. Dimension of a Vector Space 1.7. Linear Mappings 1.8. Rank-Nullity Theorem   Chapter 2. Linear Mappings and Matrices   Linear Mappings $F^m → F^n$ and Matrices Basic Properties of Matrices 27 Abstract Linear Mappings and Matrices 30 Change of a Matrix by Change of Basis 33   Chapter 3. Rings and Modules 37  Chapter 4. Determinants and Eigenvalues Redux 63  Chapter 6. Jordan Normal Form   Statement of the Jordan Normal Form and Strategy of Proof The proof of Jordan Normal Form Example of Jordan Normal Form A Brief Explanation of the Final Step in PageRank as an Application of the Jordan


Can you make a bonus-action to throw a dagger from Two-Weapon Fighting before you take your action?

So I have non-thrown one-handed-weapon in my main hand and light melee weapon with thrown property in my second hand. Can I throw my weapon in second hand before making a attack with my main hand?     Two-Weapon Fighting (Combat Rules) When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand. You don’t add your ability modifier to the damage of the bonus attack, unless that modifier is negative. If either weapon has the thrown property, you can throw the weapon, instead of making a melee attack with it.


Can the generic teleport Action available to some monsters be used to move through transparent, total cover?

Many monsters have access to the Action, teleport.  MM, various statblocks Teleport. The [creature] magically teleports, along with any equipment it is wearing or carrying, up to [distance] to an unoccupied space it can see.  It is known that spells that grant a teleportation effect target a point that the caster can see. Because a point is targeted, the caster would need not only sight of the destination, but also clear a line of effect per the spell rules in the PHB on casting spells.  PHB p. 204 A Clear Path to the Target To target something, you must have a clear path to it, so it can’t be behind total cover.  Are monsters that teleport using the above quoted Action required to have a clear line of effect to their destination?


Are InnoDB Deadlocks exclusive to INSERT/UPDATE/DELETE?

I am .  I am going to have to update a program to allow deadlocks. Is it possible that SELECT statement will produce deadlock errors? I know that it is only a read lock so multiple selects won't be a problem, but what if there is an INSERT, UPDATE or DELETE statement (with subqueries possible with joins) and a SELECT statement (possible with joins or subqueries)?   Is it possible that the error will be thrown on the SELECT instead of the INSERT, UPDATE or DELETE.


I have installed Ubuntu "20.04 LTS (Focal Fossa)" and working on ansible. When I do apt-get update, I am getting following error message.  Please help on solving this problem: $ sudo apt-get update Hit:1 http://in.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease Ign:3 http://ppa.launchpad.net/ansible/ansible/ubuntu focal InRelease Hit:4 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:5 http://in.archive.ubuntu.com/ubuntu focal-security InRelease Err:6 http://ppa.launchpad.net/ansible/ansible/ubuntu focal Release   404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/ansible/ansible/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


Show that $1^k+2^k+3^k+ \ldots +n^k$ is divisible by $ 1+2+3+ \ldots +n$

If $k$ is an odd positive integer, prove that for any integer $ n\geq 1$, $(1^k+2^k+3^k+ \ldots +n^k)$ is divisible by $ (1+2+3+ \ldots +n)$.  I didn't get how it is connected( or different) than this:   I tried for small numbers $n=3,4$ then use induction on $k$  but how to show for any natural $n$? does the answer in the link provides an insight to the solution.  Hints would suffice. Thanks


There is no visa centre for Spain in my home city, can I apply to France instead?

I am travelling to Barcelona for a conference for 4 days but also spending 5, 2, 1 days at Paris, Madrid and Lisbon with my entry and exit point (to India) being Paris. The problem is that Spain does not have a visa centre where I live and I would have to travel far (and expensively) whereas France has a visa centre in my city.  I know 'technically' the right visa to get is from Spain but I would like to know if it is OK to apply to France (with a visa centre closer to home) since the number of days in France and Spain are almost identical and entry/exit is from France, even though the main event I am attending is in Spain.  Will it be a problem to obtain the visa at the France visa centre or will I get denied entry at Paris, since my main event is in Barcelona?  Need to apply quick.


When I try to install mysql-server i get the following error:  Reading package lists... Done Building dependency tree        Reading state information... Done mysql-server is already the newest version (5.7.20-0ubuntu0.17.04.1). 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up mysql-server-5.7 (5.7.20-0ubuntu0.17.04.1) ... invoke-rc.d: policy-rc.d denied execution of stop. update-alternatives: error: alternative path /etc/mysql/mysql.cnf doesn't exist dpkg: error processing package mysql-server-5.7 (--configure):  subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of mysql-server:  mysql-server depends on mysql-server-5.7; however:   Package mysql-server-5.7 is not configured yet.  dpkg: error processing package mysql-server (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                             Errors were encountered while processing:  mysql-server-5.7  mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)


Let's say that you want to output or concat strings. Which of the following styles do you prefer?   var p = new { FirstName = "Bill", LastName = "Gates" }; Console.WriteLine("{0} {1}", p.FirstName, p.LastName); Console.WriteLine(p.FirstName + " " + p.LastName);   Do you rather use format or do you simply concat strings? What is your favorite? Is one of these hurting your eyes?  Do you have any rational arguments to use one and not the other?  I'd go for the second one.


I'm looking to start learning . Currently I have studied Peskin and Schroeder up to the Renormalization Group, but don't know supersymmetry yet. I know some Conformal Field Theory. Looking for a text book or pedagogical notes.


WOL (Wake On Lan) lights on card not showing after Ubuntu Server shutdown

I'd like to enable WOL on my instance of Ubuntu server 18.04  I know the network card is capable of this as I have set it up in the BIOS and if I boot into a Windows 10 instance and shut the machine down, the WOL light flashes in the ethernet card jack.  However after I shutdown Ubuntu Server 18.04, the ethernet card jack shows not flashing lights for WOL.  In the windows setup I had to make sure that the ethernet card wasnt running in power saving mode but I do not know how to do this in Ubuntu Server for my card.  Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 04)     Subsystem: Dell Ethernet Connection I217-LM     Kernel driver in use: e1000e     Kernel modules: e1000e  Thank you for the suggestions below. The issue seems to be something to do with power saving mode on the ethernet adapter.  This is something that I can change in Windows 10 by going to properties and advanced and disabling 'Low power mode'.


Grub rescue after deleting Ubuntu partition

Today I have a big problem; long story short, I installed Ubuntu in dual boot a long tine ago and I wanted to delete Ubuntu and I did so but incorectly, I might think, by reformating the partitions that were allocated to Ubuntu in Disk Management software provided by Windows (I deleted everything that was not related to NTFSC). However, I left this partition empty without expanding the Windows partition because I wasn't able to. Because I didnt know what ai was doing because I followed a random tutorial on the internet, I restarted my computer and I got : error: no such partition. Entering rescue mode... grub rescue> I already tried to get rid of it by tring alot of techniques on internet like using liveUSB ubuntu console or windows repair cmd or directly in grub prompt.  I wonder if I can get rid of it and CONSERVE my windows 10 version with all my files.  Thanks in advance for your help and I hope somebody is going to response because I am very tired of this problem  Thank you, Dominic


How much information can websites get about your browser/PC?

I am trying to determine if the information shown on  is the absolute maximum amount of information that a webserver can obtain from a web visitor. Are there other sites that will be able to get more information from the user passively like this?   I'm not talking about port-sniffing or any kind of interaction from the user, just the information that a server can get from a 'dumb' visit.       This question was a .   Read the  for more details or  yourself


Let $f\colon\mathbb R\to\mathbb R$ defined by  $$f(x)=a_1\sin x+a_2\sin2x+a_3\sin3x+\cdots+a_n\sin nx,$$ for some values $a_1,a_2,a_3,\cdots,a_n\in\mathbb R.$ Prove that $$ |f(x)|\le|\sin x|\quad \forall x\in \mathbb{R}$$ implies: $$|a_1+2a_2+3a_3+\cdots+na_n|\le1$$


There are some molerat corpses hanging around my Red Rocket Station that I would like to get rid of. Most of the time, I just pickup up corpses and drag them away. However, I'm not allowed to pick these up for some reason.  The game tells me that they're too heavy. This seems odd, as I can pick up and drag around full-size humans.  How do I pick these corpses up and move them, so that I can dispose of them?  Before you suggest using the console, let me point out that I'm playing on XBox One.


What is the name of the ZHIEND song in the middle of episode 13?

In episode 13 of Charlotte, there is a ZHIEND song playing about halfway in the episode, just before Yu in insane mode starts stealing other people's abilities, such as the bomb ability.


I am trying to show that  If X~N(0,1) and Y~N(0,1) then X+Y~N(0,2), where X and Y are independent random variables. Any help will be appreciated.


Why can't own answers be deleted in the Android app?

I seem to recall asking for this feature some years ago and being told it wasn't going to happen, but it seems silly to me that if I suddenly realize I posted a stupid answer that can't be redeemed, I have to rush to open my web browser to delete it. So what is the reason for not allowing it?


Find in a given directory, if there exist 2 files that have exactly the same content irrespective of their names

if the problem could be solved using a series of commands on the command line, it would be better for me than writing a script


Let $n$ and $1\leq k \leq n$ be natural numbers. Prove the inequality     $$\sum_{i=k}^n \binom{n}{i}\bigg(\frac{k}{n+1}\bigg)^i\bigg(1-\frac{k}{n+1}\bigg)^{n-i} \leq 1 - \frac{1}{e} $$  Equivalently, if $X\sim$ Bin($n$,$\frac{k}{n+1}$), prove that $\mathbb{P}[X\geq k] \leq 1 - \frac{1}{e}$.   My attempt: It may be helpful to show that the LHS tends to $1-\frac{1}{e}$ as $n \to \infty$ (already did that) and that the LHS is an increasing function on $n$ (have not done that).


Does anyone know what libraries I have to install to play .swf files?


What is the distribution of primes modulo $n$?

Let $n\geq 2$ and let $k$ be "considerably larger" than $n$ (like some large multiple of $n$). Then for each $i$ such that $0<i<n$ and $\gcd(i,n)=1$ let's define $$c_i=\left|\{p_j\;|\; p_j\equiv i \mod n,\;\mbox{where $p_j$ is the $j$-th prime, $1\leq j\leq k$}\}\right|$$ so $c_i$ represents how many of the first $k$ primes are congruent to $i$ modulo $n$.  What can we say about $c_i$s, that is about the distribution of the first $k$ primes modulo $n$?  I thought the distribution will be seemingly random, and that is mostly true - for example $c_i$s are always very close together. But there are observable non-random patterns. For example for $n=3$, for various $k$s I've tried  (up to $10^6$) I always got $c_2>c_1$. If this were just some kind of random discrepancy due to distribution of small primes, it would eventually vanish for large $k$s, which I don't observe.


Picture are not shown in all Stack Exchange sites

This is a screen shoot of SE I took from . That's mine. But mine or others are the same, not working, no image is shown. That's makes it difficult for me to understand a topic. I have tried with my browsers with various OSes (Windows, Linux, and Android), but they are not working. Even I tried directly with . Also it is not working. Its comment, security problem. This problem began since few months back. It is quite disturbing.  What is that problem, and how can we solve that?  Additional info: I am Indonesian and stay in Indonesia. That situation has happened in the capital city and far outside the capital city.


How to find out notifications that I closed, Windows 10

strong text Many a time I close my notifications without properly looking at it, and after I close it I say, "Oh Shit! That was important" I can't see them again, so I wanna know  How to view the notification? Can it be stored? Will I be able to use the notification as a Jump list to my chat? (I mostly close chat notifications, but it doesn't cause a huge problem)  If there is any service like that pls lemme know!


How to print the line numbers with corresponding line that matches a pattern using shell command?

File,    .false alarm is bla no. 11 .no alarm generated is bla .application will be killed is bla wall command .doc file is document file with .doc extension .no authority for this selection bla   Now what I want in my output file to print the lines which contains only the word bla (Or it may be number also)  Output will be like this,    1 .false alarm is bla no. 11 2 .no alarm generated is bla 3 .application will be killed is bla wall command 5 .no authority for this selection bla


Are damage boosts capped? Damage resistance is capped at 50%, but I'm wondering if damage boost are capped.  If a player is affected by Orisa's Damage Boost, while being damage boosted by Mercy, while under the effects of Nanoboost, are the effects additive or multiplicative, and would they stack together or not?