Removing part of a stroke and adding a gradient to a stroke in Illustrator CS5

Here's what I have...    The top and bottom half are two separate objects each with their own gradient.  I would like to remove the curved horizontal line going across the shape, then I would like to add a gradient to the rounded rectangle stroke. I thought I had found an answer to the first part (drag stroke below contents) which I applied  but in addition to being kind of a work around(the horizontal line still exists), I am still unable to add a gradient to the stroke. The rest of what I've googled regarding removing part of a stroke instructed use of the pen tool to add and then delete anchor points on the part of the stroke that I want removed but I am not clear on how to do this, whenever I tried, I ended up also removing the barrier between the two halves of the object which I do not want to do.  I have tried "Object > Path > Outline Stroke" multiple times in order to add a gradient to the stroke but am still left with the same two paths underneath the object's group. I expected the stroke to be turned into a new path. Any help as to how to   Remove the horizontal line stroke from existence while still maintaining separate gradients for the top and bottom halves of the object   and    Add a gradient to the stroke surrounding the rounded rectangle sans the horizontal line   would be greatly appreciated.


The editor can't find additional reviewers

I received this message form the editor "Thanks for note. We have tried 11 potential reviewers to date and have one review at hand and another that is promised. We will be in touch once the second review is acquired". What this meant? May be he rejected the submission if can't find the second reviewer


How do you change the background color of the 3D viewport?

I see tutorials where people have the background color of the 3D viewport blue and green. Where do you change this? Thanks, Rusty


WordPress 404 errors on all pages except home

I'm having a really unique issue with a local development environment. I currently have a WAMP Stack Running on ZendServer. On my computer, by default, port 80 is occupied, so I am using port 8080, and I'm having no issues with this whatsoever.  This issue first came to my attention when I started with a local WordPress install, and I can view the homepage and access the backend of WordPress with no issues. I can add/edit posts with no issues. I originally set up a vhost to have zr‑www.mywebsite.com:8080 to map into my htdocs folder and that works with no issues.  What then happens is that I go on the home page, then try to go to any page other than the home page (on the front end), and I get a 404 Not Found error. It is an exact clone of the live site, and when I test it on a linux-based LAMP Stack (Ubuntu) it works with no issues.  Any clarification on this would be greatly appreciated.


I try to install Ubuntu touch into my nexus 10 (ver: 4.3)Now I start to work on the 4th step - Downloading & Deploying Image to Device  I wrote: phablet-flash (cdimage-touch|cdimage-legacy|ubuntu-system|community) -b  then: bash: syntax error near unexpected token 'cdimage-touch'  I wrote: phablet-flash -b  then: usage: phablet-flash [-h] phablet-flash: error:too few arguments  So what I should do next?


ADC0808 IC working correctly occasionally

I am using  for a project on converting analog signal to digital signal. It has an inbuilt multiplexer using which we have to provide an analog signal to one of the pin. However what happens is ;  Sometimes it latches to a particular value say 1000000 and remains at there no matter how many times Start of Conversion is pressed which should set the inner counter to 0.  Sometimes it gives slightly wrong output off by 100 or 1000 and when I press Start of conversion, it gives correct output, so its not reliable every time.  And most seriously , Suppose the control for multiplexer according to Datasheet are such that input pin 1 should be active, instead, it works only when the input is given to pin 5 for one particular IC and pin 3 for other. I have been trying to fit it in logic since 3 days however each day some new error happens. I have replaced it twice from my college lab and now the technician doesn't want to replace it anymore . What is amiss here ?


How can we solve 2D rigid body collision?

I know that usually collision with velocity collinear can be solved by simultaneous equations of both conservation of energy and linear momentum. But my question is when 2D velocity is encountered, we do only have a vector and a scalar (isn't it?) equations, how can we then find out the velocity (which is equivalent to four scalars) after collision?  But on the other hand, since they will collide, the relative velocity of two particles should be collinear. Then this can be solved by providing an equivalent 1D model without dealing with perpendicular component of velocity.   This seemed to be a contradiction that we've used 3 scalar eqns to find out 4 variables which is obviously impossible mathematically. But see this: $$ m_1\vec{v_1}^2-m_1\vec{v_1'}^2+m_2\vec{v_2}^2-m_2\vec{v_2'}^2=0 {(1)}\\ m_1(\vec{v_1}-\vec{v_1'})=m_2(\vec{v_2'}-\vec{v_2}){(2)}$$ After simple maths, you got ${(1)}/{(2)}$ is a vector equation, i.e. we've made a new equation with physical meaning unknown. Is there any physics concept behind this? Futhermore, for rigid bodies with their shape, can we also find out their angular velocity by providing conservation of angular momentum?


Find the limit of $a_{n + 1} = \frac{{1 + a_n + a_n b_n }}{{b_n }} $

Let $a_n$ and $b_n$ be two sequences defined by the recurrence relation  \begin{align} a_{n + 1}  = \frac{{1 + a_n  + a_n b_n }}{{b_n }},\qquad b_{n + 1}  = \frac{{1 + b_n  + a_n b_n }}{{a_n }} \end{align} with $a_1=1$ and $b_1=2$. Find $\mathop {\lim }\limits_{n \to \infty } a_n$.    Simple manipulations yield that  \begin{align} a_n  = \frac{{1 + b_n }}{{b_{n + 1}  - b_n }},\qquad b_n  = \frac{{1 + a_n }}{{a_{n + 1}  - a_n }} \end{align} I tried to find the first few terms of $a_n$ and $b_n$ but it seem that they doesn't have a general form.  Once can see that both sequences increasing fast and randomly.  Also, I tried to insert $b_n$ in $a_n$, but I got a complicated result and it doesn't help or indicate to anything.  Any help is appreciated. Thanks


Why does this code not work as intended?

I'm writing a simple method that takes grades as input from the user and calculates the Grade Point Average. Here is my code:   public static double calculateGPA(){    Scanner in = new Scanner(System.in);     double totalGradePoints = 0; // total grade points    int numClasses = 0; // total classes completed    boolean doneInput = false; // returns true when use is done inputting grades     System.out.println("Enter all your grades (A,B,C,D,F) and enter 'done' if you are done entering your grades.");      while (!doneInput) {            String grade = in.next();        if (grade == "A") {          totalGradePoints += 4;          numClasses++;       } else if (grade == "B") {          totalGradePoints += 3;          numClasses++;       } else if(grade == "C") {          totalGradePoints += 2;          numClasses++;       } else if(grade == "D") {          totalGradePoints += 1;          numClasses++;       } else if(grade == "F") {          numClasses++;       } else {          doneInput = true;       } //end if - else-if - else statement    }//end while loop    double unwtGPA = (totalGradePoints/numClasses);    return unwtGPA; }   When I tested the method, I was only able to input one grade and none of the variables incremented, can somebody tell me what's wrong with the code?


How can I restrict a user to only enter a number in an input field?

Trying to limit the user to only enter numbers in a text field.


Covariance between two products of two different type of random variable

Let's say there are four random variables: $A_1$, $A_2$, $B_1$, $B_2$  Same letter correlated;  different letter independent:   $A_1$ and $B_1$ independent $A_1$ and $B_2$ independent $A_1$ and $A_2$ dependent $B_1$ and $B_2$ dependent   Let's think about product of them. I know that if $X$ and $Y$ are independent, $E(X Y)=E(X) E(Y)$ I know that for a variance case. $$Var(A_1 B_1 )=E(B_1)^2 Var(A_1 ) +E(A_1)^2 Var(B_1)+Var(A_1 )Var(B_1 )$$  What about covariance? For example, is this below correct? $$Cov(A_1 B_1,  A_2 B_2 )=E(A_1 B_1 A_2 B_2 )-E(A_1 B_1 )E(A_2 B_2 ) =E(A_1 A_2)E(B_1 B_2 )-E(A_1)E(B_1)E(A_2)E(B_2) $$


Finding Large Bases with Large Exponents

I'm given the question to find:  $151 678 213 ^{115431217}\pmod{10}$  I know that 10 is not prime, so I can't use fermats theoreom. So I've attempted using eulers totient function  I know that:  $a^{\phi(n)} = 1\pmod n$  Since this is true, this is what I've tried:  $\phi(10) = 4$  $a^4 = 1\pmod {10}$  But what do I do now?  I have a large base and a large exponent, and I'm not sure how to continue from here, any help would be much appreciated,


C++: call cosntructor of base class in a derived class without a constructor

I want to make a simple wrapper B around a complex class A. A has many different constructors. The class B does not have any constructors, so how can I automatically pass the constructor arguments to the base class A, without needing to implement them all in B?  Here is a simple example of what I want to do:  class A { public:    A(int a);    A(const& A);    // etc ... };  class B : public A {    int b; };  void main() {    B b(0);  // Since B does not have a constructor, I want it to dispatch to A::A(int) }   note: A is a class from some package so I can not simply add my int b to A.


Python Requests - Forbidden Error (Directory issue i.e. ../ reduction )

Code  hostDir = 'https://www.example.com/a/b/' path = '../../script.js' x = hostDir + path import requests print(requests.get(x).content.decode('utf-8'))   When I run above code, it gives following error:   <TITLE>Access Denied</TITLE>
Access Denied
  You don't have permission to access "http&#58;&#47;&#47;www&#46;xyz&#46;com&#47;a&#47;b&#47;&#46;&#46;&#47;&#46;&#46;&#47;script&#46;js" on this server.
 Reference&#32;&#35;18&#46;3da21ab8&#46;1546852663&#46;7da6a685     I can see that this issue is due to path '../../' and '/a/b/' but requests module is not able to convert it to ''  Considering '../../' and '/a/b/' both can be any number of times.  Please help me out to deal with this problem so that it can be converted into ''


Where and how does TeX define the character sequence `` and '' ?  From the TeX * prompt, how does one "show" the definition?


I know I can only use the gym feature after hitting level 5, but are there any other privilege or rewards for the levels above 5?  For example, in Ingress, some items are only available for the higher level player. How about Pokemon Go?


Merging duplicate accounts in Apex - Governor limits

I am trying to find duplicate accounts in the system and trying to merge them based on our filter criteria using apex. The issue is I am hitting the governor limit of 150 DML statements while doing this.  We will have to put the merge statement inside the loop as we need the parent and child as the parameters in the merge statement. I don't think we can bulkify Merge like other DML statements due to the above reason. I am not sure if there is any better way to do it and avoid hitting governor limits.  Any help in this regard would be greatly appreciated.  Code that I have tried is included below  global class LoyaltyAccountBatch implements Database.batchable<sObject>{        global Database.QueryLocator start(Database.batchableContext info){           String query;         query = ('SELECT  Id FROM  LoginHistory LIMIT 1');          return Database.getQueryLocator(query);    }       global void execute(Database.batchableContext info, List<LoginHistory> scope){             // Get those records based on the IDs         List<Account> templst1 = [SELECT Id,UniqID from account where createddate = LAST_N_DAYS:4 and UniqID <> ''];             system.debug('templist is '+templst1);               Set<String> insertedRecords = new Set<String>() ;         for (Account a : templst1)  {         insertedRecords.add(a.UniqID);     }                 List<Account> templst = [SELECT Id,UniqID from account where NewUniqID IN : insertedRecords                                   order by NewUniqID,UniqID asc];         // Process records          for(integer i=0;i+1<templst.size();i++)          {             if(templst[i].UniqID <  templst[i+1].UniqID)                     {                 system.debug('ids are '+templst[i].UniqID+'-->'+templst[i+1].UniqID);                 String str = '1'+templst[i].UniqID.substring(1,templst[i].UniqID.length());                 String str1 = '1'+templst[i+1].UniqID.substring(1,templst[i+1].UniqID.length());                 system.debug('str is'+str);                 system.debug('str1 is'+str1);                 if(str.equals(str1))                 {                     Merge templst[i+1] templst[i];                     system.debug('value of i is'+i);                 }              }         }        }          global void finish(Database.batchableContext info){         }   }


In the working world what's the global standard for structuring functions?

Another user told me this is the more correct way to structure the functions: A program which displays user info (name, age and address).  def details(user_age, user_name, user_address):     print(f"{user_name} is {user_age} and lives at {user_address}.")   def main():     user_age, user_name, user_address = int(input("Enter age: ")), input("Enter name: "), input("Address: ")      details(user_age, user_name, user_address)   if __name__ == '__main__':     main()  Compared to: def details():     print(f"{user_name} is {user_age} and lives at {user_address}.")   user_age, user_name, user_address = int(input("Enter age: ")), input("Enter name: "), input("Address: ")  details()  Is code dynamic? Are there structure changes on a per project basis? Or is the above code simply the general layout/template for functions?


In X-Men 3:The Last Stand, we see that Professor Charles Xavier died and Jean Grey killed him, and his body turned into pieces.  But in X-Men: Days of Future Past he's alive and well.  I'm pretty surprised that nobody asked about this before. Maybe the answer is too obvious and I'm missing something in the previous movie. I'm not following the comic, so I don't know that maybe this movie is set in an alternate universe.  ADDITION: in the extra scene after the credits in X-Men 3: The Last Stand we see that Xavier has transferred his consciousness to the other body. But his own body already destroyed, so how can he regain his original body?


On a Physics specification, it says:     6.7 Know how to use two permanent magnets to produce a uniform magnetic field pattern.   Isn't it "produce an uniform magnetic field", or is the existing "produce a uniform magnetic field pattern" correct?


Is such usage of negation acceptable in everyday conversation?

Let's begin with a sentence such as:     We can't do this any more.   This is the most standard form and grammatically perfect. But I have also seen or heard many times in some informal occasions (maybe that is a fad), esp. in pop lyrics, some sentences like this one      We can't do this no more   or even     Ain't got no money in my pocket   I'm most aware that such a "fad" is grammatically incorrect and definitely unacceptable in formal occasions. But, what about using it in some informal occasions like everyday conversations? Would that be acceptable? and, since I'm not a native speaker, I want to ask: would such usage (in informal occasions of course) make me appear less "alien" to those native speakers? Or,is it that I better not use it in any case? Thanks for any advice.


I would like to run Ubuntu headless , keyboard less, and mouse less.  I plan on logging in remotely to the box from a Mac. The primary reason for doing this is lack of space.  How can I install and setup this up without hassles?  Meaning, I don't want to have recompile my kernel or tweak driver settings.   Thanks


Are non-parametric methods preferable to parametric methods since the former do not force the model to have a parametric structure?


I recently upgraded to 16.10 and found most things that worked in 15.10 are working in 16.10 - - with one notable exception: gnome-schedule.  Many of the suite of gnome utilities are in 16.10 but not gnome-schedule.  Downloaded the source code for gnome-schedule v 2.3 and it says it needs autoconf v 1.7 - - 16.10 says that v 1.5 is the latest.  errrrr!  Any chance we can get gnome-schedule added to Ubuntu repositories anything soon?


Why are some ports reported by nmap filtered and not the others?

I'm scanning a server which should have a pretty simple firewall using iptables: by default everything is DROPped besides RELATED and ESTABLISHED packets. The only type of NEW packets allowed are TCP packets on port 22 and 80 and that's it (no HTTPS on that server).  The result of nmap on the first 2048 ports gives 22 and 80 as open, as I expect.  However a few ports appear as "filtered".  My question is: why do port 21, 25 and 1863 appear as "filtered" and the 2043 other ports do not appear as filtered?  I expected to see only 22 and 80 as "open".  If it's normal to see 21,25 and 1863 as "filtered", then why aren't all the other ports appearing as "filtered" too!?  Here's the nmap output:  # nmap -PN 94.xx.yy.zz -p1-2048  Starting Nmap 6.00 ( http://nmap.org ) at 2014-06-12 ... Nmap scan report for ksXXXXXX.kimsufi.com (94.xx.yy.zz) Host is up (0.0023s latency). Not shown: 2043 closed ports PORT     STATE    SERVICE 21/tcp   filtered ftp 22/tcp   open     ssh 25/tcp   filtered smtp 80/tcp   open     http 1863/tcp filtered msnp   I really don't get why I have 2043 closed ports:  Not shown: 2043 closed ports   and not 2046 closed ports.  Here's an lsof launched on the server:  # lsof -i -n COMMAND   PID USER   FD   TYPE   DEVICE SIZE NODE NAME named    3789 bind   20u  IPv4     7802       TCP 127.0.0.1:domain (LISTEN) named    3789 bind   21u  IPv4     7803       TCP 127.0.0.1:953 (LISTEN) named    3789 bind  512u  IPv4     7801       UDP 127.0.0.1:domain  sshd     3804 root    3u  IPv4     7830       TCP *:ssh (LISTEN) sshd     5408 root    3r  IPv4 96926113       TCP 94.xx.yy.zz:ssh->aa.bb.cc.dd:37516 (ESTABLISHED) sshd     5411    b    3u  IPv4 96926113       TCP 94.xx.yy.zz:ssh->aa.bb.cc.dd:37516 (ESTABLISHED) java    16589    t   42u  IPv4 88842753       TCP *:http-alt (LISTEN) java    16589    t   50u  IPv4 88842759       TCP *:8009 (LISTEN) java    16589    t   51u  IPv4 88842762       TCP 127.0.0.1:8005 (LISTEN)   (note that Java / Tomcat is listening on port 8009 but that port is DROPped by the firewall)


I've noticed a strange behavior using the babel and quantikz packages. The following code: \documentclass{standalone}  \usepackage[english]{babel} \usepackage[T1]{fontenc}  \usepackage{tikz} \usetikzlibrary{quantikz}  \begin{document}     \begin{quantikz}         \lstick{\ket{0}} & \phase{\alpha} & \gate{H} & \phase{\beta} & \gate{H} & \phase{\gamma} & \rstick{Arbitrary\\pure state}\qw     \end{quantikz} \end{document}  produces the following output:  while changing the english option to the french one in babel produces the following:  This happens when loading babel with french, frenchb, french, english or english, french options. Loading babel without any options works as expected. Any idea on how can I have babel in french while having the possibility to use \lstick and \rstick? And any idea on why does quantikz behave like this in the first place?


I have to prove the following theorem(Apostol's Calculus I, exercise 1 page 19):  If $ab = 0$ then either $a = 0$ or $b = 0$.  My attempt to solve it was: $ab = 0$ can be rewritten as $ab = a0$, because $a0 = 0$(already been proved). So we now can cut a on both sides(already been proved too), so we have $b = 0$. Also, we could rewrite the original equation as $ab = b0$ and b on both sides of equation and turn it into $a = 0$.  I think my proof covers the basic steps but I don't think it's asserting anything.


In optics it is widely mentioned real images are projectable onto screens whereas virtual ones can only be seen by a person.  Isn't that contradictory?  I mean in order to see the virtual image it has to be projected onto the retina (ultimately acting as a screen).   So, why can you see  in the first place?


Showing existence of roots of a complex number

Let $a\in \mathbb C$ be non zero. I tried to prove that there exist exactly $n$ different complex numbers $z_k$ such that $z_k^n = a$.     Please could someone tell me if my proof is correct?   We write $a$ in polar coordinates: $a = r e^{i \varphi} = r e^{i \varphi + i 2 \pi} = r e^{i \varphi + i 2 \pi k}$.  Let $z_k = r^{1\over n} e^{{i \varphi + i 2 \pi k \over n}}$. Then it is clear that $z_k^n = a$. We therefore have to show two things: that there are no more than $n$ such numbers and that if $k \neq j$ then $z_k \neq z_j$ for $k,j \in \{0, \dots, n-1\}$.  (i) Assume there are more and let $z_1, \dots , z_{n+1}$ be $n+1$ such numbers. Then $p(z) = z^n - a$ is a polynomial of degree $n$ with $n+1$ roots. This is a contradiction.     This part is my main concern, is it enough to argue like this?:   (ii) If $z_k = z_j $ then we have $ e^{{i \varphi + i 2 \pi k \over n}} =  e^{{i \varphi + i 2 \pi j \over n}}$. Equivalently, $ e^{{i 2 \pi k \over n}} =  e^{{ i 2 \pi j \over n}}$. But if ${2 \pi k \over n} = {2 \pi j \over n}$ modulo $2 \pi$ then $k = j$ since ${k \over n}, {j \over n} <1$.


Multidimensional Cantor diagonal argument for ordering infinite sets

Cantor diagonal argument is a powerful proof technique. It has been used for a lot of proofs. For instance, it has been used to prove that $|\mathbb{N}| < |\mathbb{R}|$.  What can we say about the cardinality of $\mathbb{N}^m$, being $m$ a positive integer?  Can I relate the cardinality of $\mathbb{N}^m$ and $\mathbb{N}^p$, being $p$ another positive integer?   At a first glance, I can say that $|\mathbb{N}^m| < |\mathbb{R}^m|$. I don't know if this is right... It somehow makes sense and I just hope that this is an inherited property.  On the other hand, I don't feel good saying that $$|\mathbb{R}^m| < |\mathbb{N}^{m+1}|.$$  Now, I would like to know if there exists some kind of ordering for these sets cardinality (I guess so).  If it exists, can it be proved again using the Cantor diagonal argument? I mean, is there a multidimensional variant of this proof-strategy?


Suppose $X_{1},X_{2},\ldots$ be i.i.d. random variables such that $E\left[X_{i}\right]=\mu$ and $Var(X_{i})=\sigma^{2}<\infty$. Let $\bar{X}=\left(X_{1}+\cdots+X_{n}\right)/n$. Show that $\frac{1}{n}\overset{n}{\underset{i=1}{\sum}}\left(X_{i}-\bar{X}\right)^{2}\rightarrow\sigma^{2}$ a.s.  Solution: Let $S_{n}=\frac{1}{n}\overset{n}{\underset{i=1}{\sum}}\left(X_{i}-\bar{X}\right)^{2}$. By Chebyshev's Inequality, $\sum_{n=1}^{\infty}P\left(\left|S_{n}-E\left[S_{n}\right]\right|>\varepsilon\right)\leq\sum_{n=1}^{\infty}\frac{Var(S_{n})}{\varepsilon^{2}}$. And we know that $E\left[S_{n}\right]\rightarrow\sigma^{2}$, so I would like to finish this proof by using first Borel-Cantelli Lemma if I can show the right hand side is summable. However, $Var(S_{n})=\frac{2\sigma^{4}}{n-1}$, so the sum is infinity, which means it doesn't converge almost surely. Where am I wrong?


In Rudin's POMA, the 7.29 theorem says:  Let $\mathcal{B}$ be the uniform closure of an algebra $\mathcal{A}$ of bounded functions. Then $\mathcal{B}$ is a uniformly closed algebra.  I understand the part proving that $\mathcal{B}$ is an algebra but not that which is uniformly closed. Shouldn't we prove that there exist $(f_n) \in \mathcal{B}$ s.t. $f_n \rightarrow f$ uniformly ?  Proof: If $f, g \in \mathcal{B}$ there exist uniformly convergent sequences $(f_n), (g_n)$ s.t. $f_n \rightarrow f$, $g_n \rightarrow g$, $f_n, g_n \in \mathcal{A}$. Since we are dealing with bounded functions, it is easy to show that:  $f_n + g_n \rightarrow f+g$ $f_n g_n \rightarrow fg$ $c f_n \rightarrow cf$  where $c$ is any constant, the convergence being uniform in each case. Hence $f+g \in \mathcal{B}, fg \in \mathcal{B}, cf \in \mathcal{B}$, so that $\mathcal{B}$ is an algebra. By theorem 2.27, $\mathcal{B}$ is uniformly closed. Theorem 2.27: If $X$ is a metric space, and $E \subset X$ then:  $\bar{E}$ is closed $E = \bar{E}$ iif E is closed $\bar{E} \subset F$ for every closed set $F \subset X$ s.t. $E \subset F$


\begin{frame}[] and \section{...} results in multiple sections

I am writing my first presentation slides with Latex using beamer.  But I run into a silly problem. It is similar to the code below:  \documentclass{beamer} \begin{document}  \begin{frame} \tableofcontents \end{frame}  \begin{frame}[<+->] \section{First Section} \begin{itemize} \item <1-> First item \item <2-> Second item \item <3-> Third item \item <4-> Forth item \end{itemize} \end{frame}  \end{document}   This results in four sections named First Section. How can you tell Latex that this is only one section?  Thank you in advance!


What is the difference between “say” and “tell”?

I really get confused when to use say and when to use tell. Which is appropriate in the following:   What did he tell? / What did he say? What are you saying? / What are you telling?


Does anyone know if it is possible on Ubuntu touch to launch an app from the Terminal?  I already tried launching an app by simply typing fir example 'gallery', bit this doesn't work.


Remove the unwanted vertical bar at the end of the string JS

I have quite a similar input to output code scenario as this one:   I am using AngularJS 1.5.7. Ng directives that my input - ( first ) textarea uses are the same as those shown in Plunkr (ng-list, ng-trim...). My output, unlike the Plunkr example, is displayed inside a ( second ) textarea, but logic is quite similar. $scope.outputValue is an output array which I am converting to string, and implementing 1 RegExp afterwards:    $scope.outputValue  =  $scope.outputValue.toString(); $scope.outputValue  =  $scope.outputValue.replace(/,/g, " | ");   Problem is that the generated string always adds an extra " | " at the end of itself. Often times an output looks like this if the user passes a couple of empty array items inside a first textarea:  var foo = "one | two | three | four | | | | |";   But what I really need to display is this:  var foo = "one | two | three | four";   The only thing that is important is to remove all the "|" that get attached to the end of the string as a replacement of ',' but the output can have "|" values as well, therefore:  var foo = "one| | ||two| | three| | four||";   would also be a valid output.  Similar thing happens with Plunkr example, as it generates empty array items and separated by commas.    Is there any RegExp that might be useful for this problem?  Thanks, Nenad


Pigeonhole principle: From any ten two-digit numbers we can take two subsets with the same sum

Given a set $B \subseteq \{10,11,12,\dots,99\}$ such that $\lvert B\rvert = 10$ show there are at least two disjoint non empty subsets of $B$ such that their sum is equal.   I want to use pigeonhole principle, but a little confused, How can I know how many disjoint subsets of $B$ exists? Am I in the right direction?  Thanks.


Astronauts visit a spot in space, to gain valuable knowledge but always dies in 24 hours returning earth and not speaking anything

The novel is about cargo cult, a primitive civilizations conducting various acts in order to return with goods from an advanced civilization, like someone entering a blackhole and returning with a 4k tv in 1900s   Astronauts are sent to a space to this place to gain unknown knowledge/ technology, but the astronauts returning Earth are either dead or die in 24 hours. The astronauts won't speak of their experience or are too frightened of their experience The protagonist is some sort of a social worker/psychologist/ therapist, his duty is to relieve the emotions of those astronauts returning Earth and try to get them to speak up about their experience.  Toward the end, the book mentions some astronauts returning to Earth with a cure for cancer. One astronaut dies in the space shuttle scrawling words around the wall of the shuttle.   The novel is related to lovecraftian horror/ cosmic horror.


Purge unused data (e.g. particle system, or groups) by script

How can I completely remove a objects (e.g. particle system or groups used in particle systems) in blender using python?  The problem is this: I have a script, with which I create a scene (e.g. adding some normal objects and some group of objects with a particle system). For a research study I would like to repeat that that several times, without restarting blender. So I can create a scene, delete everything, e.g. with a script like this:  import bpy scn = bpy.context.scene for obj in scn.objects:     obj.select = True bpy.ops.object.delete()   If I rerun the script to recreate the scene with objects using particle system, the latter is not shown in the scene anymore (only the placeholders of the particle system). Now I'm not sure where exactly the problem lies, but I guess not everything is immediately deleted, running the script above. Only the startup of blender helps (but that's not what I want) or pushing the purge button. The purge button seems to start the command:  bpy.ops.outliner.orphans_purge()   But I can't get this piece of code to run in the console. It says that "the context is incorrect". Is there a way to purge the unused data by python script? Thanks a lot for any help.


Keyup Event not working with jquery generated fields

I have dynamically generated a table data with jquery. Initially when i did it with php the keyup event was working perfectly and i was able to find the product of .qestimate and #number_of_houses for each row of the table in the T.Amount Column but now its not working, the code listing   Html:

                                         No.	                                         Material	                                         Qty	                                                                          T. Amount

   JQuery:    $(document).ready(function() {        table=$('.tg-table-light-1');        $.getJSON("<?php echo base_url() . 'material_estimation/loadEstimates' ?>/", function(materialdetails) {         i=1;     $.each(materialdetails , function(i, materials){     newmaterials= materials.Materials;     sanitized_newmaterials=newmaterials.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>?/gi, '');     data="
      "+i+"	\n\                   "+sanitized_newmaterials+"	\n\                   <input type=\"text\"  style=\"width:40px; text-align: center;\" class=\"qestimate\" name=\"qestimate[]\" value=\""+materials.Quantity_estimate+"\"/>	\n\                 <input type=\"text\"  style=\"width:40px; text-align: center;\" class=\"tqty\" name=\"tqty[]\" value=\""+materials.total_quantity+"\"/>	\n\
";                        table.append(data);                      i++;                      });                                         });   //The trigger event   $(".tg-even input").keyup(multInputs);   //The function I am calling but not working   function multInputs() {                 var mult = 0;                  $("tr.tg-even").each(function() {                     // get the values from this row:                     var $val1 = $('#number_of_houses option:selected').val();                     var $val2 = $('.qestimate', this).val();                     var $total = ($val1 * 1) * ($val2 * 1);                     var qty = $('.tqty', this).val($total);                   });           }   })


calculate basis for the orthogonal column space

Give a basis for  $(Col(A))\bot$ where $A$ is defined as follows:  $A =\begin{pmatrix}-1&3&1\\ 2&2&1\\0&8&3\end{pmatrix} -> \begin{pmatrix}1&0&1/8\\ 0&1&3/8\\0&0&0\end{pmatrix}$  My plan:   put matrix in a row reduced echelon form and create a basis for the nullspace:   $basis = \begin{pmatrix}-1\\-3\\8 \end{pmatrix}$   Then I wanted to find a vector that is orthogonal and has no 0 in it. I was thinking of $basis\bot = \begin{pmatrix}2\\2\\1 \end{pmatrix}$   this is apparently not a good way.  can someone help me and explain to me what steps I have to make. i choose for this one because $basis \cdot basis\bot = 0$  the given answer for this question is:$\begin{pmatrix}2\\1\\-1 \end{pmatrix}$   answer from the professor ( this question is an exam question):


In $\mathbb{R}^n$, locally lipschitz on compact set implies lipschitz

I need to prove:  Let $A$ be open in $\mathbb{R}^m$, $g:A \longrightarrow \mathbb{R}^n$ a  locally lipschitz function and $C$ a compact subset of $A$. Show that $g$ is lipschitz on $C$.  Can anyone help me?


Make screen yellow (read mode like in Xiaomi phone)

I want to try if it can increase my reading productivity.


Does the existential quantifier distribute over an implication?

Does $\exists$ distribute over an implication? ie. Is $\exists x \in \mathbb{R}, (p(x) \rightarrow q(x))$ logically equivalent to $(\exists x \in \mathbb{R}, p(x)) \rightarrow (\exists x \in \mathbb{R}, q(x))$. If so, can you give an example of $p(x)$ and $q(x)$ to demonstrate?  Thanks very much for any help in advance.


How do I count the number of unique visitors to Pages

How do I get the number of Unique visitors to the page? I need to get Unique visitors on each page or at the content level, how can I get it?


Is it possible to have particles update at half the framerate?

I'm trying to make an animated fire that plays at a 12fps but still have the camera move at 24fps. For the fire itself, i used the stepped interpolation modifier and that worked fine, but now I'm trying to do the same with the particles emitting from the fire. I've been searching for hours but haven't found anything.


How to change the chapter number to display as text (One, Two, ...)?

In LaTeX, how do I change the chapter number to display as text? eg:  CHAPTER ONE not CHAPTER 1;  CHAPTER THIRTEEN not CHAPTER 13.


One Excel file, multiple editing users, live updates

I have an automated program which is working on Excel workbooks. When someone opens the workbook currently being processed, they will get a read-only message. If multiple users/programs try to open a file at the same time, all of them open it successfully. Still, only the last saved changes will be kept, messing up the whole process.  So the question is if there is any way to configure an Excel workbook to be capable of simultaneous editing with any changes appearing immediately to all other users?  Office 2010-2013


convergence and divergence test on an exponential function

I am trying to test the convergence/divergence of this:  $$\int_0^\infty x \sin(e^x) \, dx $$ by any method  I looked through convergence test and integral test


Which is the RAID level meeting the following criteria?

We have 3 HDDs, same capacity (2TB). Which RAID level allows me to use 4TB of space and in case any of the 3 HDDs fails (but only one) I have all the 4TB untouched and safe?


Sqlite does not return correct primarykey in php

I am creating a movie database for a school project, and im trying to add 2 values to a many to many relation in sqlite. However, for some reason the second query does not return the primarykey of the newly added movie, but always a 1. I have tested the queries with sql, and then they returned the values like normal, so I dont think theres something wrong with the sql queries.  public function add_movie($title, $genre, $actor, $director, $agecategory, $warning){            $query1 = $this->db->prepare(             "INSERT INTO movie             (title, agecategorynumber) VALUES (?,?);"         );         $query1->bindValue(1, $title);         $query1->bindValue(2, $agecategory);          try{             $query1->execute();                  }catch(PDOException $e){             die($e->getMessage());         }          $query2 = $this->db->prepare(             "SELECT movie.movienumber             FROM movie             WHERE movie.title LIKE ?"         );         $query2->bindValue(1, $title);          try{             $titlenumber = $query2->execute();         }catch(PDOException $e){             die($e->getMessage());         }             $query3 = $this->db->prepare(             "INSERT INTO movieactor             (movienumber, actornumber) VALUES (?,?);"         );         $query3->bindValue(1,$titlenumber);         $query3->bindValue(2,$actor);          try{             $query3->execute();         }catch(PDOException $e){             die($e->getMessage());         }        }


With \includegraphics I can give the width of the resulting image (which would be scaled).   How can I give a maximum width of the image? That is, if the original is smaller than X, I'd like to keep the smaller image, if the image is larger than X, then the image width should be X.  Using pdflatex/graphicx.


Is it possible to travel London city when I am in transit for more than 8 hours?

I am traveling to Paris via Ryanair from Copenhagen and there is a 9 hours layover in London, UK. I am planning to go out of the airport for 3 or 4 hours to visit the city during my layover. Do I need to have a transit visa or a general tourist visa, or can I simply go without a visa? I have a residence permit of Denmark. I am from Nepal.


How save and recover dynamic object with binary file in C++

I have a problem with some code, I need to save an Dynamic object in a binary file. I tried to do as static objects but doesn't work I tried this I have a problem with some code, I need to save an Dynamic object in a binary file. I tried to do as static objects but doesn't work I tried this   CGame* obj_juego;//objects is already created //Save ofstream ofile("Jetpack_Joyride.bin", ios::binary); if (ofile.is_open())     {         char* data = reinterpret_cast<char*>(obj_juego);         ofile.write(data, sizeof(CGame));         ofile.close();     } ///Load CGame* aux2 = nullptr;     ifstream ifile("Jetpack_Joyride.bin", ios::binary);     if (ifile.is_open())     {         ifile.read((char*)aux2, sizeof(CGame));         ifile.close();     }     class CGame { private:     CLista_doble_F<CLevel>* arreglo_niveles;     CLevel* obj_nivel;     CBarry* player;     Array_bg* background;     int cantidad_niveles;     int dificultad;     int dron_intervalo;     bool vidas;     int general_speed;     int cont_speed;     int checkpoint;     int checkpoint_level;     bool is_empty;  public:     CGame()     {         arreglo_niveles = new CLista_doble_F<CLevel>();         player = new CBarry(100,520);         cantidad_niveles = 0;         background->set_activado(true);         dificultad = 1;     }//some other code


Pointer error when deleting duplicates in a Linked List

I want to delete all duplicates from a linked list. I know there is an exact program on GeeksForGeeks which is very similar to mine and I could use that, but I want to understand why mine is not working. Code: class Node {     public:         int data;         Node *next;   };  void removeDuplicatesAlpha(Node* start) {     Node* ptr1 = start;     Node* ptr2 = NULL;     Node* dup = NULL;     int i = 0;      /* Pick elements one by one */     while (ptr1 != NULL && ptr1->next != NULL)     {         ptr2 = ptr1->next;         //0 1 2 3 4         /* Compare the picked element with rest            of the elements */         while (ptr2 != NULL && ptr2->next != NULL)         {             cout << i;             i++;              /* If duplicate then delete it */             if (ptr1->data == ptr2->data)             {                 /* sequence of steps is important here */                 dup = ptr2;                 ptr2 = ptr2->next;                 delete(dup);             }             else /* This is tricky */                 ptr2 = ptr2->next;         }         ptr1 = ptr1->next;     } }  int main() {     Node* head = NULL;      push(&head, 3);     push(&head, 3);     push(&head, 20);     push(&head, 14);     push(&head, 9);     push(&head, 20);     push(&head, 20);      printList(head);      //removeDuplicates(head);     removeDuplicatesAlpha(head);      printList(head);      deleteList(&head);      return 0; }  The last i printed is 4. This is the error: Exception thrown: read access violation. ptr2 was 0xDDDDDDDD. I'm so sorry if this is a dumb question but I just started working with Data Structures in C++.


When i try to pass the Latitutde and longitude throwing a null pointer

I am trying to pass the Latlng from MapsAutocomplete place activity to maps activity where i have the map view but when i try to pass lat lng to moveCamera method its showing null pointer exception but in my logs i am able to get the longitude and latitude can anyone help me with this problem. Thanks  The method where i pass the latlng to another activity:      private void NavigateToMaps(LatLng latLng){      Intent intent = new Intent(Maps2.this,Maps.class);     intent.putExtra("Location", latLng);     startActivity(intent);     Log.d(TAG, "NavigateToMaps: Clicked");  }   In my receiving activity where i need to show the address in the map pointer view:  @Override protected void onCreate(@Nullable Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.map_view);      getLocationPermission();     LatLng locationAdd = getIntent().getExtras().getParcelable("Location");      Log.d(TAG, "onCreate: location" + locationAdd);      double latitude1 = locationAdd.latitude;     double longitude1 = locationAdd.longitude;      moveCamera(new LatLng(latitude1,longitude1),DEFAULT_ZOOM,"SelectedLocation");   }      private void moveCamera(LatLng latLng, float zoom,String tittle){     Log.d(TAG, "location: moving the camera to: lat: " + latLng.latitude + ", lng: " + latLng.longitude );     mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, zoom));     MarkerOptions options = new MarkerOptions()             .position(latLng)             .title(tittle);     mMap.addMarker(options); }   In my log i am able to get latLng but null pointer is thrown:  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.moveCamera(com.google.android.gms.maps.CameraUpdate)' on a null object reference         at com.example.mappy.Maps.moveCamera(Maps.java:60)  2020-04-24 18:34:30.028 4051-4051/com.example.mappy D/Maps: onCreate: locationlat/lng: (13.007805,80.1273649) 2020-04-24 18:34:30.028 4051-4051/com.example.mappy D/Maps: location: moving the camera to: lat: 13.007805, lng: 80.1273649


I thought I hated math at first, but linear algebra really changed my outlook on mathematics. What I really didn't like was calculus, which is fine, there are plenty of folks who would love to focus on purely calculus.  My question is whether there is a comprehensive history of linear algebra?  The only two sources I've found of note is a  and this book called   Does anyone else know of anymore?


I am trying to implement logistic regression where the label space is {-1,+1} instead of the usual {0,1}. I know that I can model this as a 0-1 problem but nevertheless I wanted to see if I can derive this from first principles (using MLE).   The min log likelihood expression I get is:  $ \  l(\theta) = \Sigma_{i=1}^{m}\ \log(1+exp(-y^{i}\Theta^{T}x^{i})) $ where $\{\dots \ (x^{i},y^{i}) \dots \} $ are the $m$ training examples (x is a $n$-dimensional vector).  So now I try to find the gradient for this and I get:  $ \frac{\partial l(\theta)}{\partial \theta_j} = \frac{\mu.y.x_j}{1+\mu} $ where $j=1\dots n$ are the indices corresponding to features and $\mu = exp(y\Theta^{T}x)$  However, when I try to solve this with Matlab's  I do not get any updates on my initial weight vector. My Matlab code for this is:   temp1 = exp((-y).*(X*w)); temp2 = temp1.*((1+temp1).^(-1)).*y; grad  = (X'*temp2);   Can somebody point what I am doing wrong here?


Is there a rule forbidding the use of “is” at the end of a sentence?

Is there any justification for using “is” at the end of an English sentence, or is there a rule that forbids this?


Why is a value never NOT in collection with nulls?

I wasn't getting any results where I expected them and long story short I found this odd behavior:  select 1 where 'a' in ('a', 'b', null)  -> 1  select 1 where 'a' NOT in ('b', 'c', null)  -> empty resultset   I'm relatively new to SQL Server (coming from MySQL) but this seems a bug to me, is this expected/desired behavior? I'm aware of the anything + null == null paradigm, but if that's the explanation, then I would expect the first query to return an empty resultset just the same.  I also tried:  select 1 where NOT ('a' in ('b', 'c', null))   again an empty resultset, I'm confused now...  I added where [mycolumn] is not null to my original query, problem solved, but I'm just curious.  Edit  I see from the duplicate marking that this depends on the setting of ansi_nulls. When this is on, null is treated as unknown. And yes I can see that you cannot say with certainty that any value is absent in a collection that has an unknown value.  Why would you want to regard null as unknown though? They are very different concepts to me.  null means there is no value, like asking what's in the [gum] drawer to someone whose cabinet doesn't have a [gum] drawer. unknown means there IS a value, but for some reason we don't have access to that value. Maybe the [gum] drawer is locked, it might have content, it might be empty, but it's not null, it's unknown.  Where is my thinking off with this?


How do I enter formulas on 'Mathematics' or 'Theoretical Computer Science'?

The help icon only leads to a general Markdown reference.   The way to enter formulas should be mentioned, preferably in a separate section and with a link to a Tex reference.


Don't clear the message edit history on pressing Esc in chat

While I had been typing out a message, I had accidentally pressed Esc instead of `, which resulted in chat clearing the whole message I have written, together with the edit history, so pressing Ctrl+Z didn't help.  It would be nice if this pitfall was removed, or at least, if it didn't clear the edit history.


Does the iPhone 8 have any sort of water resistance or waterproof manufacturing?

I recently got the iPhone 8. After some research, I found that it had the IP67 rating. I'm not sure what this means though especially for a steamy room.  Does this rating mean that it is fully waterproof, or is it only waterproof for a certain number of meters?


We are currently facing attacks (probably DDOS) on our server. The incoming network traffic goes from an average of 20Mbps to 1Gbps in just 2-3 minutes. The lines in our log files usually look like: 101.101.101.101 - - [23/Nov/2020:01:01:01 +0200] "GET /wp-content/uploads/image.png HTTP/1.0" 200 425 "https://mypage.com/" "Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/604.1.15 (KHTML, like Gecko) GSA/100.00 Mobile/15E100 Safari/604.1"  However, in the time frame of the attacks the lines look like: 101.101.101.101 - - [23/Nov/2020:01:01:01 +0200] "GET / HTTP/1.0" 200 18710 "https://www.qq.com" "Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/604.1.15 (KHTML, like Gecko) GSA/100.00 Mobile/15E100 Safari/604.1"  So instead of my page, some other websites are somehow called. Beside qq.com, the urls reddit.com, baido.com and some others are called thousands of times. So to my questions:  What does the second entry exactly mean and how does this produce traffic on our server? How can we prevent such requests (firewall, fail2ban etc are already set)?


Word for spelling words as pronounced using the alphabet not IPA

Phonetic spelling is when you spell words using IPA. Is it also called the same when you use alphabet? Just like this:  pronunciation [pruh-nuhn-see-ey-shuh n]


How to update constraints on cell after I set editing on table to true?

This is start layout:    And this is how it looks after I set editing table to true:    When I scroll my table down and up this looks ok:    How to update constraints on these cells once I set editing to true?  THIS QUESTION IS NOT DUPLICATD AS IT WAS MARKED. PAY ATTENTION PLEASE.


Transit Visas for South Africa Undesirable-Overstay Tourists

I received an undesirable status for overstaying a SA visa while hospitalized for injuries sustained in Lesotho. I had to cross into SA from Lesotho. Now I am banned entry into SA until Feb 2016 and though I have submitted a waiver request to remove the undesirable status, I hear from some the waiver request may take 4-5 months or even take longer than the time of banishment.  I have a pre-paid safari planned in October in which I need to fly through Johannesburg to get to Botswana. The Jburg border control requires tourists to pass through SA immigration even when simply changing planes.  1) Will SA grant me "transit" access if I don't leave the airport?  2) Will SA allow me to spend a night in the airport as the layover is 12 hours>  Thanks for passing on any info.


I want to add page number from 531 to 536 in my latex IEEE conference template. But page number appearing from page 2 i.e. 532.  \documentclass[conference]{IEEEtran} %\IEEEoverridecommandlockouts  \makeatletter \let\old@ps@headings\ps@headings \let\old@ps@IEEEtitlepagestyle\ps@IEEEtitlepagestyle \def\confheader#1{%     % for all pages except the first     \def\ps@headings{%         \old@ps@headings%         \def\@oddhead{\strut\hfill#1\hfill\strut}%         \def\@evenhead{\strut\hfill#1\hfill\strut}%     }%     % for the first page     \def\ps@IEEEtitlepagestyle{%         \old@ps@IEEEtitlepagestyle%         \def\@oddhead{\strut\hfill#1\hfill\strut}%         \def\@evenhead{\strut\hfill#1\hfill\strut}%     }%     \ps@headings% } \makeatother  \confheader{ 2020 IEEE International Conference on Computation, Automation and Knowledge Management (ICCAKM) }   %%footer %\usepackage[pscoord]{eso-pic} %\newcommand{\placetextbox}[3]{ %   \setbox0=\hbox{#3} %   \AddToShipoutPictureFG*{ \put(\LenToUnit{#1\paperwidth},\LenToUnit{#2\paperheight}){\vtop{{\null}\makebox[0pt][c]{#3}}} %   } %} %\placetextbox{.23}{0.055}{\small{978-1-5386-8007-0/19/\$31.00~\copyright 2019 IEEE}}     \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{xcolor} \usepackage{float} \usepackage[export]{adjustbox} \usepackage{subcaption}     % %\usepackage[pscoord]{eso-pic} %\newcommand{\placetextbox}[3]{ %   \setbox0=\hbox{#3} %   \AddToShipoutPictureFG{ \put(\LenToUnit{#1\paperwidth},\LenToUnit{#2\paperheight}){\vtop{{\null}\makebox[0pt][c]{#3}}} %   } %} %\placetextbox{.2}{0.055}{978-1-4799-5522-0/15/\$31.00~\copyright 2015 IEEE}   \IEEEoverridecommandlockouts \IEEEpubid{\makebox[\columnwidth]{978-1-7281-0666-3/20/\$31.00~\copyright~2020         IEEE \hfill} \hspace{\columnsep}\makebox[\columnwidth]{ }}      \thispagestyle{plain}     \pagestyle{plain}     \setcounter{page}{531}   \begin{document}  \title{Performance Analysis of Physically     Unclonable Function Based on Voltage Divider Arrays} \author{\IEEEauthorblockN{Sumit Chaudhary$^{1}$}     \IEEEauthorblockA{\textit{Dept. of Electronics and Communication} \\         \textit{MNIT Jaipur, India}\\         2016pev5165@mnit.ac.in}     \and     \IEEEauthorblockN{Chitrakant Sahu$^{2}$}     \IEEEauthorblockA{\textit{Dept. of Electronics and Communication} \\         \textit{MNIT Jaipur, India}\\         chitrakant.ece@mnit.ac.in}}  \maketitle   \end{document}


Let $D$ be a PID and $a$ and $b$ be nonzero elements of $D$. Prove that there exist elements $s$ and $t$ in $D$ such that $\gcd(a, b) = as + bt$.

Let $D$ be a principal ideal domain and $a$ and $b$ be nonzero elements of $D$. Prove that there exist elements $s$ and $t$ in $D$ such that $\gcd(a, b) = as + bt$.   I would like to use some properties of $\text{PID}$s to prove this but I am only thinking of well-ordering principle that is used to prove for integers, which I don't think I can use since $D$ is not necessarily the set of integers, right? Any ideas?


How much current will I get from the 5V rail of a Teensy 3.2 powered over USB?

The microcontroller in question is a Teensy 3.2. My understanding is that the most current that you can get from a standard computer USB port is ~180mA; how much of that will current devices attached to the Teensy's Vin (+5V in the case of USB power) receive?


Say P(A) is 0.4 and P(B) is 0.1 and P(neither) is .7  How would I calculate the probability of P(A and B)? I have looked at conditional probability examples and cannot find one where only P(A) and P(B) is given.


How to remove Windows 10 OS completely & install Ubuntu?

Currently I'm on Windows 10, I want to install Ubuntu OS. I want to fully remove windows OS & want only Ubuntu running on my PC.  Is it possible ?  I will be using Ubuntu mostly to solve JAVA programs & SQL Queries.


How do I make a micro-controller act as a finger on a touch screen?

I want to make a device that I can place on a capacitive touch screen and it will start tapping the screen repeatedly. Is there any way to do this with the Arduino?


Adding account to android device running android version 2.3.6

Had this old phone lying around. I thought I re-purpose it for some IoT stuff. It an old Micromax A50 Ninja (running ginger bread 2.3.6). I want to make an app on this device that communicates with arduino. However, I cannot sign into the device. I re-checked with my credentials else where, and they checkout to be fine. But on this device, the sign-in still fails.  Is this because the OS is outdated? Well, can I do anything on this phone, now that this is the state of the device os?


Can a Beastmaster Ranger riding his Animal Companion take the Dash action every turn in addition to his action?

In the PHB (p 198) there are rules given for mounts:     While you're mounted, you have two options. You can either control   the mount or allow it to act independently. Intelligent creatures,   such as dragons, act independently.      You can control a mount only if it   has been trained to accept a rider. Domesticated horses, donkeys, and   similar creatures are assumed to have such training. The initiative o   f a controlled mount changes to match yours when you mount it. It   moves as you direct it, and it has only three action options: Dash,   Disengage, and Dodge. A controlled mount can move and act even on the   turn that you mount it.   However, the rules for animal companions (PHB93) state:     The beast obeys your commands as best as it can. It takes its turn on   your initiative, though it doesn’t take an action unless you command   it to. On your turn, you can verbally command the beast where to move   (no action required by you). You can use your action to verbally   command it to take the Attack, Dash, Disengage, Dodge, or Help action.   Nothing in the mount rules say that a mount can take an action when it would be unable to without a rider - only that its actions are restricted to those three.  Can the mount dash, disengage, or dodge while the rider also takes an action?


Youtube says "This video is currently unavailable"

Chromium on Ubuntu 12.04. Youtube says:     This video is currently unavailable   I don't know why but this is the case for some videos, but not all. Well, most videos. And I don't know what's wrong.  Anyone help?


I have seen Inception many times. Every time I come with a new conclusion. What I feel is that he is in dream right from the beginning, when he comes to meet syto. But, this is also confusing that he see's his children's face at the end but still at the end Totem is still spinning. Any one with the answer.?


Multiple Entry Visa Cancellation and Applying New Visa

I have a multiple entry Schengen visa that is valid till June 8, 2019 from Dutch Embassy and I have to travel to Italy on June 9, 2019. Do I need to cancel my Schengen visa before applying for new visa?


How do packages know when document class is in draft mode?

Many (all?) document classes have a draft option. Some packages, such as microtype and hyperref, can detect whether or not the class is in draft mode, and take action accordingly.  How do packages know whether or not the document is in draft mode? I see that the memoir class has a draftdoc boolean that is set in draft mode, but this does not appear to be standard among other document classes.  For example:  \documentclass[draft]{article} % or any other class \begin{document} \ifdraftmode % pseudo-code. This I what I seek.   yes \else   no fi \end{document}   So, what I want to know is, what would I really test, rather than the fictitious ifdraftmode?


i want to insert some lines of text(paragraph) in database that is coming from wikipedia page..but mysql is showing this error when i try to insert the data in db: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's capital." can anyone help me to fix this problem.. here is what i have done so far...   <?php     $loc=$_POST["new"];     $url1 ="https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles=".$loc;     $opf = file_get_contents($url1);     $data = json_decode($opf, true);     $titles = array();     foreach ($data['query']['pages'] as $page) {     $des = $page['extract'];      }     $con = mysql_connect("localhost","root","");     if (!$con) {      die('Could not connect: ' . mysql_error());      }      mysql_select_db("location", $con);     $url = "http://upload.wikimedia.org/wikipedia";     echo $sql="INSERT INTO `search`(`id`, `name`, `text`) VALUES ('$loc', '$des');";     mysql_query($sql) or die(mysql_error());      echo "1 record added";     mysql_close($con);     ?>


Map does not appear upon opening print composer in QGIS

When I open my print project in print composer, my map is not there upon opening. There is only a little note that says "your map will print here".  What is going on here?


I'm wondering if there are some macros for annotating listings as below easily. They are primarily used in books from Manning.    Solution  For anyone who's interested, this is my macro I finally got:      \newcommand*{\AddNote}[5]{%     \begin{tikzpicture}[overlay, remember picture]     \coordinate (x) at (#2,0);     \coordinate (a) at ($(x)!(#1.north)!($(x)+(0,1)$)$);     \coordinate (b) at ($(a)+(0.8,0)$);     \coordinate (c) at ($(b)+(0,#3)$);     \draw [open triangle 45-] (a) -- (b) -- (c);     \node[#5] at (c) {\bf\sffamily\smaller#4};     \end{tikzpicture}%     }   Usage is: \AddNote{linemarker}{x-offset}{y-offset}{text}{style}


I'm working on a project with a registration form. The form asks the user to  enter a password of their choice in a JPassword Field, and to enter it again in another JPassword Field.  I'm using a JOptionPane to prompt the user if the passwords do not match. but when i use passwordField.getPassword().toString() on the two, they don't match.  I have tried entering a basic "12345" for example on both but i still have no luck.  i know you should use .equals(), but what is the equivalent to this for "not equals" without using the "!=" operator.   here is the following code.      if(e.getSource() == submit)     {            String name = nameTextField.getText();         String address = addressTextField.getText();         String phoneNumber = numberTextField.getText();         String dob = datePicker.getDateFormatString();         String password = passwordField.getPassword().toString();         String password2 = passwordFieldTwo.getPassword().toString();           try         {             //If the user leaves the field empty             if(name == null || address == null || phoneNumber == null || dob == null                  || password == null || password2 == null)             {                 //Error message appears to prompt the user to                  //complete the form                 JOptionPane.showMessageDialog(null, "All fields must be complete to submit.", "Woops", JOptionPane.ERROR_MESSAGE);             }              if(password != password2)             {                     JOptionPane.showMessageDialog(null, "Passwords do not match.", "Woops", JOptionPane.ERROR_MESSAGE);                     passwordField.setText(null);                     passwordFieldTwo.setText(null);             }   Any help with this would be much appreciated.


What is the switch for second monitor only

When you press Winkey + P in Windows 10 you will get this menu on the right side of the monitor:    The program and switches behind these options are as follows:  PC screen only :: displayswitch.exe /internal Duplicate      :: displayswitch.exe /clone Extend         :: displayswitch.exe /extend   What is the switch for:  Second screen only :: ???


Why does step size in fourth order runge-kutta methods less than 1?

I am currently reading about fourth order Runge-Kutta methods, and I noticed that for first order the total error is a factor of $O(h^2)$, and for fourth order the error is in order of $O(h^5)$, where $h$ is the step size. I understand that fourth order Runge-Kutta methods are better than first order since the error rate for each step is smaller, which only makes sense if $h < 1$.   My question is why must the step size be smaller than $1$? I've tried setting $h$ to something bigger than $1$ in my simulation and it exploded, but I'm not sure if that's a result of the approximation not working for step sizes bigger than $1$, or maybe my other coefficients were too large. So is there a requirement for $h$ to be smaller than $1$, and if so, why?


Please Help - "/dev/sda1 is mounted." E2fsck: Cannot continue, aborting." Thanks

Here is the picture of my problem. I cannot boot my laptop and cannot log on to the ubuntu screen. I have serious problems as I have copied the wrong info on the data recovery through Test disk.  What actually happened:  1) Used testdisk and backed up 2 files. 1 file was not imoportant. Now the hard drive space is now completely full. I tried so many sources on Askubuntu and google but still no help.  2) Keep showing black screen with "_" flashing - The link that I uploaded is here.  Please help, cannot sleep until its done. Very important files including family and work is here.  Now my screen keeps blinking:  Thanks


Power transformation using Box-Cox transformation

I have a dependent variable Cost and an independent variable VPT. I want to perform a power transformation on VPTwith the .  In the end I am looking for something like this:  C~ I(VPT^(lambda))   What are the steps to get lambda? I read it is possible to do it with the library , but I am also open for other options to get lambda.


I use Linux not Windows for several years at home and consider using command line quicker way to do things.  However sometimes I could not easily recall name of needed command, for example instead of adduser I try to use mkuser in analogy to mkdir,  chperm in analogy to chown.  I remember in MS Office in help pages in see also/related there were usually several other topics close to it and I was able to find what I needed if I could recall related topic. In Linux man pages see also is very short,  e.g. for chown it's chown (2) only.  Before Internet was widespread,  how do you find name of the needed program?


Cannot edit, hit 6-character limit even though I did not touch post body at all

I tried to edit  to add a relevant tag (and nothing more), but the interface claimed that I must make an edit of more than six characters.  Previously the interface has accepted tag-only and title-only edits.  I have seen this before on some other posts.  My best guess is that there was an empty line at the start of the post which the interface removed and thought that it was part of my edit.


Change citation conjunction from "and" to "i"

How can I change the citation conjunction from english "and" to catalan "i"?  Otherwise  Author = {Kirk, D. and MacPhail, A.},   would get cited as (Kirk and MacPhail, 2002) when it should be (Kirk i MacPhail, 2002).  When there are more than 2 authors I get et al. which is fine.  I've seen  and  which do not work with apalike style.  Also, I'd rather not use biblatex if possible.


Why can other users see the files in my home folder?

I just added a new, underprivileged "desktop user," and I was surprised to discover that it can see the files in my home folder.  What is the rational for setting up such lax permissions?


How many distinct two-dimensional subspaces (over $F$) does $\textsf V = (\mathbb{Z}_2)^3$ have?

Let $\textsf V = (\mathbb{Z}_2)^3$ and $F=\mathbb{Z}_2=\{0,1\}$.  How many different ordered basis does $\textsf V$ (over $F$) have? First of all, we know that the cardinality of $\textsf V$ is $2^3 = 8$ with  $$\textsf V = (\Bbb Z_2)^3 = \left\{ \begin{pmatrix} 0\\0\\0 \end{pmatrix}, \begin{pmatrix} 1\\0\\0 \end{pmatrix},  \begin{pmatrix} 0\\1\\0 \end{pmatrix}, \begin{pmatrix} 0\\0\\1 \end{pmatrix},  \begin{pmatrix} 1\\1\\0 \end{pmatrix}, \begin{pmatrix} 1\\0\\1 \end{pmatrix}, \begin{pmatrix} 0\\1\\1 \end{pmatrix}, \begin{pmatrix} 1\\1\\1 \end{pmatrix} \right\}$$  Since $\dim (\textsf V) = 3$, basis come in $3$ vectors. I have manually listed all possible permutation, eliminating those that are linearly dependent, and the zero vector.  I got $210 - 18 = 192$ different ordered basis (unfortunately, I don't know how to show it more systematically).   Kindly help me with this. Next : how many distinct two-dimensional subspaces (over $F$) does $\textsf V$ have?  I think there are three two-dimensional subspaces, but I don't know how to show it. I get stuck here. Please help!


One column equation in twocolumn document class

I am writing  a paper (revtex4-1, reprint documentclass which I believe uses twocolumn) and need to have a long equation that needs to break the two column format. I've seen answers to this question using multicol but I can't use that class. So does anyone know how to do this from twocolumn class?  I have tried one way that makes the equation a figure but I can't get the alignment with the text correct.   Any help would be greatly appreciated.


Why $9$ & $11$ are special in divisibility tests using decimal digit sums? (casting out nines & elevens)

I don't know if this is a well-known fact, but I have observed that every number, no matter how large, that is equally divided by $9$, will equal $9$ if you add all the numbers it is made from until there is $1$ digit. A quick example of what I mean:  $9*99 = 891$ $8+9+1 = 18$ $1+8 = 9$  This works even with really long numbers like $4376331$ Why is that? This doesn't work with any other number. Similarly for $11$ and alternating digits sums.


Creating a 3D object from a side and top view outline?

So, I have some knives with handles that I'd like to 3d laser-engrave pockets for the knives into wooden cutting boards, using bump maps that I generate with Blender.  I have traced the side view and the top view of the knife, and from those two dimensions, I should be able to create a 3D model that I can export as a bump map.  Any ideas on how to do this? I'm pretty new to this.  Thank you!


Expanding user defined macros for compatibility

I have an annoying reoccurring problem. I often use user-defined macros with for example \newcommand in my LaTeX code. I also use LaTeX a lot in for example Jupyter Notebooks. Often Some things render fine locally, but don't render correctly anymore when hosted for example on Github. Or when I need to ask something on math.stackexchange, this becomes also quite annoying bringing over all macro definitions or manually expanding them.  I would therefore like to know if there is some way to produce a .tex file that has all user-defined macros expanded, so I can use the content of that document if I need cross-platform compatibility.  Example  \newcommand{\paren}[1]{\mathopen{}\left( {#1}_{{}_{}}\,\negthickspace\right)\mathclose{}} \newcommand{\pda}[2]{\frac{\partial #1}{\partial #2}} \newcommand{\pdb}[2]{\frac{\partial}{\partial #2} #1} \newcommand{\grad}[2]{\nabla_{#2}{#1}}  Let the output layer activation be the sigmoid function and let the loss function be the mean square error.\\  \begin{align}     \pda{l\paren{y, f(x)}}{A^{(L)}_i} ={}& \pda{l\paren{y, f(x)}}{f (x)_i}\\     & \text{by definition}\\     ={}& \pdb{\frac{1}{2n} \sum_{j=1}^n \paren{y_j - f(x)_j}^2}{f(x)}\\     ={}& \frac{1}{2n} \sum_{j=1}^n \pda{\paren{y_j - f(x)_j^2}}{f(x)_i}\\     ={}& \frac{1}{2n} 2 \paren{y_i - f(x)_i}\\     ={}& \frac{1}{n} \paren{y_i - f(x)_i}\\      \propto{}& y_i - f(x)_i\label{eq1} \end{align}  \begin{equation*}     \implies \nabla_{A^{(L)}}{l\paren{y, f(x)}} \propto y - f(x) \end{equation*}   where $f$ is the function computed by the network and $g^{(L)}$ is the activation function of layer $L$.   This render fine locally:    But it renders incorrectly due to missing macro interpretation on Github:


The inability to imagine general nonexistence

After reading the question regarding "Why is there something instead of nothing?" I stumbled over the first part of "" answer:     Before anything else one should be aware of the instrument used to   answer questions.  That instrument is human language. While there is   no guarantee that such a system of patterns is powerful  and   expressive enough to reason about the necessity of all that is, we can   still examine what can we reasonably say  and understand about this.   While this seems true, I think this goes even further, right to the inability to think of non-existance.  Language and thinking are closely connected, but I am convinced that thinking in pictures allows us to think "better" in a way that we can now think about issues we couldn't express in words.  So after reading the mentioned answer, I tried to think of a non-existing universe.     I Take a picture of an empty, white colored room.   So far so good, remove the "boundaries", the walls   Now I just think of a undefined white space.   White seems to force the existence of something causingthe space to be white.   I think of a black undefined space.   While this seemed like "nothing" to me first, on the second glance it it something, but with nothing in it.  Maybe I can make it tranparent. but transparent means you can see though. And what can you see then? Something. It is ridiculous to try picture nothing, because I want to have something in my head then.  Now we are back to the language boundaries.  For me it seems impossible for any thinking creature to think of nothingness because we think of something then.  But until know this is just coming to the same conclusion after thinking about the answer I was referring to.  So here comes my question (of two parts): Are there any fallacys in the way my tought went, and nothingness can be described in any way?   If that isn't the case, re there any elaborations on the topic of what can be deducted from the inability  to imagine/pictrue/describe/ etc. nothing?


No magnetic field from a static charge - Is there a simple physical argument to show why?

For a charge moving in an electric field $\vec E$, its equation of motion is given by the electric part of the Lorentz force $$\frac d {dt}\gamma m \vec v = e\vec E$$This comes from the conservation of relativistic energy in a static electric field. But a magnetic field would still make this conservation law true since the magnetic force is always orthogonal to the velocity of the charge and therefore doesn't change its energy.  Is there a simply physical argument that shows why a static charge doesn't create a magnetic field?


correlation b/w continuous and binary variables

In a discussion, one claimed that because gender has only two categories, he can correlate it with a continuous variable. Is it acceptable to use Pearson correlation between one continuous and another  binary variable?


As of my understanding \2 represents the contents of group 2.  So, the expression r'(\w*)(\w)\2' should return the contents of group2( i.e \w) but when we use the word having repeated characters it is returning repeated characters. example:  re.search(r'(\w*)(\w)\2','finally').group(2) -> 'l' re.search(r'(\w*)(\w)\2','finallyy').group(2) ->'y'   In the 1st example the output is 'l' instead of 'y'.  Can anyone tell me what exactly \2 mean in regular expression and where does my understanding is wrong.


How many 3 letter words can you form from 'EEAAP'   I think the answer is   ${3\choose 3} * 3!  + {2\choose 1} * 3 + {2\choose 1} *3=18$. Is this right?  ${3\choose 3} * 3!$  = You pick all distinct  ${2\choose 1} * 3$ = You pick 2 e's and either a or p  ${2\choose 1} * 3$= You pick 2 a's and either e or p


How the contents of a directory are impacted when a file system is mounted on that directory

How the contents of a directory are impacted (and when and/or if they are available for use) when a file system is mounted on that directory.


Building logical criteria (with AND , OR, etc)

I am looking for inspiration on this. We have a Dot.Net web application, where we are building pretty complicated criteria. It works, but I would like to change this, re-shape this, possibly from the ground up.  The idea: Basically there is a background process, we are receiving data. In order for us to parse it, they will set up criteria. We can call it "filter". It probably makes more sense  Example:   If the parsed data, has a "created date" field, that is a weekday, then do something If the parsed data, has a "code" field, that contains these letters "ABC", then do something else If the parsed data, has a "amount" field, and that amount is greater than 1000, than do something If the parsed data, has a "color" field, and that is one of these: "red, blue, green", then do something We are going to let the user go even deeper.   Example: If 1 AND 2 AND 3 AND 4 (from above) are all true, then "do something really specific"  You can go even further: If ((1 AND 2) OR (3 AND 4)) , from above, then "do something different"  I hope you see what I mean  So we have basically 2 steps A. let the user introduce 1, 2, 3, 4 somehow B. let the user make it more complicated  This all works. But in a totally non-user-friendly way.  I was wondering if there is something out there, that is well known, easy to use, easy to understand, that is doing the same thing.  I would really like to get some inspiration to rebuild our User Interface, which is currently using too much dropdownlists, checkboxes and such.  Any suggestions?


I have a database table and two columns are being saved differently.  Table  id     title             description ----------------------------------------------------------- 1      Test - ñ          &lt;p&gt;&ntilde;&aring;&lt;/p&gt;   As you could see the title was being saved as is and no encoding is being done. The description however is saved as an encoded string (it stands for
ñå
).  I'm having a bit of trouble displaying them correctly on a page.  Here are my approaches so far:  Title   echo $data['title']; - doesn't work and displays as Test - Ã±. echo html_entity_decode($data['title'], ENT_QUOTES, "UTF-8"); - still doesn't work and displays as Test - Ã±. echo html_entity_decode($data['title'], ENT_XML1, "UTF-8"); - still doesn't work and displays as Test - Ã±.   Description   echo $data['description']; - just shows
ñå
. echo html_entity_decode($data['description'], ENT_QUOTES, "UTF-8"); - doesn't work and just displays Test - Ã±. echo html_entity_decode($data['description'], ENT_XML1, "UTF-8"); - THIS SEEMS TO WORK although I'm not sure why setting ENT_XML1 fixes the problem with the description but not on the title.   Anyways, I'm not really knowledgeable about character encoding and HTML entities and special characters. Could you help me solve this problem so that both the title and description displays well. I'm not sure I'm doing the proper steps here but I was just trying different combinations of solutions.


Homomorphism between $\mathbb Z$ and an arbitrary group.

$G$ is a non trivial group. There exists a non trivial homomorphism $h:\mathbb Z\to G$. Prove or disprove! When $G$ is finite and cyclic I get the non trivial homomorphism easily. When $G$ is the non abelian group of symmetries on three symbols, I can't get the homomorphism. Similarly I have to tackle the cases of infinite and also uncountable groups. What is the best way to answer this question involving all cases? Help please.


How does HealthKit resolve recording of the same activity by multiple sources?

What happens when more than one "source" registered with  tracks the same activity?   For example, if I have  tracking my activity in general, and then use  (which supports HealthKit in version 10.3) to track particular bike ride, both will (I assume) submit the same activity to HealthKit. Presumably it should be possible for HealthKit to recognize that these activities are likely duplicates and at least ask me how to resolve the "duplication" (much as sync conflicts are resolved). In fact, the activities contain enough data that such recognition should generally be possible to perform automatically.  Does HealthKit do this? Does it resolve duplicate recordings of the same activity (either automatically or semi-automatically)?


Is there a way to install the Android firmware into a iPhone?

I want to turn a iPhone in to a Android OS phone. Is this possible?


is a tool that let you install Grub on a USB flash drive. I really like it because it lets me boot from ISO files and let me put a bunch of ISOs on my USB and choose which one to boot.  The problem is, this is a Windows tool, and I don't know how to do it through the command lines. I would also like to know how to install Grub (2) this way, Grub Legacy seems to be easier...  EDIT: I'm not asking for a tool (and definitely not a Windows tool). I want to know the commands that I have to execute to have the same effects. I'm having Ubuntu in my mind right now, but if there is a general way that I can boot any ISO in the USB then that would be better.


Same variable declared twice. Which is one used? -- JAVASCRIPT

The code below will produce 8 due to the fact the second declaration will override the first one. Yup! Makes total sense.   EXAMPLE 1  function foo(){     function bar() {         return 3;     }     return bar();     function bar() {         return 8;     } } console.log(foo()); // ---> 8   The following code produces 3 which means that it is the first expression that is invoked.   EXAMPLE 2  function foo(){     var bar = function() {         return 3;     };     return bar();     var bar = function() {         return 8;     }; } console.log(foo()); // ---> 3   I tend to conclude that in JavaScript, only the first declared variable is used as shown above. However, the code below produces 7 (hmmm... scratching my head)  EXAMPLE 3  var a = 4; var a = 7; console.log(a); //---> 7   Eventually, I will be using let or const (to prevent declaring the same variable many times) to declare variables and not var but I'm trying to understand why the results produced in example 2 and 3 are so unpredictable. Thanks.


I want to add a references section to my report. However I have not been able to. I used \addbibresource, \bibliography, but no result. I have seen a lot of questions about this but nothing solved my problem, so maybe it is a package issue. I have a references file called refs.bib  What I have right now is this -   \documentclass[12pt,oneside]{book} \usepackage{biblatex} \begin{document} text text text \nocite{*} \bibliography{refs} \end{document}   I have tried -   \documentclass[12pt,oneside]{book} \usepackage{biblatex} \addbibresource{refs.bib} \begin{document} text text text \nocite{*} \printbibliography \end{document}   This does not generate a reference page. I have tried many different things though, and I always get an error. I am working in TexMaker and am using XeLatex to compile.  I am thinking this might be a very specific problem, only applicable to my system. I will delete this if there is nothing that I have missed.  Here is the part of the log for the XeLaTex run which I thought is relevant:-  ! LaTeX Error: Can be used only in preamble.  See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  ...                                                l.1023 \bibliography                     {refs.bib} Your command was ignored. Type  I <command> <return>  to replace it with another command, or  <return>  to continue without it.  [70  ] Package atveryend Info: Empty hook `BeforeClearDocument' on input line 1024. Package atveryend Info: Empty hook `AfterLastShipout' on input line 1024.  (./thesis.aux) Package atveryend Info: Empty hook `AtVeryEndDocument' on input line 1024. Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 1024.  Package rerunfilecheck Info: File `thesis.out' has not changed. (rerunfilecheck)             Checksum: 3ADE6CBD12915D7B9305AC529A3E8178. Package logreq Info: Writing requests to 'thesis.run.xml'. \openout1 = `thesis.run.xml'.  Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 1024.  )    The only in preamble error is weird because I have no packages inside the document  The log for the second piece of code is:-  LaTeX Warning: Empty bibliography on input line 1022.  Package atveryend Info: Empty hook `BeforeClearDocument' on input line 1023. Package atveryend Info: Empty hook `AfterLastShipout' on input line 1023. (./thesis.aux ************************************************* * pdfbase warning: "rerun" *  * Rerun to get internal references right! ************************************************* ) Package atveryend Info: Empty hook `AtVeryEndDocument' on input line 1023. Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 1023.  Package rerunfilecheck Info: File `thesis.out' has not changed. (rerunfilecheck)             Checksum: 3ADE6CBD12915D7B9305AC529A3E8178.   LaTeX Warning: There were undefined references.   Package biblatex Warning: Please (re)run Biber on the file: (biblatex)                thesis (biblatex)                and rerun LaTeX afterwards.  Package logreq Info: Writing requests to 'thesis.run.xml'. \openout1 = `thesis.run.xml'.  Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 1023.  )    The BibTex log:-  This is BibTeX, Version 0.99d (TeX Live 2019/dev/Debian) The top-level auxiliary file: thesis.aux I found no \citation commands---while reading file thesis.aux I found no \bibdata command---while reading file thesis.aux I found no \bibstyle command---while reading file thesis.aux (There were 3 error messages)


So I'm a first time Latex learner and I'm still learning the roots, but I want to do something similar to the example given in the picture.


SO Japanese doesn't show up very well in the SE list of all sites

I was just looking through the list of Stack Exchange sites, and the row for  looks a little messed up.  It's pretty impressive to get 14 questions per day from zero visitors, although it's a fair bit less impressive to still have zero visitors per day after being active for 2013 years and eleven months. I'm assuming that these are the same problem, and the property for the site starting date is still set to the default value of DateTime, which is, or January 1, 0001 at 00:00.


I am writing some text for software that we are developing and I can't make up my mind about which word to use for "mobile phone". For example in the sentence "You need to install the app on your [blank]"  From some googling I understand that cell/cellphone is used in the US, while mobile phone may be preferred in Britain. And I know similar questions have been asked before but I have a feeling that this is a word that is actively evolving.  I'm leaning towards using just "phone", since its very clear from the context that we are not talking about landlines.


Using 2011 iMac 27" as second monitor with 2017 iMac 27"

I purchased a 2017 iMac 27" Retina 5K running High Sierra.  I have an older 2011 iMac 27" also running High Sierra.  I want to connect the two so the the 2017 model is the host and the 2011 is the second monitor (extended mode).  I have a Thunderbolt cable, and connected one end to the 2011 and the other to a Thunderbolt 3 (C) adapter and then into the 2017 iMac. I then pressed Command + F2 to start Target Display Mode.  Unfortunately nothing works.  Regardless of which iMac I try to use as the host I can never get the desired result.  I was told the Retina 5K model won't support TDM, but I had a chat session today with Apple and the tech made it seem that it would work.  Is there a way to make this work?


How can I ensure users have the latest version of my PHP JavaScript?

To be clear, this has nothing to do with script tags. I am not using them. This is JS placed on the page using PHP include.   Most of my JavaScript files mix in PHP and use PHP's include instead of script tags. Usually the solution would be adding a query string to the end of src attribute for a script tag. As far as I know, I can't really do this when I use include. For the most part, I'm having issues on mobile for users to get the latest JS source instead of an old stored cached version on their device.


Can I travel between Schengen countries on one itinerary?

I want to travel to The Netherlands and Finland at the same time but my money is tight.   For example, if my flight to Amsterdam is on December 29 and I return to my country on January 12, can I go to Finland from January 6 to 10? Can I then go back to The Netherlands for my flight on January 12?


Why does Ubuntu's `venv` require installing `python3-venv`?

is a standard python3 module, thus I assume it should be shipped with python3 by default. That is not quite true on Ubuntu 16.04: to use venv you also need to install python3-venv. Why on Ubuntu venv is split into venv and python3-venv?


If $X$ is uncountable, then the set of bounded injective functions: $f: X \rightarrow \mathbb{R}$ has empty interior.   Attempt:  In order to prove that the interior is empty, we must show that for any $f$ in the set and for any ball centered on $f$: $B(f;\epsilon)$, one can find a function $g\in B(f;\epsilon)$ such that $g$ is not injective.  Take any $f$ in the set and any $\epsilon>0$. We note that the image of $f$, $f(X)$, is an uncountable subset of $\mathbb{R}$. Therefore, it contains at leats one of its accumulation points, say $f(x_0$), where $x_0\in X$. Hence it follows that $B(f(x_0);\epsilon/2)\cap f(X) \neq \emptyset$. We take $f(y_0)\in B(f(x_0);\epsilon/2)\cap f(X)$ such that $f(x_0)<f(y_0)$, where $y_0\in X.$   Define the following function:  $g:X\rightarrow \mathbb{R}$ by letting: $g(y_0) = f(x_0)$ and $g(x)=f(x)$ elsewhere. Clearly $g$ is not injective and:  $$\mbox{sup}_{x\in X}|f(x)-g(x)| = |f(y_0)-g(y_0)|=|f(y_0)-f(x_0)|<\epsilon,$$  since we chose $f(y_0)\in B(f(x_0);\epsilon/2)$. This shows that $g\in B(f;\epsilon)$, $g$ being not injective.  Is this fine? Any different idea?


How to get iterator number and also element in same loop in Python?

For example:I Have following List.  ｌist1=["a","b","c","d"]   How to get both iterator number(in below code that is iteration) and item of list in the same for loop.I can write with following two loop .  for iteration in len(list1):     for each_item in list1:         #logic related to each_item


How to get checksum for the running firmware?

I have seen other questions and answers that say given a new phone shipped from a retailer, it is only possible to verify the integrity of the firmware by comparing checksums. However, I'm not sure how to get the checksum of the currently running firmware on my device. Is this even possible? I may have misinterpreted the other advice as comparing checksums for downloaded images, but I am specifically looking to check the firmware that came loaded on the phone against a valid source before re-imaging it if that's what I decide to do. Hoping for generic advice, but manufacturer is LG if it matters. Please suggest tools and process. Final note: The phone has been used since it was received, so if there is a way to capture the pre-loaded firmware, I want to make sure it is not affected by any software/user option changes that would be made after the device setup was complete. I'm guessing I want to get a checksum of the current software version, so not sure if I have to make an image first and if that firmware image that is created would be static.


Is it possible to add or remove JavaScript files and CSS files by JavaScript at run time? If it's not possible by JavaScript then, Can we do it by PHP or any other server site language?  Actually i tried by yep-nope js but i am not able to unload any javascript by it.


Increasing Letterspace for words in caps or small caps

Some typographers say it's a good habit to increase the letterspace when writing words in caps or small caps. So my question is, how to do it with pdflatex and/or xelatex? And while we're at it, which words would you alter this way? Acronyms like USA, NATO, IBM, GNU, etc.? How about words like PCs, UdSSR, FreeBSD or TV-Station?


Why is it that a noun can be added with -ed?

The question is raised from the viewpoint of a foreign language learner.  -ed is known to be added to a verb to mean past tense or past participle, but some phrases like four-legged animals, winged birds, are in the form of noun+-ed, why is it so? What is the logic behind such a structure?


I create an application codename one.  I want to connect it with the data base through json. I tetsted the service and I found ths error   Exception in thread "main" java.lang.NullPointerException     at com.codename1.io.NetworkManager.isAPSupported(NetworkManager.java:909)     at com.codename1.io.ConnectionRequest.<init>(ConnectionRequest.java:352)     at Services.ChallengeService.getList(ChallengeService.java:26)     at Services.test.main(test.java:22) Java Result: 1


Training accuracy is ~97% but validation accuracy is stuck at ~40%. What does it imply?

Training accuracy is ~97% but validation accuracy is stuck at ~40%.  I can not understand the meaning of two concepts and their relationship.


Is the Earth the center of the Solar System?

Alright guys, so I attracted you with the title. Now, to preface the question, I am fully aware of the work of Copernicus, as well as the concepts of Heliocentrism and Barycentric Coordinates. I have a master's degree in Engineering, and have taken many a course in dynamics and kinematics. It is with this experience that this question arises.  When studying bodies in motion, it is customary to pick a stationary reference frame for the basis of your calculations. Since the Sun is extremely massive compared to the rest of the planetary bodies, the barycenter of the Solar System (the stationary origin of choice) is extremely close to (and often inside) the sun. Hence why we commonly say that the planets all revolve around the Sun.  Although this certainly simplifies drawings of the planetary orbits, allowing for mostly non-intersecting ellipsoids in modeling, the base reference frame is, for all intents and purposes, arbitrary. All motion is relative to it's observer, so who's to say we cannot define the origin to be at the center of Earth? Sure, children would no longer be able to make working models out of hangers and Styrofoam balls, but wouldn't the equations of motion remain the same?  I have been searching online for a video, or gif, that illustrated this principle, but was unable to find anyone who took the time to do so. I'd be very interested in seeing what the orbits actually looked like if we re-defined the stationary reference frame from the barycenter to the center of the earth. I'm sure the orbits would look pretty rad! Much like .  Is there something I'm missing that would theoretically preclude us from doing so?    Edit:   Ah hah! Finally found a  that shows this simulation.


exectute actionlistener on selecting item from combobox java

I have a combobox with language menus on a Jframe , on selection of chinese from combo I have to call another action listener class ChineseButnListener. How can I correct this code?`   ActionListener actionListener = new ActionListener() {                  public void actionPerformed(ActionEvent actionEvent) {                    ItemSelectable language = (ItemSelectable)actionEvent.getSource();                    System.out.println(selectedString(language));                     if(selectedString(language).equals("Chinese")){                  // addActionListener(new ChineseButnListener());                    }else                     //addActionListener(new EnglishButnListener());                  }                };      class ChineseButnListener implements ActionListener {             public void actionPerformed(ActionEvent evt) {             //             }         }  `


Word for a person who is very much interested in having her photographs clicked?

No, I am not talking about selfies. This person misses no opportunity to be in each and every photo shoot at a gathering.   Last time, I remember, at a function we had a choice of getting her for a particular task or her sister in law. She hurried to get the task done (pretending she was very much interested in doing that). She in fact knew that the photographs would be taken and that was the actual reason that was hurrying.  Word for a person who is very much interested in having his photographs clicked?


How to save text file after use cat -n command

I am created file use "cat > sample.txt". after i used "cat -b sample.txt". how to save it. ctrl+x or F2 is not working.


What is  the value of $\lim_{n\to \infty}(\frac{1}{n}+\frac{1}{n+1}+\frac{1}{n+2}...+\frac{1}{2n})$?  Please give some hints to proceed .


Is there a cubic $Q(x)\in \mathbb{Z}[x]$ so that $|Q(p_1)|=|Q(p_2)|=|Q(p_3)|=|Q(p_4)|=3$, where $p_1, p_2, p_3, p_4$ are distinct primes? Clearly there must be at least one $Q(p_i)=3$ and at least one $Q(p_j)=-3$ (otherwise there will be 4 roots of a third degree polynomial) Lets suppose that $Q(p_1) = 3$ and $Q(p_2) = -3$. $Q(p_1) - Q(p_2)/ (p_1-p_2) = n$ where $n \in \mathbb{Z}$ The dividers of $6$ are $1, 2, 3, 6$.  $(p_1-p_2) \in \{1, 2, 3, 6\}$ That’s what I’ve got so far.


Render a Latex document without figures and tables

I am writing my master thesis in Latex and was wondering whether it would be possible to render the document without any figures or tables. The goal is to get a feel for how many text pages I have as figures and tables don't count towards reaching the minimum page count requirement. I could obviously just comment out all figures and tables, but my goal would be to get this version rendered with no or only minor modifications to the document.


Do you have to wait for confirmation from the journal to consider an article withdrawn?

If you'd like to withdraw an article for any reason, can you start submitting elsewhere once you've notified the journal, or do you have to wait for a response? How can this be handled in case the journal is not responsive?


Which one sounds better? "of mine" or "my"

My friend (or "a friend of mine"?) told me that anytime I need to express such expression, it's always better to say "of mine", because it sounds more naturally.  Like "two brothers of mine" rather than "my two brothers".  Is that true?


The ability to see which posts lost upvotes when a user was removed

When a user is removed who has not cast too many votes, the votes they did cast are reversed. For example, an hour ago, I lost 40 network-wide reputation points because of this reversal (which is extremely frustrating but not what I'm asking about.)  As you can see in the above image, the post graph tells me why I lost 30 reputation, but, unlike the upvote below it, it does not link to the post which was voted on. So, I have no idea which post's had their upvotes removed. I would like to be able to see this. Is it possible to implement this feature?


I don't know which sentence is true and I need some help.  I believe that the faculty members will be very useful for my future studies.  or  I believe that the faculty members are going to be very useful for my future studies.


Is there any mathematical relationship between matter wave (or de Broglie wave) and wave function?  Also, does each type of particle (e.g. photon, electron, positron etc.) have its own unique wave function?


Does ffmpeg have the inverse of the silencedetect filter? I'm recording audio, and I tap on the mic to mark the places to split the recording at.


What is the proper usage of "also","too" and "as well"?

When I want to talk to someone and the sentence I am using has "too" or "also" or "as well" in it, I get confused and feel like I am using the wrong structure.  For example:     Friend: It's raining here          Me: I wish it was raining here too ( or I wish it was also raining here OR I wish it was raining here as well)   or         Friend: I read books           Me: I read books too (I also read books OR I read books as well)      I would appreciate it if you could tell me the correct structure or suggest an alternative for this


Right word to describe this kind of search

How do you describe the following kind of 'search' in one word?  A blind man searching for a faucet in a room  OR  A normal man searching for a faucet in a dark room  Is it fumbling, scouring, scouting, scrounging, or something else?


What is the lightest desktop interface for ubuntu and is Unity-2d classified as a 'light' interface?

With the plethora of potential interfaces available   lxde, openbox, fluxbox xfce, gnome2, gnome3, unity-3d, unity-2d etc,    my question is - what is meant by "the lightest desktop interface" - and can you now consider Unity-2d as "Light"?  Any guidance on the pro's and con's would be extremely useful for my evaluation - my target computer is a    Pentium 4 1.3Ghz, 512Mb, 32GB HDD, 1024x768 Monitor, Geforce FX5500 256Mb AGP    I would like to use it for web-browsing such as youtube, google-earth, simple graphical picture editing and word processing - all aimed for school student aged 10-15 yrs.


Drupal 7 comments spam with Captcha installed

I have a multilanguage - multidomain website developed in Drupal 7, and the database have been flooded with spam comments, even if I have Captcha module (image) installed. The spam comments are from 60 different IPs, and I have seen attempts to add node and add user (which is blocked) in the incidents reports.  So I cannot block so many IPs at the risk of them being dynamical and loosing potential users.  What could I do to prevent the spam and also to prevent the attacks? Thanks


I am having some strange issue with Kate and Kwrite. When I click on Open File, it crashes with segmentation fault.   I am a complete newbie to Linux, and I think the issue is that I am not running the application as root.   How do I run applications as root in Ubuntu? Is it bad practice to do this? What is the purpose of the whole root thing, where even though we need to use root so frequently, it is not utilized as default?