Calculating the integral $\int \sqrt{1+\sin x}\, dx$.

I want to calculate the integral $\int \sqrt{1+\sin x}\, dx$.   I have done the following: \begin{equation*}\int \sqrt{1+\sin x}\, dx=\int \sqrt{\frac{(1+\sin x)(1-\sin x)}{1-\sin x}}\, dx=\int \sqrt{\frac{1-\sin^2 x}{1-\sin x}}\, dx=\int \sqrt{\frac{\cos^2x}{1-\sin x}}\, dx=\int \frac{\cos x}{\sqrt{1-\sin x}}\, dx\end{equation*}   We substitute $$u=\sqrt{1-\sin x} \Rightarrow du=\frac{1}{2\sqrt{1-\sin x}}\cdot (1-\sin x)'\, dx \Rightarrow du=-\frac{\cos x}{2\sqrt{1-\sin x}}\, dx \\ \Rightarrow  -2\, du=\frac{\cos x}{\sqrt{1-\sin x}}\, dx $$   We get the following:  \begin{equation*}\int \frac{\cos x}{\sqrt{1-\sin x}}\, dx=\int(-2)\, du=-2\cdot \int 1\, du=-2u+c\end{equation*}   Therefore \begin{equation*}\int \frac{\cos x}{\sqrt{1-\sin x}}\, dx=-2\sqrt{1-\sin x}+c\end{equation*}   In Wolfram the answer is a different one. What have I done wrong?


Is there a way to save composite node presets?

Is there any way in Blender to save settings in your compositing node setup. For example say for my shadow catcher I have it setup for a hard shadow for sunlight, and then I also have a setting for diffuse light shadow for indoors. Is there any way I can save these settings individually so I can quickly switch to them rather than having to individually change the nodes every time.


How to mark a non HTTP/s schema URL as clickable on Stack Exchange sites?  For example, some Chrome setting has the following URL: chrome://settings/syncSetup  Tried several ways to mark it as URL but failed:   chrome://settings/syncSetup chrome://settings/syncSetup   * Any idea how to make those URLs clickable?


I have an internal compiler error: java.lang.NullPointerException

package tictactoe.board;   public class Board {      protected char[][] Board= new char[2][2];      Board()     {         viderBoard();     }     private void viderBoard(){     for (int i=0;i<3;i++){         for (int j=0;j<3;j++){             Board[i][j]=' ';         }     }     }     public void afficheBoard() {          System.out.println("\t The Board");          System.out.println( "\n\n" );          System.out.println(  "\n\n" );          for (int i=0;i<3;i++){             for (int j=0;j<3;j++){                 System.out.println(Board[i][j]);                 System.out.println("|");                 System.out.println("\n _");             }         }         }       public int getPosition(int[] tab){             return Board[tab[0]][tab[1]];         }      // Ajouter un mouvement à la grille     public boolean InsererMouvement(int[] tab )     {         if (Board[tab[0]][tab[1]]==' ')         {              Board[tab[0]][tab[1]] = Joueur.getSigne();              System.out.println("Next move");         return(true);         }         else System.out.println("Try again");         return false;     }     public char[][] getBoard()      {         return Board;     }        // Check Board     public boolean checkBoard()     { boolean a=false;       boolean b=false;         // vérifier les lignes     while(a==false)     {for(int i=0;i<3;i++)     {             if ((Board[i][0]=='X')&&(Board[i][1]=='X')&&(Board[i][2]=='X')                     || (Board[i][0]=='O')&&(Board[i][1]=='O')&&(Board[i][2]=='O')                     || ((Board[0][i]=='X')&&(Board[1][i]=='X')&&(Board[2][i]=='X')                     || (Board[0][i]=='O')&&(Board[1][i]=='O')&&(Board[2][i]=='O') ) )                    a=true;             else a=false;     }     }         // vérifier les diagonales              if ((Board[0][0]=='X')&&(Board[1][1]=='X')&&(Board[2][2]=='X')                     || (Board[0][0]=='O')&&(Board[1][1]=='O')&&(Board[2][2]=='O')                     ||(Board[2][0]=='X')&&(Board[1][1]=='X')&&(Board[0][2]=='X')                     || (Board[2][0]=='O')&&(Board[1][1]=='O')&&(Board[0][2]=='O') )                  b=true;             else b=false;         if (a||b)         return(true);         else return(false);     }   }   I have this issue:     Internal compiler error: java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.ast.ReferenceExpression.copy(ReferenceExpression.java:141)   I couldn't find the solution anywhere, could someone help me?


How to SSH to a list of network devices and execute a list of commands?

Does anyone know how to create a bash script that would SSH to a list of network devices, via IP addresses, and execute a list of commands?  The way I see this working is as follows:   List of IP addresses exist in a text file Commands to be executed exist in a text file Bash script SSH to each IP address and executes commands   NOTE: I have not been able to find a response to this question in the list of other similar questions in this group. I am not a scripter, but would like to be able to be able to create a text file containing the commands that need to be entered on a network device, and then have that file executed on multiple network devices whose IP addresses are located in another text file. It would be great to be able to execute a bash script that allows me to enter a user and pass via SSH, connects to each IP address in the in the referenced text file, executes the command text file, and then echos a success or failure type response in another text file.  It's a bit complicated for me, but I would assume it would be rather straight forward for someone with scripting experience.  I appreciate all of the assistance, and would be willing to pay someone for their time. Just message me.  Thanks,


Can I purchase ticket on the spot at Train station Geneva Cornavin instead of online?

I will be landing at Geneva airport (Switzerland) in the coming mid June. As I would like to go to Metabief, France, I am thinking to take train from Train station Geneva Cornavin (near Geneva airport) to Vallorbe followed by a bus to Metabief.      sells train tickets. However, I am not sure whether my flight would be delayed and so I am not planning to purchase online.   As this is my first time travelling to Geneva airport, I am not sure whether I can purchase train ticket on the spot.


Harry's magical parents are Lily Evans (a muggleborn) and James Potter (a pureblood). Since a pureblood is someone with magical parents, why isn't he considered a pureblood?  A muggleborn, or mudblood is a person with powers from an ancestor. A halfblood is a person with one parent that is magical. Given that Harry has two magical parents, why is he only a "half-blood"?


Execute java from terminal and let it run even after the ssh session ends

i'm using a java application on my terminal wich listen to a specific port for specific connections .  i'm using it in terminal like :   java -jar Server.jar   everything works perfectly except that when i disconnect from the ssh session ( using putty ) , the connection get lost and the server stops .  i want to let the connection or the server open even after ending the ssh session .


How do you transition from 1-page dungeon map to battle mat?

I have a bunch of different ways I use to make maps for my tabletop game.  Sometimes I draw one on graph paper.  Sometimes I use .  Sometimes I copy a map from a published adventure or use the  random generators.  These all have the same output:  a piece of paper (or maybe two) with a map on it, and the map is usually quarter inch squares, or so.  When it's time to put minis on a mat, though, I need to copy over the relevant details of the map to our battle mat.  (We use Tact-Tiles.)  This is fine when most of our map is overland detail and I'm just copying down one or two rooms in which combat will occur.  For dungeon crawls, where there are more random encounters or where combat can chase through many rooms, it can lead to a pretty tedious drawing of the whole dungeon as we go.  I feel foolish for having to ask, but is there some trick, technique, or something to make it less tedious to transcribe maps from printed pages to the battle mat?  EDIT:  Answers in general are great, but I should note that the best answers, for me, will be informed by this previously-unmentioned fact:  the game venue is not my house, so I have limited prep time on site.


Where do I report a UI issue that I do not like?

I have just installed ubuntu, I am picky about UI design choices and have spotted something I do not like, but this time instead of just hating it I wish I could tell the ubuntu team so maybe just maybe someone in a future release might take 5 minutes to change it...  Where do I report such an issue?  The issue in question is :      I think the little arrow down and the labels next to it are too close to the edge. The arrow should be padded at least 5px and the label should be further from the arrow. When a whole list of such items shows up it looks real naff.


Smooth function with all derivatives zero

Assume that $f\colon\mathbb{R\to R}$ is an infinitely often differentiable function, and that a point $a\in\mathbb R$ satisfies $f^{(k)}(a) = 0$ for alle $k\ge 1$. Does there exist an $\epsilon > 0$ such that $f$ is constant at $(a-\epsilon, a+\epsilon)$? If not, can somebody find a counterexample?


This question is from a set of optional, much harder problems from my first year analysis course, but the subject material is norms on $\mathbb R^K$.  (c) Show that there exists a constant $C > 0$ such that for all $\mathbf x ∈ \mathbb R^k$, $||\mathbf x||\le C||\mathbf x||_\infty$  Hint: Use the standard unit vectors to write $\mathbf x = x_1\mathbf e_1 +. . .+x_n \mathbf e_n$, and use the triangle inequality.  (d) Show that there also exists a constant $c > 0$ such that for all $x ∈ \mathbb R^k$, $||\mathbf x||_\infty \le c||\mathbf x||$  Hint: If it isn’t true, then you can find a sequence $⟨\mathbf x_n⟩$ such that $||\mathbf x_n||$ is bounded but $c_n := ||x_n||_∞ → ∞$. (Why?) Think about the sequence $⟨\mathbf x_n/c_n⟩$. The Bolzano-Weierstrass theorem may be of assistance.  Note that the unspecified norm represents any norm for $\mathbb R^k$. I've done part c), but am stuck on part d). I've had a look for proofs on other questions on MSE, but none of them seem relevant to the hint given, and frequently the terminology is too advanced for me.  I tried considering the case if it isn't true, as suggested, but I can't see how to bound any sequence using that. Any help would be much appreciated.


A question about a solution to an ODE problem

Let $I \subset \Bbb R$ be an interval and $λ : I → \Bbb R$ be a solution of the differential equation $\dot x = f(t, x)$, where $f : \Bbb R × \Bbb R → \Bbb R$ is continuous. Suppose that a differentiable function $α : I → \Bbb R$ satisfies $\dot α(t) > f(t, α(t))$ for all $t \in I$, and we have $α(t_0) ≥ λ(t_0)$ for some $t_0 ∈ I$. Show that α(t) > λ(t) for all $t ∈ I$  with  $t > t_0.$  Begining of the solution that I got : Define $d(t) := α(t) − λ(t)$ for all $t ∈ I$ with $t ≥ t_0$. The assumption implies that $d(t_0) ≥ 0$. Assume for contradiction that d(t) ≤ 0 for some $t > t_0$ and define $τ$ := inf {  t > $t_0$ : d(t) ≤ 0}  My question is: why does this imply that $d(τ) = 0$


Hey I need to know which files to extract if any to put a mod with a zip file into my minecraft game. I need to know if i extract the folders that are in the zip file or anything else? Thanks.


Distribute $N$ objects to $K$ boxes such that no box has more than $c$ objects in it

I'm trying to find a way to calculate a problems such as this: if you have $n$ objects and $k$ indistinguishable boxes, how do you put in $n$ objects such that each box has no more than $C$, where $C \le k$.  For example, I have $6$ objects that need to be placed in $4$ boxes, where no box can have more than $4$ objects in it. I tried $\displaystyle\binom{n+k-1} {k-1}$. I got $84$ ways. But that is too big. When I do it by hand, I get $74$.   Would like actual explanation.


Although many questions have already been asked regarding WiFi hotspot, I didn't get any of the solutions working for me.  I connect to the Internet using a 3G Dongle of Huawei 3772 (Vodafone). The connection type is Mobile Broadband connection. I have to share this Internet connection with my other devices like mobile phones and laptops.  How can I create a WiFi hotspot connection for this connection.  I am using Ubuntu 12.04 LTS.  I would like to note that I have already tried some help links from Ubuntu but, they are so confusing that I could not understand them.


I basically need to highlight a particular word in a block of text. For example, pretend I wanted to highlight the word "dolor" in this text:
     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

     Quisque bibendum sem ut lacus. Integer dolor ullamcorper libero.     Aliquam rhoncus eros at augue. Suspendisse vitae mauris.
  How do I convert the above to something like this:
     Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

     Quisque bibendum sem ut lacus. Integer dolor ullamcorper     libero. Aliquam rhoncus eros at augue. Suspendisse vitae mauris.
  Is this possible with jQuery? Edit: As  , this is quite possible without jQuery - but I was hoping there might be a special method of jQuery which would let you do selectors on the text itself. I'm already using jQuery heavily on this site, so keeping everything wrapped up in jQuery would make things perhaps a bit more tidy.


Can a single answer receive multiple bounties?

I know already that multiple bounties can be started on the same question (albeit not concurrently); but, can multiple bounties be awarded to the same answer?  For example: can I start a bounty against a question in order to reward an answer that has already received a previous bounty?


How to check if a string contains a substring and does not in Bash

I am wanting to use a switch/ case statement in bash to check if a file name which is a string contains something but also does not.  Here is my case:  case "$fileName" in     *Failed|!cp*)        echo "match"      ;; esac   But this does not work currently, how can I see if the string matches "Failed" but also does not contain "cp"?  It would be great if this could be done in a switch/ case as well


EDIT 2020-01-14:  With the , I no longer believe this is a storm in a teacup.    Dear friends across the Stack Exchange network.  Can we please calm down a bit about the Code of Conduct update?  As of 2019-10-21, the  had 424 upvotes and 2229 downvotes.  The post was later deleted.   has been written about it already.  Highly upvoted posts are speaking of .  Apart from the fact that nobody is coerced into participating in Stack Exchange and that for that reason alone there is no coerced speech, apart from the , can we please  from the way this has been handled?  Whether this is coerced speech or not and whether this is good or bad, let's not make a storm in a teacup out of this update.  Yes, there are decisions by Stack Exchange that many are unhappy about, in particular about the handling and communication surrounding the demodding of a moderator whose work many users were happy with.  That issue, although related to the CoC update, is distinct from the handling of the demodding.  The CoC can be bad while the demodding is fair, or vice versa.  Please judge the CoC update on its own merits, .  Worse things have happened.


Prevent Google Chrome from accessing C:\ or local files

We're trying to block the users from accessing to local files from Chrome.   We've disabled the access from Windows Explorer. However, if the users use Google Chrome, then they can easily type C: in the address bar, following which they can access local files. You can see an example below:    Does anyone know how to block the access?  I've been looking options such as:    Block the file system Configuring the user agent stylesheet, default styles, as well as the main set-up.    I'm looking in the JavaScript to edit it but I haven't found a solution. This image below is what I see, but I don't know the location for the file that gives a style or format to the local directory and I haven't found such a file in the latest Chrome version.


How can I clear the screen from former results in python cmd? I want to clear the screen in each level of a loop, I mean how to clear the results and print the new one instead of that?


Converting comma seperated numbers into a list of floats [python simple]

I am trying to solve the following question:      Define a function sum() and a function multiply() that sums    and multiplies(respectively) all the numbers in a list of numbers.    For example, sum([1, 2, 3, 4]) should return 10, and multiply   ([1, 2, 3, 4]) should return 24.   So far I have the following:  def sums(listofnums):     total=0     for i in (listofnums):         total=total+i     return total  def multiply(listofnums):      total =1      for i in (listofnums):          total = total*i      return total   listofnums=[]  nums=input("Enter a list of numbers seperated by commas: ").split(",")  nums2=[float(i) for i in nums]  listofnums.append(nums2)   print(listofnums)  print (sums(listofnums))  print (multiply(listofnums))   This returns the following:   *Enter a list of numbers seperated by commas: 1,2,3  [[1.0, 2.0, 3.0]]  Traceback (most recent call last):  File "C:\Python34\46 simple python ex\sum() and mult() v2.py", line 19, in <module> print (sums(listofnums))    File "C:\Python34\46 simple python ex\sum() and mult() v2.py", line 4, in sums total=total+i  TypeError: unsupported operand type(s) for +: 'int' and 'list'*   I suspect the issue is that my functions sums and multiply only work with a list of the form(x,x,x,x) or [x,x,x,x] and what values I am returning are [[x,x,x]].   How can I fix this?  (Note I think that the rest of the code is fine b/c when I manually input a set of numbers of the form [x,x,x] directly in the code it works fine.)


Cardinality of polynomials with real coefficients

What is the cardinality of the set of all polynomials with real coefficients? I know the power set of $\mathbb{R}$ is "more infinite" than $\mathbb{R}$, so to speak, but I'm unsure of how to prove that there does or does not exist a surjection onto $\mathbb{R}[X]$ from $\mathbb{R}$. Is it equinumerous with the power set of $\mathbb{R}$, or something else more exotic?


Add Delete Reasons like we have Close Reasons

I am of the opinion that too many questions are being deleted, particularly those that are duplicates. It seems some people don't even blink when deleting a question with 10 or 20 answers, some of them very good, just because there's an exact duplicate.  I believe Jeff has previously stated the duplicates can be useful for providing more pathways to the answer. Sometimes people ask the same question in a sufficiently different way that the original isn't found so that link is created.  That somewhat contradicts the view that closed questions are one step away from being deleted. I'm not sure if this is the official stance or it has just come about.  I figure we can clarify this by requiring a delete reason. Unless a duplicate has no real answers whatsoever it should pretty much be left alone (imho). There's no harm in it being there and perhaps we can get some clarification on when are the right times to delete.  Edit: Ok, example was requested. Here's one: . The timeline was:  Someone posted  (now merged so original is gone). But the text was:     I'm a member on several forums that   have a subforum dedicated to   programming questions.      It is an observation that to almost   every single question about finding   data in strings, the most common   answer is "use regular expressions".   And if you're lucky, a link to a   tutorial.      For many situations that people will   generally recommend regular   expression, it's pure overkill.      Many things can be done with   substring() and split() functions, yet   people always seem to put regular   expressions on a throne. Why is this?    Does this have something to do with   the history of regular expressions   versus these OO-language functions?   Are the people who recommend regular   expressions old farts?      Why in the name of the Matrix should I   use a regular expression and test it,   to see if a string contains a question   mark, if I can just do   string1.contains("?");      While in some cases, such as form   validation, regular expressions are   useful, I find that in most cases I   don't need them.      So how often do you use regular   expressions, not because it's useful,   but because it's what you're used to   using.      EDIT: if you're gonna vote to close   this, at least have the decency to   make a comment as to why!   So until (iirc) Marc intervened, 13 answers had been unceremoniously deleted for something that would've taken one of those offended by the question two minutes to fix. It's that cavalier attitude with deleting content and those taking personal satisfaction in it that I'm hoping to temper (shog9: "I don't regret the outcome. Indeed, it ended far better than i could have hoped for").  Lastly, it's worth noting that labels are important. For example, one close reason we have is "subjective and argumentative". Some view anything subjective as bad and vote to close it. Most of programming is subjective. Even "how do I code X?" can have several answers of relative and debatable advantages and disadvantages. Argumentative (eg trolling) is something else entirely.  The point of all this is that those reasons affect what people do (as most are trying to do the right thing so if they see "subjective and argumentative" they're just doing what they think they should be doing) so having explicit delete reasons should result in a better outcome: the right questions being deleted and less of the wrong ones being deleted.


SEDE generates incorrect links for localized Stack Overflow Metas

Stack Exchange Data Explorer generates wrong (outdated) links for localized child metas   generates this url:        But . The correct link would be:        At the same time SEDE generates correct links for regular StackExchange child metas (e.g. ). I suppose, someone forgot to update the url in [DataExplorer]..[Sites] for international StackOverflows.   Until recently, old subdomains redirected traffic successfully, but now certificates have expired and old-style urls generate SSL errors.  This is a minor annoyance, but it'd be great to see it fixed. It shouldn't be hard, as base urls are retrieved from the Sites table somewhere in the database.  Update: This question was marked as a duplicate of . That question is about the problem with a link generation in a particular cross-site query (written by @rene).   My question is about the base url for automatically generated links (triggered by [Post Link]). As I show it generates the correct url for regular child metas (), but fails for localized Stack Overflow metas (). The issue is completely different here.  The solution () posted there doesn't apply here. I know that I can generate the url myself, but it'd be nice to use the shortcut that works for any other site.


Cannot Install Win 7 on to Dell Precision 7510 with Lite On CX2 NVMe SSD

So my company orders laptops from Dell, and as per usual ordered one downgraded from Win 10 to Win7.  In this case it is a Dell Precision 7510 with an Intel i7 and an SSD Lite On CX2 NVMe 512 GB. The SSD failed pretty quickly and Dell sent someone to replace it. I think he also replaced the Motherboard. Unfortunately trying to boot our Win 7 Pro image failed because this machine has only USB 3, and the standard Win 7 image has no drivers for USB 3. So the guy left before we got to installing Windows, which I now regret. I added USB 3 drivers to the image and got as far into the install as selecting a drive but no drive is found –and it invites me to load a driver for mass storage.  But I cannot find a driver for any Lite On SSD. I’ve never seen an SSD that needed one to be added, actually so not sure if this is the right way to tackle this. I have seen suggestions of using another make of driver and I downloaded a load of different ones including Intel on the theory that’s the chipset. In BIOS I get option for AHCI and RAID On and I tried both with same result.  It recognizes different drivers if I check ‘Hide drivers that are not compatible’, depending on RAID or AHCI. But any I can see and load still give no drive visible. DISKPART also fails to find the disk so none of the solutions which involve DISKPART are useful right now.  If it’s relevant when I go to boot options I get: Boot mode – Legacy, Secure boot: Off. Then under legacy boot it shows: M.2 PCIe SSD or Onboard NIC. Under UEFI Boot is : UEFI: CX2-8B512-Q11 NVMe LITEON 512GB. So it’s sort of showing up under Legacy Boot but sort of not properly. Can’t see anything else under BIOS that seems even vaguely relevant.   When I contacted Dell the guy said try installing Windows 10, which works fine, so he said there is no fault and it was therefore not their problem (even though it was definitely ordered as a Windows 7 machine). They also said supplying a Win 7 image was not their problem – although I tried 3 different ones, in case. Any smart people out there got a clue what to do?


Sometimes I will face a problem and either figure out the answer myself, or find the answer on a site other than StackOverflow, but I think it might be helpful to other people.  Is it acceptable (or is there a different method) for posting the problem and answer?  If I had a blog, I'd throw it on there, but I don't.


well I have java 8 45 and when I go into terminal and do java -version it says this  "java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)"   But when I go to the java panel it tells me I have the latest version which is java 8 45. And I need to get this working asap because one of my minecraft server plugins needs java 8 and its not working. Can anyone help me with this problem thanks!


What is the term or word for when facts or truths, while accurate, have no bearing on the subject or argument: "Leaves are green in summer, therefore we should all wear boots"


Probability that two cards are black and one is red

If I draw three cards at random (without replacement) from a standard 52-card deck, what is the probability that two of the cards will be black and one of them will be red?  Thanks!


I'm experiencing some slowness on my laptop (SSD, I7 4th gen, 16GB) lately. I can't really figure out what it is, but one thing that I noticed is that the memory usage is quite high (8GB of the 16GB), even when I'm doing nothing. So in this image it shows my memory (geheugen) usage:    I am using 856Mb (it was 400MB before I started typing this question in Chrome) , but 53% of my memory, so more than 8GB, is used. So I wonder: where did the rest go? There are no other users logged on, I run SqlServer but I already limited it's memory usage.  Also found this datasheet in process explorer:   These are the processes using > 10MB:    This shows 'hard errors'. Is this a problem?   The 'memory' view   2 screenshots from rammap:     Do you have any idea what it can be?


What can I use to view office documents on the Ubuntu phone? I would like to be able to view odf and ms office documents like doc and docx.


Were the TNG-era uniforms re-created or reused?

In the first episode of Star Trek: Picard, "Redemption" we observe      two dream sequences involving Picard and Data,   with uniforms from the TNG and Nemesis era.  Were these uniforms re-created or reused?    Related:


Can you buy Daedric / Dragon Bone armour?

Is it possible to buy these armours or is smithing the only way to get them?


"calculus" and "formal system"  From      a calculus is a formal system that consists of          a set of syntactic expressions (well-formed formulæ or wffs),    a distinguished subset of these expressions (axioms), plus    a set of formal rules that define a specific binary relation on the space of expressions.      From      Formal systems in mathematics consist of the following elements:         A finite set of symbols (i.e. the alphabet), that can be used for constructing formulas (i.e. finite strings of symbols).   A grammar, which tells how well-formed formulas (abbreviated wff) are constructed out of the symbols in the alphabet. It is   usually   required that there be a decision procedure for deciding whether a   formula is well formed or not.   A set of axioms or axiom schemata: each axiom must be a wff.   A set of inference rules.      what is the difference between a formal system, and a calculus, then? I think they are the same? "calculus" and "logic system"  "Calculus" appears in "propositional calculus" and "first-order predicate calculus", which are also called "propositional logic" and "first-order logic" respectively. So I thought "calculus" and "logic" mean the same, and "a logic" is, according to ,      A logical system or, for short, logic, is a formal system together with a form of semantics, usually in the form of model-theoretic   interpretation, which assigns truth values to sentences of the   formal language, that is, formulae that contain no free variables.    But then I saw "calculus" also appears in "lambda calculus", which is also a formal system. I think a lambda calculus isn't a logic system, right? What does "calculus" mean in "lambda calculus"? Furthermore  "calculus" can also mean computational real analysis for first-year college students.   Thanks.


SharePoint online REST: Get users profile properties

I'm looking for some help with a REST call I'm attempting to make in SharePoint Online.  I'm doing an add-in that gives me the name, birhday and photo property of all user in user profiles    I tried with this code   var siteUrl = _spPageContextInfo.siteAbsoluteUrl;     Console.log(siteUrl);     $.ajax({         url: siteUrl + "/_api/SP.UserProfiles.PeopleManager/GetMyProperties",         method: "GET",         headers: { "Accept": "application/json; odata=verbose" },         success: function (data) {             console.log(data);         },         error: function(error) {             console.log(error);         }     });   but I only get current user profile properties, what I need is all user profiles properties for all users, how can i achieve that?  Thanks in advance!


In real analysis class, the professor used a basic property to give an easier definition of measurable function, it says:  Any open set $G\subset\mathbb{R}$ has the form $G=\sqcup_i (a_i,b_i)$.  It is an axiom? or how to prove it?   By the way, it seems I need some background knowledge of this kind of set properties. Are there some materials I can refer?


Is linear monemtum conserved with in angular momentum?

I am trying to understand conservation linear momentum with in angular momentum  Herewith i just explain what i am  looking for.    Imagine an object of mass(M), velocity(V), is undergoing circular motion    with radius(R)     Angular momentum L = RMV  (R-radius M-mass- V- tangential velocity)  Mass is constant here  Since L is conserved   so when R is decreased tangential velocity(V)     has to be increased to keep angular momentum constant.  Does this mean linear momentum not conserved when radius of rotation changes?  When linear momentum is not conserved then what is the force that increases the velocity of object when R decreases.  Could anyone clarify this. or could any one say is my basic understanding about momentum is wrong. for easy understanding i am only considered magnitude of momentum's not cross product of vectors


How many types of qubit encoding on photons exist nowadays? I know only two:   Encoding on polarization: $$ \lvert \Psi \rangle = \alpha \lvert H \rangle + \beta \lvert V \rangle $$ $$ \lvert H \rangle = \int_{-\infty}^{\infty} d\mathbf{k}\ f(\mathbf{k}) e^{-iw_k t} \hat{a}^\dagger_{H}(\mathbf{k}) \lvert 0 \rangle_\text{Vacuum} $$ $$ \lvert V \rangle = \int_{-\infty}^{\infty} d\mathbf{k}\ f(\mathbf{k}) e^{-iw_k t} \hat{a}^\dagger_{V}(\mathbf{k}) \lvert 0 \rangle_\text{Vacuum} $$ Time-bin: $$ \lvert \Psi \rangle = \alpha \lvert 0 \rangle + \beta \lvert 1 \rangle $$ $$ \lvert 0 \rangle = \int_{-\infty}^{\infty} dz\ f\left(\frac{t -z/c}{\delta t_{ph}}\right) e^{-i w_0 (t-z/c)} \hat{a}^\dagger(z) \lvert 0 \rangle_\text{Vacuum} $$ $$ \lvert 1 \rangle = \int_{-\infty}^{\infty} dz\ f\left(\frac{t -z/c+\tau}{\delta t_{ph}}\right) e^{-i w_0 (t-z/c+\tau)} \hat{a}^\dagger(z) \lvert 0 \rangle_\text{Vacuum} $$   Is there anything else?


Quantum mechanics,and how the law $ΔxΔp≥ℏ/2$ explains the paradox regarding atoms

In Chapter 2-3,Vol I of the Feynman lectures, Feynman talks about a rule in quantum mechanics that says that one cannot know both where something is and how fast it is moving. That the uncertainty of the momentum and the uncertainty of the position are complementary,and the product of the two is bounded by a small constant. And that the law can be written as such: ΔxΔp≥ℏ/2  He then goes on to state: "This rule is the explanation of a very mysterious paradox: if the atoms are made out of plus and minus charges, why don’t the minus charges simply sit on top of the plus charges (they attract each other) and get so close as to completely cancel them out? Why are atoms so big? Why is the nucleus at the center with the electrons around it? It was first thought that this was because the nucleus was so big; but no, the nucleus is very small. An atom has a diameter of about 10^−8 cm. The nucleus has a diameter of about 10^−13 cm. If we had an atom and wished to see the nucleus, we would have to magnify it until the whole atom was the size of a large room, and then the nucleus would be a bare speck which you could just about make out with the eye, but very nearly all the weight of the atom is in that infinitesimal nucleus. What keeps the electrons from simply falling in? This principle: If they were in the nucleus, we would know their position precisely, and the uncertainty principle would then require that they have a very large (but uncertain) momentum, i.e., a very large kinetic energy. With this energy they would break away from the nucleus. They make a compromise: they leave themselves a little room for this uncertainty and then jiggle with a certain amount of minimum motion in accordance with this rule."  -Why is it that the momentum has to be very large? -Isn’t is the uncertainty of the momentum that has to be large not the momentum itself?  Since he stated earlier that in the rule,it is the uncertainty of the momentum,not the momentum itself that is complementary with the uncertainty of the position,and the product..by a small constant. -Is it because a larger momentum would mean a more uncertain momentum. If it is,why is that so?  -On the last line of making a compromise,whereby they leave themselves a little room for uncertainty —“they” refer to the electrons? —So,the way that the electrons leave a little room for uncertainty (increase the uncertainty of their position) is to surround at a distance around the atom’s nucleus,instead of being in the nucleus?  —At the same time,the jiggling with a certain amount of minimum motion is to increase the uncertainty of their speed?


Dual Boot- installing windows in efi mode using gpt partition

I have installed Ubuntu 18.04, but now I want to install Windows 10 (dual boot). At first, I have disabled CSM and then I made a partition using Ubuntu Live CD. Then I tried to install Windows but it showed an error saying the partition is not GPT format. So to make it GPT what should I do without loss of data in other partitions (i.e I have 4 partition- swap,ext4,efi and unallocated(ntfs))?   Thanks in advance.


Change font size of labels in figures to any font size

I want to change the font size of the label of a figure environment to any font size. It's possible to use the package caption with the argument font=Large for example. But I found no way to choose any font size, e.g. fontsize=28pt.  Here an example code:  \documentclass{standalone} \usepackage{anyfontsize}  \usepackage[font=Large]{caption} %\usepackage[fontsize=28pt]{caption} % not implemented   \begin{document} \parbox[t]{20cm}{  \fontsize{28}{30} \selectfont  \begin{figure}     %\includegraphics{figure.eps}     \caption{\label{fig_req_osnr} \fontsize{28}{30} \selectfont My caption.} \end{figure}  }  \end{document}     Do you have any ideas?


Series of books; in one there is an island with very tall large pillars

I forgot the name of these books, but they are for kids, and perhaps 200 pages apiece.  There is some magical element to them, but I forgot what exactly it was. I seem to remember conscience animals at one point, but all the characters are human.  I distinctly remember in one of the last books, there is an island with several large pillars of earth on it, and at least one or two of them are so high that they stretch into the clouds and are impossible to see or climb. Another is covered in grass at the top. The others have bridges across them, and the island is populated by people. The main characters come in a boat with knowledge of some big sea monster, and at the end of the book, the monster knocks over one of the tall pillars, and it does a domino effect. The final and tallest pillar crashes down on the monster and it is found to have spikes on it, like that was it's intended purpose.  I seem to remember the sea creature was released by a pair of boys accidentally from an underground lake in an earlier book. They were adults on the ship at the time that the group reaches the island.  I also distinctly remember a game of chess between a girl and a prison guard (or a prisoner maybe?) that the book showed move-by-move in an earlier book. In the same book, I remember some kind of underground tunnel used to escape from the city's walls where the girl lives.  Anyone know what series this is?


What is the correct way to write a question you would verbally ask in a higher tone of voice?     How is this possible?!   OR     How is this possible!?   The subtlety lies in the punctuation.  Thanks


It is not possible to create a regular expression of this type xx.xx.xxx, where x - can be any Latin or Russian character of any register or digit. But there must be 2 symbols, then the dot => 2 symbols => point => 3 characters Made the following expression -  var_dump(preg_match('/^([а-я]*[А-Я]*[A-Z]*[a-z]*ё*Ё*[0-9]*){2}.([а-я]*[А-Я]*[A-Z]*[a-z]*ё*Ё*[0-9]*){2}.([а-я]*[А-Я]*[A-Z]*[a-z]*ё*Ё*[0-9]*){3}$/u', 'd1.df.dfd'));   The expression works correctly, but if you delete 1 character at the end, for example d1.df.df, it returns 1, although it should 0. Tell me please what is the problem?


60% of the Bahamian population "is" or "are"?

Which is correct?   60% of the Bahamian population are concentrated in the capital city, Nassau. 60% of the Bahamian population is concentrated in the capital city, Nassau.   The first sounds awkward to me, but I have come to realize the odd sounding form is often the technically preferable one in English.  I have read some articles on the web and done some browsing on the forum, but it is still unclear to me which is correct.  The answers to   suggest that it depends on the countability of the item to which the percentage refers, but the guidance is not clear enough to answer this question. The word "population" functions grammatically as an uncountable noun, but it is easy to recognize that that it refers to multiple individuals.  Does "the Bahamian population" count as singular, or must I recognize that it comprises many individuals and consider it plural?


How to fix the Windows 10 boot loader from Windows

I installed Ubuntu on a system that has Windows 10 installed. I can boot to Windows or Ubuntu normally using GRUB. I want to delete Ubuntu partition, but first I must restore the Windows 10 MBR.  In  (applies to Windows 7 and Windows Vista) they say to use Bootrec.exe with options /FixMbr /FixBoot, but when I type "bootrec.exe /FixMbr" in a command prompt, Windows says:     'bootrec.exe' is not recognized as an internal or external command.   I say I can boot to Windows 10 and run a command prompt from there (I don't need to use an installation medium), but I don't know what to enter.


Java Object assignment when passing to a method

I have the following  class Test{      public Inner x;      public static void main(String[] args){          Test t = new Test();         t.bar(t.x);      }      public Test(){         x = new Inner();         System.out.println("X = "+x.val);     }      public void bar(Inner a){         x.val = 2;         System.out.println("a = "+a.val);         a = new Inner(5);         System.out.println("a = "+a.val);         System.out.println("X = "+this.x.val);     }      class Inner{         public int val;         public Inner(){val=0;}         public Inner(int i){val=i;}     } }   I am concerned why the program tells me that my class's inner object and passed-in object are the same, but when I change the passed object to a new one, they are suddenly not the same. I thought java passed by pointers, and thus changing the pointer location of "a" in my bar method would likewise change the pointer location of "x", which was passed in.


If I vote as duplicate the design is broken. It is much worse if the question has no answers yet, then the answer box has a higher z-index.


The center of a non-Abelian group of order 8

Let G be a non-Abelian group of order 8. Prove that $|Z(G)|\leq2$.  (The center $Z(G)$ is defined as $Z(G)=\{ a\in G | ag=ga$  for all $g\in G \}$).  I deduced from Lagrange's theorem that $|Z(G)|\in\{1,2,4,8 \}$ and ruled out $8$ because $|Z(G)|=8\Rightarrow Z(G)=G$ and $Z(G)$ is Abelian while $G$ is non-Abelian.  I'm trying without success to rule out 4. Any ideas?


How can I upgrade my Ubuntu version to 13.10. My current Ubuntu version is 13.04.


Non-negative martingale $X_n \rightarrow 0$ a.s. prove that $P[X^* \geq x | \mathcal{F}_0]= 1 \wedge X_0 / x$

I need to prove the following statement. Let $X$ be a non negative martingale such that $X_n\rightarrow 0$ a.s. when $n\rightarrow \infty$. Define $X^*=supX_n$. Prove that for all $x>0$ $$P[X^*  \geq x | \mathcal{F}_0]= 1 \wedge X_0 / x$$ I think I've got the easy case  if  $x\leq X_0$  Then necessarily $x\leq X^*$ for the sup property. Then it follows that for $1\leq X_0 /x$ we have that $P[X^*  \geq x | \mathcal{F}_0]= 1$. But I can't figure out the other case.


Why do some wire gauge ampacity charts state vastly different current ratings?

This is a question that I've had for a while but have somehow managed to go without asking. Looking at all the wire gauge ampacity charts online, some of them appear to provide vastly different ratings for the same wire gauge. I understand this may be due to different standards, temperature, conductor types, strand count, etc.   However, lets looking for the current rating associated with 10AWG copper conductor at a low operating temperature (60c):      I've only cited two sources, however, I've come across many other charts that provide this 15 to 30 amp difference. What gives?


SharePoint app this page can't be displayed?

I configured all requirements for deploy Apps from store and i can access all apps, browsing and download. On trying to load the App, I get an error as follows:  This page can't be displayed •Make sure the web address  is correct.


Relativistic speed/energy relation. Is this correct?


$Q.14)$ If $\alpha,\beta$ are complex numbers where $\alpha\ne \beta$ and $|\alpha| = 1$. Prove that $\displaystyle\left|\frac{\alpha\overline\beta-1}{\alpha-\beta}\right|$. .  For $Q.14$ I tried separating the expression into real and imaginary components and then solving it but it does not lead to anywhere. What approach should I take to solve this question? Thanks.


the official responsible, the responsible official

EU legislation is full of 'responsible officials' and 'responsible persons', 'responsible authorities' and the like (e.g.'at least one responsible person must be resident in Estonia' 'a responsible official body must carry out the checks), where 'responsible' means (I am quoting the ODO) 'Having an obligation to do something, or having control over or care for someone, as part of one’s job or role'. For me, and, it seems also for the ODO, which describes this meaning as 'predicative'as well as for Macmillan and Collins, responsible officials are those who are not irresponsible. In order to render the required meaning, responsible should be placed after the noun - or should it? If so, does the same distinction hold in the US? This question is clearly different from the previously answered question 'Why do some adjectives follow the nouns they modify'. It refers to a question concerning the meaning of a specific adjective depending on its position and the usage on both sides of the Atlantic. Neither of these questions are broached in the previous post.


In the lecture notes, in order to prove that TSS=ESS+RSS. My instructor writes that: $$TSS = \sum_t^n (y_t -\bar{y})^2= \sum_t^n y_t^2 -n\bar{y}^2$$ I don’t understand the second equality. Instead, I would write $$ =  \sum_t^n y_t^2 - 2\sum_t^n y_t\bar{y} + n\bar{y}^2$$. But the instructor’s expression is different. How does he get it?


Can an explicit formula be found for a bijection $f \colon \mathbb{N} \to \mathbb{Q}$?

Let $\mathbb{N}$ be the set of all natural numbers, and let $\mathbb{Q}$ denote the set of all rational numbers.   Then of course there is a bijection $f \colon \mathbb{N} \to \mathbb{Q}$ since $\mathbb{Q}$ is a countably infinite set.   Can we find an explicit formula for $f$?


in java, is copying of 2d array just copy of the reference?

for example,   private char[][]board ;  public voi foo(char[][] board) {      this.board = board; //so, what's happening in this line. just pass the reference?                //  }   Also, if I modify this.board, will it reflect to original board?


What is the reasoning behind the Interface Segregation Principle?

The Interface Segregation Principle (ISP) says that many client specific interfaces are better than one general purpose interface. Why is this important?


User group membership appears to be empty

I appear to be having issues with group membership for the single user on my Ubuntu laptop. I found this initially when trying to access a USB stick and finding I was getting access denied. I checked I was a member of the group the device was being assigned when mounting but I can only access with sudo or by changing the permissions to o+rw  I've just installed docker and again I can only run under sudo as running as an unprivileged account gives an access denied error to the docker.sock file. Weirdly when I query my groups I get none but when I query for the user I am logged on as I get them. It appears as though there is some problem with assigning groups to the logged in account. This has been happening for several weeks and I've logged off/rebooted many times.  lsb-release  DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"   File permissions  $ ls -l /var/run/docker.sock  srw-rw---- 1 root docker 0 Oct 22 09:14 /var/run/docker.sock   User  $ whoami rob   Groups  $ groups rob   but  $ groups rob rob : rob adm disk dialout cdrom sudo audio dip video plugdev netdev fuse lpadmin scanner sambashare vboxusers docker   Is there something corrupted here?


Can I develop for iOS on Ubuntu?  I was told that since it was Unix based, that I could develop for iOS on Linux. But can I also upload iOS games to the Apple's App Store on Linux?


Arabic encoding issue Ø§Ù„Ù…Ù… php mysqli

I want to display arabic text but charactere Ø§Ù„Ù…Ù…Ù„Ùƒ display. For example the word المملكة العربية السعودية display on Ø§Ù„Ù…Ù…Ù„ÙƒØ© Ø§Ù„Ø¹Ø±Ø¨ÙŠØ© Ø§Ù„Ø³Ø¹ÙˆØ¯ÙŠØ©  I add on my page always encoded on UTF-8: <meta charset="utf-8">   but that not changed.  text is from mysqli database to php .. any sugestions .. ? all php pages are utf8 and database is tried MyISAM utf8_general_ci tried InnoDB tried latin1_general_ci tried utf8mb4 as well didnt work  tried :  mysqli_set_charset($connection, 'utf8');  mysqli_query($con,"SET CHARACTER SET 'utf8'");  mysqli_query($con,"SET SESSION collation_connection ='utf8_unicode_ci'");          all still same result..  Have you a idea about that?


Looking at moving my laundry upstairs, and the right answer is to combine two adjacent closets to get the width and move one of their walls a foot or two into the kitchen to get the depth.  The kitchen floor is 10-inch-square tiles. It would be sort of nice if that continued on into the laundry closet. I do have a full bundle of spare tiles in the basement.   Question: Could/should I plan on the new wall coming in on top of the existing tiles (presumably having to drill to secure the footer without shattering them), or should I plan on removing the ones under the footer and fitting cut pieces back in afterward?


Can I use my familiar from the Find Familiar spell as a safety deposit box?

The Find Familiar spell states, in part:  As an action, you can temporarily dismiss your familiar. It disappears into a pocket dimension where it awaits your summons.  The question arising from this is:  Is this pocket dimension different for every familiar in the world? Thus being a personal pocket dimension? If this is true, then it should be able to store items given by its master for safe keeping away from anyone else, as long as these are items that a familiar could carry with it. Can the familiar bring small items with it into the pocket dimension for safe keeping?


More precise word or phrase for neutral connotation of racism

in the dictionary means      a belief or doctrine that inherent differences among the various human races determine cultural or individual achievement, usually involving the idea that one's own race is superior and has the right to rule others.   Is there a word or phrase that means      a belief or doctrine that inherent differences among the various human races determine cultural or individual achievement   without implying "the idea that one's own race is superior and has the right to rule others"?  None of the other answers are relevant.


Error: Local variable referenced before assignment

I have created an HTTP server in python that executes some cryptographic algorithms. So I try to create vital variables for my cryptography outside the GET method, as I dont want them to change after each request.  Here is a sample of the code:  class Handler(BaseHTTPRequestHandler):       def do_GET(self):                path = self.path         print 'request for ' + path         rootdir = '/Server'          client_mac = path.split('?')[-1]                     file_name = path.split('?')[0]          if self.path.split('?')[0].endswith('.txt'):              '''create client ID'''             print 'Printing mac address of connected device ----> %s' % client_mac              id1_secret_key = pre.keyGen(master_secret_key, client_mac)              fr = open (rootdir + file_name)             file_data = fr.read()             sym_key_ciphertext = pre.encrypt(params, client_mac, sym_key);   #more code follows  try:      httpd = HTTPServer(('',8080), Handler)     print 'Server is on and listening to port...7000'      group = PairingGroup('SS512', secparam=1024)       pre = PreGA(group)     (master_secret_key, params) = pre.setup()     print params     sym_key = OpenSSLRand().getRandomBytes(128) #128 bits     sym_cipher = AuthenticatedCryptoAbstraction(sym_key)     server_mac = get_mac()     id2_secret_key = pre.keyGen(master_secret_key, str(server_mac))      httpd.serve_forever()  except KeyboardInterrupt:     print '^C received,shutting down the web server'     server.socket.close()   After the excution of a GET request i get the following Error:  File "server.py", line 157, in do_GET ciphertext = pre.encrypt(params, client_mac, file_data); UnboundLocalError: local variable 'params' referenced before assignment   I should mention that variable params has a value after the execution of pre.setup().Any advice would be helpful and deeply appreciated.


Many people use the phrase etc. in their writing. However, I have never come across an example of using a comma after it.  So, is it     Almost everybody uses Wi-Fi in their daily lives – be it gaming, emails, searching, etc. for it is their hobby.   OR     Almost everybody uses Wi-Fi in their daily lives – be it gaming, emails, searching, etc., for it is their hobby.   ?  Or perhaps I should use     Almost everybody uses Wi-Fi in their daily lives - be it gaming, emails, searching, etc, for it is their hobby


Why does the tangent of numbers very close to $\frac{\pi}{2}$ resemble the number of degrees in a radian?

Testing with my calculator in degree mode, I have found the following to be true:  $$\tan \left(90 - \frac{1}{10^n}\right) \approx \frac{180}{\pi} \times 10^n, n \in \mathbb{N}$$  Why is this? What is the proof or explanation?


I really like the new sidebar. With the new top bar eliminating the "Hot Questions" area there, I think this is the perfect place for it. One-click access to time-wasting questions about topics I may or may not have an interest in. Seriously, it's a procrastinator's dream come true. The only suggestion I can add is to extend it. I assume the "hot" algorithm can spit out more than 12 questions, and since we now have a huge amount of room for it(without being restricted to a weird drop-down scrollbox), why not show more? If there's something else planned for that spot, disregard. At a minimum, the title could link to the , as ShaWizDowArd suggested in comments. I've been using SE for a couple years now, and I've never seen that page, so it would add visibility there.    Update: They added a link! Just noticed this, I'm pretty sure it wasn't there yesterday. When you click it, it loads 12 more. At the moment, the link disappears once clicked, so you can see a total of 24 here now. Not a link to the full list, but better:


How to Prove the Chain Rule for Limits Using a $\varepsilon$-$\delta$ Argument?

I came across the chain rule for limits the other day and it interested me quite a bit and surprisingly I couldn't find the proof on the internet anywhere. From what I understand the chain rule for limits states that if:  $$ \lim_{x\to c} g(x)=M$$ and $$\lim_{x\to M} f(x)=L$$ then$$\lim_{x\to c} \ f(g(x))=L$$  1.Under what conditions does this hold true?  2.What is the epsilon-delta proof for the rule?


How to unflag a comment when it was flagged by mistake?

I recently made an "oops" when I flagged a valid comment as off-topic, when I had meant to flag the question as an off-topic question that should be migrated. Unfortunately, unlike upvotes, downvotes, and other such features, there doesn't seem to be a way for the original flagger to remove an accidental flag.  Is there any mechanism to do this? Since human error is always a factor in any system, it seems like there should be a way for a flagger to undo such a mistake, especially in cases where the error is immediately recognized.


$a$ in ring $R$, adjoin $b$ such that we have relation $b=a$ then will get ring isomorphic to R

I have been told that if we have a ring $R$ and $a$ is an element of $R$ and if we adjoin an element $b$ with the relation $b=a$ then we will get a ring isomorphic to $R$. However, I have not seen a formal proof for this. Is there a textbook or nice proof of this anyone knows of? I can't seem to see exactly how this is true.


#include<iostream> #include<string> #include<algorithm> using namespace std; int main() {   string str;   cin>>str;   str.erase(remove_if(str.begin(), str.end(), isspace),str.end());   cout<<str;   return 0; }   ERROR MSG:     /home/satish/Desktop/CPP/Remove_Spaces/main.cpp|9|error: no matching function for call to ‘remove_if(std::basic_string::iterator, std::basic_string::iterator, )’|


How can I figure out the font used by a class file

I have a document class that isn't as thoroughly documented as I might like, and I'd like to figure out what font it uses. Is there an easy, universal way to get TeX to tell you directly what font is being defined by the class file? Preferably in a way that will show me how I can define the font in my own file, in TeX code? I have read this question that asks how to . This doesn't tell me what the font is called in TeX, and is very round-about. Preferably, I'd like to know the name of the font package that I want to use.


I got $x + CBD = 110^{o}$. I think I should find measurements of angle CBD, so how to find it?  Do you have any ideas? Please help me!


I have a list with a images. When i click the image i want to highlight it. I also have a upload new image button, which uploads in list a new image. But when i click the uploaded images they don't highlight.  This is the code in snippet.    function changePhoto(input) {   if (input.files[0]) {     var reader = new FileReader();     reader.onload = function(e) {       var source = e.target.result;       $(".list").append("

")     }     reader.readAsDataURL(input.files[0]);   } }  $("#addPhoto").change(function() {   changePhoto(this); });  $('.image').click(function(){             $('.selected').removeClass('selected');             $(this).addClass('selected');         }); .image {   height: 100px;   width: 100px;   cursor:pointer; } .selected {   border: 1px solid blue; }  <form action="">   <input type="file" value="Add new image" id="addPhoto"> </form>

     And


Need help to create such a beautiful title page

I have seen such a beautiful preamble (got the PDF from on of my studentfriends and need help to create such a beautiful titlepage. The black bands are to make the picture anonymous, to hide the identity of my friend.  But I just need such a beautiful titlepage for my instructors. No one of us has the preamble anymore :(  Kind regards  and thank you very much in advance.  Is it allowed to ask such a question in this forum?


Why was Tom Bombadil so unconcerned about the fate of Middle-earth?

I know he saves the hobbits from the barrow-wight and gives them weapons which affect the Nazgûl, Sauron's greatest servants. But I've always wondered why a high power, which Tom Bombadil obviously is, doesn't play a more significant part against Sauron. Gandalf says at the Council of Elrond that Tom wouldn't understand the struggle between Light and Darkness.    Asked if Bombadil might take the Ring for safekeeping, Gandalf replies:     "No," said Gandalf, "not willingly. He might do so if all the free folk of the world begged him, but he would not understand the need. And if he were given the Ring, he would soon forget it, or most likely throw it away. Such things have no hold on his mind. He would be a most unsafe guardian; and that alone is answer enough."          The Fellowship of the Ring, Book II, Chapter 2: "The Council of Elrond".    What confuses me is that if Sauron regains the One Ring, Tom will also fall like the rest of Middle-earth.  Is there any other info in the texts (aside from fact that Gandalf says that he basically doesn't care what happens) about why he didn't play a more prominent role?


Which of the following property satisfied by the entire function .

Question :  Let $f$ be an entire function . Suppose for each $a \in \mathbb R$, there exist atleast one coefficient $c_n$ in $f(z) = \sum_{n=0}^{\infty}c_n (z-a)^n$, which is zero . Then   $f^{(n)}(0) = 0$ for infinitely many $ n \geq 0$ $f^{(2n)} (0) = 0$ for every $ n \geq 0$. $f^{(2n+1)} (0) = 0$ for every $ n \geq 0$. there exist a $ k \geq 0$ such that $f^{(n)} (0) = 0$ for all $ n \geq k$.   we know that the zeroes of a non constant analytic function is a discete set which is contable . So zeroes of each derivative set is countable . So its union is countable . If $f$ is not a polynomial, then we get a contradiction according to the statement of the question.  Thus $f$ is a polynomial. So (1) option and (4) option are true.  For (2) , $f(z) = z^2$, For (3), $f(z) = z^3$ are counter example.  I would be thankful, if someone check my Solution.  Thank you


Submitting an edit after you hit the suggested edit limit should not return a server error

I ran into a bug on  where I hit the suggested edit limit while editing tag wikis without realizing it, and attempting to submit any subsequent suggestions returned a server error, rather than alerting me I hit .  Can the red tooltip that says "An error occurred submitting this post." be changed to something like "You have hit the suggested edit limit of 20 posts, please wait for your current suggestions to be reviewed before submitting additional suggestions." or something like that?  Some additional information about this scenario based on :  I had several suggested edits queued up in multiple tabs.  I was prepared to submit them one by one, as the 30 second limit lifted.  The fact that I was trying to submit several forms that had been open for 30+ minutes was probably the culprit.  Thanks Shog for looking into this.


Why is my image sequence render using an old version of my animation?

Whenever I try to render my blender animation, I get this weird sequence render and uses an older version of my animation, and just creates junk files.   I'm using JPEG format, rendering into a new folder. I have tried restarting blender, saving then reopening the file, but this didn't fix it. Please help, I need to get this animation rendered so I can make sure everything looks OK from an animated rendered view.


Software to run a large university website

I'm trying to find a replacement solution for a large university's current web presence.  There are a number of strategies we are considering, including perhaps using an open-source or commercial off-the-shelf software solution.  The list of requirements we have is very lengthy, but main points include:   Robust content management system, which would allow for creation of multiple independent sections on the site, Flexible permissions system, allowing for a large number of section-specific administrators and editors, Ease of use, Extensibility, allowing us to integrate the software with existing IT resources (e.g. LDAP-controlled login system, numerous databases with HTTP interfaces, etc.)   If anyone here worked or studied at a university and has used or implemented software solutions to this problem, I would be very keen to hear your opinions of what works well or what doesn't.


Replacing text in a file shows "permission denied"

I created a file with file named vj, wrote a sentence in it, and I want to replace this sentence.  So I did follow these commands, but it shows "permission denied":  sudo echo "iam a hacker" > sudo vj bash: sudo: Permission denied


Error installing virtualbox-dkms on Ubuntu 20

Ubuntu 20.04. I installed virtualbox using package; it worked, I created and ran a RM. But then stopped to work after software update. I cannot run the VMs, message says : Kernel driver not installed (rc=-1908)  The VirtualBox Linux kernel driver is either not loaded or not set up correctly.  Please reinstall virtualbox-dkms package and load the kernel module by executing  'modprobe vboxdrv'  as root.  I managed to disable secure boot, so this is not related to this. Now I try to reinstall virtualbox-dkms package as requested : sudo apt remove virtualbox-dkms sudo apt install virtualbox-dkms  But then I get the following error : Préparation du dépaquetage de .../virtualbox-dkms_6.1.10-dfsg-1~ubuntu1.20.04.1_amd64.deb ... Dépaquetage de virtualbox-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) ... Paramétrage de virtualbox-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) ... Loading new virtualbox-6.1.10 DKMS files... Building for 5.8.0-34-generic Building initial module for 5.8.0-34-generic Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64) Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information. dpkg: erreur de traitement du paquet virtualbox-dkms (--configure) :  installed virtualbox-dkms package post-installation script subprocess returned error exit status 10 Des erreurs ont été rencontrées pendant l'exécution :  virtualbox-dkms E: Sub-process /usr/bin/dpkg returned an error code (1)  If I look at /var/lib/dkms/virtualbox/6.1.10/build/make.log I see : /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:38: error: ‘cpu_tlbstate’ undeclared (first use in this function); did you mean ‘cpuhp_state’?   760 |     RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);       |                                      ^~~~~~~~~~~~ ./include/linux/percpu-defs.h:318:9: note: in definition of macro ‘__pcpu_size_call_return’   318 |  typeof(variable) pscr_ret__;     \       |         ^~~~~~~~ /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:24: note: in expansion of macro ‘this_cpu_read’   760 |     RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);       |                        ^~~~~~~~~~~~~ /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:38: note: each undeclared identifier is reported only once for each function it appears in   760 |     RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);       |                                      ^~~~~~~~~~~~ ./include/linux/percpu-defs.h:318:9: note: in definition of macro ‘__pcpu_size_call_return’   318 |  typeof(variable) pscr_ret__;     \       |         ^~~~~~~~ /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.c:760:24: note: in expansion of macro ‘this_cpu_read’   760 |     RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);       |                        ^~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:290 : /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv/linux/SUPDrv-linux.o] Erreur 1 make[2]: *** Attente des tâches non terminées.... make[1]: *** [scripts/Makefile.build:519 : /var/lib/dkms/virtualbox/6.1.10/build/vboxdrv] Erreur 2  What I am missing ?


I am a British citizen living in the UK but have a fiancee living outside the country. She was banned in 2009 when she applied to come to study in the UK. Her agent included a fake bank statement which led to the 10 year ban.  We are planning to marry sometime in 2019 which makes 10 years after the ban, can you please advice us if she might have difficulty gaining entrance to the UK or will this be a straight forward application as long as she mentions that she was banned and refused entry 10 years ago and now all current documents are genuine?


How much $G$ is required to bend light?. Also, please explain what happens if a powerful light beam in a vacuum is intercepted by electromagnetic fields on either sides.


Solving /var/lib/dpkg/lock - open (13: Permission denied) with "are you root?" error

Error:  E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   So, I've seen this error crop up a few times and get it as a result of using the following commands:  sudo apt-get update && apt-get upgrade    I'm acting as root and have ensured that none of the update managers are running. First I tried to check what was locking it using:  sudo lsof /var/lib/dpkg/lock   with output of:  lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/gareth/.gvfs Output information may be incomplete.   Just in case I have tried to remove the lock using:  sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock   ...to no avail. Interestingly, if I am actually root and use:  sudo -s  apt-get update && apt-get upgrade   ...the update works. So I can update and upgrade my packages as long as I am literally root which is somewhat frustrating. It also implies it more to do with permissions than something else locking the directory perhaps?  Thanks in advance with any assistance on this.


How can one prove that $e^\pi>\pi^e$ ? Should I use logarithms or something like that? Or is there a gentle smart way of proving so?


$\mathbb{R}$ with the finite complement topology

Let $X=\mathbb{R}$ be given with the collection $\tau$ where  $$ \tau = \{U\subset X: |X\setminus U|<\aleph_0\}\cup \{\emptyset\} $$ I was sitting at my computer, when I suddenly asked myself: "How is $\tau$ actually a topology on $\mathbb{R}$?". It is supposed to satisfy the arbitrary union condition, but it doesn't. Indeed $$ \bigcup_{i\in \mathbb{N}} \mathbb{R}\setminus \{i\} \notin \tau $$ but each of $\mathbb{R}\setminus \{i\} \in \tau$. Can someone explain to me how $\tau$ is a topology?  edit as Thomas Andrews points out, I was confusing unions with intersections and, in general, just being an idiot.


Transfer from Washington National (DCA) to Washington Dulles(IAD)

I've got a transfer (on United) from Washington National (DCA) to Washington Dulles (IAD) airports, landing at DCA at 15:22.  What's a quick, low stress way of doing this change (price isn't especially important), at a time of day that I'm concerned may be kinda busy on the roads.  Also, will I need to collect and recheck my own baggage?


Can I see how many votes my comments have?

I recently won a '' badge for having 10 comments with a score of +5 or more. I then proceeded to waste more time than I'm comfortable admitting to trying to find which comments were well liked enough to bolster my ego.  There is no way that I can see to sort comments by number of upvotes on the profile page. Is there any way to do this? I know there is an API somewhere, but I don't know how to use it yet.  I found , but it doesn't seem to have made it into the shiny new profile revamp either.


How can i start learning about using neural networks for time series analysis and forecasting?

I am planning to use neural networks for time series analysis and forecasting and i was looking for a reference or any textbook i can use for that purpose. It would be great if it has practical R or python code with it.


Ok, there are a million regexes out there for validating an email address, but how about some basic email validation that can be integrated into a TSQL query for Sql Server 2005?  I don't want to use a CLR procedure or function.  Just straight TSQL.  Has anybody tackled this already?


Clicking a  tag to run JQuery javascript function

I create a span using PHP like this.  if ($subnetkey  == 1 ) { echo ("S/N of: $subnetnum&nbsp;&nbsp;");}   It works, and shows the correct data on screen. Additionally if I look at it using 'Inspect Element' its properly formatted.   S/N of: 780   I have this script at the top of the page. I've also tried it at the bottom.     When I click the span, nothing happens. I get no errors, and of course I don't see the alert fire.  It seems like this is a timing issue between building the page dynamically and using the page. But in case thats not it, what can I do to make the function fire?


What's the difference between float x[] vs. float[] x?

I was watching a video, and they showed that they were establishing a float array like this:  private final float x[];   I have always done this:  private final float[] x;   I tested both and neither produces an error.  Is there a difference or is this just preference?


Python regular expression always return None

I want to get userid from url like:  http://space.bilibili.com/1950746/#!/channel/detail?cid=1757&order=&page=1   and it should be like 1950746.  And here is the code:  url='http://space.bilibili.com/1950746/#!/channel/detail?cid=1757&order=&page=1' b=userid=re.match(r'\d{7}', url) print(b)   The result is None.


Bayesian GLM/ANOVA in brms -- what is the "equivalent" to frequentist post-hoc? Does it matter?

I'm running a one-way Bayesian GLM (in brms in R) between three groups (Class), using a heteroskedasticity adjustment: brm(bf(Var ~ Class, sigma ~ 0 + Class), data = df)  When I plot the condition effects it's very clear that there are group differences, but I'm not sure how to "test" this. When I look at the output, it's also clear that the CIs don't overlap. I almost feel like maybe I don't need a formal test because the CIs don't overlap, but not sure if that applies. I'm guessing this is really simple and I'm just a noob (true). Any recommendations conceptually or in terms of packages?


I'm seeing an odd issue in my code  In my mfc/c++ application, there is a function that gets called at 2 different points. Once, when a dialog/component is displayed. The second time is when some generation is happening from a 2nd dialog/component. The only difference is that from the 2nd dialog, the call is happening in a new thread.  Within this function, broken down to its simplest, 2 doubles are subtracted.  double a = -13.497999999999999 double b = 33.564999999999998  a - b   when I step through the code, I am getting different results from the subtraction and is having a knock on affect to other calculations. The result from Dialog 2 seems to be closer to what is valid.  Dialog 1 - 20.066999435424805  Dialog 2 - 20.067000000000000   Very odd that simple subtraction would return different results. The differences may be minimal, but they do build up to cause a larger problem.  using VS2010, settings all correct as far as I can tell.  I've tried using floats and long double's to see if that would resolve anything but they don‘t.


I am using vb.net to summarize some information in a datatable using the following code.  For some reason the rounding works on all value apart from 1.  Code:  Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click     If TextBox1.Text = "" Then         'Do Nothing     Else          Dim conn As New SqlClient.SqlConnection         With conn             .ConnectionString = "server=inlt01\SQLEXPRESS; database=OrbisBilling; integrated security=yes"             .Open()         End With          Dim cmd As New SqlClient.SqlCommand         With cmd             .CommandText = "SELECT [Account], [Customer Lookup],ROUND (SUM ([ChargedAmount]),2) as [Sum of Buy Price],ROUND (SUM ([Sell Price]),2) as [Sum of Sell Price],[Tariff Lookup] FROM [OrbisBilling].[dbo].[" + TextBox1.Text + "] GROUP BY [Account], [Customer Lookup],[Tariff Lookup] Order by [Customer Lookup]"             .CommandType = CommandType.Text             .CommandTimeout = 30             .Connection = conn         End With         Dim dt As New DataTable         dt.Load(cmd.ExecuteReader)          With OrbisViewBillForm.DataGridView1             .AutoGenerateColumns = True             .DataSource = dt         End With          cmd.Dispose()         cmd = Nothing         conn.Dispose()         conn = Nothing           OrbisViewBillForm.Show()      End If End Sub   As you can see I ROUND the sum for 'Sell Price' by 2 decimal places.  Here is the result.  56.1 1.5899999999999999 133.64 12.67 14.93 0.76 0.57 4.25 2.24 0.06 7.75 4.31 7.96 0.78 0.01 33.55   If rounding to 2, why do I get 1.5899999999999999?  To help troubleshoot I changed the rounding to 3 and get the following inconstancies.  56.1 1.5899999999999999 133.643 12.671 14.928 0.764 0.568 4.253 2.2439999999999998 0.058 7.745 4.306 7.9559999999999995 0.779 0.005 33.554   Any help greatly appreciated.  Thanks,


My device is getting slow, apps start misbehaving/crashing. What can I do?

Everything was working fine for a long time. But suddenly the device is getting slower than usual (e.g. apps react slowly when starting an action -- like the RSS reader takes "ages" to open an article). Also, several apps start crashing: force-closes as well as unexpected restarts. Sometimes this even involves some automatic reboot of the device.  Is there anything I can do, besides doing a factory-reset? Preferably it should work on un-rooted devices.  Remark: not all described problems may occur together, so on one device e.g. there might be no automatic reboot involved. Question remains the same, nonetheless.


Is it possible to preview arbitrary formats in Nautilus?

I recently found out that Nautilus (Ubuntu 12.04 at least) can show thumbnails of files of non-image formats, for example (data grapher) grace files (.agr) shows a small version of the graph contained in its data. Obviously, there some library or script that is processing the file, making the image, and allowing nautilus to show a small version of it.  This made me think that in principle any file that potentially can be processed into an image can serve as a Nautilus thumbnail.  For example, a .tex file (which can be converted to .pdf) or a gnuplot script can be displayed as a thumbnail when possible.  In the case of .tex file, the correspoding .pdf can be created by the command pdflatex file.tex.   The question is, how can I tell Nautilus to create a thumbnail for an arbitrary format and how do I specify the commands to do so within Nautilus?    Update 2014,  I still didn't manage to preview anything with the answer posted, I created this script in /usr/bin/tex-thumbnailer:  pdflatex $1 convert -density 300 ${1%.*}.pdf -resize 25% $2   and a file /usr/share/thumbnailers/tex.thumbnailer:  [Thumbnailer Entry] TryExec=tex-thumbnailer Exec=tex-thumbnailer %u %o MimeType=text/x-tex;   I can't make nautilus to generate/show the preview even for simple TeX files. I don't know what I am doing wrong.


I am trying to do something that I imagine is quite straightforward but I am new to C/C++ so it is proving a little bit tricky. Essentially I am trying to remove a single whitespace from data contained within a .txt. Each piece of data is on a separate line:  01011 0 11100 1 00001 0   and so on. I have been able to count the number of lines, and the size of each string (including the whitespace) however I want to lose the whitespace located within the data. My code for reading the data in (including whitespace is as follows):  std::ifstream myfile ("random.txt"); std::string str;  if(myfile.is_open())                 {                 while (std::getline(myfile, str))                     {                     i++;                     Size = str.size();                     data_input[i] = str;                     line_num = i;                     array_count = line_num * Size;                     }                  i = 0;                 }   I have looked at various other posts but can't seem to find one that fits what I am trying to achieve. Any help would be appreciated.


A player constantly uses his mobile phone during our game session

One of my players in my D&D campaign is almost always on his mobilephone, replying to messages etc. I've asked him if he could refrain from using his phone as I find it very distracting and it slows the pace of the game down. He doesn't see why he should put his phone away and is saying he'll leave the group rather than put the phone away. The trouble is that he's a good friend and I don't want to sour the friendship.  I've suggested checking phones or messaging during breaks or stepping away from the table if he needs to message or whatever, but none of my suggestions are acceptable. Any ideas?


Templated C++ class wont be compiled to library

I'm compiling sucessfully a library but when I try to compile some file using it, I get undefined references for fromPath and even for the constructor BB. Here's the header file: namespace lib_bb { template <class Stack>     class BB : public Stack     {     public:         BB(std::string profile);         static BB<Stack> fromPath(std::string path); }  Here's the cpp file: void hello() {     std::cout << "test" << std::endl; } namespace lib_bb {     template <class Stack>     BB<Stack>::BB(std::string profile)     {     }           template <class Stack>     BB<Stack> BB<Stack>::fromPath(std::string path)     {     } }  I'm compiling with file(GLOB SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/BB.cpp)  add_library(my_lib STATIC ${SRC_FILES})  However, nm lib_my_lib.a | grep fromPath returns nothing, but nm lib_my_lib.a | grep hello prints hello. Am I doing something wrong? Perhaps about namespaces or usage of templates? Here's how I'm using it: #include "LibBB.h" #include "StackExample" #include <string> int main() {     std::string path = "exampleStringPath";     auto lOpenVPNClient = libopenvpn::BB<StackExample>::fromPath(path);     return 0; }  and linking it: add_executable(example_client examples/main.cpp) add_dependencies(example_client mylib) set_property(TARGET example_client PROPERTY CXX_STANDARD 17) target_link_libraries(tcpclient my_lib dl)


I am a beginner at minecraft. I am very confused by the following setup:    If I step on the pressure plate, piston number 1 is activated. The key piece of redstone is the one circled in blue; if I remove that one, the piston stops activating.   As for piston 2, I am also confused why it's not activating. I thought it should be diagonally powered, but it's not.


Consider a teleportation booth which exactly replicates ones body and mind in Mars, whilst destroying that on Earth; as in Parfits Reasons and Persons.   There is only one you at any one time; so where you are is easily tracked - at one point you were on the Earth, and at another later time, and suddenly you were on Mars.  But, suppose at a critical moment the machine breaks down and so there are two yous, one on Earth and the other on Mars. Which one is really you? Of course they both behave differently, after all one is on Mars and the other is on Earth; and thus faced with different circumstances that are immediately present; still each responds to the same name, claims the same woman as his wife (and another as his mistress); has the same memories of college, and of playing football on a field by a stony beach that ran out to a cold sea; and though they wear different clothes; they wear recognisably similar fashion choices; and their mannerisms would be familiar to their friends.  So which is the real you?   The conclusion to Descartes cogito is 'I am'; this sense of inner awareness; how can this be at different places separately?   One could for example, consider a conscious AI who had an avatar here on the earth and another on Mars; but his conscious would be unitary; his avatars, in a sense are mechanisms for perceptions and acts.  But we have two quite distinct persons, who are also the same.  If consciousness is unitary - perhaps this means that, in fact, no such machine is possible - and it is in fact just science fiction, whose fictional ontology is just that - fictional.  Is this a sensible conclusion to take?


How do I prove that $\sum^n_{i=1}(x_i -\bar{x})(y_i - \bar{y}) = \sum^n_{i=1}(x_i -\bar{x})y_i^*$

We know: $\sum^n_{i=1}(x_i - \bar{x})^2 = \sum^n_{i=1} x_i^2 - n(\bar{x})^2$ But I don't understand how we can go from this relation to the result in the title. Thanks for any help.


MATLAB: How do I plot probability distributions in 3 dimensions? (involving Bayes rule)

To give you some context, I am trying to find out the optimal parameters for a research problem using Bayes rule, and my question here has to do with generating the prior probability distributions for these parameters.  Suppose that my two parameters are A and B. I know that the prior distribution for A is going to look like a Gamma distribution, and my distribution for B is going to look like a normalized Gaussian distribution. The goal is to plot these distributions on the x and y axes, and then plot the joint probability P(A,B) = P(A)*P(B) in the z-axis. If I can do that, then I can identify what values of A and B are most probable for my problem.  So I type in MATLAB  A = linspace(-50,50,1000); B = A; gamma = gampdf(A,5,5); norm = normpdf(B,0,5); [A B] = meshgrid(A,B); Z = gamma'*norm; surf(A,B,Z)   When I do that, I get this:    Rotating this perhaps gives me something I'm looking for, but since it's all black, I can't really tell for sure.   Is there a way I can make it more easy to distinguish and have the mesh work? (I'm guessing the mesh didn't work because my Z is not a function of A and B, but rather of gamma and norm).  Any help would be much appreciated, since I'm completely open to alternative ways of doing this.


How to use SVD for dimensionality reduction to reduce the number of columns (features) of the data matrix?

My original data has many more columns (features) than rows (users). I am trying to reduce the features of my SVD (I need all of the rows). I found one method of doing so in a book called "Machine Learning in Action" but I don't think it will work for the data I am using.  The method is as follows. Define SVD as $$A = USV^\top.$$  Set an optimization threshold (i.e., 90%). Calculate the total sum of the squares of the diagonal $S$ matrix. Calculate how many $S$ values it takes to reach 90% of the total sum of squares. So if that turns out to be 100 $S$ values, then I would take the first 100 columns of the $U$ matrix, first 100 rows of the $V^\top$ matrix, and a $100\times 100$ square matrix out of the $S$ matrix. I would then calculate $A = USV^\top$ using the reduced matrices.  However, this method does not target the columns of my original data, since the dimensions of the resulting $A$ matrix are the same as before. How would I target the columns of my original matrix?


Does $\sum_{k=1}^\infty\frac1{k^n}$ converge for $\Re(n)=1,\Im(n)\ne0$?  The ratio test is inconclusive.  It passes the term test for $\Re(n)=1$, but this is not sufficient to prove convergence.  Since we are dealing with so many complex numbers, I do not know of any convergence tests for this.  I know that if it is convergent, it is conditionally convergent.


Right click on touchpad produces left click

Description of problem:  I am using Dual boot OS having Windows 10 as primary OS and Ubuntu 16.04 as secondary OS in Dell Vostro 15 3568 laptop.  In Ubuntu,Clicking the right-click area on the touchpad produces a left-click (it is a clickpad, and the entire touchpad is clickable) but  it is working fine in Windows 10.  Steps to Reproduce: 1. Click on the right click area on the touchpad in Ubuntu.  Actual results: Left click, eg. follows the link in browser.  Expected results: Right click, eg. opens a context menu.  Additional info:  xinput --list actually shows two touchpad devices - SynPS/2 Synaptics TouchPad and a "DELL0794:00 06CB:7F13": $ xinput --list ⎡ Virtual core pointer                      id=2    [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ⎜   ↳ DELL0794:00 06CB:7F13                     id=11   [slave  pointer  (2)] ⎜   ↳ SynPS/2 Synaptics TouchPad                id=14   [slave  pointer  (2)] ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]   ...


Do these definitions of irreducibility of algebraic sets coincide?

I am reading the book Numerically solving polynomials systems with Bertini in which they define a manifold point $p^* = (p_1^*,\ldots,p_m^*)$ of an algebraic set $X$ to be a point in $X$ with an open neighborhood $U\subset X$ such that for some mapping $\Phi(z_1,\ldots,z_m)$, $\Phi$ restricted to $U$ maps $U$ bijectively onto a neighborhood of the origin in $\mathbb{C}^k$ for some $k$. The set of manifold points of $X$ is denoted $X_{\text{reg}}$.  Now they say an affine complex algebraic set $X$ is irreducible if $X_{\text{reg}}$ is connected, i.e. $X_{\text{reg}}$ cannot be written as the union of two disjoint non-empty open subsets in $X_{\text{reg}}$.  However, in my algebraic geometry class, which is based on the book of Hartsthorne. An algebraic set $X$ is irreducible if it cannot be expressed as the union of two proper non-empty closed subsets of $X$.  I have not seen any mention of manifold points in Hartsthorne so far and am having trouble understanding which points of an algebraic set are manifold points (or rather which points are not) and therefore how these two definitions of irreducibility coincide.


If $(X, Y)$ is bivariate normally distributed with marginals means $1$, marginal variances $1$ and correlation coefficient $\rho=0.2$, what is the distribution of $X + Y$ ? How can I start the problem ?


the function of "the" in the following sentence.

The following sentence is from NY Times. "Another corporate structure being exploited now more than ever is the master limited partnership."  In the sentence, the concept of "master limited partnership" is first introduced. So, It does not have any contextual clues to identify what that refers to. But still it has "the" in it. However, the "the" in the sentence might not be used generically as the generic use of nouns is pretty much limited to nouns of animal, plant, or inventions. Then, what is the function of "the" there?  What is the difference between the sentence and when I just say "a master limited partnership" or "master limited partnerships"?


I have a remote MySQL server running on x.x.x.x. And there is a database named abc.  I can do the following  mysql -h x.x.x.x -uroot use abc   But when I try to  mysql -h x.x.x.x -uroot --database=abc   I get  ERROR 1044 (42000): Access denied for user 'root'@'%' to database 'abc'   Why is that? And how do I fix it?  edit:  I have now resolved the issue by doing the following:   ssh in the box run mysql -uroot GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;   But I still don't understand why.  mysql> SELECT USER(),CURRENT_USER();  +-----------------------------+----------------+ | USER()                      | CURRENT_USER() | +-----------------------------+----------------+ | root@Maxs-MacBook-Air.local | root@%         | +-----------------------------+----------------+   mysql> SHOW GRANTS FOR root@'%';  +------------------------------------------------------------------+ | Grants for root@%                                                | +------------------------------------------------------------------+ | GRANT USAGE ON *.* TO 'root'@'%'                                 | | GRANT ALL PRIVILEGES ON `mydb`.* TO 'root'@'%' WITH GRANT OPTION | +------------------------------------------------------------------+  mysql> SELECT CONCAT(QUOTE(user),'@',QUOTE(host)) from mysql.user WHERE user='root'; ERROR 1142 (42000): SELECT command denied to user 'root'@'Maxs-MacBook-Air.local' for table 'user'   Max


How to populate text field in a shapefile table by 0 length string using ArcGIS?

Experiment:  Original table:    Field calculator expression applied to TXTfield:  “”   Add numeric field:    Field calculator expression applied to numField:  len( [TXTfield])   Result:    Note:   arcpy.da.searchCursor also reports 1 character long string in TXTfield ArcView 3 reports zero length string   Question:  What is going on?  I am using ArcGIS 10.2


Per-section bibliography styling using biblatex

I'm using  bibstyle=alphabetic, maxnames=3,. minnames=2, maxalphanames=1,    In one section, I have some citations I wish to \fullcite. For these, I'd like to have every author listed (annoyingly, they contain between 4 and 9 authors). If I set maxnames higher, \citet makes the in-text citation difficult to read in the rest of the document.   Can I set maxnames for a specific section of the document, then change it back later?     Here's a MWE, showing the \fullcite that does not list all author names. In this example, the behaviour of \citet is good, but I want to increase maxnames as indicated.    \documentclass{article}  \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @article{A+04,   author = {Author, Aa and Buthor, Bb and Cuthor, Cc and Duthor, Dd},   title = {Title},   journal = {Journal title},   year = {2001},   volume = {1},   number = {2},   pages = {101--109},   month = jan,   note = {This is an article entry}, } @article{A+02,   author = {Author, Aa and Buthor, Bb},   title = {Title},   journal = {Journal title},   year = {2001},   volume = {1},   number = {2},   pages = {101--109},   month = jan,   note = {This is an article entry}, } @article{A+03,   author = {Author, Aa and Buthor, Bb and Cuthor, Cc},   title = {Title},   journal = {Journal title},   year = {2001},   volume = {1},   number = {2},   pages = {101--109},   month = jan,   note = {This is an article entry}, } \end{filecontents}  \usepackage[bibstyle=alphabetic,maxnames=3,minnames=2,maxalphanames=1,natbib=true]{biblatex} \addbibresource{\jobname.bib}  \begin{document}  \section{Fullcite} % I want to increase maxnames here somehow: % maxnames=10 \fullcite{A+04} % and then I want to drop it again for the rest of the document.  % maxnames=3  \section{In-text} \citet{A+04} says interesting things.  \citet{A+02} says other things.   \citet{A+03} disagree. \end{document}


How do I connect Android devices to a WiFi AP and mobile data network simultaneously?

When I turn WiFi on, my 3G connection shuts down, which is fine in most cases. However, I need to connect to a LAN at work that is not connected to the internet and I'd prefer not to lose my data connection when I connect to the work intranet. How can I keep both connections active? Ideally, I could limit this desired behavior to this one SSID because I want it to continue to operate with the default behavior for all other WiFi connections.  If that can't be done, prefer a solution that is easy to toggle on and off. I'm using a Samsung Galaxy Nexus (Verizon Wireless) on CyanogenMod 9.


How can I set desktop defaults for new users?

How can I set up desktop defaults, much like most distributions do, for every new user? (ex. default wallpaper, apps, etc)


How can I rearrange the Windows 7 taskbar previews?

I know I can rearrange the applications in my taskbar in Windows 7, but there doesn't seem to be any way to rearrange the previews for each window. For example, I have Firefox open and the Downloads window open, and for some strange reason the Downloads window is now the left-most window, while the Firefox browser window is number 2. I'd like to rearrange those two so the main browser window is first, but I can't drag or drop them. Is there a power tool to enable this?


Dynamic meta tags and description in custom pages

I have a custom drupal module which will generates pages for players in my site. The players stat data is meant to be updated most of the time, so for ease of use, I have created a custom module for the player pages.   I have an external db where all my players information are stored. My module will define a url pattern and once the pattern is obtained, it will display the players information from the external db.  My issue is, since there is no actual node present for my pages, I was not able to display meta tags and description for my player pages. I have tried  module and  modules. But by using these modules, I was only able to define a static meta tag and description for my entire module, means there is only one meta description for all pages. I want them to be dynamic and should vary from page to page. I have tried the examples provided below, but I can add only static string. I want the player wise meta description.      Here is my code structure.  player.info.yml  name: Player Module description: Creates Page for Player. package: Custom type: module version: 1.0 core: 8.x   player.module  <?php  /**  * @file  * Player module.  */  /**  * Implements hook_theme().  */ function player_theme() {   return [     'player_page_data' => [       'variables' => ['result' => NULL],       'template' => 'player-page-formatter',     ],   ]; }   player.routing.yml  player:   path: '/player/{player}'   defaults:     _controller: '\Drupal\player\Controller\PlayerController::content'     _title_callback: '\Drupal\player\Controller\PlayerController::title'    requirements:     _permission: 'access content'   PlayerController.php  <?php  namespace Drupal\player\Controller;  use Drupal\Core\Controller\ControllerBase; use Drupal;  class PlayerController extends ControllerBase {    public function content($player) {     $result = [];     /* --------------------      code logic here     -------------------- */     return [       '#theme' => 'player_page_data',       '#result' => $result,       '#cache' => ['max-age' => 0],     ];    }    public function title($player) {     $title = "";     /* --------------      code logic here      ------------------ */     return [       '#type' => 'markup',       '#markup' => $title,     ];   }  }   I am stuck with this issue for long time. Any help will be appreciated.  Edit 1  Thank you for the support, now I am able to add meta tags. But I am using  module for my other pages. Here it shows the default meta tags as well as my meta tags. Some crawlers might ignore mine if they find multiple meta tags with same name. How do I disable my global meta tags and display only mine?


If $x^2-3x-1=0$ then find the value of $(x^6+1)/x^3$ I tried to solve the quadratic but it became too complicated any way of doing this without a calculator


Can I install ubuntu 14.04 32-bit on an older desktop with 1gb RAM?

When I attempt the install, my mouse freezes as soon as I select the install option.  I can get through the process using the keyboard, but, the system hangs at "Configuring boot loader...".  Any suggestions?  Thanks, H


a cyclist travels 30 km in one hour  1) Demonstrate that there is an interval of 10 minutes such that the cyclist has traveled 5 Km  2) Is there always a time interval of 40 minutes during which he will have traveled 20 Km?  for the first question, that's what I did : Note f the function that represents the distance traveled by the cyclist as a function of time (expressed in minutes). $f$ is a continuous function, $f (0) = 0$ and $f (60) = 30$. We want to prove that there is a time interval of 10 minutes such that the cyclist has traveled 5 km. In other words, we want to find $x \in [0,50]$ such that $f (x + 10) -f (x) = 5$.  Suppose that such an  $x$ does not exist. By the intermediate value theorem, we know that: or else,   $\forall x∈ [0,50]$, we have $f(x + 10) -f (x)> 5$.  or, $\forall x∈ [0,50]$, we have $f (x + 10) -f (x) <5$.  In the first case, we have $f (60) =  f (60) -f (50) + f (50) -f (40) + f (40) -f (30) + f (30) -f (20) + f (20 ) -f (10) + f (10)-f(0) > 6 × 5=30$. which is a contradiction. In the second case, we would find $f (60) <30$, which is also a contradiction. The hypothesis formulated is therefore false: there exists $x∈ [0,50]$ such that $f (x + 10) -f (x) = 5$.  For the second question,I Think that the answer in No but i don't know how to prove it .  Do you have any suggestions ?


I created some pdf files in Visio which includes some figures as well as text. I need to import those PDF files in Latex, what I want is to match the syntax and font of text in PDF files with syntax and font in latex. Is that possible ? and how can I proceed?   Waiting for helpful replies.


How to know which applications are using the Internet?

I use a lot of applications on my Android phone, and I'd like to know which applications are using the Internet at a given point of time, and also the bandwidth consumed by each one of them.  from 2010 suggested , but it's not currently available for download.  Is there a way to accomplish this?


Should we change vague question titles to more descriptive titles?

Sometimes, I encounter questions with vague titles: they do not always specify what is really being asked.  For example, there is a question called  which is asking only about files on Linux/Unix. This is clearly a useful question, but I think "How do I find all the files that were created today in Unix/Linux?" would be a more descriptive title.  In a situation such as this one, should I change the title to describe a question's topic more accurately, or should I leave the question's title as-is?