I'm not really tech savvy so simple explanations please!   So at the moment I'm having 240GB SSD, I'm running Ubuntu 16.04 and Windows 7. I have 2 partitions. 100GB for Ubuntu and 140GB for Windows. But I would like to change it so Ubuntu would have 25GB, Windows 100GB and remaining 115GB would be it's own partition so both OS can access it easily. Can I make this change while these two OS installed or do I have to reinstall them and while doing it, make three different partitions? And I tried search before but I didn't really find similiar situation.   Edit: and if I have to install these OS again, can I make a backup of current setups and restore them in new partitions? And I should make the partitions during Windows install?


SQL Availability Group restore database to standalone server

Running: SQL Server 2012, Windows Server 2008 R2  I want to test a backup by restoring onto an isolated server. The backup was taken from an Availability Group (HADR) configuration, but the target server does not have the clustering/HADR configuration and I don't want to have to set that up.  When I try to perform the restore, this following is returned:  Could not process the operation. AlwaysOn Availability Groups replica manager is disabled on this instance of SQL Server. Enable AlwaysOn Availability Groups, by using the SQL Server Configuration Manager. Then, restart the SQL Server service, and retry the currently operation. For information about how to enable and disable AlwaysOn Availability Groups, see SQL Server Books Online.   The message makes sense and I understand it, but have no way to take it out of an AG that doesn't exist on my target, and can't exist due to no cluster, etc.   Is there a way to make this scenario work?


Manipulating Partial Derivatives of Inverse Function

In lectures we're told:  $$\dfrac {\partial y} {\partial x} = \dfrac 1 {\dfrac {\partial x} {\partial y}}$$  as long as the same variables are being held constant in each partial derivative.  The course is 'applied maths', i.e non-rigorous, so don't confuse me.  But anyway, if we have:  $$\xi = x - y \qquad \eta = x$$  Then $\dfrac {\partial x} {\partial \xi} = 0$ and $\dfrac {\partial \xi} {\partial x} = 1$.  The rule presumably fails because one of the partial derivatives is $0$.  But then isn't this rule useless? Since I cannot use it without checking that the partial derivative isn't in fact $0$, but then I've worked out the partial derivative manually anyway.


What defines the dominant profile information when merging accounts?

I created this account because I  to my original account. A user suggested merging accounts. This implies combining account data, posts, and reputation. However, I can only have one profile photo, username, or profile description. If I merge 2 accounts where that info differs, what determines which profile will be dominant? Is there a way to choose? Is it random or arbitrary?


How can I sort/organize my Steam game library?

My game list is approaching 100 games and it is starting to get difficult to sort them. I've categorized them by genre but it's still difficult to find them (and my backlog is getting bigger).  I also have Steam installed in more than one computer so I have to repeat the sorting for each one of them.  Is there any option to have the games ordered in a nice and clean way?  Edit: About the library sync between computers it could be  problem.


How Convergence in two different norms relates to Equivalence of Norms

Question:  Why was this marked as a duplicate?  The referenced question asked nearly a year later than this question.  In fact I'm not even sure that they are identical at all.    I was working on a homework problem which stated:     Let $X$ be a normed linear space with two norms $\|\cdot\|_1$ and $\|\cdot\|_2$.  Assume that $\|x_n - x^1\|_1\to 0$ for some $x^1\in X$ if and only if $\|x_n - x^2\|_2\to 0$ for some $x^2\in X$.  Show that $\|\cdot\|_1$ and $\|\cdot\|_2$ are equivalent.   At first I errantly misinterpreted the question as $x_n\to x$ in $\|\cdot\|_1$ if and only if $x_n\to x$ in $\|\cdot\|_2$.  UPDATE:  I found a way to go directly from the convergence condition to equivalence of norms.  So I don't need to prove that the sequences converge to the same limit in this way (since it now follows from equivalence of norms).  I won't erase anything though, as the answer from Andres below may be helpful to someone else.  Now that I realize my mistake I'm trying to fix the proof.  Since the conclusion I'm trying to prove (that the norms are equivalent) implies that the limits in either norm must agree, I know that must also be true, even though it's not given in the question.  After failing to prove this extra condition, I am getting suspicious that it might be needed as a hypothesis after all.  Can anyone confirm or refute this?  My attempt:  Taking $\alpha = \dfrac12\min\left(\|x^1 - x^2\|_1, \|x^1 - x^2\|_2\right)$,  I let $B_{1} = \{x\in X : ||x - x^1||_{1} < \alpha\}$ and let $B_{2} = \{x\in X : ||x - x^{2}||_{2} < \alpha\}$.  Now suppose for a contradiction that there is some $x\in B_{1}\cap B_{2}$.  Then $||x - x^{1}||_{1} < \alpha$.  And $||x - x^{2}||_{2} < \alpha$.  I want to use this to prove $||x^{1} - x^{2}||$ (in either norm) is less than $2\alpha$ (which would give me a contradiction).  But I keep ending up with these floating $||x - x^{2}||_{1}$ or $||x - x^{1}||_{2}$ terms that I can't do anything with:  $ \begin{eqnarray*} ||x^{1} - x^{2}||_{1} &\leq& ||x^{1} - x||_{1} + ||x - x^{2}||_{1}\\ &<& \alpha + ||x - x^{2}||_{1} \end{eqnarray*} $  and   $ \begin{eqnarray*} ||x^{1} - x^{2}||_{2} &\leq& ||x^{1} - x||_{2} + ||x - x^{2}||_{2}\\ &<& ||x^{1} - x||_{2} + \alpha \end{eqnarray*} $


"Will have already" vs "Will already have" - which is correct?

An exchange student just asked me this, and I have no idea despite being a native speaker.  Does anyone know which is correct, and why?  Or are both technically correct?  I will already have studied that. I will have already studied that.  My gut feeling is that the second is incorrect because it is a split infinitive, but is that even an infinitive?


I am confused about how to mark edits in the current Question or Answer. It seems to me that using EDIT: is a generally accepted standard, but I was not able to find anything "official" about it, as it is impossible to search for these terms.


I'm re-creating Space Invaders for a project of mine, and have used a List for all my invaders and other things, but I need to use an array instead. How can I change this list into an array, I'm not familiar with them. See code below.  List<PictureBox> listInvaders;  public Form1()     {         InitializeComponent();         InvaderAnim.Start();          listInvaders = new List<PictureBox> {invader1, invader2, invader3, invader4, etc};   Thanks very much!


If I raise a moderator flag pointing out blatant plagiarism, and the OP deletes the post (perhaps because of downvotes, or because someone points out the plagiarism), what happens? Does a moderator still see the flag and take any necessary action on the account (for instance, if it's not the first time the account has been used to plagiarize)?


60 amp detached shop able to run 50 amp hot tub?

my house main panel is 200 amp, the shops panel is 60 amp. My new tub is closest to my shop but wasn't sure it would cause my shop to trip with the tub on its 50 amp gfci circuit? I was going to run from my house 200 amp but the teck AWG #6 is going to be very expensive to run that distance hence me researching if it's safe and able to be done through my shops 60 amp service. I've read it's safe and fine as most tubs that require 50 Amp fuse usually run at a 40 amp level. I'm just concerned it would trip the 60 Amp shop breaker, I don't run much in my shop other then lights and tunes and the odd power tool and my welder but figured I can just turn the tub off durang that. Any input would be great.  Cheers Danny


The Goldbach Conjecture, its negation and consistency

I am only broadly familiar with mathematics, so please have patience with me. I am wondering about the consistency of both the (a) Goldbach Conjecture and (b) its negation. If the Goldbach Conjecture would be decided, then would we see that (a) or (b) entailed/contained a contradiction on its own, or only that there would be a contradiction of either (a) or (b) together with some other mathematical axioms?


Confusion about Satisfiability by a denumerable sequence.

In "Introduction to Mathematical logic" by Elliot Mendelson , page $59$ . I couldn't understand the basic preliminary notations for the rigorous definition of Satisfiability. For example , at a line they said, "Moreover, instead of talking about the $n$-tuples of objects that satisfy a wf that has $n$ free variables, it is much more convenient from a technical standpoint to deal uniformly with denumerable sequences. What we have in mind is that a denumerable sequence $s = (s_1, s_2 , s_3 , ... )$ is to be thought of as satisfying a wf $\beta$ that has ${x_j}_1 , {x_j}_2 ,  ... , {x_j}_n$ as free variables (where $j_1 < j_2 < ... < j_n$ ) if the $n$-tuple $\langle {s_j}_1 , {s_j}_2 ,  ... , {s_j}_n \rangle$ satisfies $\mathscr B$ in the usual sense." I didn't quite understand why they used ${s_j}_1$ and ${x_j}_1$ instead of $s_1$ and $x_1$ . Maybe there is a critical detail I am missing out? Also , Another passage for the rigorous definition: "Let $M$ be an interpretation of a language $\mathscr L$ and let $D$ be the domain of $M$. Let $\sum$ be the set of all denumerable sequences of elements of $D$. For a wf $\mathscr B$ of $\mathscr L$ , we shall define what it means for a sequences $s= (s_1, s_2, ... )$ in $\mathscr L$ to satisfy $\mathscr B$ in $M$. As a preliminary step, for a given s in $\sum$ we shall define a functions $s^*$ that assigns to each term $t$ of $\mathscr L$ an element $s^{*}(t)$ in $D$." They did say that for each $s = (s_1, s_2, ... )$ , there is a defined function $s^*$ , but even after further reading the text afterwards , I still did not understand how exactly $s^*$ is defined from $s$ . Can someone tell me where the gap in my understanding here is?


In the spoken English I used to hear to people who ask "Isn't it?" while it is apparently supposed to be "Is it not?". What is the explanation for that? Is it a mistake or there's an explanation for it?


I am new to statistics and have run into some trouble understanding computing confidence intervals and am seeking some help. I will outline the motivating example in my textbook and hopefully someone can offer some guidance.   Example   There is a population of mean values and your goal is to figure out the true mean (as best you can). In order to accomplish this, a number of samples are taken, each of which has a mean value.   Next, because we know by the central limit theorem that as the number of samples increase, the sampling distribution will be normally distributed, we use the equation $z = \frac{X - \bar{X}}{s}$  (noting that in this case s = standard error) to compute a lower and upper bound taking each sample mean as the mean for the z-score equation and z-scores of -1.96 and +1.96, for example,  to compute a 95% confidence interval.   I’ve included a graph from my textbook in attempt to add clarity.    So I do not understand how it is you can use each sample mean as the mean value in our z equation to compute intervals. We know that the sample distribution is normally distributed so isn’t it the case that only the mean of all the samples can be used? How can we compute an interval around each mean value that contributes to the sampling distribution?  Any help with this would be much appreciated    Note: I'm reading "Discovering Statistics Using IBM SPSS Statistics 3rd Edition" by Andy Field and this example is from pg 43-45


I have a HP pavilion running win 8.1. I am trying to install the last release of ubuntu but I cant as the installer does not detect my current windows installation.Please advise how can install it with dual boot?  thanks


Identifying a short story about time travel and paradoxes

I remember having read a short story in which the main character, thanks to a series of happenings also involving time travel, grew up, changed sex, made sex with himself and had a son... who of course was himself. The story ended with the main character saying something like "I know where I come from: but what about you?"  As you may guess, I don't have enough data to search for the title, so I am asking knowledgeable people :-)


How to find out if a file exists in C# / .NET?

I would like to test a string containing a path to a file for existence of that file (something like the -e test in Perl or the os.path.exists() in Python) in C#.


I read  this text:     If you want to get a copy of an existing Git repository – for example, a project you’d like to contribute to – the command you need is git clone.   I need to get complete repository (with all branches).  But when I use the command git clone <address> <output_directory_name> then I get clone with one branch only. I see it through the git branch command. If I use the git clone <address> -b <branch_name> <output_directory_name> then I get only that branch (I see it through the git branch command again).  How can I get full content of a git repository with all branches? The repositories which I cloned are located on Bitbucket website.


If $\cup \mathcal{F}=A$ then $A \in \mathcal{F}$. Prove that $A$ has exactly one element.

I'm reading through How to Prove It by Velleman and I'm having trouble with this exercise in the section about Existence and Uniqueness proofs. Here is the exercise:     Suppose $A$ is a set and for every family of sets $\mathcal{F}$, if $\cup \mathcal{F}=A$ then $A \in \mathcal{F}$. Prove that $A$ has exactly one element.    He hints that for both the existence and uniqueness parts of the proof it would be a good idea to use contradiction. I've been playing around with this proof for a while but I can't seem to make any substantial progress.   I current idea is considering some cases  where for some family of sets $\mathcal{G}$, $A \in \mathcal{G}$ and $A \notin \mathcal{G}$. I thought if I could show that if $A= \varnothing$ lead to contradictions, I could at least say that there is something in $A$, and try to prove that it is unique from there. I haven't been able to make any progress with this though. Any help with this problem would be greatly appreciated!


Are internal combustion engines more efficient on cold days?

According to Carnot efficiency formula $\eta=1-T_C/T_H$, can we say that the engines of cars are more efficient on cold days where $T_C$ (the temperature of the surroundings) is less than on hot days?


Problems getting data from controller in start method in Main App with javafx null pointer exception

I am new in Javafx programming with java for graphic interfaces, and after research for possible solutions, i still have the problem  I've got this code in my Main Javafx App which extends Application   public void initRootLayout() throws IOException {             FXMLLoader loader;             Parent rootLayout;              loader = new FXMLLoader();                       loader.setLocation(getClass().getResource("/fiec/dst/seer/screen/login/login.fxml"));                    rootLayout = loader.load();             LoginController = (loginFXMLController)loader.getController();             // Show the scene containing the root layout.             Scene scene = new Scene(rootLayout);             primaryStage.setScene(scene);             primaryStage.setMaximized(false);             primaryStage.setResizable(false);             primaryStage.show();       }   LoginController is an instance of loginFXMLController which is the controller of fxml file that displays a login interface (user and password).  I don't know if i'm in the right path, but i have a method in Main class that needs to check if user and password are corrects(these attributes are in loginFXMLController), as you may see, first i call load method, and i need to ask constantly the values of user and password provided from LoginController.  initRootLayout is called in start method of Main Application       @Override     public void start(Stage primaryStage) throws IOException {          this.primaryStage = primaryStage;         this.primaryStage.setTitle("System");         initRootLayout();     }   I need help, because with these i'm getting the exception:  java.lang.NullPointerException when i call attributes from LoginController  This is de StackTrace :  java.lang.NullPointerException at fiec.dst.seer.main.RFIDReader.messageReceived(RFIDReader.java:323) at org.llrp.ltk.net.LLRPIoHandlerAdapterImpl.messageReceived(LLRPIoHandlerAdapterImpl.java:109) at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648) at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:58) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:180) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648) at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:220) at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51) at java.lang.Thread.run(Unknown Source)   MainApp extends from Application and implements LLRPEndpoint LLRPEndpoint contains methods to communicate with objects with RFID tags  This problem occurs when i try to get attribute from loginFXMLController (user and password)


I am writing a SIC/XE assembler (a sort of theoretical assembler). The problem comes when parsing the code. I have written a parser myself but having very little experience with parsing it has become bloated and messy.   Is there some sort of a parser library in C# where I could define sets of rules and the code would then be parsed properly and returned in some sort of a data structure /or format (like xml).   Thank you for your feedback.


Find the probability the largest number appearing on the coupon is 9.

15 coupons are numbered 1,2,3...15. 7 coupons are selected at random one at a time with replacement. Find probability that 9 is the largest number appearing on the coupon. I am having a problem finding $N(a)$ for this problem.  My working:  $N(s)= 15^7$ (since you have 15 choices for each time you pick up a coupon)  $N(a)= 9^7$  (since you have 9 permissible choices for each time you pickup a  coupon)  But according to my textbook $N(a)= 9^7 -8^7$  but no further explanation is given.  So i would really appreciate it if someone could point out where i am going wrong. Thanks in advance :)


Do "good for you" and "I am happy for you" have a negative or positive connotation?

I am not sure if this is the right place, but I was wondering if "good for you" and "I am happy for you" have a negative or positive connotation.


I am aiming to plot a quadratic function and a s-curve as drawn  however I have not been able to get the lines to match up. Please assist if you could!    \begin{tikzpicture} \begin{axis}[grid=both,           xmax=10,ymax=10] \addplot[green]  {x^2}; \addplot[blue,domain=1/2^6:10,samples=100]  {1/(1 + exp(-x))}; \end{axis} \end{tikzpicture}


Which words can describe people who know mediocre level on everything

I am looking an adjective which can be used to describe people who know a bit of everything , somebody who is not superficial in term of general information irrespective of someone's age.  I'd rather not  use the word intellectual because it depicts an academic or philosopher who is very good at the area they the work area in my mind.Can we call a college guy as intellectual just because he reads a lot and knows pretty much something on everything?  I'd rather not  use the word well-rounded because it includes someone's sportive activities but I am asking more about knowledge.   Maybe a word which can be used by someone  to describe themselves who dare to attend " who wants to be millionaire" contest ?


How to prove this inequality? $ | z-1 | \le | | z | -1 | + | z| \cdot | \arg z | $

If $z$ is any non-zero complex number, how to prove the following inequality? $$ | z-1 | \le | | z | -1 | + | z| \cdot | \arg z | $$  Hints please!


Why didn't the Jedi detect the Death Star?

The Death Star I's construction started on Geonosis since during the Clone Wars. Considering the size of the thing, it must be constructed either in orbit or the surface, since launching it would be too difficult without cracking the planet open like an egg if it's buried too deep. As such, why didn't the Jedi notice any trace of it throughout the war when they've remained in control of the system for most of the war, including the end?  Did it elude the attention of the Jedi and/or clone garrisons? Did it fail to be reported to the Jedi (remember that canon clones aren't in league with Palpatine)? Or was it publicly disguised as a more acceptable project?


How do we find the GCD $G$ of two polynomials, $P_1$ and $P_2$ in a given ring (for example $\mathbf{F}_5[x]$)? Then how do we find polynomials $a,b\in \mathbf{F}_5[x]$ so that $P_1a+ P_2b=G$? An example would be great.


I’m trying to wrap my head around zero knowledge proofs, but I’m having trouble understanding it.  In my current understanding, zero-knowledge proofs prove to the recipient that the sender has a certain knowledge without disclosing it. Like trying to say your password without actually giving it.  Many sources go at it with a convoluted method like a tunnel where there’s a hidden gate, and Bob is trying to know if Alice can go through the hidden gate. But then it starts saying that Bob should not see Alice enter. Wouldn’t it be easier for Bob to just see Alice go in one tunnel and come out the other? That would not disclose the secret way of opening the tunnel, right?  In that line of thinking, given a one-way function like a hash, couldn’t the other person just hash their secret and let the other see that the hashes compare?  I must be missing something (as there’s a lot of research going into it and hashes are well-known), but I can’t wrap my head around it.  Can someone tell me what’s wrong with my understanding of zero knowledge proofs?


Why are the line endings different in every OS?

Windows has a certain format, and if a file is to be used in Linux, the line endings have to be converted. Isn't the line ending just a character like any other? Why is it treated specially?


Let G be a group of order 30, and suppose that both its Sylow 3-subgroup is unique and its Sylow 5-subgroup is unique. What group(s) can (or must) G “be”? What if only one of those conditions holds in G?  So I have been able to figure out the conditions when both are unique, but what if only one is unique, currently at a standstill.


How come the atmosphere moves with Earth?

now, I have read a lot of explanations on that but still can't really understand why it would happen so if you can give some examples for a such a thing happening. I mean lets say gravity attracts the air and due to air viscosity all of the air gets carried with the Earth but why will the speed be same ?


Let $a_n$ be a sequence. $\lim_{n\to\infty} a_n =0 $ then the series: $\sum_{n=1}^\infty a_n, \ \sum_{n=1}^\infty (a_n+a_{n+1}) $ converge and diverge together.  It doesn't seem right, there are no convergence tests that fit this question yet every counterexample I try does not seem to work. Is this how I should see the sum? $\sum_{n=1}^\infty (a_n+a_{n+1})=2\sum_{n=1}^\infty a_n +a_{n+1}$ If so then there's no real difference between the two series since you multiply it by a constant and add just one more value.


The full web browsing history of my home computer has fully got synced into my office computer web browser

I use Google chrome at my office and at my home. Today I discovered that all the websites I did brows yesterday at home, all of the histories are present at my office computer's Google chrome browser. Even in the history page in Google chrome my Home-pc's name is also present. I searched how to remove it but I didn't find any answer. I closed Google chrome browser and then tried uninstalling it from my office computer then also it is not getting uninstalled. Its displaying a message that "Close all the tabs in Google chrome then try."  Need help.


Motivation for Ramanujan's mysterious $\pi$ formula

The following formula for $\pi$ was discovered by Ramanujan: $$\frac1{\pi} = \frac{2\sqrt{2}}{9801} \sum_{k=0}^\infty \frac{(4k)!(1103+26390k)}{(k!)^4 396^{4k}}\!$$   Does anyone know how it works, or what the motivation for it is?


Residual autocorrelation versus lagged dependent variable

When modeling time series one has the possibility to  (1) model the correlational structure of the error terms as e.g. an AR(1) process (2) include the lagged dependent variable as an explanatory variable (on the right hand side)  I understand that their are sometimes substantial reasons to go for (2).   However, what are the methodological reasons to do either (1) or (2) or even both?


What is the standard Java to C# converter?


Why does \pgfuseplotmark put so much space to the left of the mark?

Using the suggestions from , I decided to use \pgfuseplotmark to make marks in my diagram.  However, there is some strange white space inserted to the left of the pgfmarks.  What should I do to remove it?  Here's an MWE:  \documentclass{article}  \usepackage{tikz} \usetikzlibrary{plotmarks}  \begin{document}  \begin{tikzpicture}   \node[draw] at (0,0) {!};   \node[draw] at (2,0) {\pgfuseplotmark{diamond*}}; \end{tikzpicture}  \end{document}


How to update sql database with php script

I want to update one database entry from my website with php script. In the input fields the id are set correctly but if I am pressing the submit button the entry doesn´t update.  <form action="includes/datenupdate.php" method="POST">     <input id="editinputartikelnummer" type="text" name="artikelnummer" placeholder="Artikelnummer" required>
     <input id="editinputartikelname" type="text" name="artikelname" placeholder="Artikelname" required>
     <input id="editinputartikelpreis" type="text" name="artikelpreis" placeholder="Artikelpreis" required>
     <input id="editinputid" type="text" name="artikelid" required>     <button type="submit" name="submit">Ändern</button>  </form>   datenupdate.php  <?php     include_once 'dbh.inc.php';      $artid = $_POST['artikelid'];     $artnum = $_POST['artikelnummer'];     $artname = $_POST['artikelname'];     $artpreis = $_POST['artikelpreis'];       $sql = "UPDATE artikel SET artikelnummer = $artnum, name= $artname, preis = $artpreis WHERE id = $artid;";      mysqli_query($conn, $sql);      header("Location: ../index.php?daten=success#artikel");


How to access (or switch between) tray icons with shortcut in windows?

How to access (or switch between) tray icons with defined shortcuts in windows? I have many running programs which I cannot reach with alt-tab because they are not in taskbar - they are in tray. How do you reach those applications without a mouse? I heard of some tricky keys combination (like ctrl+esc esc tab tab tab and then find application with arrow keys), but it's ridiculous to use such long keys combination for such simple task. Is there any utility to manage switching like TaskSwitchXP for alt+tab? Or maybe TaskSwitchXP has possibility to access applications in tray?


jquery not able to detect the caps lock on and off and keypress are capital or small

I have 2 challenges,   On page load, I would like to show a warning saying that "caps is on". Still the user press the shift + key or Caps on + key - I would like to through error.   I search in google and find a solution, but it doesn't work. any one help me to sort this issue please? please refresh the page using caps lock on/off to get the current status. nothing works.  Here is the function I got from google search:  function capLock(e){  kc = e.keyCode?e.keyCode:e.which;  sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);  if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))   console.log('caps lock on')  else   console.log('caps lock off'); }  $('#password').on('keypress', function(e){     capLock(e.which) })


How to remove my passport from a blacklist in Indian Immigration?

I'm a citizen of Sri Lanka. I visited India on a tourist visa in 2007. I didn't overstay and didn't have any issues when coming back. But when I applied for a visa in 2012 for business a visit I was granted the visa but was deported at Chennai airport, being told my passport was blacklisted. They couldn't give me any explanation except to say the Indian government doesn't give me permission to enter their country.  Now I need to travel in a week for a business visit.  How do I get my passport removed from the blacklist?  Even if I get the visa without removal from the list, I'm concerned that they may deport me once again.


PostreSQL execute a default query when no row are returned

I need to calculate the average score of a list of userId.  I have a table "user_place_score" (user_id / place_id/ score).  Sometimes I do not have the score for a user_id so I need to fetch a "default" score in a the "default_place_score" table (place_id / score).  Is is possible in PostreSQL to do this in one query ? For a a given list of users and one place_id select all their score in the user_place_score and if now row found take the score found if the default_place_score table ?  Basically I want to avoid doing this kind of stuff:  for (Integer userId : userIds) {   score = (query to fetch the score for this userId)   if (score == null)     defaultScore = (query to fetch the default score for this PlaceId)    total = total + defaultScore }  //return the average return total/numberOfUser   Thank you!


Is the current gain value constant for a single BJT ?

hfe of a npn bjt transistor is given by collector current / base current so to calculate hfe you need to know the collector current and base current (which can be set using resistors) . I have to ask , what is the point of doing this ? You can simply calculate the emitter current using Kirchhoff current rule . This is obviously pointless since the transistor acts like a resistor between collector and emitter and unless you know the resistance of the resistor you can't find the current .    I see in transistor datasheets a maximum and minimum value of hfe . This leads me to believe that hfe is a constant and I do not undersand the point of a varying constant ; I think for a single transistor only a single value of hfe exists which must be measured using a multimeter and the collector current is dependent of the base current so the collector current can be measured .     And also , if the collector current is entirely dependent on the base current (Ic = Ib*hfe) then what is the point of the adding a resistor to the collector end of the transistor ? Surely there must be some change in current if a greater resistance is added to the collector end . I checked this with a multimeter with base resistance of 10k ohms and collector resistance of 330 ohms and I found no change in current when I connect the multimeter in common emitter topology (I think , I connect the emitter to ground and tested the current flowing through the collector )     I think there is a big hole in my understand or a big misunderstanding in my not understanding . Please help     Thank you


Why is the discrepancy in these two cases of using C++ templates?

Header file for a simple template, trivial_template.hpp.  // Import packages from the C++ STL #include <string> #include <cstring> #include <stdio.h> #include <utility> #include <limits.h>         // For std::LONG_MIN  #ifndef __TRIVIAL_TEMPLATE_H #define __TRIVIAL_TEMPLATE_H using namespace std;  template <typename T> class trivial_template {     public:         trivial_template();         ~trivial_template();         static bool is_non_negative(T a_num);         T square_given_number(T a_num); }; #endif   Implementation file for a simple template, trivial_template.cpp.  #include "./trivial_template.hpp"  template <typename T> trivial_template<T>::trivial_template() { }  template <typename T> trivial_template<T>::~trivial_template() { }  template<typename T> bool trivial_template<T>::is_non_negative(T a_num) {     return (0 <= a_num); }  template<typename T> T trivial_template<T>::square_given_number(T a_num) {     return (a_num*a_num); }   The C++ main file that uses it.  #include <iostream> #include <iomanip> #include <string> #include <cstring> #include <math.h> #include <climits> #include <cfloat> #include <ctype.h> #include <stdio.h> #include <stdlib.h>  #include "../../elements/trivial_template.hpp"  using namespace std;  int main(int argc, char *argv[]) {     cout << "   ###" << trivial_template<int>::is_non_negative(493) << "===" << endl;     trivial_template<int> *a_ptr;     cout << "   ###" << a_ptr->square_given_number(5) << "===" << endl;     // 0.25^2 = 0.0625     trivial_template<long double> *b_ptr;     cout << "   ###" << b_ptr->square_given_number(-0.25) << "===" << endl;     // 16.25^2 = 164.0625     cout << "   ###" << b_ptr->square_given_number(-16.25) << "===" << endl;     return 0; }   My commands to compile, link, and run it are:  g++ -std=c++0x  -c  ../src/elements/trivial_template.cpp g++ -std=c++0x  -c  ../src/test/temp/test_templates.cpp g++ -std=c++0x  -o  ./test-boilerplate-code *.o   During linking, the following error message is produced:  Undefined symbols for architecture x86_64:   "trivial_template<long double>::square_given_number(long double)", referenced from:       _main in test_templates.o   "trivial_template<int>::is_non_negative(int)", referenced from:       _main in test_templates.o   "trivial_template<int>::square_given_number(int)", referenced from:       _main in test_templates.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [template] Error 1   When I tried this simple example using different paths for the location of the C++ source file, it works. Its output is:      ###1===     ###25===     ###0.0625===     ###264.062=== real         0.22 user         0.00 sys          0.00   Why is there this discrepancy? What is going on?   In addition, can you please kindly help me fix the linking error?  Thank you very much, and have a good day!


Is radioactive decay spontaneous or random?

When it comes to radioactive decay, what is the difference between random and spontaneous?  For example, when the count rate of a radioactive isotope is measured, the readings fluctuate. Is this a demonstration of the randomness of the process, or of its spontaneous nature?


How do I write, in LaTeX, something such as "Note that we have used \renewcommand several times .."?  There is nothing special about \renewcommand here, it could be \usepackage, \textit, or any LaTeX command.


how is present string as object property in python?

I have an interesting question. I have class model:  class Patient(models.Model):     separation = models.ForeignKey(Separation, blank=True,                                    null=True, default=None)     number_card = models.IntegerField(default=0)   I can write:  patient = Patient() patient.name = 'Saney'   But what should I do if I don't know what property I must changed. For example, the name of property what must changed come in the variable " property='name' ". But if I write next code:  patient.property = 'Saney'   python doesn't understand that I mean that I want write 'Saney' into patient.name and not to patient.property. And when I try to testing some thing, for example:   patient.'name'= 'Saney'   python of course gave an error...)


how to download ubuntu onto windows xp computer

I have downloaded ubuntu onto my computer but the computer wants to use windows media player to read the file which it cannot so what do I need to do ?


NullPointException on double getLatitude()

I have created FiltersQueryAdapter as mainAdapter which has been passed to setupPhotoFilters Method where mainadapter is assisgned to setAdapter. Is possible that as parseGeoPointfromLocation not being within the scope of FiltersQueryApdapter its returning null what i cloud do in this case?    /*   * Helper method to get the Parse GEO point representation of a location   */     public ParseGeoPoint geoPointFromLocation(Location loc) {         return new ParseGeoPoint(loc.getLatitude(), loc.getLongitude());     }       FiltersQueryAdapter mainAdapter = new FiltersQueryAdapter(this, PhotoFiltersAdapter.class             , new ParseRecyclerQueryAdapter.QueryFactory() {         public ParseQuery create() {             Location myLoc = (currentLocation == null) ? lastLocation : currentLocation;             ParseQuery query = ParseQuery.getQuery("PlaceFilters");             //query.include("user");             query.orderByAscending("GeoArea");             query.whereWithinKilometers("GeoArea", geoPointFromLocation(myLoc), radius);             query.setLimit(6);             return query;         }     });       private void setupPhotoFilters() {         rvFilters.setHasFixedSize(true);         rvFilters.setAdapter(mainAdapter);         rvFilters.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));     }


Does 5.1% Ashkenazi Jew from DNA count as Jewish ethnically?

If I'm 5.1% Jewish, how far away are my Jewish ancestors and do I count as a person of the Jewish race ?


In Episode 1: The Phantom Menace, Anakin's mother, Shmi, said that he does not have a father, although it seemed to me that she doubted that.  Is there a canonical answer as to who Anakin's father is?  If so, who?


Using x to predict y when they are highly correlated

I am trying to use an organism's length (x) to predict weight (y), but length and weight are highly correlated (r=0.95). Are there any pitfalls I should be aware of because estimates of the two variables are in a sense measuring the "same" thing, i.e., size? I would be happy for someone to point out that this question has been asked before, but I don't see it on this site.


I installed a custom .deb file that provided a package named "python" but now need to remove it

I think I may have botched my system. I have recently installed Ubuntu 14.04 on my computer.  One of the first things I did was install python 3.3 from source (using make altinstall); but then I realized that python 3.4 is already native in Ubuntu 14.04 and decided to remove the python 3.3 installation. To do that, I followed the instructions on .  Unfortunately, only too late did I realize that this resulted in the creation a .deb file containing a package named "python", which was subsequently installed. This had the effect of completely mangling my package system. Any attempt to use apt-get produces many dependency errors like the one below:  mercurial : Depends: python (>= 2.7) but it is not going to be installed             Depends: python (< 2.8) but it is not going to be installed   I tried to remove the custom package by running dpkg -r python_3.3.5-1_amd64.deb but it says that I need to remove by the name of the package, not the name of the file. And running dpkg -r python also fails:  dpkg: dependency problems prevent removal of python:  python-ubuntu-sso-client depends on python (>= 2.7).  python-ubuntu-sso-client depends on python (<< 2.8).  ...   The first solution I came up with was to completely re-install Ubuntu, but before I go ahead with that drastic solution, is there any way I can undo the effects of installing this custom "python" package?  Can I somehow use the .deb file to remove the package from the system (e.g. by removing the file sit provides and then resolving the dependencies by hand)? Or did this "python"-named package mess up the packages beyond hope of recovery?


I have inserted my MD Elements Hard Drive.I can not mount it,this is the first time that I have a problem like this.  Error mounting /dev/sdc1 at /media/milenko/Elements: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sdc1" "/media/milenko/Elements"' exited with non-zero exit status 13: $MFTMirr does not match $MFT (record 0)   I am confused with this.What does MFTMirr stand for? How to solve this?


I work in project to apply ubuntu client in all computer in my university . can you help my to know the steps to do it?


Recurrence relation question (generating direct formula)

Solve this recurrence relation by generating its direct   formula: $$a_n = 3a_{n-1} + 2n, a_0 = 1$$   Using the direct formula find the   $10th$ term of this recurrence relation.    My answer:  $a_{10} = 147601$   Is this correct?


OK, here's the situation: A reasonably simple website with a primary navigation menu including drop-down list of sublevels on hover. Each navigation level may have 3 - 6 sublevels below it, none more important than the other. For example see this mockup:    My question is: What should happen if the user Clicks on one of the primary navigation options (such as 'News') instead of just hovering over and choosing a sublevel?  My instinct tells me that I should allow a click of this navigation option; it's expected user behavior to be able to click navigation options. If clicked then a landing page of some sort will be present listing all the sublevels (latest news, blog posts, case studies'). However there is no content to add to this landing page other than presenting a list of links, which is pretty useless. I could pad it out by adding iconography and descriptions of the sublevels, but that's just content for the sake of it; does 'Latest News' really need a description in order to understand what it is?  If I don't include a landing page then clicking this primary navigation will have to open something but if I open the 'Latest News' page that risks the user not knowing about the other sections of the site.  (The landing page will be useful for breadcrumb navigation too, so I don't really want to do away with it).  Is my thinking that a landing page showing the list of sublevels actually useful even though there is no actual content to display, or is there a better alternative to go with?


Is the Big Bang defined as before or after Inflation?

Is the  defined as before or after ? Seems like a simple enough question to answer right? And if just yesterday I were to encounter this, I'd have given a definite answer. But I've been doing some reading while writing up my thesis and I'm finding conflicting definitions of the Big Bang.  Everyone agrees that in standard Big Bang cosmology, the Big Bang is defined as the singularity; the moment in time when the scale factor goes to zero. Okay, but when you include the theory of inflation, it gets a bit murky.  So here's what I mean by conflicting definitions. As an example, in The Primordial Density Perturbation by Lythe and Liddle, they define the Big Bang as the beginning of the era of attractive gravity after inflation. However, Modern Cosmology by Dodelson defines the Big Bang as coming before inflation; it effectively uses the old definition that the Big Bang is the moment when the scale factor approaches zero.  This contradiction is evident in multiple places. When doing a google search for it, one can find many persuasive explanations for both definitions. All definitions agree that we cannot any longer define it as the singularity where $a=0$. But every one makes sense in its own way and so, I become more and more confused about which is right the more of them I read.  The argument for the Big Bang coming after is that inflationary theory diverges from the standard Big Bang cosmology around $10^{-30}s$ before we'd expect to run into the singularity, when inflation ended, and that we have no evidence to anything coming before that, thus the big bang is now defined as the initial conditions for the hot, expanding universe that are set up by and at the end of inflation.  The argument for the Big Bang coming before seems to be that inflation is still a period where the scale factor grows and as such, the Big Bang can be defined as the closest value to zero (which is before inflation), or rather, the earliest time as the scale factor approaches zero. This essentially seems to be based on saying "well, we defined it as the moment when the scale factor was smallest before inflation was added. Why would we not continue to have that as the definition after inflation is added?"  The former argument has merit because it defines the start of the epoch where the universe is describable (practically) by the standard Big Bang cosmology. But the latter argument has merit because of its simplicity and that it uses the spirit of the original definition; the smallest scale factor and the moment when the expansion of the universe seems to begin.  Thus, my root question: Which definition is correct? Do we say the Big Bang came before or after inflation?  P.S. I realize that asking this here only serves to add one or more additional persuasive arguments to an already crowded debate. However, this is Physics.SE, so I figure whatever we decide here can be definitive. Even if we can't find a truly correct answer, this can set the record straight, or at least, firmly crooked.


How to activate guard dog after kill streak?

How does the dog get activated after getting kill streak?


If $F$ is a field with $q$ elements, $V$ a $F$-vector space of dimension $n$, then how many ordered basis does $V$ have ?   First, $V$ has $q^n$ elements, am I correct ? Let $\{v_1,\dots,v_n\}$ be a basis then for example $\{v_1+v_2,v_2,\dots,v_n\}$ is also a basis, So can I say $n\times n$ identity matrix represents the first basis, then for the second basis we have also the identity matrix but with the first row replaced by $(1,1,0,\dots,0)$ (instead of $(1,0,0,\dots,0)$), hence any invertible matrix would give another basis, but it should be ordered, does it mean that the matrix should not be symmettric (axis ?) and don't we need some information about $q$, for example $q=p^n$ then number of elements depend on $p$ ?


Right ND for filter size for Nikon 24-85 mm lens

I have a Nikon lens NIKON AF-S 24-85 F/3.5-4.5G ED VR. And I'd like to get an ND.10 filter.   What's the right filter size for that lens? And what brand would you suggest


I was trying to upgrade from Ubuntu 16.04 to Ubuntu 18.04 and ran into the following error:  Failed to lock /var/cache/apt/archives/lock   I searched google/askubuntu/ubuntu subreddits for any previous troubleshooting steps, and everything has failed so far (as a start, on Ask Ubuntu,  that unfortunately didn't work.  Has anyone run into this problem going from 16.04 to 18.04,and have been able to resolve it?  My output after running the system upgrader is as such:  Fetching  Could not download the upgrades   The upgrade has aborted. Please check your Internet connection or  installation media and try again. All files downloaded so far have  been kept.   Failed to lock /var/cache/apt/archives/lock    Traceback (most recent call last):   File "/tmp/ubuntu-release-upgrader-6o5gq951/bionic", line 8, in <module>   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeMain.py", line 238, in main   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeController.py", line 1949, in run   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeController.py", line 1905, in fullUpgrade   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeController.py", line 1201, in doDistUpgradeFetching   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeController.py", line 1450, in abort   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/sourceslist.py", line 366, in restore_backup   File "/usr/lib/python3.5/shutil.py", line 236, in copy     copymode(src, dst, follow_symlinks=follow_symlinks)   File "/usr/lib/python3.5/shutil.py", line 138, in copymode     chmod_func(dst, stat.S_IMODE(st.st_mode)) PermissionError: [Errno 1] Operation not permitted: '/etc/apt/sources.list' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 109, in apport_excepthook     pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])   File "/usr/lib/python3/dist-packages/apport/report.py", line 544, in add_proc_info     self['ExecutableTimestamp'] = str(int(os.stat(self['ExecutablePath']).st_mtime)) PermissionError: [Errno 13] Permission denied: '/tmp/ubuntu-release-upgrader-6o5gq951/bionic'  Original exception was: Traceback (most recent call last):   File "/tmp/ubuntu-release-upgrader-6o5gq951/bionic", line 8, in <module>   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeMain.py", line 238, in main   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeController.py", line 1949, in run   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeController.py", line 1905, in fullUpgrade   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeController.py", line 1201, in doDistUpgradeFetching   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/DistUpgradeController.py", line 1450, in abort   File "/tmp/ubuntu-release-upgrader-6o5gq951/DistUpgrade/sourceslist.py", line 366, in restore_backup   File "/usr/lib/python3.5/shutil.py", line 236, in copy     copymode(src, dst, follow_symlinks=follow_symlinks)   File "/usr/lib/python3.5/shutil.py", line 138, in copymode     chmod_func(dst, stat.S_IMODE(st.st_mode)) PermissionError: [Errno 1] Operation not permitted: '/etc/apt/sources.list'


I'm looking at the  for resilio-sync and trying to stop temporarily, this service (as it uses a port I need free for a project)   It offers instructions for systemd and for 'sysvinit, upstart'. I'm not sure which to use and, in any event, using stop with either of them still leaves the process running (using ps aux).  Which instructions should I follow?  What command will actually stop the process, in such a way that I can restart again without having to reboot?  (I tried killall rslsync before and ended up rebooting to get the sync back again)


0.1 vs 0,1 in c++, why does neither result an error?

I come from a country where the way we write decimal numbers differs from the other place by whether I use ',' or '.' for decimal separator. Now this is why I by accident wrote somewhere in my c++ program:  while(true){     long double x=0;     //some code that increases the value of x      //by very small amount but it doesn't leave it at 0     if(x>0,000001)break; }   And this made the program run indefinitely. After wasting quite some time thinking my code was wrong I tried this:  while(true){     long double x=0;     //some code that increases the value of x      //by very small amount but it doesn't leave it at 0     if(x>0.000001)break; }   Which worked just fine. Later I understood my mistake (I used ',' instead of '.'), but now I am confused as to why doesn't the next code result with compilation error, and how come it's outcome is "greater"  long double g=0.001; if(g>0,01)cout<<"greater"; else cout<<"smaller";   Edit: When I posted this question I didn't know that the comma is an operator. So the question was marked as duplicate and lead here  . But there I couldn't actually find a comparison between '.' and ',' .


I am entering the realm of cryptography and encountering Number Theory related stuff a lot (As expected). I have a good knowledge and background on mathematics but I have been away for a while. So if anyone can give me a refresher (basic, not deep) about the below it would be perfect. (links to proper explanations are also a good idea)   B : {0, 1} d   --> {0, 1}d    A Є {0, 1}d    uniform distribution


Datasnap - prevent users from running another instance

If one instance of Datasnap server is running, trying to open another one crashes this second instance. How can you prevent users from opening more than one instance of datasnap server?  On create of the server application :  Application.Initialize;   Application.MainFormOnTaskbar := True;   Application.CreateForm(TForm1, Form1);   Application.CreateForm(TServerContainer1, ServerContainer1);   Application.Run;   I tried putting LMDOneInstance on the Form1 but the server still keeps opening another instance (visible in the windows task manager). It does not crash the newly created instance but it just creates another process.


Sum of the series $\sum \frac{n}{2^{n}}$

I know that the series converges by d'Alembert ratio test, where $\lim\left ( \frac{A_{n+1}}{A_{n}} \right )= \frac{1}{2}$, but I don't know how to calculate the sum of the serie. Thanks for the help.


Prove $\sum\limits^m_{k=0} \frac{2n-k\choose k}{2n-k\choose n}\frac{2n-4k+1}{2n-2k+1}2^{n-2k}=\frac{n\choose m}{2n-2m\choose n-m}2^{n-2m}$ for-

Let $n$ be a positve integer. Prove that$$\sum\limits^m_{k=0} \frac{2n-k\choose k}{2n-k\choose n}\frac{2n-4k+1}{2n-2k+1}2^{n-2k}=\frac{n\choose m}{2n-2m\choose n-m}2^{n-2m}$$ for each non-negative integers $m\leq n$.  I know this is to be done by induction. Base case is easy. But I can't simplify expression for $(m+1)$. Please guide.   Edit: $\large P(m+1)=P(m)+\frac{2n-(m+1)\choose m+1}{2n-(m+1)\choose n}\cdot\frac{2n-4(m+1)+1}{2n-2(m+1)+1}\cdot2^{n-2(m+1)}$  $\Large=\frac{n\choose m}{2n-2m \choose n-m}.2^{n-2m}+\frac{2n-m-1\choose m+1}{2n-m-1\choose n}\cdot\frac{2n-4m-3}{2n-2m-1}.2^{n-2m-2}$   It must be equal to $\Large\frac{n\choose m+1}{2n-2m-2\choose n-m-1}.2^{n-2m-2}$  So lets try to simplify it-   $\Large=\frac{n!(n-m)!}{m!(2n-2m)!}.2^{n-2m}+\frac{n!(n-m-1)!}{(m+1)!(2n-2m-2)!}\cdot\frac{2n-4m-3}{2n-2m-1}\cdot2^{n-2m-2}$   $\Large=\frac{2^{n-2m-2}\cdot n!(n-m-1)!}{m!(2n-2m-2)!(2n-2m-1)}[\frac{2}{1}+\frac{1}{(m+1)}\cdot\frac{2n-4m-3}1]$   $\Large=\frac{2^{n-2m-2}\cdot n!(n-m-1)!}{m!(2n-2m-2)!(2n-2m-1)}[\frac{2n-2m-1}{m+1}]$   $\Large=\frac{2^{n-2m-2}\cdot n!(n-m-1)!}{(m+1)!(2n-2m-2)!}$  $\Large=\frac{\frac{n!}{(m+1)!(n-m-1)!}}{\frac{(2n-2m-2)!}{(n-m-1)!(n-m-1)!}}\cdot2^{n-2m-2}$  $\Large=\Large\frac{n\choose m+1}{2n-2m-2\choose n-m-1}.2^{n-2m-2}$   I think it is right. But is there any shorter way also?


What is the size of the angle $\angle AMC$?

Suppose we have a triangle $\triangle ABC$ where the size of two angles are given: $\measuredangle B=15^\circ$ and $\measuredangle C=30^\circ$. We draw the median $AM$, so now what is the size of angle $\measuredangle AMC$?    The answer is $45^\circ$... Ask your friends to think on it for a while...  Find different solutions... Different proofs...  This is my solution/proof:    Continue $CA$, draw the ray $\vec{CA}$. Then draw $BN$, in which it is perpendicular to $\vec{CA}$.   $\triangle BCN$ is a $30^{\circ}-60^{\circ}-90^{\circ}$ triangle. as we know about this triangle. $BN=\frac12 BC$. So $BN=BM$. This tells us $\triangle ABN$, is isosceles, so $\measuredangle BMN=\measuredangle BNM=\frac{180^\circ-\measuredangle MBN}2=\frac{120^\circ}{2}=60^\circ$.    Now we know $\triangle BMN$ is equilateral.   Therefor $$MN=BN=BM\qquad(1)\\ \text{and }\measuredangle MBN=60^\circ\qquad{ }$$  By this, we get $\measuredangle CMN=180^\circ-\measuredangle BMN=180^\circ-60^\circ$,  $$\text{therefor }\measuredangle CMN=120^\circ\  (2)$$  $\measuredangle ABN=\measuredangle CBN-\measuredangle{CBA}=60^\circ-15^\circ=45^\circ$. So, the other angle of the right triangle $\triangle ABN$, i.e. $\measuredangle BAN$, should be $180^\circ-90^\circ-45^\circ=45^\circ{}^\dagger$, therefor $\triangle ABN$ is isosceles.  So we would have $AN=BN$. By (1) we get $MN=AN$, so $\triangle AMN$ is isosceles. Therefor $$\measuredangle AMN=\measuredangle MAN=\frac{180^\circ-\measuredangle ANM}2=\frac{180^\circ-30^\circ}2=75^\circ$$  Now, by using (2) we can find the size of $\measuredangle AMC$, which is  $$\angle AMC=\measuredangle CMN-\measuredangle AMN=120^\circ-75^\circ=45^\circ$$  ${}^\dagger$let's note that one may also know that $\measuredangle BAN$ is equal to $45^\circ$, since it is an external angle of the triangle  $\triangle ABC$


$ax\equiv b\pmod{\! n}$ has a unique solution if $\gcd(a,n) = 1$

How can I prove that $\,ax\equiv b\pmod{\! n}\,$ has a unique solution if $\,\gcd(a,n) = 1$?  I suspect that the Bezout identity for $\,\gcd(a,b) = 1$ is the key but I don't see how to proceed.


Why did multicellular organisms evolve when a single cell can survive on its own?

Since unicellular organisms can survive, why would there be evolution of multicellular organisms?


Tabular inside itemize - bullet vertical align

I am trying to align text inside an unordered list. \begin{itemize}     \item          \begin{tabular}{rl}         when size = capacity $\Rightarrow$ resize $\Rightarrow$ &capacity increased \\                                                                  &a bigger array is allocated \\                                                                 &existing elements are copied to the new array         \end{tabular} \end{itemize}  Here is the result:  However, the bullet is vertically centered. How can I make it stay at the top?


I need a proof for the inequality: $\sum_{i=0}^{t-2}{\frac{1}{t+3i}} \leq \frac{1}{2}$ for all natural numbers $t \geq 2$. For $t=2$ both sides are equal.  Can someone find a proof for all $t$? maybe by proving monotonicity (non-increasing) in $t$?


Unable to dual boot Ubuntu and Windows 8 (boot-repair corrupts the installation)

I've been struggling with installing Ubuntu 13.04 on my laptop (I believe it's Asus N56VZ). I'm running on pre-installed Windows 8 and even though I'm able to install Ubuntu (13.04) and boot it by setting it as the primary boot option from BIOS, I'm unable to perform a clean dual boot (the Windows dual boot screen doesn't show up, instead it just boots to Windows if boot manager is set as the primary boot option).  I've tried:   EasyBCD, no luck with it. I get a screen asking for Windows installation CD with this option. Boot-repair. I used ubuntu boot repair from a live session. It corrupted the booting totally; I got booted to grub resque ("something too small" (not sure about the exact message) when booting Windows, unknown filesystem when booting the Ubuntu). I had to change the boot to my LiveUSB and uninstall Ubuntu with Os-Uninstall in order to get Win8 operational.   Here's the paste that Boot-Repair created:


I have a page that uses   $(id).show("highlight", {}, 2000);   to highlight an element when I start a ajax request, that might fail so that I want to use something like  $(id).show("highlight", {color: "#FF0000"}, 2000);   in the error handler. The problem is that if the first highlight haven't finished, the second is placed in a queue and wont run until the first is ready. Hence the question: Can I somehow stop the first effect?


Why security updates not included in apt-get repository?

I am using Ubuntu 20.04 LTS. When I use: sudo apt-get update  sudo apt-get upgrade  in the terminal, my software repository is updated, and the softwares are upgraded by some download. However, when I go to "Software Updater", there are some security updates present, namely: Generic Linux kernel header, Generic Linux kernel image, etc. (almost worth ~75 MB). I got confused because these security updates were not downloaded and installed when I ran: sudo apt-get upgrade  Why is it so? Should they be downloaded? Should I also enable (tick) Canonical Partners repository in Software & Updates > Other Software to get security updates?


wifi problem on MacBook pro early 2015 running Ubuntu LTS 16.04

Abstract:   Ubuntu detects wireless interface, but menu does not show any wireless network.  Details:  I have installed Ubuntu on MacBook pro early 2015. The appropriate drivers for my wifi are installed (according to this question ). My device is  ~$lspci -nn | grep 0280 03:00.0 Network controller [0280]: Broadcom Corporation BCM43602 802.11ac Wireless LAN SoC [14e4:43ba] (rev 01)   and it seems, that Ubuntu sees wireless interface  ~$ sudo lshw -C Network *-network                   description: Network controller    product: BCM43602 802.11ac Wireless LAN SoC    vendor: Broadcom Corporation    physical id: 0    bus info: pci@0000:03:00.0    version: 01    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list    configuration: driver=wl latency=0    resources: irq:18 memory:c1400000-c1407fff memory:c1000000-c13fffff *-network    description: Ethernet interface    product: NetXtreme BCM57762 Gigabit Ethernet PCIe    vendor: Broadcom Corporation    physical id: 0    bus info: pci@0000:0a:00.0    logical name: ens9    version: 00    serial: ac:87:a3:38:54:a8    size: 1Gbit/s    capacity: 1Gbit/s    width: 64 bits    clock: 33MHz    capabilities: pm vpd msi msix pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation    configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.137 duplex=full firmware=57762-a1.10 ip=130.223.51.185 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s    resources: irq:19 memory:cda00000-cda0ffff memory:cda10000-cda1ffff memory:c1a00000-c1a0ffff   Therefore I do not get, why the menu with possible connection does not show any wireless networks (only Ethernet cable). I also installed next to unity KDE, and in the both cases, the list is blanc.  I also tried to install what is recommended here,  but without any change of output (it is different wifi if I understood right, not wonder it has not worked).


I need help to solve initial-value quasilinear problem: $xu_y - yu_x = u$, $u(x,0)=h(x)$  Here what I did: The initial curve $\Gamma: <x=s, y-0, z=h(s)> $  The characteristic equation $\frac{dx}{dt}=-y$, $\frac{dy}{dt}=x$, $\frac{dz}{dt}=z$.. So $x=-yt + s$, $y=xt$ and $z=h(s)e^t$. Solve for $s$ I get $s=\frac{x^2 + y^2}{x}$ then solution for this problem is  $u=h(\frac{x^2 + y^2}{x})e^{y/x}$. Is it right? I am not sure because the answer from text book, PDE 4th Edition by Fritz John, is $u=h(\sqrt{x^2+y^2})e^{arctan(y/x)}$  Please help.  Thanks


What is the opposed check for an NPC's attempted Intimidation?

My group's adventurers just went and got themselves captured and enslaved by a city-state that runs Roman-style gladiatorial deathmatches. They're in the dungeons under the arena, across the hall from their soon-to-be opponents and reigning arena victors, a band of brutal orcs.  I want the orcs to attempt to indimidate the party, but can't figure out what the opposed check or DC should be for each character. An intimidation vs. intimidation contest-type roll doesn't make sense unless the characters decide to use the same tactic (which they likely won't).  In addition, if the intimidation check is successful, what should the resulting effect be in the upcoming battle? The frightened condition seems a little harsh, but I suppose it would work for a very successful roll.  I'm all for preserving player agency, but am of the opinion that becoming intimidated doesn't fall within those boundaries, i.e., I don't think they should have any more say over what scares them than they would on the day's weather.  Another way to rephrase my question (which I don't see adequately answered in similar questions) is: how is the Orc's +2 to Intimidation skill supposed to work in the game mechanically, and what are the range of effects?


Proving the values obtained by a recurrence relation are always perfect squares?

A problem appeared in a maths contest as follows: Consider a recurrence relation: $$a_{n+3}= - a_{n+2}+2a_{n+1}+ 8a_{n}$$ where the intial conditions are : $a_1=1;a_2=1;a_3=9$.  Then prove that the quantity $a_n$ is always a perfect square for any $n$. I tried to solve it using the characteristic equation method looking at the homogenous nature of it. But the roots were complex and it became near impossible to show by hand that the imaginary part would be zero and the real part would be a perfect square. Hence is there any way of without going through that route and getting a proof?


What is the physical intuition for Bloch Sphere?

I am very confused about how to think about the . How can we relate the concept of expectation value to the Bloch sphere? If my state lies in let's say $yz$ plane how can we say that expectation value around $x$ is 0. I can understand that we take the projections and because of the equal probability of projection onto the positive and negative axis, we get a 0. My question is how can a vector living in $yz$ plane can even be projected on $x$-axis?


Does Firefox store bookmarks as individual files anywhere?

Many years ago in the time of Windows XP, I remember that Internet Explorer had a "Favourites" folder containing each bookmark as a standalone file. This enabled easy drag-and-drop operations on bookmarks, as well as other simple management techniques.  Does Firefox store bookmarks individually this way, and if so, where does it store them? I'm aware of places.sqlite, but that's one large file, and not really human-readable.  (I know  exists, but that's not a duplicate. That's just asking about the location of bookmarks generally, not whether standalone individual files exist.)


Can I put a 2.3 mountain bike tire on what now has a 2.10 tire. 26 inch

I do see room for a 2.3 in front but in the rear, I don't think I could go any higher than 2.20 or 2.25. Both rims currently have 2.10 tires on a 2006 Santa Cruz Blur


PHP: How to increase a number in variable that contains both text and the number

This is quite a stupid question. I want to find out how to increase a number in the end of the variable:  $Coffee1 = "black"; $Coffee2 = "brown"; $Coffee3 = "gray";  echo $Coffee1;        => black echo $Coffee1+1;      => brown echo $Coffee2+1;      => gray


Easy proof of Black-Scholes option pricing formula

I use this  to read the option pricing in Black-Scholes model in pages 93-99, The proof of the formula given by $$c(s,t)= N(d_1(s,t)- Ke^{-rT}N(d_2(s,t)))$$ where  $$d_{1,2}=\frac{\ln(s/K)+(r\pm \frac{1}{2}\sigma^2)t}{\sigma \sqrt{t}},$$   seem  for me more  long to read. Where do I find a short demonstration with adequate assumptions?


Can't execute a file with execute permission bit set

Well I'm just too green to Linux, but I'm stuck with a thing that I should know, and I don't. My file has the following permission bits sets:  -r-xr-xr-x   is owned by root ( but it should not matter since -x is active even for any user) it is not writable, and since it resides on a CDROM even if is a virtual iso mounted as a cdrom it sounds ok, but I can't execute: It says "Permission Denied" What I miss? The mount itself has execution permission, so it should execute, why it does not?  EDIT  I solved the issue, but not my doubt, since expliciting bash ./autorun.sh  works - i need a root account anyway for what's inside, but it works.


Can I start a tourist Schengen visit after my long-term Schengen visa is over?

Here's my situation. I am currently in France on an internship visa (different than a business and tourist visa) which ends next month. I'm interested in doing some traveling afterwards, ideally on a 90-day Schengen tourist visa. I'm willing to hop over to a non-Schengen country (like the UK) for a couple days and then come back to get the tourist visa if necessary.    seems similar to my question, except the OP is trying to get the tourist visa without leaving the Schengen area.  Is this allowed? Will the border patrol still give me the tourist visa after my internship visa expires? Will it work through the UK or should I go through another non-Schengen country? I have a USA passport.


Run compiled java class by IntelliJ in command, error: NoClassDefFoundError

Note: I have ran the program in IntelliJ without error, I need to make it independent of IDE, i.e. run it under command line. I got the error not because I didn't implement it, but I didn't understand how I can let compiler know it.  I have a project composed of 7 to 10 java files, relies on 5 jar files. The project is managed in IntelliJ project, version 2017.1.  Now I want to run a java class with a main function from the project. In the command line of local computer, I run the class with script:  /project/out/path> java retrieve_result   I correct my script as .  Note: in the retrieve_result class, there are dependencies on other java and jar files.   The error is shown as below:  Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/store/Directory         at HW2MainLucene.ReadIndex(HW2MainLucene.java:69)         at HW2MainLucene.main(HW2MainLucene.java:23) Caused by: java.lang.ClassNotFoundException: org.apache.lucene.store.Directory         at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-internal/BuiltinClassLoader.java:366)         at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-internal/ClassLoaders.java:184)         at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419)         ... 2 more   As far as I have learned, this error comes because the compiler cannot locate the jar files. But in the IntelliJ project, it is already configured.  How can I configure the compiler to get a usable program?


Is there a "cleaner" way to refer to a file with a given extension?

When creating file objects from variable names and extensions it seems kind of clunky to have to do things like this:  new File(myPath, myFilename + "." + myExtension);   or  myFilename += "." + myExtension;   Is there a better way to do it without having to remember to manually concatenate the period in there?  I'm doing this on Android, but any solution using native Java, Guava, etc would be equally welcome.


The new version of search console is reporting status 'Crawled currently not indexed' for several URLs. The urls are new and the sitemap was submitted only a couple of days back.  My question is how much delay one can expect between crawling and indexing by Google?


Why $\bar{z_1}z_2+\bar{z_2}z_3+\bar{z_3}z_1 \in \mathbb R \iff z_1, z_2, z_3 \text{ are along the same line}$

Prove:  $$\bar{z_1}z_2+\bar{z_2}z_3+\bar{z_3}z_1 \in \mathbb R \iff z_1, z_2, z_3  \text{ are along the same line}$$  My attempt:  Since $z+\bar{z} =2  \operatorname{Re}z \in \mathbb R$, so we can transform like that: $$\bar{z_1}z_2+\bar{z_3}z_2+\bar{z_3}z_1 + \bar{z_1}z_1 \in \mathbb R$$ next $$(\bar{z_1}+\bar{z_3})(z_1+z_2) \in \mathbb R$$ But we should have something like $$\frac{z_1+z_3}{z_1+z_2} \in \mathbb R$$  So, what is missing?  Thanks a lot!


What is difference between $('abc') and $("abc") in jQuery?

What is the difference between $('.abc') and $(".abc") in jQuery?  Example:  var main = function() {  $('.btn').click(function(event) {    $('.container').hide();  }); };   vs  var main = function() {  $(".btn").click(function(event) {    $(".container").hide();  }); };   Both of the code snippets work well. So what is different?


Enlightened badge - first overall answer or among those not deleted?

The definition of the Enlightened badge says:     Enlightened         silver; awarded multiple times   Be the first person to answer a question, and receive a score of at least ten for that answer. The answer must be accepted by the question   owner, and .      Does "the first" mean "the first including deleted answers" or just "the first among not deleted answers"?


How can a DM nerf the circle of the moon archdruid ability to prevent infinite hit points?

So I know a lot of people argue that infinite wild shape "isn't that overpowered" but I still think gaining upwards of 200 hit points per turn is a bit broken, especially compared to other level 20 abilities like the ranger, who just get to add a wisdom bonus. How would one go about nerfing it so they still are strong, but not un-killable?


What non-security updates are included with "Security Monthly Quality Rollup" KB3185330?

According to articles by multiple respected technology bloggers, Microsoft's KB3185330 patch for Windows, entitled "Security Monthly Quality Rollup" actually contains both security and non-security updates.  See:         There is widespread concern that this update could contain patches that force telemetry onto customers' Windows computers.  What non-security updates are included in this particular "Security Monthly Quality Rollup"?


I create Python script for automatic create particle system use any two selected objects. Object 1 is emitter object and object 2 is particle object.  objectSelectList = bpy.context.selected_objects print(objectSelectList)   This command give list of objects a user selected but sometime list order is reverse order (user select object A first then object B but list is: object B, object A).  How get correct select order?


Can I trust Apple Store's employees with my laptop?

This might be a bizarre but crucial question, can I fully trust leaving my laptop in repairs (Genius Bar) while they have full access to it ?  I recently went to the genius bar to get my display fixed, and apparently they asked for my laptop's password just in case they need some "testing" after they're done. Can't they do that as a guest account ?  I got sensitive information on my laptop such as passport copies etc, as well as passwords saved in Safari's keychains for my bank account, paypal, amazon etc ..  The service is due later on today, shall I change my password and ask them to contact me directly if they need something specific ?? They're going to fix in 3 hours so I'll be in the mall whilst they finish.


How do I set a static permanent IP on a raspberry pi

I have an NOOBs-Raspbian Raspberry Pi. How can I set an permanent static web IP to it?


Why theses two calls to map returns different value?

Can someone explains me why   ["23", "45", "67"].map(parseInt); returns [ 23, NaN, NaN ]  but   ["23", "45", "67"].map((e) => parseInt(e)); returns [ 23, 45, 67 ]  ?


I changed my e-mail from hotmail to gmail during 2013.  I want my Apple id to follow that.  The old email account is still there when I configured my iPhone 5s and tryied to install my icloud and phone settings.  The new phone wants both apple ids. Why?    Question : How do I remove my old Apple-id from my phone?


Should I get the +2 bonus twice for suggesting a tag wiki?

I noticed (now that  has been fixed) that you basically get two +2 rep bonuses for suggesting a tag wiki: one for the wiki, one for the wiki excerpt. Is this really intended? It seems odd to me, since I suggested both at the same time from the same screen. Does it work the same way with posts: do I get +2 for suggesting an edit to a post's title, another +2 for suggesting an edit to the body, and another +2 for suggesting an edit to the tags?


How to terminate a task and continue the next one after a specified time limit?

My "queryService.query()" make take a time that exceeds a limit specified by the requirement. I want to be able to skip the execution of the current function all after 1 second and then continue to process of the next "inputInfo". If a task takes too long, I want to skip it. What's the best way to do this?    public Response getResponse(InputInfo inputInfo) {          Preconditions.checkNotNull(inputInfo);         LOGGER.info("inputInfo: " + inputInfo);          Response response = queryService.query(inputInfo);          return response;     }


Solving $\int_0^\infty 1/(1+x^4)\,dx$ using elementary high school methods

Background: A friend once brought up the integral $\displaystyle\int_0^\infty\frac{1}{1+x^4}\,dx$ and asked me if I can solve it. Now, I converted it into a beta function and solved it using Euler's reflection property (Evaluated to $\frac{\pi}{2\sqrt2}$). But my friend and I are in high school and he didn't know the use of beta function  or most of the techniques that I had used there. He then challenged me to solve it using elementary high school metheds. My Efforts: I thought that since I already knew the value it was going to evaluate  to, I could brute-force my way to find this. I thought to use the sandwich theorem and take the bounds such that they evaluate to $\frac{\pi}{2\sqrt2}$. For the upper bound, I thought that since I want $\pi$ in it I could use the derivative of $\arctan(x)$ since it is also similar to function we are trying to integrate. $$\int_0^\infty \frac{1}{\sqrt2} \frac{1}{(x^2 + 1)}\,dx \geq\int_0^\infty \frac{1}{x^4+1}  $$ Now, the problem here is that I can't exactly prove that this inequality is true. I can definitely say that after a point $x\approx 1.3$ , $\displaystyle \frac{1}{\sqrt2}\frac{1}{1+x^2} > \frac{1}{1+x^4}$. But then from this I can't really comment on the inequality of the above integrals. Also I can't find a suitable lower bound for this. My Question:  Can we prove this inequality mentioned above, also what would be a suitable lower bound for this? Otherwise are there any better bounds I can use here (all knowing what the integral is going to converge to already) ? Or should I accept defeat as there is "no way" to solve this using elementary high school methods?  Any input appreciated..


How does the double strike mechanic interact with other mechanics like lifelink or trample?

I understand that the double strike mechanic allows a creature to attack in both a first strike combat damage step and a normal combat damage step.  It's clear that when a creature with no other abilities aside from double strike is blocked that even if the defender has lethal damage marked in the first strike step that the additional damage does not carry forward to the player.  How does this view of double strike change with relation to trample and lifelink?  I believe the correct interpretations are (not accounting for other effects or abilities) that 2 times the attacker's power is marked as damage on the defender.  For trample this amount is reduced by the defender's toughness and additional damage carries forward as normal.  Similarly for lifelink the active player gains life equal to 2 times the attacker's power.  Thus a 10/10 trampling double striking life linker blocked by a 1/1 creature would deal 19 points of trample damage and the active player would gain 20 life.  Is this interpretation correct?


Windows 10.  Taking screenshots via "X-keys programmable usb keypad".  These are stored in a specific folder.  Later we add these screenshots to a report that is sent via e-mail.   Problem is; we are talking 10-20-30 pictures and with the relatively big file sizes, we can't send them via e-mail.   We can't edit them on the go, only at the end of the day. Image resize online works pretty well at reducing file size without losing too much quality. But it's cumbersome and we don't always have good internet connection. Here is the question ;   We need a way to batch resize the images easily and fast. Several different people will use this computer, so "easy" is key. What is the best way ?  A standalone image resize application?  Is there some script you can run i.e "reduce all images in folder "xxx" to 50% size" ?


In Ruby, is it possible to pass by reference a parameter with value-type semantics (e.g. a Fixnum)? I'm looking for something similar to C#'s 'ref' keyword.  Example:  def func(x)      x += 1 end  a = 5 func(a)  #this should be something like func(ref a) puts a   #should read '6'   Btw. I know I could just use:  a = func(a)


Translation is stuck in increments, how do I set back to free movement?

I am a beginner.  I am trying to translate in the Z axis, the problem is that I only want to translate less than a square but when I move the mouse, it translate 1 full square.  How I can deactivate the option, to move the object free?


how do i make it so that my diamond sword can give player potion effects?

How do i put potion effects on my sword? like in factions when you hit a player they get wither, poision, slowness, weakness, blindness, etc. ive looked on the internet for commands. i also tried to put factions on my multiplayer server and failed


Why does fatal error "LNK1104: cannot open file 'C:\Program.obj'" occur when I compile a C++ project in Visual Studio?

I've created a new C++ project in Visual Studio 2008.  No code has been written yet;  Only project settings have been changed.  When I compile the project, I receive the following fatal error:     fatal error LNK1104: cannot open file 'C:\Program.obj'


Playing a Wild Draw Color Card on top of another Wild Draw Color Card to get out of drawing cards in UNO FLIP

If a player lays down a Wild Draw Color Card, can the next player lay down their own Wild Draw Color Card to get out of drawing cards. I argued that this should be allowed since it's like in UNO playing a Draw Two Card and the next player then plays another Draw Two Card.


Simple Question! Trying to install Xubuntu! Which file do I extract in WinRAR to do so?

OK  Here goes  Downloaded Ubuntu - not working (ISO error?)  OK - skip that - try Xubuntu instead - OK - downloads - OK needs me to extract something in WinRAR - OK - not at all clear what to extract?  Can't find help in forums?  Seems basic question??  HALP?@!QQ?


I would like to run the reverse of this command to remove the non-compatible repository in Debian 8.1  sudo add-apt-repository -y ppa:nemh/systemback   where the command add-apt-repository is in the package software-properties-common.  I could not find the systemback entry in /etc/apt/sources.list.  How can you run the reverse of the command?


An over-the-top, gauntlets-thrown, when-is-it-appropriate-to-hyphenate debate

An eye-glazingly, mind-numbingly boring debate is raging on usmessageboard.com over hyphenation. One user posted     full-throttle, out-of-the-gate, naked attempt by the press   to which another user responded     Has any other POTUS " out-of-the-gate" [sic] preceded and commenced their presidency   which the first user took as an attack on his grammar, and, well, the to-hyphenate-or-not-to-hyphenate debate has raged ever since.   In an attempt to restore the tranquility of the board and its usual civil tone, I offered to submit an appeal for arbitration here.   The question mentioned of which mine may be a duplicate does indeed answer many of the points raised in the battle raging elsewhere, but doesn't address others, which I will try to list below. Nor does it cover the [sic] aspect of our controversy. I realize the question could be split into two separate questions, but that would reduce the chance our community would receive the fairest possible judgment from our community.   And that brings up the objection below to the appeal for arbitration. I imagine there are any number of reasons someone might post a question here. Some, I suppose, are composing an email at work their boss will see, and they want to be as precise as possible so that they make a good impression. Others may be working on a thesis they are going to present and want to be sure of their lingual footing during the orals. Another might be composing a letter to a cheating lover and she wants to express her broken heart in a crystal clear voice free of any quaver an ungrammatical sentence would give it. We neither ask them the reason, nor sanction them if they offer the reason.   I offered the reason because I thought it was a light-hearted and inoffensive addition to my question without detracting from it.   The aspects of this question that weren't addressed in the other's answer, thorough as it was:   Since hyphenation is to be used to form a compound word immediately preceding a noun, out-of-the-gate should not have been hyphenated because of the interposition of the word "naked" between the adjectival phrase and the modified noun, "attempt". The OP responded that the stack of adjectives all qualified as immediately preceding the noun; The temporal quality of "out of the gate" made it adverbial and thus undeserving of a hyphen. In response, the OP maintained "out-of-the-gate" was indeed adjectival; The [sic] was not a criticism of the OP's grammar, but a defense against the possibility the OP's mistake would be imputed to the respondent.   So there you have it. Was this a mistake?     full-throttle, out-of-the-gate, naked attempt by the press


From "Review in progress" to "Ready to review"

I understand that this question is related to a workflow of a journal and have tried to look at the answer of this specific query but am not able to find a specific answer anywhere else. The query is  I had send a paper to a reputed journal. Its status for the past month was "Review in progress". After more than a month, its status changed to "Ready to review". What does this mean? How could the status for atleast one month be "Review in progress" and then change to "Ready to review".


What is Secure Boot? Should I disable it?

I have an Acer with an Nvidia graphics card. I know that to upgrade the drivers I need to disable Secure Boot, but I am unclear about what Secure Boot is and if there are any down sides to disabling it. (Running windows 10 alongside Ubuntu 16.04 on separate partitions)  I've read other posts and people say that it doesn't let them run windows again and this is something that I don't want.  Is it okay for me to disable it for my graphics driver?  Note: Ubuntu works with Secure Boot, this is wholly for the graphics driver.


Windows Games how do i code in to play on linux

I Really want to switch to linux but i own a crap ton of windows games. and i would want to play them on my machine. is there anyway possible to play the newest titles on said ubuntu machine? like what code would i need and how do i implement it.


Java : confusing division result with 2 doubles

Can anyone explain what's going on here? My calculator insists that the result of equitation is 13201.    double test = 132.01/0.01D; System.out.println(test); <- 13200.999999999998   Probably, this is very simple question, but I really don't understand. Most of questions in SO on similar topic involves Integer and Double.


Possible to have the default landing page of my Sharepoint Site be an applicaiton page?

So basically when someone goes to:   http://mysite.com   I would like to show an Application Page that I have created, without the giant URL.  Example of the giant URL :  http://mysite.com/_layouts/ap/myAppPage.aspx   Is there any way for me to do this?


Can I report 1099 income earned in December and paid in January in 2019?

I provided service in December 2019 and was paid on January 10th 2020 for that service. Can I report that in the 2019 tax filing period?


Arabic values in mysql query is Ignored by the database

I am trying to send query to mysql to insert some values into a table , this is not the first time I do this stuff and this is what making me getting crazy ! when I am printing the query it looks like this :     INSERT INTO hc_family_receive_relief   (hc_family_id,hc_received_kind,hc_received_date,hc_received_month,hc_received_year)   VALUES ('89','��� ��������','30','5','2014')   This is the first time I face this issue , what is the reason of it ? I even try to save the PHP file as UTF-8 , UTF-8 with out BOM , Arabic characters still not inserted to the table ! .  the following is the function that I used to create the query dinamicly from $_POST array :  function add_family_recieve_relief($array) { if(empty($array))    return NULL; $i = 0; $titles = array(); $values = array(); $query = "INSERT INTO hc_family_receive_relief "; foreach($array as $key => $value) { if($i == 0) { $titles[count($titles)] = "($key,"; $values[count($values)] = "('".$value."',"; } if($i < count($array) - 1 && $i > 0) { $titles[count($titles)] = "$key,"; $values[count($values)] = "'".$value."',"; } if($i == count($array) - 1) { $titles[count($titles)] = $key.") VALUES "; $values[count($values)] = "'".$value."')"; } $i++; }  foreach($titles as $tvalue) $query .= $tvalue;  foreach($values as $vvalue) $query .= $vvalue; echo $query; $qresult = mysql_query($query);  if(!$qresult)     return False; else return True; }   and this is the page that recive $_POST and pass it to function add_family_recieve_relief:  <? require_once('../db.php'); require_once('familyReliefAPI.php'); if($_POST['addfamilyrelief']) {   if(empty($_POST['hc_family_id']) || !is_numeric($_POST['hc_family_id']))       die('
خطأ في المعالجة , الرقم المميز للعائلة غير موجود !
');          $family_id = $_POST['hc_family_id'];          array_pop($_POST);   $addfrr = add_family_recieve_relief($_POST);   if(!$addfrr)        die('
مشكلة في الاضافة , الرجاء التأكد من المعلومات أو الاتصال
');     else {          //print_r($_POST);          } } ?>   also I make SET NAMES utf-8 query in the connection page to fix the character issues , but still not work ..  please HELP ME .. thanks  NOTE :  The query is getting true and insert all the values in table except the arabic field it leaves it empty !


How can i update the statecode of a lead which is converted.   I am trying to update statecode and countrycode of leads through dataloader. But i get records with errors "Cannot reference converted lead". I am curious to know that if there is any way to update those fields.


HP w2207h (HDMI screen) , HP 6235fr under UBUNTU 11.10 (Nvidia GT220):  After suspending for a long time, wakeup my PC with USB. Boots up but black screen.No screen since start of booting. The machine seems to be hung , but it is still working ... It is just blind.    Suspend/Resume doesn't solve the problem. Power On Reset of screen solves the problem. Problem doesn't exist with Windows 7 (dual boot).


LWC Shared Styles Standard imports not working

I am following the official guide here  "styles" is my LWC having shared CSS rules, as explained below: styles.js-meta.xml <?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">     <apiVersion>49.0</apiVersion>     <isExposed>false</isExposed> </LightningComponentBundle>  styles.css H1 {     color:red; }  "other" is the LWC which includes "styles" shared component. other.js-meta.xml <?xml version="1.0" encoding="UTF-8"?> <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">     <apiVersion>49.0</apiVersion>     <isExposed>false</isExposed> </LightningComponentBundle>  with other.js and other.html having default markup generated by SFDX plugin other.css tried to import the styles, as shown below @import 'c/styles';  Error on deploying other LWC is as follows: === Deploy Errors PROJECT PATH                               ERRORS                                                       ─────────────────────────────────────────  ──────────────────────────────────────────────────────────── force-app/main/default/lwc/other/other.js  No MODULE named markup://c:styles found : [markup://c:other]  I tried in namespace prefixed and nonprefixed orgs both by replacing the c/styles with "ns/styles" as well.


Is the Poynting vector non-zero when two magnets are placed on either side of a charged capacitor?

I charge up a parallel-plate capacitor, and put a bar magnet on either side, such that the magnetic field is perpendicular to the electric field.  S = E x B  Do photons start coming out of the capacitor?  If so, where does their energy come from?


I want to watch a file until a bit of text appears  I found this answer:   but when I tried it on ubuntu, it doesn't exit:  $ echo one > test.txt $ echo two >> test.txt $ echo three >> test.txt $ echo four >> test.txt $ cat test.txt | sed '/w/ q' one two $   works as expected.  however when I try to tail the file  $ tail -f test.txt | sed '/w/ q' one two   it never exits.  tail does not stop even though the pipe is broken.  Does anybody know how to make tail exit when sed exits?


Is it generally true that $\arcsin \theta + \arccos \theta = \frac{\pi}{2}$?

Verify that: $\arcsin \theta+\arccos \theta=\frac{\pi}{2}.$ (1)   How can one verify (1) when it is not generally true? We can rewrite (1) as      Verify that if $\sin u = \cos v$, then $u+v=\frac{\pi}{2}$.   What about $\sin \frac{2\pi}{3}$ and $\cos \frac{\pi}{6}$? $\sin \frac{2\pi}{3} = \cos \frac{\pi}{6}$, but $\frac{2\pi}{3}+\frac{\pi}{6} \neq \frac{\pi}{2}$.We may try to verify (1) as:  Let $\arcsin \theta=u$ and $\arccos \theta=v$, then $\sin u=\cos v = \theta.$ We can write   $$\sin(u+v)=\sin u \cos v+ \cos u \sin v,$$  which becomes   $$\sin(u+v)=\theta^2+ \cos u \sin v.$$  Now, $\cos u=\pm \sqrt{1-\theta^2}$, and $\sin v=\pm \sqrt{1-\theta^2}$. For $\cos u= \sqrt{1-\theta^2}$ and $\sin v= \sqrt{1-\theta^2}$, we have  $$\sin(u+v)= \theta^2+(1-\theta^2)=1,$$  $$\therefore u+v=\arcsin \theta + \arccos \theta = \arcsin(1)=\frac{\pi}{2}.$$ But $\arcsin(1)$ is also equal to $\frac{\pi}{2}+2n\pi, n \in \mathbb{Z}.$ What about that? And what about the cases when $\cos u = -\sqrt{1-\theta^2}$ and $\sin u = \sqrt{1-\theta^2}$ and the other way? Then $\sin(u+v)=2\theta^2-1=1\ \mbox{iff}\ \theta =\pm 1.$   I don't know where I am making a mistake, what assumptions are wrong, or where my reasoning goes wrong. Please help.


Number of emitted electrons by photoelectric effect

I search in some post, and say that the number $N$ of emitted electrons is  $$N=\frac{IA}{hf}=\frac{P}{hf}$$  but $f$ is for fixed incident frequency  what happens if I want to calculate $N$ for a range of frequency for example between $f1$ and $f2$ ? I think that the general formula for $N$ is   $$N=\frac{IA}{h}\int_{f1}^{f2}\frac{df}{f}$$  Is it correct?


There are many badges that are received after, especially the less common ones, like the ones except Teacher, Student, Scholar etc.  Do they require moderators approval? But, that would not scale, would it? There are hundreds and hundreds of badges and would be too much work for moderators to approve all of those. Or is there some kind of peer approval process?  I'd have expected that badges could be awarded immediately when an achievement happens?   What process awards badges to users, why does it take so long? Is there a manual approval process for badges?


Forced lowercase bibliography with biblatex in apa-style

Even when my .bib file has uppercase words, I can not preserve them when generating de bibliography page.  For example:  \documentclass{book} \usepackage{csquotes} \usepackage[style=apa, backend=biber]{biblatex} \DeclareLanguageMapping{english}{english-apa} \bibliography{mybib}  \begin{document}     This is a sample text of \textcite{Book1} and \parencite{Book2}     \printbibliography \end{document}   with this mybib.bib file:  @book{Book1,     author = {First, Author},     title = {The First Title. Four uppercase words},     year = {1234}} @book{Book2,     author = {Second, Author},     title = {This title is AWESOME},     year = {2050}}   generates this bibliography:   How can I preserve my uppercase words?


using jquery for a button with a "." in the id

Hi guys ive got a button with jquery like this :   <html> <button id = "index.php"> </button>  </html>  <script> $('#index.php');').click(function(){ //stuff  }); </script>   however it seems that the id with a "." isnt accepted by jquery - is there a way to make it work?


Can C# generics have a specific base type?

Is it possible for a generic interface's type to be based on a specific parent class?  For example:  public interface IGenericFace<T : BaseClass> { }   Obviously the above code doesn't work but if it did, what I'm trying to tell the compiler is that T must be a sub-class of BaseClass.  Can that be done, are there plans for it, etc.?  I think it would be useful in terms of a specific project, making sure a generic interface/class isn't used with unintended type(s) at compile time.  Or also to sort of self-document: show what kind of type is intended.


Create bootable USB drive on Mac for Windows

I need to create a bootable USB drive for Ubuntu for a Windows machine, but I got a Mac... How can I make a bootable USB on a Mac, for a Windows machine?


Positioning things with respect to axis of a pgfplot in tikz

I have a figure on an axis and want to add descriptive text and signs to it with tikz. However, I need to do the alignment of the text with respect to the axis by visually observing if it matches. Is there a way to tell tikz to use the alignment with respect to the axis. I tried using (axis cs:x,y) command but did not help.   \documentclass{standalone} \usepackage{pgfplots} \begin{document}     \begin{tikzpicture}         \begin{axis}[             width=10cm,             height=4cm,             x axis line style={-stealth},             y axis line style={-stealth},             title={this is my title},             xticklabels={},             ymax = 1.5, xmax=7.5,             axis lines*=center,             ytick={1},             xlabel={f},             ylabel={H(f)},             xlabel near ticks,             ylabel near ticks,             every axis x label/.style={at={(current axis.right of origin)},anchor=west},             every axis y label/.style={at={(ticklabel* cs:1.05)},anchor=south}             ]             \addplot+[thick,mark=none,const plot]             coordinates             {(0,0) (4,1) (5,0) (7,0)};         \end{axis}         % I want this to be aligned with axis' 4 and 5         \draw[<->] (4.0,-0.3) -- (5.0,-0.3) \end{tikzpicture} \end{document}


How is the Box-Cox transformation valid?

The Box-Cox transformation transforms our data into a normal distribution.  How is that even a proper technique? What if our data didn't come from a normal distribution? How could someone just blindly apply the Box-Cox transformation?  To re-phrase: why apply the Box-Cox transformation if our data isn't normally distributed?  Is the Box-Cox transformation used when our data SHOULD be normally distributed, but isn't?


Show that there is no rational number whose square is $2$ or $8$