Table title and notes not appearing in PNAS

I'm trying to prepare a manuscript for  and am running into issues with a table. As in  question/answer, the table is placed after the \end{article}. However, when compiling the document, the table title still isn't shown, nor are \tablenotes. I've narrowed it down to the siunits package, which I used and when removing it (and all uses of \SI) I get the title back. I would prefer to keep using siunits. Is there a way around this or should I start a Word document (ok, empty threat)?  \documentclass{pnastwo}  \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} % makes the table screwed up... \usepackage[T1]{fontenc} \usepackage{amsmath}  \begin{document}  \title{Paper title}  \author{Avi Ginsburg \affil{1}{Somewhere over the rainbow}}  \contributor{Submitted to Proceedings of the National Academy of Sciences         of the United States of America}  \significancetext{Quite insignificant.}  \maketitle  \begin{article}     \begin{abstract}     {         abstract (adjective) existing in thought or as an idea but not having a physical or concrete existence.     }     \end{abstract}      \dropcap{H}ello world. Small is $\SI{1}{\angstrom}$ or so.      \begin{acknowledgments}         We are grateful to egreg for expressing sympathy for those who have to use the PNAS class.     \end{acknowledgments}      \end{article}      \begin{table*}[ht]         %   \centering         \caption{Table title - We like to see them}         \begin{tabular}{c c c }             \toprule             &             \textbf{Something} & \textbf{Else} \\              & & \\              \midrule             \multirow{6}{*}{\rotatebox[origin=c]{90}{Random}}             &   accidental\tablenote{this is a table note} &  \\              &   aimless & \\              &   arbitrary & \\              &   incidental & \\              \cmidrule{2-3}             &   indiscriminate & \\              &   irregular & \\              \midrule             \multirow{5}{*}{\rotatebox[origin=c]{90}{Example}}             & case & \\              & illustration&\\              & lesson &\\              \cmidrule{2-3}             & object & \\              & part & \\              \bottomrule         \end{tabular}         \label{tbl}     \end{table*}  \end{document}   I tried adding  answer to the preamble and changing the class file. This helps somewhat, as the title/caption is shown, however the style is changed and \tablenotes are still not shown below the table.


I have a site that Google has indexed 19k pages, in a fairly short amount of time.  Bing on the other hand is lagging pretty far behind...51 pages after approximately 3 months of waiting.  Many of the items in the sitemap are from search results that are not directly linked from other pages of the site.  From what I've seen, it appears that Bing can index directly linked pages on a site very well, but for other URLs that appear solely in the sitemap, it doesn't even make requests to look at pages, so they have a chance to be indexed.  Has anyone else experienced a problem like this, and what changes can be made to get more pages indexed.


Im in the feed tab and it seems like the columns don't have the enought width making it completly unreadable Please fix it asap  My tablet is a BQ Edison 3   App Version: 1.0.89 Device Manufacturer: bq Device Model: Edison 3   OS Version: 5.0 (1449647458)


Mean of a function of Binomial Distribution

Let $X$ be a random variable following the Binomial Distribution with parameters $n$ and $p$. Show that $$ \mathbb{E}\left[\frac{1}{1+X}\right]=\frac{1-\left(1-p\right)^{n+1}}{p(n+1)}, $$ where $\mathbb{E}[\cdot]$ is the mean value funtion.  My textbook had this exercise and I found it very interesting, but i can't solve it because I suck at infinite sums with the binomial coefficient. Any suggestion is appreciated. Thank you very much in advance.


How many distinct ways to climb stairs in 1 or 2 steps at a time? (Fibonacci puzzle)

There is a very interesting puzzle for Fibonacci sequence:     You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb $1$ or $2$ steps. In how many distinct ways can you climb to the top?   The answer is Fibonacci sequence: $F(n) = F(n - 1) + F(n - 2)$. The explanation is that you could reach the $n$th step either from the $(n - 1)$th step or $(n - 2)$th step.  What I fail to understand is why isn't the answer $F(n) = (F(n - 1) + 1) + (F(n - 2) + 2)$. Since, after reaching $(n - 1)$th step I have to take $1$ step to reach the $n$th step and after reaching $(n - 2)$th step I have to take another $2$ steps to reach the $n$th step.  I know I might be ignoring some very stupid detail but it's better to ask and be called a fool once than to remain a fool forever.


I have the following problem: \listoffigures display   1figure Description of the figure.  I want to remove "figure" so it looks like this:  1 Description of the figure.  I hope you can help me. Thank you.


Show that the probability that the volume contains a total of $n$ stars is $p(n; a+b)$.

Suppose that there exists two kinds of stars. The probability that a given volume contains $j$ stars of the first kind is $p(j; a)$, and the probability that it contains $k$ stars of the second kind is $p(k; b)$; the two events are assumed to be independent. Prove that the probability that the volume contains a total of $n$ stars is $p(n; a+b)$.   $p(j; a)$ is the Poisson distribution with parameter $a$. First, we have ${n \choose j}$ compositions of two stars. Therefore, this problem is reduced to finding $\sum_{j=0}^n {n \choose j} p(j; a) p(n-j;b)$. This is equal to $e^{-a-b} \sum_{j=0}^n {n \choose j} a^{j}b^{n-j} / (j! (n-j)!)$. I know that $\sum_{j=0}^n {n \choose j} a^j b^{n-j} = (a+b)^n$, and I found that $\sum_{j=0}^n {n \choose j} a^{j}b^{n-j} / (j! (n-j)!) = \frac1{n!}\sum_{j=0}^n {n \choose j}^2a^{j} b^{n-j}$. I wish that $\sum_{j=0}^n {n \choose j}^2a^{j} b^{n-j} = (a+b)^n$, but I think that this is not true.   I would appreciate if you give some hint.


When should I set the AllowUnsafeUpdates property?

It mentioned that we should set "AllowUnsafeUpdates" to true, when the web object is not created from the SPContext.   However should I still need to set as mentioned below?  SPWeb web = SPContext.Current.Web; web.AllowUnsafeUpdates = true;  // Perform the list/list item/web update  web.allowUnsafeUpdates = false;


Please tell me how to evaluate this integral.

Compute the area of that portion of the conical surface $x^2 + y^2 = z^2$ which lies between the two planes $z = 0$ and $x + 2z = 3$. Ans:$2\pi\sqrt{6}$. Thank you.


network bridge - without destroying network manager

I have seen a lot of questions related to Bridge and network manager. however none of them seem to apply to what i seen AND want.  I setup my bridge in /etc/network/interfaces. This works perfectly; it uses a nice static ip etc.  However once I rebooted, the network manager says it is unmanaged (as in it can't manage the bridge/connections).  Now this would normally be fine, but I kind of need/want something else on this computer as well.  The first question is:  Is it possible using openVPN (or any other vpn) connection on a bridged interface?  If so, how do I get Network Manager to manage the bridged interface? (as at this point VPN is set up there, but doesn't work/connect because it's unmanaged.)


Electromagnetic interaction physical interpretation

Why do radio waves, X-ray and gamma rays penetrate through matter? Can anyone explain me this in terms of incident energy or wavelength of the photon and the effective cross-section that these photons face while interacting with matter. I want to understand the physical process by which this cross section is low for X rays and gamma rays.  Also why is the probability of knocking an electron out of K shell by X rays is high?


How can I force Excel 2007 on Windows 7 to always open another instance of the application?

I want to be able to compare to large spreadsheets side by side...  Since you can not natively expand to all monitors I would like to have the two documents open in two instances.  These files are links on Sharepoint.


How to react to your work being cited incorrectly or in a misleading way?

This morning when I opened my email I was very excited to find a Google Scholar update telling me of two new citations from two different sets of authors each to a different paper of mine. As usual, I immediately checked the papers to find out if the authors were praising or criticising my work (or perhaps they found a mistake in one of my papers!). To my surprise, in one case the authors wrote a misleading statement which resulted from stretching quite a lot some of my conclusions. In the other case, the authors simply made an incorrect claim (details below for the curious). It's not the first time this happens to me - I even got one citation completely out of context once. How to react to this kind of situation?    Details for the curious:   In the first case, the authors cite a paper of mine where I compare two different methods to calculate elastic properties of materials. My main conclusion is that one of the methods converges much faster than the other one with the size of the basis set - in other words, it's computationally much cheaper. For calculations with usual basis sets the first method is much more accurate than the second one, with disagreements between the two in the order of 10% or even 20%. They claim that I show that both methods agree within a 1% of each other, which is misleading at best, because for the second method to agree within 1% of the first one one needs to do a very expensive calculation. That is one of the main points of the paper and it got completely overlooked by the authors. In the second case, the citation is plainly wrong. The authors cite my paper as an experimental work on InGaN semiconductors while it actually is purely computational.


Specific key (n) on keyboard not fuctional in termianl when changing to BASH

I am trying to work in the BASH shell on a shared CentOS 7 Linux machine. I am not the admin. The default shell was set to TCSH for new users. I access it remote via ssh. When I type on my keyboard in the terminal (logged in the TCSH shell) all my keys on my keyboard function properly. If I switch my terminal from TCSH to BASH by typing bash, the n character doesn't work within the terminal prompt. For example, if I type conda, what displays in the terminal is coda as if it isn't registering. It only seems to occur when I switch to the BASH shell. I have an extra keyboard and I tried plugging that in and was unable to get the n to work as well. However, capital N still works.  I work with windows and ssh using the Windows Subsystem for Linux (Ubuntu flavor) and I use VS code as my terminal GUI. I thought that the Linux Subsystem might have something to do with it, but my admin logged onto my user using Cygwin and had similar results. Other users have had similar issues in the past on this machine but are no longer part of our group and they are hard to reach. I saw some helps online that seemed to have similar problems with specific keys not work and most indicated that an update to vi or vim was necessary. I had the admin update all packages on the CentOS machine (including vi[m]) and the problem persisted. If I open a vi or vim text and type n, the key registers. It seems to be specific to the BASH terminal.   I was informed to check for an ~/.inputrc file in my home directory but no such file exists. Since my n character doesn't function, I tested several inputs in the tcsh shell to open a clean version of bash: bash --norc, as well as env HOME=/nowhere bash. Both clean bash profiles still had similar issues with no registering n characters. Typing echo $INPUTRC in both the bash and tcsh environment gave no outputs.   I cannot figure out what might be causing this issue and any advice is appreciated. Thanks in advance.


how to check package version before install

Im trying to install Apache 2.4.12 or apache2.4 at least. I see some listings for apache2.2 in the apt-cache, but I don't see apache2.4. How can I verify the actually version that sudo  apt-get install apache2 will install, without having to install?


Does my edit count increase even if someone overrides my edits?

I have been editing few questions on Stack Overflow for formatting and spelling mistakes. But I have noticed, that after my edits, some other user also edits the same question and his name shows up as the last edited person on the question.   Since I had already edited that same question, does my edit count be +1 for such edits too and count towards my total no. of edits? Similarly for cases where my edits have been rolled back by the OP, even in that case does my edit count increase by 1?  Additionally, if I edit same question again twice, does my edit count be increased by 2?


Recommended partitioning for an Ubuntu 18.04 installation

I have a SSD 256 GB and a HDD 1000 GB mounted.  I suppose it would be best to use the SSD for standard software and the HDD for user data. Is this the preferred usage? If 256 GB is not sufficient, can I put some of the software on HDD?  How should I partition the disk space for installing Ubuntu?  (no dual boot for Windows or other OS) I'm using gparted.  What kind of formatting should I use?  I'd appreciate a detailed answer as I am new to this.


Word for "something that is required but cannot be achieved"?

Alternative definition: "something that is needed but cannot be done"  Impossible is the best I could find, but it doesn't imply that the subject is required; only that it can't be done.


Modify the Payroll Program application so it continues to request division information until the user enters stop as the division name. In addition, program the application to check that the number of employees and average salary per employee are positive numbers. If either the number of employees or the average salary per employee is not a positive value, the application should prompt the user to enter a positive amount.  This is the code I have come up with, which compiles fine but doesn't run the way I expect it to.   import java.util.Scanner; //program uses class SCanner  public class PayrollPart2 {      public static void main( String[] args )      {         Scanner input = new Scanner( System.in ); // create Scanner to obtain input from command window          // variables         char name; // divisions's name         int number1; // number of employees in the division         double number2; // average salary for the employees         double product; // total division payroll              //prompt user to input division name             System.out.print( "Enter Division's name, type stop to exit: ");             String divisionName = input.nextLine(); //read line of text                 while (divisionName !="stop")                  {                 //prompt user for number of employees in the division                 System.out.print( "Enter the number of employees in the division: ");                 //read number of employees from user's input                 number1 = input.nextInt();                     while (number1 <= 0)                     {                         System.out.print("Please enter a positive number of employees in the division:"); // prompt                         number1 = input.nextInt(); // input                     }                  //prompt user to enter average salary of employees                 System.out.print("Enter average salary for the employees: " );                 //read average salary                 number2 = input.nextDouble();                     while (number2 <= 0)                     {                         System.out.print("Please enter a positive number for the employees salary:"); // prompt                         number2 = input.nextDouble(); // input                     }                  //multiply Number1 by Number2                 product = number1 * number2;                  //displays division and total division payroll                 System.out.printf( "The division %s has a payroll of $%.2f\n" , divisionName, product );                 }     } //end method main } // end class PayrollPart2   I've been at it for about 8 hours and at this point I am completely lost on the next steps. The code goes through the loop but doesn't ask for a different division name. Typing the exit command on the first prompt doesn't actually exit the loop. Should I be using If/Else statements instead? I think I can use a Boolean but I'm not exactly sure how to implement it.


Let $(a_n)\subset\mathbb{C}$ be bounded. Then $T_a\colon\ell^p\to\ell^p, \ (T_a x)_n:=a_n x_n$ compact iff $a_n\to0$.

(See title.) I think that I know how to prove $\implies$: If $(x_n)$ is a bounded sequence in $\ell^p$, then there is a $c\in\mathbb{R}$ such that $\|x_n\|\leq c$ for all $n$. So $$\|T_a x_n\|=\|a_n x_n\|\leq c\|a_n\|\to0,$$ from which it follows that any subsequence of $(T_a x_n)$ in $\ell^p$ converges (to $0$). (Is this correct?) However, for the converse, I have no idea. Any suggestions are greatly appreciated!


My friend can't see the textures of my mdoel in the viewport while using eevee

I have packed the textures into de .blend file, but when he opens the file he can't see the textures on the model (If he switches to cycles then he can, but I can see the textures in both eevee and cycles). my specs: AMD Ryzen 5 2400g, 4096MB ATI Radeon RX 570 Series. My friend's specs: AMD Ryzen 5 2400g, Radeon 580 8gb. we're both on ver 2.9 of blender I will post pictures of both what my friend sees vs the model.


Let $ x $ and $ y $ be two positive integers. Prove that $$(xy+1) | (x^2+y^2)\;\implies \frac{x^2+y^2}{xy+1}\;\text{ is a perfect square}$$ I assumed there exists $ k\in \Bbb N $ such that $$x^2+y^2-k(xy+1)=0$$ or $$x^2-kyx+y^2-k=0$$ i said that the discriminant $$\Delta=k^2y^2+4k-4y^2$$ must satisfy $$\sqrt{\Delta}\in \Bbb N$$ but it seems to complicate . Thanks in advance.


How to prove the series $$\sum_{n=1}^\infty \frac {e^n\cdot n!}{n^n}$$ diverges? I tried D'Alambert and result is 1 and I'm stuck with Raabe.


Javascript: Editing object property changes property from different object

I want to set object a equal to object b and then edit property x from object a. But, when I edit a.x, b.x gets changed too for some reason. How do I work around this?  var b = {     x: 0,     y: 3  }; var a = b; alert(b.x); //outputs 0 a.x = 1; alert(b.x); //outputs 1?


why is a javascript string shown as undefined in alert?

the problem is that the console.log('res', res) shows that res.message is a valid string (IMO) but when shown in an alert, it shows undefined. I also tried using typeof res.message and it also returns undefined.. why is that?  this is my code:  var myData = $('#myform').serializeArray();  $.ajax({   url: '/test/test1',   type: 'POST',   data: myData,   success: function(res) {     if (res.status) {       window.location.reload();     } else {       console.log('failed', res);       // the content of res is like so:       // {"status":"1", "message":"approval for \"Nominations\" was successful."}       alert(res.message);     }   },   error: function(err) {     console.log('error', err.responseText);   } });


I'm working on outputting multiple MySQL JSON rows to an HTML table via PHP (server side) and jQuery (front end) through a simple search box. I've successfully managed to parse one row of JSON to the table but now need to accommodate multiple rows of JSON data.  My HTML table on the search page looks something like this:  ARTIST | TITLE | LOCATION  U2     | One   | Ireland  Foals  | Miami | UK   and the JSON file passed to it utilises similar headings:  {"ARTIST":"Katy Perry","LOCATION":"United States", "TRACKTITLE":"Roar"}   I've been playing around with the code for a while, incorporating arrays to loop through the data. This works in as much as it loops through the MySQL rows correctly and successfully sends multiple rows of data back in JSON format (I've decoded my search page in Firebug). The problem is that my jQuery file can't place it into my HTML table, resulting in a blank page. I've tried various methods of arrays from previous Stackoverflow questions but can't quite get it to work, being returned the 'ARTIST', 'TRACKTITLE' and 'LOCATION' fields with every returned result  extract from PHP file:  $result = mysql_query($sql); $data = array(); while ($array = mysql_fetch_assoc($result)) { $data[] = $array; } echo json_encode($data);   Edited to include jQuery extract and more specific question:  function(data) { var sentData=JSON.parse(data) for (var i = 0; i < sentData.ARTIST.length; ++i) { tr = $('
'); tr.append("" + sentData.ARTIST + "	"); tr.append("" + sentData.TRACKTITLE + "	"); tr.append("" + sentData.LOCATION + "	"); $('#multiple').append(tr); } });   How can I parse only the corresponding values of each 'ARTIST', TRACKTITLE' and 'LOCATION' result using the JSON.parse method? This is the full returned JSON string:  [{"ARTIST":"Katy Perry","TRACKTITLE":"Roar","LOCATION":"United States"}, {"ARTIST":"U2","TRACKTITLE":"One","LOCATION":"Ireland"}]


I am trying to get bitmap form imageview in MainActivity.java .The image is on the cards displayed from Item.xml with the help of an array adapter. Here is MainActivity.java      private ImageView mimage;     mimage = (ImageView) findViewById(R.id.image);  flingContainer.setOnItemClickListener(new SwipeFlingAdapterView.OnItemClickListener() {             @Override             public void onItemClicked(int itemPosition, Object dataObject) {                  cards obj = (cards) dataObject;                 String name = obj.getName();                 String info = obj.getInfo();                  BitmapDrawable drawable = (BitmapDrawable) mimage.getDrawable(); //this is line 117                 final Bitmap bitmap = drawable.getBitmap();                   Intent intent = new Intent(MainActivity.this, ProfileActivity.class);                 intent.putExtra("Name",name);                 intent.putExtra("Info",info);                 intent.putExtra("bitmap",bitmap);                  startActivity(intent);                 finish();                 return;             }         });      }   and here is the error  `java.lang.NullPointerException: Attempt to invoke virtual method android.graphics.drawable.Drawable android.widget.ImageView.getDrawable()' on a null object reference``at com.example.android.tindercone.MainActivity$2.onItemClicked(MainActivity.java:117)`


How can I make Guake start on boot?  Guake is installed and works fine via manual startup (typing guake in a terminal works e.g).  When I press Super and type "Startup Applications" Guake is there, using the command "guake" (simple one should think. But no). It doesn't work. I can not open Guake via the keyboard shortcut and top in terminal does not show anything that says "guake", that is until I open it manually.  I have also tried sudo cp /usr/share/applications/guake.desktop /etc/xdg/autostart/ but with no result.  Any ideas?  I am using , but don't think it is related to my specific system since I have encountered the problem on my previous systems (also Ubuntu based however), but haven't bothered researching it till now.


Do spells that have range originating from the caster start in a grid intersection or the center of his square?

The rules say:     The point of origin of a spell is always a grid intersection.  PHB, p.175   Fireburst, for example, "extends" 10 feet radius around the caster. But if you count from a grid intersection, the caster cannot be in the center of the spell. Is this intended or is there an exception to the rule cited above?


Lifetime of local static variables in C++11

I have a function that is called from multiple threads:  void func() {    static MyObject someobject;    someobject.complexFunc(); }   At program termination, can I assume that someobject is destroyed after the last thread has been terminated? If no, how can I make sure threads don't access it anymore when say std::exit is called?  Thanks


Endomorphism ring of a Noetherian module

In the last Algebraic Number Theory lecture we were proving that a Noetherian domain $A$ is a DVR iff it is intergrally closed and it has a unique non-zero prime ideal. At some point the lecturer used an argument that if $A$ is Noetherian, then $\textrm{End}_A(\mathfrak{p})$ is Noetherian as an $A$-module (where $\mathfrak{p}$ is the unique non-zero prime ideal).   Why is what I described above true? (If it is.) Is a more general statement true: if we exchange $\mathfrak{p}$ with any Noetherian module $M$, will $\textrm{End}_A(M)$ be Noetherian as an $A$-module?


Are there any builds of Ubuntu (or flavors of) 18.04 for PowerPC Macs?

I have an old PowerMac G4 that I installed Lubuntu 16.04 on a while ago. I've been getting notifications in the terminal that 18.04 is available to upgrade, but the upgrader fails to run, saying that the package ubuntu-minimal is not available. I haven't seen any ISOs for PowerPC available, and ports.ubuntu.com doesn't have any bionic distributions available for architecture  powerpc. But while searching I found  that suggests that there is/was a version of Ubuntu 18.04 for PowerPC. Is this just a pre-generated page, or is there somewhere I can get Ubuntu Bionic for PPC?


I am playing Minecraft on survival mode. I can break blocks like sand, dirt, and gravel and it will give me a block. When I try to break stone or iron or anything else, it didn't give me a block. What can I do so that I can get a block? I am on single player and my internet is fine. I tried deleting the app and then getting the app again but that didn't work. This is happening with all my worlds in survival mode.


Finite Ring with unity and no zero divisors is field

I would like to know if someone can help me with this.  "Show that a finite ring $R$ with unity $1\neq 0$ and no divisors of 0 is a field."  The original exercise asked me to show that it was a division ring, it's done. It also says that showing that commutativity holds is hard. I wonder, is it too hard? If it isn't, how could I show that?


Should I increase the size of my root partition?

My root partition is 25GB and I was just notified that I have almost used it all. >df -h df: /run/user/1000/doc: Operation not permitted Filesystem      Size  Used Avail Use% Mounted on tmpfs           791M  2.4M  789M   1% /run /dev/sda5        23G   20G  1.8G  92% / tmpfs           3.9G  7.0M  3.9G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup /dev/sda2        95M   33M   63M  35% /boot/efi /dev/sda7       117G   14G   98G  13% /home /dev/sdb2       931G   19G  912G   3% /data tmpfs           791M  188K  791M   1% /run/user/1000  As you can see I have used 92% of the partition, and this is after having already ran sudo apt-get clean. I see that so many people recommend a root partition size of 25GB, so does this mean I have some sort of problem? Or should I increase the size of my root partition somehow? Side note, if it makes any difference, it seems that a big chunk of the space is taken up by the /usr (13.0 GB), /var (6.3 GB), and /home (14.3 GB? (I don't know how this is possible since the root partition is only 25GB to begin with. Perhaps this /home folder is just a link to the actual /home directory?)) directories.


Which command can I set so that when someone dies a /title appears?

I am attempting to make a command that triggers when someone dies on my server. When someone dies, a /title command should run.   All the other answers I've found are for version 1.12, and I need an answer for 1.15


<aura:component>  <aura:if isTrue="{!$Browser.isTablet}">     You are using a tablet device      ( <lightning:icon iconName="utility:tablet_portrait" size="x-small" alternativeText="Indicates approval"/> ). </aura:if> <aura:if isTrue="{!$Browser.isPhone}">     You are using a phone      ( <lightning:icon iconName="utility:phone_portrait" size="x-small" alternativeText="Indicates approval"/> ).     This message is rendered using isPhone
 </aura:if> <aura:if isTrue="{!$Browser.isIPhone}">     You are using an IPhone, If it is IPhone X, _/\_
 </aura:if>  <aura:if isTrue="{!$Browser.formFactor == 'DESKTOP'}">     You are using a DESKTOP      ( <lightning:icon iconName="utility:desktop" size="x-small" alternativeText="Indicates approval"/> )     Browser device </aura:if> <aura:if isTrue="{!$Browser.formFactor == 'PHONE'}">     You are using a Phone, This message is rendered using formFactor </aura:if> <aura:if isTrue="{!$Browser.formFactor == 'TABLET'}">     You are using a Table device </aura:if>     Can we Do this in Lightning Web Component also?


I am wiring a small plastic model with 11 yellow 3V 0402 LEDs. I used the resistance calculator to find I need as many 56ohm resisters attached to each LED in parallel to keep them running properly, but that takes up an awful lot of space in a very thin model.  Is there any way I can keep them powered safely but not need to wire 11 resisters? The website won't show me any other way and I'm not the best at researching this stuff.  Thanks


How to print the current Stack Trace in .NET without any exception?

I have a regular C# code. I have no exceptions. I want to programmatically log the current stack trace for debugging purpose. Example:  public void executeMethod()  {     logStackTrace();     method(); }


Is there a way to create a z-aware Shapefile directly in QGis?   It seems the support for z-coordinates in QGis has been building up over the last years (which is why similar questions in the past are not very helpful). However it seems 3D Shapefiles cannot be created directly in QGis.   I am using QGis 2.18.10 and cannot find the option to create a Shapefile with z-Coordinates. I have not been using QGis for long, but it seems odd that there is no option in the "New Shapefile Layer" dialog.  A possible workaround to this is creating a 2D-Shape and save it using the geometry > include z-Dimension. Is there another way?


Help understanding Well-Ordering Theorem

Forgive me for my lack of formal notation, I haven't taken any classes on set theory, or any advanced math topics for that matter.  From my understanding based on the wikipedia entries, a well-ordered set must have a least element. I have seen posts where people will explain contradictions with this statement, such as the least element of R is a contradiction, as you can divide by two to get a smaller real number. How does this not contradict AoC?  Here's a quote from another post, where somebody was explaining how well-ordering makes sense.  "...don't confuse "ordered" and "countable". You demand to know ..."  Which explained (I think, anyways) why you can't find the nth element of the real numbers, because the cardinality of [1,2,3,...n] must be less than the cardinality of real numbers.  Maybe I misunderstood the premise, but doesn't this logic also apply to countable infinities? The smallest rational number, for example, can be divided by 2 to get a smaller number. This set can be 1:1 mapped the integers, so there must be a set of positive rational numbers [q1, q2, q3...] that maps 1:1 to the natural numbers [1,2,3,...], which does have a clear least element. Both share a cardinality of aleph0, so they have to map 1:1, right? Why does AoC not contradict itself?  Edit: So this has been marked as a duplicate, but I haven't found any questions that answer this for me. Allow me to rephrase? These two sets share cardinality. How can a least element exist in Q if we can definitively prove is does not exist? Does this mean my intuitive definition of least elements only apply to some sets? If so, how do we redefine the definition to talk about the least element of positive rational numbers, as it has to exist under the theorem. Is there anything we can say about this number? If not, doesn't this contradict the idea of the theorem?


Event Log time when Computer Start up / boot up

Client OS - Window XP  Domain Controller:- Window server 2008 Standard R2  I had one Windows XP system. I want to find out when the system has started or boot ( at what time and date ). I don't know which parameter / word should I search for in Event Log.  For finding out shutdown time, I simply find the word "Shutdown" in Event Log.  Can you guide me which word should I should search for to determine Start up or boot time?


Is it good to save image as datauri inside mysql

Is that a good idea to save image data inside database?  I'm currently converting user's uploaded photos to DataURI using base64_encode. And save the result to MySql table with datatype "Longtext".   When I display, I select the value and put inside HTML IMG source like this <img src="<?php echo $photoColumnName; ?>" />.  It works fine when I tested on local machine but when it goes online, the page loads very slow.  Is it better to save the image inside folder?  Thanks.


Is it?  The car was stolen last night.  or  The car has been stolen last night.  Also which of the following endings is correct?  She bought a little cup which had been filled with butter/has been filled with butter/was filled with butter.  My teacher really made the passive voice complicated for me, especially the past perfect and present perfect parts. I'm really confused, I would appreciate some help.


Why is the total memory usage reported by Windows Task Manager much higher than the sum of all processes' memory usage?

Task Manager shows my total memory usage at 90% of my 6 GB total, but no single process is using more than 250 MB RAM, and the sum of RAM use of all running processes is less than 2 GB. I've tried:   Looking at the numbers in the "Memory" column on the "Processes" tab of Windows 8 Task Manager. Looking at the "Working Set", "Private Working Set", "Shared Working Set", and "Commit Size" columns on the "Details" tab of Task Manager. Looking at similar memory-related columns in Process Explorer. I've tried running Sysinternals RAMMap, but while I'm having the low-memory crisis, it crashes at launch. Once I resolve the problem, RAMMap runs normally, but at that point it's too late.   All show a pretty small amount of memory being used.  There are lots of people asking variants of this question, with various versions of windows, all over the Internet. Some of them manage to solve their low-memory problems, often by re-installing software; sometimes by re-installing windows from scratch. I'm looking for an answer to the general questions that these all share, and that never seem to get answered elsewhere:   Why is total used memory much higher than the memory used by all listed processes, no matter how I try to count them? How could windows "know" that memory is used without knowing what program is using it? What processes might possibly use up memory but not show up on the list? Is there any software out there that can give more information about used memory?   Details specific to my own problem: Since upgrading to Windows 8.1, The problem occurs as soon as I log in. I run out of memory as soon as I ran any program. I noticed in Process Explorer that several instances of iexplore.exe were running, apparently started automatically. One particular instance was only using a few MB of RAM, but showed hundreds of millions of page faults. On a whim, I killed that specific process, and memory usage immediately dropped by 70%.  Leading to one specific question:   How could killing one process that supposedly only used a few MB free up several GB?   And a (presumably hard) bonus question:   Short of re-installing Windows, how might I avoid having to go through this every time I reboot my computer?


I've looked everywhere but I can't find any information regarding this. Basically I colored different faces of a mesh in blender, how do I turn this into a texture?


How to install packages to external drive (and run them)?

I am running Xenial 16.04 and looking to install packages to an external drive - my computer has a 32gb SSD so it would be very useful to me to be able to use an external drive.  In a quick search I found a framework called  which seems to be designed to package all dependencies for a program (chromium, GIMP, some python packages, etc), but haven't had time to look into it.   seems to be looking for the same solution I am.   Thanks, Chris


Clicks not working on dynamically created content

I have a written a code to update likes and dislikes buttons. It works fine for the first time. But if the user again clicks on the buttons, It doesn't respond to clicks. I tried changing click to on('click') as suggested in questions of similar type.  $('.like').on('click', function (event) {     // My Code });


Rotating view causes large objects in model to get distorted

When my model gets pretty large and I try to rotate it, only certain view angles work. In other angles, it looks like it is breaking up or distorting. I am not trying to render and I'm not using a camera. I am using version 2.79. I tried updating to 2.81, and it did the same thing so I went back to 2.79 to get this project done. I have attached a couple pictures. One shows what it should look like and the next shows what the distorted image looks like. Help much appreciated!


Troubleshooting a soufflé that collapses during baking

I am trying to make a cheese soufflé to surprise my girlfriend on her birthday (24 Jan). After several cooking trials, I still face a key problem: my soufflé collapsed after baking for 25-30 minutes.   What did I do wrong? Here are the steps to the recipe;   boil equipment grease butter to the renakin, place into the freezer separate egg whites (no yolk mixed) add a little salt to egg whites add a little sugar to egg whites  using a hand mixer, whip the egg whites adding more sugar during whip melt 40g butter (100C) Whisk 40g all purpose flour into melted butter pour 250g milk slowly and whisk util it mixed wait until it cools down re-grease butter to the renakin, place into the freezer beat the egg yolks to a creamy consistency, then pour into the milk mixture add 1/3 of the mixture to the base, continue to add the whites folding very gently. Preheat oven to 200C (5-10 minutes) pour the mixture into the renakin add the cheese on the top bake at 170'C (with heat select="lower")   After about 25-30 minutes and a 2cm rise, the soufflé collapses prior to removing from oven.    updated 19 Jan Evening :  I do   buy better hand mixer use more flour (50g) move egg whites whipping process to last steps reduce whipping time to 5 minutes bake with heat select="lower" about 15min after that change to "upper and lower" sit in front of oven and see the soufflé every moment.   result:   at 20mins: the soufflé raise about 3.5 to 4cm (from 5cm height renakin) around 25mins: it collapse about 0.5cm, so I immediately remove it from oven (T-T) after than it collapse very fast. (I guess it is common)   Thank you very much @jefromi and @KatieK for your comments and links. I plan to buy oven thermometer this morning because I have no it yet.     updated 21 Jan Lunch :  Yesterday I found problem on the oven temperature. When I set temperature to 170 C, real temperature is 150C or below (because it keep going down). So today I try to keep in range of 160-200C and no collapses now.   Thanks you very much to everybody again for kindly help.


From Norway to other Schengen countries with a single visiting visa

Can I be allowed to move around within the Schengen zone on a single entry visiting visa of Norway, travelling from Norway to Germany or other Schengen countries before returning back to Norway for my final departure?


What is the difference between POST and GET in HTML/PHP

I am coding a PHP script, but I can't really seem to get it to work. I am testing out the basics, but I don't really understand what GET and POST means, what's the difference? All the definitions I've seen on the web make not much sense to me, what I've coded so far (but since I don't understand POST and GET, I don't know how to get it to work:      <form name="mail_sub" method="get"> Name: <input type="text" name="theirname">
 Email:&nbsp; <input type="text" name="theirpass">
 <input type="submit" value="Join!" style="width:200px"> </form> <?php if (isset($_POST['mail_sub']))     {      echo $_POST['theirname'];      } ?>


how to share a wireless printer in a shared ubuntu/xp lan

I have a lan network where a wireless printer is connected.    Ubuntu sees the printer but windows xp does not.   How can I use Ubuntu to share the printer with the xp computers?  Publishing "shared printers connected to to this system" via the right click and share causes the xp machines give me a permission error.   However, if I connect the printer was connected via usb it would work but since it is wirelessly it gives the error.  The steps I have already done are:   Share printer through the Printer Server Options and the Sharing option inside the Printing options. Went to the CUPS Website:  and tried configuring through there. Configured Samba to share the Printer via the smb.cfg.   After doing all the above steps, the XP clients can see the printer but can not connect to it giving me a permission error.


Automatically redirect anonymous user from unanswered duplicate question to corresponding answered version

Duplicate questions that use different words to describe the same problem are important for people to find the content via search engines. But the user experience when an anonymous user arrives at a duplicate is less than ideal.  They have to notice the duplicate link and understand that the answer they are looking for is likely behind that link. I don't think this is all that obvious to someone without experience with an SE site.  I propose to just redirect users to the duplicate automatically if the closed duplicate has zero answers. In that case they need to follow the link to the duplicate in any case, so we might as well redirect them to it in the first place.  I could imagine this being problematic with search engines, as we would be displaying different content than what the search engines see. If that is too problematic I would suggest to show a very obvious link to the duplicate in the answers section for anonymous users.


How can I calculate $\int^{b}_{a}\Phi\left(\frac{x-\mu}{\sigma}\right)\phi(x)\,\mathrm dx$

Suppose $\phi(\cdot)$ and $\Phi(\cdot)$ are the density function and cumulative distribution function of the standard normal distribution. $a<b$ are finite real numbers.  How can I calculate the integral:  $$\int^{b}_{a}\Phi\left(\frac{x-\mu}{\sigma}\right)\phi(x)\,\mathrm dx$$  Note that the question is similar to . There, the comments to the accepted answer suggest that the solution can be generalized to definite integrals, but I haven't been able to figure it out.


Passport not stamped on arrival in Australia

I am traveling to Australia first time. My departure date is stamp on my passport from my country. I landed on Perth and gone through all the immigration process than I fly to Sydney through domestic airlines .After few minutes I show my passport and didn't find the immigration/arrival date stamp on my passport. So I am worried if this gonna put me on trouble.


I have managed to show that for the one-dimensional classical system (with two dimensional phase space) we have   $$\left\{ q^{a}p^{b},q^{c}p^{d}\right\} =\left(ad-bc\right)q^{a+c-1}p^{b+d-1}$$  Where $a,b,c,d$ are non-genative integer exponents (not labelling different coordinates). Equivalently   $$\left\{ q^{a},p^{b}\right\} =abq^{a-1}p^{b-1}$$  Can we get similar results for the quantum CCR with generators $q,p$ satisfying $\left[q,p\right]=i\hbar$? That is, general (and hopefully fairly simple) formulae for the commutator of arbitrary elements of the CCR?  It will certainly be more complicated, and we now have to worry about ordering ambiguities of course.


Pressure of 2 immiscible liquids of diffrent density in a u tube

2 diffrent liquids in a u shaped tube can have height difference at equilibrium but when I try to analyse the pressure at the same level of c,on the surface of more denser liquid there is only atmospheric pressure but on the other hand the less denser liquid have both the atmospheric pressure and the pressure due to the column of liquid above it,so they are not same but they must be.where am I getting wrong?


Get a point on a polyline from end points given distance along poly line

I have start point and end point of a polyline. How can I get a point on that polyline from end points specified by the given distance.    How can I get this by using arcpy provided that this script should work on ArcView without importing any modules (). I'm trying not to hard code values.  Related Question:


When hyphenation of a word includes an additional letter

In some languages a word on the form abcxxdef (note that there is only two occurrences of the letter x) is the compound of the two words abcxx and xdef. Sometimes the hyphenation rule is to break the word into its two parts: abcxx-xdef. Note that the letter x now occurs three times. How can I, for a specific word, tell LaTeX to hyphenate this way?


Write access to Linux ext3 partition from Windows 7

I've a dual boot system with Ubuntu 12.04 and Windows 7. I can access my Linux files (partition format is ext3) from Windows, but I cannot write to them. I've edited the properties of the Linux drive from ext2fsd, Properties > Security, etc and everything in sight has full control.  When I look at the properties of the Linux folder from Windows Explorer, again, everybody has write access. But whenever I try to write to the disk, I'm told that the disk is write-protected.  On the Linux side, the permissions setting on the folder is 777.


Continuous bijections and their inverses

Are there any theorems characterizing the continuity of the inverses of bijections between certain classes of particular spaces. E.g. it seems to me the inverse of any continuous bijection between connected subsets of $\mathbb{R}$ is continouos. It seems that most counterexamples require highly specific spaces. I'm thinking there might be something along the lines of any continuous bijection between homeomorphic spaces has a continuous inverse. Any of this make sense?


How can I increase the longevity of my bananas?

I have some bananas that I just bought at Trader Joe's.  They're nice, fresh, yellow, and full of general banana-ness.  But if I take more than a week or so to eat them all, they start to get brown and less appetizing.  Is there a way I can increase the shelf life of my bananas by a few days or so?


Calling an ayncTask and getting static related error

I am calling php script which accesses my db from an android lass. The class is below;  public class pk_http {      // Progress Dialog     private ProgressDialog qDialog;      // JSON parser class     JSONParser jParser = new JSONParser();      class phpCall extends AsyncTask<String, String, String> {         @Override         protected String doInBackground(String... args) {             // Building Parameters             String url = args[0];             List<NameValuePair> params = new ArrayList<NameValuePair>();             // getting JSON string from URL             JSONObject json = jParser.makeHttpRequest(url, "GET",params);                return null;         }    }   Now when i call that from my calling class (the calling class does not extend Activity btw) this way;  public static ArrayList<String> getLoginTileDataArray(Context c) {     //CODE STUB: HTTP GET RETURNS THE FOLLOWING STRING     String result = pk_http.phpCall.execute("http://myUrl/phpFile.php"); . . .   I have a error pre-compilation that says;     Non-static method 'execute(Params...) cannot be referenced from a   static context.   if i remove the 'sttic' no change. Am i calling the async method correctly?


how to pass a string with spaces as argument in shell script

Below is my code to which i'm trying to pass a 3 argument like "client name with datacenter" hostname ip so, "client name with Datacenter" is the 1st argument likewise hostname and ip is 2nd and 3rd argument. is there any way i could pass the first argument as it is with spaces, as of now it's now not working as expected, because after space every word it's taking as different argument. Actual issue is i want to pass this whole sentence as argument. "Actual Servers to be added". Is there any way i could do this? So this argument will be further used to look into a text file and search the string where the additional arguments $2 and $3 will get add. #! /bin/bash  user=whoami #file1=/home/xymon/server/bin/ghostlist.cgi logfile=logfile1  ###Local Log file###### client="$@" hostname=$2 ip=$3 ####taking backup while editing hosts file everytime##### #cp -pr /home/xymon/server/etc/hosts.cfg "/home/xymon/server/etc/hosts.$(date +"%Y%m%d")" echo $ip echo $hostname  echo "hostfile is modified @ `date`" >>$logfile printf '%s\n' 'g/"'$client'"/+2i\' ''$ip'     '$hostname'            # testip "TRENDS:*,netstat:netstat|netstat1|netstat2|netstat3"' 'wq' | ed -s hosts


What is the probability of randomly select the option $25\%$ from the picture below?

The image shows a contestant being asked what the probability is of randomly selecting the right answer. $4$ options are given: $2$ being $25\%$ and the other two being $50\%$ and $0\%$.  Basically I’m in disagreement with someone over this question. The question in the picture is a paradox but I think the probability of randomly choosing the option $25\%$ is $2/4$ or $1/2$ since it is repeated, while my friend believes it is $1/3$ since there are technically three options. Anyone able to give a conclusive answer?


I'm logged into two Google accounts, and every time I open Gmail, the wrong account is used

Let's say my 2 Google accounts are called Primary and Secondary. I chose these names to reflect their function: I almost exclusively use "Primary". But I'm logged into both (intentionally). Every time I open Gmail, the Secondary account is used ("is active"). Every time I switch to "Primary" (which works), but when I close Gmail and open it again, it's Secondary again.  Is this because of the order in which I logged into the two accounts? Or why? And can I fix it?  Note: I don't have this problem in YouTube.


Why does Worf behave more like Klingon than Human given that he was raised by human parents?

If a Chinese kid is raised by white American parents, he will most probably grow up to behave more like the white parents than Chinese. This is even more so for an alien raised by humans. At least whites and Chinese are humans.  How can Worf be so much more Klingon than human?   I may have missed out some episodes that explain this unusual phenomenon. In the episodes I watched, Worf behaved more like a Klingon than human.


(first picture is normal, and in the second if I click the second viewport it turns like this. I can't work with colorful models, bcs its transparent/invisible. Also same with the third viewport but its darker...) How do I fix it to make it be visible. Because if I try to work with colorful models. It turns like this too. Maybe I pressed something? Help.


Prove that $1^n+2^n+...+(n-1)^n$ is divisible by $n$ if $n$ is odd?

I've tried this with a few examples, but how would I show that it's true for EVERY odd number $n$? And why wouldn't it work for even number $n$?


Obviously, em dash can be used like a colon and commas. Could you please tell me if em dash is used correctly in the following sentences or not? Which one do you prefer? I want to say: John and I traveled to the place of John's birth.  1- In high summer two years ago, my foster brother (John) and I made a sentimental journey to the place of his birth—Armenia.  2- In high summer two years ago, John—my foster brother—and I made a sentimental journey to the place of his birth—Armenia.  3- In high summer two years ago, John—my foster brother—and I made a sentimental journey to the place of his birth, Armenia.


Prove that if $n$ is not the square of a natural number, then $\sqrt{n}$ is irrational.

Possible Duplicate:          I have this homework problem that I can't seem to be able to figure out:Prove: If $n\in\mathbb{N}$ is not the square of some other $m\in\mathbb{N}$, then $\sqrt{n}$ must be irrational. I know that a number being irrational means that it cannot be written in the form $\displaystyle\frac{a}{b}: a, b\in\mathbb{N}$ $b\neq0$ (in this case, ordinarily it'd be $a\in\mathbb{Z}$, $b\in\mathbb{Z}\setminus\{0\}$) but how would I go about proving this? Would a proof by contradiction work here?  Thanks!!


Is there any problem if I booked Multi Destinations ticket?

I'm from Tunisia and I got a Schengen visa from the Austrian Embassy for 28 days, the “duration of stay”, and the number of entries is 1 and the validity of the visa is from 02/08/2015 to 13/09/2015.  I'm going to book a ticket (Tunisair) from Tunis to Vienna one way  , and I'll go back to Tunisia from Paris on Air France.  Is there any problem if I booked Multi Destinations ticket (be the way the Airlines are not the same one)?


How many five-digit numbers can be formed using digits $1,2,3,4,5,6$ which are divisible by $3$ and $5$?

How many five-digit numbers can be formed using digits $1,2,3,4,5,6$ which are divisible by $3$ and $5$, without any of the digits repeating? A number is divisible by $5$ if and only if last digit is $0$ or $5$ and; divisible by $3$ if and only if the sum of the digits add to a multiple of $3$ ($3,6,9,12,15,18,21$). Divisible by $5$ means last digit is $5$. That's the only option. Divisible by $3$ means that the sum of the digits add up to a multiple of $3$. What can we do next? It's difficult for me to find the 5-tuples just by looking at the given digits? What can I do to systematize them and not miss some?


I have only one user and my grub boot menu also won't load so I don't know any other way to change password


What will be the effect on a rigid body if two unlike unequal parallel forces act on the body? Will the body translate or rotate or both? If they rotate, with respect too which point will they rotate?


NullpointerException when using paintComponent method in java

I;m trying to draw an image of a player that i just took off google images. So far nothing is shown when i run my code as i'm making a game. I get the nullpointer exception saying something is wrong with my imageicon and my paintCOmponent method.  THis is the class which has the errors.  @Override public void paintComponent(Graphics g) {     super.paintComponent(g);     Graphics2D gc = (Graphics2D) g;     gc.drawImage(getPlayerImg(),row,column, this); } public void draw(Graphics2D g2d){     g2d.drawImage(getPlayerImg(),row,column, this); } public Image getPlayerImg(){      ImageIcon d = new ImageIcon(this.getClass().getResource("me.jpg"));      return d.getImage(); }   I also have another class which calls the paintComponent method. I thought this class would be the code for making the image appear since it calls an object from the above class.  public void paintComponent(Graphics g){         super.paint(g);         Graphics2D g2d = (Graphics2D) g;         System.out.println("ok");         c.draw(g2d);         System.out.println("painted");         c.setVisible(true);     }   None of the println are printed out on the screen. I don't know what to do :(. The first class has to do with making the map and the second class calls the methods from the first class and makes it. I can't show too much though.


How can I programmatically add members to a group?

I am trying add members to a group programmatically using Groups module in Drupal 8, and I am doing the following to achieve this:  use Drupal\Core\Entity\ContentEntityBase; $roles = array('test_role'); $values = ['group_roles' => $roles, 'gid' => 1]; $account = $this->createUser(); $group = \Drupal\group\Entity\Group::load(1); $group->addMember($account, $values);   So, users are already present in the site. I want to add only those users to a group who have successfully paid for it. Hence, I am trying to write a custom solution that I add a user to an already existing group on the site. I came across this addMember($account, $values) function in the group module, however am still not sure on what values its arguments ($account and $values) take. Above piece of code does not add users to my group. Can someone please suggest what wrong I am doing here?


Segmentation Fault while updating repositories

When I run  sudo apt update   I get a segmentation fault with this error:  E: Problem executing scripts APT::Update::Post-Invoke-Success   'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;   then appstreamcli refresh > /dev/null; fi' E: Sub-process returned an error code   How can I fix this?  I am using Ubuntu GNOME 16.04  this is my /etc/apt/sources.list:  # deb cdrom:[Ubuntu-GNOME 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160720)]/ xenial main multiverse restricted universe  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://it.archive.ubuntu.com/ubuntu/ xenial main restricted # deb-src http://it.archive.ubuntu.com/ubuntu/ xenial main restricted  ## Major bug fix updates produced after the final release of the ## distribution. deb http://it.archive.ubuntu.com/ubuntu/ xenial-updates main restricted # deb-src http://it.archive.ubuntu.com/ubuntu/ xenial-updates main restricted  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. deb http://it.archive.ubuntu.com/ubuntu/ xenial universe # deb-src http://it.archive.ubuntu.com/ubuntu/ xenial universe deb http://it.archive.ubuntu.com/ubuntu/ xenial-updates universe # deb-src http://it.archive.ubuntu.com/ubuntu/ xenial-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://it.archive.ubuntu.com/ubuntu/ xenial multiverse # deb-src http://it.archive.ubuntu.com/ubuntu/ xenial multiverse deb http://it.archive.ubuntu.com/ubuntu/ xenial-updates multiverse # deb-src http://it.archive.ubuntu.com/ubuntu/ xenial-updates multiverse  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. # deb-src http://it.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu xenial partner # deb-src http://archive.canonical.com/ubuntu xenial partner  deb http://security.ubuntu.com/ubuntu xenial-security main restricted # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted deb http://security.ubuntu.com/ubuntu xenial-security universe


Does Two-Face die at the end of The Dark Knight?

Does the Two-Face die in the final scene of the Dark Knight? If he does, then how does he become one of the long lasting rival of Batman?


How to I get rid of these flippin' edges?

I'm trying to fill a complex face created with via an SVG, my workflow is as follows :  Import SVG convert to mesh simplify mesh fill ----------this is where I'm stuck  By filling the face it's creating additional edges by splitting the faces, not the end of the world but i want to inset the (one) face so that I can bevel the edge slightly. Having these extra faces in there causes them to overlap, and creates a mess.  I've tried dissolving the problem edges, but this doesn't do anything I've tried deleting the vertices attached to the edges, but this removes the face too, and filling the hole created just puts me back to square one.  Stumped! Please help and thanks in advance]


I have a couple of Python scripts I want to launch at bootup. One is located at the path below. /home/my-sickbeard-install/SickBeard.py Since Cron has never ever worked for me and nobody on about 5 forums knows how to fix my Cron problem even though it's a pretty much clean install of the OS, I need another method of launching these scripts on bootup. Can someone suggest to me another way I can launch them please? Note: This is actually for something I'm trying to do a Debian machine. Not sure if it makes any difference.


I want to have a page-filling and -breaking longtable, so I decided to try xltabular. Unfortunately xltabular seems to screw up the booktabs rules in the normal tabular environments, see:  \documentclass{article} \usepackage{booktabs, xltabular} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tabular} \begin{document} \begin{tabular}{ccc}     \toprule     col1 & col2 & col3 \\     \midrule     row 2: & more and moooooooooooore & test \\     \bottomrule \end{tabular} \end{document}     Not loading xltabular resolves the issue.  Did I miss some package option or some incompatibilities? Is there a better package than xltabular which doesn't break booktabs?  (I am using TeXLive 2019 and compile with lualatex)    EDIT (by Skillmon)  I reduced the bug to the following MWE (which doesn't make much sense on its own), it looks like booktabs tries to be smart detecting something, but fails badly.  \documentclass{article} \usepackage{longtable} \let\xltabular\relax \usepackage{booktabs}  \begin{document} \begin{tabular}{ccc}     \toprule     col1 & col2 & col3 \\     \midrule     row 2: & more and moooooooooooore & test \\     \bottomrule \end{tabular} \end{document}   It seems to suffice that longtable is loaded and \xltabular is defined (even if it's just \relax).


What keeps the resting potential of neurons constant at -70 mV?

I know the sodium-potassium pump pumps out 3 Na+ ions and pumps in 2 K+ ions per reaction so the negative charge in the axon increases. However, once the voltage (difference of charge inside and outside of the neuron) gets down to -70 mV, this stops going further below. Why?  I know that this is because of other transport proteins and the presence of anions and cations in the axon, but what are those proteins and ions precisely? There are always negatively charged proteins inside a cell, including a neuron, so I assume there must be a strong force which keeps the voltage from going down.  By the way, is the opening and closing of an ion channel triggered by the voltage of the neuron or the concentration of the ion?


I have been most certainly sure that the second is the better option until I came across the first expression from a  by an American professor on EdX.     And an array is a chunk of memory, each of whom’s elements are contiguous, back to back to back to back.   Can anyone elaborate which of the two is correct, and if both are, then which situations are they correct in?


Sources of information about flight times and delays

I booked travel from Perth Australia (QF648 2350 11 April 2019) via Melbourne Australia to Christchurch New Zealand (QF133 0715 12 April 2019) but there was a delay in Perth. Because I was going to miss my connection in Melbourne, Qantas transferred me to Air New Zealand in Melbourne so I could travel to Christchurch via Auckland on flights NZ722 and NZ555. I think there was also some sort of delay with one or other of those flights but I'm not sure, and I got to Christchurch too late on 12 April 2019 to travel to the town where I had pre-booked accommodation so I had extra expenses in Christchurch.  I’m now trying to complete a travel insurance claim but I can’t remember all the details. Is there a free open-source list of that kind of thing? It’s not like I have to prove in the claim that the delays occurred because I would guess the insurance company is going to check that in any case; but I would like to get the details right.


How to free Internal Storage by moving data or using symlink / bind-mount with Adoptable Storage?

Galaxy S5 running LineageOS 16 (Android 9).  I'm having issues with running out of storage space, even though I have 128GB external SD card, merged with the internal storage. Is there a way to create a symlink from the internal memory to the external SD card, even though they are technically merged and aren't identified as separate storage locations within Android as a result?  I've never made symlinks on Android so I'd appreciate some pointers or resources on that as well.


Intuition of a non-differentiable function graph as a differentiable manifold?

A $d$-dimensional topological manifold $M$ is a topological space for which there exists continuous maps (charts) to $R^d$, such that every point $p \in M$ is mapped by at least one of those charts.  A differentiable manifold $M$ is a topological manifold with the additional requirement that its Atlas contains only charts whose transition maps are all differentiable.  I find this second definition (of differentiable manifolds) very strange, because it only makes reference to the charts in the Atlas of manifold $M$, but not to the manifold itself.  If I'm correct, it means we can construct a differentiable manifold out of a non-differentiable continuous function:     `Take the graph $M$ of a non-differentiable function (e.g. $f(x)=|x|$). This clearly is a $1$-dimensional topological manifold. Now we can simply take the Atlas that consists of the single chart map that maps every point on the graph to the $x \in \mathbb R$ that produced it. This clearly is a chart map, and it clearly has a chart transition map to itself that is differentiable.   So this means that manifolds that have "kinks" in them, like the graphs of non-differentiable functions, can still be differentiable manifolds.  Could even a function like the Weierstrass function be a differentiable manifold?  What does "differentiability" of a manifold intuitively mean, since it is not intuitively the same thing as the differentiability of a real function?


Does this identity with binomial coefficients have a combinatorial interpretation?

I found the identity for $n\ge 1$: $$ (n-1)n^{n-1} = \sum_{j=1}^{n-1} \binom{n}{j} j^j (n-j)^{n-j-1} $$ or equivalently, if we say $0^0 = 1$, we have $$ n^n = \sum_{j=0}^{n-1} \binom{n}{j} j^j (n-j)^{n-j-1} $$ This identity is easy to show using generating functions (as I couldn't find this identity anywhere online, I include this proof below). However, it looks suspiciously like something that would have a combinatorial interpretation, since $n^n$ is the number of functions from a set of $n$ elements to itself, and the binomial coefficients could be taken to represent numbers of subsets of the same set. My question is, does this identity have a combinatorial proof or some meaningful combinatorial interpretation at least?  Proof using generating functions: The power series for the principal branch $W(x)$, the Lambert W function, is $$ W(x) = \sum_{n=1}^\infty \frac1{n!} (-n)^{n-1} x^n $$ and $W'(x) = \frac{W(x)}{x(1+W(x))}$. Thus we have: \begin{eqnarray} \sum_{n=1}^\infty \frac1{n!} n^{n-1} x^n &=& -W(-x) \\ \sum_{n=1}^\infty \frac1{n!} n^n x^n &=& x{\frac{d}{dx}}(-W(-x)) = \frac{-W(-x)}{1+W(-x)}\\ \sum_{n=0}^\infty \frac1{n!} n^n x^n &=& 1 + \frac{-W(-x)}{1+W(-x)} = \frac{1}{1+W(-x)} \end{eqnarray} We therefore have the product  $$ -W(-x) \cdot \left(\frac{1}{1+W(-x)}\right) = \frac{-W(-x)}{1+W(-x)} $$ which in series form looks like $$ \left(\sum_{n=1}^\infty \frac1{n!} n^{n-1} x^n\right)\left(\sum_{n=0}^\infty \frac1{n!} n^n x^n\right) = \sum_{n=1}^\infty \frac{1}{n!}\left(\sum_{j=0}^{n-1} \binom{n}{j} j^j (n-j)^{n-j-1}\right) x^n = \sum_{n=1}^{\infty} \frac1{n!} n^n x^n $$


Cannot get lock when running `sudo apt-get update`

When I issue sudo apt-get update on the command line I get the following error:  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/   How can I fix that?


How do I calculate the running variance?

I only get one value at a time in the system that I am developing. However whenever I get my first value I should already be able to calculate a variance. Every time I get a new value I should recalculate the variance. One important note is that I can't save any previous values, I should thus be able to calculate variances "on the fly".  is what I would need but for variances.  Thank you


Unable to debug the error shown here, throws no response on the box

The problem is on HackerRank under algorithms named Sparse Arrays. I am new to java and this is really messing up, I have tried Googling but I cannot figure out what is wrong here. public class Solution { private final static Scanner sc = new Scanner(System.in);  public static void main(String[] args) {     List<Integer> integers = new ArrayList<Integer>();     List<String> strings = new ArrayList<String>();     List<String> queries = new ArrayList<String>();     int n = sc.nextInt();     sc.nextLine();     for( int i = 0; i < n; i++) {         strings.add(sc.nextLine());     }     int q = sc.nextInt();     sc.nextLine();     for( int j = 0; j < q; j++) {         queries.add(sc.nextLine());     }          for( int k = 0; k < q; k++) {         int count = 0;         for( int m = 0; m < q; m++) {             if(queries.get(k) == strings.get(m)) {                 count++;                 integers.add(count);             }         }              }     integers.forEach(System.out::println); }  }


The Night King destroyed the wall and Castle black in Game of Thrones season 7. However, in the ending scenes of season 8 we see that the wall is Intact?


What are the direct summands in $\mathbb{Z}^n$?

I am interested in knowing the rank $k$ submodules of the $\mathbb{Z}$-module $\mathbb{Z}^n$ which are are also direct summands.   I know that $\mathbb{Z}^k$ sitting in $\mathbb{Z}^n$ in the standard way, i.e., $(z_1, \dots, z_k) \mapsto (z_1, \dots, z_k, 0, \dots, 0)$ is one such summand. So if I look at all the different ways in which $\mathbb{Z}^k$ is embedded in $\mathbb{Z}^n$ will that give me all the required summands or will there be more?  If so, how do I characterize all the embeddings, i.e., injective $\mathbb{Z}$-module homomorphisms from $\mathbb{Z}^k$ into $\mathbb{Z}^n$?  Thank you.


Javascript - Regex access multiple occurrences

I have this text  txt = "Local residents o1__have called g__in o22__with reports...";   in which I need to get the list of numbers between each o and __  If I do  txt.match(/o([0-9]+)__/g);   I will get  ["o1__", "o22__"]   But I'd like to have  ["1", "22"]   How can I do that ?


EM algorithm for a binomial distribution

I have been reading the following link about an example of the EM algorithm applied to the tossing of a coin. The link is:    In the example states that we have the record set of heads and tails from a couple of coins, given by a vector x, but that we do not count with information about which coin did we chose for tossing it 10 times inside a 5 iterations loop.  The problem that I have is with the following figure:    For what it says in the tutorial, it should converge to values of theta(A)=0.80 and theta(B)=0.45. At the beginning, it starts with two values of theta at random that are theta(A)=0.60 and theta(B)=0.50. The question that I have is from where does the values of 0.45x, 0.55x, 0.80x, 0.2x and so on appears? also how I can transform that to each of the values that appear on the table for Coin A and Coin B. In conclusion, I need details on how to obtain those values. Thanks


Why do we have a symbol for root of -1, but none for divide by zero?

Even though there is no real answer to the equation √-1, we give it the symbol .  What is the reason that there is a symbol for √-1, but no symbol for dividing by zero?


Are there any Stackoverflow-application for cell phone, with which I can    ask a question write a answer do other things, vote up-down   If there is, can you give a link to download it to mycell phone ?  my cell phone is nokia N80


I've built a Windows service as "Any CPU". Why does it run in 32-bit mode on my 64 bit machine?

I've built a Windows service as "Any CPU". However, when I run it on my 64 bit machine it runs in 32 bit. How can I fix it? I'm using .NET and C#, and my operating system is Windows 2008 R2.  If I build it in x64 it correctly loads in 64 bit mode. However, "Any Cpu" -- which is what I want -- loads in 32 bit, even though the machine it's running on perfectly supports 64 bit.  EDIT to add more information based on feedback  We do have third party tools as well as reference a c++ managed assembly. These may or may not be built for any CPU. In fact i know that the c++ managed assembly is only built for x86. However, the odd things is that if I specifically specify x64 the process will start up and work in x64. If the framework were to attempt to load the c++ managed assembly it would fail. I don't mind this, because in the code, we do not load the 32bit managed ++ assembly if we're running in 64 bit mode. Could it be that the build figures that since there is a 32 bit assembly in here it should mark the launching process (in this case a windows service assembly) as x86?


Proving $ \left| \sum_{k=1}^n a_k b_k \right| \leq \dfrac{1}{\alpha} \sum_{k=1}^n a_k^2 + \dfrac{\alpha}{4} \sum_{k=1}^n b_k^2 $ for any $\alpha > 0$

For $\alpha > 0$, we want to prove that $$ \left| \sum_{k=1}^n a_k b_k \right| \leq \dfrac{1}{\alpha}  \sum_{k=1}^n a_k^2 + \dfrac{\alpha}{4} \sum_{k=1}^n b_k^2 $$  attempt We may rewrite our inequality as $$ \sum \alpha a_k b_k \leq \sum a_k^2 + \sum \left( \frac{b_k \alpha }{2} \right)^2 $$ Now, we may apply $a^2 + b^2 \geq 2ab $ as follows: $$ \alpha a_k b_k = 2 a_k \dfrac{ b_k \alpha}{2} \leq a_k^2 + \left( \dfrac{b_k \alpha }{2} \right)^2$$ Now, adding up from $k=1$ to $n$ proves our result. Is my approach correct?


._ .DS_store files and so on when syncronizing cloud drive services

Is there a way to prevent Dropbox, or any other cloud service, from synchronizing those ._ and .DS_store files, although they exist in the Dropbox folder?


Extract in R Raster Package incredibly slow

I am using the extract function from the raster package in R. The extract function is taking incredibly long to assign the values to the polygon. In ArcMap, this process is much faster (but of course more time consuming to set up). CVsteepslope is the raster (100m resolution) and grids (3,000,000 objects) is my polygon. Here is the code: CVsteepslope <- CVsteepslope %>%    projectRaster(CVsteepslope, crs="EPSG:3035") # here I am reducing the raster to the polygon extent in an attempt to speed things up CVsteepslope <- crop(CVsteepslope, extent(gridsdiss), snap="out")   CVsteepslope <- rasterize(gridsdiss, CVsteepslope)     CVsteepslope <- mask(x=CVsteepslope, mask=CVp)  grids$steepslope <- as.numeric(extract(CVsteepslope, grids, method='bilinear', small=TRUE, fun=mean))  Side note: I am using a virtual environment with 128 gb memory, R is only using a third of this.


From basic principals, how does one prove that energy is conserved? Or a little more specifically - Why does this hold:  $$\Delta \mbox{ PotentialEnergy} + \Delta \mbox{ KineticEnergy} = 0 $$  Or, for extra credit, why does this hold:  $$\Delta \mbox{ PotentialEnergy } + \Delta \mbox{ KineticEnergy} + \Delta \mbox{ ThermalEnergy } = 0 $$


Maven 3 + RELEASE version in dependency. Valid?

Is a dependency entry like this, with RELEASE in version, still valid in Maven 3?  <dependency>   <groupId>com.mygroup.mysubgroup</groupId>   <artifactId>myitem</artifactId>   <version>RELEASE</version> </dependency>   I read that it was deprecated when switching from Maven 2 to Maven 3.   If deprecated, what is the current recommended method to retrieve the latest released version of an artifact?


Algebraic geometry and topology for string theory

I am looking for a comprehensive book or notes in algebraic geometry and topology techniques used in string theory compactifications covering topics like orientifolds, orbiolds, Calabi Yau manifolds and toric geometry, divisors, resolution of singularities, fiber bundles etc.  If it contains explicit examples and exercises it would be useful.


Connect to server through intermedieate computer

I have accounts on 2 other machines machine 1: 172.16.68.1 and machine 2: 172.16.68.3 i use ssh to  login to machine 1.  I am unable to directly ssh to machine to but once i have logged in in machine 1, i am able to login using ssh to machine 2.  Is there a way i can directly ssh to machine 2?  Or at least i need a way to use the connect to server option to login to machine 2, because the login to machine 1 then login to machine 2 works via the terminal, but it won't work via the connect to server option. I need a gui way to browse machine 2, open files via sublime in my current machine etc.  Any suggestions?  EDIT :  I tried the solution given in   It works for me in the terminal, but the gui connect to server fails saying  Unhandled error message: Timed out when logging in  EDIT 2:    Notice the Connect to server in the left panel, that's what i am talking about.


I have a simple survey page that I was trying to make. Everything worked well except when I used a single quote in my comment on the survey page. When I had a comment with a single quote in it, the DB query wouldn't insert into the DB.   After some Googleing, I assumed I had to escape the string before inserting it into the DB. I used mysqli_real_escape_string to escape the string before INSERTing into the DB, but that doesn't seem to have helped.  Here is my code that inserts the user's comments into the DB ($con not shown for security)      mysqli_real_escape_string($con,$_POST['question_1']);     mysqli_real_escape_string($con,$_POST['question_2']);     mysqli_real_escape_string($con,$_POST['question_3']);     mysqli_real_escape_string($con,$_POST['question_4']);     mysqli_real_escape_string($con,$_POST['question_5']);      mysqli_query($con, "INSERT INTO feedback (question_1, question_2, question_3, question_4, question_5) VALUES ('$_POST[question_1]', '$_POST[question_2]', '$_POST[question_3]', '$_POST[question_4]', '$_POST[question_5]')");   Again, this only happens when the comment contains a single quote. Any suggestions? Did I escape the string incorrectly?


Not long ago I noticed a blessed change that is obfuscating question title and body when it's deleted after getting valid spam flags.  Question title becomes:     This question was marked as spam or offensive and is therefore not shown   And body:     This question was marked as spam or offensive and is therefore not shown - you can see the revision history for details.   Great, however I saw now that the page title itself still showing the nasty spam:        Can my innocent soul be saved from seeing such horrible things, please?


So I downloaded Linux since it was free, but when I put my old computer discs in my computer it for some reason thinks it's an audio disc. Am I able to tell Linux that it's actually a game? Or do I have to get an actual windows operating system to play these games?


Is this kids experiment a legitimate way to show that air has mass?

Consider the experiment in .  The experiment includes using a ruler as a lever, with an inflated balloon on one side and a balloon which is not inflated on the other.  The aim of the experiment is to show that air has mass.  I have seen many kids performing similar experiments.  But, if the air pressure inside the balloon is equal to that outside, then the buoyant force will cancel out the weight of the air inside the balloon, won't it?


Show that a connected metric space is $\epsilon$-chainable for $\epsilon>0$

Show a connected metric space (X,d) is $\epsilon$-chainable for $\epsilon >0$       $\epsilon$-chainable Definition      (X,d) is $\epsilon$-chainable if given any two points $a,b \in X$, $\exists$ a finite set $\{ x_0,x_1,...,x_n\}$ of points in X with $x_0 = a$, $x_n=b$ and $d(x_{n-1},x_n)<\epsilon$, $\forall$ n      Clopen Definition      A set is clopen $iff$ its boundary is empty      Connected Metric Definition      Let $(X,d)$ be a metric space. It is connected $iff$ it has no proper subsets which are clopen      The following are equivalent:         $X$ is connected   The only subsets of $X$ that are clopen are $\emptyset$ and $X$   $\nexists$ non-empty, disjoint, open sets $A$ and $B$ such that $X=A\bigcup B$   $\nexists$ non-empty, disjoint, closed sets $A$ and $B$ such that $X=A\bigcup B$         Theorem      Let $(X,d)$ be a metric space, and let $S$ be any subset of $X$. Then $S$ is closed $iff$ $S^c$ is open.     So how would someone show this exactly?  Let the set $A$ be the set of all elements in $(X,d)$ that can be reached from $a\in X$ in a finite number of steps with length less than $\epsilon$.  Does this mean that there should be no isolated points? (an isolated point would be at distance infinity from any other point, or distance zero from itself, since $\epsilon >0$ we don't want this?)  Knowing that $X$ is connected $\implies$the only subsets of X that are clopen are $\emptyset$ and $X$  Also, by construction of A;   A is the set of all $\epsilon$-chains between any element and $a$  And, so $A^c = \emptyset$ if $A$ was $\epsilon$-chainable (because A has to have a path from all elements to a, for this to be true, the complement wouldn't have anything in it)  Leaving only $A$ as the remaining clopen set  Does this make any sense? Or should an alternative be used, and how to formalize it.  Thanks.


Do we still need to avoid using frames and iframes for SEO?

I thought frame and iframe were bad for SEO, but today I was doing a search for "numismatica" on Google.it.  The 3rd site is lemonete.com which is all made with frames. A competitor site (nummus.com) that has no frames ranks much lower when searching for the same word: "numismatica".  So can we use frames without taking an SEO hit now?  Any explanation (possibly simple) would be appreciated also about the fact the 2nd site ranks much lower. :)


Is there a description of Stack Exchange/Stack Overflow sites?

I frequent Stack Overflow a lot and there are many questions that get downvoted because they don't fit in the "Code only" question format. There are many users who will immediately downvote people for asking the question in the wrong place, but whoe never provide suggestions about WHERE they should be asking that question.  My question is: Is there a good description of what types of questions are acceptable in each of the Stack Exchange family of sites?    I know there is an FAQ, but this really does not address which types of question is fit for each site.


Question: Is it correct to use k-fold cross validation for choosing the best forecasting model among several regression models?  Case: Data come from a time series (e.g. prices), but I have access only to a random fraction of them. Instead of having 365data/year, I have only some of these observations in a casual order (e.g. 50 out of 365). Thus, I built several forecasting models (regression) based on external features that are available for every day avoiding a classical time series approach (ARIMA, etc.).  I have  that CV isn't adapt to time series due to autocorrelation issues; however, I'm wondering if this problem could affect my analysis.   What kind of test should I perform? What are potential problems I should pay attention to?


Cause behind bending of light in refraction

I know that refraction is caused due to change in speed of light but why does it bends? I also know that during refraction frequency is constant and wavelength is decreased since speed slows down. But please tell me why it bends ,it should have slowed down and passed straight?


Is this Linear Transformation Isomorphic? Given that a Matrix is Nilpotent

Given a matrix in $M_{n \times n}$ which is nilpotent. Prove that the Linear Transformation $T:M_{n \times n} \rightarrow M_{n \times n}$ given by $T(X) = X -NX$ is an isomorphism.  Shouldn't be answered with Eigenvalues and Eigenvector, it should only be answered using matrices, vector spaces, Linear transformations.


I Initialized my HDD to MBR? Can I recover the data ? (Note.. I just intialized, nothing else.)

I had an HDD in my Laptop. I connected that HDD to some other laptop via USBtoSATA bridge and it dint show in My Computer. After trying for several times, I went to disk management, and as soon as it opened it said I need to initialize my disk. I selected intialize in MBR and then it showed unallocated space for my 1 TB HDD. I immediately disconnected my HDD.  My laptop is in service center and will be available after one week. If I attach my HDD back into my laptop, will it work the way it used to ? Is my data lost ?


Recover overwritten partition by windows repair

I have a dual-boot system with Ubuntu and Windows OS. Additionally, I have a second hard drive connected (/dev/sdb), with an NTFS partition and just data on it (no operating system).  My GRUB boot menu shows one entry for Ubuntu and, for some unknown reason, two entries for Windows (one on /dev/sda1 and one on /dev/sda2). I have always booted Windows by the /dev/sda1 entry but this time accidentally chose /dev/sda2 entry. During that Windows boot chkdsk wanted to check my hard drive(s) for some inconsistency and said it successfully fixed some problems.  Unfortunately, it apparently erased all data on my NTFS data drive /dev/sdb without noticed prior warning. All my data on that drive has been erased and the only files/directories left on that drive are:   bootsqm.dat pagefile.sys System Volume Information $RECYCLE.BIN found.000 (empty)   Does anybody maybe have an idea how to recover my data? Do I need to repair some partition table maybe?  I have tried a few recovery programs already such as Recuva on Windows or Photorec on Linux. Unfortunately, they just list a bunch of files (>2.5 Mio.)  without associated file path. Is there any better solution that also recovers the directory structure?  Would very much appreciate help to recover my precious data :-(  Thanks a lot!


How to say $\mathcal{E}$ when we are speaking about mathematics? Can I call it "curly E"?   And also how to pronounce $\mathcal{A}$ and $\mathcal{B}$ and $\mathcal{P}$ and so on?


With axiom of choice it is possible to construct an inner product on $C(\mathbb R)$. My question is, is it possible to explicitly construct an inner product on $C(\mathbb R)$? I.e. to give a closed formula to calculate the inner product? I know it is straight-forward to write down a scalar product using a Hamel basis. This is not the answer I am looking for. This question came to me, when a student asked me in the lecture today 'whether there are vector spaces without inner products'. So I tried to find scalar produces for function spaces. I think I managed to write one down for $L^1((0,1))$. But I failed to construct one for $C(\mathbb R)$.


How to prove this? "For all sets $A,B\subseteq D$ and functions $f:D\mapsto R$, we have $f(A\cap B)\subseteq(f(A)\cap f(B))$."

Here's my attempt:  $f(A∩B) = f(\{x|x∈A∧x∈B\}) = \{f(x)|x∈\{x|x∈A∧x∈B\}\}$ $f(A)∩f(B) = f(\{x|x∈A\}) ∩ f(\{x|x∈B\}) = \{f(x)|x∈\{x|x∈A\}\} ∩ \{f(x)|x∈\{x|x∈B\}\} = \{x|x∈\{f(x)|x∈\{x|x∈A\}\}∧x∈\{f(x)|x∈\{x|x∈B\}\}\}$  And now I'm stuck. Please help.


Showing arrow heads for intermediate chained arrows in \draw (A) -- (B) -- (C) -- (D) -- (E)

\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning}  \begin{document}  \begin{tikzpicture}[flow/.style={thick,-stealth}]    \node             (A) {A};   \node[right=of A] (B) {B};   \node[right=of B] (C) {C};   \node[right=of C] (D) {D};   \node[right=of D] (E) {E};    \draw[flow] (A) -- (B) -- (C) -- (D) -- (E);  \end{tikzpicture} \end{document}   This code produces the follow layout:  A ---- B ---- C ---- D  ---> E   How can I add an arrow head for each of the intermediate arrows without using separate \draw commands?  A ---> B ---> C ---> D  ---> E


What was the first science fiction series?  Did any series predate the 1936 series of Flash Gordon?  I don't really know a sensible way to search IMDb for the answer.  , erroneously, suggests:     The first popular science-fiction program on American television was the DuMont Television Network children's adventure serial Captain Video and His Video Rangers, which ran from June 1949 to April 1955.   Regarding Karel Capek's R.U.R. in the  - that was only a TV short, until 1948, when a  movie was made.


Send all local mail to a single external e-mail

I am trying to send all local mail to a single external e-mail, using Google's SMTP servers.  Using Google's SMTP servers work, as I am able to send mail to external addresses work using mail from mailutils.  The redirection of local mail to the external e-mail does not work. When sending a mail to root from my account test using:  echo "Body" | mail -s "Test Postfix To Root" root    I never recieve the message Nothing new turns up in /var/log/mail.err This turns up in /var/log/mail.log   Sep  4 18:48:06 desktop1204test postfix/pickup[5535]: C9326EE26: uid=1000 from= Sep  4 18:48:06 desktop1204test postfix/cleanup[5702]: C9326EE26: message-id= Sep  4 18:48:06 desktop1204test postfix/qmgr[5534]: C9326EE26: from=, size=401, nrcpt=1 (queue active) Sep  4 18:48:06 desktop1204test postfix/local[5704]: C9326EE26: to=, orig_to=, relay=local, delay=0.03, delays=0.02/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Sep  4 18:48:06 desktop1204test postfix/qmgr[5534]: C9326EE26: removed   My /etc/postfix/main.cf: inet_interfaces = loopback-only mynetworks = loopback-only alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases virtual_alias_domains = localhost.localdomain virtual_alias_maps = hash:/etc/postfix/virtual relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_use_tls = yes   My etc/aliases:  # See man 5 aliases for format postmaster:    root   My /etc/postfix/virtual:  @localhost.localdomain        someone@somewhere.com   How can I get it working? I don't want any local mail to arrive locally, they should all go to someone@somewhere.com.    I tried the solution suggested in a comment below: put *: someone@somewhere.com in /etc/aliases. But did not work:  test@desktop1204test:~$ sudo newaliases test@desktop1204test:~$ cat /etc/aliases # See man 5 aliases for format postmaster:    root *: someone@somewhere.com test@desktop1204test:~$ sudo newaliases  test@desktop1204test:~$ sudo service postfix restart  * Stopping Postfix Mail Transport Agent postfix                                                     [ OK ]   * Starting Postfix Mail Transport Agent postfix                                                     [ OK ]  test@desktop1204test:~$ echo "Body" | mail -s "Test Postfix To Root $(date)" root test@desktop1204test:~$ tail /var/log/mail.err  test@desktop1204test:~$ tail /var/log/mail.log  ...... Sep  4 22:46:12 desktop1204test postfix/master[7224]: daemon started -- version 2.9.6, configuration /etc/postfix Sep  4 22:46:23 desktop1204test postfix/pickup[7227]: 859AFF6A8: uid=1000 from=<test> Sep  4 22:46:23 desktop1204test postfix/cleanup[7235]: 859AFF6A8: message-id=<20130904204623.859AFF6A8@desktop1204test.localdomain> Sep  4 22:46:23 desktop1204test postfix/qmgr[7228]: 859AFF6A8: from=<test@desktop1204test.localdomain>, size=431, nrcpt=1 (queue active) Sep  4 22:46:23 desktop1204test postfix/local[7237]: 859AFF6A8: to=<root@desktop1204test.localdomain>, orig_to=<root@desktop1204test>, relay=local, delay=0.02, delays=0.02/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox) Sep  4 22:46:23 desktop1204test postfix/qmgr[7228]: 859AFF6A8: removed test@desktop1204test:~$


why does float number minus operation out wrong result?


What is this ? What is ""role-playing game" and which are the most famous/representative ones?

I arrived here following a totally irrelevant question/link. What is this? What is "role-playing game"?.. I realise it is a "game" where people play some "role", but what does this mean? Which are the main characteristics that define a "role-playing game"? If there are many of them out there, which are the most famous (or representative) ones?


Getting NullPointerException and app crash with a firebase query

I am using below function having a query to retrieve data from firebase     DatabaseReference rootRef;  @Override protected void onCreateonCreate(){  rootRef = FirebaseDatabase.getInstance().getReference();         getDriverStatus(); }       public void getDriverStatus(){             query = rootRef.child("Drivers").orderByChild("email");             ValueEventListener valueEventListener = new ValueEventListener() {                 @Override                 public void onDataChange(DataSnapshot dataSnapshot) {                     for(DataSnapshot ds : dataSnapshot.getChildren()) {                          Log.d("Firebase","Searching driver..."); //works correctly   String phone = ds.child("mobile").getValue(String.class);                         Log.d("Firebase",phone); //phone=null                          if(phone.equalsIgnoreCase("1234")) //Exception + App crash here {                             Log.d("Firebase","Driver found");                             status=ds.child("status").getValue(String.class);                             break;                         }                      }                 } @Override     public void onCancelled(@NonNull DatabaseError databaseError) {         Log.d("Firebase", databaseError.getMessage());     } }; query.addListenerForSingleValueEvent(valueEventListener);   }  Following is what my test looks like:    Basically i want to get a Driver data with mobile no: say "1234". But my app crashes at the point                      if(phone.equalsIgnoreCase("1234")) and gives me the following error:   java.lang.NullPointerException: String.equalsIgnoreCase on a null object reference   Can any body tell me what is wrong with the code. Thanks in advance...!


For which positive integers $n$ is $2^n+1$ divisible by $n^2$

I would like to show that if $n\in\mathbf{N}^{\star} = \mathbf{N}\backslash\{0\}$ is such that $n^2$ divides $2^n + 1$ then $n=1$ or $n=3$. If $n$ is a prime number $p$ it by obvious (and then $p=3$) by writing $2^p = (1+1)^p$ and using the fact that the binomial coefficient ${p}\choose{i}$ is divisible by $p$ when $0<i<p$. I cannot see what happens for a non prime $n$. Knowing that $n$ also divides $2^n + 1$ shows that $n$ belongs to a well-known sequence :    but this doesn't seem to help so far.  Remark. For those for which the question about noting $\mathbf{N}$ or $\mathbb{N}$ is easier than the "real" question, see :


How to insert text after a certain string in a file?

Right now I'm using echo "Hello World" >> file.txt  to append some text to a file but I also need to add text below a certain string let's say [option], is it possible with sed? EG: Input file Some text Random [option] Some stuff  Output file Some text Random [option] *inserted text* Some stuff


SQL Server 2005 How Create a Unique Constraint?

How do I create a unique constraint on an existing table in SQL Server 2005?  I am looking for both the TSQL and how to do it in the Database Diagram.


How to align the vertices of one object with the same vertices of another object?

If say you created a sphere (A), and moved its vertices around. Could you create another sphere (B), same as the original, and have B match its vertices with the altered vertices of A?  If this is possible, how would you do it?


Toggle admin metabox based upon chosen page template

I'd like to have a custom field interface show up only when a certain template is assigned to a particular WordPress page.  Any ideas?


Measuring battery voltage and saving energy

We have a pcb with an Atmega (MCU) on it, that most of the time is in sleep mode, consuming 50-100 uA .  When it wakes up, and only then , we need to take a sample of the battery voltage to send to the server .  I was considering few options and wonder which is the "right" if we dont want to loose current .   Voltage will be 3.6-4.2V when its full via 3.6V regulator .   connecting the battery with serial resistor(>50k ?? ) directly to the ADC. take 2  large resistors(100k?) and create voltage divider of the battery voltage , and connect the point between them to the ADC . connecting the battery directly to the ADC ?   --- should we measure after or before the regulator ??  A 100k resistor will leak about 50uA of current which is no that good ,because the Atmega itself should be the only and main consumer on sleep with 50-100uA .