16.04.1 is out but still “No new release found”

Ubuntu 16.04.1 was released on 21st July 2016. According to      Today is also the day that users of Ubuntu 14.04 LTS (Trusty Tahr) are notified that a new Ubuntu release is ready.   I am still getting "No new release found" when trying to update my 14.04.4 desktop and a 14.04.4 server via the Software Updater and do-release-upgrade. Both have been set to notify me when new LTS versions are available. The 16.04.1 release is available from the mirror I am using. I switched to the default mirrors on the desktop but the message was the same.  Why is this the case and what can I do to fix it?


Is it possible to mysqldump a subset of a database required to reproduce a query?

Background  I would like to provide the subset of my database required to reproduce a select query. My goal is to make my computational workflow reproducible (as in ).  Question  Is there a way that I can incorporate this select statement into a script that dumps the queried data into a new database, such that the database could be installed on a new mysql server, and the statement would work with the new database. The new database should not contain records in addition to those that have been used in the query.  Update: For clarification, I am not interested in a csv dump of query results. What I need to be able to do is to dump the database subset so that it can be installed on another machine, and then the query itself can be reproducible (and modifiable with respect to the same dataset).   Example  For example, my analysis might query a subset of data that requires records from multiple (in this example 3) tables:  select table1.id, table1.level, table2.name, table2.level         from table1 join table2 on table1.id = table2.table1_id         join table3 on table3.id = table2.table3_id        where table3.name in ('fee', 'fi', 'fo', 'fum');


How to get a table in the Correct Place with LaTeX

Hi I am using LaTeX through no choice of my own. I thought I had just gotten used to it and then it starts messing around with me. My out put is to a PDF document.  I am trying to add 6 tables to the Appendix of my Document here is my code.  \section{Appendix}  \subsection{Project 1} \begin{table}[h!] \centering \renewcommand{\arraystretch}{1.5} \caption{Description of the Project} \begin{tabular}{p{4cm}|p{4cm}}    What Is the Size of the Project? & Large \\    Who are the Stakeholders Involved? &     \begin{enumerate}     \item Business Analyst     \item Business Owner     \item Developer \end{enumerate}\\        What Is the Main Form of Communication for the Team? & Verbal \\     Is the Team Located Across Multiple Sites? & Yes \\     Will the Project be Handed Over to a Different Team Upon Completion? & No \\     What Stage will the Project be in Upon Completion? & Next Stage \\ \end{tabular}   \label{tab:myfirsttable} \end{table}  \begin{table}[h!] \centering \renewcommand{\arraystretch}{1.5} \caption{Recommended Portfolio} \begin{tabular}{p{4cm}|p{4cm}}   Maintained Portfolio & Recommended Portfolio \\   \hline     \end{tabular}   \label{tab:myfirsttable} \end{table}  \subsection{Protect 2} \begin{table}[h!] \centering \renewcommand{\arraystretch}{1.5}   \caption{Description of the Project} \begin{tabular}{p{4cm}|p{4cm}}   What Is the Size of the Project? & Small \\   Who are the Stakeholders Involved? &    \begin{enumerate}     \item Database Modeller     \item Business Analyst     \item Business Owner     \item Scrum Master     \item Tester     \item Developer   \end{enumerate}\\     What Is the Main Form of Communication for the Team? & Verbal \\     Is the Team Located Across Multiple Sites? & No \\     Will the Project be Handed Over to a Different Team Upon Completion? & No \\     What Stage will the Project be in Upon Completion? & Next Stage \\   \end{tabular}   \label{tab:hresult} \end{table}   \begin{table}[h!]  \centering  \renewcommand{\arraystretch}{1.5}  \caption{Recommended Portfolio}  \begin{tabular}{p{4cm}|p{4cm}}     Maintained Portfolio & Recommended Portfolio \\     \hline       \end{tabular}     \label{tab:myfirsttable} \end{table}  \bibliographystyle{abbrv} \bibliography{paper}  \end{document}   There is a 3rd Section that is laid out the same. The second and third table are created in the middle of my references. I have tried going through each of the tables line by line to debug it but they seem to break as I add in rows. I have tried using [h], [H] and [h!] but none of these have helped. In fact [H] broke the first 2 table also. The tables are in my TeX file in the place that I want them to generate.


Can I combine extension tubes and macro filters at once to give better macros?

I don't have a dSLR at the moment but am planning to buy one. Wanted to know the cheaper methods to shoot in macro. Will using macro filters and extension tubes concurrently increase the efficiency of the shot?


Should I begin to study quantum mechanics or wait until I have a stronger base on easier topics?

I apologize if this is off topic since it does not relate directly to the study of physics, but I could not think of a better place to ask.  I am a high school student graduating in a few days and have recently developed an interest in quantum mechanics. I began to study physics about one and a half years ago and calculus two years ago, and I feel confident about my abilities in integral and vector calculus (at a typical college Calc I–III level), differential equations, mathematical problem solving, and some set theory. I have been introduced to quantum behavior, particle physics, and nuclear physics, but none of these were delivered with a heavy focus on mathematics. Quantum physics, however, caught my attention as a future field of study due to its bizarre nature and inquisitive mathematical models.  Without prior knowledge of more difficult topics, I am concerned that attempting to study quantum mechanics will only provide entertainment rather than benefit my college career. I have selected a few books (Griffiths, Sakurai, Feynman, etc.) of which I will choose one to read over the summer of this year and onto college if I determine to do this.  Should I follow these plans without first strengthening my knowledge in other fields of physics and mathematics, as I dive directly into the topic? Or should I wait until I am more experienced in other fields before discouraging myself with the difficulty of quantum mechanics? If so, what areas of physics or mathematics would you recommend as prerequisites to the topic?


Show that $p$ divide $\binom{p}{k}$ for all $0<k<p$ and $p$ prime.

I have to show that $(a+b)^p=a^p+b^p$ in $\mathbb Z/p\mathbb Z$ for $p$ prime. In other word that $p$ divide $\binom{p}{k}$ for $0<k<p$. I tryied many thing but impossible to conclude algebraically. But can I do like this: $$\binom{p}{k}=\frac{p!}{k!(p-k)!}=\frac{(p-k+1)(p-k+2)... (p-1)p}{k!}\in\mathbb N$$ Since $p$ is prime, not in $1\leq i\leq k$ divide $p$ and thus $\frac{(p-k+1)...(p-1)}{k!}\in\mathbb N$ therefore $$\frac{(p-k+1)(p-k+2)... (p-1)p}{k!}=mp$$ for $m\in\mathbb N$ and thus $p$ divide $\binom{p}{k}$.  Do you think it work ? The problem is i'm not sure that (if $m<n$) $$\frac{a_1\cdot ...\cdot a_n}{b_1\cdot ...\cdot b_m}\in\mathbb N\implies \forall a_i, \exists b_j: b_j\mid a_i.$$  What do you think ?


How do you earn reputation when trying to start on Stack Overflow? Typically, I'm programming in C# at work, using and consuming SO threads several times a day.  I'd be able to up/down many answers each time I use SO but can't without reputation. Unfortunately I won't ask new questions since almost anything I wonder has been answered already. And I won't answer questions since almost anything I would answer has been told already.  I really want to participate but don't really know how. Please tell me how to do it, old lads!


Understanding that there are infinitely many primes of form $4n+3$

I read the proof of, that there are infinitely many primes of form $4n+3$ and it goes :     Proof. In anticipation of a contradiction, let us assume that there exist only finitely many primes of the form $4n+3$; call them $q_1,q_2,\ldots ,q_s$. Consider the positive integer $$N=4q_1q_2\cdots q_s -1 = 4(q_1q_2\cdots q_s -1)+3$$ and let $N=r_1r_2\cdots r_t$ be its prime factorization. Because $N$ is an odd integer, we have $r_k\ne 2$ for all $k$, so that each $r_k$ is either of the form $4n+1$ or $4n+3$. By the lemma, the product of any number of primes of the form $4n+1$ is again an integer of this type. For $N$ to take the form $4n+3$, as it clearly does, $N$ must contain at least one prime factor $r_i$ of the form $4n+3$. But $r_i$ cannot be found among the listing $q_1,q_2,\ldots ,q_s$, for this would lead to the contradiction that $r_i \mid 1$. The only possible conclusion is that there are infinitely many primes of the form $4n+3$.   $q_1,q_2,\ldots ,q_s$ I need an explanation from last three line i.e. .   They said that:   $q_{1},q_{2}, \cdots ,q_{s}$ is of the form $4n+3$ (let). $r_{i}$ is of form $4n+3$ (at least one). $r_{i}$ cannot be found in listing $q_{1},q_{2}, \cdots ,q_{s}$   And lemma they used is:  The product of two or more integers of the form $4n+1$ is of the same form.  My problems:   If above two holds then why $r_{i}$ cannot be found in listing $q_{1},q_{2}, \cdots ,q_{s}$. And how $r_{i}|1$ If all this holds then why $q's$ are infinite.   Please give the most elementary explanation as you can, any help worth a lot to me, Thanks.  (I took this from David M. Burton book).


I need to add 2 empty person objects to array and after populate it. Chrome complains TypeError: object is not a function     at new <anonymous>. What's wrong?  $scope.person = {         firstName : '',         lastName : '',         dateOfBirth : '',         sex : '',         nationality : ''     };     $scope.persons = [];     $scope.persons.push(new $scope.person); // error     $scope.persons.push(new $scope.person);


Show that $\{f_n^2\}\rightarrow f^2$ in measure.

From Royden's Analysis, 4th Edition, Chapter 5, section 2 Problem 7:     Let $E$ have finite measure, $\{f_{n}\}\rightarrow f$ in measure on $E$ and $g$     be a measurable function on $E$  that is finite a.e. on $E$. Prove that $\{f_{n}\cdot g\}\rightarrow f\cdot g$ in measure, and use this to show that $\{f_{n}^{2}\}\rightarrow f^{2}$ in measure.   The first part is complete, but I am having issues with the squared sequence. I understand that I can get a subsequence, $\{f_{n_k}\}\rightarrow f$ pointwise almost everywhere on $E$. Is this helpful for this problem? So, even with this subsequence, I don't have that $f$ is finite almost everywhere, so I can't really use the previous portion of the problem.  Any insight at all would be great! Thanks.


Is the "no kills" ending the same as the "low chaos" ending?

I killed five guards in the first chapter (the prison level), but since then (I'm already in Chapter 3) I have had no kills. If I keep going and make sure to maintain low chaos, will I still be able to get the same ending as if I had no kills in the first chapter?  I realize there is a question that  in the game, but I'm trying to get an answer to this question without reading any spoilers.


For positive real numbers $a,b,c$ with $abc = 8$ prove that   $$ \frac{a^2}{\sqrt{(1+a^3)(1+b^3)}} + \frac{b^2}{\sqrt{(1+b^3)(1+c^3)}} + \frac{c^2}{\sqrt{(1+c^3)(1+a^3)}} \geq \frac{4}{3}. $$   Can we prove this by Cauchy-Schwarz or Jensen's inequality? If not how?


Is there a way to make a link open in a new tab or window in SE?

Gads, just typing this question I see a lot of negative scores for it.    But it really is a valid question.    It is easy in HTML to add the target="_blank" to the link.  My reason for asking is that when I use links in my answers, especially when explaining FCC rules in  I always make sure that the concept is self-explanatory without clicking on the link, but if someone does, then they might spend some time in that referenced official document and forget to come back and read the rest of my answers, which are sometimes a clever spin on the rules document.  I am not going to try to hack SE, so instead I am just asking the question.  Is there a way I don't know about, or can this feature be added?


I believe this is a syntax question. I'm sorry if this is the wrong tag.  Which is correct?   Through my education, volunteer work, and work experience, I have truly realized Tagore was right, service is joy. Through my education, volunteer work, and work experience, I have truly realized that Tagore was right, service is joy.   Cheers


Why is information indestructible in quantum mechanics?


I can not get the correct result rendered by backbonejs

Here's the result what I need to get. These images will be used for js slide.

   So I used the code followed to render DOM. But it doesn't work correctly.      `<ul id="show" class="pic"> </ul>       `


What happened to Finn's blaster at Maz Kanata's?

When entering, we see that Finn has the blaster that was given to him earlier:    However, when the fighting begins, Finn tells Maz that he needs a weapon and no longer has his blaster with him.  It seems unlikely to have been lost in the first shots, given how it is secured across his body.  Also, Han and Chewie didn't lose their weapons and they are arguably less secure.  Now, when the team gets to the Resistance base, Finn again has his blaster:    So where was this blaster during the battle?


When I tried to access  page, It get redirect to  page. So my question is : What happen to Cross Validated faq page.


I was wondering if "homework" is countable? I remember it is an uncountable noun when I learned English in middle school.   Suppose now I would like to ask my teacher to hand back my graded "homeworks" of last three times. How shall I ask him?


I wish to connect my Google Server in one room to a switch in another room using ethernet cat 5e cable. What is the maximum cable length I can use between both nodes to avoid high RTT?


$n$ degree polynomial $p(k)=\frac{k}{k+1}$ for integral $k=0$ to $n$.

Here's the problem statement: Given an $n$ degree polynomial $p(k)$ such that:  $$p(k)=\frac{k}{k+1}$$  for all integer $k$ from $0$ to $n$, determine $p(n+1)$. Any ideas on how to solve it?


Why 'The' always comes in front of 'The United Kingdom' but the same does not always apply to 'Great Britain'?


How can I get the HTML source of a given web address in C#?


"Open With Other Application" on Desktop not working as expected

The current Ubuntu 20.04 behavior for "Open With Other Application" seems to work differently on the Desktop compared to Files/Nautilus. Example: I configured VS Code IDE to be the default app for text/plain mime type (~/.config/mimeapps.list): [Default Applications] text/plain=code.desktop  Now, a right click -> Open with Other Application on a file foo.bat from the Desktop opens gedit without prompt, Open does not have any effect. If I choose Show in Files, and do the same sequence, it works as expected - Open will directly open in VS Code, Open With asks for the application. I don't really understand this behavior. How can I make Ubuntu behave the same way, regardless the environment, where the file is executed? PS:  This issue is reproducible with other applications.


Python script for converting Esri shapefile into GeoJSON using Python and GDAL/OGR?

I know Esri shapefile can be converted into GeoJSON using Python and GDAL/OGR. Following command works on the terminal.  ogr2ogr -f GeoJSON -t_srs crs:84 outfile.geojson inputfile.shp   I want to do the conversion in a python script so that I can convert multiple files inside a loop. And combine it in my pipeline script.  Is there any way to do this conversion in python script?  Can this terminal command be used in a python script?


Why are Delphi objects assigned even after calling .Free?

In Delphi, why does the Assigned() function still return True after I call the destructor?  The below example code will write "sl is still assigned" to the console.  However, I can call FreeAndNil(sl); and it won't be assigned.  I've been programming in Delphi for a while, but this never made sense to me.  Can someone explain?  program Project1; {$APPTYPE CONSOLE} uses SysUtils, Classes;  var   sl : TStringList;  begin   sl := TStringList.Create;   sl.Free;   if Assigned(sl) then     WriteLn('sl is still assigned')   else     WriteLn('sl is not assigned'); end.   I tried comparing the VCL operations... FreeAndNil is short and sweet and makes sense:  procedure FreeAndNil(var Obj); var   P: TObject; begin   P := TObject(Obj);   TObject(Obj) := nil;  // clear the reference before destroying the object   P.Free; end;   But TObject.Free is in mysterious assembler, which I don't understand:  procedure TObject.Free; asm         TEST    EAX,EAX         JE      @@exit         MOV     ECX,[EAX]         MOV     DL,1         CALL    dword ptr [ECX].vmtDestroy @@exit: end;


Grand Theft Auto Online exists on five different platforms: XBox 360, PS3, XBox One, PS4, and PC. Do any of these play on the same servers, allowing people on differing platforms to play together?


How to downgrade kernel after bad update (16.04)

Recent upgrades to the Ubuntu 16.04 kernel (4.4.0-89 and -91) failed badly on my laptop. Happily, I've got the previous, working version still installed (4.4.0-57).  For now I've got Grub configured to show me a menu, and I'm manually selecting -57 on boot, but this seems fragile, likely to break on a future sudo apt upgrade.  I think I want:   To remove -89 and -91, as they're not doing me any good. To make -57 the default for Grub, in a way that will persist through upgrades. To ensure the -57 stays installed, even if I install later kernel upgrade To be able to easily try later kernel updates, but revert back to -57 if it fails. My primary concern is -57 being automatically removed. If I find a functioning later update, an easy path to return to undo all of this and return to following kernel updates.   Trying to remove -91 with sudo apt remove linux-image-4.4.0-91-genericrequires me to remove linux-generic and linux-headers-generic. That seems Bad, so I haven't tried it.  I can find a variety of questions about the general problem, but none seem to address all of my goals, and most are old enough that I don't think they apply any more.  What's the best way to do this?  Addendum: This was flagged as a duplicate of  . That answer might address a portion of my question, but does not address the bigger picture.  Broadly, the issue is that the kernel is handled in an unusual way. It's installed via linux-generic, which is nothing but a dependency on linux-image-generic and linux-image-headers. Those in turn are only dependencies on linux-linux-image-VERSION-generic and headers-VERSION-generic, packages noteworthy for baking the version number into the package name (presumably to make it easy to install multiple in parallel).  Specifically not addressed in that answer are:   Does not address how to remove -89 and -91. Does not address how to make -57 the default for Grub, even if I install later updates. Does not address how to ensure that -57 stays installed, even if I install later updates. Even if the answer is to hold one or more packages, given the several packages involved, which ones would I hold? If it's a matter of holding linux-generic, how do I downgrade it first?


Saving node's fields without node itself in Drupal 8

So in drupal 7 we can update node fields without saving the node itself via field_attach_update. Here the link :   Is there a DRUPAL 8 version of this? example please.


What is the difference between "who packed my chute?" and "who has packed my chute"?

I really can't feel difference between past simple tense and present perfect in that case. Example is the excerpt of dialogue from the Point Break film:     -This is a ceremony we always do at the end   of the summer. One last speed star.   By the way, you might wanna pull   that orange thing sometime.   The life you save may be your own.      -So, uh...who packed my Chute?   What would it have changed in meaning, if the protagonist had said "who has packed my Chute"?


Symmetric Matrix , Eigenvectors are not orthogonal to the same eigenvalue.

I know that the symmetric matrix has orthogonal eigenvectors corresponding eigenvalues. Also, the eigenvectors from the same eigenvalue are linearly independent.  I need an example of symmetric matrix such that the eigenvectors from the same eigenvalue are not orthogonal.  Also, I know that the eigenvalues of the symmetric matrix are real. But , this statement true iff the entries are real numbers.Right? Since the matrix 2x2 $$A=\begin{bmatrix} 1 &i \\  i &1  \end{bmatrix}$$  has non real eigenvalues


What should I do about a question where the OP has quoted an answer in the question but not accepted it?

I came across  question, which is fairly old, has 2 very good answers (with a good amount of up-votes), and the OP has stated in his question that both of the answers are acceptable. Yet they have not accepted either and simply left a note in their original question about the "correct" answer.  Is there anything that needs to be looked at here? Should I comment that the OP should accept an answer if they have one? Should I flag it?


Laptop model and make compatibility with ubuntu? HP ENVY x360 (Convertible 13-ag0xxx )

I want to know if my laptop will run latest ubuntu version flawlessly. please help?  HP ENVY x360 Convertible 13-ag0xxx


How many ways are there to arrange $n$ married couples in a line so that a husband and his wife are not together?

There are $2n$ people. There are $2n!$ ways to arrange them.  The number of ways to arrange them such that couples are always together is $n! \cdot 2^n$  How do you calculate the number of ways to arrange them such that no couples are together?


OpenLayers 3 / Cesium polygon projection issue

I am using OpenLayers 3 and Cesium (via ol3-cesium).  I have created a few rectangles (using a MultiPolygon) stacked on top of each other. Whereas in OpenLayers the rendering (left) is as expected, the output in Cesium (right) is not.    I understand that a rectangle in one projection will not be a rectangle in the other. However, I would expect the software to appropriately project the rectangle.  In this case, what I was expecting is for the Cesium output not to have any gaps between rectangles. On the other hand, the vertices seem to be in the right coordinates, so these polygons are just following the shortest lines between vertices.  What defines which projection is a polygon based upon, and therefore which projection should apply to it? For these vertices, are the right polygons the left or the right ones?  And moreover, how do I get Cesium / ol3-cesium to render the polygons covering the same area as the equivalent polygons in the 2D map?  JSFiddle:


Macbook pro Mid-2012 not booting on battery. Not responding to power button

Macbook pro Mid-2012 - Keyboard not working (Space and Caps lock only works) - Doesn't switch on using battery, when I remove the battery connector from board and Plug on AC it boots. I had recently changed the HDD to SSD myself.


Klein-Gordon quantum relativistic equation negative energy

Interpretation of solutions with negative energies was such that charge, rather then probability, density was assumed. When inserting charge of a particle negative sign is then obviously due to charge.  How did the equation know this? Maybe it is a stupid question, but how did the equation know our convention regarding different kinds of charges?


Using multiple autogenerated longtables inside multicols environment

I have several longtables which are auto generated. Since they are not actually long or wide ones, it would be rather space saving for me if I could pack them in a multi column environment.   So, I tried something like this.  \documentclass{article}  \usepackage{longtable}  \usepackage{multicol}  \usepackage{filecontents}  \begin{document}  \begin{filecontents}{\jobname autotables.tex}   \begin{longtable}{|l|l|}      1&2\\     3&4   \end{longtable}   \begin{longtable}{|l|l|}      5&6\\     7&8   \end{longtable}   \begin{longtable}{|l|l|}      9&A\\     B&C   \end{longtable}   \begin{longtable}{|l|l|}      D&E\\     F&0   \end{longtable} \end{filecontents}  \begin{multicols}{4}   \input \jobname autotables.tex \end{multicols}  \end{document}   But this generates an error message like,      ! Package longtable Error: longtable not in 1-column   mode.   Indeed, the package documentation says,     longtable now issues an error if started in the scope of   \twocolumn, or the multicols environment.   So, looks like I am facing a stumbling block.   However, I am making this post with the hope that somebody could point me  to a solution.  Here are the facts and/or bottom lines,   The tables are auto generated and anything other than longtable can not be used. The tables are always inside a single file, and the number of tables is not fixed. Post editing the auto generated file is not an option.   UPDATE 1  Tried the code at . Unfortunately, the trick works when there is only one longtable inside multicols.   See the following code where the first case works but the second one does not.  \documentclass{article}  \usepackage{longtable}  \usepackage{multicol}  \usepackage{filecontents}  \makeatletter \newsavebox\ltmcbox \def\putdbtables#1{\setbox\ltmcbox\vbox{     \makeatletter\col@number\@ne     \input {#1}     \unskip     \unpenalty     \unpenalty}     \unvbox\ltmcbox} \makeatother  \begin{document}  \begin{filecontents}{\jobname onetables.tex}   \begin{longtable}{|l|l|}      1&2\\     3&4   \end{longtable} \end{filecontents}  \begin{filecontents}{\jobname twotables.tex}   \begin{longtable}{|l|l|}      1&2\\     3&4   \end{longtable}   \begin{longtable}{|l|l|}      5&6\\     7&8   \end{longtable} \end{filecontents}  % This will work \begin{multicols}{4}   \putdbtables{\jobname onetables.tex} \end{multicols}  % This will generate an error \begin{multicols}{4}   \putdbtables{\jobname twotables.tex} \end{multicols}  \end{document}


demonstrate that if X is a connected metric space, then X is chained.

i need help to demonstrate the next proposition using the definition you are giving me:   A space $(X, d)$ is chained if for all $\epsilon> 0$ and each pair of points $x, y \in X$ there exist $x_{0}, ...., x_{n} \in X$ such that $x_{0}= x, x_{n}= y$ and $d (x_{i}, x_{i + 1}) <\epsilon$ for each $i <n$. Show that if $X$ is connected, then $X$ is chained.  I have a clear idea of how the demonstration is and i see it drawing pictures, but i don’t know how to write it, i would appreciate your help very much please


Could someone help me know what is wrong with my laptop? I failed to update or upgrade with my terminal or update manager. The system in terminal returns an error of unable to fetch some archives after trying to upgrade.


How can I make an enumerate list start at something other than 1?

Sometimes, I want to have enumerate lists in LaTeX start at other than the first value (1, a, i, etc.) How can I make an enumerate list start at an arbitrary value?


CheckBox disrupt my sound settings How I can solve this problem

How  restart ubuntu 16.04 sound settings?


Airside transit visa in Heathrow airport

I am going to Basel via London with BA on 11-11-2017. I have a valid UK visa valid from 28-11-2017 for 6 months. I purchased a direct ticket Hyderabad to London and London to Basel with BA. Both arrival and departure is at Terminal 5. The layover period is 21/2 hours.   Do I require a transit visa?


Deriving the formula of number of geometrical isomers in symmetric polyenes

For example, if we take the case of Hexa-2.4-diene we have 3 isomers which will have cis-cis, trans-trans and cis-trans arrangements at the two double bonds present. The aim is to get a formula for the number of geometrical isomers of a symmetric polyene with n double bonds, when n is odd and when it is even.  I observed that cis-trans and trans-cis would mean the same thing for two double bonds at same position from the two sides. When I try to think what's going to happen after this it just gets too overwhelming because I think that one would have to consider a lot of cases.  I also read  post but it does not seem to help.  Edit- The answer is-   $2^{n-1}+2^{\frac{n-1}{2}}$ ; when $n$ is odd. $2^{n-1}+2^{\frac{n}{2}-1}$ ; when $n$ is even.


How do I scale a skeleton down with out affecting the animation time + the location of the skeleton

Basically what I want to do is scale a skeleton down. The reason for this is that I'm ripping a model from another game and I want to use it in Unity. When the model is ripped from the other game, it is way too big for unity and has to be scaled down in order for it to even show up on the screen.  This is my model. It has a walking animation.    Now I want to scale the model down from it's original scale to 0.2 by 0.2 by 0.2, I scale the skeleton down so that the mesh goes with it.   Now I'll have to apply the scaling, so that it's the smaller scale is the default one, instead of the big one.   As soon as I apply it, the model moves away from it's original location, and the animation is all messed up, it goes much faster to it's walking destination because he's smaller.  How do I avoid the skeleton, and most importantly, the animation from messing all up?


Practical differences between "do {...} while (0)" and "{...} ((void)0)" in macros?

It's common practice in C to use:  #define FOO() do { /* body */ } while (0)   While this is fine, it's also possible to do:  #define FOO() { /* body */ }((void)0)     {...}((void)0) has many of the same benefits: you can't accidentally merge logic, and a ; is required at the end of the line, so odd expressions like this don't go by un-noticed: FOO() else {...}.  The only difference I've noticed is it means you need to use braces in if-statements.  if (a)     FOO(); else     BAR();   Must be written as:  if (a) {     FOO(); } else {     BAR(); }   Other then this quirk, it seems to work well, preventing the same kinds of problems do/while method is typically used for.  Are there any significant differences between the 2 methods?  Said differently, if you see a code-base using {...}((void)0), are practical reasons to switch to using do{..}while(0), besides the one difference already noted?


I want to get value of div attribute. Like I want to know whether the div is "display:block;" or "display:none" at the time of page load. If "display:block;" then it will be "display:block;" after the page load again if not then "display:none". Can anyone help me with jquery method or code?


How can I emulate middle click in Windows on a touchpad?

On my laptop, the touchpad drivers for it allowed me to emulate middle click by clicking both the left and right mouse buttons at the same time. I'd like to have the same feature on with my netbook's touchpad. How might I go about doing this?


Do you have recommendations for books to self-teach Applied Statistics at the graduate level?

I took several statistics courses in college but I found that my education was very theory driven.  I was wondering if any of you had a text in Applied Statistics (at the graduate level) that you recommend or have had good experience with.


How to insert a figure between two texts?

I'd like to create something similar to what is give below: text on either side of a vertically centred image:


"There is an apple and an orange" or "there are an apple and an orange"?

There is an apple and an orange on the table.    There are an apple and an orange on the table.      Which is grammatical?


I want to set default a specific program for open ANY files absolutely ANY(*.*), any extension, any mime type. ABSOLUTELY ALL  I build a python program to automated choose the program for any file. the app-chooser.py content:  #!/usr/bin/python import sys, os, os.path filename = sys.argv[1]; extension = os.path.splitext(filename)[1];  if extension == "txt":   os.system("gedit " + filename);  if extension == "mp4":   os.system("vlc " + filename);  if extension == "html":   os.system("opera " + filename);  if extension == ".py":   os.system("python " + filename);  if extension == ".sh":   os.system("bash " + filename);  if extension == ".exe":   os.system("wine " + filename);  exit()   The app-chooser.py are compiled in a standalone linux executable, located in "/usr/bin/app-chooser".


Can subject and verb come after the rest of the sentence?

At times, during commentary, commentators speak sentences like "Playing well, Victor is", "A great player, Steven was".


How many recipients can i add in email template alert?

Could you please clarify my below queries on email alert which we have under workflow   How many recipients can i add under email alert? Can i add group emailID (Eg. Supportmembersgroup@yahoo.com) which contains more than 50 recipients.   In Cc also I need to add more than 10 recipients, is email alert will work for this functionality Or I should go with apex class?


How can I get the current working directory?

I want to have a script that takes the current working directory to a variable. The section that needs the directory is like this dir = pwd. It just prints pwd how do I get the current working directory into a variable?


"She will be visiting" vs. "she will visit"

When she goes to Mexico, she will be visiting Chichen Itza. When she goes to Mexico, she will visit Chichen Itza.  Is there a particular difference in meaning, or it is just the matter of style?


Change my Apple ID email address on iCloud account

I had to make a new email address for my new Apple ID since I forgot my previous Apple ID password and couldn't receive a verification email.  Now that I have my new Apple ID and password, my iPhone 4s still shows my old Apple ID. How can I change it so that my new Apple ID shows when I wish to download anything?  My iCloud account still has my old Apple ID and is in grey; so I can't change it! I don't want to delete my old iCloud account.


Please clarify the use of "=>" in MVC Razor syntax?

Please clarify the use of => in MVC Razor. For example, in the context of a statement such as:  @Html.LabelFor(m => m.AnswerText)


Is there a keyboard shortcut to shut down OSX?

Is there a keyboard shortcut to shut down OSX 10.10.1?


In Linux, what would be the best way to recursively ZIP multiple directories at once?

I have a directory, /dir, and it is full of other directories with no common naming scheme. So /dir/EqcWTG /dir/SomeDirectoryName /dir/3435346 and so forth.  I would like to turn each one of these directories into a zip file. So basically I want to run $ zip -r directoryname.zip directoryname on every directory in $(pwd).  What would be the easiest way to accomplish this?


how can I prevent starred subsections \subsection*{...} from being shown in the TOC of an amsart?  Thanks in advance!  Minimal Example (Mind: You have to compile it at least twice for the starred subsection to show up)  \documentclass{amsart}  \begin{document}     \tableofcontents     \section{Eins}     \subsection{Einseins}     \subsection*{Einszwei} \end{document}


Would darkness cast at 4th level be dispelled by Daylight?

Would a darkness cast at 4th level be dispelled by daylight?  The text suggests that the spell must be of higher than 3rd level, but I am unsure.     If any of this spell's area overlaps with an area of darkness created by a spell of 3rd level or lower, the spell that created the darkness is dispelled.


Should one use "an" or an "a" before an acronym beginning with the letter H?

Consider the sentence:      He offered to be an HSC.   vs:      He offered to be a HSC.   In the example above, HSC stands for Health Service Consultant. If one were saying the sentence aloud, one would say an HSC because an obviously proceeds the spoken letter H, but the H actually represents the word Health, at which point the sentence should perhaps read a HSC because one would obviously say a Health Service Consultant. If one considers what the letter H actually stands for, in a strange way, both versions could perhaps appear to be incorrect depending on whether the acronym is viewed by the reader solely as a contraction or as its real meaning.  I would surmise that an HSC would be the more correct grammar, but I'd like opinion.


Why are parts of my scene not visible after rendering?

This probably has already been asked, but I couldn't find it so     (there's only one camera in the scene)


I am trying to build automotive load dump circuitry to bench test my inverter design. I would like to know if anyone has any experience building something like this. I need to create a 172V spike that stays for 400ms.


Why JFET is called a voltage controlled device while BJT is called a current controlled device?

Why are JFET/FET called voltage controlled devices while BJTs are called current controlled devices. Both require a voltage to operate properly. In both an electric field is produced so what is the difference?  Now the question is that current is also generated due to voltage and still BJT is current controlled and FET voltage controlled.


Hey guys I was wondering if I can install Ubuntu 14.04 on my new HP Chromebook 11. I like the Chrome OS but I would prefer to have Ubuntu on it. I was reading online and somebody said that it only works with Intel and not ARM.


I have run into a problem which reads:  "Any finitely generated module $M$ over a commutative ring $R$ is Hopfian, i.e., any $R$-epimorphism from $M$ to itself is one-to one."  I think the problem could be associated with the following well-known fact:  "Let $R$ be a commutative ring, and $M$ be a finitely generated $R$-module. If $I$ is an ideal in $R$ with $M=IM$, then $(1-a)M=0$ for some $a\in I$."  I am stuck in finding the ideal $I$, and have no alternative try. Thanks for any help!


Possible Duplicate:             What is correct? The jury was divided or The jury were divided? I am told that the latter is accurate because all of the jury do not have the same opinion in the particular case. Then, how does the subject verb agreement fit in 'The jury is still out' ? I mean, 'The jury is out' would allude to a situation were the opinion on a matter is (are?) still divided.


How to block ads in Android applications?

Are there ways that attempt to block ads in applications? It seems that it should be theoretically possible, by blocking web requests to certain sites, for example.


I've recently been puzzled by a question that I hope you can help me figure out. I heard about Zeno's Paradoxes a while back, and I recently asked myself something which is similar but not quite the same.   Assume we have a car, or some object starting at rest with respect to some coordinate system. In order for this object to move its position, it has to gain first some velocity; however, this in turn requires some acceleration. Now, I know that force is all that is needed to accelerate some object because $F = ma$, but an applied force doesn't go from $0$ to something nonzero instantly, right? So there must be some other $dF/dt$ that depends on some other variable $G$, and that $G$ would also have some dependency $dG/dt$ on some other variable and so on:  \begin{align} dx/dt &= v \\ dv/dt &= F/m \\ dF/dt &= G \\ dG/dt &= H \\ \end{align}   how can there be motion if this system of ODEs can be made arbitrarily long? Since I am able to move objects, does that mean that the system of ODEs caps at some higher order derivative? If so, which one?


the self as agency is a brain function or a kind of solid entity, a soul?

Blockquote   Sense of agency From Wikipedia, the free encyclopedia The "sense of agency" (SA) refers to the subjective awareness that one is initiating, executing, and controlling one's own volitional actions in the world.[1] It is the pre-reflective awareness or implicit sense that it is I who is executing bodily movement(s) or thinking thoughts. In normal, non-pathological experience, the SA is tightly integrated with one's "sense of ownership" (SO), which is the pre-reflective awareness or implicit sense that one is the owner of an action, movement or thought. If someone else were to move your arm (while you remained passive) you would certainly have sensed that it were your arm that moved and thus a sense of ownership (SO) for that movement. However, you would not have felt that you were the author of the movement; you would not have a sense of agency (SA).[2]  Normally SA and SO are tightly integrated, such that while typing one has an enduring, embodied, and tacit sense that "my own fingers are doing the moving" (SO) and that "the typing movements are controlled (or volitionally directed) by me" (SA). In patients suffering from certain forms of pathological experience (i.e., schizophrenia) the integration of SA and SO may become disrupted in some manner. In this case, movements may be executed or thoughts made manifest, for which the schizophrenic patient has a sense of ownership, but not a sense of agency.  Regarding SA for both motor movements and thoughts, further distinctions may be found in both first-order (immediate, pre-reflective) experience[3] and higher-order (reflective or introspective) consciousness.[4] For example, while typing I have a sense of control and thus SA for the on-going action of typing; this is an example of SA in first-order experience which is immediate and prior to any explicit intellectual reflection upon the typing actions themselves. In this case, I am not focusing on the typing movements per se but rather, I am involved with the task at hand. If I'm subsequently asked if I just performed the action of typing, I can correctly attribute agency to myself. This is an example of a higher-order, reflective, conscious "attribution" of agency, which is a derivative notion stemming from the immediate, pre-reflective "sense" of agency.


Prove that $f\in L^1(A)\Leftrightarrow \sum_{n}^{\infty}m(\{ x\in A : f(x)\geq n \}) < \infty$

I'm stuck with some problem of my Integral Calculation in Several Variables course. The problem goes like this:     Let $A\subset \mathbb{R}$ be a measurable set with $m(A)<\infty$, and $f:A\longrightarrow [0,\infty)$ a Lebesgue-measurable function. Prove that:   $$f\in L^1(A)\Longleftrightarrow \sum_{n}^{\infty}m(\{ x\in A : f(x)\geq n \}) < \infty.$$   The notation I used is:   $m$ as the Lebesgue measure function $L^1(A)=\{ f:A\rightarrow \mathbb{\overline{R}} : \int_{A}|f|\,\mathrm{d}m<+\infty \}$   I've started defining the set $A=f^{-1}([0,\infty))$ as a numerable sum of disjoint measurable sets (because it's said it's measurable) $\sum^{\infty}_{k=0}\cup I_k$, being each $I_k$ the real interval $[k,k+1)$. I imagine I should come to some conclusion like that any unbounded (upper bound) sets of $f(x)$ with $(x\in A)$ have measure $0$.


Ubuntu 12.04 Precise only reboots does not SHUT-DOWN

Okay here's the question:  Ubuntu 12.04 Precise will not shut-down it just Reboots again!  Its as simple as that. I have tried every command out there and not a single one of these commands works in grub or Ctrl + Alt + T or any other method suggested.   sudo shutdown -p now <-This does not work Type in terminal:   sudo -i (to get a root shell, sudo gedit is not recommended) gedit /etc/default/grub   Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"   Change this to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force" Save the file and close the file. Finally, in terminal: update-grub exit (to end the root shell) <-This does not work  sudo poweroff <-This does not work alt + F2 and type gksudo poweroff <-This does not work Code:   sudo gedit /etc/default/grub   --> remove quiet splash, then :  sudo update-grub   before trying to shut down again, run:  sudo apt-get install --reinstall ubuntu-desktop sudo dpkg-reconfigure -phigh -a  <-This does not work  halt or shutdown -h now <-This does not work sudo init 0 <-This does not work acpi=norq added to grub <-This does not work Typing shutdown or restart in Dash Home <-This does not work sudo shutdown -h 0 <-This does not work sudo halt <-This does not work sudo shutdown -h 0 <-This does not work   So lets try to figure it out together, lets solve it since no updates are coming in to fix it!


Does $f(x)\,dx$ denote multiplication of $f(x)$ by $dx$?

In the integral form $\int \! f(x) \, \mathrm{d}x$ does $f(x)\,\mathrm{d}x$ can be seen as a multiplication of $f(x)$ and $\mathrm{d}x$?


Should I worry about an Amazon AWS doomsday scenario?

Currently our system runs entirely inside AWS. We do rolling snapshots of our EBS and often practice running restores.  What keeps me up at night is having all our eggs in one basket. Here are the scenario's:   Our Amazon zone has some massive event that destroys the data centre Someone gains access to our AWS account, terminates our instances and deletes all our snapshots   To mitigate these risks I'm thinking about moving snapshots periodically to another AWS account (with different credentials) in another region.  My question is this, is this an adequate level of precaution or should I be looking to offsite backups that are completely removed from Amazon?


What happens to the swap partition after upgrading to Ubuntu 17.04

Will the swap partition be utilized to become part of an ext4 filesystem? If not, how will the swap space be utilized?


Applying for a UK visa from a Schengen country as non-resident

I want to invite my grandfather from Pakistan to Europe (he has positive visa history for Schengen). As you may know most of Pakistanis living in the west reside in the UK and I would like to give him the opportunity to visit our family there.  Can he apply for a UK visa whilst being a non-resident of a Schengen country? We would like to use the service of a certified visa agent here in a Germany because the processing times are much better than in Pakistan.


I've tried so many things on so many forums and just can't get this to work. When I try to start steam it gives me the missing libGL.so.1 error then says "can't load steam ui". Running Ubuntu 14.04 64 with an amd 280x.


No two identical ranks together in a standard deck of cards

What is the probability that a shuffled standard deck of 52 cards has no two cards of the same rank together ?  I am unable to get a handle on this problem, and wonder whether there is an analytical solution ?


Show that $$\binom{n}{m}\le\left(\dfrac{en}{m}\right)^m$$ where $0<m\le n,m,n\in N^{+}$  My idea: since $$(\dfrac{n}{m}-\dfrac{m-1}{m})(\dfrac{n}{m}-\dfrac{m-2}{m})\cdots\dfrac{n}{m}\le\left(\dfrac{en}{m}\right)^m$$ $$\sum_{i=1}^{m}\ln{\left(\dfrac{n}{m}-\dfrac{m-i}{m}\right)}\le m\ln{\dfrac{en}{m}}$$  then I can't,Thank you


If a sample is normally distributed, does it mean a subsample is normally distributed, too?

Let's say I have sample of the size 800.000. All the test says it's normally distributed, and a fitted distribution looks very nice on the data. I take a subsample of it (like 10.000 records). Can I say they are normally distributed too? My intuition says they are, since the subsample is infered from a normal distribution, too. I take subsamples a lot of times, so I would not want to do the test every time. Thank you in advance!


Recovering the data from a failed WD My Book NAS drive

My Western Digital 500GB NAS drive (which is my main backup device) has recently broken. Windows can no longer use it as a network drive (using Map Network Drive), and the web-based control panel is INCREDIBLY sluggish, taking as much as 5 minutes to load a single page.  However, when it does load, it reports the Drive Status as OK, and has the correct disk usage values, which leads me to think the actual drive is OK, and it's the networking components that have failed.  I have checked the wires and router, and so it their isn't another point in the network causing the problem.  Is there any way to get the data back? It's a backup, so I still have about 80% of the data spread out across 3 computers (the only major loss being my music library, and I have the discs for a fair proportion of that).  However, it'd be much more convenient if I can get the data from the drive itself, as it is organised properly on the drive.


Linux "top" command: What are us, sy, ni, id, wa, hi, si and st (for CPU usage)?

When I issue top in Linux, I get a result similar to this:    One of the lines has CPU usage information represented like this:  Cpu(s): 87.3%us,  1.2%sy,  0.0%ni, 27.6%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st   While I know the definitions of each of them (far below), I don't understand what these tasks exactly mean.   hi - what does servicing hardware interrupts mean? si - what does servicing software interrupts mean? st - they say it's the "CPU time in involuntary wait by the virtual CPU while hypervisor is servicing another processor (or) % CPU time stolen from a virtual machine".   But what does it actually mean? Can someone be more clear?  I listed all of us, sy, ni, etc, because it could help others searching for the same. This information is not in the man pages.  us: user cpu time (or) % CPU time spent in user space sy: system cpu time (or) % CPU time spent in kernel space ni: user nice cpu time (or) % CPU time spent on low priority processes id: idle cpu time (or) % CPU time spent idle wa: io wait cpu time (or) % CPU time spent in wait (on disk) hi: hardware irq (or) % CPU time spent servicing/handling hardware interrupts si: software irq (or) % CPU time spent servicing/handling software interrupts st: steal time - - % CPU time in involuntary wait by virtual cpu while hypervisor is servicing another processor (or) % CPU time stolen from a virtual machine


The man and info pages can be rather long. I only want information about a specific flag for a command.  Example:  man ls -a  should return information about the a flag for the ls command, maybe something like this.     -a, --all           do not ignore entries starting with .


Cross-platform space remaining on volume using python

I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way?


Aristotelian vs Boolean, trying to determine the exact difference

Good afternoon,  I've looked at some other answers and I feel those don't quite answer what I'm trying to ask, so I'll just ask it here.  I'm in a logic course and I'm either misunderstanding something or my teacher said something wrong.  The example given was: All cats are animals  Some cats are animals  He argued this was valid from the Aristotelian stand point, as cats really do exists, but invalid from the Boolean stand point (as an existential fallacy) because "All cats are animals" doesn't imply existence, so we can't conclude that "some cats are animals".  The next example was:  All unicorns are animals  Some unicorns are animals.  He argued this was invalid from both the Aristotelian and Boolean stand points because, for the Aristotelian, unicorns don't exist and therefore it commits an existential fallacy. But that it's also invalid from the Boolean stand point because of the same reasons the previous example was invalid.  My confusion comes from the fact that I thought the only difference between Boolean and Aristotelian stand points, for these examples, would be whether the subject (either cats or unicorns) actually existed.  I would have figured the first example would be valid from both Aristotelian and Boolean view points, and the second would be only invalid to the Aristotelian view point.  Can someone please explain?  Thank you!


How do I calculate integral of $\int\frac{\text{d}x}{\sqrt{\tan(x)}}$

I'm having problems calculating this integral.  $$\int\frac{\text{d}x}{\sqrt{\tan(x)}}$$  I don't even know where to begin...  Thanks


Evaluate the value of $\lim_{n \to \infty}\frac{x_n}{\prod_{i=1}^{n-1} x_i}$ where $x_n=x_{n-1}^2-2, x_1=5$

Evaluate the value of $$\lim_{n \to \infty}\frac{x_n}{\prod_{i=1}^{n-1} x_i}$$ where $x_n=x_{n-1}^2-2, (x_1=5).$  I've found that $x_n$ is an increasing sequence so that the limit becomes an indeterminate form of $(\frac{\infty}{\infty})$. I can't think of any other workable ideas though. Some hints are appreciated.


Lightning: why can you not have an expression combined with text in an HTML attribute?

So, I've been struggling with this for a while, trying to figure out how to get it to work. Here is what I originally did:  <button class="btn btn-primary {!v.isLink1 ? 'active' : ''}">   And so on. Here's the documentation on it.   However, when you actually try to save this in the developer console, you get the error:  Field Integrity Exception: Failed to save undefined: Cannot mix expression and literal string in attribute value, try rewriting like {!'foo' + v.bar}: Source   I finally figured out that you have to put all of the classes inside of the expression, like so:  <button class="{!v.isLink1 ? 'btn btn-primary active' : 'btn btn-primary'}">   This doesn't seem very intuitive. It's also not documented anywhere I could find. Could someone explain to me why it is this way and if it will ever change?   (and hopefully this question saves someone some headaches in the future)


How to pass variables from Java to shell commands

I am using process builder to execute multiple shell commands (not external shell script) from Java. I can pass system environment variables to the shell command; However, if I want to pass on a variable defined in java (for example a string) as a argument to the shell command, how can I do that? My code looks something like this. I want two files to be created (touched) by name 123 & 234.  public class ExecShellCmds {  public static void beginWrite() {     String var1 = "123";     String var2 = "234";      String s = null;     try {         String[] cmd = {"/bin/bash", "-c",             "touch var1;"             + "touch var2;"         };          Process p = Runtime.getRuntime().exec(cmd); }}


Why 0010 give different result in array in java

If I placed 00 or 0 before digits values in array output become different.   int arr[][]=new int[3][2];     arr[0][0]=00;     arr[0][1]=01;     arr[1][0]=10;     arr[1][1]=0011;     arr[2][0]=0020;     arr[2][1]=21;     for(int a[]: arr){         for(int c : a){             System.out.println(c);         }      }   Output is : 0 1 10 9 16 21


How to write this musician notes with LaTeX?  Please give me some examples and instructions.


I just bought an Xbox 360 game with wrong region. What should I do?

I just bought a  game (Forza 4) for my Xbox 360 (bought in the US). When I tried to play the game, it wouldn't load because of region issue. Is there a legal way to solve this (no crack)?


What do I write in on the spellcasting sheet besides the spell?

Do I need to write any kind of description or just the spell name. How do I know if I need to mark the "prepared" bubble or not? Also, to clarify, I write my first level spells in the first spell level slot. Furthermore, I'm not sure what I'm supposed to write in the "Slots total" part of the spell level bars.


How do I find out which folder an app is in in iOS 11?

In older versions of iOS, if I searched for an app with Spotlight, it would tell me which folder the app was in. (E.g., this feature still works on my iPad, which is running iOS 9, but not on my iPod Touch, which is running iOS 11.)  This feature seems to have been removed at some point. When I search for an app under iOS 11 using Spotlight, it will find the app and let me run it, but it doesn't tell me which folder it is in.  How can I find out which folder an app is in now?


Filling two tables with a Foreign Key Relationship

I need to create a star schema of table and apply on SSMS. To be simplier I focus on two tables:   One containing general informations about clients. Each client has a particular ID but can appear several times because he can be of multiple type.  One containing financial informations about them that are gathered every 3 months, each set of info about one client at a specific time will have an unique ID.   I set the client table as the parent table. I create it that way:   CREATE TABLE Customers ( CostumerID INT IDENTITY (1,1) PRIMARY KEY, Info 1 nvarchar,     Info 2 nvarchar,     Info 3 nvarchar )   I create the financial informations table this way:  CREATE TABLE FinInfo    (  FinInfoID INT IDENTITY (1,1) PRIMARY KEY,  CustomerID INT,  Date date,  Info1 INT,  Info2 INT,  CONSTRAINT FK_Customers FOREIGN KEY(CustomerID)  REFERENCES Customers(CustomerID)  ON DELETE CASCADE        ON UPDATE CASCADE     )   The thing is I don't know how to fill the costumerID in the FinInfo table without knowing it in the first hand.


A fair die is rolled sequentially. What is the probability of finding the pattern 5, 6 (i.e., 5 followed immediately by 6) before finding a 1?


What does the map of Earth map look like in the 24th Century?

Is there a map of Earth somewhere that shows the various countries that exist during the 24th century? I know it's called United Earth, but I'd imagine it's still divided up into various countries. The ones I've heard mention of are USA, Canada, and France but what others exist at that time?


Can someone post a simple example of starting two (Object Oriented) threads in C++.   I'm looking for actual C++ thread objects that I can extend run methods on (or something similar) as opposed to calling a C-style thread library.  I left out any OS specific requests in the hopes that whoever replied would reply with cross platform libraries to use. I'm just making that explicit now.


Is there a way to tell the Windows Run Dialog (Win-R) to start programs in a folder other than C:\Users\<username>\?


I was trying to put the  onto a thumb drive, when I was asked if I was OK with wiping it (I said yes I as it was blank).  I had to sleep my computer during the wiping, and now I can't do anything with my dive.  When I put it into my computer:    When I click format disk:    In short, the disk never reformats (I get an error message letting me know that Windows was unable to format the drive).  Whats going on, and how do I fix it?


Please add documentation about the redaction tool to the moderator help

Some of us were trying to figure out how to use the redaction tool correctly, as it can be a little , when somebody pointed out the documentation in the .  That was, in fact, just what we needed -- but, 11 months later, I for one didn't remember that it was there.    Moderators see an additional section in the Help Center for moderator tools.  Could we add the information about this tool there?  I think of the newsletter as a place for announcements, but I look for help in the Help Center.  The instructions are already written; a cut/paste (or link) would do the job.  In general, when a new tool is announced in the newsletter, could you please review the documentation you've already written to see if it also belongs in the help somewhere?  I know this does happen sometimes; I don't know how systematic the process is.


Is Star Wars prequel trilogy inspired by Augustus and Roman politics of his time?

Star Wars prequel trilogy introduced The Galactic Republic and to make it compatible with the original trilogy, Lucas showed how Galactic Empire was established replacing The Galactic Republic.  This thing looks similar to how Roman Empire replaced Roman Republic in 27 BC. Did Lucas ever told that he was inspired by the same?


Using ArcGIS with dual/multiple monitors?

ArcGIS doesn't seem to have much support for dual monitors. Maybe I'm missing something, but as far as I can tell you can't have the data view and layout view open at the same time on the two monitors, nor can you expand the map view to fill one monitor and have the toolbars and such on the other. How do you take advantage of dual monitors?


Short story about a hole to another universe that pulls in metal

This  reminded me of a story I read in the 90s.  A woman is caught shoplifting a bunch of metal items by throwing them into her purse. She has no memory, and the purse is empty. Anything metal they put in disappears. The police turn it over to government scientists, who investigate by attaching a large lump of metal to some extremely strong wire and dropping it in like a fishing line.      They have it hooked up to the biggest, strongest crane available, and they begin reeling it back in. They reason that if whoever is on the other side can't let go, it could turn their universe inside out or something equally unpleasant, thus giving Earth the leg up in opening negotiations.   and then      The tension on the line increases until is under too much tension to cut. The story ends with the line slowly sliding back into the purse, with the realization that their plan has backfired in the worst possible way.   Anyone know the name of the story and author?


How to stop iPhone users from unintentionally sending texts to my email address

I use an Android phone but many of my friends and family have iPhones.  Starting a few months ago I discovered that several people sent me text messages that didn't go through.  And after digging into the problem, I discovered that their messages appeared as blue on their phone, not green, indicating that iMessage didn't convert it to a standard text. Then I discovered that (at least for some of the people), their texts were being sent to my email, not my phone number.  The weird thing is that I don't even think some of these people had my email.  I do have an iCloud account because I own a Mac, and somebody has indicated that can lead messages to your email address.  But I'm not sure.  How can I, once and for all, deregister my email (not my phone number, that's already been asked) from receiving iMessages and have my friends' Messages apps only suggest my phone number as a destination to text me at?  tl;dr: My email is registered as an iMessage destination, but I need to deregister it so my iPhone-using friends only send SMSs to my phone number.  Just to be clear: This post is not a duplicate of asking how to deregister your phone number from iMessage.  I never had an iPhone when iMessage existed and when I try using  it just says my phone number is not registered with iMessage.


Suppose I ask a question on Stack Exchange. Now someone comments on the question asking for some additional details or makes some points to which I need to reply.  Typically to respond to it, I add another comment to that post. However, the comments have a word limit, so if my response is exceeding that, what is the correct way to reply -   Split the response and post more that 1 comment Edit the original question I posted Add an answer to the question where I reply to the comment


Is there an algorithm for N body simulations in General Relativity

I am new to general relativity but have a background in computer science.  Why is it so hard to do n-body simulations in GR?  For example, there could be a program which takes the properties (mass, position, velocity, etc.) of each particle as input and numerically integrates the evolution of the system using discrete but very small time steps.  If we throw enough memory and computing power at it, we can get arbitrarily close to the 'real' solution.  I assume the entire histories of the worldlines would need to be known, in order to calculate things like gravitational waves.  I have downloaded programs which show the evolution of the Schrodinger equation, so I am surprised they are so hard to find for GR.  Some responses I've heard elsewhere are 'the equations are nonlinear,' but from what I hear numerical algorithms are great for these types of problems.  What types of numerical algorithms are out there for GR?


I am a first-time Linux user and I started learning about Linux recently. I understand GNOME is a GUI used in most Linux systems. Does Ubuntu use GNOME or any similar desktop GUI?


I have an object x. I'd like to copy it as object y, such that changes to y do not modify x. I realized that copying objects derived from built-in JavaScript objects will result in extra, unwanted properties. This isn't a problem, since I'm copying one of my own literal-constructed objects.  How do I correctly clone a JavaScript object?


I have a VPS with ubuntu 18.04.4 with 2gb and 512mb swap. Working regularly with 600-800mb and 100mb swap and all is well. 2 weeks ago I updated the WAR (tomcat) and the memory jumped to 1.2gb and 400-500mb swap. At first I thought it's normal because I did change something that should consume more memory. I needed to restart the server (for another reason). Only then I realized that the memory got down again to 600-800mb and 300mb swap and it was like that for some time. Meaning previously, something hogged the memory and it was released with the restart. After 2 weeks with the same consumption, I updated the WAR and again I noticed that after the re-deployment, the memory jumped to 1.2gb with 400mb swap. This time I only restarted the tomcat service and the memory consumption got down to 600mb and 100mb swap. htop shows that Java is the one that consumes the memory but how can I know what is it exactly that is hogging the memory after undeploy/deploy that only a service restart releases it? Thanks


What's the difference between "someone" and "somebody"?

What is the difference between "someone is waiting for me" and "somebody is waiting for me?" Please make it clear for me.


How to disable Google Chrome's Auto-update feature?

I am using Google Chrome. I re-installed it today as it was crashing when I start it. I guess may be that this was due to any of my Extensions or Google Update. I disabled my extensions but it was still crashing. Now I installed an old version of chrome from . However, Chrome automaticallyuppdates itself (although Windows asks me before installing and I don't grant it permissions, its still annoying to get Google update asking me permission after a couple of minutes.   I saw the question at  however, it doesn't seem to hlp me. i disabled the service and I stopped it as well, but the problem still persists. I also tried to look into the registry according to the following link:  but the "Policies" section of my registry doesn't contain any folder called "Google". I use Windows 7 - 64 bit Home Premium Service pack 1.  Could anybody help? Thanks a ton!


How to make Æ Ø Å copyable from the PDF output

When building a PDF file with LaTeX the character å gets uncopyable. It only results in       ̊a   when copied.      \documentclass{article}   \usepackage[norsk]{babel}    \begin{document} Try copying this åæø and the å gets strange..  \end{document}   This question is not the same as the one it's marked duplicate of. They do not address the problem with copying ÆØÅ. As you see in Sveinungs answer, he still has problem to copy the characters.


Is it possible to control the shading via a node in the compositor? I would like to generate two output images, one which has material shading and one without any shading - just the colors from the texture.   So far I only found how to control this option with the UI (of course) and with Python, but with these methods I have to render the image twice, which is somehow an overhead.


I'm trying to gain some insight into how orders on an exchange are matched to design a proof of concept matching system.  Am I correct in assuming market orders are immediately executed against the best priced limit order in the limit order book if there is not another market order at the same time to fill the opposite side ?  eg:  Limit order book  Time|Buy  |   Time|Sell  00:01|50  |   00:02|55  00:03|53  |   00:01|60  Market buy order comes in at 00:05   Would it match with the sell limit order at 55 (because $55 is the best price) or with the order at 60 since it's the oldest ?


How lucky long can I leave a dweller out for?

My dweller is a level 24 Alexander Synder with high luck and medium everything else - he has 25 Stimpaks and 11 RadAways, he's already been out 9 hours but I wondered if he'd survive overnight for another 8-9h?


AppleScript to read all notifications in the Notification Center OSX 10.10 Yosemite

It seems like the following AppleScript is no longer working in the latest version of the OS X 10.10 (Yosemite): on run     tell application "System Events"         tell process "Notification Center"             set theseWindows to every window             display notification (count of theseWindows)         end tell     end tell end run  This were supposed to get all notifications listed in the Notification Center. However, the count attribute always returns 0. Does anyone know how to retrieve all notifications in the Notification Center different than the script above?


Do I need visa to transit through the UK or EU countries?

I am a Ghanian and am a Canadian permanent resident. Can I transit without a visa through the UK and any EU country on my way to Ghana (such as Amsterdam, Belgium, Italy, Germany)?


Can I run a 64-bit OS on my Pentium 4 computer?

Late models of Pentium 4 can run 64-bit OS, as I understand. How to detect compatibility of my Pentium 4 processor with 64-bit OS?  I have following output for sudo lshw -C processor   *-cpu    description: CPU    product: Intel(R) Pentium(R) 4 CPU 3.00GHz    vendor: Intel Corp.    physical id: 4    bus info: cpu@0    version: 15.3.4    serial: 0000-0F34-0000-0000-0000-0000    slot: J2E1    size: 3GHz    capacity: 3060MHz    width: 32 bits    clock: 200MHz    capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr    configuration: id=1  *-logicalcpu:0       description: Logical CPU       physical id: 1.1       width: 32 bits       capabilities: logical  *-logicalcpu:1       description: Logical CPU       physical id: 1.2       width: 32 bits       capabilities: logical   Output for cat /proc/cpuinfo  processor       : 0 vendor_id       : GenuineIntel cpu family      : 15 model           : 3 model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping        : 4 microcode       : 0x17 cpu MHz         : 3000.141 cache size      : 1024 KB physical id     : 0 siblings        : 2 core id         : 0 cpu cores       : 1 apicid          : 0 initial apicid  : 0 fdiv_bug        : no f00f_bug        : no coma_bug        : no fpu             : yes fpu_exception   : yes cpuid level     : 5 wp              : yes flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr bugs            : bogomips        : 6000.28 clflush size    : 64 cache_alignment : 128 address sizes   : 36 bits physical, 32 bits virtual power management:  processor       : 1 vendor_id       : GenuineIntel cpu family      : 15 model           : 3 model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz stepping        : 4 microcode       : 0x17 cpu MHz         : 3000.141 cache size      : 1024 KB physical id     : 0 siblings        : 2 core id         : 0 cpu cores       : 1 apicid          : 1 initial apicid  : 1 fdiv_bug        : no f00f_bug        : no coma_bug        : no fpu             : yes fpu_exception   : yes cpuid level     : 5 wp              : yes flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr bugs            : bogomips        : 6000.28 clflush size    : 64 cache_alignment : 128 address sizes   : 36 bits physical, 32 bits virtual power management:


Can you explain the "Axiom of choice" in simple terms?

As I'm sure many of you do, I read the  webcomic regularly. The  involves a joke about the Axiom of Choice, which I didn't get.     I went to Wikipedia to see what the Axiom of Choice is, but as often happens with things like this, the Wikipedia entry is not in plain, simple, understandable language. Can someone give me a nice simple explanation of what this axiom is, and perhaps explain the XKCD joke as well?


Proving formula for product of first n odd numbers

I have this formula which seems to work for the product of the first n odd numbers (I have tested it for all numbers from $1$ to $100$):  $$\prod_{i = 1}^{n} (2i - 1) =  \frac{(2n)!}{2^{n} n!}$$  How can I prove that it holds (or find a counter-example)?


I have a question regarding the absorption of light in e.g. hydrogen atoms:  I didn't quite understand how the electron knows that it can only absorb photons of the right energy.  I thought that when shining light which don't have energy equal to a transition that the electrons absorb the energy and enter transient unstable orbits and very shortly after emit the energy again. However this would mean that an emissions spectrum should be observable from all angles, which as far as I know is not correct.


How does my iPod touch knows my location (if it doesn't have a GPS)?

If there's no GPS in the iPod, how can it know (with such a good precision) my location?


I have the following code  \begin{align} s'(t) &= -\beta s(t) i(t)\\ i'(t) &= \beta s(t) i(t) - \gamma i(t)\\ r'(t) &= \gamma i(t), \end{align}   and I want to enclose this with a bracket like a case, but maintaining the numbered equations.


Replace unknown reference (?) with the tag from \ref or \cite

While working on a document, it would be helpful if instead of a ? for unresolved references or citations the tag used in the \ref{thisthings} or \cite{Bloke1978} could appear instead.  Is there a package that turns on this behaviour?


Why is directing stdout to a file inconsistent and delayed?

I have tried two methods to direct the output of a program's printf calls to a file. In both cases, sometimes the file is updated immediately, sometimes it takes several minutes, and sometimes it doesn't update the file at all.  My program runs from a bash script that is executed by /etc/network/if-up.d/upstart. I have tried this for my bash script:      #!/bin/bash     sleep 2      if ! pgrep "demo" > /dev/null     then         sudo /home/pi/code/demo_device/demo >> /home/pi/code/demo_device/auto_log.txt 2>&1 &     fi   and this:      #!/bin/bash     exec 1> >(logger -s -t $(basename $0)) 2>&1     sleep 2      if ! pgrep "demo" > /dev/null     then         sudo /home/pi/code/demo_device/demo &     fi   The auto_log.txt file in the first case and the /var/log/user.log file in the second case both have the issues that I described above. I also had the bash script run the demo executable with start-stop-daemon and I got the same results. How can I have a log file update immediately and consistently when running a program as a background process on boot-up?  note: I don't know if this is relevant, but the program is designed to run continuously and never exit.


How to start up with Lightning Enabled VF page or Lightning components

I don't have any experience in Lightning so far, currently we have a Challenge to Develop a new VF page to replace a page in Console. It seems to be Lightning type of page. Please find the image below.    How can I get start with the development?


Working through a book, I have stumbled upon a question I don't know how to solve:     Prove    $$2\cos(5B) + 2\cos(4B) + 2\cos(3B) + 2\cos(2B) + 2\cos(B) + 1 =  \dfrac{\sin\left(\frac{11B}2\right)}{{\sin\left(\frac B2\right)}}$$   (this is a smaller problem I have reduced the larger problem down from)  I don't know how to simply the cosine functions into a sine functions, as using the identity $\cos A + \cos B = 2\cos\left(\dfrac{A+B}2\right)\cos\left(\dfrac{A-B}2\right)$ simply gives me a result with even more cosine functions. I can't think of other identities that are helpful.


Using class variable after injecting it via Spring throws NullPointerException

If I have a class variable foo, injected via Spring and I use foo to initialize another class variable like below, why does it throw a NullPointerException? However, if I perform the initialization in a method call of the class, it works fine.   class Baz {     @In    Object foo;     Object bar = foo.someMethod();  }


I'm a new reviewer and I would like to get some feedback.  I've flagged  as not an answer.  My flag was declined, with the reasoning - "a moderator reviewed your flag, but found no evidence to support it", while:   This post asks multiple "sub questions", that wasn't even addressed. In the only thing it did try to answer  - he only provided a link.   Would appreciate your opinion.


What happened to Seneca Crane at the end of the movie?

At the end of the movie we are shown      a bowl with berries in it and Seneca Crane looked like he was locked in a room with them and was supposed to eat them. Did he eat them?   Why did that happen?


Dell Vostro 5490 no WIFI in Ubuntu 18.04

I have a Dell Vostro 5490 with Ubuntu 18.04 installed in dual boot with Windows 10. I currently have no WIFI. I have tried to update and upgrade my packages, and I have also followed  guide, but without success. Except for the things mentioned, my Ubuntu is completely stock, I have not done any other modifications. Please help me out with this issue, any help would be greatly appreciated!  This is the output from the command lspci -knn | grep Net -A3; rfkill list:  00:14.3 Network controller [0280]: Intel Corporation Device [8086:02f0]     Subsystem: Intel Corporation Device [8086:42a4]     Kernel driver in use: iwlwifi     Kernel modules: iwlwifi 0: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no   Here is a paste of the output from the command dmesg | grep iwl:


Simple convergence problem: If $\sum a_n^2$ and $\sum b_n^2$ are convergent, then $\sum a_n b_n$ is also convergent.

This, as the title says should be very simple, I am terribly stuck.  If $\sum a_n^2$ and $\sum b_n^2$ are convergent, how do I prove that $\sum a_n b_n$ is also convergent??


Do you have any tips on how to solve the limit in the title? Whatever I think of doesn't lead to the solution. I tried using: $\sin{x}-\sin{y}=2\cos{\frac{x+y}{2}}\sin{\frac{x-y}{2}}$ and I got: $$\lim_{x\to+\infty}\bigg(2\cos{\frac{\sqrt{x+1}+\sqrt{x}}{2}}\sin{\frac{\sqrt{x+1}-\sqrt{x}}{2}}\bigg)=$$ $$\lim_{x\to+\infty}\bigg(2\cos{\frac{\sqrt{x+1}+\sqrt{x}}{2}\frac{\sqrt{x+1}-\sqrt{x}}{\sqrt{x+1}-\sqrt{x}}}\sin{\frac{\sqrt{x+1}-\sqrt{x}}{2}}\bigg)=$$ $$\lim_{x\to+\infty}\bigg(2\cos{\frac{1}{2(\sqrt{x+1}-\sqrt{x})}}\sin{\frac{\sqrt{x+1}-\sqrt{x}}{2}}\bigg)$$ but, as you can see, this leads me to $\infty-\infty$ in $\cos$ term. How can I get rid of that?


Let $x,y$ be arbitrary non-zero column vectors in $\mathbb R^n$ , then how do we prove that $\det (xy^t)=0$ ?


I am working on what I hope is a simple project as I am dabbling in this field. I am trying to create a target (in the shape of a box) roughly 1m by 0.5 meters into which soccer balls will be shot (diameter of between 10 and 25 cm).  I want to be able to detect any ball which passes through the opening of the goal. I have looked at PIR sensors but am not sure if they will be able to detect a fast moving object (potentially up to about 3 cm per sec). Another concern I have is that it may be possible for a ball to remain in the sensor(s) field if it hits the edge of the goal and does not pass cleanly through and exit the sensor field.  If this happens I would want to make sure that the sensor(s) could pick up the motion of another ball which passes through the goal on either side or above the stationary ball.  The idea is to connect the sensors so that each "goal" is detected and that any miss (default if no goal is scored within a set time frame) is also detected.  I have read some similar questions regarding moving bullets and even soccer goals but these issues were not addressed.  Also, I would like this to be outdoor usable, meaning weather resistant.  I have looked at some weather proof ultrasonic range finders, although with any sensor I am concerned with dirt and other materials from obstructing the sensor(s).  Any help would be greatly appreciated.


How does Monobehaviour from Unity do FixedUpdate()

Im still learning and looking for anyone who can help me out how this works :  For example Unity has FixedUpdate() and Update() most likely ran from a Thread orsomething that tells when to call that method. How does it work that if you inherit your class from Monobehaviour all you've got to do is write void FixedUpdate() { //Code }  In Short :  How do I make a Parent Class like Monobehaviour that calls a certain method but also be able to send arguments to that method to all classes that inherit from "Parent Class"


I am on Windows 10 and have a ~640GB (base 10) Hard drive with 2 main partitions on it C:\ and D:\ and also a recovery and system partition as can be seen here    When I use cmd to determine the size of all files on C:\ (including hidden and operating system protected files) I get this     I use the command dir /a/s, on C:\ as can be seen.  But when I select all files and folders in C:\ including hidden and operating system protected files and folders, I get this result size:79.717.573.909 bytes. As you can see there is a big discrepancy between the two.  I figure that there must be some files and folders that I didn't select and witch are compressed and thus have a bigger actual size then their footprint on the disk (size on disk), since, as you can see, disk-manager gives me a lesser capacity for C: partition then what cmd says. If someone could explain whats going on here I would be greatfull?  I hope I've been clear enough,


How to convert a list into 3 digits in Python?


Optimal strategy with flipping a coin indefinitely

Consider this problem: You are flipping a coin which either heads or tails with equal probabilities. Every time you flip the coin you can end the game or flip once more. This way you flip $N$ times and the coin heads $H$ times. Your goal is to maximize value $H/N$.   Now suppose this simple strategy: Choose a real number $q$ between $0$ and $1$. If at any moment $H/N \geq q$, then end the game, otherwise proceed (until some very high value of $N$ when $H/N$ will be close to $1/2$). My question is: What is the best choice of $q$ ?  If I am right, when $q=1/2$ or $q=1$, then $H/N$ will be $1$ (if the first flip heads) or $1/2$ otherwise. So $H/N = 1/2*1 + 1/2*1/2=3/4$ on average. But it seems that the optimal $q$ is somewhere between these.  Thank you for any help or reference.


Overriding special methods on an instance

I hope someone can answer this that has a good deep understanding of Python :)  Consider the following code:  >>> class A(object): ...     pass ... >>> def __repr__(self): ...     return "A" ... >>> from types import MethodType >>> a = A() >>> a <__main__.A object at 0x00AC6990> >>> repr(a) '<__main__.A object at 0x00AC6990>' >>> setattr(a, "__repr__", MethodType(__repr__, a, a.__class__)) >>> a <__main__.A object at 0x00AC6990> >>> repr(a) '<__main__.A object at 0x00AC6990>' >>>   Notice how repr(a) does not yield the expected result of "A" ? I want to know why this is the case and if there is a way to achieve this...  I contrast, the following example works however (Maybe because we're not trying to override a special method?):  >>> class A(object): ...     def foo(self): ...             return "foo" ... >>> def bar(self): ...     return "bar" ... >>> from types import MethodType >>> a = A() >>> a.foo() 'foo' >>> setattr(a, "foo", MethodType(bar, a, a.__class__)) >>> a.foo() 'bar' >>>


i wanted to install ubuntu and windows alongside but I accidently installed Ubuntu 13.10 using the option "LVM" although i've not selected erase disk and fresh install. Now my systems boots direclt into Ubuntu and I'm unable to see my Windows files on hard drive so I'm unable to access my old data (documents, movies, music, pictures) stored on Windows 8? Can someone help me to bring back my old Windows?


how to pass a list to sql query in the below mentioned scenerio

I have to pass a list  to a stored procedure which is selected by user. That list I have as a string at java end.  Example: String list="123,467,980";  Now if I take this string to stored procedure as it is then how would it work.  I cannot use it as mentioned below:  select * from table_name where code in (list_var)   So can anyone guide me that what would be best approach for achieving this functionality.


calculator's angle answer for trig ratios that can work in more than 1 quadrant on the unit circle

Why does the calculator do a cc (counterclockwise) rotation for positive trig ratios instead of clockwise,  and a clockwise rotation for negative sine & tan instead of cc and a counterclockwise rotation for negative cos ratios instead of a clockwise   ie. in degree mode  $\cos^{-1}(-5/12)=114.62$  $\sin^{-1}(-5/12)=-24.62$  $\tan^{-1}(-5/12)=-22.61$  Is it maybe picking the value that involves the least amount of computing power? or is it a matter of convention? or am I overlooking something?


Are there irreducible polynomials that are partially solvable by radicals?

In general, polynomials of degree 5 or higher, with rational coefficients, are not solvable by radicals. There are some exceptions and trivial cases, for example $x^5-5x+12$ and $x^{100}+x^{25}+3$, respectively.  All irreducible polynomials with rational coefficients, that I am aware of, have either none or all roots that can be expressed by radicals.  Do partially-solvable irreducible polynomials exist? If they do, are there any examples known?  I mean, for example, an irreducible polynomial of $n$th degree that can be split over $Q(\sqrt{2})$ into two polynomials of 3rd and $(n-3)$th degrees, where the polynomial of $(n-3)$th is not solvable by radicals.    At  Alexander Gruber wrote:     Polynomials which are not solvable by radicals have (at least one) root that cannot be written by any combination of the operations of addition, multiplication, and the taking of nth roots.   I am not sure if he meant only reducible polynomials, and/or with non-rational coefficients, as polynomials that have "at least one" root that cannot be expressed by radicals.


I have a \longtable that splits over two pages and currently shows the label and caption at the top of each page. Can I change this so that the caption and label to only appear on the first page and still keep the headers on each page?  \begin{longtable}{|p{3cm}||p{7cm}|p{5cm}|}     \caption{Some text}     \label{tab:1}     \hline     \textbf{Parameter} & \textbf{Value}  & \textbf{Definition}  \endhead     \hline     ...                                                   \hline \end{longtable}


Bash converting date in a csv file with awk or other linux tool (csvcut)

awk -F"," '{OFS=","; $1=system("date -d "$1" +%d-%m-%Y") ; print $0}' data.csv | head   I am trying to take the first column of a csv file and standardize the date format to %dd-%mm-%yyyy. When I try the code above I get date: write error: Broken pipe. But when I try the code below: dd=$(csvcut -c  1 -e ISO-8859-1 -d ","  data.csv | head -2 | sed -n 2p) echo $dd echo $(date -d $dd "+%d-%m-%Y")  I get the the output:  2017-02-03 03-02-2017  What am I doing wrong. Any hints? Thanks. My system: Ubuntu 16.04.1 LTS EDIT 2: Here is a sample file:  EDIT: sure CSV data file (input): data.csv (with many rows) Bogført,Tekst,Beløb,Saldo    2017-02-03, random text,-425,-611524.54    output: Bogført,Tekst,Beløb,Saldo     03-02-2017, random text,-425,-611524.54   but the date format can be in any other format. I am currently looking into standardizing dates for an csv import job. Thanks.


Can you build a road on the other side of another player's settlement?

Player A: Wants to expand to resource-rich area of board. They build two roads and plan to build a settlement and continue their road to the resource-rich area.  Player B: Also wants same location as player A for their next settlement. They build two roads, ending at same hex intersection as player A.  Player B builds their settlement first.  Player A: Still wants resources further away, so places another road on the other side of player B's settlement.  Player A has a road going into the hex intersection, and argues that they can build a connecting road going out of the intersection, regardless of whether another player has a settlement there.  Is this really a legal move?  If not, where in the rules does it specify that this it is not allowed?


Vertical align middle on inline elements slightly off

When I try to vertical-align: middle an icon () next to some text, the icon is always a little bit too low (see example). How can I fix this so it is vertically centered with the text.  Example:    p {   font: 10pt Arial, sans-serif; }  .icon {   vertical-align: middle; }
This is some text with an icon in it.


Showing that if the center of a group is trivial, then the center of its automorphism group is trivial

I am trying to show that if for a group $G$ we have $Z(G)=1$, then $Z(\operatorname{Aut}(G))=1$.  I have tried everything I can think of, but to no avail.  The first part of the problem was to show that $\operatorname{Inn}(G) \triangleleft  \operatorname{Aut}(G)$ - does this have any connection?  I couldn't find one.  I know that $\operatorname{Inn}(G) \cong G/Z(G)$, so in this case $\operatorname{Inn}(G) \cong G$ and $Z(\operatorname{Inn}(G))=1$.  Is there any way to get from this to $Z(\operatorname{Aut}(G))=1$?  How do we go about showing this?  Thanks.


Pass unicode character to from os.walk to print function

I am trying to create a simple file indexing utility in Python 3.4. The goal is to enable quick searching for a filename using an index.  To do this I have used the os.walk function, but I get a UnicodeEncodeError when trying to print the name of a directory. I looked at other questions such as  and  but they don't seem to describe the same error (UnicodeEncodeError).  My code is:  def index_files(path_to_index):     indexed_files = []      for dirname, dirnames, filenames in os.walk(path_to_index):         # print path to all subdirectories first.         for subdirname in dirnames:             print(os.path.join(dirname, subdirname))          # print path to all filenames.         for filename in filenames:             full_path = os.path.join(dirname, filename)             print("Found " + full_path)             indexed_files.append(full_path)   The output I'm getting is:  Traceback (most recent call last):   File "[OMITTED LOCAL PATH]indexer.py", line 40, in <module>     main()   File "[OMITTED LOCAL PATH]indexer.py", line 37, in main     indexed_files = index_files(path_to_index)   File "[OMITTED LOCAL PATH]indexer.py", line 16, in index_files     print(os.path.join(dirname, subdirname))   File "C:\Python34\lib\encodings\cp850.py", line 19, in encode     return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 31-34: character maps to <undefined>   What is the proper way to do this?


Show that $\frac{1}{x}-\frac{1}{x^3}x)}{\phi(x)}0$ where $X$~$N(0,1)$ with pdf $\phi(x)$.

I tried taking exponentials and using Markov's Inequality, but this only gave me an upper bound of $\sqrt{2\pi}$. I'm not sure how to begin to approach this question - can anyone give a hint?


Where are multisets used in mathematics?

Outside of factorization (integers into primes, polynomials into irreducibles) where else are multisets naturally useful in mathematics?  [edit]  Deleting. If anybody wants me to stop, please say so now.


Multiseat with one card and two Xorg instance

Is it possible to set up a multiseat environment with one graphic card and two Xorg instances? That is, one machine with a monitor/keyboard/mouse for the first Xorg instance and a second monitor/keyboard/mouse for another Xorg instance.  I am using Debian 8 with Intel HD4000 graphics. Every tutorial I have read describes multiseat environments with at least two graphic cards for multiple Xorg instances. I also could use Xephyr, but since this solution lacks performance I would rather prefer to use two Xorg instances.  At the end of the day I would like to have two distinct environments, not influencing each other. So the use of something like “screen1 LeftOf screen0” is not the right choice.


Convergence of a Sequence of functions Uniformly Mean Pointwise

For each of the following, give an example of a sequence of functions $f_n(x)$ that converges to f  A. uniformly but not in the mean square sense.  B. in the mean square sense but pointwise nowhere.  I know that for part A the domain of the function cannot be bounded. Please don't just repeat the definition of what it means to converge uniformly, in the mean square sense or pointwise.  I'm looking for clues on how to choose a $f_n(x)$ that matches the conditions


Why the integral of a force gives Energy?

In the 10th grade, meaning few months back, I've studied the potential and Kinetic energy (I was ignorant about the importance of calculus), but When I learned calculus, and the Constant of integration which is the initial conditions in physics. I remembered that also in the expression of potential energy we have : $$E_p=mgz+c$$ Where $c=0$ at $z_0$, this is the antiderivative of $mg$, obviously $$\int mg dz=mgz+C$$ and that's the expression of the energy also in the Kinetic one : $$E_{K}=\frac{1}2 mv^2$$ And when we differentiate it we get : $$\frac{dE_K}{dv} =mv=p$$Where $p$ is the momentum. My question is: How this operation 'Integration' can produce the 'Energy' expression?


Is there a way to check the bios battery from the command line?

Is there a way to check the bios battery life from the command line?


SQLiteDatabase on a null object reference

Supposedly, I wanted to call a SQLStatement, which eventually will return a ID for a particular row.  public int FindInDatabase(String info){          Cursor c = db.rawQuery("SELECT id FROM " + DatabaseName + " WHERE " + DataField + " = " + info,null);         if (c != null){             c.moveToFirst();         }         return c.getInt(1);     }   Above code cannot be executed successfully, it contains error of Cursor: android.database.sqlite.SQLiteDatabase.rawQuery(java.lang.String, java.lang.String[]) on a null object reference . What is wrong overhere? Thanks.


Why I am not getting OutOfBounds exception (like Java one) or any other error in C when I violate array size constraints?

I am curious about below code in C  int main(){          int arr[10];         *(arr+120) = 5;         int *px = arr;         int i = 0;         for(i = 0; *px != 5; px++){           i++;         }          printf("%d", i); }   This code produced output of 120. Our array is said to hold 10 items. How can I assign some value for index 120, run loop and get my value if there potentially should be some kind of error. Probably I am not getting some C language specifics. In java I would get OutOfBounds exception.... Please, help to clarify it. Thank you!


How to increase players render distance?

For instance lets say I'm on hypixel playing bed wars.   I get in a match and I want to see players from across the map, but I can only see players that are up to a quarter of the map away.   Other players won't appear farther than that. So I want to know how to see players form across the map.


Is it possible to Integrate Salesforce Directly to an SFTP Server? Has anyone already implemented this?


I got java.lang.NullPointerException error. Tried to print names ages and adresses in Test class

It prints to console this Michele,26,Italy John,25,America Gloria,20,null Alice,22,null Joe,18,null How can i delete "nulls". I have to create two methods called setInfor one of them with 3 parameters the other one is 2. I guess the problem because of these methods. Could you help me out. This was the assignment "Create a class 'Student' with three data members which are name, age and address. The constructor of the class assigns default values name as "unknown", age as '0' and address as "not available". It has two members with the same name 'setInfo'. First method has two parameters for name and age and assigns the same whereas the second method takes has three parameters which are assigned to name, age and address respectively. Print the name, age and address of 10 students." public class Student {     private String Name;     private int age;     private String adress;      public Student(String name, int age) {         this.Name = name;         this.age =age ;     }     public Student() {         this.Name = "Unknown";         this.age = 0;         this.adress = "Not available";     }     public  Student(String Name, int age, String adress) {         this.Name = Name;         this.age = age;         this.adress = adress;     }      public void setName(){         this.Name= Name;     }     public String getName(){         return Name;     }     public int getAge() {         return age;     }      public void setAge(int age) {         this.age = age;     }      public String getAdress() {         return adress;     }      public void setAdress(String adress) {         this.adress = adress;     }       public void setInfo(){         System.out.printf("%s,%s,%s",Name,age,adress);}      public void setInfo(String name,int age ){         System.out.printf("%s,%s,%s",Name,age);     }}                public class TestStudent {      public static void main(String[] args){          Student Stu1[]= new Student[10];         Student Stu2[]= new Student[10];          Stu2[0] =new Student("Michele",26,"Italy");         Stu2[0].setInfo();         System.out.println();          Stu2[1]= new Student("John",25,"America");         Stu2[1].setInfo();         System.out.println();         Stu1[2]=new Student("Gloria",20);         Stu1[2].setInfo();         System.out.println();          Stu1[3]=new Student("Alice",22);         Stu1[3].setInfo();         System.out.println();          Stu1[4]=new Student("Joe",18);         Stu1[4].setInfo();         System.out.println();          }     }


Alternating sum of binomial coefficients identity

I need to show that the following identity holds:  $\sum_{i=0}^k (-1)^{k-i} {{d-i}\choose{k-i}} {{n}\choose{i}}  = {{n-d+k-1}\choose{k}} $  Where $k \leq \frac{d}{2}$ and $n \geq d$.  I have been trying several substitutions but I haven't been able to prove it. Any help would be appreciated.


How can I query for posts that I've marked duplicate

I need to find a post.  I've tried to search for what I can remember of it and that has failed.  However, I do know that I marked a similar post as duplicate.  Now I'm hoping I can find the duplicate.  How do I search for posts that I've marked as duplicate?    There is nothing listed under all actions on my activity page      Neither an exchange nor google search have yielded any useful information


Within this component our css is only applied to the div within the card but not to any div in the  (title). Is there a feasible reason or is it just a bug?  (In our real problem we are trying to manipulate the card header but can't access it. Not like demonstrated here, nor with using css classes.)  HTML:  <template>     <lightning-card title="test">
test
     </lightning-card> </template>   CSS:  div {     background-color: green; }   Feel free to try it yourself, in this