can't execute controller method after loading fxml document

i'm trying to add an AnchorPane to my fxml file, after loading it in main through a method i defined in the controller, but i'm getting this error  Exception in Application start method java.lang.reflect.InvocationTargetException     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)     at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767) Caused by: java.lang.RuntimeException: Exception in Application start method     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)     at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException     at sample.Controller.addAnchor(Controller.java:20)     at sample.Main.start(Main.java:16)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)     at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)     at java.security.AccessController.doPrivileged(Native Method)     at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)     at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)     ... 1 more Exception running application sample.Main   Controller.java  public class Controller {     VBox vBox;     public void addAnchor(){         AnchorPane user = new AnchorPane();         user.setPrefHeight(50);         user.setPrefWidth(200);         Label test = new Label("test");         test.setLayoutX(113);         test.setLayoutY(15);         test.setCursor(Cursor.HAND);         user.setCursor(Cursor.HAND);         user.getChildren().add(test);         vBox.getChildren().add(user);     } }   Main.java  @Override     public void start(Stage primaryStage) throws Exception{         FXMLLoader loader = new FXMLLoader(getClass().getResource("sample.fxml"));         loader.setController(new Controller());         Controller controller = loader.getController();         controller.addAnchor();         Parent root = loader.load();         primaryStage.setTitle("Hello World");         primaryStage.setScene(new Scene(root, 800, 600));         primaryStage.show();     }   GridPane  <GridPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="572.0" prefWidth="755.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">   Vbox  <VBox id="vBox" maxHeight="1.7976931348623157E308" prefHeight="444.0" prefWidth="252.0" style="-fx-background-color: #C3B091;">     I've been stuck here for a day, any help would be very much appreciated.


I lost the source code from one project I did on the company I'm working for and haven't been able to find a Visual Basic 6 decompiler; does that even exists?  I only have the EXE that I've rescued from a user's machine.


Vmatrix not showing left line in table environment

I am trying to put a matrix determinant into a table, but the left line of the matrix does not show up:   Can you help me get the left line to show up in the determinant matrix?  Thank you!  Here is my code:  \documentclass[11pt]{article} \usepackage{booktabs} \usepackage[table,x11names,dvipsnames,table]{xcolor} \usepackage{blkarray} \usepackage{colortbl} \usepackage{multicol} \usepackage{mathtools}  \begin{document}  \begin{table} \centering \rowcolors{2}{blue!10}{white}     \begin{tabular}{c|c|c|c|c|c|c|c} \rowcolor{blue!50} Row & $z^{0}$      & $z^{1}$      & $z^{2}$     & $z^{3}$     & $z^{4}$     & $z^{5}$      & $z^{6}$      \\ 1   & 0.01822 & -0.0891 & 0.5265 & -0.825 & 0      & -0.25   & 1       \\ 2   & 1       & -0.25   & 0      & -0.825 & 0.5265 & -0.0891 & 0.01822 \\ 3   & $\begin{vmatrix}          0.01822 & 1 \\          1 & 0.01822        \end{vmatrix}$        &        $\begin{vmatrix}          0.01822 & -0.25 \\          1 & -0.0891        \end{vmatrix}$          &        &        &        &         &         \\ 4   &         &         &        &        &        &         & \end{tabular} \caption[Jury's Table for $Q(z)$]{Jury's Table for $Q(z)$} \end{table}  \end{document}


Would the Borg assimilate a 20 century Earth?

If the Borg found Earth in 20 century or early 21st century, such as 2015, would they assimilate humanity? If they thought Earth is too primitive to their use, would they just leave Earth alone for later, kill everyone on it, or forget about Earth?


I'm still learning Blender and have a slight problem. Lines are created behind object being bent with lattice or bend modifier. Please see pics. Warm regards, Shaun Dickson


Adding section number after section title with titlesec package

I am having difficulty adding the section number after the section title. Normally the order is section number followed by section title. I want it to be the opposite. I am looking for what I should add to the following .tex file code:  \usepackage[compact]{titlesec} \titleformat{\section}[runin]{\large\bfseries}{\thesection}{}{}


I received a letter of confirmation for funding from an English native speaker. She started the letter with:     To whoever it may concern,   I am not a native speaker, but that sounds quite odd to me and I would change that to To whom it may concern. Can anyone confirm whether her starting phrase is at least grammatically okay or is it just wrong?


Error clipping a raster with a shape layer "Attempt to create ADRG dataset with an illegal data type (Float32), only Byte supported by the format. "

I try to clip a raster with a vector layer. When I try to do it, I get the error "ERROR 1: Attempt to create ADRG dataset with an illegal data type (Float32), only Byte supported by the format."   Can someone explain what this means and how I could fix this?  Edit: additional information:   -im using qgis 2.18.9 (tagged).  -the file formats are .tiff and .shp (poly)  -I'm working on a win10 x64 system


Ask her if she will go with us OR Ask her whether she will go with us (?)

Which one sounds better?     (A) Ask her if she will go with us   OR      (B) Ask her whether she will go with us (or not)


I am new to mobile apps/games and I'm a bit confused about some stuff  What websites are similar to shutterstock but cheaper for commercial use  *about freepik: is the free assets are free for commercial use? Is the premium membership in freepik are worth paying for?  Is there any other suggested websites for vector/eps assets for mobile games use?  I am new to Graphic Design StackExchange and I'll be glad to learn from the experts. Thank you all.


I want to know what quarks are made out of for a project for my class. It has always confused on what quarks are.


How do you feed as a vampire when everyone is attacking you on Skyrim Elder Scrolls Xbox 360 version?

Yes, I know that you have to use Seduction or whatever, but when ever I approach someone I always get attacked. So how am I supposed to feed to go back to level one????


Upper boundary for nth prime number - any proof?

I saw this formula $$\frac{p_n}{n} < \log n + \log \log n \quad\text{for } n \ge 6$$ on this Wikipedia site . I needed a proof so I checked the sources. I couldn't find a proof... If there is, please tell me on what page and I apologize deeply. If not - please send me a link to a proof.


Suppose we have two surjective homomorphisms $f_1,f_2: F_{n} \rightarrow F_{m} $ of free groups (so $n\ge m$). One can always find homomorphism $g:F_n \rightarrow F_n $ giving a commuting triangle - when can it be enhanced to be an isomorphism?


Is it possible to direct all audio output, including music output, to a Bluetooth headset?

I am able to make and receive calls from my Samsung ACE S5830 phone using a  Bluetooth device. However, when I play MP3 songs on my phone, the output does not play through the Bluetooth mono headset; it just directly plays from the phone's speakers.  Is there a way to direct all audio output to the Bluetooth mono headset?


Remove the "p." abbreviation in the result of the \cite command (bilatex)

If I use for example the command \cite[X.2]{book} with X.2 as optional argument, I get [p. X.2,BOOK] as a result (where BOOK stands for the reference number of the book reference). Because X.2 stands for a chapter, rather then page number, I would of course like to get rid of the "p.". Because I rather rarely refer to pages, I would like to have this behaviour by default. I can probably change it using an optional argument of \usepackage{biblatex}. Which one?  Now I have in my preamble: \usepackage[doi=false,url=false,isbn=false,sorting=none,style=numeric-comp,backref=true]{biblatex}


How to get a command to output the contents into Terminal, and my system clipboard

Let's say I have an alias on my system which I often use to tell me my system information, the alias is systeminfo, and it executes lsb_release -a which outputs:   No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.04 Release:    15.04 Codename:   vivid   Now because I use this very often, and I then copy and paste the information into my AskUbuntu questions, it would be very useful if upon execution of the command, for the output to not only be printed to the Terminal window, but also be copied to my system clipboard, so that I can save time, and not need to select the text and then copy and paste that here. So I was wondering how that could be achieved? How do I make it so that not only is it printed on screen, but also copied to the system clipboard? Preferably, I would like this question to be answered with a script which asks me if I want the information to be copied to my system clipboard in addition to being displayed on screen, but I can of course write up that script, so it would just be for convenience and to save time.  Information Update:  I have tried these, but they don't work for me:


Alignment issue in Area 51 main site - site switcher, inbox and achievements

The content in the site switcher, inbox and achievements of the Area 51 are misaligned. I can verify the issue in recent Google Chrome and Mozilla Firefox browsers with 100% zoom.


Find all $z$ such that $(z+1)^7 = z^7$. You do not have to put your answer in the simplest rectangular or exponential form.

Find all $z$ such that $(z+1)^7 = z^7.$ You do not have to put your answer in the simplest rectangular or exponential form. So far I've found that $z^7$ to get $(\frac{z+1}{z})^7 = 1,$ and $\frac{z+1}{z} = e^{\frac{6\pi}{7}}$, $e^{\frac{8\pi}{7}}$, $e^{\frac{10\pi}{7}}$, $e^{\frac{12\pi}{7}}$, $e^{\frac{12\pi}{7}}$, the seven roots of unity. However, I don't know how to proceed. Any help is greatly appreciated!


Find splitting field of $x^5-4x+2$ over $\mathbb{Q}$

I know how to get the splitting field from the roots but I just can't come up with any factorisation that gives me roots. Any suggestions?


Inform lower rep users more explicitly about downvote meaning on meta

OK so I have seen the following before writing this post:      I logged in today thinking more about how to contribute to meta & not just SO. My problem in the past was the issue of misunderstanding down votes here and taking offense. In fact I think once upon a time I got kicked out of here due to my responses because my reaction was like this:     "Oh wow, on SO I may have gotten 1 downvote ever and now the 1st   question I ever asked is downvoted by 15. What the heck, these people   are mean here!!"   So I realize changing the voting system here as opposed to SO may not be desired or feasible, but what if upon asking a question and having meta note that I'm under a particular rep line (i.e. below 500?), I would be explicitly informed on how to digest and interpret downvoting?  I realize the FAQ states this, but as pointed out before it may have not been read or not realized to have differences from SO. Especially with low rep users. I know it's just like documentation in software, people still ask questions that are already documented and it drives us crazy. But it's also a fact of life that people typically will not read something buried in long read paragraph formats as opposed to a small. explicit, blip of important information. Since the downvoting meaning on meta is fundamentally different than SO, it might be worth having it stand out better to lower rep users.  The implementation of this information is semantics. Upon pressing 'Ask Question' or 'Post Your Question' maybe one of the following could occur for the use case described above (not for everyone just lower rep users):   Dismissable disclaimer explaining downvoting purpose on meta Contrasting color section on page with information directly from FAQ about downvoting Clickable link about 'What does downvoting mean on meta?' or something similar   The above are just brainstormed ideas. Again semantics on the implementation, but the purpose is to inform lower rep users on the process of downvoting. It might be a win-win situation, because higher rep users don't have to see the 'extra' information about downvoting, and the potential for lower rep users to be better informed about downvoting on the spot to lessen the occurrences of misunderstanding on meta.


Write a method that returns the highest and lowest value of an array

public static void main(String[] args) {             int[]array={1,55,37,86,84,99,3567,357,478,537,34};             System.out.println(findMaxMin(array));   //why is this not returning the numbers? it is just returning [I@48cf768c. i want it to return 3567 and 1.          }         public static int[] findMaxMin(int[]answer){             int max = answer[0];             for (int i = 0; i < answer.length; i++) {                 if (answer[i]>max){                    max=answer[i];                  }             }             int min = answer[0];             for (int i = 0; i < answer.length; i++) {                 if (answer[i]<min){                    min=answer[i];                  }             }              int[]array={max,min};             return (array);    //the return is the address not the actual numbers         }


Dense subset of $C[0,1]$ which preserves rationals

I am trying to prove the following:  In $C[0,1]$ the functions that preserve the rationals (i.e. $f(\mathbb{Q})\subseteq \mathbb{Q}$) are dense.  So far, I have not made much progress- I am aware that $A$ is dense in $B$ iff $A$ has non-empty intersection with each open set $U$ in $B$ but am not sure how to apply this definition. I have also thought about showing that the closure of $X$ (where $X$ is the set of functions that preserve the rationals) is equal to $C[0,1]$ by a double-inclusion proof but I have also made no progress with this approach. Am I on the right track or should I change my approach?


Why the float values are different from double values when set precision?

Why the float values are different from double values when set precision on  std::cout   ??      std::cout << std::setprecision(20) << endl;     float num = 1.2;     cout <<  num << endl;     double num2 = 1.2;     cout <<  num2 << endl;   Output:  1.2000000476837158203 1.1999999999999999556


Frame not faced for BB. Strip the paint or leave as-is?

So I just got my new frame from the LBS. They were supposed to face the frame, but only faced the head tube (hopefully, can't check it since the headset is already installed.).  Sadly, they didn't face the BB shell.  I'm tired of bringing my bikes to LBS and getting them in a worst shape than they were before (tried 4 different), so I'm not gonna go back for facing.  I'm planning to install a square taper BB. I understand there's nothing like a properly faced BB shell, but no LBS here in Belgium seems to be willing to do that kind of stuff, saying "it's not necessary". So, which of the two following option is the best (or least worse, as it happens)?   keep the frame as-is and install the BB strip the paint with a knife?


Why does \include change the output of my document?

This is essentially an expansion on my earlier problem () to which I have found a fix, but not really a solution. I made a document using a header file which I called in my main document with \include{chem-hdr}. Here is what this file looks like: % LaTeX header file for chemistry  % Packages \usepackage{chemfig} \usepackage[version=4]{mhchem} \usepackage{siunitx}  % Chemfig settings \setchemfig{atom sep=2em}  % Print atoms with a sans-serif font \renewcommand*\printatom[1]{%     \ensuremath{\mathsf{#1}}% }  This would cause any curly arrows to be placed beside my reaction scheme, instead of inside. In this incomplete reaction scheme, the arrow should be on the aldehyde.  Now with the background covered here's my actual problem: In my earlier question, I did not specify that I used a header file; instead, I just pasted the header-file code into the MWE. I assumed this would make no difference. But it does! Replacing the \include{chem-hdr} line in my preamble with the actual code in the file makes everything work as expected. Would anyone happen to know why? Thanks all.


can i go back to USA with as tourist even after living there illegally for 10 years?

i am a 34 year old mexican. when i was a minor(14 years old), i entered the USA with a tourist visa in 1995,but stayed 10 years illegally in that country. During that time, I went to middle school, high school, and graduatated from a community college. I started working at the age of 18. I paid taxes as well every year. In the year 2005, I willingly returned to my home country, mexico. I have been living in mexico for over ten years now , and I have not been back to the usa, neither have I had any trouble with the law in mexico nor usa. I would like to go back to the USA to visit friends, and return to mexico. I am a teacher in mexico. I have been working as a teacher since I returned from the usa. My reason for asking for advice is because I would like to know if there’s a chance I be given a visa to visit the usa even with the circumstances I mentioned above. Please help.


What's the difference between bool and BOOL?

I think there are two boolean type we can use bool and BOOL. What's the difference between those two?  bool contains true and false; BOOL contains TRUE and FALSE, can they be interchangeable?


Regarding: Let $f:(0, \infty) \to \mathbb{R}$ be a differentiable function for which $f'(x)f'(\frac{1}{x})<0$ for every $0<x \ne 1$. Then $f'(1)=0$. -- So I am trying to prove this, and I said: We know that $f$ is differentiable at $(0, \infty)$, so there exists a $0< \delta < 1$ such that $f$ is differentiable at $[1- \delta, 1+\delta]$ . So there exists a $x_{0} \in [1- \delta, 1+\delta]$ such that $f'(x_{0})f'(\frac{1}{x_{0}})<0$ So by Darboux Theorem, there exists a $x_{0}<c< \frac{1}{x_{0}}$ such that $f'(c)=0$. But now, I do not know how to link $c$ with $1$... Any hints? Thanks! :)


When should we define functions on an object's prototype vs. in the object itself?

Specifically, I don't understand why some methods require a .prototype in front of them but others to not. I was practising a code where a correct answer was  var Foo = function(value) {   this.val = value; }  Foo.prototype.valueOf = function() {   return this.val; }   and I am wondering why the prototype in Foo.prototype.valueOf was needed, why can you not simply just do Foo.valueOf? It is what I did before with other prototypes. For example, I do x.slice(2,4) and not x.prototype.slice(2,4).


I have received the following email from UK Visas and Immigration. Please help me out!

I have submitted 4 applications on 5th april at VAC,Lahore, Pakistan and received this email for all 4 of us...     Dear Customer,      Your UK visa application has been issued.      PLEASE DO NOT GO TO THE VISA APPLICATION CENTRE BEFORE THEY CONTACT   YOU.      You will be contacted by the Visa Application Centre when your   documents are ready for collection, or have been dispatched via   courier where this is relevant.       You are reminded that you should avoid making travel plans until you   have collected your passport, as the outcome of your visa application   is not final until you receive your passport.      Please ensure you check the details on your visa when collecting your   passport. If you need to contact us you can do so via our   International Enquiry Service at       Kind regards,      UK Visas and Immigration British Embassy Abu Dhabi    Please help me out what decision should I expect?


Downvoting unpopular, but good questions into oblivion. Why? Can we fix it?

Note: Here, when I say question, I typically mean support and discussion questions. Though this marginally can apply to feature request and bug reports as well.   So, I recently spent a good chunk of time writing this question:    I tried to make it the ideal "is this appropriate" question. I put forth existing questions and blog posts about what I thought was a similar, but not quite the same topic. I then put my arguments in for why these existing stances maybe don't make sense for this behavior. I was expecting for it to be a rather well accepted question(ie, get upvoted), but most likely with an answer saying "no it isn't appropriate for these reasons ...".  I got good answers for why it's inappropriate, but for even mentioning the subject, instant 10 downvotes and 4 (probably) sympathy upvotes. I don't care about reputation, and I know votes on meta have traditionally been different, as mentioned in the FAQ as well. However, I've stopped coming to meta because no matter how much you say "votes don't matter", it does bug me when I spend a lot of time building a good quality question only for it to get downvoted into oblivion.  I can really see why people rage-quit from meta now. No matter in how bold of font you say votes don't matter on meta, people still feel bad when their perfect quality question gets downvoted.   Why can't we (somehow) change it so that downvoted questions/requests mean "bad quality" and not "unpopular"? And then to show disagreement, upvote(or downvote) an answer that says "no this won't work because of X".   This isn't a technical problem, it's the mindset of the community. However, I think we scare off a great number of people because it's traditional for a users first post to be "why was my question closed" only to be followed by 20 downvotes of "disagreement that it should be reopened".   I have no idea how to solve this, but I do think it's a problem. And admitting that it's a problem is a big step toward a solution :)   References for "downvote for disagreement" just from my recent questions:    -7   -4(read the comments for some interesting discussion about this issue.. and also, this one before Shog9's edit, probably deserved some of the downvotes)   -6  (also, if you disagree it's a problem make sure to follow convention and downvote into oblivion)


I'm trying to find the man page for [[ (double-brackets).  Apparently man test only documents test and [.  Are the conditionals for [[ and [ are exactly the same?


15 year mortgage vs 30 year paid off in 15

I've found similar questions, but they all seem to focus on a preexisting 30 year mortgage and whether or not it makes sense to refinance to a 15.  My question is a bit different.  I have not yet bought a house but I am trying to decide which mortgage to go with.  As a result, I don't have to consider refinance fees and a change in interest rate.   The situation is that I can afford the payment on a 15 year mortgage and would prefer not to pay off a house for the next 30 years.  So I was going to go with a 15.  However, in looking at some mortgage calculators (which it is possible I am looking at incorrectly) it seems that there is no difference in getting a 30 year mortgage and just paying it off in 15 years.  The calculators seem to say that--assuming the same interest rate--you will pay the exact same interest over 15 years.  As a result, my thinking is, I can get the 30 and pay it like a 15.  If there really is no drawback then this gives me the ability to pay the normal 30 year payment if needed due to financial hardship (loss of employment etc.)  So my question is, am I missing something?  If not, why would anyone ever get a 15 year instead of just paying off a 30 year in 15 years?  In summary: Does it really cost the same amount of money overall to pay off a 15 year mortgage vs paying off a 30 year mortgage in 15 years?  PS: Please don't suggest taking the 30 year and investing the extra money.  I know this is an option and the one many would suggest.  However, for the purposes of this question please only consider 15 year vs 30 year paid off in 15.


Find the sum of the following series using


Change the dimensions of many images with one move in Microsoft Word

I want to change the dimensions (height and width) of some images that I have inserted into a Word document, and do it automatically and not one by one(right click and size...).  The images have the same initial size.  They are all going to the same new size and preserving the aspect ratio without cropping. They were not previously resized or otherwise modified on the page.  The images I want to change have the same category of caption.  Is there a way to do this?


Inverse eigenvalue of a linear transformation

T is a linear transformation, and $\lambda$ is N eigenvalue of T. How do I prove that $\lambda^{-1}$ is an eigenvalue for $T^{-1}$?   I know for a matrix, I can use the fact that $Av=\lambda v$, but how does a linear transformation work?


Change the folder that Windows Explorer starts at

In Windows7, when you open the Windows Explorer using the pinned Windows Explorer button on taskbar, it opens WE and points it to My Documents folder.  Is there a way to change this so it doesn't open My Documents, but rather "Computer" just as Windows+E keyboard shortcut does?


Path connectedness of a subset of $\mathbb{R}^2$

I know about Connectedness and Path Connectedness in Topology. Recently, I got stuck into a problem. Let $A$ be the following subset of $\mathbb{R}^2:$ $$A=\{(x,y) \mid (x+1)^2 + y^2 \leq 1\}\cup \{(x,y) \mid y=x\sin(\frac{1} {x}),\ x>0\}$$ The connectedness is obvious from if $A$ is connected then $cl(A)$ is also connected. But I can't prove the path connectedness ( The answer is given that $A$ is both connected & Path connected). Please help. Thanks in advance.


Traveling after my German residence permit expires

I have a question regarding the Schengen border rules. I, a Canadian citizen, entered Germany on February 1st, 2017. I got my student visa on March 3, and it will expire on June 20. However, I will be traveling in Europe (I will enter Italy on June 19 and stay there until I return home on June 29th) after the expiry of my residence permit. As I understand, the border code states that the time I lived under my residence permit does NOT count towards my 90 day limit:        For intended stays on the territory of the Member States of a duration of no more than 90 days in any 180-day period, which entails considering the 180-day period preceding each day of stay, the entry conditions for third-country nationals shall be the following:   ...   For the purposes of implementing paragraph 1, the date of entry shall be considered as the first day of stay on the territory of the Member States and the date of exit shall be considered as the last day of stay on the territory of the Member States. Periods of stay authorised under a residence permit or a long-stay visa shall not be taken into account in the calculation of the duration of stay on the territory of the Member States.      Source:     However, I don't want this to cause problems during my travels. I contacted the German visa office and they told me flat out NO (to traveling after my permit expires), saying that I have to stay out of Schengen for another 90 days. But then the rule in the border code doesn't say that. So, I need some guidance. Who do I contact from here?    Some additional details: - I will be entering Italy on the 19th of June (one day before my residence permit expires), and remaining there until I fly back


Is it strange to use "dilemma" when not referring to two difficult choices?

Definition:     dilemma      a situation in which a difficult choice has to be made between two or   more alternatives, especially ones that are equally undesirable.      a difficult situation or problem.   Source: .  Example sentence:     The dilemma of modern life: trying to find an outlet outside of your   house.   I guess this sentence fits the second definition. So is it correct? (Or should I use another word instead?)


I am trying to create a directory that will house all and only my PDFs compiled from LaTeX. I like keeping each project in a separate folder, all housed in a big folder called LaTeX. So I tried running:  rsync -avn *.pdf ~/LaTeX/ ~/Output/   which should find all the pdfs in ~/LaTeX/ and transfer them to the output folder. This doesn't work. It tells me it's found no matches for "*.pdf". If I leave out this filter, the command lists all the files in all the project folders under LaTeX. So it's a problem with the *.pdf filter. I tried replacing ~/ with the full path to my home directory, but that didn't have an effect.  I'm, using zsh. I tried doing the same thing in bash and even with the filter that listed every single file in every subdirectory... What's going on here?  Why isn't rsync understanding my pdf only filter?    OK. So update: No I'm trying  rsync -avn --include="*/" --include="*.pdf" LaTeX/ Output/   And this gives me the whole file list. I guess because everything matches the first pattern...


Without computers, how can you conjecture the (in)validity of a long convoluted argument in Predicate Logic?

Source: p 287,   (2010 2 ed) by Henle, Garfield, Tymoczko.     Predicate is the reason we started on deductions. In Sentential, remember, we can verify that an argument is valid by using truth tables or the short-cut method. With Predicate, we have no such tool. We can show that an argument is invalid if we exhibit a universe in which the premises are true and the conclusion is false, but (until now) we have had no means of showing that an argument in Predicate is valid.    In the 2 Logic textbooks  read (the above and ), each exercise on deductions (e.g. the following) divulges the (in)validity of the argument, and so enables you to know instantly what to do. But without computers, for arguments with > 10 long, convoluted premises: what if the (in)validity were concealed or tacit?   Per the above, I already know that a Valid Argument can be proven only with Deduction, and an Invalid Argument disproven with a Counterexample. But before 1. writing a Deduction or 2. finding a counterexample, you must have conjectured the argument, respectively, 1. valid and 2. invalid (Otherwise, how would you know to write a Deduction or find a counterexample?!?) So how would you conjecture (in)validity before doing the work?


Problem in sending hex value to TCP in python?

I need to send 0xFE (hex value) to a device connected through TCP. I tried following code and observed data on Packet Sender which shows value in ASCII column as 0xFE and hex value as "30 78 66 65". I have tried binascii.hexlify and a lot other strategies but none seem to work as I ain't getting "FE" hex value.  import socket  s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('192.168.10.10',59354))  s.sendall(hex(int('FE',16)).encode()) s.close()


When I try to add 1.5 and 6.6757 in spyder and i'm getting 8.1756999999 as the answer can anyone tell me why

There's a problem with data when I try to add  It's specifically happening when the no. of digits after decimals is four.  num1 = 1.5 num2 = 6.6758 sum = float(num1) + float(num2) print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))   The sum of 1.5 and 6.6758 is 8.175799999999999


Make gnome-screenshot ignore XDG_PICTURES_DIR

I tried the following command:  gsettings set org.gnome.gnome-screenshot auto-save-directory "file://$HOME/screenshots   And it didn't appear to do anything. gnome-screenshot seems to ignore this command and only use XDG_PICTURES_DIR to make decisions. I can set XDG_PICTURES_DIR to ~/screenshots, which I did and it works, but I would like to separate screenshots and pictures. Is there any way to do this?


How do I install Foldit.tar.gz (specifically)?

NOTE: THIS IS NOT A DUPLICATE QUESTION. It is specific to Foldit.tar.gz and installing this game is done uniquely. There is an askubuntu page answering the question, "", but those instructions are for that generic file type. They don't work with this particular game, and in this explanation I've resolved that.  Also, I'm an absolute beginner, running Ubuntu 13.01 for only about 2 months now. I'm only barely familiar with the console at this point. Please bear with me. However, what I offer is the simplest and most concise solution to this problem you will find (out of the first 50 or so google results that come up).  1- From your Downloads folder right click the downloaded file "Foldit.tar.gz" and select the option to extract it into any folder you choose. I picked /Public/Foldit in my home folder.    2- The next step is easiest done from the console. Type in  sudo apt-get install xclip which enables you to cut and paste within the game. (It should run without this feature, if you don't want it.) Then type this in to start it  sudo xclip      3- Next type in sudo apt-get install libglut3 which is a prerequisite not mentioned on the fold.it site nor in the readme file. (I asked them to change that, but who knows.) If that command didn't work, like it didn't for me, then go to this page to download the libglut3 package, , which I was then able to install via the software center. There, you should be all set.    4- Before you try to start the game, make sure you're on-line so it can download all the updates and puzzles. The readme file says, "To start the game, run Foldit from this directory." So go into the folder where you put the original download extracted, and double click Foldit. If it doesn't work completely for any reason (like it didn't for me), restart ubuntu, and try this step again. For me, Foldit wouldn't load up some of the puzzles, but on my 3rd try, it worked perfectly and has ever since.  Don't you love it when you wind up answering your own question? Thank you to everyone that showed and interest and/or helped me.


Interpretation of beta Coefficients if Transformed in a Multivariate Cox Regression

I had to transform some of my primary variables of interest (log transform). Others were left untransformed as they were normally distributed in the sample (Pfat, etc.). To allow for comparisons of hazards, I was advised to standardize all the variables. I know the hazard ratio is simply exp(Beta Coeff.) but how do I interpret this appropriately if the variables have been both log-transformed and standardized?  I'm not willing to share my data but can provide answers if needed. All the predictors and covariates are explaining disease free survival.


We had the following theorem in class:     Let $(a_n)$ and $(b_n)$ be sequences and $b_n>0$ and $\lim_{n\rightarrow\infty}\frac{a_n}{b_n}=L$ with $L\in\mathbb R\backslash\{0\}$. Then $\sum a_n$ converges if and only if $\sum b_n$ converges.   So by recapitulating the lecture I've tried to prove it but I didn't get it. It's obvious that you have to use the comparison test, but how? Can anybody help? Thanks a lot!


Finding $\mathrm{Cov}(X,Y)$ and $E(X\mid Y=y)$ given the joint density of $(X,Y)$

The continuous random variables $X$ and $Y$ have joint density function $f_{xy} = 1$ for $0 < x < 1$ and $2x < y < 2$, and zero otherwise.  I am stuck on the above question, with parts a and b below:  a) Find the $cov(x,y)$.  Work:   $cov(x,y) = E(XY) - E(X)E(Y)$   $= \int_0^1\int_{2x}^2 xydydx - \int_0^1\int_{2x}^2 xdydx\int_0^1\int_{2x}^2 ydydx$ = $\frac{-1}{18}$  However I am given the answer $\frac{1}{18}$.  Did I make a mistake in my computation or is the answer incorrect?  b) Find $E(X|Y = y)$.  Work:   $E(X|Y=y) = \int_{-\infty}^{\infty}xf_{x|y}(x|y)dx$  This is where I am puzzled.  I know that $f_{x|y}(x|y) = \frac{f_{xy}(xy)}{f_yy}$, and $f_yy= \int_{-\infty}^{\infty}f_{x,y}(x,y)dx$.  That means $f_yy = 1$ and therefore $f_{x|y}(x|y) = 1$.  However I am given the answer $E(X|Y=y) = \frac{y}4$. Again, did I make a computational mistake or am I not getting something?  Thanks.


Localization commutes with Hom for finitely-generated modules

Let $M,N$ be $R$-modules with $M$ finitely generated and let $S\subseteq R$ be multiplicatively closed. Then there exists a module isomorphism   $$S^{-1}\text{Hom}_R(M,N) \xrightarrow{\sim} \text{Hom}_{S^{-1}R}(S^{-1}M,S^{-1}N).$$   As homework, I found a 'proof' of this statement. However,  claims to prove me wrong. I am having trouble in finding the error in my proof. Could someone help me out?  I did prove there exists a map $\phi:S^{-1}\text{Hom}_R(M,N) \to\text{Hom}_{S^{-1}R}(S^{-1}M,S^{-1}N)$ defined by $f/s\mapsto(m/t\mapsto f(m)/st)$, and I am fairly confident that it contains no mistake.     Proof: Let $m_1,\dotsc,m_n$ be the generators for M. Let $f\in \text{Hom}_{S^{-1}R}(S^{-1}M,S^{-1}N)$ be given.   Choose $n_i\in N$ and $s_i\in S$ such that $f(m_i/1)=n_i/s_i$.   Define $\pi_f = s_1\dotsm s_n$. Then   $$\pi f(m/1) = \pi f\left( \sum_{i=1}^n r_i m_i \right) = \pi \sum_{i=1}^n r_i f(m_i) = \pi \sum_{i=1}^n r_i n_i/s_i = \left(\sum_{i=1}\left(\prod_{j=1, j\neq i}^n s_i\right)r_in_i\right)/1,$$   so $\pi f(m/1) \in N$ using the canonical embedding in $S^{-1}N$, so $m\mapsto \pi f(m/1)$ is a map $M\to N$ and is clearly an homomorphism.   If we define the map $\psi:\text{Hom}_{S^{-1}R}(S^{-1}M,S^{-1}N)\to S^{-1}\text{Hom}_{R}(M,N)$ as $$ f \mapsto (m\mapsto \pi_f f(m)) / \pi_f,$$ then we clearly have a homomorphism if it is well-defined.      Proof: It remains to check that the element we map to does not depend on choice of $\pi_f$.   But if we have both $\pi_f$ and $\pi_f'$ for which $\pi_f f$ and $\pi_f' f$ are homomorphisms to $N$, then   $$(\pi_f f(m))/\pi_f = (\pi_f\pi_f' f(m))/(\pi_f\pi_f') = (\pi_f' f(m))/(\pi_f')$$   for all $m\in M$, so $\psi$ is in fact well defined.   It is now easy to check that $\psi$ and $\phi$ are inverses, which makes them homomorphisms.


Why can't I get a decent white background with product photography?

I'm a new photographer, and I'm trying to take photos of a product with a pure white background (#ffffff). I'm using a light box (something like ), so my lighting should be solid.   But I can't seem to find the right settings for a good photo. I've taken lots of photos (100+), with a lot of different settings and basically my photos are either overexposed, or the background is not white. Here are some examples:  1.    The product is great on this photo. Only the background is WAY to grey.   f/8 -- 1/2000 sec -- ISO-6400    2.    The background is pure white. But the product is overexposed.  f/8 -- 1/320 -- ISO-6400     3.   Too grey and the product is overexposed  f/22 -- 1/200 -- ISO/128000    Based on feedback, I have adjusted the exposure parameters and gotten somewhat , but that that alone doesn't solve the fundamental problem. What else do I need to do to get a pure white background without overexposing the subject?


Where is the YAML file containing the user permissions stored?

Which directory contains the YAML file where user permissions per role are stored? I looked in the core.entity.yml and do not know where else to look.


Nuclear decay - what happens to the electron shells?

Radon 219 decays to polonium 215 and ejects an alpha particle. The number of protons is reduced by two from 86 to 84 but what happens to the 86 electrons? Is the resulting Polonium atom negatively charged by two?


I downloaded it, but I can't activate it. It looks like this...


Ethernet connection Issues on Ubuntu 16.04

Let me preface this by saying that I've taken a look at the other ethernet & 16.04 issues on here and believe mine to be different.  I'm having issues connecting to the internet on a new installation of Ubuntu 16.04. I have an ethernet connection running to my desktop computer and am able to establish an internet connection via a separate operating system on the same machine. The motherboard doesn't have a WiFi card.  Here's the output from ifconfig:  shloosh@Desktop:~$ ifconfig enp2s0       Link encap:Ethernet  HWaddr e0:3f:49:7f:db:f5     UP BROADCAST MULTICAST  MTU:1500  Metric:1   RX packets:0 errors:0 dropped:0 overruns:0 frame:0   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0   collisions:0 txqueuelen:1000    RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)  lo           Link encap:Local Loopback     inet addr:127.0.0.1  Mask:255.0.0.0   inet6 addr: ::1/128 Scope:Host   UP LOOPBACK RUNNING  MTU:65536  Metric:1   RX packets:804 errors:0 dropped:0 overruns:0 frame:0   TX packets:804 errors:0 dropped:0 overruns:0 carrier:0   collisions:0 txqueuelen:1    RX bytes:61616 (61.6 KB)  TX bytes:61616 (61.6 KB)   enp2s0 is the interface name that Network Manager assigned to the ethernet connection. I find it strange that it doesn't have an inet addr assigned.  And lshw:  shloosh@Desktop:~$ lshw -C network    *-network                   description: Ethernet interface    product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:02:00.0    logical name: enp2s0    version: 09    serial: e0:3f:49:7f:db:f5    size: 10Mbit/s    capacity: 1Gbit/s    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168f-1_0.0.5 06/18/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s    resources: irq:26 ioport:e800(size=256) memory:fbfff000-fbffffff memory:fbff8000-fbffbfff   And my /etc/network/interfaces file:  shloosh@Desktop:~$ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. # interfaces(5) file used by ifup(8) and ifdown(8)  # The loopback network interface auto lo iface lo inet loopback   And lspci:  shloosh@Desktop:/etc$ lspci -nnk | grep -e 0200 -e 0280 -A2 02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 09) Subsystem: ASUSTeK Computer Inc. P8 series motherboard [1043:8505] Kernel driver in use: r8169   And finally lsmod:  shloosh@Desktop:~$ lsmod | grep r816* r8169                  81920  0 mii                    16384  1 r8169   My routing table is empty. I'm new to Network Manager and fairly new to networking and am at a loss as to how to proceed. Any advice is appreciated.


Does one tip in the US/Canada for bad service?

In Aus/NZ you don't tip, it's not generally part of the culture.  In the US/Canada you seem to tip for almost everything, but it's meant to be for a good job.  However I've also found some workers have the tips factored into their pay - ie if you don't tip them, they're getting less than minimum wage.  Therefore, should you still tip in these countries when the service is appalling?


Is there an Intuitive explanation of topological continuity?

I am used to the definition of continuity used in real analysis, based on the idea that if $f$ is continuous at $a$, you can get arbitrarily close to $f(a)$ by going arbitrarily close to $a$.  However, the topological concept of continuity of $f: M \to N$ is the condition that for all $S \subset N$, the preimage of $S$ in $M$ must be open subsets.   What does this have to do with the intuitive concept of "continuity"? I cannot even picture how this relates to continuity in Euclidian space, let alone how it would relate to continuity in more abstract topological spaces.


How can a truly elementary particle decay into other particles?

Consider (for example) the next particle decays:   The decay of a Higgs and the decay of a muon [in the diagram of which we also see the decay of (virtual) $W^-$ into an electron and its associated neutrino)]. If a particle (or an excitation of the associated quantum field) is truly elementary doesn't that imply that it can't change into other particles? The case of a muon (which is considered elementary, i.e. not built up out of other particles) changing into an electron, and two neutrinos (which are all three also considered to be elementary) can very easily be described in the  of Haim Harari (of which I'm a big fan), in which only two (!) truly elementary (apart from the photon, gluon and the $Z^0$ and $W^{+/-}$, of which the last three are considered to be composed particles which transmit not a truly elementary force, but a residual force of a deeper force, as once the $\eta$ was thought to be the transmitter of the strong force, which turned out to be the residual force of the strong force as it is known today) particles are said to exist: the T- and V-rishon (and their anti-particles). $\bar T\bar T\bar T$ (the muon, in this model considered as an excited state of the electron) gives a $VVV$ (neutrino), $\bar V\bar V\bar V$ (the anti-neutrino, associated with the electron), and a $\bar T\bar T\bar T$ (the electron). So before and after the change, the same (net) combination of rishons exists. The virtual $W^-$ is a short existent $\bar V\bar V\bar V\bar T\bar T\bar T$ combination, which in the rishon model obviously has an electric charge -1 because the $T$-rishon has electric charge +1, and the $V$-rishon has no electric charge. In this change, the (according to the rishon model) truly elementary particles keep their identity, so a $T$-rishon can't change into a $V$-rishon and vice-versa, and it only seems that what we consider elementary particles can change into other elementary particles. The decays, in the rishon model, are nothing more than rearrangements of T-rishons and V-rishons (and their antiparticles), while at the same time virtual $T$ and $V$ rishons can become real in the decay and contribute to the process. Clearly, these $T$ and $V$ rishons can't change their identity if they are truly elementary (if so that would indicate that these two elementary particles would be composed of even more elementary particles, which is nonsense if you need only two elementary particles to explain the abundance of quarks and leptons; the model doesn't address the force-carrying particles, which are all massless in this model). In the case of the changing Higgs (which in the rishon model isn't needed to give mass to particles, but it nevertheless exists because it has been detected so it can be considered as a boson particle), the change results in two pairs of $TTT$ and $\bar T\bar T\bar T$ combinations of T-rishons (and their anti-particles), the electron and it's anti-particle and a muon together with its anti-particle. The two $Z^0$ particles that appear shortly are both $TTT\bar T\bar T\bar T$ combinations (with obvious electric charges of zero). So the Higgs can be a combination of six $T$-rishons and six $\bar T$-rishons. Again the truly elementary particles (the $T$ and the $V$) don't change their identity. So does the fact that what we consider as elementary particles (excitations of the associated field) can change into other particles mean they are not truly elementary?


How to get the x and y position of a deeply embedded element with respect to the root element itself?

What is the best way, if indeed there is a way, to get the X and Y position of any element embedded deep inside another element (called root for convenience) with respect to the root element itself. The embedded element may have layers of other containers with different position CSS (e.g. relative, absolute, etc.). I prefer JQuery but a pure JS solution would be even better.  For example:

 <other elements....>
 <other elements...>

   I want to know the absolute X and Y positions of input field with id "id1" with respect to div with id "root".   EDIT: "root" is always set to position:relative


mysql wont start after increasing innodb_buffer_pool_size and innodb_log_file_size

I am following this solution here  and tried to increase my innodb_buffer_pool_size to 4G and later 1G (also 1024M) in addition to the log file size, but mysql wont start with those values. If I put it back to 512M mysql starts fine.  How can I solve this? My server is a 16GB one, and according to Webmin sysinfo:  Real memory 15.62 GB total, 3.13 GB used   Meanwhile I found the error log as well:     120529 10:29:32 mysqld_safe mysqld from pid file   /var/run/mysqld/mysqld.pid ended      120529 10:29:33 mysqld_safe Starting mysqld daemon with databases from   /var/lib/mysql      120529 10:29:33 [Note] Plugin 'FEDERATED' is disabled.      120529 10:29:33 InnoDB: The InnoDB memory heap is disabled      120529 10:29:33 InnoDB: Mutexes and rw_locks use GCC atomic builtins      120529 10:29:33 InnoDB: Compressed tables use zlib 1.2.3      120529 10:29:33 InnoDB: Using Linux native AIO      120529 10:29:33 InnoDB: Initializing buffer pool, size = 1.0G      120529 10:29:33 InnoDB: Completed initialization of buffer pool      InnoDB: Error: log file ./ib_logfile0 is of different size 0 134217728   bytes      InnoDB: than specified in the .cnf file 0 268435456 bytes!


VHDL interview question - detecting if a number can be divided by 5 without remainder

I saw a nice interview question for VHDL - build a system that receives a number and detects if it can be divided by 5 without remainder.  I tried to solve that with a state machine (I suppose they don't want you to use mod or rem) and while I did have initial success (numbers like 5, 10, 15, and numbers such as 20, 40, 80 worked), other numbers like 130, 75 and so on failed for me.  I would show my state machine but it's a complete mess (it's not a code, it's a drawing), and like I said, not even working.  Basically what I tried to do is write down in binary numbers that are divisible by 5, and build a state machine that will work for them.  I would be glad if you could show me how to solve this problem, and how to think when facing something like this.  Thank you!


Is there a format with which to [tag:foo] from one StackExchange site to another?  On my profile, I chose to push changes to all the SE profiles I have, but the tags come over in a rather useless fashion. I can make a  tag here or on any other site, but it links to an empty page.  Is there a way to [tag:stackoverflow:foo] or somesuch, or should I just change all the tags to external links?


I know the formula for finding the number of permutations of the $3$x$3$ cube, which is $$\frac{8! \times 3^8 \times 12! \times 2^{12}}{12}$$  But why must the division by $12$ be a part of the formula? From looking it up I know it has to do with some of the positions being impossible without disassembling the cube, but why specifically division by $12$ and not another number?


Why aren't hats shown in the iOS App?        There does seem to be hats in the App as seen in the About page:        As seen, I'm using the iOS App version 1.6.2.1, the TestFlight version.


How to include python script inside a bash script

I need to include below python script inside a bash script.   If the bash script end success, I need to execute the below script:  #!/usr/bin/python     from smtplib import SMTP import datetime debuglevel = 0  smtp = SMTP() smtp.set_debuglevel(debuglevel) smtp.connect('192.168.75.1', 25) smtp.login('my_mail', 'mail_passwd')  from_addr = "My Name <my_mail@192.168.75.1>" to_addr = "<my_mail@192.168.75.1" subj = "Process completed" date = datetime.datetime.now().strftime( "%d/%m/%Y %H:%M" ) #print (date) message_text = "Hai..\n\nThe process completed."  msg = "From: %s\nTo: %s\nSubject: %s\nDate: %s\n\n%s" % ( from_addr, to_addr, subj, date, message_text )  smtp.sendmail(from_addr, to_addr, msg) smtp.quit()


Misaligned bold text in close dialog when number of close votes shown

In the list of off-topic close reasons, when one or more close votes are being shown next to one of the reasons, bold text on the same line is misaligned a few pixels below the non-bold text.    The text is correctly aligned when a number of close votes is not present.  And when the number of close votes is present on a line, its text is aligned below the text on the same line.    Note that in each case, the bold text, and the number of close votes (which is also bold) are misaligned with respect to the rest of the text in the line that the number of close votes appears on.  This appears in Chrome 28.0.1500.70.  (See also a related question where .)


Difference between caching and loading data from some database tables on server/application startup

I am really confused about this. I want to understand what is the difference between caching of data and loading data from database tables on server or application startup? Please guide me.


Can anyone give me a detailed description on all the maps in blender?

Can anyone give me a detailed description on how to use different types of maps(eg: albedo,opacity, normal, displacement,et cetera et cetera ); which all maps are to be set to non-color data or sRGB; if I should use a certain shader node to connect some maps(like how we use a normal map node to connect a normal map to the principled BSDF; and yes, I do know we have to use a normal map node for that). If you guys know a video or a website which explains it all(emphasis on all), then I'm all ears. Thank you UwU


How do you derive the formula for unsigned curvature of a curve $\gamma (t) = (x(t), y(t)$ which is not necessarily parameterised by arc-length.   The formula given is $$|\kappa (t)| = \left|\frac{x'' y' - y'' x'}{((x')^2 + (y')^2)^{3/2}}\right|$$  All the definitions of curvature in my notes give it in terms for an arc-length parameterisation $T'(s) = \kappa(s) N(s)$. This is apparently meant to be 'easily derivable', am I missing something?


Why am I given the option to also encrypt my home folder after I've selected system encryption?

I am installing Ubuntu 13 with full encryption but why am I given the option to also encrypt my home folder. Surely the home folder is covered under the system encryption? I'm confused.


Is it possible to be notified about new answers to and comments on bookmarked questions?

I get notified by email about new answers to and comments on questions posted by me, as well as about comments on my answers.  Is it possible for me to be notified by email about new answers to and comments on questions bookmarked by me? Could that be made an option for me?  I am aware of  (of 2010):  When you mark a question as a favourite (by clicking the star below the votes-buttons) you will see new answers and comments when you click on the envelope and go to the [favorites] tab. The automatic notification (highlighting the envelope) is a bit buggy though, so you may have to manually select "today" or "this week" to really see all that happened.  However, now, when I click on the envelope, I don't even see a [favorites] tab, nor do I see selections "today" or "this week". Edit: I appreciate the answer by user1271772 and a (now deleted) comment by another user informing me about the rather new Follow feature, which is certainly helpful. However, I'd prefer to get such notifications by email, just as I do concerning new answers to and comments on questions posted by me, as well as comments on my answers. I very rarely remember about, or use, the SE Inbox button.


Editing a post with a pending edit after already reviewing 20 edits

Note: Somewhat related to .  As a Suggested Edits queue reviewer, it's frustrating when reviewing a question that requires an edit, and going to edit only to find that you're not able due to a pending edit.  Of course, if I hadn't used up all 20 edits from the queue in this day, I would be able to either Accept or Improve the edit with my own changes. However when all of the edits are used up, this leaves no option but to move on which is fairly limiting. It's made worse when the pending edit doesn't actually address what you wanted to change.    Is there any way to bypass this limitation? (That is, of course, without refreshing endlessly waiting for the edit to be approved or rejected to make your own)


Difference between "assist in" and "assist with"

He assisted in the editing of the movie. He assisted with the editing of the movie. He assisted at the editing of the movie.  Is "assist in" the same as "assist with"? Can I always substitute the one where the other is used, or is there a difference in meaning? (I think "assist at" refers to a place where a person is assisting, as in "He assisted at the place where the editing was taking place".) When I use Google to look for the definition, it gives me the following as the main definition:  help (someone), typically by doing a share of the work  And gives two example sentences:  "a senior academic would assist him in his work"  and, after a bullet point with the following extra explanation:   help by providing money or information.  "they were assisting police with their inquiries"  So is the distinction between in and with really tied to the definitions above, or are these example sentences just a coincidence?


I am using the following command to make my UniFi Controller instance available at  instead of .  sudo iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443   I want this setting to survive a restart. I've tried to add this line (prepended with @reboot) to my crontab file but it doesn't seem to take. Can anyone tell me what I'm doing wrong? Here's my crontab entry:  @reboot /sbin/iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443   Edit: I am running Ubuntu 18.04.3 (in response to comment below)  Solved: I needed a blank line at the bottom of my crontab file.


Convergence of ${a_n}$ = $\sum _1^n \frac{1}{n^{1+\alpha}}$

Does the series ${a_n}$ = $\sum _1^n \frac{1}{n^{1+\alpha}}$ converge for all $\alpha$ > 0?


How to deal with huge PageObject using POM in Selenium?

I've got a question about dealing  with huge PageObject. In the website that I'm currently testing there is a form with circa 50 inputs/dropdowns/selects.   In the current state my class got about 900 lines. It will be hard to debug, and in my opinion it's not so readable.   Is it consistent with the assumption of Page object model to create some subclasses and separate some WebElements and methods that are used by those elements? I'm using PageFactory so for declare all of the elements(I wrote circa 400 lines). It's so many.


How do I recover the pictures and videos I lost when I erased the disk and installed Ubuntu?

I had four NTFS partitions on my drive. One on which Windows 7 was installed (C Drive) and others contained my data (D Drive) (E Drive) (F drive).  During Ubuntu installation I chose to install Ubuntu and erase my existing OS. When Ubuntu was installed, I was shocked to see no partitions. All my data was gone. I must have done something wrong in selecting my option during installation.  I tried testdisk in my other PC with the hard drive. I messed up with the thing I deleted the Ubuntu and made a single partition.  Is there any way I can recover my D Drive? I don't care about the other partitions - I just need my pictures and videos which I captured. I have almost all computer equipment so just name it  Thanks in advance.


Parsing UTF-8 Characters directly to UTF-8 Database

Just a simple question.. I am using UTF-8 as standard in both my MySQL database and HTML file.. One thing that I don't understand is why a letter is shown differently in SQL than when I typed it. I am sure it should be placed the exact same way as I write it, when using UTF-8.  Is there a class or something that automatically keeps all posted data in UTF-8 and then posts it as it is?


How to flatten the collider for a tilemap?

I am relatively new to game development, and am working on a simple 2D platformer. I have created a tilemap and painted some tiles for the character to walk on.. but he is getting stuck. Yes, I know this is a common question and I did find some answers (including this one: ), but none seem relevant for me. The thing is my tiles are not flat.. they have pointy edges due to grass.. see the image below:  As you can see, the edge is not flat. I have overcome the problem of getting stuck by changing the "Edge Radius" to what you see in the above screenshot and that works, but the character now looks like he is floating slightly above the ground. Is there any way I can just tell Unity to ignore the jagged grass and make the collider flat and move the edge of it down a bit? That way it would fix the issue and also have the added bonus of looking like some of the grass is behind him and some in front..


how to call static header and footer in more than one html

I have 5 html pages and all those pages have same header and footer    I need to reuse the header and footer in all the HTML pages   how effectively i can reuse them so as to avoid repititive codes?


I just switched to Ubuntu as my OS and i am asking is their any alternative for Notepad++ for Ubuntu?


Need to calculate distance (Node to Node) along the lines

I have a Shapefile (polygon), I need to calculate distance (Node to Node) along the lines in map unit(meter or kilometer).  I want to do it in ArcGIS.


I get the below error when I try to install also i am not getting the below mentioned dependencies  $ rpm -i sgdclient-5.40.941-1.el7.x86_64.rpm   rpm: RPM should not be used directly install RPM packages, use Alien instead! rpm: However assuming you know what you are doing... error: Failed dependencies:     /bin/sh is needed by sgdclient-5.40.941-1.el7.x86_64     desktop-file-utils is needed by sgdclient-5.40.941-1.el7.x86_64     libX11.so.6()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libXcursor.so.1()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libXext.so.6()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libXfixes.so.3()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libXinerama.so.1()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libXm.so.4()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libXpm.so.4()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libXt.so.6()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libc.so.6()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libc.so.6(GLIBC_2.14)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libc.so.6(GLIBC_2.2.5)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libc.so.6(GLIBC_2.3)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libc.so.6(GLIBC_2.7)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libcurl.so.4()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libdl.so.2()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libdl.so.2(GLIBC_2.2.5)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libgcc_s.so.1()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libgcc_s.so.1(GCC_3.0)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libm.so.6()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libpthread.so.0()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libpthread.so.0(GLIBC_2.3.2)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     librt.so.1()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libstdc++.so.6()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libstdc++.so.6(CXXABI_1.3)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libstdc++.so.6(CXXABI_1.3.1)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libstdc++.so.6(GLIBCXX_3.4)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libstdc++.so.6(GLIBCXX_3.4.14)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libstdc++.so.6(GLIBCXX_3.4.15)(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libxkbfile.so.1()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     libz.so.1()(64bit) is needed by sgdclient-5.40.941-1.el7.x86_64     rtld(GNU_HASH) is needed by sgdclient-5.40.941-1.el7.x86_64


Proving statement - $(A \setminus B) \cup (A \setminus C) = B\Leftrightarrow A=B , C\cap B=\varnothing$

I`m trying to prove this claim and I need some advice how to continue, $$(A \setminus B) \cup (A \setminus C) = B \Leftrightarrow A=B , C\cap B=\varnothing$$ what I did is: $$(A \setminus B) \cup (A \setminus C) = (A \cap B') \cup (A \cap C') = A \cup (B' \cap C')$$ thanks!


A get() like method for checking for Python attributes

If I had a dictionary dict and I wanted to check for dict['key'] I could either do so in a try block (bleh!) or use the get() method, with False as a default value.  I'd like to do the same thing for object.attribute. That is, I already have object to return False if it hasn't been set, but then that gives me errors like     AttributeError: 'bool' object has no attribute 'attribute'


Can't set value of static object field (error LNK2001: unresolved external symbol)

I have seemingly simple and straightforward segment of code that is a simplified version of a problem I have been having in a game I am writing.  I am trying to set a static field in one class to another value from my main method.  However this code will not and I don't understand why.    I get the error      1>Source.obj : error LNK2001: unresolved external symbol "public:   static class A * B::a" (?a@B@@2PAVA@@A)   class A { public:     A()     {      } };  class B { public:     static A* a; };  int main() {     B::a = new A; }   What is the rule saying that I have to define my static class member outside the class to get it linked?


Why is the top bar not changed on Stack Exchange, Area 51 and Ask Ubuntu?


$$\sum_{k=1}^n k{n\choose k}=n\cdot 2^{n-1}$$  I have to prove the identity using a combinatorial proof: I think this should be my combinatorial proof.  We want to form a committee of $k$ people from a total of $n$ people.


Edit  Wow I got royally lynched for this. Please see the accepted answer which illustrates the reasons for Programmers to exist pretty well.  I'd like to say for the record I stand corrected - Programmers clearly has its own role (albeit with a fair amount of overlap with SO) and its own community and identity.    The programmers.stackexchange.com FAQ defines its purpose:     Programmers — Stack Exchange is a site for professional programmers who are interested in getting expert answers on conceptual questions about software development. If you have a question about...         algorithm and data structure concepts   design patterns   developer testing   development methodologies   freelancing and business concerns   quality assurance   software architecture   software engineering   software licensing         [you're in the right place]   The problem is that questions (and more importantly, answers) on all concept-based programming topics that I could think of seem to be much more prolific on StackOverflow than on Programmers:   "algorithm" - on  and  "patterns" - on  and  "architecture" - on  and  "MVC" - on  and    I suspect this is because the only people who care about code architecture problems are the same people who solve the day-to-day technical problems that should be posted on SO - so they naturally go there. There is no type of person who would exclusively use Programmers.  I would say this didn't necessarily matter - it's a good way of grouping questions by topic - except that it is much much harder to get an answer to a programming question on Programmers than it is on StackOverflow. I can post the same question (about code architecture)  and  and the StackOverflow one gets answered much quicker.  Given Stack Exchange's  I therefore suggest that Programmers shouldn't exist. Either that or we need to find another solution so that people actually answer programming questions on Programmers.


Cardinality of $\mathbb{R}^n$ and $\mathbb{R}$ is equal

How can we prove that cardinality of set of all real numbers $\mathbb{R}$ and $\mathbb{R}^n$ is equal for every $n$ in the set of all natural numbers?


We recently moved our website to a new server. But after changing the NS (name server) records, I can't access my website. The hosting provider said we need to flush the DNS settings in order to see the new website.  I searched relating to this but I couldn't find a way to flush DNS settings in Ubuntu 13.10.


Best way to style first post differently?

I am building a custom (child) theme and I want to style the first post of my loop in a different way than the others (bigger image, different position of some stuff).   Which is the best way of doing it? My "problem" is that my theme has support for different post types and the style would vary depending on the type of content, so I want to avoid repeating code as much as possible (i.e. using a function).   As I am a bit more used to OOP, my ideal scenario would be passing a variable to the view and check it in the loop of each content-type (that way I can re-use most of the code from the TwentyEleven templates). From what I know, that is not possible (please correct me if I am wrong).   For now, what I do is this:  function electric_index_loop($readMore = 0) {  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array(     //Excluimos los "miniposts" (citas, estados, enlaces...) del listado     'tax_query' => array(         array(             'taxonomy' => 'post_format',             'field' => 'slug',             'terms' => array('post-format-aside', 'post-format-link',                 'post-format-status', 'post-format-quote'),             'operator' => 'NOT IN'         )     ),     'posts_per_page' => 5,     'paged' => $paged );  // The Query query_posts($args);  // The Loop if (have_posts()) {     $post_count = 0;     global $more;     $more = $readMore; // 0 fuerza que se muestre sólo el "excerpt", 1 fuerza que se muestre todo el contenido     twentyeleven_content_nav('nav-above');     while (have_posts()) {         the_post();         if ($post_count == 0) {             get_template_part('highlight', get_post_format());         } else {             get_template_part('content', get_post_format());         }         $post_count++;     } } else {     ?>

<?php _e('Nothing Found', 'twentyeleven'); ?>

<?php _e('Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven'); ?>
             <?php get_search_form(); ?>

     <?php } wp_reset_query();}   As you see, I check the counter in the loop that I create in the function and ,if the current post is the first, I load a different template ("highlight").  I'd have to create different templates for the different types of content (which, in some cases sucks, because I can get all I need in some cases with just a CSS class).   Well, is there a better way of doing these? Perhaps a hook or something?   Thanks in advance!


Whys is there extra dot at the start of some command I'm supposed to execute

I've downloaded an installation package of weblogic server and in the README, there's this command to execute:  Linux/Mac $ . ./configure.sh   It's not the first time I see this. Why is there an extra dot at the start of the command? When I do only ./configure.sh, the result is the same


I am feeding it raw cod AND raw salmon and it will not tame! I have tried 4 different ocelots and none of them will tame. When I hold the fish the ocelot says "feed" not "tame" and they are still ocelots, not cats...


It seems like Iv'e been infected with some kind of chrome hijacker which changes my homepages to myallsearch.com.   I removed the file from the system with SpyHunter, but after logging in again into chrome, the system got the infection again. I really have no clue what to do in such cases and I do not have any knowledge regarding digital security, I would appreciate any suggestion on this problem  Anyone seen this before? Is it even safe to use? Thanks in advance!


I need a step-by-step (very simple like myself) instructions on how to install the pdfpages package. It's taken me time to figure out I didn't have the package. Now I've found and downloaded it... but I don't know how to install it...  I've attempted to open up the pdfpages.ins within the Texstudio and click on the green arrow to execute and I get this error message:  Could not start Build & View: PdfLatex: C:\... location" -synctex=1 - interaction=nonstopmode"pdfpages".txt.   What am I doing wrong?


What is the maximum weight loading from a drywall screw stud?

what sort of weight can I hang off a drywall screw stud?


This question is following almost directly this one :   I managed to insert subfigures using minipage but I'm now wondering how I can refer to these subfigures.  My MWE:  \documentclass[prodmode,acmtrets]{acmsmall} % Aptara syntax \usepackage{graphicx}  \begin{document}  \begin{figure}[h]     \center     \begin{minipage}[h]{0.35\textwidth}         \includegraphics[width=\textwidth]{../fig/sc1.pdf}         \subcaption{Original datapath}         \label{sc1}     \end{minipage}     \begin{minipage}[h]{0.35\textwidth}         \includegraphics[width=\textwidth]{../fig/sc2.pdf}         \subcaption{Datapath and scan-chain}         \label{sc2}     \end{minipage}     \caption{Insertion of scan-chain in a simple circuit}     \label{sc_ins} \end{figure}  Reference : Figure~\ref{sc_ins} works whereas Figure~\ref{sc1} doesn't work.  \end{document}   Result :   How can I add some numbering to this acmsmall subcaption macro ? Or do you have a better way for referencing subfigures ?  Thanks in advance !


Saying for not doing something because it is futile

Is there such a saying? Futile may be either because it will fail or because it is unnecessary / already taken care of. I considered: too many chefs spoil the broth  and  It's like carrying coals to newcastle  But neither are very good... A formal sounding colloquilism is also ok.


How can I recover messages that have been deleted from trash?

I lost some mails from my Gmail and by mistake. They are permanently deleted from my trash.  What can I do to get them back?


I need to connect my PC to another LAN connected PC and copy some files. How do I do it?  Thanks!


I have some code:   num1 = 1.001 num2 = 0.001 sum  = num1 + num2 puts sum   I expected 1.002000 but I am getting 1.0019999999999998. Why is this the case?


Connecting 2017 MBP with DisplayPort Cinema Display

I have a MacBook Pro 2017 13" with High Sierra. Is it possible to somehow successfully connect a 27" Cinema Display with Mini DisplayPort to my MBP with an adapter? I have read from some people that it worked and from some others that it didn't work. Can you guys tell if it is possible? Because I have the opportunity to get a 27" Cinema Display for quite a cheap price (but only tomorrow because the person is there for a visit tomorrow). Would be kinda sad if I would purchase a Monitor for 460 Euros just to find out, that these two devices are not compatible and probably never will be in the near future because there is and will not be a working adapter for this specific case..


How To Make A Board Game Piece With Vector Displacement

My final outcome will be a flat plane with a displaced board game piece that I can move around. I started by making a cylinder come out of the plane.  Then I wanted to use RGB curves to shape a board game piece. I tried for a while to turn this all into a vector I could use, but I just don't know how.  I'm using this less than and clamped add to make the plane under the cylinder full white so it doesn't change with the base of the game piece P.S. I've tried putting my final b&w texture into the x and y sockets on a Combine XYZ node, and I've tried doing that but multiplying the combine to the vector I'm working from, every solution I've conceived always makes a cone shape, despite the RGB curve shape. I had some weird problems like this on another project where the outcome is pretty much not related at all to the nodes


I was just wondering what the "~" symbol does in a batch file, I know that it's associated with variables.  Can I have some examples of what it does?  Thanks.


Screaming Frog reports missing confirmation link when the hreflang x-default element is the same in all pages

I am confused about hreflang="x-default".  I have a site in 2 languages. In each page I have a link to the page itself and a link to the same page in the other language. If I understand correctly, I have to put an x-default also. In my case it goes to the page "language". There the user can see two buttons to choose the language of the site.  The x-default link is the same on all pages and it is present in all of them.   <link rel="alternate" hreflang="en" href="http://example.com/about" />  <link rel="alternate" hreflang="fr" href="http://example.com/fr/about" /> <link rel="alternate" hreflang="x-default" href="http://example.com/language" />   I use Screaming Frog to detect possible errors. It says "Missing confirmation links in all the pages" when I see the details of the error. It makes reference only to the x-default link. I do not understand.  How to use the hreflang="x-default"?


cell with UDF not updating when sheet is calculated

I have an Excel book that is a template.  In worksheet Data, cell A1 has the following formula:  =getTemplateVersion()   This function retrieves a custom document property with the version number of the template.  I am trying to update the template version and then update the contents of cell A1.  I am using the following function:  Sub setVersion(version As String)  'class for setting and retrieving template version property Dim vm As New VersionManager  Dim currentVersion As Variant Dim sht As Worksheet  'retrieves template version property value currentVersion = vm.getVersion  'sets template version property value vm.setVersion version  For Each sht In ThisWorkbook.Sheets     sht.calculate Next  End Sub   When this function concludes, the value of A1 has not changed.  But when I click on A1, then click on the formula, then press Enter, the value of A1 updates.  So the version property is being updated, but it's just not updating on the sheet when sht.calculate is called.  Is there a way to update the value of this UDF-calling formula programmatically?  I'd prefer not to have to click into this cell every time I run the version update function.


show amount of results for exposed filter

I have a couple of exposed filters to filter the content in my view. Most of them are taxonomy terms, now i would like to show how many nodes are tagged with that term behind the taxonomy term.  example:  London (5) Paris (3) Madrid (2) ...   Any idea how i can do this?


How to uninstall many programs in Windows?  Right now I browse to Control Panel\All Control Panel Items\Programs and Features then choose programs one at a time.  Is there any application where I can check a list of programs to uninstall then leave my computer to do them all?


I saw this snippet in some installation instructions:  $ apt-get install update   I know what apt-get install XXXX does and I know what apt-get update does, but I can't find any info on what this combined statement does. What does it do?


I am trying to use babel and biblatex package together but I am getting following error:    ! Package biblatex Error: Patching 'babel' package failed.    This is my code example:  \documentclass[12pt,a4paper,twoside,openright]{book} \usepackage{cmap} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[slovak]{babel} \usepackage{xpatch} \usepackage{csquotes} \usepackage{biblatex} \begin{document} \enquote{quote} \end{document}   I would need the result look like this:    Well, it seems like I could get rid of the error when using xpatch package, but it works only when I delete 'slovak' option for babel package. That way the result look like this:    Please, is there any workaround for this problem? I am really stuck in this.


When does $\,n\mid q^3 \Rightarrow n\mid q\,$?

I think this is true because of prime factorisations, i.e.  If $3$ a factor of the prime factorisation of $q^3$, then $3$ is a factor of the prime factorisation of $q$.  Therefore If $3$ divides $q^3$, then $3$ divides $q$.  Or for a general case, if $n$ divides $q^3$; then $n$ divides $q$. Is this correct?


Join two parts of object faces to match shadow

What do i have to do to join highlighted group of faces with others, so shadow will be the same when joined. All faces are already part of same object (Joined them via Ctrl + J). I tried merging them and bridging them but without correct effect. Also i selected both edges and filled missing spaces (F), but shadow didn't correct. Both groups are completly together.


yeah i tried to make a really simple calculator myself in java. but it cannot make print the math out i type. it has no error i tried to search the mistake but cant find a solution.  import java.util.Scanner;  public class Øvelse {      public static void main(String[] args) {         Scanner in = new Scanner(System.in);          String calculator;          System.out.print("skriv nummer: ");         int num1 = in.nextInt();          System.out.print("skriv nummer: ");         int num2 = in.nextInt();          Scanner op = new Scanner(System.in);          System.out.print("skriv + - * /: ");         calculator = op.nextLine();          if(calculator == "+") {             System.out.println("resultat1 " + num1 + num2);         }          if(calculator == "-") {             System.out.println("resultat3 ");         }          if(calculator == "/") {             System.out.println("resultat3 " + num1 / num2);         }          if(calculator == "*") {             System.out.println("resultat4 " + num1 * num2);         }     } }


how to suppress "chapter" in \chapter (while keeping numbering)

Using \chapter I get:     Chapter 1. The meaning of this novel   Chapter 2. The plot of this novel   Chapter 3. The moral of this novel   I want to get instead:     1. The meaning of this novel   2. The plot of this novel   3. The moral of this novel


Write out author name even though it's the same name (BibLaTeX)

I'm currently using BibLaTeX for my bibliography. And I have already written a lot of references in my .bib file. Some of them contain the same author, and since I'm ordering the bibliography in alphabetical order, some of the same authors are lined up right after each other - as intended.  But, let's say I have three books with author: "James, K." Then LaTeX writes it like this:  James, K., "Book name", etc. etc. --, "Book name 2", etc. etc. --, "Book name 3", etc. etc.   My question is: How do I make LaTeX write the full name, and not just the -- ?  Thanks in advance.


I have two websites, say a.com and b.com.  a.com is on a paid hosting service, and b.com is on 000Webhost.  000Webhost crashes sometimes, and my site b.com becomes unreachable.  So is there any way that I can:   create a copy of b.com, in a subfolder of a.com, like a.com/bdotcom If b.com is unreachable, redirect it to a.com/bdotcom If possible, keep the url as b.com


I setup the bridge with netplan on ubuntu 18.04, everythin look ok:  br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet myip  netmask 255.255.255.192  broadcast someip         inet6 myip  prefixlen 64  scopeid 0x20<link>         ether hidden txqueuelen 1000  (Ethernet)         RX packets 27382  bytes 5374960 (5.3 MB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 8381  bytes 2177553 (2.1 MB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet myip  netmask 255.255.255.192  broadcast someip         ether 28:92:4a:36:8f:0e  txqueuelen 1000  (Ethernet)         RX packets 31969  bytes 8078978 (8.0 MB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 8955  bytes 2267155 (2.2 MB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0         device interrupt 16  memory 0xfbee0000-fbf00000    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536         inet 127.0.0.1  netmask 255.0.0.0         inet6 ::1  prefixlen 128  scopeid 0x10<host>         loop  txqueuelen 1000  (Local Loopback)         RX packets 15298  bytes 4480739 (4.4 MB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 15298  bytes 4480739 (4.4 MB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0   As you can see the br0 bridge network is fine.  I can start the virtnetwork.service but I have no Bridges networks on it:  virtnetwork[11291]: Error: No ip address found.   My slave settings looks fine with the br0 name on it I also tried with enp2s0.  Any help is appreciate.


Why I'm Getting Null Object Reference Error?

i'm trying to retrieve data from firebase database i have finished the code with everything except for 1 minor error which every time i click to go to profile activity i'm getting this error:  "Attempt to invoke virtual method 'java.lang.String com.example.logindesign.Users.getFullName()' on a null object reference"  Here's is my profile activity code. i'm getting the error when i'm calling mName.setText("Name: "+ users.getFullName());   package com.example.logindesign;  import android.os.Bundle; import android.widget.ImageView; import android.widget.TextView;  import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity;  import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.auth.FirebaseUser; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.Query; import com.google.firebase.database.ValueEventListener; import com.squareup.picasso.Picasso;  import java.util.Objects;  public class Profile extends AppCompatActivity {      FirebaseAuth firebaseAuth;     FirebaseUser user;     FirebaseDatabase firebaseDatabase;     DatabaseReference databaseReference;     ImageView imageView;     TextView mUsername, phoneNo, mEmail,  mName;      @Override     protected void onCreate(@Nullable Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.profile_layout);           firebaseAuth = FirebaseAuth.getInstance();         user = firebaseAuth.getCurrentUser();         firebaseDatabase = FirebaseDatabase.getInstance();         databaseReference = firebaseDatabase.getReference(firebaseAuth.getUid());          imageView = findViewById(R.id.imageView2);         mUsername = findViewById(R.id.textView);         phoneNo = findViewById(R.id.textView1);         mEmail = findViewById(R.id.textView2);         mName = findViewById(R.id.textView3);           databaseReference.addValueEventListener(new ValueEventListener() {             @Override             public void onDataChange(@NonNull DataSnapshot dataSnapshot) {                 Users users = dataSnapshot.getValue(Users.class);                  mName.setText("Name: "+ users.getFullName());                 mUsername.setText("Username: "+users.getmUserName());                 mEmail.setText("Email: "+users.getEmail());                 phoneNo.setText("Phone No: "+users.getMobileNumber());               }              @Override             public void onCancelled(@NonNull DatabaseError databaseError) {              }         });         } }    and this is my Users Activity Code  package com.example.logindesign;  public class Users {      public String fullName;     public String mUserName;     public String email;     public String mobileNumber;      public Users(){      }      public Users(String fullName, String mUserName, String email, String mobileNumber) {         this.fullName = fullName;         this.mUserName = mUserName;         this.email = email;         this.mobileNumber = mobileNumber;     }      public String getFullName() {         return fullName;     }      public void setFullName(String fullName) {         this.fullName = fullName;     }      public String getmUserName() {         return mUserName;     }      public void setmUserName(String mUserName) {         this.mUserName = mUserName;     }      public String getEmail() {         return email;     }      public void setEmail(String email) {         this.email = email;     }      public String getMobileNumber() {         return mobileNumber;     }      public void setMobileNumber(String mobileNumber) {         this.mobileNumber = mobileNumber;     } }   any idea on what's causing this error?


Prove that limit of function is equal to zero

We have a function $f(x)$ defined on $ [0, +\infty)$.  It is known that $|f'(x)|<2$.  Prove that if $\int_0^{\infty} f(x)\,dx$ converges then $\lim_{x \to +\infty} f(x)=0$.  I don't really know how to use the fact about derivative, I would like to apply LHopital's rule in order to jump from integral to function and then to derivative, but it is not suitable here.


Java DecimalFormat HALF_UP format double value is not correct

The DeciamlFormat with RoundingMode.HALF_UP is not working correctly with double value.  double value = 2.315; double value2 = 2.325; DecimalFormat df = new DecimalFormat("#.00");  System.out.println("double value1 = " + value); System.out.println("double value2 = " + value2); df.setRoundingMode(RoundingMode.HALF_UP); System.out.println(df.getRoundingMode() + " value = " + df.format(value)); System.out.println(df.getRoundingMode() + " value2 = " + df.format(value2)); df.setRoundingMode(RoundingMode.HALF_EVEN); System.out.println(df.getRoundingMode() + " value = " + df.format(value)); System.out.println(df.getRoundingMode() + " value2 = " + df.format(value2));   The code above generate the result below, HALF_UP 2.315d result as same as HALF_EVEN.  double value1 = 2.315 double value2 = 2.325 HALF_UP value = 2.31  // Why the result is not 2.32? HALF_UP value2 = 2.33 HALF_EVEN value = 2.31 HALF_EVEN value2 = 2.33   But DeciamlFormat with RoundingMode.HALF_UP format "2.315 float value " will be the correct value 2.32.  I work with JDK 1.8.0_131 version.


I need to create a list containing all the sums of a list taken three at a time, ie, add first 3 elements then the next 3

I need to add the first three elements of a list then add the next three elements of a list and so forth. This is the code I have got so far:  def get_triple_sums_list(a_list):     new_list = []     for numbers in range(0,len(a_list)):         numbers = sum(a_list[:3])         new_list.append(numbers)         return new_list     if a_list == []:         return []   For the list:   [1, 5, 3, 4, 5, 2]   This in turn gives me the result:  [9]   I need to get  [9, 11]   If the remaining numbers is less than 3, it gives me the remainder of the sum ie,  [1, 6, 2, 4, 3]   Gives me  [9, 7]   And  [1, 6, 2, 4]   Give me  [9, 4]


System is Ubuntu 10 LTS 64bit (2.6.35.31), I'm running on xen 4.0, no services active, cron stopped, scheduler is cfq for the disk /usr is mounted from:  time find /usr -exec stat {} \; > /dev/null 2>&1 &  giving  real    0m35.760s user    0m0.270s sys 0m3.910s   and  time ionice -c3 find /usr -exec stat {} \; > /dev/null 2>&1 &  giving  real    0m36.110s user    0m0.310s sys 0m4.100s   which is exactly as expected, now I run both at the same time:  time find /usr -exec stat {} \; > /dev/null 2>&1 & time ionice -c3 find /usr -exec stat {} \; > /dev/null 2>&1 &  where to my believe the ioniced version should be much slower while the straight version should be as fast as if running alone. but:  straight:  real    1m10.430s user    0m0.320s sys 0m3.940s   ioniced:  real    1m10.230s user    0m0.250s sys 0m4.020s   which implies that ionice did not work at all. Any hints?


Using standard mysql functions is there a way to write a query that will return a list of days between two dates.  eg given 2009-01-01 and 2009-01-13 it would return a one column table with the values:   2009-01-01   2009-01-02   2009-01-03  2009-01-04   2009-01-05  2009-01-06  2009-01-07  2009-01-08   2009-01-09  2009-01-10  2009-01-11  2009-01-12  2009-01-13   Edit: It appears I have not been clear. I want to GENERATE this list. I have values stored in the database (by datetime) but want them to be aggregated on a left outer join to a list of dates as above (I am expecting null from the right side of some of this join for some days and will handle this).


I have the following system:  $ lsb_release -a Distributor ID: Ubuntu Description:    Ubuntu 17.10 Release:        17.10 Codename:       artful  $ gdm3 --version GDM 3.26.1   I would like to disable the user list in GDM and enter my user name and password to log-in. I have already searched a lot but did not find any valuable solution.  How can I achieve this?


Generating samples from singular Gaussian distribution

Let random vector $x = (x_1,...,x_n)$ follow multivariate normal distribution with mean $m$ and covariance matrix $S$. If $S$ is symmetric and positive definite (which is the usual case) then one can generate random samples from $x$ by first sampling indepently $r_1,...,r_n$ from standard normal and then using formula $m + Lr$, where $L$ is the Cholesky lower factor so that $S=LL^T$ and $r = (r_1,...,r_n)^T$.  What about if one wants samples from singular Gaussian i.e. $S$ is still symmetric but not more positive definite (only positive semi-definite). We can assume also that the variances (diagonal elements of $S$) are strictly positive. Then some elements of $x$ must have linear relationship and the distribution actually lies in lower dimensional space with dimension $<n$, right?  It is obvious that if e.g. $n=2, m = \begin{bmatrix} 0 \\ 0 \end{bmatrix}, S = \begin{bmatrix} 1 & 1 \\ 1 & 1\end{bmatrix}$ then one can generate $x_1 \sim N(0,1)$ and set $x_2=x_1$ since they are fully correlated. However, is there any good methods for generating samples for general case $n>2$? I guess one needs first to be able identify the lower dimensional subspace, then move to that space where one will have valid covariance matrix, then sample from it and finally deduce the values for the linearly dependent variables from this lower-dimensional sample. But what is the best way to that in practice? Can someone point me to books or articles that deal with the topic; I could not find one.


Constrained Optimization with an External Parameter

In theory, is it correct to pose a constrained optimization problem to minimize a nonlinear function of two variables with respect to three parameters, where the third parameter relates the two variables of the function?  For example, suppose we aim to minimize an objective function $\mathscr F(a,b)$, for the design parameters $a$, $b$, and $c$, such that $c=a^2+b^2$. Is this mathematically correct?  Please have a detailed and proven statement if possible. Thanks.


Series about a planet-hopping aristocrat with a mechanical horse

I'm trying to remember a series of stories (I think there was 3-4 books in the series) about a planet hopping adventurer / lawman / aristocrat who had a mechanical horse called Fess or Fez (or something like that). The only thing I can remember is it suffered from seizures at the most inopportune moments.


White lies are acceptable - Heinlein juvenile?

I recall reading a Science Fiction tale as a child which had a profound effect on me.  In it the main character is told that we have to be able to tell certain lies.  No one should tell the truth under every circumstance.  What is the title of this work? I want to say it was by Heinlein but can't be certain.  I recall that the main character is told how he shouldn't really tell his Granny or Great Aunt what he really thinks of her hat and by extension how society couldn't function if we didn't tell certain lies.  I also have the suspicion that there was time travel involved.  I know I read the book in the 70's but figure it was published in the 50's-60's.


Given an integer template parameter Key, the search method should extract a layer of the onion that has key == Key during compilation.  How to fix the search method?  Test (also at )  #include <iostream>  class A { public:     static constexpr int key = 0;     template<int s>     constexpr auto& search() const { return *this; } };  template<class P> class B { public:     static constexpr int key = P::key + 1;     template <int Key>     constexpr auto& search() const {         if constexpr (Key == key) return *this;         return p_.search<Key>();     }     P p_; };  int main() {     B<B<B<B<A>>>> onion;     std::cout << onion.search<1>().key << "\n";     return 0; }   Error:  error: expected primary-expression before ‘)’ token          return p_.search<Key>();                                ^