Illustrator - Recolor text with 2 different colors

I have a piece of text that uses a 2 different colours, one for the titles and one for the paragraphs. Is there any way the colours can be edited using something like Recolour Artwork, so that you don't have to select the single pieces but just change the colours in the block of text.


This is the help for comments:     Comments use mini-Markdown formatting: [link]()   _italic_ **bold** `code`. The post author will always be notified of your comment. To also notify a previous commenter, mention their user   name: @peter or @PeterSmith will both work. Learn more…   I've stumbled often over [link](http://example.com) because the link is not the "link", but the text that is linked. I often find myself putting the URL in the link part because it is confusing.  Proposed changes  Here are two alternatives to make the help text for that tag a bit clearer; maybe the community can identify better ones.  option 1  [text](http://example.com)   option 2  [text](url)   What do you think?


Is it possible to have two Schengen visas with overlapping dates?

I'm a foreign national working in the USA. I applied for a French tourist visa and was offered a visa from July 30, 2018 to August 30, 2018. Now, due to some schedule changes at work, I have to change my travel plans. I would like to now travel to Spain from August 23, 2018 to September 10, 2018.  In this case, I cannot use my French visa to travel to Spain as my travel dates are not within my French visa dates. Hence, I’ll need a new visa.  Am I eligible to apply for a new visa with Spain? Do I need to cancel my French visa before applying for a Spanish visa as the dates are overlapping?
  Can I apply for a Spanish visa starting August 31, 2018 (One day after my French visa expires)?  Any help is appreciated. Thanks.


Why equation of motion doesn't involve derivatives of power greater than 2?

The equation of linear motion in a given coordinate axis (say $x$) in my text book:    And throughout my mechanics course I never encountered derivative with power higher than 2 in EOM?  Why is it so?  Does additional derivatives put on any restriction in  a physical sense which although mathematically constructable but not physically possible? (just like imaginary roots in quadratic equation in certain problems had imaginary or negative roots of time)  EDIT: It turns out that there exist two anser which adresses the problem in terms of lagrangian mechanics  Is there any equivalent explanation from the point of view of Newtonian Dynamics?


$P_n(x):=1+ \sum_{m=1}^n\dfrac{x^m}{m!}$ has no real root for even $n$ and exactly one real root for odd $n$

Is it true that  $$P_n(x):=1+ \sum_{m=1}^n\dfrac{x^m}{m!}$$ has no real root for even $n$ and exactly one real root for odd $n$? I can only prove that the polynomial cannot have any multiple roots. Am stuck , Please Help.


CSH - How to check if input is NOT number

Need to apply it on csh.  to check if the inputted $2 is not number nor the word "all"  if ($#argv == 2 && ($2 != all && $2 != **any number**)) then    echo "wrong parameter"


cannot install anything via apt-get. problem with apt-get update

I am unable to install anything with apt-get. I think this problem is due to gpg error of some kind. I have done almost everything on the net as per my belief. This is what happens when I run apt-get update.   mody@ubuntu:~$ sudo apt-get update Get:1 http:/dl.google.com stable Release.gpg                                   Get:2 http:/dl.google.com stable Release                                       Ign http:/dl.google.com stable Release                                         E: GPG error: http:/dl.google.com stable Release: The following signatures were invalid: NODATA 1 NODATA 2 mody@ubuntu:~$    I tried these  mody@ubuntu:~$ sudo apt-get clean mody@ubuntu:~$ sudo apt-get update && sudo apt-get upgrade Get:1 http:/dl.google.com stable Release.gpg Get:2 http:/dl.google.com stable Release                                       Ign http:/dl.google.com stable Release                                         E: GPG error: http:/dl.google.com stable Release: The following signatures were invalid: NODATA 1 NODATA 2   Didn't work  mody@ubuntu:~$ sudo apt-get update -o Acquire::http::No-Cache=True Get:1 http:/dl.google.com stable Release.gpg Get:2 http:/dl.google.com stable Release                                       Ign http:/dl.google.com stable Release                                         E: GPG error: http:/dl.google.com stable Release: The following signatures were invalid: NODATA 1 NODATA 2   Didn't work  mody@ubuntu:~$ sudo apt-get update -o Acquire::BrokenProxy=true  Get:1 http:/dl.google.com stable Release.gpg Get:2 http:/dl.google.com stable Release                                       Ign http:/dl.google.com stable Release                                         E: GPG error: http:/dl.google.com stable Release: The following signatures were invalid: NODATA 1 NODATA 2 mody@ubuntu:~$    Even this  Click System>>Administration>>Software Sources Click the Download From menu and choose Main Server Type the following in terminal.  sudo apt-get update   Run the update manager again.  But did not work  I also changed the sources with one available on ubuntu site. i dont know why i did that but that didn't help  Did a force update. problem persists.  mody@ubuntu:~$ sudo apt-get update -f  [sudo] password for mody:  Get:1 http:/dl.google.com stable Release.gpg Get:2 http:/dl.google.com stable Release                                       Ign http:/dl.google.com stable Release                                         E: GPG error: http:/dl.google.com stable Release: The following signatures were invalid: NODATA 1 NODATA 2   Frustrated.  Synaptic is not installed as well as aptitude. changing download server to everything possible from anything did not help either.  PS: link were giving me problem with posting so I delete / where // were present


For example, if I type "this" into LyX file, the output PDF will show “this”, the quotes change to a set of curly quotes. But I want it looks like "this".  Especially in LyX, there are six quotes styles:        “this”   ”this”   „this“   „this”   «this»   »this«      But none of them is the normal type, "this".  Moreover, if I paste the quotes, “”, into another TeX file, the output characters may become garbled code, e.g., âĂĲâĂİ.  It really puzzled me.  How can I obtain the quotes as " when input "?  Thanks very much!  P.S.  Add a statement by @JimOldfieldJi about the difference between this question and  :     Reason why not a duplicate: LyX escapes characters / turns them into   commands automatically e.g. typing – will output \textendash{} in the   LaTeX. So this question is not about which command to use, but just   how to enter a literal plain old quote character into LyX.


How can I get the figures not to be pushed to the end of the document?

For some reason, my figures get pushed to the end of the document. I tried begin{figure}[t], [h] and other options, but none helped. Any ideas how to get the figures to appear much earlier in the document, where they are approximately first mentioned in the .tex file?


Why is a cup of coffee referred to as a cup of "Joe"?

Just interested in learning the context behind a cup of "Joe". It seems weird that we'd use a proper noun to name a cup of coffee, rather than anything else.


Prevent inheritor class from overriding virtual function of base class

The situation is like this.  class Interface { public:     virtual void foo() = 0; }  class MyClass : Interface { public:     virtual void bar() = 0; private:     void foo()     {         //Some private work and checks.         bar();     }; }   I want that my user will create a class which inherit from MyClass, and they will have to implement there bar(). But how can I enfoce they wouldn't override foo()? because it's important to me to use my foo().


Showing that $G$ is a group under an alternative operation.

Let $G$ be a group and let $c$ be a fixed elements of $G$.    Now, I'm going to define a new operation "*" on $G$ by $a*b=ac^{-1}b$    How do I prove that the set $G$ is a group under *.  Thanks for the help!


Is it a good idea to fill a database using a .txt?

I am currently learning how to use database in Android. For one of my app, I need to stock 500 string values in order to read them. Actually to fill my database, I read a .txt file at the database creation with all the string values inside. For each lines of .txt (corresponding to a string value), I create a new data in the database. The thing is I know that accessing a file can be long it is not a very good thing if there are thousands of values. According to that, I have two questions :   Is it really usefull to create a database ? (because I can directly access the string values by reading the .txt) Is there a better way to fill the database ? Or a way to create a database already filled before the activity creation ? (because currently, each time you close the activity you close the database and each time you reopen it, it recreate and refill the database.)


I have implemented a simple web server as a solution to a course assignment and I want to connect to this web server over the internet. I've set it up to listen on port 22881 and configured my router accordingly as the screenshot below shows    I'm able to connect to my web server locally using http://localhost:22881 and I can connect to the router's interface when I visit http://my.external.ip, but I can't connect to my web server using http://my.external.ip:22881 (I get a connection timeout). Any idea of what may be the problem?  Thanks in advance!


Distribution of $s^*w$ if $s$ and $w$ are i.i.d. isotropic unit norm complex vectors

Let $w \in \mathbb C^M$ be a unit norm complex vector. Also, let $s \in \mathbb C^M$ be a unit norm complex vector independent of $w$. We assume that $s$ and $w$ are i.i.d. isotropic vectors.     I am looking for the distribution of $s^* w$, where $s^*$ denotes the conjugate transpose of $s$. I also want to deduce the distribution of $|s^* w|$ and $|s^* w|^2$.  I saw the claim that $|s^* w|^2\sim\mathsf{Beta}(1,M-1)$ but without a proof.  There is a similar thread  that shows that for real vectors scalar product $t =s^\top w$ is distributed such that $$(t+1)/2 \sim \mathsf{Beta}\big((D−1)/2,(D−1)/2\big),$$ but I am not sure how to generalize that to complex vectors.


How do I identify an airport’s official free Wi-Fi network?

While traveling in the Berlin Tegel airport (TXL), I wanted to get on Wi-Fi. I found three unsecured networks in addition to a number of password-protected networks.   _Free_TXL_WiFi airberlin Berlin Tegel Airport WiFi   I had no idea which of these were an official Wi-Fi network provided by the airport and which were provided by other people, potentially for malicious purposes like capturing my network traffic. Presumably the official one uses a captive portal to allow internet access.  Is there any way to determine which Wi-Fi network is the official one provided by the airport? Would airport staff such as at the ticketing booths know? Are there official lists available somewhere?  I’d like an answer that is applicable to airports generally, rather than specific to the Berlin Airport. Also, please don’t just give a blanket “don’t use any public Wi-Fi network” answer; I know there are risks associated with it, but sometimes it is a necessity and so I want to know how to identify the airport-provided one.   suggests there are no official Wi-Fi networks, but the answers are six years old, so it’s not clear if things have changed or if none of the networks I saw were official.


Is it possible to get a \neq but with a vertical bar instead of a slanted one? There are inequality operators like AMS's \gvertneqq that feature this kind of "not equal" but not without mixing it with other signs.  \documentclass[a5paper]{article} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \begin{align*} a&\gvertneqq b\\ C&\neq \varnothing \end{align*} \end{document}     So what I basically would like to have is the isolated symbol under the > in the \gvertneqq above. Particularly because I don't like the different slopes of the slashes in the second line and "≠∅" is quite a common combination.


True or false for each of the following statements? Justify by giving a full proof or a counter example.  (a) $g : (0,∞) → \mathbb R$ defined by $g(x) = \sin(x)$ is open.  (b) $g : (0,∞) → \mathbb R$ defined by $g(x) = \sin(\frac1x)$ is open.  (c) $g : (0,∞) → [−1, 1]$ defined by $g(x) = \sin(x)$ is open.  (d) $g : (0,∞) → [−1, 1]$ defined by $g(x) = \sin(\frac1x)$ is open.  (e) $g : (0,∞) → [−1, 1]$ defined by $g(x) = \sin(x)$ is closed.  I know (a) to (d) are just straight forward but in the part (e) I started by taking closed set containing a sequence that converges to infinity, since if the limit of a sequence in $A$ goes to infinity, $A$ is closed, and I try to see if $g(A)$ closed or not.  Can you help me in finding such a sequence inside a set that $g(A)$ will be  easy to see? Thank you


$\forall$:n∈${N}$ $\binom{2n}{n}$  $\ge  \frac{4^n}{2n+1}$ I tried with no any success...


What is the "Dirty COW" bug, and how can I secure my system against it?

I've just heard of this bug "Dirty COW" that allows any user with read access to files to also write to them and gain administrative access. How do I protect against this bug?


Why is $ \overline{e^z} = e^\overline{z} $?

How can you conjugate an entire function? $ \overline{exp(z)} $ I need an equivalent.  I thought this is only possible with complex numbers.   What is the proof for $ \overline{e^z} = e^\overline{z} $ ? (Please don't involve a power series here.)


Let $R$ be a ring and let $a \in R$. Let $n \in N$. Show that if $a^n$ has an inverse, a has an inverse.

I can say that $(a^n)^{-1}(a^n)=e$ but I do not know how to use that to show that a has an inverse. Not sure if I just have to manipulate the equation somehow to obtain the result.


When to use “the“ with the word “church“?

my question is:  When can the article “the“  be used with the word “church“?  I have a book were the explanation is that we don't use the with the words school, church, bed, hospital etc. When we refer to the purpose for which they exist.   What do they mean, when they say purpose? When can I actually use it?  Thank you very much!


Regarding Periods of Weierstrass $\wp$ function

I am trying problems from Tom M Apostol Modular Functions and Dirichlet Series in number theory and I am struck on this problem which is from Chapter - Elliptic Functions.      Problem is - Prove that $\wp(u) = \wp (v) $ iff    $u-v$ or $u+v$ is a period of $\wp$ .    My attempt - assuming $u-v, u+v$ to be period of $\wp(z) $ , it is very easy to see $\wp (u)=\wp(v) $ .   But if I assume $\wp (u) =\wp (v) $ , then I get $\frac {u+v} {u^2 v^2}= \sum_\omega\neq 0 \frac { u+v - 2 \omega} {  ( u- \omega) ^2  × ( v-\omega ) ^2 } $  .   I don't know how to proceed after this.  Can somebody please give some hint.


"turn down the volume" or "turn the volume down" - phrasal verb structure

I'm learning about phrasal verbs, but I'm not sure if I'll use them correctly. Which one of the following phrasal verb uses correct:  -I don't know how to turn down the volume? -I don't know how to turn the volume down?  I always think that they're same, but lately I feel like there must be a rule how to use them correctly, or perhaps they get different meanings?


How can install Desktop Toggl on Ubuntu 13.04? I try type:  sudo add-apt-repository ppa:official-toggl/ppa sudo apt-get update sudo apt-get install desktop-Toggl    But getting information desktop-Toggl not found.


interface data type and class data type with same class instance

I am curious about difference between two different data type with same class instance. with that being said. let me show you sample code below. I have an interface interface carInterface {     fun startEngine()     fun stopEngine() }  and I have a class that implements the interface(carInterface) class carClassInterface: carInterface {     override fun startEngine() {         Log.d(TAG, "startEngine: started Engine")     }      override fun stopEngine() {         Log.d(TAG, "stopEngine: stopped Engine")     }      companion object {         private const val TAG = "carClassInterface"     } }  In MainActivity.kt, I have two different data type of variables like this private var carInterface: carInterface? = null private var carClassInterface: carClassInterface? = null  and initialize them with same instance of carClassInterface class     carInterface = carClassInterface()     carClassInterface = carClassInterface()  then if I execute these two lines of code below     carInterface!!.startEngine()     carClassInterface!!.startEngine()  I get this logs.     D/carClassInterface: startEngine: started Engine     D/carClassInterface: startEngine: started Engine  As you see here, both carInterface and carClassInterface instances behave pretty similar(or same) so far. data type of carInterface is interface and data type of carClassInterface is class but they can do same behavior? any explanation will be appreciated!


Can't install anything because of JDK9 unsuccessful installation

Note: The JDK9, I tried to install is a 9 Early Access Release version.  sudo add-apt-repository -y ppa:webupd8team/java /* added repository */ sudo apt-get update /* updated */ sudo apt-get install oracle-java9-installer /* I can't instal JDK 9 */   Note: I have installed JDK 8 on my Ubuntu 16.04 system.    When I do sudo apt-get install oracle-java9-installer I get the error shown in below picture.   When I do sudo apt-get update –fix-missing, I get uses weka digest algorithm (SHA1) warnings for some gpg keys as shown below.   I can't do sudo dpkg --configure -a or any software installation, I get error because of JDK 9 installation incompete.  I removed oracle-java9 related ppa sources file from /etc/apt/sources.list.d, and also removed oracle-jdk9-installer folder from /etc/apt and removed oracle-java9 related packages from /var/cache/apt/archives.   I have not selected any java related ppa sources in my sources.list file.   Every time I try to install/remove/configure something, I get error of JKD9 aso shown below. And the folder oracle-jdk9-installer that I removed in the past from /var/cache again appears.   Because of this incomplete installation of JDK9, I can't install/remove/configure anything in my Ubuntu 16.04 system.   I searched how apt-get works in , nothing found because there is no single file inside /var/lib/dpkg/info directory. There is nothing related to java or oracle things in the /var/lib/dpkg/list directory as well.   After researching sometime in the internet, I found that I can install JDK9 using sudo apt-get -o Dpkg::Options::="--force-overwrite" install openjdk-9-jdk. I ran this script, but still I get the error as presented below picture.    I checked there is nothing in /etc/apt/apt.conf file. I wanna know, from where apt-get is reading the configuration information? So that I can remove all java9 reated information from that file and solve my problem


I don't want to see the shadow cast on the wall like the circled one with red pen the picture. How can I cancel such light effect?  I found an answer that said to go the "word" and "surface" to remove it. I am not sure that it's the same thing (link: )  but I did not see the "surface" option in my "world" column.  Thank you for helping me, I really appreciate it


If $\exists a,b \in \mathbb{N}$ then $\exists k,l \in \mathbb{Z}$ s.t. GCD(a,b)=ak+bl, $l,b\in \mathbb{Z}$

I don't really understand the proof for this. It says "consider a set $A=\{ax+by\mid x,y\in \mathbb{Z}\}$. Then let the smallest element of of $A$ be $d$.Then $d=ak+bn, k,n\in Z$. Show $d|a$ and $d|b$ so that $d$ is the common divisor. Then show that if $m|a$ and $m|b$ then $m \le d$."  I don't really know how if $d=ak+bn, k,n\in Z$ then $d$ divides $a$ and $b$ also I know how $m$ dividing $a$ and $b$ makes it less than $d$. I can understand it being equal but not less than.


Are unix[-like] programs capable of determing where their output is going?

Up until recently I was under the impression that Unix-y programs were unaware of where their output went, be it to standard out, redirected to a file, or into a pipe. However, an unrelated U&L question on this site brought to my attention the following example:  % echo "hello world" > file  % grep --color=auto lo file hello world  % grep --color=auto lo file | cat hello world   Obviously you can't see it here, but the first command shows 'lo' highlighted, as expected. However, the second call, which goes through a pipe, shows no colour. This suggests that grep was aware of its output being directed to a pipe and avoided outputting colour. How is this done?


Book about a man who's cut in half & placed in suspended animation

I remember reading a book fifteen to twenty years ago that had the following charactersitics:   The main character was a man who at some point lost the lower part of his body (legs & pelvis) He was placed in suspended animation / cryogenic sleep at one point in the story The story may have included a whale/leviathan-esque "character" (but I may be conflating two stories in my memory) At one point in the story he drags himself through some air-vent-esque piping   I'm fairly sure it was written by one of the "big" authors and that, at least in the printing I read, the cover had a whale/leviathan on it.  Could anyone identify this book?


Visual Studio 2008 publishing .svn folders

Does anyone know how to prevent VS copying the .svn folders associated with subversion when publishing a web project?  I'm using Tortoise SVN and Ankh svn VS plugin.  Thanks


I'm working on a database in SQL Server 2000 that uses a GUID for each user that uses the app it's tied to. Somehow, two users ended up with the same GUID. I know that microsoft uses an algorithm to generate a random GUID that has an extremely low chance of causing collisons, but is a collision still possible?


Im trying to excute the minecraft.jar. Ive tried to run several commands but always coming back with "unable to access jarfile"  My file is stored on my downloads and I am the owner it says on file properties. Any ideas? Thanks!


How does Leia have memories of her mother?

In Return of the Jedi, Luke asks Leia if she has any memories of her real mother.     Luke: Leia, do you remember your mother, your real mother?      Leia: Just a little bit. She died when I was very young.      Luke: What do you remember?      Leia: Just images really, feelings.      Luke: Tell me.      Leia: She was, very beautiful, kind, but sad. Why are you asking me this?      Luke: I have no memory of my mother. I never knew her.   How is this possible? In Episode III, Padme dies soon after giving birth to Luke and Leia. Would this be considered a plot-hole?


How do you get a mouse functioning in TTY?

I may be asking for the impossible here, but is it possible to use the mouse in tty? I mean not the terminal, but the GUI-less tty itself? And if so, how?


Prove $|\arctan x - \arctan y|\leq |x-y|$

I have to prove that $|\arctan x - \arctan y|\leq |x-y|$ for all real numbers $x$ and $y$. I know that it has something to do with the mean value theorem but I just don't know how to solve it. All help is appreciated  Thanks in advance :)


What the difference between 'make me' 'get me' 'has me' in meaning 'to force'

In many cases 'make me' 'get me' 'has me' doing something mean 'to force'. What is the difference between them in this meaning? Is there any sense to use one or the other?


Yesterday I tried to install an app but for some reason it got interrupted. Today I tried to install another app but I got an error:  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a'to correct the problem   after that when I type sudo dpkg --configure -a I get this:  Setting up mime-support (3.59ubuntu1)...   but suddenly my system freezes and my ram usage goes to 95%.  For solution I tried:  sudo apt-get install -f  sudo dpkg --configure -a or sudo apt-get remove mime-support  But nothing happens or it get stock.  I'm using Xubuntu 16.04  Thank you in advance.


How to protect user to clear checkbox using javascript?

How to protect user to clear checkbox using javascript ?  I want to protect clear checkbox from user using javascript  (not use disabled tag) How can i do that ?  <input type="checkbox" id="c1" checked> Do not uncheck


How does Jesse connect the dots in S05E11?

I'm struggling to understand the ending of Breaking Bad S05E11.  At the end of the episode Jesse realizes that Huell stole the cigarettes and confronts Saul about it. At one point, Jesse flat out says:     The ricin cigarette! You had him steal off of me! And all for that asshole Mr. White! He poisoned Brock! He poisoned Brock and you... you helped him!   I get that Jesse realizes that Huell stole his cigarettes the first and second time. I also get that Jesse realizes that Walt manipulated him into eliminating Gus. That makes sense. But how exactly does Jesse leap from thinking that Walt orchestrated the cigarettes being stolen to Walt poisoning Brock? Just because Walt manipulated him into helping him with the Gus situation doesn't necessarily mean that Walt was behind Brock's poisoning...  Something doesn't add up.


How to check if all traces of Ubuntu are gone from computer?

I was tired of my dual boot setup and wanted to get rid of Ubuntu for the time being since I rarely used it. Being the smart guy I am, I simply deleted the partition it was on and added it back to my HDD. Next day I boot my computer up and I'm in grub rescue.   I have the installation disk for windows but I don't have an optical drive on my pc so I tried to solve the problem via grub rescue and Ubuntu Live CD. I repaired grub (sort of) so it booted to a black grub> terminal. (I'm used to purple screen to select OS.) Had no luck with that so I caved and purchased and external optical drive and ran bootrec /FixMbr from the installation disk to fix the booting issues.   Now my question is, with the partition deleted, can I check if all traces of Ubuntu are off my computer?


Count number of checked rows in dynamic form

I'm very new to jquery and javascript, and I'm hoping anyone can help me find out how to count number of rows that has all their checkboxes checked.   I have a checkbox form with dynamic amount of rows and 3 checkboxes on each row. What I want to find out is how many rows that has all the 3 checkboxes checked. All the rows has id tr0, tr1, tr2 ...   This is what I have so far, it checks the first row (tr0) in my form and alerts "1" if all the boxes are checked in that row after you submit your table. When testing I have 3 tr rows + 1 header.   $(function howManyAreChecked() {   var checkedBoxes = 0;   //when the submit button under the table is clicked   $("#tabellSubmit").click(function howMany() {     var rowCount = $('#qaTabell tr').length;      //checks if row tr0 has all the boxes checked     if($("#qaTabell #tr0 input:checked").length > 2)        checkedBoxes = checkedBoxes +1;    alert(checkedBoxes);   checkedBoxes = 0;    }); });   What I need to know is how I can change the if-test to check tr0, tr1, tr2, tr3... up to tr(number of rows in the table) instead of only tr0.  Thanks in advance!


Why can't I call startActivity on a manually instantiated Activity?

I just have a question on this exception. I have already fixed the code but I didn't know why I couldn't use my original way.  public class Login extends Activity {     EditText account, password;      @Override     protected void onCreate(Bundle savedInstanceState)     {         super.onCreate(savedInstanceState);         setContentView(R.layout.login);          account = (EditText) this.findViewById(R.id.account);         password = (EditText) this.findViewById(R.id.password);          Button_Listener listener = new Button_Listener();         Button login = (Button) this.findViewById(R.id.login);         login.setOnClickListener(listener);         Button reset = (Button) this.findViewById(R.id.reset);         reset.setOnClickListener(listener);     }      class Button_Listener implements View.OnClickListener     {         Login l = new Login();          public void onClick(View v)         {             switch(v.getId())             {                 case R.id.login:                     if(account.getText().toString().equals("kenny"))                     {                         if(password.getText().toString().equals("12345"))                         {                             Toast.makeText(Login.this,"Welcome",Toast.LENGTH_SHORT).show();                             Intent go = new Intent();                             go.setClass(Login.this,MainMenu.class);                             l.startActivity(go);   // NullPointerException here                             Login.this.overridePendingTransition(R.anim.enter,R.anim.exit);                         }                         else                             Toast.makeText(Login.this, "Account or Password is incorrect", Toast.LENGTH_SHORT).show();                      } else {                         Toast.makeText(Login.this, "Account or Password is incorrect", Toast.LENGTH_SHORT).show();                     }                     break;                 case R.id.reset:                     account.setText("");                     password.setText("");                     break;             }         }     } }   Why do I get a NullPointerException on the commented line? When I used Login.this, I didn't get this exception.  In addition to this question, why did I not get any value if I do String name = account.getText().toString(); for the listener?


Possible to avoid state taxes by not having a fixed residence?

If a person lives in any given state for less than 4 months each year, can they avoid paying state income taxes?  Is there a federal law that requires a citizen to be a resident of a particular state? Is so, what is that law?  As a variation on the above, is it possible to avoid state taxes by living temporarily in an untaxed location, like the Virgin Islands? For example, lets say a person lives for 5 months in one state, 5 months in another, and 2 months in the Virgin Islands. Can they then declare the Virgin Islands as their primary residence for tax purposes?


Fix corrupt NTFS partition without Windows

MY NTFS Partition has gotten corrupt somehow (it's a relic from the days when I had Windows installed).     I'm putting the debug output of fdisk and blkid .  At the same time, any OS is unable to mount my root partition, which is located next to my NTFS partition. I'm not sure if this has anything to do with it, though. I get the following error while trying to mount my root partition (sda5)  mount: wrong fs type, bad option, bad superblock on /dev/sda5,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so  ubuntu@ubuntu:~$ dmesg | tail [ 1019.726530] Descriptor sense data with sense descriptors (in hex): [ 1019.726533]         72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00  [ 1019.726551]         1a 3e ed 92  [ 1019.726558] sd 0:0:0:0: [sda]  Add. Sense: Unrecovered read error - auto reallocate failed [ 1019.726568] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 1a 3e ed 40 00 01 00 00 [ 1019.726584] end_request: I/O error, dev sda, sector 440331666 [ 1019.726602] JBD: Failed to read block at offset 462 [ 1019.726609] ata1: EH complete [ 1019.726612] JBD: recovery failed [ 1019.726617] EXT4-fs (sda5): error loading journal   When I open gparted (using live CD), I get an exclamation next to my NTFS drive which states   Is there a way to run chkdsk without using windows ?  My attempt to run fsck results in the following :  ubuntu@ubuntu:~$ sudo fsck /dev/sda fsck from util-linux-ng 2.17.2 e2fsck 1.41.14 (22-Dec-2010) fsck.ext2: Superblock invalid, trying backup blocks... fsck.ext2: Bad magic number in super-block while trying to open /dev/sda  The superblock could not be read or does not describe a correct ext2 filesystem.  If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:     e2fsck -b 8193 <device>   Update: I was able to fix the NTFS partition running chkdsk off Hiren's BootCD, but it seems that the superblock problem still remains.  Update 2: Fixed superblock issue using e2fsck -c /dev/sda5


So the wife is on her last straw with Windows 10, and I want to switch her to Ubuntu. She uses Reader for her Girl Scouts/Guides PDF work, just basic text changes and entering.   The question is: Does she even need Adobe Reader or are there programs that she can use to read and alter on Ubuntu that work just as well?


SVG to GeoJSON conversion - incorrect render

I have a vector image in SVG format.(without georeferences)  I am trying to display it using OpenLayers to display properties of different polygons in it.  I tried converting it to GeoJSON but the resulting render appears to be stretched (ratios are not preserved).  Is there a transformation or a map projection that I am missing  or recreating a GeoJSON from scratch the only relevant choice?


I have a CAD model imported into Blender in STL format. This was a STEP file exported in STL format from FreeCAD. Without making any modifications it looks like this:    Base model has 38, 326 faces.  So far these are the steps I have been using to retopo:   Select all verts and remove doubles (face count (fc) = 34,786) Select all faces and Alt + J to convert all tris to quads (fc = 21,650) Add Decimate Planar modifier and adjust Angle Limit to get good balance between face count and "look" of the model. Usually around 10 degrees is good enough (fc = 2,755). Now the model looks like this:       So there is still alot of geometry around the holes and other finer features. Apart from making the planar angle more aggressive and manually removing verts and replacing with new faces, which is quite time consuming, are there any other tricks I can use? Ultimately this will be exported as an FBX and used in Unity.


I'm a UK Refugee Blue Travel document holder. Why can't I travel to Italy anymore?  Today they denied me boarding on the plane. I do not know why and how to complain. I paid for my tickets and no one told me about it, even Ryanair, with which I travelled before without any problems.  Any help is appreciated.


How do we quantify and measure the net entropy of today's universe?

We know that the Universe evolved from a very low entropy state in the early universe to very high entropy state of today's universe.    What is the quantitative definition of the net entropy of the present universe?  How can we measure the net entropy or its change in the universe today?    I want some concept and formulas related to that and I'm not talking about the early universe. The question  discusses theoretical calculation of the entropy but not experimental measurements of it. An experimentalist's or observers perspective might also be illuminating for me.


Using of Newton's method to find a complex root of a polynomial

I have studied the Newton's method for real functions, and these are the conditions to find a function real root on $[a,b]$:    $$f(a) \ f(b)<0$$ $$f'(x)>0 \quad (\text{or} \quad f'(x)<0) \qquad \forall \in [a,b] $$    Convergence theorem:  $$\text{sign}(f' f'') = \text{sign}(x_0 -x^*)$$    Iterations:  $$ x_{n+1}=x_n-\frac{f(x_n)}{f'(x_n)} \qquad x_n\in \mathbb{R}$$    How can I use Newton's method to find the complex roots of a polynomial (e.g. $z^2+1$) ?    I know a real coefficients polynomial of degree $p$ has $p$ different complex roots (for Fundamental theorem of algebra)      But, how can I verify the convergence of the Newton succession with an initial value $z_0$?  $$z_{n+1}=z_n-\frac{f(z_n)}{f'(z_n)} \qquad z_n\in \mathbb{C}$$     Thanks!


Setting up GUI with Ubuntu from Windows Store

I've recently downloaded Ubuntu from the Windows Store (I'm running windows 10) and I wanted to start familiarize with it, I saw that it's possible not only to have the bash command line, but also a graphical interface. However, in the tutorial I saw () it seems that the method to start up the GUI is outdated/not working properly, could someone help me setting the GUI up so I can start Ubuntu inside Windows and use it? Thank you.


Low rep users should be able to fix broken links

At present a low rep user (under 2k) can only make an edit suggestion of more than 6 chars, however when someone has taken the time to find to correct link it is a real shame the correction can help other users!  So I think link fixing should be special cased somehow.  (Also the checkering of a changed link need to be better than other edits, so a page that showed what both the old a new links point to (in frames) could help with the approving processes.)


Create El Capitan's bootable USB drive using Windows

As I say in the title, I need to create a bootable USB drive with OSX El Capitan using Windows 10.   I can't start my Mac using OSX anymore and I want to perform a clean install. If I use Recovery my OS will be restored via internet, and it would be Mountain Lion. Is there a way to avoid this?


What factors affect the Young's modulus of elasticity?

Is Young's modulus of a material different for various diameters of that material? I would assume it does, but I cannot find a reference. Is the Young's modulus of a $1~\rm mm$ thick steel wire the same compared to a $10~\rm mm$ thick wire of the same steel?


Can I travel within the Schengen area without a passport if I have my residency permit card?

I am currently located in the Netherlands and have lived here for 4 years. I have a working visa for the Netherlands and would like to go on vacation to another country in Europe. I however do currently not have my passport as i sent it to an embassy for a visa application. Will I still be able to travel inside of Europe without a passport if I have my residency ID?  I have a resident permit, not a true Dutch ID. And I own a passport that is currently in transit.  I have called with the KLM and the service employee's conclusion was that I do need to carry my passport with me when i am going to fly, so it seems all I can do is wait and hope my passport is returned to me in the next few days as the amsterdam US consulate (who currently holds my passport) is incredibly difficult to contact for urgent matters.


How does the Time Stop spell interact with the duration of a previously cast Bless spell?

When someone casts  (in this case an ), they take turns while everyone else is stopped in time:     You briefly stop the flow of time for everyone but yourself. No time passes for other creatures, while you take 1d4 + 1 turns in a row   Suppose that a  spell was already in effect when the Archmage used time stop. The bless spell usually lasts for 1 minute (or 10 rounds). Would the extra turns from time stop count towards the duration of the bless spell?  I am assuming (possibly wrongly) that the answer may depend on who cast the bless spell and who are the targets. The main point that I want to know is what factors, if any, are used to determine whether the spell's duration is affected. I have considered this (non-exhaustive) list of factors:   Whether the spell was cast by the Archmage (assuming he has the ability to cast the spell) or someone else. Whether it is affecting only the Archmage, only other characters or both.   So which of these (or other) factors are used to determine whether the extra turns one takes during time stop would affect the duration of the bless spell?


When I try to install Lubuntu this appears: Command apt-get update finished with exit code 100. Output: ign:1 cdrom://Lubuntu 20.04 LTS_Focal_Fossa_-Release amd64 (20200423) focal Release Reading package lists... E: Release file for cdrom:[Lubuntu 20.04 LTS_Focal Fossa_-Release amd64 (20200423)]/dists/focal/Release is not valid yet (invalid for another 20d 15h 28min 3s). Updates for this repository will not be applied.  What should I do? Thanks for the help.


I was using the denoise option in Blender 2.8, but cant seem to find it in 2.90. The documentation refers to the "Render Layers" but it doesn't seem to be there either.  When I open an older project that was created with 2.8 in 2.9, the denoise option is there and works fine. is there a setting i need to check to enable the feature by default in new files?


Someone walking on near side vs. far side of Moon - are weights different?

Running a thought experiment, I considered someone's weight when they were standing on the Earth with the Moon directly overhead.  My initial thought was that the person weighs less because the Moon's gravity is working "against" the Earth's.  Conversely, someone standing on the Earth with the Moon above the opposite side would conceivably weigh more, since the Moon's and Earth's gravity are working "together".  But, I think this is an incomplete analysis, and here's why:  When considering both the Earth's and Moon's gravity, one must consider the two bodies as an integrated whole, with a mass equal to the sum of each individual body's mass.  Now, here's the kicker:  when performing gravity calculations, the center of this (unified) mass must be used to establish the distance in the formula.  Also known as the .  Thus, in $ F = G \dfrac{m_{1} m_{2}}{r^{2}}$, $m_{1}$ is the combined mass of the Earth and Moon, $m_{2}$ is the mass of the person standing on the Earth (for whom we're measuring the force of gravity), and $r$ is the distance between this person (on the surface of the Earth) and the .  So, someone standing on the Earth directly underneath the Moon is closer to the barycenter than someone standing on the opposite side of the Earth, and my intuitive thinking is that whatever pull the two bodies have working against each other is offset by the reduced $r$.  Conversely for someone standing on the opposite side of the Earth.  Question:  Is the concept I've described above accurate?  Taking this a step further (no pun intended):  Consider someone on the near side vs. far side of the Moon.  I can't conceptualize the above phenomenon being the same since the barycenter is (still) inside Earth, thus a really long distance away from someone on either the near side or far side of our Moon.  Question:  Would someone standing on the far side of the Moon weigh substantially (measurably) different than someone on the near side?    Addendum  No, I don't think  (and its answers) answered mine.  I even linked it below.  But it doesn't mention anything about integrated masses of the two bodies or the concept of center-of-mass-as-barycenter.  I assert that my questions (especially the 2nd one, which is the primary motivation for me asking this to begin with) is not even remotely addressed by the heavier day-or-night question.  Finally, I explicitly did not mention "day" nor "night"; I'm aware of the fact that the Moon can be directly above someone standing on the Earth in broad daylight.    For the record, I have read the below Physics SE questions:    - I'm not convinced that mine is a duplicate of this one!


Another question related to the Olympus OMD EM5. I bought this camera to replace my Nikon D90 and I'm very satisfied with it.   However, I find very hard to do the focus at night. With the Nikon D90, I could look through the viewfinder and use the focus ring to do a manual focus at infinity.  With the Olympus, the viewfinder is electronic and doesn't catch enough light, so it's impossible to do the focus visually. Not to say that the autofocus doesn't work at night. How do you deal with this? If I take a photo of a landscape, can I just turn the focus ring all the way to the right?  Thanks!


We are attempting to electronically determine which of 10 cards, numbered 1-10, is currently in front of a stack.  Initially card 1 is in front.  Eventually card 1 will be flipped around to the back of the stack, and card 2 will then be in the front.  Then card 2 will be flipped around to the back of the stack and card 3 will be in front.  This process repeats for all cards labeled 1-10.   These cards will be viewed by people so we are looking for a solution which won't require a device positioned in front of the cards (such as a barcode scanner).  These cards will also be outdoors making any type of IR sensor not possible.  Does anyone have any ideas on how we can detect which card is in front?  See an example image:  ()


Does the "No Free Lunch Theorem" apply to general statistical tests?

A woman I was working for asked me to do a one-way ANOVA on some data. I replied that the data were repeated measures (time series) data, and that I thought the assumption of independence was violated. She replied that I should not worry about the assumptions, just do the test and she would take into account that the assumptions might not have been met.  That did not seem right to me. I did some research, and found this wonderful blog post by David Robinson, , which exposed me to the No Free Lunch Theorem. I have looked at the original paper and some follow on stuff, and frankly the math is a bit over my head.  The gist of it -- according to David Robinson -- seems to be that the power of a statistical test comes from its assumptions. And he gives two great examples. As I wade through the other articles and blog posts about it, it seems to always be referenced in terms of either supervised learning or search.  So my question is, does this theorem apply to statistical tests in general? In other words, can one say that the power of a t-test or ANOVA comes from its adherence to the assumptions, and cite the No Free Lunch Theorem?   I owe my former boss a final document regarding the work I did, and I would like to know if I can reference the No Free Lunch Theorem in stating that you cannot just ignore the assumptions of a statistical test and say you'll take that into account when evaluating the results.


python, sorting a list by a key that's a substring of each element

Part of a programme builds this list,  [u'1 x Affinity for war', u'1 x Intellect', u'2 x Charisma', u'2 x Perception', u'3 x Population growth', u'4 x Affinity for the land', u'5 x Morale']   I'm currently trying to sort it alphabetically by the name of the evolution rather than by the number. Is there any way I can do this without just changing the order the two things appear in the list (as in 'intellect x 1)?


I have this code in java and I do not understand the meaning of the Object in the following code ...   Here is the code   public class Tester {     public static void main(String[] args) {         Foo foo1 = new Foo(1);         Foo foo2 = new Foo(2);          System.out.print(foo1.equals(foo2));     } }  class Foo {     Integer code;      Foo(Integer c) {         code = c;     }      public boolean equals(Foo f) {         return false;     }      public boolean equals(Object f) {         return true;     }  }   When I run the code I get false  but when I remove   public boolean equals(Foo f) {         return false;     }   and run the code I get true...  Why is that and what is happening ?  Thanks


Link CName record to another domain, but without subdomain

Is it possible to link "mydomain.com" to "app.iriscouch.com" using a CNAME record?  My service provider app says a CNAME record must have a subdomain.  And A record must link to an IP.


Persistence of value outside of Promise Callback

I have a method from a Provider that looks similar to this:  updateUser(user: User): Promise<User> {     return this.http.put<any>('url',JSON.stringify(user))         .toPromise()         .then((result) => {             this.eventsService.broadcast('userEdit:success', user)             return Promise.resolve(true);         })         .catch((err) => {             let errorData = {                 error: err,                 data: user             };             this.eventsService.broadcast('userEdit:failed', errorData)             return Promise.reject(errorData);         }); }   This does work and I do get the value of user. But I believe that user's value is expected to be gone which would cause an error? How does the variable user retain it's value after the function updateUser?   I wanted to have the user's value back especially on the error catching so that I can notify and take the value to repopulate the form if I navigate back to it with the notification.  The current code works but I believe there is a better/correct way to do this to achieve the same objective. Please let me know how you would rather do it yourself.


Is temperature a Lagrange multiplier of energy?

Someone told me that temperature is a Lagrange multiplier of energy... Is this true? Why?


Left-aligning all text in itemized list (beamer)

I'm trying to make an itemized list in beamer (using the  package). By default, the text of first-level bullet points is left-aligned at the same point as non-list text, and the bullet actually comes before that. I want the bullet point to be aligned with or even further right from the non-itemized text, so I added a line to indent it (\setlength etc.):  \begin{block}{Evaluation}     Compare seasonality estimated by our method with that in:     \begin{itemize}         \setlength{\itemindent}{1.5em}         \item ``Agricultural" grid cells ($p_a > 0.8$)          \item ``Non-agricultural" grid cells ($p_a < 0.2$)         \item 80\% threshold based on the land cover classification scheme for cropland discussed by \citep{Hansen:2000wm}.     \end{itemize} \end{block}   Here is a picture of the result:   Unfortunately, this solves one problem and creates another. The third item has to have a line break, and the text on the second line is not left-aligned with the rest of the itemized list text. How do I make it align?


So I've been trying to prove that a set $\mathbb{R}$ \ $\mathbb{Z}$ is an open set but I don't quite know where to start since the relative complement is still infinite. So theoretically in $\mathbb{R}$ \ $\mathbb{Z}$ one could pick a real number as close to an integer as needed but you could of course never pick the integer itself. So my idea was that $a-\epsilon<a$ for any $\epsilon>0$ with $a\in \mathbb{Z}$ but I have a feeling I'm doing it wrong. Any ideas or hints on how to solve this properly?


I have a requirement at work for a WPF stock-ticker-like application.  I was thinking of using this as a starting point:   But the one thing it does not do is dock to the top of the desktop window - AND - push down any other windows, maximized or otherwise. This app must own a small bit of vertical real estate at the top of the screen, full width. I scoured WPF posts, but cannot find an example. I've seen a third party solution, so I know it's possible. Window.Topmost almost achieves this behavior, but just covers/obscures anything under it. Any suggestions?  The image below demonstrates the current behavior. The WPF window sits on top of VS, which is problem.


Word to describe people in internet thinking very same, using same websites, reading same resources

Is there a term or word to describe people in internet feeling very same, like if they were doing absolutely same things using internet?  Here in the web we have too many apps and websites, but many people sometimes use same. This creates "hubs" or "circles" of disconnected people, but with close feelings and possibly interests, doing same things (like using same social network and following same public persons).  How can i call such people or their "phenomenon of thinking sameness"?


SQL Server Extended Events to Capture Objects access by a User

I am in for a requirement where I need to use EE to capture the Objects Accessed by a particular SQL User. I want to avoid the action sqlserver.sql_text, if I use this, I will need to manually scan though the data which may be prone to missing some data or incorrect results. Is there an alternative to using sqlserver.sql_text


Number of combinations from a set with repeated items

In trying to solve the problem stated below, I'm not sure how I can find the total number of combinations possible?  "Find the probability that 3 vowels and 2 consonants are chosen when five letters are chosen at random from the word CALCULATOR"  In general, how would I find the total number of combinations of choosing a group of n objects from a set of more than n objects where there are repeated objects in that set?


Ubuntu 16.04 How to install rsync server for other systems to access via ssh using cron  Setup:  system "prime" with Ubuntu 16.04 and a second hard drive just for backups.  /dev/sdb1 is mounted at /mnt via using blkid to get the uuid then adding a line to /etc/fstab  I created a subdirectory named /mnt/full/prime for the first backup, of the prime boot SSD contents.  --> Running the command:  sudo rsync -aAXv / --delete --ignore-errors --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /mnt/full/prime   does indeed make a nice mirror copy of the root file system into that directory /mnt/full/prime  It is totally cool - like Robocopy with the /MIR option - it only transfers changes so runs a lot faster after the files have been copied the first time.    Now, to set it up for others to access, I found this article    It says to run the following command:  sudo apt-get install ssh rsync   it installed normally. --EDIT:  This turns out to be unnecesary. --END EDIT--  All of my systems have the passwordless login set up in both directions.  ssh-keygen ssh-copy-id -i ~/.ssh/id_rsa.pub <target-system>   and I have no problem with passwordless scp copies and ssh.  So I then created a subdirectory under mnt/full for my next system "solar" - /mnt/full/solar and using ssh into the Raspbian system "solar" I issued the same rsync command but with the target directory being pi@prime:/mnt/full/solar  mkdir /mnt/full/solar ssh solar sudo rsync -aAXv / --delete --ignore-errors --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} pi@prime:/mnt/full/solar   but it prompted me for the password to pi@prime - rsync does not respect the normal passwordless login setup.  Once I entered the password the copy proceeded normally.  So now all seems well except this won't work as a daily cron job if it is going to prompt for a password.  The question is in the title: Ubuntu 16.04 rsync via ssh prompts me for password, how to make it a cron job?


Can a file be edited with the 'write' permission on it but not on its parent directory?

Suppose the owner/user doesn't have the write permission on a directory but he has it on a file under it. Can the file here be edited or not? If yes, is there any situation where the file cannot be edited?


TableA ------ UserID | UserName | Password ---------------------------- 1        Test1      Pass 2        Test2      Pass 3        Test3      Pass   TableB ------ UserDetailID | UserID | FieldName | FieldValue ---------------------------------------------- 1              1        Address1    #24, 2nd Main 2              1        Address2    Near to abc 3              1        City        Chennai 4              1        State       Tamilnadu 5              2        Address1    #45, 3rd Main 6              2        Address2    Near to XYZ 7              2        City        Bangalore 8              2        State       Karnataka  I need a pivot query which can convert this two table as below  UserID | UserName | Password | Address1      | Address2    | City   | State --------------------------------------------------------------------------- 1        Test1      Pass       #24, 2nd Main   Near to ABC   Chennai  Tamilnadu 2        Test2      Pass       #45, 3rd Main   Near to XYZ   Bangalore Karnataka  How i can achieve this?


I am trying to solve a challenge from jshero.net.   The challenge is:     Write a function add that adds an element to the end of an array. However, the element should only be added if it is not already in the array. add([1, 2], 3) should return [1, 2, 3] and add([1, 2], 2) should return [1, 2].   The problem is for . Does anyone know how to solve it?


How can I conveniently save the urls of the opened webpages in https://www.google.com/bookmarks/?

I have opened a number of web pages in  Google Chrome browser in  my android phone. Is it possible to conveniently save the urls of the opened webpages in ?  This is especially helpful on android phone, since google chrome browser there doesn't provide bookmarking all open webpages into the browser at once.  Thanks.


Shortcut for toggling between different windows of same app?

I opened two Google Chrome windows (because I am using multiple Gmails) and when I do the Cmd ⌘ Tab ⇥ shortcut it just shows me other applications that I opened but does not show me the other Chrome windows that are already opened.  How to switch to the other Google Chrome window that I opened using keyboard shortcut?


Text copied from Terminal with formatting in Mavericks (10.9), Yosemite (10.10), and El Capitan (10.11)

After the update to Mavericks (10.9), anything copied from Terminal is pasted in the target app with the same formatting as in Terminal, in my case, white monospaced letters on a black background, e.g.:    (I pasted some text from Terminal into a New Mail window.)  Previously (10.8 and earlier) only plain text was copied, without any formatting at all.  This happens in apps that are capable of receiving rich text formatting. In plain text apps, e.g. TextWrangler or TextEdit in plain text mode, only the content is copied, of course.  Can formatting copying be disabled for the Terminal app?  The same happens in Yosemite (10.10) and El Capitan (10.11) as well.


Calculating Euclidean distance in QGIS 2.18.27

I want to calculate Euclidean distance of animals trails from roads. Is this possible as both layers or vectors? Or is there another way to calculate distance my animal trail network is from a road?


I am familiar with programming, but I am learning Java. Why is it ok in Java to say   A test = new B()   Where A would be a different class from B (obviously). I understand that the new B() portion is just calling the initializer method for the B class. What confuses me is why would you WANT to do that? Is the A test creating the object in computers memory, with the initialization of A?    This question has nothing to do with interfaces. Why this is marked as a duplicate I have no idea...


Re-entering the US on visa waiver from Mexico by car

I am Australian and planning to travel to the US in November for a month. I will be flying into the US and as part of my trip then driving to Mexico for a week and then back to the US. Can I get a visa waiver for this or because I will be entering from Mexico 'by land' do I need some other sort of visa?


Is there another way to solve this Trigo in series?

Find the value of  $$\cos ^2\theta+\cos^2 (\theta+1^{\circ})+\cos^2(\theta+2^{\circ})+......  +\cos^2(\theta+179^{\circ})$$  Attempt, $$\cos x=-\cos(180^\circ-x),\sin x=\cos(90^\circ-x),\cos x=\sin(90^\circ-x),\sin x=\sin(180^\circ-x)$$  $$\cos^2\theta+\cos^2(\theta+1^\circ)+\cos^2(\theta+  2^\circ)+ \dots+\cos^2(\theta+179^\circ)=\cos^2\theta+\sum_{  n=1}^{179}\cos^2(\theta+n^\circ)$$  $$\cos^2(\theta+1^\circ)=\cos^2\theta\cos^21^\circ-2\cos\theta\cos1^\circ\sin\theta\sin1^\circ+\sin^2  \theta\sin^21^\circ$$  $$\cos^2(\theta+179^\circ)=\cos^2\theta\cos^2179^ \circ-2\cos\theta\cos179^\circ\sin\theta\sin179^\circ+ \sin^2\theta           \sin^2179^\circ=\cos^2\theta\cos^2179^\circ+2\cos \theta\cos1^\circ                                               \sin\theta\sin1^\circ+\sin^2 \theta\sin^2179^\circ$$  $$\cos^2\theta+\sum_{n=1}^{179}\cos^2(\theta+n^\circ  )=\cos^2\theta+\sum_{n=1}^{179}(\cos^2\theta\cos^2  n^\circ+\sin^2\theta \sin^2n^\circ)$$  $$=\cos^2\theta+\sin^2\theta+2\sum_{n=1}^{89}(\cos^2  \theta\cos^2n^\circ+\sin^2\theta\sin^2n^\circ)$$  $$=1+2\sum_{n=1}^{89}\cos^2n^\circ=1+2\left(44+ \dfrac12 \right)=90$$


How can McGonagall make sandwiches appear?

According to Hermione in DH, food is one of the Five Exceptions to Gamp's Law on Transfiguration.  Yet, in CoS, Professor McGonagall is able to give Harry and Ron a plate on which sandwiches appear continously. One can object that some sandwiches cannot be considered as food, but they still are. The same can be said about Molly Weasley making sauce from her wand in GoF while grumbling about how the twins abuse magic.  Is there any canon explanation on how McGonagall and Mrs Weasley created food from nowhere?  By canon, I mean anything coming from the books, Pottermore, or JKR quotes.


Why wget doesn't verify SSL certificates?

I have a problem with my Fedora 8 installation. It looks that wget doesn't know how to verify SSL certificates any more. It's strange because I have another Fedora 8 box which I believe has the same configuration and it works!   How can I make it work without using --no-check-certificate switch?  This is a sample output:  wget https://www.google.com --2011-09-23 00:11:13--  https://www.google.com/ Resolving www.google.com... 74.125.230.146, 74.125.230.147, 74.125.230.148, ... Connecting to www.google.com|74.125.230.146|:443... connected. ERROR: cannot verify www.google.com's certificate, issued by `/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA':   Unable to locally verify the issuer's authority. To connect to www.google.com insecurely, use `--no-check-certificate'. Unable to establish SSL connection.   EDIT  I have this file /etc/pki/tls/certs/ca-bundle.crt file and when I run wget with --ca-certificate switch pointing to this file everything goes fine. Where should this file be placed so that I don't need to use the switch?  BTW: curl and links work fine, but lynx also complains: "SSL error:unable to get local issuer certificate" so this is not only wget's issue...


How do I install ubuntu packages from the ubuntu cd. I have ubuntu-desktop 10.04 running and I have to install wvdial package but no internet connection for installing from apt repository.


I am using json to get date from asp.net controller witch get date from ms sql database.  In JavaScript i get object with strange date type  Object BloodTestID:23 Date:"/Date(1451599200000)/" Name:"Hb" PersonBloodTestID:0 Value:"151" __proto__:Object   How to convert "/Date(1451599200000)/" into 01.01.2016?


Can a green card holder travel to Iran and come back to the US right now?

My wife is a green card holder and she wants to travel to Iran in the next month for a couple of weeks. Is she exempt from current 14 days quarantine rule before entering the US?


An Error with Calling another Method within another method

Hi so im trying to do this pig latin code in which the first letter is deleted from a words and sent to the end of the word while adding an "ay" to the end result. I have finished all my code in which it should output the right result except my problem is with actually outputting the code. I get an error message right after the user inputs the sentence.   Here is my code:  package piglatin;    import java.util.Scanner;    public class PigLatinTest {  public  static String str;  public static String[] words;   public static String[] printLatinWords()  {      System.out.println("Enter a Sentence: ");        Scanner scanner = new Scanner(System.in);        str = scanner.nextLine();        words = str.split(" ");        //System.out.println(words);        return words;  }   public static String[] printPigLatinWords()   {     for (int i = 0; i < words.length; i++) {         char firstLetter = words[i].charAt(0);         words[i] = words[i].substring(1);         words[i] = words[i] + firstLetter + "ay";         //System.out.println(words[i]);         //If you want the words to be in the same line, then this could help                  instead of System.out.println:         System.out.print(words[i] + " ");     }     return words;   }  public static void main(String[] args)  {     words = printLatinWords(); }    }    /*    Enter a Sentence:      Hello from the other side       */


$$ \pi = \sum_{n=0}^{\infty} \frac{1}{16^n}\left(\frac{4}{8n+1} -\frac{2}{8n+4}-\frac{1}{8n+5}-\frac{1}{8n+6}\right)$$ I guess that using the Leibniz series could be somehow the way of the proof $$\frac{\pi}{4}=\sum_{n=0}^{\infty} \frac{(-1)^{n}}{2n+1}=1-\frac{1}{3}+\frac{1}{5}-...$$ is it the right way of thinking?


What kind of applications use internet on the background?

Viewed the list of applications that use Wi-FI and came across what is shown on the image below.    What it is? Virus? Instead of Google I use F-Droid. Root is there, but only Total Commander and Titanium Backup are available.  Phone - Samsung Galaxy J1 Mini.  Rooted, twrp.  In applications "10005" does not exist. Titanium Backup was deleted 2 month ago.  After installing Dr.Web 10005 disappeared. But from 15.11.2018 to 12.12.2018  "10074" exist.


Can I change hotel after getting a Schengen visa?

I need some information regarding hotel booking in Portugal. I booked hotels (with free cancellation) from booking.com in Lisbon and Porto before applying for a visa and submitted this booking information when applying.  Now I am getting better deals from different websites for better, cheaper hotels. Can I cancel the hotels I booked before and book the new hotels in the same city, same date and same duration? Will it cause any issue in the future?


Bug in textarea in bounty creation popup

I was attempting to create a bounty for a question over on Stack Overflow and ran into a rendering glitch on the last page. After entering a sentence that exceeds the length of a single line, the popup contents scroll slightly to the right and strange characters start showing up:    There is no '(' in my sentence so it's strange that it's showing up in the textarea. When you move the cursor it around the line edge, the textarea scrolls from right to left and back.  Here's what I've got:   Ubuntu 12.10 64-bit Firefox 18.0.2   This is also occurring on Firefox 24.0 on Windows 7 Enterprise Service Pack 1.    The data entry starts out fine:    Then it goes all wacky as I complete the second line:


How to pass a dynamic Type to a Class that requires

Does anyone know if it's possible to pass in a Class Type dynamically to a Class that requires Type TObject?  My controller Class is declared like this:  public class DataController<TObject> where TObject : class   I don't know what "TObject" will be at runtime in some circumstances, so I would like to know if there is a way of doing something like what I am trying below? By the time this code hits, I know the Type and it's stored in "t", which I am passing into this method thus:          private void RefreshGrid(Type t, DataGridView ctl)     {         DataController<t> cDataController = new DataController<t>();              //... other stuff           cDataController = null;     }   Obviously, the syntax here fails as "t" is a variable used like a type, the compiler rightly tells me.  Many thanks in advance.


Find the least positive $x$ such that the expression $a + bx$ is divisible by $n$, where $a$, $b$, $n$ are assigned

I'm trying to solve this general problem(to solve the programming one).  We have assigned variables $a$, $b$ and $n$. What is the least positive $x$, so that $a + bx$ is divisible by $n$? It is guaranteed that $x$ exists.  So far, I have found no relations between modulo or GCD. The main trouble are the independant variables.


Saving Processing algorithm output to string instead of file.geojson

Is there any way to save processing.run("native:algorithm") output directly to string instead of file or temporary layer?  I'm aware of saving output to layer and exporting features using QgsJsonExporter(), however it adds ID to every feature therefore it's not what I'm looking for.  Now I'm going for approach where extra ID is generated for every feature in geojson result is generated. However then I change OUTPUT to file.geojson there are no extra IDs.  vl = QgsVectorLayer(sys.argv[1],"mygeojson","ogr")  def runProcessingNativeBuffer(inputGeoJson, distance):     processing.algorithmHelp("native:buffer")     return processing.run("native:buffer",                          {'INPUT': inputGeoJson,                           'DISTANCE': distance, 'SEGMENTS': 5,                           'END_CAP_STYLE': 0, 'JOIN_STYLE': 0,                           'MITER_LIMIT': 2, 'DISSOLVE': False,                           'OUTPUT': "TEMPORARY_OUTPUT"})  ats = runProcessingNativeBuffer(vl, sys.argv[2])  vl1=ats['OUTPUT']  features = vl1.getFeatures() exporter = QgsJsonExporter() print("GEOJSON",exporter.exportFeatures(features))


So I had my Steam game installed in H:\Games and wanted to move it to C:\Program Files (x86)\Steam\steamapps\common\.   I followed  Steam guide on how to move a Steam installation. I moved my game folder to a safe location while steam was closed. Then launched steam, right-clicked the game in the library, and deleted local content. I closed steam again, moved the backup game folder to my target location in the common folder. I opened steam and found the game greyed out as if it was not installed. I entered properties and could not verify the game cache. It prompted me to install. I installed it to the common folder and it was downloading. I tried to vertify it, but it did not vertify, just kept downloading.  The game is Borderlands 2.


I´m having some trouble understanding this code. I know I need to create a method to compare non built-ins, but could someone please explain to me, in detail what the boolean equals() is actually doing?  public class Book {       private String title;      private Author author;      private int year;      public boolean equals(Object o) {          if (o == this) { return true; }          if (o == null) { return false;}          if (!o.getClass().equals(Book.class)) {return false; }          Book aBook = (Book) o;          return aBook.year == year && aBook.title.equals(title) && aBook.author.equals(author);      } }   It was given to me by a friend, if you have any suggestions for improvements please tell me.


Show $H \cap L_i$ is a Cartan subalgebra of $L_i$

Suppose we have a semisimple complex Lie algebra $L$, with a Cartan subalgebra $H$.  Suppose that $L= L_1 \oplus\cdots\oplus L_k$ with each $L_i$ a simple ideal of $L$.  I want to show that $H_i=H \cap L_i$ is a Cartan subalgebra of $L_i$.  For this I would need to show $3$ things from the definition of a Cartan subalgebra:  (i) $H_i$ is abelian  (ii) every non-trivial $h_i \in H_i$ is semisimple  (iii) $H_i$ is maximal with respect to (i) and (ii)  I feel like the first property follows immediately from the fact that $H$ is abelian being a Cartan subalgebra of $L$ itself, and so as $H_i \subset H$ we have that $H_i$ is also abelian.  I am struggling to figure out what to do with the other two cases, for (ii) a direct approach seems like it wouldn't work since there is no specific Lie algebra we are working with so I have no basis to calculate ad$(h_i)$ for a general $h_i \in H_i$, but I cannot figure out what approach to take.  Any help would be appreciated thanks :)


I have window 7 on a 1 TB HDD and I installed ubuntu also. I am not getting dual booting menu, I am not a computer expert, kindly say what I have to do?


Removing Firefox in Ubuntu with all add-ons like it never existed

I have been using Firefox for a long time in Ubuntu, I downloaded some add-ons but it made firefox extremely slow, even if I remove them nothing will change.  I tried to remove Firefox also, but re-installing it will somehow recover the same Firefox I had- it seems it write some info somewhere that even if you remove Firefox, it will keep them.  Moreover, I am not able to use see any flash videos or website with Firefox(chrome works fine).. Honestly I tampered with plug-in settings in Firefox that this happened. But right now I can't do anything to overwrite the setting...  My question is how I can remove Firefox in a way to remove any previous traces and re-install a new version like for the first time?


How to call the constructor of an Abstract class from another constructor inside the same class (method overloading)

I am extending the API of a class that I am working on and would like to make it backward compatible - so that it doesn't break any existing users of the class. I have created the new functionality by adding a new parameter to the constructor.   So that I don't repeat code (I could copy-paste code from the old constructor into the new) I would like to change the existing constructor to call the new constructor passing 0 as the default for the new parameter but I am getting a compilation error, method call expected.   Is what I am trying to do not possible (method overloading is not supported?) or am missing something?   To help show what I mean, please see the simple example below,  public abstract class AbstractCalculator {       int result;       // new parameter being added       public AbstractCalculator(int a, int b){          result = a + b;      }       // existing functionality             public AbstractCalculator(int a){          //compilation error here - Method call expected          AbstractCalculator(a, 0);      } }   public class Calculator extends AbstractCalculator{       public Calculator(int a){          super(a);      }       public static void main(String args []){           Calculator calc = new Calculator(4);          System.out.println(calc.getResult());       }     }


Area 51 follower count, where is myself?

I recently (yesterday) followed  and noticed that I'm not in the list of followers: and the followers count is 19 which is exactly the number of user in that list (without me). Am I missing something? (cached?)


Mouse cursor briefly becomes "not allowed" sign when clicking on SE action buttons

I don't know whether this just started or perhaps it's actually something new in my browser, but it must come down to SE code ultimately and I've never noticed it before today/yesterday.  Submit a comment via the "Add Comment" button, or submit a close-vote, or post a question, or do anything really that involves clicking one of those kinds of buttons, in Chrome 48 on Windows 7 64-bit, and you'll see your mouse cursor very briefly turn into the "not allowed" cursor right before the button is removed.      It seems the button is being disabled or whatnot before it's being hidden, which results in this "flash of malstyled content". Not a big deal but a little annoying.


Evaluate $P.V. \int^{\infty}_{0} \frac{x^\alpha }{x(x+1)} dx $ where $0 < \alpha <1$

Evaluate $$P.V. \int^{\infty}_{0} \frac{x^\alpha }{x(x+1)} dx   $$ where $0 < \alpha <1$    Thm   Let $P$ and $Q$ be polynomials of degree $m$ and $n$,respectively, where $n \geq m+2$. If $Q(x)\neq 0$. for $Q$ has a zero of order at most 1 at the origin and $f(z)= \frac{z^\alpha P(z)}{Q(z)}$, where $0 < \alpha <1$ then  $$P.V, \int^{\infty}_0 \frac{x^ \alpha  P(x)}{Q(x)} dx= \frac{2 \pi i}{1- e^{i \alpha 2 \pi }}  \sum^{k}_{j=1} Res [f,z_j] $$ where $z_1,z_2 ,\dots , z_k$ are the nonzero poles of $\frac{P}{Q}$    Attempt  Got that $P(x)=1$ where its degree $m=1$ and $q(x)=x(x+1)$ its degree is $n=1$ so it is not the case that $n \geq  m+2$ because $2 \geq 1+2$


Why are comments now disabled on the review queue?

Today, on C.SE, I reviewed some 'Late Answers' and First Posts.  I was not even near my daily vote limit.  And yet, I was given a message that said      comments disabled on deleted / locked posts / reviews   It seems I was not the only one either:   The workaround, of course, was simply to go back and provide the guidance - but was this a design or a bug?  If it is design, why would you want to discourage the feedback? Especially with first posts, there is often a high percentage of 'didn't read the FAQ' usage, which can best be addressed by gently providing guidance. (e.g. "Unfortunately, this doesn't answer the question" or "This reads like a comment" or "This really isn't on-topic here - can I suggest you checkout our [faq]" etc...)  Timely first post guidance goes a long way towards making good users.   If it was a bug, was other functionality silently rolled out?


Do I need a transit visa in Amsterdam going from Philippines to Greece, if travelling on a (government) official passport?

I hold an official Philippine passport (government official) and will travel from Manila to Athens through Amsterdam (transit). I do not need to get a visa for entry to Athens, Greece. Do I need to get an airport transit visa for Amsterdam?


List of approvers for a suggested edit is incorrect in 10k tools

Take a look at the following suggested edit review on Anime.SE: . As you can see, users "debal" and "Dimitri mx" approved it, and user "Shinobu Oshino" rejected it.   If you go into the 10k tools (well, 2k tools), you will find that the  () claim that the edit was "approved by senshin, Dimitri mx, debal, Shinobu Oshino 18 hours ago".   Since I took no action on the suggested edit, it is strange that I am listed as one of the users that approved it. This looks like a bug. (I believe that I did skip that review, which might be why my name is listed there.)


How to find output sequence for LFSR from its polynomial?

LFSR characterized by $p_2 = 1$, $p_1 = 0$, $p_0 = 1$.  I've computed that, the corresponding polynomial is $P(x) = x^3 + x^2 + 1$  What is the sequence generated from the initialization vector $s_2 = 1$, $s_1 = 0$, $s_0 = 0$?


Creating Main and Secondary Map in QGIS?

In QGIS I need to generate two maps on one, I'm aiming to have a large map covering a large area in Europe and in the top right corner place another map zoomed in to a specific country.   Does anyone know the method to do this?  I have seen it mentioned but have not been able to find a tutorial.


What function to use to show that the set of positive rational numbers is countable?

This is from Discrete Mathematics and its Applications Here is the definition of countable that the book uses  and how to determine if two sets have the same cardinality  Here is the example that the book gave  Here is some work I added to the example  What I realized from the example was that the function n/2 would map an even positive integer to a positive integer and the function -(n - 1)/2 would map an odd positive integer to a negative/zero integer. I then showed that both functions were one to one and onto. From this, I reasoned that there is a one to one correspondence from the set of positive integers to all integers because there are functions that map from an positive integer to an integer and that one positive integer will map to one unique integer and that every integer has a positive integer that will map to it. Is this reasoning correct? I tried to apply this idea to the next example the book provided that I didn't really understand. Here is the book example I don't really understand  Is there any equation that can be used to map a positive integer to a positive rational number, just like the equation in the last example to map a positive integer to an integer so I can go through my little proof to understand this better?


How do I change the iCloud ID on iPhone 5?

I lent my iPhone to someone who logged into iCloud with their apple ID. Now I want to change the iCloud account to my own, which can only be done by deleting the currently logged-in iCloud account. To do that, I have to enter the password for that account, to turn off the Find My iPhone app. There seems to be no way to remove the old account without knowing the password for it.  This is on an iPhone 5, with iOS 7.1.1.


Regarding the ellipsoid computed by using the “lifting step”

I have asked a question at mathstackexchange but i have not got an answer yet so i am referencing the question here so that maybe one of you can help in understanding the problem:   Please do help and thanks in advance. (and sorry for the inconvience)


How can I reduce the file sizes of the original versions of uploaded image files?

I have a Drupal 7 site that allows users to upload pictures of themselves.  While the pictures aren't using much space on the server's filesystem now, I am worried that if my membership grows substantially I will have to add more space to cover all the images.  Right now, I allow users to upload images up to 10 MB in size.  I want to leave this limit high if possible because many of my users are not technically skilled and they do not know how to resize their images.  At the same time, the largest resolution that will be used on the site is 1024x1024.  So, I have configured the core image field to automatically scale down the images to 1024x1024.  This significantly reduces the file size.  Are there any other ways to automatically reduce the size of uploaded images?  Please note that I am talking about the original files, not image styles.


What tax year does my income get assigned to if my client sends the payment in December but I receive it in January?

Suppose I did some contracting in December, my client puts a check in the mail in December, and I receive it and cash it in January.    Does my income count for December or January?


How does the unit circle work for trigonometric ratios of non-acute angles?

How does the unit circle work for trigonometric ratios of obtuse angles? I know that the x coordinate is $cos (\theta )$ and the y coordinate is $sin (\theta )$. But I understand these in context of only acute angles? I don't understand why the unit circle definition works for other than acute angles? Somebody please provide me some good intuition.


What is the time complexity of these dependent nested loops?

How to calculate time and space complexity for these algorithms? I referred many sites but its confusing me. please any one explain me.   1.   for(i=0;i<n;i++)  {     for(j=i;j<n;j++)//this for loop is based on previous 'i'     {        foo();     }  }   2.  while(m<n) {     for(i=0;i<n;i++)     {          foo();     } }   If possible explain me with some more example. Thanks.


Grabbing value of a Dynamic Element inside a Frame

I've been struggling with this for a few days now, I was hoping I could find some help here!  I have a simple html page which has two frames. The frameset looks like :  <frameset rows=15%,*> <frame src="frTop.html" name="frTop"> <frame src="frBot.html" name="frBot"> </frameset>   The frame "frTop" has a textbox and a button. When you input a value in that box and hit the button, it loads a URL into the frame "frBot".  The page that loads has some values in it, and one of them is a dynamic value (It doesn't change unless you manually change it in the page).  What I want to do is to load the URL, and pull that dynamic value into a variable/textbox/something that I can manipulate.  The idea being, I want to specify 100-200 values, visit each of those URLs, grab the value, and store it into a spreadsheet.  My biggest problem is that the URL being loaded is an external link, ie : I am not able to access the elements of that page using the getElementById("") command. (My knowledge of HTML is limited, so I am not sure if this approach would work or not).  Additional Info : The dynamic element I want has the following segment of code in the HTML of the external page.     Thanks in Advance, Sai


I have re-installed Ubuntu from 16.04LTS 64 bit to 14.04LTS 64 bit. I have lost the previous partitions (NTFS) and now, Ubuntu recognises everything as single partition.   Can some one advice the recovery steps to get the old partition table?


Sending data from Activity to Fragment: NPE

I am trying to send a calculated result from my Activity to a Fragment. I searched how to do it and I am trying to it with a Bundle.  I often had a NPE problem but back then I could fix them by myself I also already read: 'What is NPE and how can I fix that' but I do not know how to fix it in this specific case. I am new to Coding sorry for any inconveniences & also sorry if I forgot any code but I thought those 2 classes would suffice. Error:      'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference   Here is the class with my Bundle. KalorienZaehlerRechner.java: (FragmentActivity)  public class KalorienzaehlerRechner extends FragmentActivity {  Button btn; EditText userProteine; EditText userKH; EditText userKHz; EditText userFett; EditText userGegG;  @Override protected void onCreate(@Nullable Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.fragment_kalorienzaehlerrechner);      userProteine = findViewById(R.id.userGegPRechner);     userKH = findViewById(R.id.userGegKHRechner);     userKHz = findViewById(R.id.userGegKHzRechner);     userFett = findViewById(R.id.userGegFRechner);     userGegG = findViewById(R.id.userGegG);      btn = findViewById(R.id.btnhin);     btn.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             gerichthinzufuegen();         }     }); }  public void gerichthinzufuegen(){      int usG = Integer.parseInt(userGegG.getText().toString());     int usKH = Integer.parseInt(userKH.getText().toString());     int usKHz = Integer.parseInt(userKHz.getText().toString());     int usP = Integer.parseInt(userProteine.getText().toString());     int usF = Integer.parseInt(userFett.getText().toString());      int USg = usG/100;      float resultP = (usP * USg) * 4.1f;     float resultF = (usF * USg) * 9.1f;     float resultKH = (usKH * USg) * 4.1f;      float userKcal = resultP + resultF + resultKH;     int intUserKcal = Math.round(userKcal);        Bundle bundle = new Bundle();     bundle.putInt("data", intUserKcal);     Fragment fragmentobject = new Fragment();     fragmentobject.setArguments(bundle);      } }   And here is my Fragment. I want to receive the result here to display it in a TextView. Kalorienzähler.java:       public class KalorienzählerFragment extends Fragment { Button neuesGericht; TextView uKcal;  @Override @Nullable public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {     View kalorienZaehler = inflater.inflate(R.layout.fragment_kalorienzaehler, container, false);      uKcal = kalorienZaehler.findViewById(R.id.userGegKcal);     neuesGericht = kalorienZaehler.findViewById(R.id.btnGericht);     String userKcal = getArguments().getString("data");     uKcal.setText(userKcal);      neuesGericht.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             openZaehlerRechner();          }     });      return kalorienZaehler; }  public void openZaehlerRechner(){     Intent ZaehlerRechner = new Intent(getActivity(), KalorienzaehlerRechner.class);     startActivity(ZaehlerRechner);     } }   Thanks to everyone who will help!


Prove $s^\lambda t^{(1-\lambda)}\leq \lambda s +(1-\lambda)t$, for all $s,t\geq 0$ and $\lambda \in (0,1)$


Possible Duplicate:          The rule of thumb used to be that when a word hit the Oxford Dictionary, it was considered to be an accepted word - this, however, seems to have transitioned into a lagging indicator in the last 5 years, primarily because so many new words are being created around the technological advances/services/products which seem to dominate our lives.    When does a word 'officially' become a word - usage, social impact, cultural acceptance, mass media propagation?


Proof of an inequality for all $u,v\in\mathbb{C}$, such that $\vert u\vert, \vert v\vert<1$ and $u\overline{v}\neq \overline{u}v$

I have problems proving the following exercise: Let $u,v\in\mathbb{C}$, such that $\vert u\vert, \vert v\vert<1$ and $u\overline{v}\neq \overline{u}v$. Then the inequality $$\vert (1+\vert u \vert^2)v - (1+\vert v \vert^2)u  \vert > \vert u\overline{v}-\overline{u}v  \vert$$ holds. Let me describe what I tried so far:  First I showed that $\vert (1+\vert u \vert^2)v - (1+\vert v \vert^2)u  \vert >0$. This follows, because of the fact: if $(1+\vert u \vert^2)v = (1+\vert v \vert^2)u $, then $u=v$ or $u\overline{v}=\overline{u}v$.  Then I tried to simplify the inequality in various ways. For example, I tried to square both sides in hope that some terms cancel out, and I introduced new variables like $\lambda_1:=v-u$ or $\lambda_2:=u\overline{v}-\overline{u}v$. Nothing worked well.   If you have a hint or idea which might work, I would appreciate your help. Best wishes


Reputation tab shows wrong change if downvoted answers were removed

I noticed that, when I downvote an answer that subsequently gets deleted, the reputation tab in my profile shows a change of -1, even though it's unchanged from when I last checked.  Here's a screenshot showing what I mean:     The highlighted events that occurred since I last checked are circled; I received an upvote, and downvoted two posts that were removed. Yet, the tab shows a change of 8, when it should be 10.


Finding position of specific permutation in alphabetically ordered list of permutations on elements {1,2, ... , k}

I have to create two algorithms (but I think it is more of a combinatorics question).  Let there be list of permutations on elements $\{1,2,...,k\}, k \in N$ and this list is alphabetically ordered (meaning that e.q. permutations with $\pi(1) = 10$ is in this list before $\pi(1) = 2$).  1) Find position of specified permutation in that list -   e.g. input is (1, 2, 4, 3, 5) and find position, it would give 3  2) Find what permutation lies in that list on specified position -  e.g. input is 3 and I should find what permutation is on third line, that can be something like (1, 2, 4, 3, 5)  I tried to approach this as counting permutations that can be before specified one, but it seems quite complicated since $k$ can be huge number... at least for me as a combinatorics newbie.  Is there maybe some approximation that would give me some decent starting point from which I'd be able to start checking permutations manually and not having exponential time complexity?  Thanks a lot!


Prove that $f$ has finite number of roots

Let $f:[0,1]\to \mathbb{R}$ be a differentiable function. If there do not exist any $x\in[0,1]$ such that $f(x)=f'(x)=0$, prove that $f$ has only finite number of zeros in $[0,1]$.   I'm not getting any idea how to proceed.


Laravel Sendgrid mail keeps going to spam

What I am Trying to accomplish   So I have created a laravel application called Enable Rochester that is essentially a directory of individuals for my city. In the application users can contact other users within the directory by submitting a captcha protected form with a subject and message field which then sends an email to the recipient.    My Problem   To allow the users to contact each other I am using the senders email as the replyTo email and sender email within the email signature which seems to be a problem as all the emails sent are being sent to the users spam. Check out the email signature below:   from:   Solomon Antoine <antoinesolomon5@gmail.com> via sendgrid.net  reply-to:   Solomon Antoine <antoinesolomon5@gmail.com> to: contact@askfavr.com date:   Feb 27, 2019, 11:31 AM subject:    Coffee and Greet for Favr mailed-by:  em3247.enablerochester.com signed-by:  enablerochester.com security:    Standard encryption (TLS) Learn more    My Steps to try to solve the problem   The first step I took to try to mitigate the issue was changing the sender authentication from sendgrid.net to my domain enablerochester.com like below:   from:   Solomon Antoine <antoinesolomon5@gmail.com> via enablerochester.com  reply-to:   Solomon Antoine <antoinesolomon5@gmail.com> to: solomon@askfavr.com date:   Feb 27, 2019, 11:50 AM subject:    Testing with new domain mailed-by:  em3247.enablerochester.com signed-by:  enablerochester.com security:    Standard encryption (TLS) Learn more   When that didn't work I tried to change the sender email to a custom sender email using my own domain like below:  from:   Solomon Antoine <antoinesolomon51@enablrochester.com> via enablerochester.com  reply-to:   Solomon Antoine <antoinesolomon5@gmail.com> to: support@askfavr.com date:   Feb 27, 2019, 11:59 AM subject:    Another test mailed-by:  em3247.enablerochester.com signed-by:  enablerochester.com security:    Standard encryption (TLS) Learn more   I have referenced another  which provided the steps above but the solution it offered does not work.


Is this a correct application of Rolle's Theorem?

Question Let $f$ be a differentiable function on $\mathbb {R}$ such that $$\lim\limits_{x \rightarrow -\infty} f(x) = 1\ \mathrm {and} \lim\limits_{x \rightarrow \infty} f(x) = 1.$$ Prove that there exists $c \in \mathbb {R}$ such that $f'(c) = 0$.  My working Pictorially, I believe it is trivial to see that this is true, as one can just imagine some function that has a horizontal asymptote of $x = 1$. Mathematically, in general, I know that Rolle's Theorem says that if a differentiable function, $g$, has two points, say, $a$ and $b$, such that $g(a) = g(b) = c$, where $c$ is a real constant, then $\exists\ d \in \mathbb {R}$ such that $g'(d) = 0$. Thus, my intuition is to apply Rolle's Theorem on $f$ and we are done, but I also note that $-\infty$ and $\infty$ are not actually points that $f$ can "reach", so I am not sure if this approach works.  If my intuition is correct, how should I phrase my proof? If it is incorrect, what should be the correct approach to this question? Any help will be greatly appreciated :)


How does a woman prepare her body before becoming pregnant?

My husband and I are planning on conceiving a child in the next year and were wondering what types of things women should do to prepare their bodies for pregnancy?    We are wondering about vitamins, foods, activities, books, and any other resources that could help.  I am 31 years old, in average shape, and am in a secure job.


Install Broadcom wireless drivers on Ubuntu 18.10 "without internet"

I have a desktop with an Asus Z170-Deluxe motherboard, which has onboard Wifi, and I'm trying to be able to use that to connect to the internet on Ubuntu 18.10.  First I thought it might be a good idea to try with the live USB, and when starting, there was no connection, but after doing A LOT of research, I found out I was able to go to Software & Updates > Additional Drivers, and there I could select this:  Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary)   and then I could connect to the internet. So I thought the issue is resolved, and I installed Ubuntu 18.10, but after installation when I went to Additional Drivers, nothing was listed there :(  I'm not very familiar with Linux driver stuff, so again I started researching, and I found some that I wanted to try, but almost all of them included doing  sudo apt update sudo apt install ...   but my problem is that I don't have a connection to the internet to be able to do any of those, and I don't have access to a wired connection.  PS: while I was trying things, I saw this item in the Additional Drivers tab:  Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (open source)   but that doesn't seem to work.  Any help is really appreciated


How is it possible to make a table note for the table caption?  Something like  \begin{table} ... \caption{...\tnote{1}.} ... \begin{tablenotes}    \item [1] : blabla. \end{tablenotes} \end{table}   does not work in the sense, that no '1' is added after the caption to refer to the table note - which is written as expected.


Android null pointer exception with EditText

I have got this error and my application stops running      va.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference     when I click on the button next please tell me what to do instead in order to check that the fields are empty    if ( ( lastName.getText().toString().matches("")) || ( firstName.getText().toString().matches("") ) ||                     ( id.getText().toString().matches("") ) || ( email.getText().toString().matches("") ) ||                             ( phoneNumber.getText().toString().matches("") ) )   Thank you for your help


Cast to interface and check for null vs checking with "is" right away: What is best and why?

There are two alternatives I am considering as guard clauses to only allow some code to run if I have an object of proper type:  var targetObject = eventArgs.Value as MagicType;  if (targetObject != null) {     DoStuffWith(targetObject); }   or else:  if (targetObject is MagicType) {      // DoStuffWith(targetObject);  // not quite. Actually:      DoStuffWith((MagicType)targetObject); }   Looking at both alternatives, they seem pretty equivalent, but I know the operations (as vs is) are conceptually different.  So the question is: which one should be preferred? Is that choice dependent on scenario? And why?


How much amps (maximum) are flowing through 1000Base-T Ethernet?

How much amps (maximum) would be flowing through a 5 meter Cat 5/6 Ethernet cable with 1000Base-T speed (IEEE 802.3ab, 5-PAM coding, so voltage levels vary between +- 2V, 1V, 0V)?


Are you aware of the tag synonymization page?

I almost never even think about synonymization. Why? Maybe because the link is almost hidden on the bottom of the :  Can we please make that feature more prominent? Maybe put it on the review page. I am sure there are some  waiting to be voted on. Let's get the tag jungle organized.


Post-apocalyptic cartoon from the early 2000's

Around 2000 or 2001 there was a cartoon I used to watch and I can't remember the name of. Here's what I remember:   The setting was post-apocalyptic but there was still high-technology, just a lot fewer people. The main character was a young man, typical "good guy looking for answers about the past", but at the point I stopped watching he was turning "evil" due to some sort of nanotech infection. He basically fell into a  river. I seem to recall a rivalry between the hero's father and some other guy, reminiscent of the rivalry between Superman's dad and General Zod. The nanotech in that cartoon wasn't identified as nanotech. It looked a lot like the Inque character from Batman Beyond.   The art style was rather minimalist, the character design was a bit "geometric", think "Clone Wars".  Finally, I used to watch this on French TV, which means it may actually have been produced before 2000.  Any idea what this might be?