Everything I've tried to install has opened in Archive manager. Even if the file says that it's executable it still opens in archive manager. There aren't any executable files inside the archive either. There also isn't any other software to open the files with. How do I make it so it opens an installer instead of the archive.


One-way sync files from one computer to another

I'm writing a program for my grandpa, who's not exactly tech savvy. I want to make it easy for him to always have the latest version of my program (which consists of one Python script, by the way). He can just download it from an email to his desktop, but I had to set the default download location and if it gets messed up he's out of luck.  I want to be able to have a folder on my computer with my script in it, and when I update the program, I want the changes/new program to appear on his desktop. It would be even better if it only works one way, in case he accidentally deletes it on his machine.  So all the files in my folder go on his desktop, but all the files on his desktop don't go into my folder. I don't believe GDrive or Dropbox (my first ideas) can do that.  I have Windows 8.1, and he has 7.  EDIT: I'm starting to get into GitHub. Is there a way to use GitHub to automatically update his local repository?


How can I view two files side by side in Notepad++?

I would like to split the Notepad++ window so that I can edit two files side by side.  How can I do this in Notepad++?


If a question is in all-uppercase or all-lowercase, our quality filters should automatically reject it

Proposal If a question on an English-language Stack Exchange site does not contain at least one uppercase and one lowercase letter, our quality filter should reject it. (We can make exceptions for sites which don't use a mixed-case alphabet, such as .) Justification The quality filter currently rejects neither all-uppercase nor all-lowercase posts. I've checked. The best Stack Exchange users use mixed case. If an asker is too lazy to use their Shift key, their question tends not to be of very good quality. Don't take my word for it. You can see proof. Sam Saffron helped me write  which lets you see with your very own eyes that what I am saying is true. Single-case askers tend to ask poor-quality questions such as:      In addition, posts which use only uppercase or only lowercase — even if they aren't riddled with typos or grammatical errors — tend to be hard to read. Capitalization aids readability. Why is this proposal not a duplicate? This proposal is not a duplicate of the older proposal . This is because it also deals with all-lowercase questions. All-lowercase questions are 50 times more common than all-caps questions.  Stack Overflow gets only about 100 all-uppercase questions per year; see .  Yet it gets about 5,000 all-lowercase questions per year; see . (These statistics are for Stack Overflow only; the rest of our network wasn't considered.) I suspect that the older proposal was declined for two reasons:  All-uppercase questions are rare.  Therefore, the effort required to block all-uppercase questions is too much.   This proposal is better. For just a bit more effort, the Stack Exchange developers can get a much richer reward. Conclusion What do you think of my proposal? Agree? Disagree? Thoughts? PS: This idea is modified and adapted from  by Stack Exchange user Gilles. My dear sir Gilles, I thank you. Note There's even a  which automatically detects questions with all-caps titles and alerts interested users and moderators.


Profile: top tags numbers are inconsistent

On the website, the top tags number only shows your answer score, whereas on the apps it shows the combined score of questions+answers. This is pretty confusing.


Default permissions in certain path in Linux

I have a directory in /media/project where I would like to share some stuff with other users. They should also be able to read, write and execute files in that path as well. Are you able to give default permissions in that particular path when someone creates a new file/directory? For example if I create a file called test, it would automatically have me as an owner and all the permissions, but also all the permissions for a certain group as well (let's say I have used chown -R user:usergroup /media/project before this) and no permissions for others. Also if someone from that usergoup creates a file they will have same permissions as well. How am I able to achieve this? I don't think umask is the solution since it takes affect everywhere and I want the rule to apply in this path only. I know this could be achieved using chmod on the root of this directory, but it seems kind of redundant to do that everytime someone makes a new file. EDIT: I noticed there is a solution to a similar question in this link  I can´t comment there yet since I have not enough reputation points. However I could not find a solution for making the files & folders executable as default. I have made an example somedir-folder: setfacl -Rd -m u:user:rwx,g:usergroup:rwx,o::r somedir After this I create a file: touch somedir/afile and it has the wrong kind of permissions: -rw-rw-r--+ 1 user usergroup 0 Dec  2 15:57 afile How do you get the execution permission as default for the group and the user?


How to prefix post permalinks with /blog/ - without affecting custom post types?

I have several custom post types, which are properly structured as /%post_type%/%postname%/, however I wish to have the same effect for regular blog entries: /blog/%postname%/  If I prepend the permalink structure with /blog/ it affects the custom post types as well, so currently my permalink structure is simply /%postname%/  Which is the recommended way of doing this? I had a solution involving some rewrites, but the permalink shown in the post editor area does not reflect it.


not enough items save and drag and drop not working

i downloaded not enough items to my mods folder along with code chicken and it shows up when i check my inventory but all my save buttons are not there, and i can not drag nothing to my inventory, i will show you a picture of what im getting, if anyone could help and give me advice on what i need to do to get it showing up properly and being able to drag and drop would be awesome  also i almost forgot to mention, the save tabs work in my creative mode but not in survival


How I can work with new checkbox from ajax in jquery?

I have got ajax result with new element on page.  Checkbox is:  <input type="checkbox" checked="checked" uid="933518636168122368" class="flag">   How I can select him?  my code is not working, selector object is empty:  $(document).ready(function(){     if ($('.flag').is(':checked')) {         alert('checkit');     }      $('.flag').click(function(){         alert('checkit');     }); });   What I must to do?


Why should you create a new instance of a class?

I've been running through a few tutorials for Java, they all say to make a new variable when calling classes. Why is this? I've tested some code and it works without doing this. I've been using python for quite a while now so I'm used to using a dynamic language.  Please see some code I've been playing around with below:  import java.util.Scanner;   class MyClass {      static String myName(String name) {         return ("Your name is: "+name);     }     static String myAge(Integer age){         return ("Your age is: "+age);     }     static String myGender(String gender){         return ("You are: "+gender);     } }  class Test{     public static void main(String [ ] args){         Scanner ui = new Scanner(System.in);          MyClass user = new MyClass();          //Output with new variable of class - user         String input = ui.next();         String newname = user.myName(input);         System.out.println(newname);          //Output calling class directly         Integer input1 = ui.nextInt();         String newage = MyClass.myAge(input1);         System.out.println(newage);          //Output with new variable of class - user         String input2 = ui.next();         String newgender = MyClass.myGender(input2);         System.out.println(newgender);      }  }   Thanks for your time.


Cannot get grub menu to timeout (or go away)

I am running Ubuntu 12.04.  I cannot for the life of me get the grub menu (with options) to go away.  I would like it to auto-boot into the first option. I've edited /etc/default/grub so that it looks like the following:  GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX=""   After this, I ran sudo update-grub. Then I realized that I had grub 2, so I ran sudo update-grub2 (both make it look like they create the grub.cfg file successfully.  I restart my computer and it goes back to the grub menu and just sits there until I make a choice. This is not desirable if the power goes out... :-)  I also tried reinstalling grub using sudo grub-install /dev/sda - also unsuccessful


Why square the result of $x_1 - \bar{x}$ in the standard deviation?

I don't understand the necessity of square the result of  $x_1 - \bar{x}$ in  $$\sqrt{\frac{\sum_{i=1}^{N} (x_i - \bar{x})^2}{N-1}}$$. In fact I don't understand even why is $N - 1$ on the denominator instead of just $N$. Someone could explain it or recommend a good text about it? All books about Errors Theory or even Statistics that I found are either too much abstract or too much simplist. Thanks in advance.


How (in)vulnerable is OS X to encryption ransomware?

These days, malicious software seems to be infecting Windows computers, encrypting their data against their will, and asking for a Bitcoin ransom in exchange for the encryption key.   In order for such a software to run "successfully" on an OS X machine, would the user first have to run it and give the sudo password? Is such a threat conceivable on OS X without the user doing this?  Would FileVault protect against this? Could a ransomware program, if unwittingly installed by a user (who also confirmed with the sudo password), take your FileVault data hostage? Could it take hostage also your TimeMachine backups even if they are encrypted? In general, how (in)vulnerable is OS X to encryption ransomware, and how careless/unsavvy do the actions of a user have to be in order to actually have his or hers data taken hostage?


Every time I pan the map content in the QGIS composer window the scale changes. Is there a way to make it stick at specific scale?


It is possible to add modifiers to a group?

I made a group of different objects with different set of modifiers for each one. I wanted to add a lattice modifiers to this group to be able shape its form... it is possible? I tried with no sucess... It seems something very useful, i'm impressed something like this isn't implemented in blender yet...


System freezes/unresponsive/unusable when copying large file to USB

Yesterday I was copying a single, 8 GB file to a USB with a slow, 7 MB/s write speed, while my RAM is 3 GB. While copying the system froze, to the point where I couldn't even move the cursor.  I managed to log into the text console, and ran iotop, it showed that a process named kswapd0 was taking 99.99% of IO.  Are there workarounds so copying a large file doesn't make my system unusable?


Site for questions about networking in the course of developing a distributed application

Is there a dedicated site which focuses on networking solutions?  I need to set up my application in a distributed environment and make sure all requests are sent via a given list of servers. This requires lot of activities related to networking, about which I hardly know anything.


Transit visa requirement for flights connecting through Gatwick

Two of us holding Indian passports are flying from the Middle East to Toronto with British Airways. There is a layover of about 7 hours at Gatwick airport. The flight lands at the North terminal and the flight to Toronto leaves from the South terminal. We are holding valid Canadian visit visas.  Do we need to obtain a separate transit visa for transferring from the North to the south terminal and boarding a connecting flight in Gatwick?


Why does the $\sum_{n>1}(\zeta(n)-1)=1?$

While I was looking at the values of the zeta function for the first natural numbers, I noticed that the sum of the values minus $1$, converge to $1$. Better put: $$\sum_{n=2}^{\infty} \left(\zeta(n)-1\right) = 1 $$ Furthermore, if you use only the even numbers for the zeta function, the sum will converge to $\frac{3}{4}$, or $$\sum_{n=1}^{\infty} \left(\zeta(2n)-1\right) = \frac{3}{4}$$  Leaving $$\sum_{n=2}^{\infty} \left(\zeta(2n-1)-1 \right)= \frac{1}{4}$$  This is probably common knowledge among mathematicians, but I couldn't find much about it on the internet. Is there a proof of this or perhaps even a simple explanation why this is so?


Four balls with different colors in a box, how many times do I need to pick to see all four colors?

I have one white ball, one yellow ball, one red ball, one black ball. I put the four balls in a nontransparent box. I pick a ball from the box to see its color and put it back to the box.  Assuming picking is random, how many times on average do I need to pick in order to see all four colors?  If I'm lucky, I only need to pick four times. If I'm out of luck, I may get red, red, red, red, red, red,....  But what is it on average?


Bug or design issue in Stack Overflow's badges section

I have seen a design bug in the Stack Overflow BADGES section.  After earning a badge the design flows like the screenshot below:


$f:\mathbb R \to \mathbb R^n$ be such that $G(f):=\{(x,f(x)):x \in \mathbb R\}$ is closed and connected in $\mathbb R^{n+1}$ , is $f$ continuous ?

Let $f:\mathbb R \to \mathbb R^n$ be a function whose graph $G(f):=\{(x,f(x)):x \in \mathbb R\}$ is closed and connected  in $\mathbb R^{n+1}$ , then is $f$ continuous ?


This question has been asked many a times on physics stack exchange but I can't understand this in simple terms. This is a definition I got online:  The third law states that all forces between two objects exist in equal magnitude and opposite direction: if one object $A$ exerts a force $F_A$ on a second object $B$, then $B$ simultaneously exerts a force $F_B$ on $A$, and the two forces are equal in magnitude and opposite in direction: $F_A = −F_B$.  My question for this is that if a force is applied to body $B$ by body $A$, and the magnitude is $10$N, body $B$ is applying the same magnitude of force against body $A$. So, the forces should cancel out and motion won't be possible in that case as Newton's first law states that there should be an unbalanced force for bringing a body from rest to motion. One thing people are answering is that they are on different body but they are also in different direction so force should cancel out as it is simultaneously exerted on the two bodies.


How can I vertically align the contents of a div to middle?

I've tried using the bootstrap 4 classes 'align-middle' and 'align-content-center' to make the contents of the parent div vertically align in the middle. But applying these classes does not give the result I want. The contents are still positioned at the top.

       The text I want to vertically align in the middle


Belkin N600 USB Wireless adapter on Ubuntu 12.04

I have an old Compaq desktop that my children use to access the internet. The kids have repeatedly managed to severely infect the computer with viruses, and this latest round has been a doozy. A friend recently sold me on Ubuntu as a great windows replacement since it is not prone to viruses, so I decided to to give it a go.  I completely overwrote windows with Ubuntu 12.04 to get rid of the viruses, but I can not figure out how to make the wireless network dongle work. I have Googled the topic and tried to go through some of the solutions, but I don't know what I'm doing and I think I may be making things worse. Can someone help me with this? I know NOTHING about Linux and most of the instructions aren't written for someone like me.  Thanks,  lsusb gives the following:  Bus 001 Device 004: ID 050d:615a Belkin Components F7D4101 / F9L1101 802.11abgn Wireless Adapter [Broadcom BCM4323] Bus 005 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub   Thanks for helping me with this chili!


Backup and Sync from Linux to a WSL live (per each change)

I have a Linux (Arch/Debian) with only a CLUI (Bash) and a server environment (LAMP) with the following details:  4 GB RAM 2 vCPU Cores 80 GB SSD  4 TB Transfer 40 Gbps Network In 4000 Mbps Network Out   I host two websites (WordPress and/or Drupal) on each system.  I want to backup and sync such a system live to my Windows Subsystem for Linux (WSL) but I don't want hourly/daily/weekly cron; I want that every change in scope of my system would be synced to a directory in my WSL.  What I desire is very much like Google's Backup&Sync which I use in my Windows 10 / Ubuntu machines to prevent data loss in case a computer was unexpectedly and sadly ruined or stolen and formatted (in contrast to manual deletion of data after it was stolen where the data would be lost even in the remote syncing environment).  My question is how to do such live syncing (like Google's Backup&Sync) from Linux to WSL?    Side note  This is how I backup manually so far and it's exactlly the process I desire to automate:   cib() {     # Create an Immediate ZIP Backup (of both $drt and DB);     date="$(date \+%F\-%T)"     mysqldump -u root -p --all-databases | zip "$drt/db-$date.zip" - # Note the hyphen before this comment;     zip -r "${drt}/all_zipped-$date.zip" "$drt"/ -x "*/cache/*" "*/phpmyadmin/*"     rm -f "$drt/db-$date.zip"


The structure used is strange for me :  It will be but a pitiful plastiche  What does " It will be but " means? And the phrase pitiful plastiche is negative, isnt it?


Finding anomalies using moving average in a time series

I want to find anomalies in a time series. Is it possible to find anomalies using moving average?


Name of a cartoon with blue, red and yellow monsters that return to tubes when tired

I need to know I name of this one cartoon. There are monsters, some of them have blue, some of them have red and some of them have yellow energy and when they are tired they return to their tubes. They are in their tubes and when a character says name of a monster SPIN!!! The character uses their fingerprint when they spin the tube, and then the monster comes out. I hope you can help me with this, any suggestions would be  awesome, thanks in advance. There is one monster called Lock, but I'm not sure on the spelling


how function argument passing works in java

i saw this Heap Sort program on geeksForGeeks:   in main method(), they've taken an int[] and passed it to sort(). After that they passed the same int[] to a utility function printArray() for printing and it  prints the sorted array . I tried the same to swap 2 variables, but it doesnt work .  public void swap(int a,int b){ int t=a; a=b; b=t; } public static void printVal(int a,int b){ System.out.println("New value \n a: "+a+", b: "+b); } public static void main(String[] args) {     ArrayEx ae= new ArrayEx();     int a=5;     int b=10;     System.out.println("Old value \n a: "+a+", b: "+b);     ae.swap(a, b);     printVal(a,b); }   can anyone please tell how argument passing and processing works in java ?  Thanks in advance


$\mathbb Q$ is not the direct product of two non-trivial groups.

I know this has been asked before, in a bunch of places, so I expect it to be closed as a duplicate at some point, but I'd like to know if my own proof works. If the proof is incorrect, please limit answers to pointing out the errors. If the proof is correct, then thoughts on improving it would be appreciated.  Prove that $\Bbb Q$ is not the direct product of two non-trivial groups.  —Aluffi exercise II.3.5. My proof Suppose that $\Bbb Q = G \times H$, neither $G$ nor $H$ trivial. First note that $0_G$ is the only element of $G$ with finite order: If $m\ne 0$ and $m\cdot g=0_G$, then $m\cdot(g,0_H)=0_{G\times H}$, contradicting the fact that $\Bbb Q$ has no non-zero elements of finite order. Suppose that for some $m\ne 0$ and some $n\ne 0$, $\pi_G(m/n)=0_G$. Then $0_G=n\cdot\pi_G\left(\frac m n\right)=\pi_G\left(n\cdot\frac m n\right)=\pi_G(m)=m\cdot\pi_G(1)$. Since $\pi_G(1)$ has finite order, we conclude that $\pi_G(1)=0$. Since $\Bbb Z=\langle 1\rangle$, $\pi_G$ maps every integer to $0_G$. Now let $a$ and $b$ be non-zero integers. Then $b\cdot\pi_G\left(\frac a b\right)=\pi_G\left(b\cdot \frac a b\right)=\pi_G(a)=0_G$. As above, this shows that $\pi_G\left(\frac a b\right)=0_G$. Thus if $\pi_G$ is not an injective function, then it must map everything to $0_G$, so $G$ will be a trivial group. The same result holds for $\pi_H$. Since by assumption, $G$ and $H$ are non-trivial, $\pi_G$ and $\pi_H$ are both injective functions, which is of course impossible.


If an angle is the measure of distance between to points (Edit: Ok, admittedly bad phrasing. A measure of rotation between two intersecting lines, or points, etc.), is there such a thing as a zero degree angle? I asked a math nerd friend about this years ago and he still hates me for it but couldn't prove it either way at the time. Is this merely pedantic or delusional thoughts regarding definition of "angle" (Edit: based on answer below regarding Euclidian geometry, this all now seems very likely a colossal misunderstanding) or am I missing something? I do not think zero degree angles exist. Is there proof of this either way?  Edit: A better question would be why Euclidian zero degree angles were thought to not exist, or why he avoided them?


Supposing $a\neq b \in \mathbb{R}$, for $$ A_n =\begin{bmatrix} p_1 &a &\ldots &a &a \\ b &p_2 &\ldots &a &a \\ \vdots &\vdots &\ddots &\vdots &\vdots \\ b &b &\ldots &p_{n-1} &a\\ b &b &\ldots &b &p_n \end{bmatrix} $$ (Other than on the diagonal line, entries are either $a$ or $b$'s.) Show that $$ \textrm{det}(A_n) =\frac{bf(a) -af(b)}{b-a} $$ where $$ f(x) :=(p_1-x) (p_2-x)\dotsb (p_n-x) $$  I tried many values, and it seems to be correct. My obvious idea is to show this by mathematical induction, but things gets messy. And the expression seems to allow an application of MVT, but it is not clear how to proceed.


I need to read from a number of files but sometimes they are not available or cannot be read from current user. This is the code I'm using to check if file is valid but I think I'm not using the using statement correctly.  private static bool fileAccessible(string filePath) {     using (FileStream fs = new FileStream(filePath, FileMode.Open)) {         if (fs.CanRead) {             return true;         }         else {             return false;         }     }      return false; // compiler says "unreachable code" }   Should I insert a try/catch block outside the using statement to catch errors raised by unavailable file or will using go on without raising an error if filePath is not available?  Bonus question: is this the correct way to check if file is available and accessible? If the answer is Yes can I change FileMode.Open to FileMode.Append to perform the same check on writable files?


How can a horse pull a cart, given Newton’s third law?

My question is very general, so I would like to narrow down what my confusion is about: I understand that the forces in a N3 pair act on opposite bodies, which means they cannot be added. I also understand how to solve the horse and cart problem when considering the horse and the cart to be one system, and thus ‘ignoring’ the internal forces, as they are not relevant in the overall acceleration of the system.  However, when I presented this knowledge to my Physics teacher, he said that although it was true, it didn’t answer the horse’s question. This is because in the story he told us about the horse and the cart problem, the horse doesn’t refer to any type of system that encapsulates both it and the cart. Instead, it asks “How can I pull this cart”.   I have thought extensively about this problem, and I keep coming up with the same problem. I will try to describe my reasoning below, so it is easy to pick up the mistakes I have made:  A horse exerts a ‘backwards’ force on the ground (H-G), and thus the ground exerts a ‘forwards’ force on the horse (G-H). The same thing (Although opposite) happens at the cart’s wheels: The carts wheels exert a ‘forwards’ force on the ground (W-G), and thus the ground exerts a ‘backwards’ force on the wheels of the cart (G-W). Now, if the horse and the cart were seen as a closed system, one could simply say that: “if (G-H) is greater in magnitude than (G-W) then the system will accelerate.  But, I would like to examine the horse, which is where my confusion lies. The forces at play here are: (H-C), the ‘forwards’ force on the cart, exerted by the horse. And, (C-H) the ‘backwards’ force on the horse, exerted by the cart.  This is my thought process: The force (G-H) moves (or, tries to move,) the horse forward. It is my understanding that this is the ‘source’ of force in the whole problem, because without it, none of the other forces would exist. Then, due to the fact that the horse is trying to move forward, the horse exerts a force (H-C), which tries to move the cart forward. I understand that these two forces are not a N3 pair, by I can’t help but think that they are directly linked. If the force (G-H) becomes greater, then it is my understanding that the force (H-C), will increase equally. Then, because (H-C) and (C-H) are a N3 pair, the force (C-H) will be equal in magnitude to (H-C), and thus also equal in magnitude to the force (G-H). Then, if I examine the forces acting on the horse, I see (C-H) acting ‘backwards’ and (G-H) acting ‘forwards’. I understand, by my previous logic, that these two forces are equal, and thus balance to give a resultant force of 0 on the horse, which thus can’t accelerate. I understand that I have some flaw in my reasoning, but I cannot seem to figure out what it is.


I'm using SQL Server 2008 R2 Enterprise 64 bit.  My question is:  I have two tables t1 and t2 one has an Id column the other a name column  I can query them so that I get the following result:  ID     Name 1      bob 1      ted 2      bill 3      frank   What I want is the result to look like this:  ID     name 1      bob ted 2      bill 3      frank   The name column can have 1 to n names  What I really need to do is pivot the second column. I have used the cast for xml and stuff functions but these dont really work for what I need.  I tried to write a pivot function but I get an error message.  SELECT ID, name As name    FROM  (SELECT   ID, name   FROM dbo.t1 AS t1               INNER JOIN              dbo.t2 AS t2 ON t1.ID = t2.ID                                       WHERE  (some filter) AS s PIVOT (   max(name)   FOR   [name]   IN ( [name] )) AS p   Thanks in advance :)


Why was an 8 TeV collider needed to find a 125 GeV Higgs?

This might be very naive, but why wouldn't a (say) 209 GeV LEP do the job?


I'm trying to install KDE 5 on my Ubuntu 16.04 system as per the instructions in , but I'm getting the below error message when running sudo apt-get install kubuntu-desktop.  Is there something I can do to resolve this?  Need to get 682 kB/326 MB of archives. After this operation, 1,272 MB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://ir.archive.ubuntu.com/ubuntu xenial/universe amd64              gtk2-engines-oxygen amd64 1.4.6-1ubuntu1   Temporary failure resolving 'ir.archive.ubuntu.com' Get:2 http://ir.archive.ubuntu.com/ubuntu xenial/universe amd64              libkf5sendlater5 amd64 4:15.12.3-0ubuntu1 [45.2 kB] Get:3 http://ir.archive.ubuntu.com/ubuntu xenial/universe amd64              libthreadweaver4 amd64 4:4.14.16-0ubuntu3 [46.6 kB] Get:4 http://ir.archive.ubuntu.com/ubuntu xenial/universe amd64              libfarstream-0.2-5 amd64 0.2.7-0ubuntu1 [192 kB] Fetched 284 kB in 1min 9s (4,093 B/s)         E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/pool/universe/g/             gtk2-engines-oxygen/gtk2-engines-oxygen_1.4.6-1ubuntu1_amd64.deb               Temporary failure resolving 'ir.archive.ubuntu.com'  E: Unable to fetch some archives, maybe run apt-get update or              try with --fix-missing?


Me getting a hangover is nothing like her getting a hangover.   -     I'd rather contemplate you singing than him singing.   Is this grammatically correct?


given is a symmetrical bilinearform s that has the following matrix:  $A = M_\beta(s) = \begin{pmatrix} -3&0&-1\\0&-3&0\\-1&0&-1\end{pmatrix}$  I have to calculate the signature of s and tell, whether s is positive-definite, negative-definite or indefinite.  I take a look at $det(A-t\cdot E_n)$ and get three eigenvalues $< 0$. This means:  Signature $\sigma(s) = (3,0,0)$ and the matrix is positive definite, right?


I'm working on storing result of xml feed into database... I'm able to load file... but when I want to store data into array, it stores instead of value ([title] = 'Klapka 120mm';) this:      [title] => SimpleXMLElement Object ( [0] => Klapka 120mm )   Do you know, where might be problem?  Source code:   Here is part of one function:  $import_file = simplexml_load_file($this->input->post('import_url')); // load file from url $affected_products = 0;      foreach($import_file->SHOPITEM as $product) {                     $affected_products += $this->import_product($product);     }      Here is first part of function import_product:  public function import_product($product)  {        /* save product data into array */    $data = array(             'title' => $product->PRODUCT,             'content' => $product->DESCRIPTION,             'price' => $product->PRICE,             'price_vat' => $product->PRICE_VAT,             'ean' => $product->EAN,             'count' => $product->AVAILABILITY         );    die(print_r($data));   Thank you very much for your replies


Is there any hope to bring back Unity on Ubuntu 17.10?    Personally, I (still) don't like Gnome. The main reason I like Unity is for the top bar integration (and the Alt suggestions).  I just couldn't find any good extensions for Gnome to do that.  I upgraded from 16.10 to 17.04 and then 17.10 (which came with Gnome). Everything went fine, but I just want Unity back...  How to do that?    I already tried:  ionicabizau@notebook:~$ sudo apt install unity [sudo] password for ionicabizau:  Reading package lists... Done Building dependency tree        Reading state information... Done unity is already the newest version (7.5.0+17.10.20171010-0ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.


$\sum_{1}^{\inf}{\phi(n)/n^x}$ Get an closed form expression for the value in terms of x.  Also, is there a closed form for the function $f(x) = \sum_{1}^{\inf}{\pi(n)/n^x}$. If you use PNT you can get some expressions in terms of li integrals but that's probably a dead end and since PNT is only an approximation its not the actual function.


If A is invertible, prove that $\lambda \neq 0$, and $\vec{v}$ is also an eigenvector for $A^{-1}$, what is the corresponding eigenvalue?  I don't really know where to start with this one. I know that $p(0)=det(0*I_{n}-A)=det(-A)=(-1)^{n}*det(A)$, thus if both $p(0)$ and $det(0) = 0$ then $0$ is an eigenvalue of A and A is not invertible. If neither are $0$, then $0$ is not an eigenvalue of A and thus A is invertible. I'm unsure of how to use this information to prove $\vec{v}$ is also an eigenvector for $A^{-1}$ and how to find a corresponding eigenvalue.


Probability that elements in a noncommutative group commute

We consider $G$, a noncommutative group which contains $n$ elements.   Show the probability that $2$ elements of $G$ commute is lower than $\frac{5}{8}$.


what is the reason behind changing values of python list without explicit modification?

def isCyclicUtil(graph,v,visit,parent):      visit[v]= True     for i in graph[v]:          if  visit[i]==False :               if(isCyclicUtil(graph,i,visit,v)):                   return True             elif  parent!=i:                   return True      return False   def isCyclic(graph,n):      visited =[False]*(n)      for i in range(n):         print(visited,i)         if visited[i] == False:             if(isCyclicUtil(graph,i,visited,-1)) == True:                  return True       return False    print(isCyclic({0: [1], 1: [0], 2: [3, 4], 3: [2, 4], 4: [3, 2]},5))   At each iteration visited array is updated  OUTPUT: index : 0    visited array :  [False, False, False, False, False] index : 1    visited array :  [True, True, False, False, False] index : 2    visited array :  [True, True, False, False, False]   In the above code, values of visited array are being changed without any explicit modification to the visited array. what is the reason behind this?


How many different ways can 200 coins be distributed among 10 people so that:  1)everyone gets 0, or more, coins?  2)everyone gets 5, or more, coins?  I know how to do question it they have an exact requirement like if they each need a certain amount. However, when it comes to 0 or more I don't know how to approach the question can someone teach me the way? Thank you.


What exactly happens in your arXiv account if you no longer have institutional affiliation?

The question is similar to  but in addition I would like to ask the following: Don't  I need to change my email address if I am no longer affiliated to an institution?  Won't a new mail of the form www.someone@hotmail.com  make me lose ownership of all my papers and then need endorsement from another arXiv user?    Thanks in advance!


How to resolve: Reviewer #1 says remove section X vs. Reviewer #2 says expand section X

I am experiencing conflicting reviews with my manuscript that recently received its reviews. The reviewer #1 wants me to delete the analysis X for the clarity and focus of my MS, while reviewer #2 wants me to further discuss the results of analysis X, as it appears to be interesting for him/her. Both comments have important points. Reviewer #1 will make the MS short and clear, while reviewer #2 will make the MS longer and open more discussions.


error when using `sudo update alternatives`

$ sudo update-alternatives --install "usr/bin/java" "java" "usr/lib/java/jdk1.8.0_144/bin/java" 1 update-alternatives: error: alternative link is not absolute as it should be: usr/bin/java   Help me out guys, what am I missing?


Add Desktop Environment to minimal install only cli?

I tried installing from a usb with a full image, but was having issues. So, I tried a minimal install and selected to include ubuntu desktop, but upon first boot it brought me to an extremely bare bones command line interface.  This is a quote from the canonical minimal page at :  "To install, boot your computer from the the mini iso and select "Install" at the prompt. You can then follow the instructions from the text-based installer. On the software selection screen, you can select from a number of collections of software such as different desktop environments (kde, xfce, etc), a multitude of different servers, multimedia creation tools, media center (mythbuntu), etc. You can also select "Manual package selection" which will take you to aptitude. You may also select nothing and just continue to finish the installation. If you selected nothing, upon reboot you will arrive at a cli prompt; from here you can fully customize your new system."  I'm going to go ahead and try re-installing it again, but does anybody know how I could install a desktop environment? Not just a desktop environment, but the current standard Ubuntu environment?


My total reputation in the league is shown as 4249, but the year reputation is shown as 4443.  How can the year reputation be greater than total reputation?  I didn't offer any bounty.


Powershell Rename Multiple Files with LastWriteTime Prefix

I am trying to put together a Powershell script that will:  -Search recursively from a root directory -Exclude files with existing "yyyyMMdd " file name prefix -Rename the files not excluded above with ""yyyyMMdd " file name prefix based on their specific LastWriteTime  Note: ideally, this script should include all file type extensions  I have tried myself, but it would seem to be above my head, as my attempts are not going well.  Thanks, in advance.    #StampMe.ps1 param( [string] $fileName)  # Check the file exists if (-not(Test-Path $fileName)) {break}  # Display the original name "Original filename: $fileName"  $fileObj = get-item $fileName  # Get the date $DateStamp = get-date -uformat "%Y-%m-%d@%H-%M-%S"  $extOnly = $fileObj.extension  if ($extOnly.length -eq 0) {    $nameOnly = $fileObj.Name    rename-item "$fileObj" "$nameOnly-$DateStamp"    } else {    $nameOnly = $fileObj.Name.Replace( $fileObj.Extension,'')    rename-item "$fileName" "$nameOnly-$DateStamp$extOnly"    }  # Display the new name "New filename: $nameOnly-$DateStamp$extOnly"   I am hoping to change the line:  $DateStamp = get-date -uformat "%Y-%m-%d@%H-%M-%S"   To be LastWriteTime instead of get-date, but I have no idea how to make this happen.  This code (from another Super User question):  Get-ChildItem "Test.pdf" | Rename-Item -newname {$_.LastWriteTime.toString("yyyyMMdd") + " Test.pdf"}   ...successfully renames a single file, but I can't seem to integrate this into the larger script.    With regards to running the above recursively, I have tried this (also from ):  foreach ($file in get-ChildItem *.* -recurse) { ./StampMe.ps1 $file.name }   Which succeeds to apply the PS script to files in the root directory, but fails to apply to any files in the sub-folder tree that propagates from the root directory.


IntelliJ (Git) - cleared stash and recovered it

IDE : IntelliJ I just clicked on the "clear" in the unstash window by mistake and lost a huge stash. Is there any way to get them back?  (Why is the question getting voted down when none of the solutions that people suggested helped me to recover from my problem. Is one suppose to ask only pedantic and pedagogical questions? )


What is the meaning of 'more approximate'?

The book Principles of Programming Analysis contains a weird sentence that I do not fully understand:     Returning to the discussion of safe approximation note that if we modify Table 1.1 to include the pair (z,2) in RDentry(5) and RDexit(5) we still have safe information about reaching definitions but the information is more approximate.   I am confused about the more approximate part. Does this mean it is a more, or less precise approximation than before? I can read it both ways and both make sense to me.


$$A=\begin{pmatrix} 1 & -1 \\ -2 & 1 \end{pmatrix}$$      Find a matrix $B$ such that $B^3$ = A   My attempt:  I found $\lambda_1= 1+{\sqrt 2}$ and  $\lambda_2= 1-{\sqrt 2}$  I also found their corresponding eigenvectors $\vec v_1 =\begin{pmatrix} \frac{-\sqrt 2}{2} \\ 1 \end{pmatrix}$ and $\vec v_2 = \begin{pmatrix} \frac{\sqrt 2}{2} \\ 1 \end{pmatrix}$  I know the Power function of a matrix formula $A=PDP^{-1}$  Because it's the cubed root I'm looking for I don't know how to get the cubed root of the eigenvaules and keep the maths neat. Is there another way to solve this problem or an I going the wrong way about doing it ?


Can i use Soccer/football team names in my web, iphone and android apps?

If i don't use logos, player names, sponsors or any images can i use team names in a for profit app? The reason i mention these is that i have seen countless references to images and badges but not the name in text format only.  Eg print the league table or show a fixtures list or show some user stats in relation to a team name in the app.  I read that a court has ruled in 2012 that fixture lists are not copyright-able as they involve pure scheduling logic and no artistic or innovative value. Also i know that logos, shield, images, player names and images etc are copyright-able.  Do team names fall under fair use if it is purely the team name in a fixture list or in a list or teams?


On an injective ring homomorphism from the ring of continuous functions to the ring of differentiable functions

Let $\phi : C \to D$ be an injective ring homomorphism such that $\phi(1)=1$, where $1$ denotes the constant function $1$ and $C$, $D$ are the rings of continuous, respectively differentiable functions on $\mathbb{R}$. If $f \in C ,g \in D$ are such that $\phi(f)=g$, and $t_0\in \mathbb R$, is it true that $\phi (f-g(t_0))=g-g(t_0)$ ? This is used on page 944, . And why if the image of $\phi $ consists of only constant functions, then $\phi$ is not injective ? Please help. Thanks in advance.


How can I get console ssh to NOT ask for my private key password every time?

I have a program required by work installed on a Debian Wheezy box. Previously I was using Mac OS X (switch details irrelevant). I have an SSH keypair at ~/.ssh/id_rsa{.pub}. That keypair has a password on it.  The program I run for work uses executes a loop. That loop invokes SSH multiple times. Each trip through, I'm asked for my password for the private key again. On OS X, this happened only once per boot, regardless of uptime.  I want to get this to where I can input my ssh key password ONCE and have it accepted immediately every single time the key is invoked for the remainder of the machine's uptime (like how it's done on OS X).  I am NOT using a gui. No xwin here. This is a server installation.  Multiple searches have turned up only garbage introducing people to the concept of SSH keys. This is a bit more unique. Please point me at the right command so I can read the man page.


There are a few examples of pairs of words ending with -ee/-er like employee and employer or advisee and adviser. What I was curious about is if there was any rule that would describe the relationship of the objects in a pair like this and situations when it's appropriate to create a counterpart for a given word.   I'll give you an example. It's relatively common in the computer programming world to see the word dragee, which describes an object that is being dragged with a mouse. I understand that this is a relatively new word and could not be found in any dictionary (I've tried). Is that acceptable to make up words like this one or is it just bad English?


Why does atmospheric pressure act on us?

I have a bit of misconception about weight which I want to clarify.   The air pressure is explained as the weight of the air column above our head acting per unit area. But since air is not continuous how can the weight of all the air molecules (above our head) be acting on our head? I mean we would only feel the weight of the molecules near the surface of our head (if not then why not?) but how do we feel the weight of molecules so far away?  I have edited this question and asked  follow up question (so that it remains specific).


How do you update a GitHub repo fork in the web interface?

I have a Github repository that I forked from some other project several months ago. It is now several months later and the original master repo has changed. I would like to update my repo to reflect those changes. Is this possible in the Github web interface? Or do I just need to delete the repo and re-fork it?


Taking Back Up Of SharePoint Sub site and Restoring in to another Sub site

I have a SharePoint Sub site , I want to take the back up of the Sub site and want Restore in to another Sub site of different Site collection, The site collection is belongs to different web application.  Is it Possible through Power shell Command?.  Please Help Me


I would like to change the symbolic permission[lrwxrwxrwx] to 755. I've used the command to try and change the permissions and it's not working.  $ chmod -R 755 symbolic link folder


How do I find the summation of this series?

$$\sum_{x=0}^{\infty}\frac{x}{2^{x}}$$   This looks like a geometric series but the $x$ is throwing me off. I don't know how to proceed. Any help would be greatly appreciated.


Keeping closed sites in suspended animation: a modest proposal

At the moment, when a site is closed to due to insufficient activity, it's taken offline and archived.  I'd like to propose an alternative approach.   Let's keep all the content online. Keep the "link" functionality active, so that people can create links to it. But put all activity that's user-generated content, into suspended animation, so that when anyone tries to ask, to answer, to edit, to upvote, downvote, or otherwise contribute to the site, they get a message telling them that the site is in suspended animation, but will be resurrected once a certain number of people (200, or whatever), have committed to contributing to it once it reopens. Manage the commitment / reopening process through Area 51, with the usual rewards for getting other people to commit to reopening, just as they're rewarded for getting other people to commit to opening a beta site in the first place. Have a banner on every page in the site, stating that the site is in suspended animation, pending sufficient commitment to reopen it - and offering a link to the right place in Area51 to allow them to commit to reopening the site. When a site is suspended, send all contributors who've given SE an email address, an email with a link to Area51 and telling them how they can help re-open the site. Don't do any reputation-recalculating or badge-awarding while the site is suspended. Apply all this to a site's Meta-site too. Exclude the reputation on suspended sites from users' Exchange-wide all-site flair. Or include it. I can see benefits either way. It's a side-issue. Can we ignore it for now, until the above points have been agreed or declined?   Advantages:   all the content stays on the web for people to link to and benefit from; no new broken windows: the suspended animation prevents anyone adding spam or other bad content; StackExchange can continue putting advertisements on the content, bringing in some revenue. Beta contributors don't feel like all their hard work has gone to waste: thus they won't be deterred from contributing to other betas.   Oh, and please could this be trialled on the Economics site first?


Is logical "or" exclusive or inclusive in prime ideal definition

Ok, so an ideal is prime if for every $ ab \in I $, $ a \in I $ or $ b \in I $.  Now the two questions:  1: Is that an inclusive or exclusive or? Can both $a$ and $b$ be in I?  2: Can $ab$ be equal to either $a$ or $b$?


Does Quicksilver's walkman speed up with him?

In Days Of Future Past, Quicksilver spends a lot of time playing with electronics.  In his famous tour de force scene in the Pentagon, he specifically puts his headphones on before running around the kitchen.  But why?  Does the music on his Walkman speed up with him as he uses it, or is it still operating at "normal" speed? Or indeed, does any electronic device that he touches speed up?


Proof of: If $x_0\in \mathbb R^n$ is a point of local minimum of $f$, then $\nabla f(x_0) = 0$.

Let $f: \mathbb R ^n\to\mathbb R$ be a differentiable function.   If $x_0\in \mathbb R^n$ is a point of local minimum of $f$, then $\nabla f(x_0) = 0$.   Where can I find a proof for this theorem? This is a theorem for max/min in calculus of several variables.  @Peter Tamaroff   Here is my attempt:  Let $x_0$ = [x1,x2,...xn]  Let g$_i$(x) = f(x$_0$+(x-x$_i$)e$_i$) where e$_i$ is the ith standard basis vector of dimension n.   Since f has local min at x$_0$, then g$_i$(x) has local min at x$_i$.   So by Fermat's theorem, g'(x$_i$)= 0 which is equal to f$_{x_i}$($x_0)$   Therefore f$_{x_i}$($x_0)$ = 0 which is what you wanted to show. Is this right??? Any comments would be appreciated.


How do I get resolvconf to regenerate resolv.conf after I change /etc/network/interfaces?

After updating /etc/network/interfaces with something very similar to below, how do I get /etc/resolv.conf to update?  I tried (as root) resolver -u, service networking restart but they didn't work. I also fixed the symlink for resolv.conf and tried resolver -u again. Finally in frustration I rebooted, which did fix the problem by rebuilding /etc/resolv.conf.  Ubuntu 12.04, 64bit server, all the latest patches installed.  Example /etc/network/interfaces:  iface eth0 inet static     address 192.168.3.3     netmask 255.255.255.0     gateway 192.168.3.1     dns-search example.com     dns-nameservers 192.168.3.45 192.168.8.10


I can't get Skyrim guards to stop attacking me. I'm doing the Thieves Guild quest line and I'm just going into Markarth for the FIRST TIME, and the guards attack me immediately. All other guards in other cities (Whiterun, Riften, Winterhold) attack me too. I tried doing the thing where you sheath your wapons over and over, I've tried waitng 3 days, taking off my Thieves Guild armor, letting Uthgerd the Unbroken go, I don't know what to do next.  Added note, I haven't done a lot of the main quest so I technically don't even know I'm Dragonborn yet.


How to use siunitx to align decimal points in a table column

Could any of you tell me how do I align the decimal points in the 8th column and why is it that I’m not seeing vertical column dividers in the first row except before classes?  \begin{center} \begin{tabular}{r|c|r|r|l|l|l|r|l} \multicolumn{1}{c}{$i$} & classes & \multicolumn{1}{c}{$x_i$} & \multicolumn{1}{c}{$f_i$} & \multicolumn{1}{c}{$f_{ri}$} & \multicolumn{1}{c}{$\sum f_{ri}$} & \multicolumn{1}{c}{$f_{tri}$} & \multicolumn{1}{c}{$f_{ti}$} & \multicolumn{1}{c}{$\sum f_{tri}$} \\\hline 1                       & 14–18 & 16                        & 28                        &                              &                                   & given                          & 27,7                         &                                    \\ 2                       & 18–22 & 20                        & 18                        &                              &                                   & given                          & 18,3                         &                                    \\ 3                       & 22–26 & 24                        & 11                        &                              &                                   & given                          & 11,05                        &                                    \\ 4                       & 26–30 & 28                        & 9                         &                              &                                   & given                          & 6,5                          &                                    \\ 5                       & 30–34 & 32                        & 2                         &                              &                                   & given                          & 3,8                          &                                    \\ 6                       & 34–38 & 36                        & 2                         &                              &                                   & given                          & 2,2                          &                                    \\ 7                       & 38–42 & 40                        & 0                         &                              &                                   & given                          & 1,9                          &                                    \\ 8                       & 42–46 & 44                        & 1                         &                              &                                   & given                          & 0,7                          &                                    \\ 9                       & 46–50 & 48                        & 1                         &                              &                                   & given                          & 0,43                         &                                    \\ 10                      & 50–52 & 52                        & 1                         &                              &                                   & given                          & 0,24                         &                                    \end{tabular} \end{center}   Thank you so much!


Can I recover my data after accidental factory reset?

My phone just managed to do a factory reset, all on its own. Can I somehow retrieve at least the portion of the lost data? On computer for both linux and windows there are programs that can recover parts of harddrive which have been marked empty but still contain data from deleted files.  Is there a way to do this on Samsung Galaxy with Android 4.1.2? Because I really need my contacts and some of my memo notes were really important.


pivot a table with cell name as column name


I want the name of at files that i save to start with zeros

I made a for loop to save files in a directory but i would like the name of the file to start with zeros   this is the code that I made  for index, i in enumerate(list):      im = PImage.fromarray(i)      im.save(dir + '/' + 'data_' + str(index) +'.tiff')   And now the file names are   data_1.tiff   data_2.tiff  and so on   But I would like them to be   data_001.tiff  data_002.tiff


What is the difference between equality and congruence outside of geometry?

Yes, I have seen that this question has been asked and answered before in this same website, but answers given there were mostly in regards to geometry, or non-mathematical examples (e.g. "the 'e's in the word 'between' are congruent, but not equal", "two triangles with the same dimensions and points are equal").  I can understand this just fine, but I can't use this advice when it comes to pure numbers, like mods. For example: $17 \equiv 5 (mod(6))$. How is this statement correct? If we solve $5 (mod(6))$ we get $5$, so that would mean $17 \equiv 5$.  Also, $17 \equiv 4(mod(13))$, which means $17 \equiv 4$, and $17 \equiv 3(mod(7))$, which is $17 \equiv 3$  So then, $17 \equiv 5 \equiv 4  \equiv 3$ is true? That doesn't seem right. Are all positive integers congruent to one another?  I know this may seem like a simple matter to some, but I'm seriously stuck.


For which value of $n$ the ring $\mathbb{Z}[\sqrt{n}]$ is a UFD?

For which value of $n$ the ring $\mathbb{Z}[\sqrt{n}]$ is a UFD ?   I am literally very confused about it. I know that when $n=2,3,-1,-2$ (there are many other value also) then the ring is UFD but I want to know some generalized principles that help in decision making. Your help will be appreciated. Thanks.


How to understand the usage of "when/while doing something" in grammar?  For example,     I am watching TV, when sitting in my   sofa.   I think "when" and "while" can never be used as prep.. They are conj. instead.  I remember seeing some explanation from a English grammar book, written for people speaking another language, which basicaly said "when/while doing something" is just a shorthand of "when/while somebody is doing something", where "somebody is" must appear in the main clause, otherwise this shorthand usage is not valid. For example, it is wrong to say     I watch TV, when sitting in my sofa.   because in the main clause there is no "be".  I would like to see if someone can concur or refute this explanation from rigorous English grammar point of view.


Was the absence of R2's thrusters ever explained?

Someone thought that in both AotC and RotS R2-D2 should have rockets built into his side legs, but if he still had the thrusters in ANH and beyond he never visibly used them- was there ever an explanation to why?


I was just browsing the endless list of jsperf tests and looked at the one called  . I expected the outcome to be a no-brainer ( === to be faster ) but no, not in FireFox.  Can someone explain to me how Firefox can be so fast and how it is possible that === is more or less equal to == ?  Although  post has a lot in common with my post, it doesn't answer the result Firefox produces!


Why does comparing a variable to 0.0 return false?

I'm curious about the behavior of the following code:  0.0 is 0.0 # True  a = 0.0 a is 0.0 # False   It seems to me that a is 0.0 should evaluate to True. In my particular case I need to distinguish when a variable is 0.0 specifically, so a == 0 will not work because it will fail when a is equal to False. What's the best way to accomplish this?


Distance of an element to $\ker f$ in a normed vector space.

Let $E$ a normed vector space and the hyperplane $H=\ker f$ with $f\in \mathcal{L}(E, \mathbb{R})$. Prove that if $a\in E$ then $\displaystyle{d(a, H)=\frac{|f(a)|}{\|f\|}}$


I have the Toshiba Satellite A100-011 and i upgrade the RAM from 2GB to 4GB but when i boot to windows i have usable only 3GB RAM and on Ubuntu have 2.9Gib RAM. The BIOS see 3143680KB of RAM. I try these fixes:  I run memtest86+ and and is not find any problem. But below of the test information is display and the 2 RAM modules with the correct size of each module. I switch the position of RAM modules, and again is not see 4GB on any OS.


When running a command on a file, is there any way to reference the file without typing the entire name?

For example:  tar xvf test.tar.gz ;  rm test.tar.gz   Is there a faster way to reference the file name on the second execution?  I was thinking something like this (which is invalid):  tar xvf test.tar.gz ; rm $1   Anything possible?  I'm fully aware of wildcards.


Is there a quick way to get the control that's under the mouse?

I need to find the control under the mouse, within an event of another control.  I could start with GetTopLevel and iterate down using GetChildAtPoint, but is there a quicker way?


How to do unit testing on private members (and methods) of C++ classes

I am very new to unit testing and I am a little confused.  I am trying to do unit testing (using the Boost unit testing framework) on a C++ class called VariableImpl. Here are the details.  class Variable { public:   void UpdateStatistics (void) {     // compute mean based on m_val and update m_mean;     OtherClass::SendData (m_mean);     m_val.clear ();   }   virtual void RecordData (double) = 0;  protected:   std::vector<double> m_val;  private:   double m_mean; };  class VariableImpl : public Variable { public:   virtual void RecordData (double d) {     // put data in m_val   } };   My question is how can I check that the mean is computed correctly? Note that 1) m_mean is protected and 2) UpdateStatistics calls a method of another class and then clears the vector.  The only way I can see would be to add a getter (for instance, GetMean), but I don't like this solution at all, nor I think it is the most elegant.  How should I do?  And what should I do if I were to test a private method instead of a private variable?  TIA,  Jir


Find $\lim_{n\to \infty}\mathbb P (X + n = Y)$ where $X,Y$ are independent Poisson variables

A pitcher contains $X + 1$ blue balls and $Y + 1$ red balls. It is known that $X, Y$ are independent random variables, and it is given that $X \sim \mathrm{Poisson}(n), Y \sim\mathrm{Poisson}(2n)$. Calculate the limit: $\displaystyle\lim_{n\to \infty}\mathbb P (X + n = Y) $   I tried to condition on the value of $Y$ and to use the Law of total probability but it did not lead to a solution. ( I tried to sum: $ \sum_{i=0}^\infty\mathbb P(X+n=Y|Y=i)\mathbb P(Y=i) $ and get an expression that I can calculate its limit as n goes to infinity)


Why does do-release-upgrade on 12.04 system not find 14.04.1 upgrade?

I saw an article that 14.04.1 was released today so I went to update an LTS machine but it didn't find an update.  $ sudo do-release-upgrade Checking for a new Ubuntu release No new release found  $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 12.04.4 LTS Release:    12.04 Codename:   precise   What's the criteria for getting upgrades for LTS releases?


Failed to achieve intended project outcome, what to put on design fair poster?

I have been working on an ultrasonic transducer technology for a while now. This project involves a very novel components that has not yet been established to work. Because of the novelty of this project, there were a lot of difficulty, and with the schools' design fair looming, our team have encountered a very delicate issue with power consumption which will require some time to find a solution.  So what the team has done is to apply a common, industry standard approach you can find anyone on the Internet. In essence, the novelty of this project is gone and has became something anyone could do.  We are a little unsure as to what we should demonstrate for the design fair. On the one hand we can show the technology working, but our poster has to reflect that it is nothing novel (in fact has been done in the year prior) and all components are off of the shelve. On the other hand we can show an incomplete project with the intended novel technique on the poster, but without anything to show for.   What should we do in this case?


The preimage of a Lebesgue measurable set under a measurable function need not be measurable

I am reading measure theory from Royden, and I am stuck in some of them. I have this question:      suppose  $E$ is  a measurable set and let $f: E \to \mathbb{R}$. Prove that : $f$ is measurable if and only if $f^{-1}(A)$ is measurable for any $A \subseteq \mathbb{R}$.   I know this is not true if measurable means "Lebesgue measurable", can anyone give a counterexample in details ?


Generalizing $\sum \limits_{n=1}^{\infty }n^{2}/x^{n}$ to $\sum \limits_{n=1}^{\infty }n^{p}/x^{n}$

For computing the present worth of an infinite sequence of equally spaced payments $(n^{2})$ I had the need to evaluate  $$\displaystyle\sum_{n=1}^{\infty}\frac{n^{2}}{x^{n}}=\dfrac{x(x+1)}{(x-1)^{3}}\qquad x>1.$$  The method I used was based on the geometric series $\displaystyle\sum_{n=1}^{\infty}x^{n}=\dfrac{x}{1-x}$ differentiating each side followed by a multiplication by $x$, differentiating a second time and multiplying again by $x$. There is at least a second (more difficult) method that is to compute the series partial sums and letting $n$ go to infinity.  Question: Is there a closed form for  $$\displaystyle\sum_{n=1}^{\infty }\dfrac{n^{p}}{x^{n}}\qquad x>1,p\in\mathbb{Z}^{+}\quad ?$$  What is the sketch of its proof in case it exists?


How do I get the gold hero shot replica in Splatoon

I've been playing Splatoon for awhile and I saw a lot of gold weapons. I have the gold aerospray and gold Dynamo roller, but I want to know if there is a gold hero shot replica.   If so how do I get it?  My question is different from that question because this question is asking if there is a gold hero shot replica and how to get it and that question is asking how to get the gold Dynamo roller and gold aerospray


Is this a bedbug or a book lice or what?

So basically i found this thing in my home. It's super small so I had to zoom it for you. Whiteish/yellowish colour. We had bedbug problem back in our dorms and I'm worried I somehow managed to transfer them home but I don't know if it's a bedbug nymph or a book lice or what kind of insect, so I'd really appreciate someone's opinion on this.  Edit: It's really small, like. really small. my mother wouldn't even see it and thought me crazy. Just zoom made it look bigger. I'd say 1.5mm maximum at the very best. Moves kinda quickly and I thought it jumped two times when i was trying to capturing but maybe it was just me doing it to it. Living in Europe, Slovakia specifically.


"On/at/for/over the weekend" in American English

Some sources say that "at the weekend" is wrong, while other ones say it's correct. Which form is acceptable in American English?        On Saturdays her sister Ann usually comes to stay with Mary on/at/for/over the weekend/s.   What are you going to do at/on/for/over the weekend/s?    We are going to Paris on/at/for/over the weekend/s.   Are you going to stay here for/at/on/over the weekend/s?      Which preposition do American English speakers use — at, on, for, over?


Raw sausage left at doorstep for 4 hours

So guidelines say 2 hours unrefrigerated for raw sausage and raw meatballs... but I was wondering if it's still ok at 4 hours if it passes the smell test.  I had a grocery delivery during the day where they didn't ring the doorbell and I only discovered it at 5pm.  It was left in the shade but is the first hot day of the season.  It was still luke cool to the touch but definitely not cold.  The ice cream bars had melted and become runny.  I was going to cook all the bratwurst and meatballs the next day if it would be ok.  Otherwise, I'd have to throw them out.  Should I eat or throw away?


Decomposition of a homogeneous polynomial

Let $k$ be a field.  Suppose I have a homogeneous polynomial $f$ in $k[x,y,z]$. If $f$ is reducible, does it always decompose as a product of homogeneous polynomials? Thanks!


what ppa should be removed to not get apt-get update error

When I try to update I get this error. I am not sure why am I getting this error.   Fetched 424 kB in 46s (9,190 B/s)                                               W: GPG error: http://download.opensuse.org  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A7D1D38BEB6D886 W: Failed to fetch http://ppa.launchpad.net/alexeftimie/ppa/ubuntu/dists/wily/main/source/Sources  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/alexeftimie/ppa/ubuntu/dists/wily/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/alexeftimie/ppa/ubuntu/dists/wily/main/binary-i386/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.


How do I instantiate a custom class with dependency injection?

I am relatively fresh to the DI party and am struggling to get my head around how exactly to use Dependency Injection. I understand that I can pass requirements as part of a service, but what about in my own class?  Say I have the below class where I want the language manager service to be injected:  class Foo implements ContainerInjectionInterface {    protected $languageManager;     public function __construct(LanguageManagerInterface $languageManager) {     $this->languageManager = $languageManager;   }    public static function create(ContainerInterface $container) {     return new static(       $container->get('language_manager')     );   } }   When I call new Foo() I am required to pass an instance of LanguageManagerInterface. That makes sense in terms of a normal constructor method, but that would require me to instantiate the class like the below:  $languageManager = \Drupal::service('language_manager'); $foo = new Foo($languageManager)   That just doesn't feel right to me.  Is there something I am missing, or would this class always have to be a service to take advantage of dependency injection?


I would like to search for a file with GUI. I have 2 files :  /world/europe/georgia_and-its_capital-tbilisi.info /world/north_americas/usa/georgia_state_capital.info ;   A search for:  find /world -name "*gia*capit*"   -- brings up the two files.  How to conduct this search with Nautilus' search or any alternate suggestion? I use Ubuntu 12.04 LTS.  And Applications | Search is not available on it.


I've waiting list ticket with status: WL3. Will it get confirmed or not?

I have booked 1 tickets to LTT Express and it's showing Waiting List 3 in 2nd tier. Will my ticket get confirmed and when does it get confirmed?


People in the gym work out (missed correct adverb)

Some days ago I've said that "people in the gym work out hardly", then someone told me that when I say "hardly" in this context, then the meaning is in fact opposite of what I want to say (that their workout takes a lot of power).   Then my question is what is the adverb that can replace the incorrect adverb "hardly" to some other correct word in this context?


Empty vector menu in QGIS on PC with French as default language

I installed QGIS 3.0.0 on a PC with French as default language. After changing the language of QGIS to English, the 'Vector' menu is empty and there is a French 'Vecteur' menu. Any ideas how to fix this? I cannot change the system language.


Trying to identify a short story about a Man who becomes a genius due to a US government lab experiment

Along the lines of the movies "Limitless", or Scarlett Johansson's new movie "Lucy". Basic premise of the story is: Man escapes from US government facility after the treatments, his brain continuing to evolve. Teaches himself to manipulate the usual systems: financial markets, the internet etc. while evading the government.  Then he becomes aware that there's someone else out there like him. An earlier test subject, further along on the brain evolutionary path.   They face off at the end, battling with a slightly vague form of mental combat...  Our protagonist loses, due to his opponent triggering some sleeper logic bomb implanted in his subconscious some weeks earlier via some abstract visual pattern.   I found this on the internet a few years ago. Any suggestions?


I have just started learning c++, in c++ programming some times I have to use ^ after string for example   string^ abc;   And sometimes there is no need of ^ and we can write our line as  string abc;   This confuse me a lot, I don't know when to use ^ and when to ignore it. I know its a foolish question but I desperately need to clear my concept of ^ so please tell me when to use and when to ignore ^ in c++.


minimum distance between 2d and 3 d curves

Let $P(x,y,1)$ and $Q(x,y,z)$ lies on the curve $\displaystyle \frac{x^2}{9}+\frac{y^2}{4}=4$ and $\displaystyle \frac{x+2}{1}=\frac{\sqrt{3}-y}{\sqrt{3}}=\frac{z-1}{2}$ respectively. Then the square of minimum distance between $P$ and $Q$ is   process i try  parametric coordinate for ellipse is $\displaystyle x = 6\cos \theta,y=4\sin \theta$  and line is $x=\lambda-2,y=\sqrt{3}-\sqrt{3}\lambda,z=2\lambda+1$  how do i solve it help me


Is this proof that $\sqrt 2$ is irrational correct?

Suppose $\sqrt 2$ were rational.  Then we would have integers $a$ and $b$ with $\sqrt 2 = \frac ab$ and $a$ and $b$ relatively prime.  Since $\gcd(a,b)=1$, we have $\gcd(a^2, b^2)=1$, and the fraction $\frac{a^2}{b^2}$ is also in lowest terms.  Squaring both sides, $2 = \frac 21 = \frac{a^2}{b^2}$.  Lowest terms representations of rational numbers are unique, so we have $a^2 = 2$ and $b^2=1$.  But there is no such integer $a$, and therefore we have a contradiction and $\sqrt 2$ is irrational.  I am not interested in the pedagogical value of this purported proof; I am only interested in whether the logic is sound.


Suppose you have mass of 1kg as you start to move it at a speed which is 90% of the speed of light then what will happen to that mass? Will it increase?


When I have equations, as in  \begin{equation} ... \end{equation}   Can I arbitrarily assign the numbers to the equations? Instead of the usual order (1), (2), (3), ..., I'd like something like (1), (2.1), (2.2), (2.3), (3.1), (3.2), (4), ...


Transforming a sound wave into a literal light wave. Is it possible?

Literally transforming sound into an actual light wave seems almost impossible. But transforming the sound wave into a light wave while containing a single mass? I know that sound can contain a mass of solid, liquid or a gas type. but does light have a mass at all? Is it possible to literally transform sound into light while containing a single mass? I have a experimental project. I want to know if it's possible in the slightest way? let me figure out how, just for the fun of the research.


SQL Server transaction log reported full when it isn't

The transaction log for database 'WebDB' is full.  No, it isn't. Its 90% free. The transaction log backups run normally. My hardware guy tells me the hardware is running perfectly, with plenty of space. SQL Server 2008 SP3, but not R2.  I'm a developer, we no longer have a DBA. So it falls to me to try and fix this.


Does anyone know of a Thunderbolt 2 (not type C or thunderbolt 3) to usb 3 micro b cable?

I am looking to use my existing WD harddrive but use thunderbolt 2 instead of the usb3 A connection. I have looked for cables but all I find is type c ones.


Hint for problem on $4 \times 7$-chessboard problem related to pigeonhole principle

Suppose that each square of a $4 \times 7$ chessboard is colored either black or white. Prove that with any such coloring, the board must contain a rectangle (formed by the horizontal and vertical lines of the board) whose four distinct unit corner squares are all of the same color?   Any hints on this problem, I guess it could be solved with a clever application of the pigeonhole principle, but I have some difficulty seeing what the objects and what the bags are in which to put the objects to apply the pigeonhole principle, and then argue that such an coloring must exist. It is taken from a textbook on discrete mathematics, and in the text a version of the  is proven (using the pigeonhole principle). Hence, I guess it is somehow related to this.


Does the verb need "to" in this sentence?

All that can do is [to] make us disappointed.   Is the "to" required for the above sentence?


Cardinality of the Set of all finite subset of $\mathbb{R}$

Find the cardinality of the set of all finite subsets of $\mathbb{R}$.    I have proved that the set of all finite subsets of $\mathbb{N}$ is countable . But I cannot find the cardinality of the set in case of $\mathbb{R}$ .  My Attempt:   First I have considered the set $$A_k=\{\{a_1, a_2, ..., a_k\}| a_i \in \mathbb{R}  \ and\ a_1<...<a_k  \}$$  Then $S=$ The set of all finite subsets of $\mathbb{R}=\bigcup_{n=1}^{\infty}A_{n}$, and now in the case of $\mathbb{N}$, I could show that this $A_k$ is countable and consequently the set of all finite subset of $\mathbb{N}$ is countable.  But in this case I cannot say anything like this...In this case the set will be of the cardinality as that of $\mathbb{R}$ (I think). But cannot prove it.  I appreciate your help.  Thank you.


Is it okay to start a sentence with "Following"? For example: "Following is an example of a carnivorous animal:" Also, should I start the sentence from "The following" or simply "Following" works?


Non zerodivisors in ideals of polynomial rings

The question is the following:     Let $f$ be a polynomial of the ring $R[x_1, \ldots, x_n]$, with $R$ any ring, and let $\mathrm{cont}(f)$ be the ideal generated by the coefficients of $f$. Why if $\mathrm{cont}(f)$ contains a non-zerodivisor of $R$, then $f$ is a non-zerodivisor of $R[x_1, \ldots, x_n]$?


I'm trying to complete a Multi-Criteria Evaluation for an MSc assessment and am in the process of standardising my factor maps.  Unfortunately, my DEM layer (ASCII file) keeps changing from this:    To this:    The syntax used in Raster Calculator is: (“DEM” – 0) / (544 – 0) where DEM is the layer, 0 is the minimum values and 544 is the max value.  Has anyone come across this before? Does anyone know how to standardise it so the surface variation is still present?  I've done the same for Topographic Wetness Index but that's done ok (both layers are visualised the same)


How should I cast the result of malloc in C++?

Please note this question is not about malloc in C or malloc vs new/smart pointers in C++.  If I use malloc in C++, what kind of cast should I use? The following all work.  int *a = (int *)malloc(sizeof (int)); int *b = static_cast<int *>(malloc(sizeof (int))); int *c = reinterpret_cast<int *>(malloc(sizeof (int)));   Live example:   I prefer to use C++ style casts in my code as much as possible and I want to adopt safe coding habits. Please advise with this in mind.  Thank you.


Is it possible to visit Croatia with a Single Entry Schengen Visa?

What if I was granted with single entry schengen visa but I will not utilize it to enter any schengen state but only in Croatia, is it possible?.   I will pass only a schengen state as connecting flight going to Croatia e.g. from my origin country to Germany as my connecting to my flight to Croatia and then vice versa.


creating a multidimensional list in python

Am trying to create a multidimensional list.  Input would be:  L1 = [2,3,4] L2 = [5,6,7]   Output would be x ** y, where x is from L1 and x is from L2  L3 = [[32,64,128],[243,729,2187],[1024,4096,16384]]   My code is as below:  L1 = [2,3,4] L2 = [5,6,7]  L3 = [[None] * len(L1)] * len(L2) c=0 for x in L1:     d=0     for y in L2:         L3[c][d] = x ** y         d = d+1     c = c+1  print L3   Here the output is :  [[1024,4096,16384],[1024,4096,16384],[1024,4096,16384]]   While debugging i got to know:  at the time of assigning to "L3[0][0]" , its assigning values to L3[0][0],L3[1][0],L3[2][0]. It should assign nine times. During each assignment its assigning to 3 places. I am not getting how its working.  I tried to print   id(L3[0]) id(L3[1]) id(L3[2])   and all are printing same memory location address.   Is it because of the same memory address that the value is passed to 3 places at once(the value of x**y is simultaneously going to L3[0][0],L3[1][0],L3[2][0]?  Can somebody help me out of this.  Thanks in advance, SRP


Two completely separated bibliographies in one document

I need two completely separated lists of bibliography in one document.   The first is just a regular reference list according to citations in the text. The second is supposed to contain only a subset of these entries, and it should start with  and go sequentially to [2], [3], ...  It is not related to the first references, but should be completely independent.  So far, I used   \usepackage[defernumbers=true,backref=true,backend=biber,style=ieee]{biblatex}   and then, after some citations, I put:  \printbibliography[title={References1},resetnumbers=true]   and after some more citations, I put:  \printbibliography[keyword=own,title={References2},resetnumbers=true]   Using the "keyword" filter, I was able to get a subset of the former citations, but the references do not start with  and aren't sorted correctly. In another trial, I used multibib, but there resetting the numbers led to wrong references being used in the text.  These two lists should just be completely independent - is that possible?  Here is a MWE with the biblatex approach:  \documentclass{article}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[USenglish]{babel} \usepackage{filecontents}  \usepackage[ defernumbers=true, backref=true, backend=biber, style=ieee ]{biblatex}  \begin{filecontents}{diss.bib} @techreport{Peherstorfer:2016, title = {Survey of multifidelity methods in uncertainty propagation, inference, and optimization}, author = {Peherstorfer, B. and Willcox, K. and Gunzburger, M.}, volume = {Technical Report 16-1}, year = {2016}, institution = {Aerospace Computational Design Laboratory, Massachusetts Institute of Technology}, }  @Book{Baier:2008,     month = {April},     publisher = {MIT Press},     title = {Principles of Model Checking},     year = {2008},     author = {Christel Baier and Joost-Pieter Katoen}     }  @Book{Koenig:2013a,     month = {November},     publisher = {Oldenbourg Wissenschaftsverlag},     title = {100 {\"U}bungsaufgaben zu Grundlagen der Informatik, Band II: Technische Informatik},     year = {2013},     type = {Book},     author = {Lukas K{\"o}nig and Friederike Pfeiffer and Hartmut Schmeck},     keywords = {own}     } \end{filecontents}  \addbibresource{diss.bib}  \begin{document} some text... \cite{Peherstorfer:2016,Baier:2008,Koenig:2013a}  \printbibliography[title={References1},resetnumbers=true]  some more text...  \printbibliography[keyword=own,title={References2},resetnumbers=true] \end{document}   This yields the following output:    But I need the numbering of References2 to start with 1 again (and, more importantly, to be sorted alphabetically; otherwise I could just use a sorting where all "own" references are put at the very beginning).


Getting CalloutException when testing Batchable class with Callouts and HttpCalloutMock

I'm trying to write test code for a Batchable class that AllowsCallouts.  I've written a lot of other test code that uses HttpCalloutMock classes, and planned to do so for this class as well.  And, per best practices, I'm setting up my test data before calling Test.startTest().  Even so, I get a CalloutException:     System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out   This somewhat makes sense, because my start() method passes a SOQL query to Database.getQueryLocator() and my execute() method makes the web callouts.  I'm guessing that when my test method calls test.stopTest(), both start() and execute() run in the same context.  In regular batch operation, they happen in separate contexts so there isn't any uncommitted work.  I intend to work around this by calling the methods directly, possibly even calling start() before Test.startTest(), and then using the returned Database.QueryLocator to get the list of records I'll pass into execute().  I don't like the fact that I'm not testing the batch size used by the static method that kicks off the batch with Database.executeBatch(), so I'll probably have that use a constant that I can reference from my test code to ensure it's using the same batch size.  Salesforce kind of addresses this in the "Asynchronous Apex and Mock Callouts" section of the , but they don't make reference to Batchable classes with Callouts.  They only talk about making callouts and testing Batchable classes in the same test method.  So, my question is whether there is a better way to write this test.  I'm also throwing this out so others searching the site can learn about possible workarounds.


How do I derive the time complexity of encryption and decryption based on modular arithmetic?

I want to calculate the time complexity of two encryption and decryption algorithms.  The first one (RSA-like) has the encryption  $$ C := M^e \bmod N $$ and decryption  $$ M_P := C^d \bmod N. $$  Assuming $n = \log N$, $m = \log e$ and $k = \log d$, I think they have time complexities $O(n^2 · m)$ and $O(n^2 · k)$, respectively.  Are these two complexities same?  I also have another pair of algorithms, with  $$ C := M · k \bmod N $$ and  $$ M_P := C · k^{-1} \bmod N.$$  How does the calculation of the modular inverse $k^{-1} \bmod N$ contribute to the time complexity?


Let $S$ be a nonempty set. Is there always a metric on $S$ such that the induced topology is $\{∅, S\}$?


If I remove any application with sudo apt-get remove <applicationName>, the application is removed and then I can remove the repository later on.  I have noticed that certain cached and config files remain in the system. Some take up a large amount of space, e.g. GOOGLE-CHROME. It is hard to find and delete the remaining manually, as I am often not certain whether to delete them or not.  Is there any way to delete an application including the config and cache files along with the application?


Is it possible to exclude some files from rm -rf?

I have a directory that I is filled by another user, and I'm tasked with maintaining it. I want to delete all its content except a 2 files with a specific name. Is it possible with rm or should I do this:  cp aaa/a ./a && cp aaa/b ./b && rm -rf aaa/* && mv ./a aaa/a && mv ./b aaa/b   where aaa is the directory, a,b are the files I want to keep, and there are (at least, there may be) other files/directories in there.  Is there a better (and shorter) way?


How to Get a Whiter Background when Taking Photos Against An Off White Wall?

I am trying to take a photo of a banner against an off white wall.  Is there a way to get a pure white background and the banner colors not be overexposed?  I am using a point a point and shoot camera on auto settings.  Right now, the picture looks a little/blueish.


Should I always use HTML5 Microdata for SEO?

So I've been looking into this HTML 5 Microdata, but I'm not sure if or when it is appropriate to use. I know that if used with rating and you search a website it will pull up things like video rating and article ratings etc. But for Microdata like People or Places, is that so useful that I should start implementing it into all my websites - big and small? How big of an impact will this really have on my SEO if I start using Microdata on everything?


Table number not right after using tabularx

I just found that after I used tabularx, the table number in my document is not right, shown as follows    where the first four tables were done using tabularx and they are all even numbered, despite the fact that no other tables are there in between, while the tables done using normal tabularx are numbered rightly. The following code is the structure I used   \documentclass[12pt]{article} \usepackage[margin=0.85in, paperwidth=8.5in, paperheight=11in ]{geometry} \usepackage{amsfonts} \usepackage{graphicx} \usepackage{subcaption} \newsavebox{\largestimage} \usepackage{tocloft} \newlength{\mylen} \usepackage{siunitx}   %%package for scientific notation  \renewcommand{\cftfigpresnum}{\figurename\enspace} \renewcommand{\cftfigaftersnum}{:} \settowidth{\mylen}{\cftfigpresnum\cftfigaftersnum} \addtolength{\cftfignumwidth}{\mylen}  \renewcommand{\cfttabpresnum}{\tablename\enspace} \renewcommand{\cfttabaftersnum}{:} \settowidth{\mylen}{\cfttabpresnum\cfttabaftersnum} \addtolength{\cfttabnumwidth}{\mylen}  \usepackage{verbatim} \usepackage{latexsym} \usepackage{amssymb} \usepackage{amsmath} \usepackage{pdflscape} \usepackage{soul} \usepackage{color} \usepackage{url}  %\captionsetup[table]{aboveskip=0pt} \captionsetup[table]{belowskip=11pt}  %%%%%tables \usepackage{geometry} \usepackage{booktabs} \usepackage{tabularx}  \usepackage{ltablex}  \usepackage{ragged2e} \usepackage{enumitem} \usepackage{makecell} \usepackage{textcomp} \renewcommand\tabularxcolumn[1]{>{\RaggedRight\arraybackslash}p{#1}} \newcommand{\tabitem}{~~\llap{\textbullet}~~} %%% bullet in table  \renewcommand{\baselinestretch}{1.5} \numberwithin{equation}{section} \numberwithin{figure}{section} \numberwithin{table}{section}   \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage[ backend=biber, natbib=true, hyperref=true, style=authoryear,firstinits,   uniquename=false, doi=false, isbn=false, url=false, mincitenames=1, maxcitenames=2, maxbibnames=999, ]{biblatex} \setlength\bibitemsep{\baselineskip} \DeclareNameAlias{sortname}{family-given}  \usepackage{float} \usepackage{hyperref} \hypersetup{      colorlinks   = true,      citecolor    = Blue } \usepackage{filecontents} \addbibresource{MyCollection.bib}  \usepackage[utf8]{inputenc} %%page number \usepackage[english]{babel} \setlength{\parindent}{0pt} %no indentation \usepackage{mathptmx} \begin{document}     \begin{center}     \begin{table}[H]     \footnotesize\keepXColumns     \renewcommand\theadfont{\bfseries\itshape}     \setcellgapes{3pt}\makegapedcells     \setlist[itemize]{wide =0pt, leftmargin=*, nosep, before=\vspace{-\baselineskip}, after = \vspace{-\baselineskip}}     \begin{tabularx}{\linewidth}{|c |X |} \hline     \thead{Title One} & \thead{Title Two} \\     \hline     \textbf{Things One} &  Content One\\     \hline     \end{tabularx}     \caption[Blah Blah]{Blah Blah}     \label{tab:one}     \end{table}     \end{center} \end{documen}   and how it looks like in the report   Everything is fine apart from the table number. Any suggestions on how to fix it. Thanks in advance.


I'd like to know what's the most publicly installed or widely used Linux system performance monitoring software that is available and compatible with Ubuntu 64 bit ?  I've installed Nagios in place for availability report but for the monitoring performance of more than 10 it is impractical to open SSH console running top for each server.  what I'd like to monitor is: 1. Disk space issue. 2. Resource hog. 3. Failed root / sudo login attempt. 4. anything else here ?  any kind of suggestion would be greatly appreciated.  Thanks.


I wanted to know how is the \LaTeXe symbol () made, I mean, the command definition of superscripts and subscripts on the "L", "A"... letters.


Restore main APFS container to full disk

I tried installing Windows 10 on my Macbook Pro with Bootcamp on Mojave, but through a series of manipulations, I broke my Windows installation and Bootcamp would not let me restore my system as it was before. So I deleted the Windows partition to the point where "diskutil list" gives me this:  MacBook-Pro-9:~ sarbogast$ diskutil list /dev/disk0 (internal):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                         2.0 TB     disk0    1:                        EFI EFI                     314.6 MB   disk0s1    2:                 Apple_APFS Container disk2         1.8 TB     disk0s2    3:                  Apple_HFS Untitled                196.7 GB   disk0s3  /dev/disk2 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +1.8 TB     disk2                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            1.6 TB     disk2s1    2:                APFS Volume Preboot                 64.7 MB    disk2s2    3:                APFS Volume Recovery                1.0 GB     disk2s3    4:                APFS Volume VM                      1.1 GB     disk2s4   How can I reclaim the 196.7GB that used to be occupied by my Windows partition so that my main container is almost 2TB again?  Note that I tried the resizeContainer command but got this:  MacBook-Pro-9:~ sarbogast$ diskutil apfs resizeContainer disk2 0 Started APFS operation Error: -69519: The target disk is too small for this operation, or a gap is required in your partition map which is missing or too small, which is often caused by an attempt to grow a partition beyond the beginning of another partition or beyond the end of partition map usable space


Remove the carbon copy email address from the email button on case

I use the email feature to send email from a case in Salesforce. Unfortunately, the BCC email address is every time filled by my email address when I open the widget. Is there a way to delete the BCC email addresss in the setup? Thanks


What is the seeding logic for the March Madness play-in (First Four) teams?

So, you'd think that the "First Four" teams would be considered the worst teams in the NCAA Tournament. They have to play themselves into the bracket a couple days before the real tourney starts.  But the teams aren't all vying for a 16 seed, as you might imagine. Why not? Did the NCAA committee decide beforehand that it would make the play-in games for two 16 seeds, a 12 seed, and an 11 seed? Or did it decide the seeding after picking the teams?  Either way, it seems unfair. What gives?


How to match obstacles with music in Unity?  I want to make a game like Beat Saber where game events are synchronized with the beats of a song.


The distribution of sale price for new MacBook Air’s is approximately normally distributed with a mean of \$800 and a standard deviation of \$70. (a) Mr. Bean plans to spend between 700 and 850 on a new Apple MacBook Air. What proportion of the available MacBook Airs can Mr. Bean afford? (b) What is the 90th percentile of computers of this type? (c) Show that a MacBook Air priced at $1000 would be considered an outlier using the 1.5 × IQR rule. For a, I tried doing 700-850=-50 and -50/800=1/40, for b, I tried (m+(0.5×R)/y) for c, I tried 1.5×700−1.5×850+50


How to delete a file with a path too long to be deleted

I was working with some computer vision source code I found and didn't realize that it creates a cache file that has a VERY LONG name and now I can't delete the 2 of them. I tried to rename it to a shorter name but I can't do anything to the file, I also tried to restart my computer and see if it would just go away. The error message says:  Destination Path Too Long. The file name(s) would be too long for the destination folder. You can shorten file name and try again, or try a location that has a shorter path.   How can I delete the files in this case?


Can I use a Schengen visa issued the French Embassy to enter the Netherlands

i'm working for a French company. I was supposed to travel to France for some time but the travel has been delayed and I haven't used the visa issued for that trip. I am  going to visit the Netherlands for a 2-day interview. Can I use my current visa to do that?  If not, am I able to get another visa as the current one is valid for another for 6 months?


I am new to blender and am trying to make a gemstone. I already have it modeled and am on to texturing but the tutorial I found uses a glass bsdf but I don't have one in my add node selection. I tried googleing it but all I found were more tutorials. Do I need to turn something on or download it? Thanks in advance.


How many actions or attacks are involved in picking up and throwing a creature?

Let's say my Minotaur ally decided during a brawl to grapple with the nearest brigand, pick him up over his head (or maybe just throw him from a standing position), and .  To do this, I would assume you'd have to make a grapple, which would be an action or at least PART of a fighter with multiple attacks' action. Then, would it take a further action to lift the enemy (or ally) above your head, and another to throw them, or would it be part of the lift action?  How would you determine the distance you could toss this creature?


$\sum _{1}^{\infty}a_n^2/n$ converges then $(1/N)\sum_{1}^{N}a_n$ converges to zero.

Let $a_n$ be a sequence of nonnegative numbers. Then I want to show that      If $\,\sum_{n=1}^\infty a_n^2\,/ n\,$ converges, then $\frac 1N\!\sum_{n=1}^{N}a_n\,$ converges to zero.    A hint suggests me to write $a_n=\sqrt{n}\cdot \frac{a_n}{\sqrt n}$ and use the Cauchy-Schwarz inequality. However it does not seem enough. I cannot show that $\frac 1N\!\sum_{n=1}^{N}a_n$ converges to zero.  Could anyone please help me to prove it?


Reversing the divisibility of 2 out of 3 formula

I was looking into a couple of exercises: First exercise:  Prove that if $x \mid (x^2 + 1)$ the $x = 1$ or $x = -1$  My solution was that if $x \mid (x^2 + 1)$ this means that $x | x^2$ and $x | 1$. The only number that is a divisor of $1$ is 1/-1. Hence $x = 1$ or $x = -1$ Second exercise:  Prove that if $6 \mid (x^3 - x)$ for every integer $x$ (hint among $3$ consecutive integers, one must be a multiple of $3$  Now for the second exercise I started with the same approach i.e. that if $6 \mid (x^3 - x)$ then $6 \mid x^3$ and $6 \mid x$ and then I realized that the question is about to prove that it holds for all integers which is not obvious to me that it does. So I plugged in some value e.g. for $x = 7$ we have $7^3 - 7 = 343 - 7 = 336$ which is a multiple of $6$. Also for $x = 5$ we have $5^3 - 5 = 125 - 5 = 120$ again is multiple of $6$. So the $6 \mid (x^3 - x)$ seems to hold but I notice that for $x = 7$ we indeed have $6 \mid (7^3 - 7)$ but it is not the case that $6 \mid 7$. So I have two questions here: a) Is it wrong to consider that if $x | (a + b)$ then $x | a$ and $x | b$? Or are there specific conditions that this formula holds? Does that mean that my solution to the first exercise is wrong? b) how can I use the hint to solve the exercise? It is not clear to me


Where should I change Swiss Francs to USD to get the best exchange rate?

I am planning a trip to a conference in Switzerland, and my airfare will be reimbursed to me when I arrive there. They will be reimbursing me in Swiss Francs. I want to get a good exchange rate.  Is it better to exchange the Swiss Francs in Switzerland for USD? If so, where?  Or, is it better to exchange it for USD back in the US?


Name for spurious linear Regression Plots

Yesterday I was at a medical conference in which a lot of plots of Point Clouds with linear fits were shown. In many cases the fit seemed (at least to me and colleagues) to be influenced mostly by some outliers, while most of the points seemed to be pretty much random point clouds. I think there is a name for that fallcy but I can't remember. Can you help me? That would help me talk about the problem with the participants.  Also what do you typically recommend to deal with outliers?


Why is it important to include a bias correction term for the Adam optimizer for Deep Learning?

I was reading about the  for Deep Learning and came across the following sentence in the new book  by Begnio, Goodfellow and Courtville:     Adam includes bias corrections to the estimates of both the   first-order moments (the momentum term) and the (uncentered)   second-order moments to account for their initialization at the   origin.   it seems that the main reason to include these bias correction terms is that somehow it removes the bias of the initialization of $m_t = 0$ and $v_t = 0$.    I am not 100% sure what that means but it seems to me that it probably means that the 1st and 2nd moment start at zero and somehow starting it off at zero slants the values closer to zero in an unfair (or useful) way for training?  Though I would love to know what that means a bit more precisely and how that damages the learning. In particular, what advantages does un-biasing the optimizer have in terms of optimization?  How does this help training deep learning models?  Also, what does it mean when it's unbiased? I am familiar what unbiased standard deviation means but it's not clear to me what it means in this context. Is bias correction really a big deal or is that something overhyped in the Adam optimizer paper?     Just so people know I've tried really hard to understand the original paper but I've gotten very little out of reading and re-reading the original paper. I assume some of these question might be answered there but I can't seem to parse the answers.


Posting Image Media into or part of an article and load into a lightbox

I'm just starting into Drupal and have done some reading into fields and such. I have an article in which I would like to add some images, in one scenario a block of images at the bottom of the article. In Content Types > Articles > Manage fields I have added a field of type "image". When I add/edit an article, I am able to upload images, however I can not get any of the images to appear in my published article.  To be clear, I can get the images to display in the WYSIWIG editor, but want them to be displayed and "Clickable" so the image will open into some kind of lightbox.  I have tried changing display settings but nothing seems to get my images to appear this way. I must be missing something. Any help is appreciated.  Here is how the image field is configured.