Ross proof of "If lim $s_n$ is defined [as a real number, +∞, or −∞], then lim inf $s_n$ = lim $s_n$ = lim sup $s_n$."

I am working through Elementary Analysis by Ross and don't understand part of his proof of Theorem 10.7 (i). This question is in a similar vein as  one, but regarding a different part of the proof.  Theorem 10.7 Let ($s_n$) be a sequence in $\mathbb{R}$. (i) If lim $s_n$  is defined [as a real number, +∞, or −∞], then lim inf $s_n$ = lim $s_n$ = lim sup $s_n$. Proof We use the notation $u_N$ = inf {$s_n$:n>N}, $v_N$ =sup {$s_n$:n>N}, u = lim $u_N$ = lim inf $s_n$ and v = lim $v_N$ = lim sup $s_n$. Suppose lim $s_n$ = +∞. Let M be a positive real number. Then there is a positive integer $N$ so that $n>N$ implies $s_n>M$. Then $u_N$ = inf {$s_n:n>N$} $≥ M$. It follows that $m>N$ implies $u_m ≥ M$. In other words, the sequence ($u_N$) satisfies the condition defining lim $u_N = +∞$, i.e., lim inf $s_n = +∞$. Likewise lim sup $s_n = +∞$. The case of lim $s_n = −∞$ is handled in a similar manner. Now suppose lim $s_n = s$ where $s$ is a real number. Consider $ϵ > 0$. There exists a positive integer N such that |$s_n − s$| $< ϵ$ for $n > N$. Thus $s_n < s + ϵ$ for $ n > N$, so $v_N$ = sup {$s_n : n > N$ } $≤ s + ϵ$ . Also, $m > N$ implies $v_m ≤ s + ϵ$, so lim sup $s_ n$ = lim $v_m ≤ s + ϵ$. Since lim sup $s_n ≤ s + ϵ$ for all $ϵ > 0$, no matter how small, we conclude lim sup $s_n ≤ $lim $s_n$. A similar argument shows lim $s_n ≤ $lim inf$s_n$. Since lim inf $s_n ≤$ lim sup$s_n$, we infer all three numbers are equal: lim inf $s_n$ = lim $s_n$ = lim sup $s_n$.  My question is in regards to this statement towards the end: "Since lim sup $s_n ≤ s + ϵ$ for all $ϵ > 0$, no matter how small, we conclude lim sup $s_n ≤ $lim $s_n$." Why may we make this assumption? For example, let lim sup $s_n = s + ϵ$. Then since $ϵ > 0$, no matter how small, shouldn't we conclude lim sup $s_n > $ lim $s_n$ in that case? Thank you!


Deleted posts on profile page have broken formatting

Deleted posts (shown in red) have broken formatting on the profile page:    The screenshot is from my profile on Arqade Meta, running the latest version of Firefox with all addons disabled.


Ubuntu Firefox it is saying that it is already running but not responding

On Ubuntu, When trying to open Firefox it is saying that it is already running but not responding. I am on a system where I dont have access to view the root.  I have had this issue before and fixed it but I dont remember how. I know before I had to delete a file but I dont remember what or where.


Spivak Calculus- Chapter 11, question 25.

I'm working through the Spivak Calculus book, and am having some difficulty with the following problem. Assume that $f$ is a second differentiable function, $f(0) = 0$, $f(1) = 1$, and $f'(0) = f'(1) = 0$. Prove that $\exists c\in [0,1]$ such that $|f''(c)|\geq 4$. The hint that the text provides is prove that either $f''(x) > 4$ for some $x\in [0, \frac{1}{2}]$ or $f''(x) < -4$ for some $x\in [\frac{1}{2}, 1]$.   Using the Mean Value theorem, it's easy enough to prove that that $\exists c_1\in (0,1)$ and $f'(c_1) = \frac{f(1) - f(0)}{1-0} = 1$.   From here, you can apply MVT to $f'$ on $[0,c_1]$ and $[c_1, 1]$ giving  $\exists c_2\in (0,c_1)$ where $f''(c_2) = \frac{1}{c_1}$  and  $\exists c_3\in (c_1, 1)$ where $f''(c_3) = \frac{-1}{1-c_1}$.   From here, using the assumption that $c_1 \leq \frac{1}{4}$ yields $f''(c_2) \geq 4$ or $c_1 \geq \frac{3}{4}$ yields $f''(c_3) \leq -4$.   However, I am unsure of what to do if $\frac{1}{4} < c_1 < \frac{3}{4}$. I have been told that Cauchy's Mean Value Theorem (sometimes called the Generalized Mean Value Theorem) is the way to go concerning this problem, but I'm unable to make it work. Any thoughts would be greatly appreciated.


Problem with font rendering on certain applications

Installed Ubuntu 14.04 LTS  with Xfce 4.12 on my Thinkpad T440P a few weeks back. This was my first real contact with Linux systems.   My problem is that the font used in the GUI of some of the applications (LibreOffice 5.2.6.2, one school project which is written in Python and uses PyQt5 for the GUI) is literally unreadable. It seems to me that these applications are using some sort of Greek style font for the GUI.     Does anyone have any ideas what is wrong with my system?  Edit: Ran the locale command, output below.  ~$ locale   LANG=en_US.UTF-8   LANGUAGE=en_US   LC_CTYPE="en_US.UTF-8"   LC_NUMERIC=fi_FI.UTF-8   LC_TIME=fi_FI.UTF-8   LC_COLLATE="en_US.UTF-8"   LC_MONETARY=fi_FI.UTF-8   LC_MESSAGES="en_US.UTF-8"   LC_PAPER=fi_FI.UTF-8   LC_NAME=fi_FI.UTF-8   LC_ADDRESS=fi_FI.UTF-8   LC_TELEPHONE=fi_FI.UTF-8   LC_MEASUREMENT=fi_FI.UTF-8   LC_IDENTIFICATION=fi_FI.UTF-8   LC_ALL=   Edit2. Ran the fc-match -s | head command, output below.    ~$ fc-match -s | head   DejaVuSans.ttf: "DejaVu Sans" "Book"   DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"   n019003l.pfb: "Nimbus Sans L" "Regular"   Waree.ttf: "Waree" "Regular"   Laksaman.ttf: "Laksaman" "Regular"   NotoSansCJK-Regular.ttc: "Noto Sans CJK JP" "Regular"   KhmerOS.ttf: "Khmer OS" "Regular"   NanumGothic.ttf: "NanumGothic" "Regular"   Lohit-Punjabi.ttf: "Lohit Punjabi" "Regular"   lklug.ttf: "LKLUG" "Regular"


Why the finite order endomorphisms are diagonalizable over the complex numbers (or any algebraically closed field where the characteristic of the field does not divide the order of the endomorphism) with roots of unity on the diagonal?


has the text     If there are five or more cards in your graveyard, exile Jace, Vryn's Prodigy, then return him to the battlefield transformed under his owner's control.   What is the point of exiling him and then returning him?


I am getting two type of responses from the server the first one in case of the routes is being sent to the server with the JSOn string then I get as response {"status":230,"routes":[1,9,3]} or not being sent then I get {"status":201}. Currently the app crashes if the response is {"status":201} and I am getting:     Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference   How can I prevent that? I want to do nothing if that the server response?              Gson gson = new Gson();             StopsJSON data = gson.fromJson(sb.toString(), StopsJSON.class);              routes = data.getRoutes();  @Override     protected void onPostExecute(Void result) {         // Intent with Conetxt of the Asyntask class and         Intent intent = new Intent(mContext, MainActivity.class);         intent.putIntegerArrayListExtra("stop_route", routes);         intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);         mContext.startActivity(intent);      }   In MainActivity:  @Override     protected void onNewIntent(Intent intent) {         // TODO Auto-generated method stub         super.onNewIntent(intent);          // getIntent() should always return the most recent         setIntent(intent);          Bundle extras = getIntent().getExtras();         if (extras != null && extras.containsKey("stop_route")) {              final ArrayList<Integer> routeList = extras                     .getIntegerArrayList("stop_route");             int routeListSize = routeList.size();             if(routeListSize > 0){       } }


The new top bar is out on meta. Consider it a beta

EDIT Dec 4 -  We're doing it live! Please post bugs or concerns as questions tagged [top-bar]  We have rolled out our 95% completed top bar for feedback.  Note:   We are still adding a few final features, so if you have a request for a feature that is not there you might hold off on that for a day or two Yes, the bar is black1. Also give that a day or two to sink in.   I also want to specifically address the meta/main/chat links.  I'm very aware that many of you like having the links at the top of the page and that this new version is different.  The thought process behind moving these links is that the "site switcher" should be an automatic place to go when you are on a site and want to go to another one. If you haven't already developed the muscle memory for these links, getting between them required a bit of a cognitive load: You must first decide that you want to switch sites and then you have to decide which area to go to to switch.  Also, we find that less familiar users aren't entirely clear what a standalone link that says "main" or "meta" actually does... Not to mention that it hurts my UX sensibilities that we are dynamically changing links in an element that should be fixed.  It is true that we have added a click in the process, but we have also removed a lot of clicks for other common actions that are much more frequent than switching between main and meta.  All I ask is that you give it a few days and see if the new "switch sites at the top left" paradigm grows on you.  What do you think?  1.  points out that technically it's not quite black.


So I had a dual boot Linux and windows 10 and I just wanted to go back to windows 10 so me being absolutely dumb just goes ok and deleted the Linux boot and now I get a grub error I just want to go back to windows 10 but I don’t want to reinstall anything


I'm trying to include a video into my presentation using this code:  \documentclass[xcolor={dvipsnames}]{beamer} \usetheme{CambridgeUS} \usepackage{multimedia}  \begin{frame} \frametitle{Test title} \framesubtitle{Test subtitle} \movie[showcontrols,width=\linewidth]{}{c.avi} \end{frame}  \end{document}   But this wouldn't display the video, how do I to deal with this please?  Thanks a lot!


Atiyah-Macdonald, Exercise 8.3: Artinian iff finite k-algebra.

Atiyah Macdonald, Exercise 8.3. Let $k$ be a field and $A$ a finitely generated $k$-algebra. Prove that the following are equivalent:   (1) $A$ is Artinian.   (2) $A$ is a finite $k$-algebra.   I have a question in the proof of (1$\Rightarrow$2): By using the structure theorem, we may assume that $(A,m)$ is an Artin local ring. Then $A/m$ is a finite algebraic extension of $k$ by . Since $A$ is Artinian, $m$ is the nilradical of $A$ and thus $m^n=0$ for some $n$. Thus we have a chain $A \supseteq m \supseteq m^2 \supseteq \cdots \supseteq m^n=0$. Since $A$ is Noetherian, $m$ is finitely generated and hence each $m^i/m^{i+1}$ is a finite dimensional $A/m$-vector space, hence a finite dimensional $k$-vector space.  But now how can I deduce that $A$ is a finite dimensional $k$-vector space?


Binary search tree null pointer exception with traversal

I am implementing a binary search tree in java, writing the methods recursively. I did the insert methods, and now I am stuck on the first traversal method, the in order one. When I call it in my test code, after adding a few elements, (tree.inorderTraversal), I get a null pointer exception at the rescursive in order method, and I don't see why. Could it be something wrong with the insert method?   public void insertInBinaryTree(E newItem) {     BinaryTreeNode<E> node = new BinaryTreeNode<E>(newItem);     if (root == null) {         root = node;     } else {         insert(root, newItem);       } }  // Recursively insert a node containing newItem into a non-empty tree. Used // by insertInBinaryTree private void insert(BinaryTreeNode<E> treeNode, E newItem) {     if (newItem.compareTo(treeNode.getItem()) < 0) {         if (treeNode.getLeftChild() != null) {             insert(treeNode.getLeftChild(), newItem);         }         else {             treeNode.setLeftChild(new BinaryTreeNode<E>(newItem));         }     }     else {         if (treeNode.getRightChild() != null) {             insert(treeNode.getRightChild(), newItem);         }         else {             treeNode.setRightChild(new BinaryTreeNode<E>(newItem));         }     } }  // If the tree is not empty, initiates an inorder traversal. This should // print all items in ascending order. If the tree is empty, just prints // "Tree is empty" public void inorderTraversal() {     System.out.println("\nInorder Traversal");      if (root == null) {         System.out.println("Tree is empty");     } else {             inorder(root);     }   }  // Recursive inorder traversal of a non-empty tree. Used by // inorderTraversal. private void inorder(BinaryTreeNode<E> treeNode) {     inorder(treeNode.getLeftChild());     System.out.print(treeNode.getItem());     inorder(treeNode.getRightChild()); }


How to use Gmail's "Send Mail As" with another Gmail account through SMTP without "On Behalf Of"?

Related to , I want to remove the "On Behalf Of" when I send an email from another Gmail account via the web ui. So, as of now, my email is being shown as From emailA@gmail.com on behalf of emailB@gmail.com. When inputting the email into the settings, Gmail appears to detect that the email is another Gmail account and does not ask you whether or not to use another SMTP server. Anyone has any ideas on how I can get around this?


Does anyone know if this number is algebraic or transcendental, and why?  $$\sum\limits_{n = 1}^\infty  {10}^{ - n(n + 1)/2}  = 0.1010010001000010000010000001 \ldots $$


I have a tiff image and have the required information to Geo-reference it on the MAP. which called world file like .  using GMAP.NEt API there are many limited functions not like the java script google map API 3. So any hope to bind C# windows application and javascript map API ?  on other hand, from the ArcGIS link I can know the (X,Y) for each pixel from the image located at the MAP. BUT how to do that ? is there any method to do to achieve my goal?


Meaning of the term "empty use" in the context of modal verbs

I'm reading a book titled Comprehensive High School English Grammar & Composition. The author, who is Indian, says this on the use of the modal verbs can and could:      Can is used to express "empty use":         I can walk.   I can feel summer heat.   Birds can sing in the trees.         Could is used to express "empty use":         I could feel the touch of cool breeze.   They could enjoy soothing showers.       But I'm not getting what the meaning of the phrase "empty use" is, and why the author used this term here, and whether it's a standard term or concept, or unique to this (non-native) author.  Is "empty use" a recognized term among linguists? If so, what does it mean?


Low Disk Space on "Filesystem root", Ubuntu 20.04.1

I am using Ubuntu 20.04.1. While installing Ubuntu for the Desktop, I read that 15-20 GB is more than enough for Filesystem root. But now I am facing this error: Low Disk Space on "Filesystem root" The volume "Filesystem root" has only 1.1 GB disk space remaining.  I tried all of the previous solutions. Unable to resolve this, without losing my data. Any suggestions?


How can I allow my friends to use my LAN server on minecraft if they are on a different internet?

I want to play a game with my best friend. She used to live very near me and we could play minecraft on the same server the whole time. But now she has moved house and we hardly see each other, and we need to play on the same server, just without being on the same internet. How do I do this?


How do i find sum $\sum_{r=1}^{n}\sin(3^{r-1}\theta)\sec(3^r\theta) $

How do i find sum   $$\sum_{r=1}^{n}\sin(3^{r-1}\theta)\sec(3^r\theta) $$  Needs hint to begin  thanks


In earlier years, i had find that:  # Python code  x = [[0]*5]*5 # IMO, it will be a 5*5 2D-Array-Like x[2][2] = 2  # I considered x will be # [ # [0,0,0,0,0], # [0,0,0,0,0], # [0,0,2,0,0], # [0,0,0,0,0], # [0,0,0,0,0]]  # But x will be # [ # [0,0,2,0,0], # [0,0,2,0,0], # [0,0,2,0,0], # [0,0,2,0,0], # [0,0,2,0,0]]   So, why? Of course, later i had known this is because references of inner list. I do not thinks it is a good idea.  But again:  x[:][4] = 4   IMO again:  x[:] must be x's self. x[:][4] must be the last member of x. So x will be:  #[ # [0,0,2,0,0], # [0,0,2,0,0], # [0,0,2,0,0], # [0,0,2,0,0], # 4]   But it is not, there is no change!  So, why?  And, are there any other wired cases in Python? Please show below.  I just wanna collect things looks a bit strange in Python, not just a quizzer about this question.


Imagine this scenario? Would the person feel anything or be injured?

Imagine an individual touched a high voltage line (like a bird) without touching any ground. For sake of illustration, imagine that this high voltage line was at a 100 Exavolt potential.   Would the bird or person notice anything when they touched the line, since they were not also touching ground?  Now, imagine that the bird flies away from the line and lands on a ground line, after having touched the hot line (i.e. the bird is no longer touching the hot line and is far from it). Would the bird notice anything in this case?  Obviously, if the bird touched both at the same time it would be electrocuted.


Getting realtime alerts on answers to my questions

How can I get realtime alerts on answers to my questions? i.e. when someone answers my question I want an immediate notification so I won't have to wait for the daily email.


Proof by induction that $ 169 \mid 3^{3n+3}-26n-27$


Please tell me what is energy in reality and how can I imagine it . Please don't rearrange the question . Thanks


How to dispay unordered list inline with bullets?

I have an html file with an unordered list.  I want to show the list items horizontally but still keep the bullets.  No matter what I try, whenever I set the style to inline to meet the horizontal requirement I can't get the bullets to display.


How can I get stereo mix for my Windows 7 computer?

I'm trying to get stereo mix with Windows 7 Professional on an HP G-series notebook. I right-click the volume icon -> Recording devices -> Check show disabled devices, but nothing new comes up. My sound-card is a Conexant high definition smart audio 221. I've tried many drivers but none seem to do the trick. Is there a way to get it on here? If not, are there any sound-cards that are known to have stereo mix support?


I have installed 2 instances of sql server plus SSIS on the following server.  Note the amount of RAM is nearly 384 GB      And this is the max and min memory settings that I have applied to my 2 instances. I assume that both instances will use equal amount of resources, if that would really be the case, 184,320 MB which is 180 GB be a good starting number to set up my memory?  How much memory would I allocate to SSIS?


Pedagogy: How to cure students of the "law of universal linearity"?

One of the commonest mistakes made by students, appearing at every level of maths education up to about early undergraduate, is the so-called “Law of Universal Linearity”:  $$ \frac{1}{a+b} \mathrel{\text{“=”}} \frac{1}{a} + \frac{1}{b} $$  $$ 2^{-3} \mathrel{\text{“=”}} -2^3 $$  $$ \sin (5x + 3y) \mathrel{\text{“=”}} \sin 5x + \sin 3y$$  and so on.  Slightly more precisely, I’d call it the tendency to commute or distribute operations through each other. They don't notice that they’re doing anything, except for operations where they’ve specifically learned not to do so.  Does anyone have a good cure for this — a particularly clear and memorable explanation that will stick with students?  I’ve tried explaining it several ways, but never found an approach that I was really happy with, from a pedagogical point of view.


Slow connection with 14.04 in a WIFI network

I have a ProBook HP laptop with 12.04 (PB-1), it connects to the WIFI and works fine. Now, I have just installed another ProBook  (PB-2) with 14.04 (not 12.04), also connected to the WIFI, and sometimes this second computer loses or slows down dramatically its connectivity. The router is configure with DHCP, and, as I can see with ifconfig, they have different IP addresses (192.168.1.41 and 192.168.1.34). Eventually, other computers/mobile devices get connected to the network, but always with different numbers, so it doesn't seem to be a collision problem.  The laptop has a fresh installation, didn't change anything in its configuration.  I've checked that there's an interaction between both laptops. Most of the times, PB-2 can't access if PB-1 is connected (but once I could do a speed test of both connected at the same time, and yielded similar results). Verified with firefox and chrome. (Of course, PB-1 is not heavy-downloading anything, this lasts for a week, since I first installed 14.04.)  Edit:   00:19.0 Ethernet controller  [0200]: Intel Corporation 82579V Gigabit Network Connection  [8086:1503] (rev 04) Subsystem: Hewlett-Packard Company Device  [103c:1621] Kernel driver in use: e1000e -- 24:00.0 Network controller  [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter  [14e4:4727] (rev 01) Subsystem: Hewlett-Packard Company Device  [103c:145c] Kernel driver in use: wl    The only difference is at the very end of the message: wl for the first ProBook (the one working fine), and bcma-pci-bridge for the second one (slow).  Edit:  The Broadcom Wireless Card indentified for both laptops is  [14e4:4727] (rev 01)  corresponding to this entry in the PCI.ID table:  PCI.ID              12.04 LTS                      14.040 / 14.10 LTS  ------------------------------------------------------------------------------------     14e4:4727           Special Case #3                 Special Case #1       which reads as:  Special Case #1 - This device uses the driver combination bcma and brcmsmac. It shouldn't be necessary to install anything at all. Required firmware is installed by default in the package linux-firmware.  Wireless script  for PB-1.  Wireless script  for PB-2.  Wireless script  for PB-1 after removing the STA driver.  Edit:  HW configuration of both ProBooks:   7,7GiB memory Intel Core i5-2410M CPU @ 2.30GHz x 4 Intel Sandybridge Mobile 64-bit plenty of disk in PB-2, same HD in PB-1, but here there's only some 1GB left (sharing with Windows).


Closed form and gradient calculation for linear regression

Given is a linear regression problem, where we have one training point, which is 1-dimensional: $x \in R_{>0}$ and the corresponding output, $y \in R$. We duplicate the feature, such that we have one training point with two (identical) features.   For this, we have to determine if we can apply the closed form solution $\beta = (X^TX)^-1*X^T*y$. Then we have to solve the linear regression problem by taking into account that $f(X) = ||y-X*\beta||^2$ is convex.   Application of the closed form solution: For this I want to determine if $X^TX$ has full rank. Given is $X = (1,x_{11},x_{12})$. Hence $X^T*X$ results in:  \begin{bmatrix}     1 & x_{11} & x_{12}  \\     x_{11} & x_{11}^2 & x_{11}x_{12}  \\     x_{12}  & x_{11}x_{12} & x_{12}^2   \end{bmatrix}   This matrix seems to have full rank (independent column vectors), so the closed form solution is applicable. Correct? Is there another way to determine the rank without explicitly calculating $X*X^T$?   For minimizing $f(\beta)$ I would derive $||y-X*\beta||^2$ and set it equal to zero.


Run python script on server over ssh session in the background persistantly

I got an account from my professor for our universities CUDA server for running some tests.  I am connecting via ssh over terminal. The thing is, as I close the terminal the server also seems to kill the running script. As I reconnect it has stopped.   No it is not possible that the script already terminated since those test runs should take a few hours even on those machine..  Can anybody help me here?  OS: Linux cuda01 3.13-1-amd64 #1 SMP Debian 3.13.7-1 (2014-03-25) x86_64 GNU/Linux


Adding `otherkeywords` in listings - How do I avoid highlighting them inside strings?

I'm using the listings package for Python code, and I have set  otherkeywords={self,__init__}   An unintended side-effect of this seems to be that in a string such as  "self_loathing"   the self portion is highlighted as a keyword while the rest gets string highlighting. Is there a way to avoid this?


I have the Dawnguard DLC, and I know that by talking to Aela or Serana I can switch between being a Werewolf or a Vampire Lord, respectively. I also know that without the DLC, once I'm cured of lycanthropy via the storyline, I cannot re-contract it.   Does such an irreversible cure exist for being a Vampire Lord as well? And can I re-contract either, if I'm cured of either without switching to the opposite type?


Bridged adapter in Virtual Box - cannot obtain IP

I have virtual box with RHEL installed. My virtual box is running on windows 7 64 -bit. I configured bridged connection, but when I am restarting network interfaces, I receive following error:  Determining IP information for eth1... failed   On Windows XP it works without problems. I disabled Windows Firewall and installed latest Virtual Box, still without success.   NAT is working without any problems. What did I missed?  UPDATE  Ouput of ifconfig -a is:  eth0      Link encap:Ethernet  HWaddr 08:00:27:B6:FC:69           inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0           inet6 addr: fe80::a00:27ff:feb6:fc69/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:430 errors:0 dropped:0 overruns:0 frame:0           TX packets:346 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:36520 (35.6 KiB)  TX bytes:31455 (30.7 KiB)  eth1      Link encap:Ethernet  HWaddr 08:00:27:C3:84:4A           inet6 addr: fe80::a00:27ff:fec3:844a/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1464 errors:0 dropped:0 overruns:0 frame:0           TX packets:17 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           RX bytes:135419 (132.2 KiB)  TX bytes:4230 (4.1 KiB)  lo        Link encap:Local Loopback           inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:16436  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)   Output of route -n  Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 10.0.2.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0 169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0 0.0.0.0         10.0.2.2        0.0.0.0         UG    0      0        0 eth0   Output of dhclient -v eth1 is:  Listening on LPF/eth1/08:00:27:c3:84:4a Sending on   LPF/eth1/08:00:27:c3:84:4a Sending on   Socket/fallback DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6 (xid=0x6afb6c4c) DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x6afb6c4c) DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15 (xid=0x6afb6c4c) DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 18 (xid=0x6afb6c4c) DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13 (xid=0x6afb6c4c) No DHCPOFFERS received. No working leases in persistent database - sleeping.   Moreover the same machine with the same configuration works well on Windows XP. The problem is only on Windows 7.


Rename all the files with a specific extension in all the subdirectory

I have a lot of directories. Each one of these has a file with a specific extension .ext.  I want to rename these files.  Example:  // Note: The names are random, can have spaces and special characters  Parent  |  |- First Directory  |   |  |   |- Some file.txt  |   |- Another one.pdf  |   `- The one to rename.ext  |  |- Second Directory  |   |  |   |- Some file.txt  |   |- Another one.pdf  |   `- The one to rename.ext […]   I want to rename all the file with the .ext extension to new name.ext2. There is only one file with the .ext per directory, so no problem with that.  What I have done so far is:  find ./Parent -name "*.ext" -exec mv "{}" "{}.ext2" \;   And I get a bunch of The one to rename.ext.ext2, I am stuck about renaming them new name.ext2. If I just set it as the second argument of mv, it will move them into the Parent directory, and thus, each call to the mvfunction will overwrite the previous moved file.  Note: I couldn't make it work using the -exec bash -c '' argument. I tried something along the lines of:  find ./Parent -name "*.ext" -exec bash -c 'mv {} "$(dirname {})/new name.ext2"' \;   But I get some issue with the $() being expanded before {}


Migrating from any IMAP/POP3 server to Dovecot

I am trying to synchronize two mailboxes which reside in different servers. This is due to a migration process. The old server is a courier server and needs to be accessed via IMAP, whereas the new server is a dovecot server. I am trying to follow the . Unfortunately it is not specified where the configuration of the source IMAP needs to be set, when the doveadm script is run on the destination server. The documentation provides the settings, but does not mention which dovecot configuration file the settings have to be entered.


Create automatic tag wikis for the automatic tags on per-site metas

In an answer to , I received a list of 53 tags, plus required and moderator-only tags, which are automatically added to every per-site meta when the site is created.  I don't know how many, if any, of these also get automatically generated tag wikis. My guess would be that the required and moderator-only tags do, but probably not any of the others. Even on reasonably large meta sites, many of these tags are missing their tag wikis. So my proposal is:  automatically generate tag wikis for all the automatically generated tags.   This would make it much easier to administer these tags. As it is, some of them have been synonymised and merged, others have never been used, and the vast majority of them have no usage guidance (in the form of tag wikis and tag wiki excerpts) whatsoever.


I can't do anything. Whenever I use "sudo", I receive "sorry, try again". I need to install gcc. Can anyone help me?  To run a command as administrator (user "root") use root "sudo <command>". See "man sudo_root" for details.  zyl@zyl-HP-348-G4:~$ sudo apt install gcc [sudo] password for zyl:  Sorry, try again. [sudo] password for zyl:  Sorry, try again. [sudo] password for zyl:  sudo: 3 incorrect password attempts zyl@zyl-HP-348-G4:~$


How to clear current “read-only” state on a USB flash drive I setup with Rufus?

Three weeks ago I used  2.2 to install Windows 10 on my machine, and it has write-protected my flash drive. I’ve tried diskpart:  diskpart att disk clear readonly  clean create partition primary format fs=fat32 quick   And it kinda worked, it removed the image off the USB, but now it’s showing:  Current Read-only State : Yes Read-only  : No Boot Disk  : No Pagefile Disk  : No Hibernation File Disk  : No Crashdump Disk  : No Clustered Disk  : No   And I can’t format it or write on it.    The drive is a a Kingston DataTraveler G4 32GB model, without physical switches. How would I restore it back to normal (rw) state?


I just installed with logon automatically, updated Ubuntu, now it asks for password when I reboot

Can't login in from  Ubuntu 19.10, generic desktop system It won't take the password asked for during install. It will login without password if I choose advanced options in grub, then generic recovery mode .40.


How to solve polynomial equations in a field and/or in a ring?

I'm studying for my exam, and I stuck on solving polynomials in a field and/or in a ring. Let me give you some examples:  (1) Solve equation $x^2+4x+3=0$ in field $\mathbb{Z}_5$, $\mathbb{Z}_8$ and in ring $\mathbb{Z}_{12}$ and $\mathbb{Z}_5 \times \mathbb{Z}_{13}$  (2) Solve equation $x^2+2x=1$ in field $\mathbb{Z}_7$, $\mathbb{Z}_{11}$ and in ring $\mathbb{Z}_{12}$  (3) Find ring $\mathbb{Z}_n$, in which equation $x^2+2x=3$ has at least 3 solutions.  I'm not asking for solutions for these particular problems. I want to understand this topic, so I would appreciate example solutions of similar problems. Also, you're aware of some study materials - please list tutorials, books etc., about solving polynomial equations in different rings and fields (and similar topics).  Thanks for help.


How to prove an inequality that sum of variables is larger or equal than sum of squares?

How one can prove that if $x,y,z>0$ and $x^2+y^2+z^2=3$ then $x+y+z\geq (xy)^2+(yz)^2+(zx)^2$? I tried AM-GM but without success.


Constancy of the Speed of Light in a medium

I've read both that the speed of light must remain constant and that light is slowed down the greater the index of refraction. So does the speed of light actually get slower or does space-time warp to accommodate for the constancy of the speed of light?


Functions whose derivative is the inverse of that function

Everyone knows that there are at least three functions whose derivative is the function itself, namely $e^x, \  0$ and $-e^{x}$. ( are there more?)  I was drawing some polynomials and their derivatives and noted that sometimes it was almost like the inverse. This lead me to ask this question: is there a function whose derivative is the inverse of that function?  Well, I figured that at least some kind of answer can be found to be of the form $a x^b$.  Lets solve this:   $f(x) = ax^b, f'(x) = abx^{b-1}$. Then $$f \circ f'(x) = a^{b+1}b^bx^{(b-1)b}=x=a^b b x^{(b-1)b}=f' \circ f (x).$$  Thus $b(b-1) = 1 \iff b^2-b-1=0 \iff b = \phi \vee 1-\phi,\ \phi = \frac{1+\sqrt 5}{2}$  We also see that $ab^{b-1}=1$, because both the multipliers must be one. Thus we get $a= \frac{1}{b^{b-1}}$. If $b=\phi$, we get $a=\phi^{\phi-1}$. If $b=1-\phi, \ a=(1-\phi)^{\phi}$  Thus two functions that satisfy the condition are $\phi^{\phi-1} x^\phi$ and $ (1-\phi)^{\phi}x^{1-\phi}$.  I would like to know if there are more functions like these, and do these functions have any 'interesting' properties, like exponential function, apart from this one condition about inverse being the derivative?


Is there a way to avoid "+canned.response" in the email address using Gmail's canned response feature

If I set up a filter and send it a canned response, Gmail appends +canned.response to my username in the reply.  For example, given the filter "from:foo@example.com to:me@example.com" set up to send a canned response, when foo@example.com sends me an email the canned response comes from me+canned.response@example.com instead of me@example.com, exposing that I'm using a canned response.  Is there a way to avoid this?


Khreshchatyk and Kostyolna streets, no definite article

Source:      The interior minister also showed a number of slides and photos illustrating where he said police snipers were firing from. He named two buildings on Khreshchatyk and Kostyolna streets, saying other spots were still being investigated.   I would like to know why is there not a definite article such as the in front of Khreshchatyk and Kostyolna streets? Or, do you think, it's totally alright as far as grammar goes? If so, could you please explain the rules governing this particular usage?  An example where street names are used along with articles. Source:      The outlet also reported that “on the Lenin avenue, two people were seriously wounded – one in the head and another in the stomach. A huge pool of blood is next to the “Arbat” café. It’s not known whether the wounded people have survived. Witnesses say they were driven away in a passenger car. The fighting is on next to the main police department, gunfire is heard. Two armored vehicles blocked the Artyom street.”


Why does Jeff Atwood still have the diamond symbol?

As far as I know, the diamond symbol is given to the folks who  are the community elected moderators, for example,  are employees of the Stack Exchange, Inc., for example,   In those regards,  is neither a , nor is he a part of the  since March 1st, 2012. So my question is, other than the fact that he is the , is there any other reason why he still has the diamond symbol next to his name and whether he can still exercise his moderation abilities? :) Note: I do not have any problems with him having the Diamond Symbol. I just wanted to know the reason and whether he still has those privileges or not. In fact, I'd be very happy to know that he still has those privileges because, you know, he knows the site, the Best. :) Note: as of October 2017, .


Nothing seems as it should in "Nothing as It Seems": alternate timeline and improbable events

This is a question about episode 4x16 of Fringe.  This episode, titled "Nothing as It Seems" takes place in the   alternate timeline, after the      return of Peter.   The episode begins with Marshall Bowman on a plane.  The same scene occurs at the star of 1x13 ("The Transformation").  The events on the plane in the new timeline occur differently, in that      Bowman does not transform into a maniacal beast on the plane.   However, the same air hostess attends to Bowman and checks on him while his is in the washroom, and Bowman is seated next to exactly the same elderly passenger, despite a difference of three years.  (The timeline has changed but not the date.)  It seems highly improbable that Peter's absence (the divergent event between the two timelines) should cause Bowman to make his flight (for the same purpose as the original flight) three years later than he did originally, and also highly improbable that three people with no connection to one another should appear again on the same flight (in particular, that Bowman and the same random passenger should be seated next to one another again, three years later).  Is this a plot hole, or is there a genuine in-universe cause for this highly improbable arrangement of events?


Link for migrated post is in negative under "Top network posts" in user's profile

was migrated from Server Fault to Unix & Linux with the answers.  is among the top network posts of . But the post shows only score with no title in the user profile.  And interestingly the link contains negative post id. When I click on the empty title, it redirects  to .


How does light know which path is fastest?

We know from  that light follows the fastest path. But how does light know which path is the fastest?


Changing my desktop enviroment to Gnome 3

I recently installed Ubuntu 14.04 on my computer and now I want to change my desktop environment to Gnome 3. I have seen many methods to install Gnome 3 but now I am confused which method should I follow. Please tell me if I can install Gnome 3 with just these commands without any other commands like adding repositories etc.  sudo apt-get install gnome-shell   &  sudo apt-get install ubuntu-gnome-desktop


26,000 questions have close votes, now what?

In  Jeff exclaimed:      Brock, this is GENIUS! I am hereby using my super-upvote on this   feature-request:      Close votes (and probably reopen votes) only expire after all of these   conditions are met:      4 days have passed since the last close vote.      The question has more than 100 views.   This has left us with a little bit of a mess:     The review path now has a new a tab that can help you cut through these questions and help us clean up some of the mess.     I find that having such a huge backlog, makes it very hard to properly deal with closures.   What steps or system changes can we make to get the huge close backlog on Stack Overflow, under control?  Keep in mind, now we keep track of the user ids who "reviewed" the various questions.


Recent achievements & Recent inbox messages not shown on Android app

The Recent achievements & Recent inbox messages are not functioning in the Android app. They do function in the browser (on Android and otherwise) and in the iPhone app:


Acknowledge grants (which may indicate conflict of interest) in double blind review?

I have run into a bit of a double-bind for double-blind reviews as an editor. In short, the problem comes down to if reviewers should see an author's Acknowledgements section which cites the grants that supported the work. Either way has problems:   If you let the authors acknowledge their grant during the review process, it is often trivial to find out who is involved in authoring the paper (since the awardees for many grants are published online). On the converse, if you do not let authors acknowledge funding sources, it is not possible for reviewers to identify potential conflicts of interest or biases in the manuscript.   In general, at least in my core topics, conflicts of interest due to funding is rare, so I am leaning strongly toward having such funding sources omitted. However, I could see it being a significant problem for other disciplines that I collaborate with. Does anyone know of any good rules of thumb, other than "use your judgement, case by case"?  Note: My general stance has been "No Acknowledgements during review" up to this point. However, on considering the issue in light of allowing reviewers to be aware of funding sources, there seem like very rational reasons why you should have this information available to reviewers, provided it could be done without identifying the authors or unfairly biasing the reviewers.


Is there a simple way to print out all the available characters in a LaTeX font set?

No MWE on this occasion, because it's a very general question! Is there any way to create a LaTeX document which prints out all the available characters (eg letters, numbers, old-style numbers, Greek letters and special characters etc) in any specific font set? This would include, regular, bold, italic, bold italic and small capital versions etc. If I could do this, I might be able to anticipate problems arising from the use of a specific font rather than having to react to them!


does removing an answer with upvotes cause a reputation change?

If I gave an answer with some upvotes and then I remove it, will my acquired reputation decrease proportionally to the upvote's score?


How to generate the random default "gravatars" like on Stack Overflow?

How does Stack Overflow auto-generate the gravatars for those users who do not upload a picture or who have not created a Gravatar icon?    Where do these random avatars come from, and how can I generate them for my own site?


Series question,related to telescopic series, 1/2*4+ 1*3/2*4*6+ 1*3*5/2*4*6*8 ...infinity

The series is $$\frac{1}{2*4}+ \frac{1*3}{2*4*6}+ \frac{1*3*5}{2*4*6*8}+....$$   It continues to infinity.I tried multiplying  with $2$ and dividing each term by$(3-1)$,$(5-3)$ etc,starting from the second term which gives me $$\frac{1}{8} -\frac{1}{4*6} -\frac{1}{4*6*8}-\frac{1}{4*6*8*10}$$.  Also if anybody is wondering the answer 0.5


I declined to encrypt to my home drive whilst installing ubuntu.  Is it possible to encrypt it after installation?  if so, how?


Synaptic asks for root password but doesn't open in 17.10

It asks for root password, but nothing happens. I noticed the software works only with proprietary drivers (Nvidia) enabled, but I want the open-source ones (nouveau x org) since I'm tired of entering my root password every time I boot. Help please!


Finding maxima and minima of $f(x,y)= x^4 + y^4 - 2x^2 - 2y^2 + 4xy$

For $f(x,y)=x^4+y^4-2x^2-2y^2+4xy$, I need to find maxima or minima. There are three critical points: $(0,0),(\sqrt2, -\sqrt2),(-\sqrt2,\sqrt2)$ So at $(\sqrt2, -\sqrt2)$, $f$ has minimum value, $-8$ and at $(-\sqrt2,\sqrt2),$ it has same minimum value, $-8$. At $(0,0)$, after inspecting, I get that it has neither maxima or minima. But when we substitute $(0,0),$ we get $0\le f \le8,$ so should not we get $(0,0)$ as a point of maxima?


"The government 'is' always changing 'their' mind" in AmEng

Why would using the construct "is/their" instead of "is/its" in the following examples likely be frowned upon by some native speakers and marked as incorrect on tests?  The class is working on its assignment. (AmEng) The class is/are working on its/their assignment. (BrEng) The class is working on their assignment. (disputed usage)  -and-  The government is always changing its mind. (AmEng) The government is/are always changing its/their minds. (BrEng) The government is always changing their mind. (disputed usage)  -and-  The team is putting on its uniforms. (chiefly AmEng) The team are putting on their uniforms. (chiefly BrEng) The team is putting on their uniforms. (disputed usage)  -and-  The Smith family is at the beauty parlor getting its hair and nails done for the wedding. (chiefly AmEng) The Smith family are at the beauty parlor getting their hair and nails done for the wedding. (chiefly BrEng) The Smith family is at the beauty parlor getting their hair and nails done for the wedding. (disputed usage)  On the other hand, why might other native speakers consider this usage to be acceptable?


How to query only subscribers that are in an active journey?

We want to get only subscribers that are on an active journey using SQL. Is that possible using data views, and without updating another status DE in every journey?


How to change the voltage polarity in an inverting amplifier?

I want to implement a simple circuit which can map -10V  +10V voltage range to 0V 5V voltage range. Thus I'm planning to use two op-Amps, one for the slope and the other for the offset. So basically I'm planning to use an inverting amplifier and a summing amplifier consecutively.  But Inverting amplifiers multiplies the input voltage with a minus sign. I need a positive slope. How can I overcome this?  Also Could you gibe me any ideas for a cheap op-Amp models for this purpose?


${f_n}$ : seq of measurable functions with common domain E, show that each of the following functions is measurable: inf{$f_n$},sup{$f_n$}

For a sequence ${f_n}$ of measurable functions with common domain E, show that each of the following functions is measurable: inf{$f_n$},sup{$f_n$},lim inf{$f_n$},lim sup{$f_n$}  At first, I want to know what inf{$f_n$} means.   If {$f_n$} is increasing  function, then I understand {$f_1$}  is the infimum of sequence of function {$f_n$}.   But what if it doesn't? If two candidates have a crossed point, then what is infimum of {$f_n$}?  Secondly proving the statement : Since {$f_n$} is measurable on E, for any real number $c$,   {$x\in E |f_n(x) >c$}(Or $\gt$ can be $\lt,\le,\ge$) is measurable.   Then {$x\in E$| inf{$f_n$} $\ge c$} , since for any $n$,$f_n$ $\ge$ inf{$f_n$}  so, done. Is it right?


Links to 'Add Comment', 'Add/Show more', View Message Box not working

Update # 2:  Is it me? (Yes, it is. I just fired up my laptop and I don't have this issue, so it's something new with my desktop!) Running Vista, IE9, no software changes since a couple of Microsoft .Net security updates three days ago - problem started TODAY -- on StackOverflow.com site. So far I have done the following - without helping:  Reset IE settings Rebooted Backed out the two Microsoft security updates to .Net (from 3/1) Cleared cookies, temp internet files, etc. Disabled all IE Add-On's Uninstalled IE9, reinstalled (errors - left me with IE7); updates; then could install IE9 Reboots; same problems exist; research switch to Chrome / Firefox  Then as magically as they appeared, with no changes by me, the gremlins moved on... Out of the clear blue, on 3/5 ~ 10:00AM the problems disappeared. A. When I click on 'Add Comment' link, it just jumps to the top of the screen and unable to enter info. See last 'Add Comment' link at the bottom of the following screen:  B. Another issue is if I click on link "Add / show 6 more comments" on the following link, it also justs jumps to the top of the page.  C. If I click on 'Recent Inbox Messages', the first time I see the list, second time I get no response. Unable to respond using desktop, but laptop works!!  Thanks!


Finding the smallest $n$ such that $n^{2}$ ends with $00001$

The problem is to find the smallest natural number $n$ so that its square's last $5$ digits are $00001$. $n$ and $n^{2}$ cannot begin with $0$. I know that we have a lower bound on $n$, namely $\sqrt{100001}≈316.23$. Intuitively, I think the smallest natural number with the property has to be $100001$ and I have not found any counterexamples to this (in fact I checked using some code and it seems to be correct). I haven't been successful in proving this rigorously however. Do I use the lower bound in some way? How to approach this type of questions in general, i.e. how do digits respond to squaring/cubing? All help is appreciated.


How to change bullet style to numbers in Metropolis theme

\documentclass{beamer}  \usetheme[progressbar=frametitle]{metropolis} \usepackage{appendixnumberbeamer}  \begin{document}  \begin{frame}[fragile]{Backup slides}     Text \cite{Knuth92} \end{frame}  \begin{frame}[allowframebreaks]{References}   \bibliography{demo}   \bibliographystyle{abbrv} \end{frame}  \end{document}


What is the word used to describe a job given to a person just to give him/her the status of being in employment? The role does not effectively fulfil a purpose other than status and prestige. I read this word in an article months ago and have not been able to find it. I am referring to an adjective, not nepotism or tokenism, and the concept is more general.  Example sentence:     Jim has a |word| job, it was given to him just to give him status and prestige.


Why didn't the Rebellion seek Yoda's help?

Prior to the Battle of Scarif,      Bail Organa informed Mon Mothma that they will need every edge they can get against the inevitable confrontation against the Death Star. Mon Mothma caught on that Bail was probably planning to seek out his "Jedi friend". She appeared not to know it to be Obi-Wan, let alone that Bail actually had two surviving Jedi friends.   So the question: In light of the magnitude of the situation, why did the Rebellion seek the aid of only Obi-Wan but not also Yoda when they need every advantage they can get to destroy the Death Star?  Arguably, a superweapon like the Death Star would be an issue grave enough to force Yoda out of exile if his aid had been sought to save the galaxy, in my personal opinion.


Java bit unsigned shifting (>>>) give strange result

I have this code:  int i = 255; byte b = (byte) i; int c; System.out.println(Integer.toBinaryString( i)); System.out.println("b = " + b); // b = -1 c=b>>>1; System.out.println(Integer.toBinaryString( c)); System.out.println(c);   But I can't understand how it works. I think that unsigned shifting to 255(11111111) should give me 127(0111111) but it doesn't. Is my assumption wrong?


I'm playing a modded Minecraft world by myself, and I would like to teleport between waypoints. I didn't know you needed cheats on to do it. How do I turn it on?


What does it mean and where would I use it?


Can Clerics be Death Domain and Neutral?

Basically, me and my friend have been arguing for 2 months over the Death domain cleric alignment. He keeps referencing the DMG's quote of "The gods of death domain embody murder" and the fact it is a villainous class option. My evidence is all the neutral deities (Wee-Jas, Raven Queen, etc.) that have death domain in their suggested domains. Who is right?


Accidently removed very important file of my project using command "cp"

Very long story short. In essence this is the problem. I had some of my project files (new.cc) which I was working on for quite sometime. I created one backup of these files two months ago (old.cc), and basically what I did was > cp old.cc new.cc. And I have lost all the changes made in last two months. Is there any way to recover these files? Any help is appretiated.


Variable referenced before assignment yet it properly was assigned

This is the code i'm working with  gameWindow = [] print("Detecting Game Window..") def callback(hwnd, extra):     rect = win32gui.GetWindowRect(hwnd)     x1 = rect[0]     y1 = rect[1]     x2 = rect[2]     y2 = rect[3]     if win32gui.GetWindowText(hwnd) == "GameTest1":         gameWindow.append(x1)         gameWindow.append(y1)         gameWindow.append(x2)         gameWindow.append(y2)     else:         gameWindow = "None"  win32gui.EnumWindows(callback, None)  if type(gameWindow) != list:     print("ERROR: Couldn't detect game window.")     sys.exit() print(gameWindow)   It suppose to append the coordinates of a window to a list.   But it throws me this error  Detecting Game Window.. Traceback (most recent call last):   File "c:\Users\otter\Desktop\Tree Detector Test\main.py", line 55, in <module>     win32gui.EnumWindows(callback, None)   File "c:\Users\otter\Desktop\Tree Detector Test\main.py", line 48, in callback     gameWindow.append(x1) UnboundLocalError: local variable 'gameWindow' referenced before assignment   I have no idea why it's showing me this since i create gameWindow before even calling win32gui.EnumWindows(callback, None) function


How would I go about making a push button to act as a toggle switch. A switch would just stay in the active state until "un-switched". I need my button to toggle something.  Example:  Button down (active)   -> output active Button up (not active) -> output active Button down (active)   -> output not active Button up (not active) -> output not active   It should'nt matter how long the button is pressed for, it should only be able to deactivate once the button has been released once.  Currently I'm using a PROM to check for all these states but I feel like there should be an easier way, perhaps with a T-flip-flop, but if you hold the button for more than one clock pulse it messes up.


For plot 1, I can test the association between x and y by doing a simple correlation.   For plot 2, where the relationship is nonlinear yet there is a clear relation between x and y, how can I test the association and label its nature?


Harm or Benefit for Instance Methods Calling Static Methods

Is there any harm or benefit for having instance methods call static methods to do their work?  If your confused by what I mean, take a look at the example code below.  StripFormatting is an instance method and static method.  If another developer creates an instance of PhoneUtil then all that is needed is for the StripFormatting method to be called on the instance of the object.  If a developer decides not to create an instance of PhoneUtil they can call the static method except this method has a parameter for the PhoneNumber.  public string StripFormatting() {         return PhoneUtil.StripFormatting(this.PhoneNumber); }  public static string StripFormatting(string psPhoneNumber) {         string tsPhoneNumber = psPhoneNumber;         Regex toNotDigit = new Regex("\\D+");         tsPhoneNumber = toNotDigit.Replace(tsPhoneNumber, "");         return tsPhoneNumber; }


How to create query parameters in Javascript?

Is there any way to create the query parameters for doing a GET request in JavaScript?  Just like in Python you have , which takes in a dictionary (or list of two tuples) and creates a string like 'var1=value1&var2=value2'.


Searching for two strings that are also tag names only finds posts tagged with the former

Searching for two popular tags as an unregistered user in the search entry field on the top right of an SE page, searches instead for questions tagged with only the first search term. For example, on Arqade, searching for steam achievements runs a search for questions tagged with  and ignores achievements.  I also found the same issue when searching for bash zsh (both of which are among the more popular tags) on U&L. I cannot reproduce this when logged in and it only seems to affect searches whose search string consists of two popular tag names. Lesser tags and non-tags work as expected. As does searching for the same two words on the search page (the one where the results are shown) also works as expected, so this is specific to the top right search field. When searching for a word that also happens to be a tag, I want tagged posts to be included but I don't want my search to be limited to them. Also, when I enter two search terms I expect to search for both of them, the system shouldn't eat one of them. Finally, the search bar and the search page should return the same results.  Note that this is not the same as the bug described in  since the search terms here were not entered as tags but as strings. This means we have multiple bugs:  Non-logged in users who search for two tags, only get results for one (which is addressed in the post above); Search strings that happen to be tags are automatically converted to tags when searching (foo becomes [foo]) which is not always what one wants, but which might be . Search strings that happen to be tags are removed when non-logged in users search.


razor views are not giving compile time error

I've recently installed VS 2012 Professional.  When i try to build my MVC4 Web Project. It doesn't recognize error in razor view when i do "Build" or "Re-Build".  Example :  I removed a namespace from the project / or say renamed it. i build the solution, it gave me errors in all cs files, which i fixed by changing the namespace. The entire solution build successfully. When i run the project it gave me Compilation Error saying that namespace not found, because the old namespace was still referred in some of the views (*.cshtml files).  Expected Solution :  I wish when i do "Build" or "Re-Build", it should recognize such errors and show me along with any other errors.  This was working fine with VS 2010, am i missing any configuration?  Thanks In Advance !! Amit  Edit I found the answer myself, i think it was early to post the question :       Another Problem      After changing value to True in .csproject file, when i start building   the project it shows error, but it shows only one error at a time.   let's say, i've 5 errors in total 3 views. it would just show me one   error. Is there any solution so that it shows all the 5 errors ?


Let $I$ be an ideal of a ring $R$, define $I[x]$ to be the set of all polynomials whose coefficients are in $I$. Prove that $R\left[x\right]/I\left[x\right]\cong\left(R/I\right)\left[x\right]$  Help me some hints


What primitives are needed to generically implement public-key cryptography?

Public-key cryptographic systems are often implemented on top of an existing problem. For example, RSA is built on top of integers and the difficulty of factoring. ECDSA/ECIES are built on top of elliptic curves and the difficulty of the discrete logarithm.  My question is, what are, mathematically speaking, the exact primitives needed to implement public-key based signature and encryption cryptography in a generic way?


Why does my phone show less storage than it's supposed to?

I have a Lava Iris X1 (8GB ROM), but the storage shows up in two types.  Internal storage total space is 3.54GB:  Available                         : 2.52GB Apps (app data & media etc.)      : 0.97GB Cached data                       : 48.17MB   Phone storage total space is 2.50GB:  Available                         : 8.55MB Apps (app data & media etc.)      : 27.54MB Pictures, videos                  : 1.85GB audio (music, ringtones etc.)     : 313MB Downloads                         : 25.92MB Cached data                       : 64.14MB Misc.                             : 223MB   I am confused about why my phone memory is less than 8 GB. Is my phone's total ROM capacity 8GB or not?


What is the blue halo around objects when using a teleconverter?

This afternoon, I went out to take some pictures using a ZEISS Tele-Tessar T 300mm f/4 Lens, with a Tamron x2 Teleconverter adapted to a Sony alpha 6000.  Unfortunately, I have been noticing an unwanted effect. Sometimes objects in my pictures appear to have purple fringing around them. What is the cause of the purple fringing, and is there any way to avoid it? Is it because my lens is of low quality?  You can see the effect in this picture of a local bird judging you.


Just installed Fedora 18 and I can't get the wireless to work.  What do I have and what have I done?  I have a Broadcom BCM4312 which is supported by the broadcom-wl driver.   lspci | grep Network 00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03) 0c:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)   I have installed the driver and the kernel modules for it:  rpm -qa | grep -e '-wl' | sort akmod-wl-5.100.82.112-7.fc18.4.i686 broadcom-wl-5.100.82.112-4.fc18.noarch kmod-wl-3.7.4-204.fc18.i686-5.100.82.112-7.fc18.8.i686   The kernel:  uname -r 3.7.4-204.fc18.i686   I have loaded the module  modprobe wl  lsmod | sort | grep wl cfg80211              171182  1 wl lib80211               13684  1 wl wl                   2465403  0    And even removed the ssb module, which I read on couple forums.  Restarted the service, and even rebooted:  service NetworkManager restart   After all these, the wireless card is still not visible. What am I missing?


How to duplicate noise similar to this black and white-picture

I want to do something similiar like this picture in Gimp (or Photoshop if required). Any ideas on how to proceed? Anything useful will be appreciated.


Number of integers less than $x$ with $k$ prime divisors (not necessarily different)

Let be $P_k = \{n | n = p_1 \cdot \ldots \cdot p_k, p_i = \text{prime numbers not necessary different} |\}$  $P_1 = \text{set of primes }$, $P_2 = \text{integers with exactly two primes factors}$, ....  We know that $|\{n \in P_1, n \leq x \}| = \pi(x) \sim x/\log x$-.   Is there any approximation for $$ | \{ n \leq x | n \in P_k \} | = |\{ n \leq x | n = p_1 \cdot \ldots \cdot p_k, p_i = \text{prime numbers not necessary different}\}|$$


Deriving input based on other parameters in Python script tool?

I have a folder and it contains two feature classes, e.g., a.shp and b.shp. The script tool created has two parameters. The first one is the model location, and the second one needs a feature class (a.shp), as shown in the below picture.  What I really want is every time when I set up the model location for the first input, the second input will automatically find the a.shp as the input rather than the user needs to choose a.shp from that folder. I noticed that the dependency is probably what I really need, but there is no code example. Any suggestions?   I am using ArcGIS 10.3.1 Advanced License.


Installing R on Ubuntu - getting updates to work

I have installed R. However, when I update my system it complains that the R updates aren't authenticated.  What do I have to do to authenticate them?


How to add a Data Table, Error Bar and Grid Line like below diagram?

I created a bar graph, but struggle in added in Data Table, Error bar, Grid line.    \documentclass[tikz,border={10pt 20pt 5pt 5pt}]{standalone}   \usepackage{pgfplots} \pgfplotsset{compat=1.16}   % <---  \begin{document}   \begin{tikzpicture}     \pgfplotstableread{ interval  carT  carD     1    68    32     2    12.8   3.8     3    15.5    10.4     4    14.0    17.3     5    7.9    21.3     6   68    32     7    68   32     8    68   32     9    68   32    10    68   32         }\mydata      \begin{axis}[     width=\linewidth,     height=.8\linewidth,     ybar=0.5mm,         % <--- distance between bars (shift bar)     bar width=4.4mm,    % <--- width of bars     legend style={legend columns=-1,       outer sep=1mm,    % <---       font=\scriptsize, % <---       anchor=north,       at={(0.5,1)},                   },     nodes near coords,     nodes near coords style={font=\scriptsize, inner sep=2pt}, % <---     nodes near coords align={vertical},     ylabel={\%},     xlabel={X-axis},     ymin=0, ymax=100,     % <---                   xtick=data,     scale only axis,     % <---         ]     \addplot table[x=interval,y=carT]{\mydata};     \addplot table[x=interval,y=carD]{\mydata};     \legend{Trips, Distance}     \end{axis} \end{tikzpicture}   \end{document}


Another word for pretending to be something they're not

What do you call someone who pretends to be something they are not? I was thinking "pretentious" but I looked up pretentious in the Merriam dictionary and think it's too strong. I want a milder term. Something that does not connote arrogance.  1.) self-consciously trying to present an appearance of grandeur or importance   2.) having a feeling of superiority that shows itself in an overbearing attitude  () p.s. it doesn't have to be a single word really


How to create spots that appear in material in Cycles?

I want to create a spots map for any material, so it looks like this:    Aprreciate the little spots on the front


When I run my program and ask if you want to play chance or guess my if statements for it are skipped over and it goes straight to the end of the program. I'm not sure what the problem is, I have tested it without the if statements and it works fine. Here's my code:  import java.util.Scanner;  public class coinflip23   {     public static void main (String args[])      {        System.out.println ("Welcome to coin flip game");        Scanner s = new Scanner(System.in);        System.out.print("Please enter the number of rounds you want to play");  int numofgames = Integer.parseInt(s.nextLine());  //numofgames  Scanner t = new Scanner(System.in);  System.out.print("Please enter the amount of money you want to play");  int moneyent = Integer.parseInt(t.nextLine());  //moneyent  Scanner f = new Scanner (System.in);  System.out.print("do wnat to play a game of chance or guess?");  String play = (f.nextLine());  //choice  int lose=moneyent;  int gain=0;  int result;  int totalmoney = moneyent;   /////////////////////////////////space break//////////////////////////////////////   if (play == "chance")  {    System.out.println(" a coin is fliped for everytime the coin lands on heads i'll double your profit");    System.out.println("but if the coin lands on tails you lose.");    for(int i=0; i<numofgames; i++)    {      if (Math.random()<0.5)      {        System.out.println("");        System.out.println ("Heads");        gain = totalmoney;        totalmoney = totalmoney*2;        System.out.println("");        System.out.println("you won $" +gain);        System.out.println("");      }      else if (Math.random()<1.0)      {        System.out.println("");        System.out.println ("Tails");        System.out.println("");        System.out.println("You lose $" +lose);        lose = totalmoney;        //System.exit(0);      }    }//forloop   }//end of if statment   /////////////////////////////////space break//////////////////////////////////////   else if (play == "guess")  {   System.out.println("To win the games guess if the coin will land on tails or heads");  System.out.println("If you guess correctly you win but if you guess wrong you lose");  //System.out.println("you will get three lives. If you lose all three lives you lose the game");  for(int i=0; i<numofgames; i++)  {    Scanner w = new Scanner (System.in);    System.out.print("What is your guess? Heads or Tails");    String ht = (w.nextLine());    String coin = "Tails";    if (Math.random()<0.5)    {      System.out.println("");      System.out.println ("Heads");      coin = "Heads";    }    else if (Math.random()<1.0)    {      coin = "Tails";    }    if (ht.equalsIgnoreCase(coin))    {      System.out.println("you are correct");      System.out.println("");      gain = totalmoney;      totalmoney = totalmoney*2;      System.out.println("you won $" +gain);      System.out.println("");    }    else    {      System.out.println("you are wrong");      System.out.println("");      System.out.println ("Tails");      lose = totalmoney;       System.out.println("");      System.out.println("You lose $" +lose);    }  }//forloop  }// end of if statment    /////////////////////////////////space break//////////////////////////////////////   result = gain-lose;  System.out.println("The game is done you won $"+gain + " you lost $"+lose);  System.out.println("");  System.out.println("You now have $" +result);   System.exit(0);   } }


Two versions of Python in my Ubuntu 12.04

I am facing a weird problem. If I have just installed python 2.7.6 in addition to already present python 2.7.3.  But this is giving me some weird issues. Such as even though my system has pyqt4, python is complaining I don't have pyqt. When I am trying to run the following command in terminal, it is saying:   sudo apt-get install python-qt4   The module is already present. When I am typing the following command:  $which python /usr/local/bin/python   Which is python 2.7.6. I am really struggling now. Kindly help.


How do I stop the launcher bringing up the UAC prompt every time?

Every time I start The Old Republic launcher/updater, it throws up the UAC prompt.  Is this normal?  If it isn't (or is I suppose), how do I prevent it without disabling UAC?


Solution to DE over closed smooth manifold

I am trying to prove the following assertion: Let $V$ be a smooth vector field on a closed manifold. Then the differential equation $x'=V(x)$ has a solution for all time. My idea is to use local existence around each point, and by compactness pick a subcover of the open cover formed by these neighborhoods and "patch" them together. Is this correct?


iMac 24 inch - how to connect MacBook Pro to it?

Could anyone tell me, is that possible to somehow use MacBook 2020 on iMac 24 inch (as a display monitor)? If not, could you please suggest me a solution how I could do something similar to it. The reason is: I have my work laptop and do not have a monitor. I want to buy a monitor or iMac and use it for working under my work laptop. Thanks!


Wondering how to remove a file its name is "-f" or "-r" on Mac OS and on Linux. What is the right way to escape? I did some research and it seems the only way is to remove by inode ID?  thanks in advance, Lin


How to intercept Chrome links with Advanced Download Manager (ADM)?

I have installed  (ADM), but when I try downloading a file from Chrome, it downloads the file with its Chrome download manager.  How to set-up ADM to intercept the download link on Chrome?


Let $\Bbb R$ be a field of all real numbers. Prove that $x+1$ is not a unit in $\Bbb R[x]$. Attempts: Suppose that $x+1$ is a unit in $\Bbb R[x]$. Then, there is exists $g(x) \in \Bbb R[x]$ such that $(x+1)g(x) = 1_R$. Now, we have \begin{equation*} deg(x+1) + deg(g(x)) = deg((x+1)g(x)) = deg(1_R) = 0 \end{equation*} Thus, we have \begin{align*} deg(x+1) + deg(g(x)) &= 0 \\ 1 + deg(g(x)) &= 0 \\ deg(g(x)) &= -1 \end{align*} which is a contradiction since $deg(f(x))$ must be non-negative integers for all $f(x) \in \Bbb R[x]$. Hence, $x+1$ is not a unit in $\Bbb R[x]$. Is the above true?


Encoding in Java Servlet Google App Engine

I'm using Google App Engine to retrieve data from database. when I retrieve arabic texts, it returns something like that "?§?? ?¹????????"  here is HttpServlet:  public class MyServlet extends HttpServlet { @Override public void doGet(HttpServletRequest request, HttpServletResponse response)         throws IOException {     PrintWriter writer = response.getWriter();      final String contentType = "text/plain;charset=UTF-8";     final String characterEncoding = "UTF-8";      response.setContentType(contentType);     response.setCharacterEncoding(characterEncoding);      writer.println(response.getContentType());     writer.println(response.getCharacterEncoding());     writer.println("السلام عليكم:"); } }   the output is:  text/plain; charset=iso-8859-1 ISO-8859-1 ?§???³???§?? ?¹????????:   appengine-web.xml:  <?xml version="1.0" encoding="utf-8"?>  <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">      <application>myApplicationID</application>      <use-google-connector-j>true</use-google-connector-j>      <version>1</version>      <threadsafe>true</threadsafe>      <system-properties>           <property name="java.util.logging.config.file" value="WEB-INF/logging.properties" />           <property name="file.encoding" value="UTF-8" />           <property name="appengine.file.encoding" value="UTF-8" />           <property name="DEFAULT_ENCODING" value="UTF-8" />      </system-properties>      <env-variables>           <env-var name="DEFAULT_ENCODING" value="UTF-8" />      </env-variables> </appengine-web-app>   I'm using: Android Studio - Runtime: JAVA 7 - Environment: Standard  this is from My Browser Chrome:


How to find degree of a differential equation.

I have a differential equation, $$e^{\large y^\prime} = x + x^3 + x^5 + y,$$ I need to find the degree of this equation.   Using ,     In mathematics, the degree of a differential equation is the power of its highest derivative, after the equation has been made rational and integral in all of its derivatives.   I would say that the degree is one because if I take $\log $ on both sides I get $${y^\prime} = \log(x + x^3 + x^5 + y).$$  My teacher says that the degree is not defined because this DE cannot be represented as sum of polynomials in derivatives of $y$. When I asked, what if we take $\log$ on both sides, he says that we are not allowed to perform any operations on the DE, that will change DE of which we have to find the degree.  This contradicts the definition by Wikipedia.  Who is correct? What is the degree of this DE, $1$ or not defined?


Two weeks ago (11/30/17) our email opens dropped by about 40%.   We are an extremely small, niche, nonprofit religious site. Our newsletters titles have not changed and are not particular spammy ("Emma Lazarus, Maud Nathan and Alice Menken: Notable American Jewish Women", "Rav Kook and His View on the Modernization...")  Anecdotally, for email accounts that we monitor, we can see that from the past two weeks started going to spam. The accounts we monitor are gmail.  Neither our site nor our IP (shared) are on any blacklist sites.  I am not sure where to go from here to look for answers.


Can you use AIC/BIC to compare models on untransformed data with models on transformed data (such as log, inverse hyperbolic sine, etc.)? I.e. if a model using logged data gives an AIC = 53.62 and a model using the the non-logged data gives an AIC = 150.6, can you say that the logged model is better even though the scale of the data is different between the two models?


How can I remove existing duplicate accounts and records at once?

How can I remove duplicate records for accounts and contacts at once from talent rover?I tried to use the dupe eliminator but I would have to search the accounts and contacts one by one and merge.Is there any other way?


Generate a comma-separated list of cell contents, excluding blanks

To concatenate a certain four cells, I'd use:  =CONCATENATE(A2,",",C2",",D2,",",F2)   This would make it so that...   A2 = "Matthew" C2 = "Mark" D2 = "Luke" F2 = "John"   would result in Matthew,Mark,Luke,John.  But we run into problems with something like...   A2 = "Jesus" C2 = "" D2 = "Mary" F2 = "Joseph"   which would result in Jesus,,Mary,Joseph.  Here, the extra comma is undesired. Is there a way to gracefully handle this so that all non-blank cells are included in the comma-separated list, while avoiding the addition of unnecessary commas when some cells are blank?  Certainly, this can be done with a fair number of nested IFs, but I really want to avoid that if possible. Can it be done with native Excel functions, or perhaps an array formula? Or would one have to resort to VB Script for something like this?


Algebraic complex groups and reductive algebraic groups

When an algebraic complex group is also a reductive algebraic group over $\mathbb{C}$? For exmample if the group is simply-connected? I hope that the question it's sufficently clear. I am studying some problems that requires the study of the reductive group but then I have read that they don't consider the reductive group but the simply, simply-connected algebraic groups. And so I would glad to know the link between this objects (except the fact that a reductive algebraic group is an algebraic group).


Is it possible to adjust desktop monitor brightness like on laptops? Yes all desktop monitors have separate menu for it. But is it possible to change this to something like Winkey+(F1..F12)?    Monitor is connected via VGA or DVI cable.   OS: Ubuntu 14.04 Desktop monitors


Glossaries not printing to yet an other latex newb

So let me begin by saying that I've seen that this is a very common issue, especially with texmaker on windows, and there are a lot of solutions out there, but I've tried all the ones that I found and they either didn't work or I couldn't understand them.  My code looks something like this:  \documentclass[a4paper,10pt,twoside]{report}  \usepackage[acronym,nonumberlist]{glossaries}  \loadglsentries{acronyms} \makeglossaries  \begin{document}  \chapter*{Symbols and Abbreviations}\label{chapter:symbols and abbreviations} \setglossarystyle{long} \printglossary[title=Symbols] \setglossarystyle{long} \printglossary[type=\acronymtype, title=Abbreviations]  A whole bunch of text from my thesis with the following abbreviations and symbols, \acrfull{nf}, \acrlong{efr}, \gls{z}.  \end{document}   In my acronyms.tex file I have the following (plus a lot more)  \newacronym{nf}{NF}{Near Focus} \newacronym{efr}{EFR}{Extra Focal Radiation} \newglossaryentry{z}        {name={\ensuremath{z}},     description={\tabto{1cm}[$mm$] \tabto{4cm} top surface of shutters and fs distance}}   As most people I've read about this runs without the glossaries being printed.  I've tried changing some line in the Xindy file but I found it already changed. I tried changing the commands to \makeglossaries and \printglossaries or \makenoidxglossaries and \printnoidxglossaries but nope. I tried making the makeglossaries % user command in texmaker but I get the following error when running it:   Process started  makeglossaries  : The script engine could not be found. makeglossaries: Data: scriptEngine="perl.exe"  Process exited with error(s)   I've read among other solution something about installing Perl and manually adding it to some path but I don't really know what to do specifically and I have no clue if it will actually solve the problem.  If somebody could help clear out some of this and point me in the right direction it would be of great help, I've already spent a couple of hours on this stuff. Thank you all!


I would like to know what's the meaning of "be blowed" in the following text:     'I'm going to smoke' Jenkins said; 'be blowed to Bertie dear.' (Mrs. Smythe had once addressed her husband in the office as 'Bertie dear', and thereforth that had been his name among the staff.) Richard made no answer. When a minute later Jenkins, discreetly directing his puffs to the open window, asked him for the titles of one or two of Zola's novels in English, and their price, he gave the required information without turning round and in a preoccupied tone.   , Arnold Bennett, 1911.


Find all groups of order $6$.   If there is element of order $6$ then group is cyclic. If not, I came to conclusion that there should be an element of group $G$ of order $3$ (otherwise the order of group is $2^{n},$ for some $n \in \mathbb{N} $). Let that element be $a$. Now, let $ b \in G \setminus\langle a\rangle$. It is easy to show that all elements $ e, a, a^{2}, b, ab, a^{2}b $ are different. Now I am stuck. I am sure that this isn't enough information about group $G$ but since I am a beginner in this scope I don't know what else should I write. Any hint helps!


I cited a datasheet in a caption of one of the figures of my report. I have added a list of figures in my document, and Latex has numbered the citations in order of appearance. Now in my first chapter (Introduction) the first citation in this appears marked as [2], which I want to be [1]. So I removed the citation from the caption, but the change is not reflected in the numbering, and its still numbered one. How can I change this? The rest of the document is fine, because no other caption has any citation


What is "load" in System Load Indicator?

System Load Indicator displays plots of CPU activity, memory use, hard drive i/o, etc. There's also a "Load" graph, but I don't know what it means. What exactly is this "Load"?


If ${\rm Aut}(G) = 1$ , show that order of $G$ is $1$ or $2.$

Let $G$ be a group such that ${\rm Aut}(G) = 1.$ I know that $G$ is abelian and that every element of $G$ satisfies the equation $x^2 = 1.$ This can be shown by considering the mapping $x \mapsto x^{-1}$ which is an automorphism. I want to show that the order of $G$ is $1$ or $2.$ Is it sufficient to note that since $G$ is abelian and every element of $G$ satisfies $x^2 = 1$, then $G$ has non-identity automorphism if the group contains more than two elements? I was wondering if this would suffice or do we need to prove this more rigorously?


How is the popularity of "recent tags" calculated?

How are these calculated? I see them going up and down all the time, and there are obviously way more than 48 questions about C# so how are these calculated?


Flattening folder structure with duplicate file names

I have a folder with a complicated folder structure:  ├── folder1 │   ├── 0001.jpg │   └── 0002.jpg ├── folder2 │   ├── 0001.jpg │   └── 0002.jpg ├── folder3 │    └── folder4 │         ├── 0001.jpg │         └── 0002.jpg └── folder5      └── folder6            └── folder7                 ├── 0001.jpg                 └── 0002.jpg      I would like to flatten the the folder structure such that all the files reside in the parent directory with unique names such as folder1_0001.jpg, folder1_0002.jpg etc.  I have attempted to use the code suggested in    $ find */ -type f -exec bash -c 'file=${1#./}; echo mv "$file" "${file//\//_}"' _ '{}' \;   The echo demonstrates that it is working:  mv folder3/folder4/000098.jpg folder3_folder4_000098.jpg   But the output files are not placed in the parent directory and I have searched the drive cannot be found the output files.  I have also attempted    $ find . -type f -name "*.jpg" | sed 'h;y/\//_/;H;g;s/\n/ /g;s/^/cp -v /' | sh   -v demonstrates that it is working:  ‘./folder3/folder4/000098.jpg’ -> ‘._folder3_folder4_000098.jpg’   However the output creates hidden files in the parent directory, this complicates my workflow. I am able to view these hidden files in the parent directory using ls -a   I have also tried the suggested code below from    find . -mindepth 2 -type f | xargs mv --backup=numbered -t . && find . -type d -empty -delete   But the command overwrites files with similar file names.   Any suggestions on how to flatten the folder structure without overwriting files with similar names?    My ultimate goal is to convert the unique names into sequential numbers as described in    a=1   for i in *.jpg; do   new=$(printf "%04d.jpg" "$a") #04 pad to length of 4   mv -- "$i" "$new"   let a=a+1  done


If $x^n + a_{n-1}x^{n-1} + ... + a_0 = 0$ has a rational root, then such root is an integer

Let $n > 0$ and let $a_{n-1}, ..., a_0$ be integers. Prove that, if $x^n + a_{n-1}x^{n-1} + ... + a_0 = 0$ has a rational root, then such root is an integer.   I understand that posting questions without showing your work is frowned upon, but I don't know where to start with this one.. thanks in advance.


How to count the number of k-ary sequences of length n that use all elements

Let $X = \{1, 2, 3\}$, and let $S = \{(a,b,c,d): a,b,c,d \in X, \text{and each element in X appears at least once in a,b,c, or d}\}$. How can I find $|S|$?  In other words, if I have a set $X$, and a set $S$ of 4-ary sequences over $X$, and in each sequence all elements in $X$ appears at least once, how do I count the sequences in $S$? How can I count similar sequences of different lengths?


$(a_1 a_2 \cdots a_n)^2=e$ in a finite abelian group

Let $G$ be a finite abelian group. Prove that $(a_1 a_2 \cdots a_n)^2=e$.   My proof: $$\forall a \in \{a_1,a_2,\cdots,a_n\} \exists ! a^{-1} \in \{a_1,a_2,\cdots,a_n\}:a^{-1}a=aa^{-1}=e$$ hence, $$(a_1a_2\cdots a_n)^2=(a_1a_2\cdots a_n)(a_1a_2\cdots a_n)=(a_1a_2\cdots a_n)(a^{-1}_1a^{-1}_2\cdots a^{-1}_n)=(a_1a^{-1}_1)(a_2a^{-1}_2)\cdots (a_na^{-1}_n)=ee\cdots e=e$$  I tried showing that all $n-1$ elements in $G\setminus \{e\}$ contain a unique ($\leftarrow$ is even this true?) inverse in $G$. Is this proof valid? Should I show/explain more between the steps $(a_1a_2\cdots a_n)(a_1a_2\cdots a_n)=(a_1a_2\cdots a_n)(a^{-1}_1a^{-1}_2\cdots a^{-1}_n)$?  Thank you.


How can I strip the subdomain and .com/.org etc from a domain in Javascript?

I want to get just the domain name(yahoo, google, stackoverflow) from the domain in javascript. How can I easily pull just this out and drop any subdomain and any extension?  See comment, I need it to work for any domain if possible.


Is there any difference between 'a friend of mine' and 'a friend to me'?

I have read a paragraph in a book named English preposition that gives a definition of 'a friend of mine' which means that OF integrates the person into the sphere of your affection, but I can not understand what meaning it wants to convey.


Suppose there is a question, "How to get started with applying item response theory and what software to use?"  Suppose the top-rated answer cites my name and work a couple of times.  Suppose all answers discuss software, which is what the question asked about.  Suppose I have a new piece of software, and I tell people about it, as this was what they asked.  Suppose my answer gets immediately deleted by a moderator with a message, "We're glad to have you, but unfortunately this isn't the place for such a description of your software." Did the person even read the original question, in the first place? Would he or she be qualified to understand the value of an immensely complicated psychometric package being released, free of charge, to the community?  And -- what can you do?  And -- who and how defines "overt"? How is a single recommendation of a freely available software package, provided as an answer to a question about such packages, on a page that discusses packages top to bottom, "overt"?


Underbrace under table, stretching over multiple columns

I want to notate some information to table column groups, using underbraces. So there should be an \underbrace under the table, that stretches over multiple rows. I tried the following:  \begin{tabular}{r|c|c|c|c}   i & 0 & 1 & 2 & 3 \\   \multicolumn{1}{c}{} & \multicolumn{3}{c}{$\underbrace{\hfill}_{a_1}$} & \multicolumn{1}{c}{$\underbrace{\hfill}_{a_1}$} \end{tabular}   The \hfill here doesn't work as I'd expect. The brace isn't stretched, but remains small and is centered. How can I make it stretch?


How to turn off rogue OneDrive video syncing

(I am running Windows 7.)  Yesterday I did some clean-up and moved some mp4 files from my desktop to "My Videos".  Later I got a message that my OneDrive was almost full.  Then I realized that when I had put the videos into "My Videos", they magically got put into OneDrive as well.  Deleting them from OneDrive deleted them from "My Videos" as well.  Restoring them in the Recycle Bin put them back into both places.  Right-clicking OneDrive, it appeared that this shouldn't have happened, since   under Settings, "Let me use OneDrive to fetch any of my files on this PC" was not checked; under Auto Save, "Automatically save photos and videos to OneDrive whenever I connect a camera, phone, or other devices to my PC" was not checked either.   (My answer appears below -- if someone has an alternative answer I'm all ears.)


Windows 10 How to change “New Folder” default name for folders in explorer to current date and time?

Every time I create new folder in windows explorer I don't need it to be named New Folder. I need current date and time as folder name. For example 20:12 10.12.2016.  And, lets say, I'm too lazy to watch at the time and change folder name manually every time I create folder.  Is there any addon/extension/widget/alternative for windows 10 explorer which handle some folder_created_event or something else and change it's name when folder is created?


Is a bivariate function that is a polynomial function with respect to each variable necessarily a bivariate polynomial?

Let $ \mathbb{F} $ be an uncountable field. Suppose that $ f: \mathbb{F}^{2} \rightarrow \mathbb{F} $ satisfies the following two properties:   For each $ x \in \mathbb{F} $, the function $ f(x,\cdot): y \mapsto f(x,y) $ is a polynomial function on $ \mathbb{F} $. For each $ y \in \mathbb{F} $, the function $ f(\cdot,y): x \mapsto f(x,y) $ is a polynomial function on $ \mathbb{F} $.   Is it necessarily true that $ f $ is a bivariate polynomial function on $ \mathbb{F}^{2} $? What if $ \mathbb{F} $ is merely countably infinite?


I'm making a presentation with beamer. I see in other publications that I can use \note to put speaker notes, but the slides appear side by side in the same screen, and don't split for both screens.  I search a bit about the subject but I can't find a viewer to solve this in Windows and Ubuntu.   How can I put this like power point, in a primary and second screen? If there is no way, I can convert the beamer presentation to powerpoint?   Thanks in advance!


Similarity in the formula of gravitational force and electrostatic force

The gravitational force between two masses is given by: $$\vec{F_g}=G\frac{m_1m_2}{r^2}$$ and the electrostatic force between two charged particles by: $$\vec{F_e}=k\frac{q_1q_2}{r^2}$$  Both the forces have inverse square dependence on the separation or distance although the two types of forces are totally different. One can definitely ask if both charge and mass are totally different properties of matter, why does the force generated by them have such similar formulas?     My question might seem similar to . But that question is more specific if moving masses would generate some kind of field.   My question is, is the similarity in their formula just a coincidence or can we conclude something from it?


Singular vs. plural in "Different {type / types} of {question / questions}"

Different types of questions    or     Different type of questions    or     Different types of question    or     Different type of question.   Can anybody tell me, which one is the correct usage?


Run a function every day in specific time

I have a function which has got data from the API. I want to run this function in every day at a specific time. I have used below code for achieving this, but the blow of run every min. I am using this code on the 5min interval for scheduled tests. My API code is, too much long. I am using just test purpose example code there.  register_activation_hook(__FILE__, 'my_activation'); add_action( 'wp', 'my_activation' );  function my_activation() {     if (! wp_next_scheduled ( 'my_hourly_event' )) {     wp_schedule_event(time(), 'hourly', 'my_hourly_event');     } }  add_action('my_hourly_event', 'do_this_hourly');  function do_this_hourly() {     // do something every hour     $t          = time();     $user_login = 'test-'.$t;     $user_email = 'test-'.$t.'@yahoo.com';     $user_pass  = '123456';      $userdata = compact( 'user_login', 'user_email', 'user_pass' );     $user_id = wp_insert_user( $userdata ) ;      // On success.     if ( ! is_wp_error( $user_id ) ) {         echo "User created : ". $user_id;     }else{         echo "
User already exsist
";      } }  register_deactivation_hook(__FILE__, 'my_deactivation');  function my_deactivation() {     wp_clear_scheduled_hook('my_hourly_event'); }


Can we have a process that will let users know about link rot in their posts?

I noticed that  had a post on Stack Overflow whose link had 404d and he never knew about it until I let him know about it. I know that there is a broken link review queue under development somewhere, but my request is for something different. Is there a way for us to have a monthly (or daily if possible) process that would let users know that a certain post (or posts) has a broken link in it and should be updated?


Comparing two variables one taken from previous activity

I am a beginner working on an android application in which i am stuck at comparing the value taken from previous activity and a variable initialized with the same value as the previous one.  This is the mainactivity code       String string="value";     reference.setText(string);//i am setting the value manually to Edittext            Intent i = new Intent(this,next.class);     String getrec=reference.getText().toString();     Bundle bundle = new Bundle();     bundle.putString("VALUER", getrec);     System.out.print(getrec);     i.putExtras(bundle);     startActivity(i);     finish();   This the next.class code             int i;             Bundle bundle = getIntent().getExtras();              String venName = bundle.getString("VALUER");                 if (venName=="value") {                     i=1;                     ...                   }   And  this if condition is not getting executed. Please help.


In Synchrotrons I think they use microwaves to accelerate the electrons bundles that fly through-how does putting a microwave through a cavity accelerate an electron? I know that the Electric and Magnetic fields could and do have an effect on the electron, but if the radiation is moving parallel to the electron, wouldn't the force be perpendicular? Also, how exactly does the microwave radiation look in the vacuum chamber? Are the two ends constant nodes?


Is it always true? $\left|A-B\right| \le \left|A\right| + \left|B\right|$

Is it always right to claim that: $$\left|A - B\right| \le \left|A\right| + \left|B\right|$$  where $A, B \in \mathbb{R}$ ?


I want to call out my web service after the insert process of a custom object with a delay of 2 minutes. But i am getting that exception FATAL_ERROR|System.CalloutException: Read timed out How can i fix that problem ? Here is my implementation.  Callout class:  public class HttpCallout{     @Future(callout=true)     public static void getContent(String url){         Http h = new Http();          HttpRequest req = new HttpRequest();         req.setEndpoint(url);         req.setMethod('GET');         req.setTimeout(2000);          HttpResponse res = h.send(req);         String response = EncodingUtil.urlDecode(res.getBody(),'UTF-8');         System.debug('***response****'+response);     }      public void serviceCaller(){         getContent(url);     } }   Trigger:  trigger AfterInsertOrUpdate on Sales_Order__c (after insert) {     System.debug('Making future call to update account');     HttpCallout httpCallout = new HttpCallout();     httpCallout.serviceCaller();     System.debug('After Insert'); }   Any help would be appriciated.


Rounded mouth when using subdivision surface

I can't make my character smiling when I use subdivision surface.


Account suspension for 1 year - what to do now?

I have been here in Stack Overflow for more than a year. Last week on Saturday I got a message from a moderator that my account is been suspended for 1 month for sockpuppet reason. I have a friend or colleague of mine who may have upvoted my answers or question. but I didn't ask them to vote me. It wasn't my fault. I've contact SO team for this issue.but on next day I again got a message from a moderator that my account is suspended for 1 year! for the same reason! I don't know this time also who did it!. I have explained to them that it wasn't me but they haven't get back to me yet. Obviously, they must have many more things to do. I am posting this here because I wanted my account to be unsuspended. 1 year is a big deal guys. if you look my history I know I been suspended for any reason before i.e answering a question, making edit suggestion, voting irregularities (I have accepted that it was me and okay with my punishment as it was not fair for all). But this I haven't done. As I was suspended before it was easy for anyone to frame me easily by my record :(.  What would I do for a year now? I really enjoy answering the question here for my knowledge. Should I make another account here? That is not allowed in suspension period, but how can I wait for a year for it. Please, someone, suggest me what I should do?


I have to show that the derivative of 'the matrix exponential' $exp: \mathbb{C}^{n\times n}\mapsto\mathbb{C}^{n\times n}$ at the zero matrix $0$ is $id_{C^{n\times n}}$, i.e. $exp(0)=id$. The above map isn't given explicitly, so maybe someone can tell me what it does to a matrix $A$? I think the obvious guess would be $$A\mapsto e^A:=\sum_{k=0}^\infty \frac{A^k}{k!}$$, but I wouldn't know how to find the derivation of such a map since there is no variable.  So far I tried considering $$Ax\mapsto e^Ax:=\sum_{k=0}^\infty \frac{(Ax)^k}{k!}$$ instead, which is a map $\mathbb{C}\rightarrow\mathbb{C}$ I suppose.   As derivative I get $Ax\mapsto Ae^{Ax}$, which gives the identity for $x=0$, but $0$ for $A=0$.  Can somebody tell me what I got wrong, and how it is true that $exp(0)=id$?


What makes RSA secure by using prime numbers?

I am just learning about the RSA algorithm. Looking at the first two steps:   Choose two distinct prime numbers $p$ and $q$. Compute $n = pq$.    I have some probably stupid questions:   Why do $p$ and $q$ have to be prime numbers? Why couldn't they be any integers or odd integers? Or does that break the whole algorithm? Because prime numbers are rare in comparison to regular integers, does restricting the algorithm to only prime numbers reduce security? It would seem easier to find the private key if an attacker knows it's only going to be some prime number?


Cross-Referencing a Custom Object's Field Directly in a Condition Using Apex Class and Apex Trigger

Say I have a custom object named Book__c with fields Title__c and a checkbox named New__c, and another custom object named Author__c with field Book__c, can I use New__c field directly with Author__c object in a condition?  The requirement is to automatically create a new Obj_To_Insert__c record when a new Author__c record with Book__c field having its field New__c set to true.     For example, can I use it like this?  List<Author__c> authorList = new List<Author__c>  for(Author__c auth : authorList) {     if(auth.Book__r.New__c == true) {         //some code...     } }    The code above is a snippet from this apex class:  public class ThisIsTheClass {      public static void theMethod(List<Author__c> authorList) {          Set<Id> id = new Set<Id>();         List<Obj_To_Insert__c> otiList = new List<Obj_To_Insert__c>();          authorList = [SELECT Id, Name, Book__c, Book__r.New__c FROM Author__C where Id IN: id];          for(Author__c auth : authorList) {             if(auth.Book__r.New__c == true) {                 Obj_To_Insert__c oti = new Obj_To_Insert__c();                 oti.Field1__c = auth.Id;                 otiList.add(oti);                 }          }           insert otiList;      } }   Meanwhile, the apex class is called in the apex trigger below:  trigger thisIsTheTrigger on Author__c (after insert) {      ThisIsTheClass.theMethod(Trigger.New);       }


Divergence $\int_{-\pi}^{\pi} |D_n(x)|dx$ for Dirichlet kernel as $n\to\infty$

Let $D_n(x)$ be the Dirichlet kernel defined by $$D_n(x):=\frac{\sin\frac{(2n+1)x}{2}}{2\pi\sin\frac{x}{2}}$$where $D_n(0)$ can be set to  $\frac{2n+1}{2\pi}$ if we desire it to be continuous. Another expression for $D_n$ is $$D_n(x)=\frac{1}{\pi}\Bigg(\frac{1}{2}+\sum_{k=1}^n \cos kx \Bigg).$$I read that $\lim_{n\to\infty}\int_{-\pi}^{\pi}|D_n(x)|dx=+\infty$, but I cannot prove it rigourously. How can it be done? Thank you so much!!!