How can a processor execute more instructions per period than there are clock cycles?

Wikipedia page lists several cases where the instructions per clock cycle per core is greater than 1. How can there be more instructions executed per core per period than there are clock cycles in that same period?  In trying to find an answer to my question I've heard about (if I understand correctly) a single-core parallel executon techniques called out-of-order execution, but it seems to me that since this only seems to apply to the execution stage, the speed should still be constrained by the non-parallelism of the other stages.


Which of the following numbers can be orders of a permutation $\sigma$ of $11$ symbols, such that $\sigma$ does not fix any symbols?  $1. \;18$  $2.\; 30$  $3.\;15$  $4.\; 28$  could any one just give me hints?


is it compulsory to use "his/her" and "he/she" to refer to a person or just "he" and "his" is enough?

Let see this sentence:  a person needs to change his / her mind so that he /she can become good.   or a person needs to change his mind so that he can become good  is the second one incorrect?  I've never seen anyone write like this a person needs to change her mind so that she can become good


How are you supposed to read nutrition information on food labels? For example, how to determine whether the packaged food is healthy or not depending on the amount of sodium, protein, sugar, carbohydrates it has.   I have included two photos of similar cereals that I recently bought and I was wondering which one was healthier simply by reading the label?


Why are tar archive formats switching to xz compression to replace bzip2 and what about gzip?

More and more  archives use the  format based on LZMA2 for compression instead of the traditional  compression. In fact kernel.org made a late "Good-bye bzip2" , indicating kernel sources would from this point on be released in both tar.gz and tar.xz format - and on the main page of the  what's directly offered is in tar.xz.  Are there any specific reasons explaining why this is happening and what is the relevance of  in this context?


Separate options to suspend when on battery power or plugged in

The power category in GNOME Tweaks only show a "suspend when laptop lid is closed". However, there is no distinction between whether the laptop is plugged (for instance to a docking station or a charger) or operating on battery power.  In my case, I would like my laptop to suspend when closing the lid on battery power, but leave it when plugged to its charger. Is there a way to achieve that?


How can I install Kali tools in Ubuntu 14.04?

I was reading a tutorial about installing Kali tools in Ubuntu. at the start, the instructions say to add repositories like this:  deb http://ppa.launchpad.net/wagungs/kali-linux2/ubuntu YOUR_UBUNTU_VERSION main  deb-src http://ppa.launchpad.net/wagungs/kali-linux2/ubuntu YOUR_UBUNTU_VERSION main  deb http://ppa.launchpad.net/wagungs/kali-linux/ubuntu YOUR_UBUNTU_VERSION main  deb-src http://ppa.launchpad.net/wagungs/kali-linux/ubuntu YOUR_UBUNTU_VERSION main    And in your Ubuntu version you have the following option  Ubuntu 12.04: Precise Ubuntu 12.10: Quantal Ubuntu 13.04: Raring   What is the code for 14.04? Can we install Kali tools in Ubuntu 14.04 or not?


GDiskDump or DD to show partition names?

I have partition names like Data-HD, Yhteinen and W10. I do have lots of other partitions, but I want a little more assurance I am copying a right partition to a correct destination. I am quite errorprone with "names" like /dev/sdbd1 etc.  How do I get partition names to show?


I'm on Ubuntu 16 and I'd like to add a neo4j package. I tried in 3 ways all leading to the same error.  These are my attempts:  wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -  sudo wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -  sudo -i wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -   But I always get this error message:  ERROR: This command can only be used by root. --2016-11-04  http://debian.neo4j.org/neotechnology.gpg.key Resolving debian.neo4j.org (debian.neo4j.org)... 52.0.233.188 Connecting to debian.neo4j.org (debian.neo4j.org)|52.0.233.188|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4791 (4,7K) [application/octet-stream] Saving to: ‘STDOUT’  -                     0%[                    ]       0  --.-KB/s    in 0s         Cannot write to ‘-’ (Broken pipe).


I pressed Ctrl + Alt + F1 (while I was logged in) and got the console interface.  After logging in, I wanted to go back to GUI, so I typed startx. It didn't work, so I pressed Ctrl + C and logged in and out a couple of times, and repeated the process, after which I typed sudo reboot to reboot computer.  After that, Ubuntu booted normally, but when I try to log into my account, it just returns me back to the login screen. I entered the console intreface again, tried pressing Ctrl + Alt + F1, but in vain. Logging in into other accounts including the guest account is successful, but I cannot log into my account.  Fortunately, I have cloned the entire HDD about a month ago, so should I restore the backup, or is there a quick solution? I'm not willing to do some advanced programming or so, because it would take much less effort to install some missing updates and some programs after the restore than to mend my system and make it unstable, if it's seriously broken. I also have all my data backed up on spideroak, so it's not a problem too. Please help. Thanks!


Clarification on two weapon fighting and barbarian multiple attacks

I have a 5th level barbarian who gets two attacks, as part of his class abilities. If I choose to employ the standard two-weapon fighting style using two hand-axes, my attack sequence looks like this in a round:  1st attack: Attack with primary hand 2nd attack: Attack with primary hand  Bonus action: Attack with secondary hand.  I can choose where to place the bonus action (after attack 1 or 2) BUT I do not get it for each action, since there can't be more than one bonus action per turn.  Essentially, this nets me 3 attacks per round and not 4. Am I interpreting this correctly?


footnote counter, would like to restart from '1' each page

I would like the footnote counter to automatically restart from '1' for each page of my document.


Is there a sequence of increasing numbers $x_n\to\infty$ such that $\sum_{n=1}^\infty(1-x_n/x_{n+1})<\infty$? When I try, for example, $x_n=\sum_{m=1}^n1/m$, then $1-x_n/x_{n+1}$ looks like $1/(n\log n)$ which doesn't have a convergent sum. If I make the gaps smaller than $1/n$ then the sequence doesn't increase to infinity.


Forcing a bibliography link with very long file name to stay within column width

The image above is for a reference in double-column IEEEtran class.   One potential solution is mentioned in , but this works when there are no single extremely long words in the link. The link above contains a long PDF file name  PGLowSCRWindGenerationInstabilityIdentificationandMitigation.pdf  The name is too long that it cannot fit in one column, but LaTeX still does not hyphenate it.  The solution in  yields    Thus, further decrease in the link size is needed.   Is there a way to force it to stay within the column width while maintain an intact hyperlink?  \begin{filecontents*}{sample.bib} @online{lovelace2015low,     author = {{Lovelace, Will}},     title = {{Low SCR Wind Integration and Mitigation}},     url = {http://www.cce.umn.edu/documents/CPE-Conferences/MIPSYCON-PowerPoints/2015/PGLowSCRWindGenerationInstabilityIdentificationandMitigation.pdf},     organization = {Minnkota Power Cooperative},     date = {2015-11-11},     urldate = {2019-05-20} } \end{filecontents*}  \documentclass[]{IEEEtran}  \usepackage[square,numbers]{natbib}  \begin{document}  \cite{lovelace2015low}  \bibliographystyle{IEEEtran} \bibliography{sample}  \end{document}


How to I set the box for newly captured Pokémon?

I have organized my boxes in Pokémon X by type, and I have a few empty boxes at the beginning.  Whenever I capture a Pokémon, it does not go in the first Box available. How do I set the box that the Pokémon go in to?  Here is my setup:  [ ] [ ] [ ] [ ] [ ] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X] [X]   The Xs represent boxes that are organized. I would like the Pokémon to go into the empty boxes at the beginning. Instead, they are currently going in to the 3rd to last box.


I need flight tracking information for flight XK310 10.082019 from Calvi to Nice.  Somebody can paste link to flightaware?


$$\int \sqrt{cot\theta} d\theta$$ I tried to set $t=\sqrt{cot\theta},t^2=cot\theta$ and substitute into the original integration and get$$-\int\frac{2t^2}{1+t^4}dt$$, but then what can I do?


Best source to study partial differential equations (PDE)

Want to understand partial differential equations (linear and non-linear) more deeply. I am not a mathematician and I am more interessted in a more practical source that is teaching this topic from a very intuitive approach. I would also be very interessted in video lectures.


Can I use Windows Server 2019 Essentials as a Stand Alone WebServer?

I looked around a lot but the only thing I find is the statement from Microsoft: "Functionality is limited on Windows Server 2019 essentials" and comparison Charts comparing the Standard and DataCenter Editions...  So what exactly is limited in Essentials? (Beside the 25 User / 50 Devices Limit)  Can I use the Essentials Edition as Stand alone WebServer (without a Domain) using IIS and maybe a SQL Server Version installed on the Server on a hardware with 64 GB RAM and a single CPU with 12 Cores? Basically there is only a single user / Admin accessing the server. So the 25 User / 50 Device Limit would be more than OK.  Update: My Question ist NOT about Licensing it is about functionality and Limits. Licencing is clear. But still, if this is not the correct Forum for such a Question I can delete it...


Cannot start Ubuntu 18.04 on a Dell Precision Tower after a fresh install - login screen turns blank

I have a Dell Precision Tower 5810, and I was trying to install Ubuntu 18.04 on it. I created a bootable usb with Roofus 3.1 in Windows 10 ().  Then tried to follow Dell's guide , but I could not find the file SHIMx64.EFI...  Still I made sure the Secure Boot was enabled, the Legacy Option ROMs was not enabled, and the Boot Option was set to UEFI, pushed my usb stick to the top in the Boot Sequence, and exited.  It booted with no problem to my usb stick, showing the options "Try Ubuntu", "Install Ubuntu", etc. But whichever option I used, led me to a blank screen...  Eventually, thanks to , I added the nomodeset option and I could access the "Try Ubuntu" option... I installed Ubuntu and the installation went through with no problem at all.  Now Ubuntu boots, but the instant the login screen shows up, the screen goes blank (without even letting me type my credentials). I tried pressing the Right Shift key like specified , but to no avail. I checked all the "Similar Questions" suggested, but none of them work.  Note that the first time I booted after the fresh install, I saw a "Perform MOK management" screen with the following options, but I just selected "Continue to boot".  Any clue anyone? I really need this computer working (with Ubuntu 18.04 if possible) asap! Many many thanks.


Expectation of throwing $n$ balls into $n$ bins

Suppose we throw $n$ indistinguishable balls in $n$ bins at random. The throws are independent. What is the expected number of empty bins? What is the expected number of bins with one ball.   Using indicator random variables, expectations, some sloppy math and some questionable logic, I arrive at the conclusion that both are approximately $n/e$. I'm not able to find simple formulas. It also sounds very counter-intuitive to me.  Worse, I wrote a small Ruby program to simulate it and the results appear to be (approximately) correct.  Can anybody show me a good solution?


Let $\phi :F \to R $ be a ring homorphism. Prove either $\forall x \in F ,\phi (x)=0 $ or $\phi$ injective

Let $\phi :F $ $\to$  $ R $ be a ring homorphism. Prove either $\forall x \in F ,\phi (x)=0 $ or $\phi$ injective.    Def homorphic: $\forall x,y \in F \Rightarrow f(a)+f(b)=f(a+b) \wedge f(a)f(b)=f(ab) $   Injective (one-to-one) If $f(a)=f(b) \Rightarrow a=b$    My attempt  There are 2 cases either $\forall x \in F:\phi (x)=0$ or not that is $\exists x \in F:\phi (x)\neq 0$.   There is theorem stating that $f(0_S)=0_R$  (Need to show that in the case $\exists x \in F:\phi (x)\neq 0$ $\implies$ injective)  Assume $f(a)=f(b)\equiv f(a-b)=0_R=f(0_s)$ so $a-b=0_s$$\therefore$ $a=b$    Not sure it might be correct. Also, In the case that shows it is injective it is bothering me that the special property was not used.  There is a related problem but it is a  So i think i can't make  same


Ubuntu 20.04 disable notifications at startup

Is there a way to disable lock screen notifications at startup? Reason I am asking is that every time I boot up my laptop, I get the "printer added" notification, and it gets incredibly annoying. Disabling printer notifications and lock screen notifications does NOT work (it only works after login, which defeats the purpose) I have tried to see if the printer added notification could be fixed as a bug, but the bug report has since been ignored...


Question using Multirow and Multicolumn together

This is a question link from a previous question   The proposed answer is using:  \multirow{-4}{*}{\thead{Pair number \\   I could not understand the meaning of -4. usually is positive number.    Basically, I want to have the content to be a center, so the table looks nicer    The MWE:  \documentclass[12pt,oneside]{book}  \usepackage[showframe]{geometry} \usepackage{amsmath} \usepackage{ragged2e} \usepackage{booktabs, makecell, multirow, tabularx,             threeparttable, tabulary} \renewcommand\theadfont{\small\bfseries} % for bold in table using \small \renewcommand\theadgape{} \usepackage[svgnames, table]{xcolor} \usepackage{siunitx} %for table spacing to second row \usepackage{graphicx}  \usepackage[font=small,             labelfont={bf,sf}, textfont={sf},              justification=centering]{caption}  \begin{document}      \begin{table}[ht] \centering  \begin{tabular}{lrr}     \toprule     &       &           \\  % fake line     \addlinespace     &   \multicolumn{2}{c}{\thead{Accuracy Accu Accuracy (\%)}}\\      \cmidrule{2-3}  \multirow{-4}{*}{\thead{Pair number \\                         (Class 11 sample sample \& \\                         Class 22 sample sample \\                         Reference X sample sample)}}     & \textbf{Accuracy} & \textbf{Inaccuracy}                   \\      \midrule Pair 11 (A8  \& B35) & 0    &   0 \\ Pair 12 (A10 \& B42) & 0    &   0 \\ Pair 13 (A8  \& B32) & 0    &   0 \\         \bottomrule     \end{tabular} \end{table}  \end{document}   Below is the solution I tried to move around.  (1) If I delete our the & & \\ %fake line, and add in several \addlinespace  \begin{table}[ht] \centering  \begin{tabular}{lrr}     \toprule      &       &           \\  % fake line      \addlinespace       \addlinespace        \addlinespace              \addlinespace     &   \multicolumn{2}{c}{\thead{Accuracy Accu Accuracy (\%)}}\\      \cmidrule{2-3}  \multirow{-4}{*}{\thead{Pair number \\                         (Class 11 sample sample \& \\                         Class 22 sample sample \\                         Reference X sample sample)}}     & \textbf{Accuracy} & \textbf{Inaccuracy}                   \\      &  &    \\  % fake line      \midrule     (2) I tried to add in & & \\ %fake line at the bottom. But looks ugly.   \begin{tabular}{lrr}     \toprule     % &       &           \\  % fake line      \addlinespace       \addlinespace        \addlinespace              \addlinespace     &   \multicolumn{2}{c}{\thead{Accuracy Accu Accuracy (\%)}}\\      \cmidrule{2-3}  \multirow{-4}{*}{\thead{Pair number \\                         (Class 11 sample sample \& \\                         Class 22 sample sample \\                         Reference X sample sample)}}     & \textbf{Accuracy} & \textbf{Inaccuracy}                   \\     % &  &    \\  % fake line      \midrule     (3) I am taking of using  \multirow and \multicolumn together.  &   \mutlirow{0}{*}{\multicolumn{2}{c}{\thead{Accuracy Accu Accuracy (\%)}}}\\    But couldn't make it up.


I had a spiral ham delivered, outside in shade for right at 2 hrs. Ham was still cool to touch. Is it still good?

I just had a vacuum packed spiral ham delivered from the grocery. It was in the shade and outside temp in the '80s. It sat out there for right at 2 hours. It was still cool to chilly to the touch. Is it most likely to be good, or bad? It's killing me to throw that money away but I need know what's what here.


Solving a double integration in parametric form

I need help to find the surface area of the part of the paraboloid that lies in the first octant, meaning $x,y,z\ge 0$, of $z=5-x^2-y^2$.  So I found that I need to parametrize the paraboloid using cylindrical coordinates: $${\bf x}(u,v) = (u \cos v, u \sin v, 5 - u^2),$$with $0 \leq u \leq \sqrt{5}$ and $0 \leq v \leq \pi/2$. Then compute: $$\int_0^{\pi/2} \int_0^\sqrt{5}\|{\bf x}_u \times {\bf x}_v\|\,{\rm d}u\,{\rm d}v.$$ But I need help doing this. Can someone please help me continue on with this?


Are lower-order interactions a prequisite for three-way interactions in regression analysis?

I'm applying growth curve modelling and am interested in modelling a three-way interaction between predictors A x B x C. From what I remember a condition for modelling three-way interactions in regression analyses is to model all underlying related interactions as well (so AxB, AxC, and BxC in order to be allowed to model AxBxC). Can anyone confirm this (preferably providing a source) or am I confusing things and I could happily model higher-order interactions without including those lower order interactions of less interest?


How to avoid WSP deployment globally using Visual Studio 2010?

How can we avoid the Globally Deployment of a WSP using Visual Studio 2010?


friends.  The question is:   Find the value of $ \sum_{n=1}^{\infty} \frac{n^3}{3^n} $. I know this sum converges and that it's value is $ \frac{33}{8} $, however, I can't seem to find it.  I've tried doing $3S-S$ to try and find a pattern, tried using different subtractions, all to no avail.  Any help would be gladly accepted.  Thanks in advance, Pedro


How do I create repeating patterns with cycles' procedural textures

Most people's question in this area is how to reduce repeating patterns, however I want to create them.  I'm creating 2d rendered tiles for my game, and I want to create procedural materials for my tiles that will seamlessly match. For that I need the cycles procedural textures to repeat on a predictable interval.  I've looked at similar threads, and they only deal with simple gradients, or images, not things like voronoi, musgrave, noise. I haven't been able to figure out how to scale/manupilate with math, the procedural nodes to any degree of repetition.


Project point onto line in Latitude/Longitude

Given line AB made from two Latitude/Longitude co-ordinates, and point C, how can I calculate the position of D, which is C projected onto D.  Diagram:


WebClient: How to set the host name (host header)?

How can I set a Host header value with WebClient that is different than the one I use in the URL? For example, in  webClient.OpenRead("http://192.168.10.10/");   the host header value would be "192.168.10.10" but I want it to be something different (e.g. "example.org").


Volumetric flow rate as a function of radius of pipe

I have a container (assume open on top) with $1m^3$ of water. That water exits this container from an opening that has a cross-section area A e.g. $πR^2$ = $1cm^2$.    What is the volumetric flow rate I get out of this opening? I have a feeling that it's related to $R^4$ due to  but on the other hand it has the $|DP|$ that might also be related to R in some way. Is there any way to force the volumetric flow rate to be ~$R^2$ (e.g. adjusting the pressure with a mechanical way?)


So in this example I want to find the extension produced in the spring. The two methods are given in the image.( First one is by force method and the other one is energy method). The two yield different results. Where did I commit the mistake?  In the second method I have assumed that kinetic energy of the block is zero as it is slowly released, not suddenly.


Einstein-Cartan Theory with modern Cartan structural equations?

I cannot find real derivations and analysis of the . This can probably be a neat up-climb to a Cartan structural summit, or very close.  I am not asking this because I want it quantum. The naturalness and the easy way to have no singularities because the space time field itself yields to finite stress just due to asymmetry in the tensors is what's interesting. The Cartan theory makes the difference clear, so it is appealing.  Worm whole to the new space time instead of singularities. Much better.  Anyone has suggestions?   I do really mean arriving at the structural equations and the properties of the spin connection.


Oracle: What does `(+)` do in a WHERE clause?

Found the following in an Oracle-based application that we're migrating (generalized):  SELECT     Table1.Category1,     Table1.Category2,     count(*) as Total,     count(Tab2.Stat) AS Stat FROM Table1, Table2 WHERE (Table1.PrimaryKey = Table2.ForeignKey(+)) GROUP BY Table1.Category1, Table1.Category2   What does (+) do in a WHERE clause? I've never seen it used like that before.


double value changing once stored in mysql database

I have the following code that converts my satoshi value to a bitcoin value: private static double satToBtc(long sat){         return sat / Math.pow(10, 8);     }  now I have the following code executing:             double btc = satToBtc(value);             User user = User.getUserByDepositBitcoinAddress(address);             if (user == null) return;             try (Connection connection = MySQL.getConnection();                  ...                   statement.setDouble(3, btc);                 ...                  return;             }  now what is happening is, I am given the satoshi amount of 100,000 which is worth 0.001 (the function returns exactly 0.001) bitcoin but when I store it in my mysql table it sets the value as: 0.00000001. How do I go about fixing this? EDIT - UPDATED satToBtc function:     private static BigDecimal satToBtc(long sat){         return new BigDecimal(sat / Math.pow(10, 8));     }


Is it true that etymology is the leading tool to understand the correct use of words?

In discussions about the meanings of words I often find participants bring up the etymologies as though they are conclusive deciding factors.  On the other hand there is concept of the "etymological fallacy" .  Which is true? Or is the truth somewhere between? If words change over history how relevant is their origin to their current meaning? If the etymology of a word is a trump card which can settle debates about correct usage of words does this mean words cannot in fact change over time?


How to enable GPU rendering on older Nvidia GPUs?

I have an older Nvidia graphics card that I would like to use for GPU rendering with cycles. However, I am having difficulty enabling this feature. If I open up User Preferences, I see the following:    The only available option is "CPU". I don't see GPU listed anywhere. What do I need to do to enable GPU rendering on my machine?  Software:   Ubuntu 13.04 64-bit Nvidia binary driver version 304.88 Blender 2.66a   Hardware:   Intel Core 2 Duo @ 1.6GHz Nvidia GeForce 8400M GS


Vector lengths: How to prove this inequality?

I plugged in the summations, tried to square both sides but couldn't reach the desired conclusion. I'm not sure what the second vector would be for the Cauchy inequality. Even when I use the vector itself as the second vector, I still don't see how I could do this.


How do I prove this equality $\displaystyle \sum_{k=0}^n \frac{1}{k+1}\text{C}_n^k=\frac{2^{n+1}-1}{n+1}$?

I want to prove it using induction, how can I do it? I tried my own way: $$2^{n+1}-1=\displaystyle \sum_{k=0}^{n+1}\text{C}_{n+1}^k-1=\displaystyle \sum_{k=0}^{n}\text{C}_{n+1}^k=\displaystyle \sum_{k=0}^{n}\text{C}_{n+1}^{n-k}=...$$ $$\text{C}_{n+1}^{n-k}=\frac{n+1}{k+1}\text{C}_n^k$$ - it's easy to check $$...\sum_{k=0}^{n}\frac{n+1}{k+1}\text{C}_n^k=(n+1)\sum_{k=0}^{n}\frac{1}{k+1}\text{C}_n^k$$


why to avoid check for null after new as per ISO C++

ISO C++ says...  Fred * p = new Fred();  // No need to check if p is null   No need to check p for null why is that so ?


Convergence of a sequence by convergence of sub-subsequence

Suppose that $\{p_n\}_{n \in \mathbb{N}}$ is a sequence in a metric space $X$. Assuming that every subsequence of $\{p_n\}_{n \in \mathbb{N}}$ has itself a subsequence that converges, say, to $p$, show that $\{p_n\}_{n \in \mathbb{N}} \to p$.    Solution Attempt:  Take $ \mathbb{N} \supset K := \{n,n+1,n+2, \ldots\}$ for $n \in \mathbb{N}$ to be our subsequence. Now, there exists $J_1 \subset K \subset \mathbb{N}$ so that $\{p_j\}_{j \in J_1} \to p$. If $J_1 = K$, we're done, otherwise assume $J_1 \subset K$. Thus, $K \setminus J_1$ is non-empty, take it to be our subsequence. Thus, there exists $J_2 \subset (K \setminus J_1)$ so that $\{p_j\}_{j \in J_2} \to p$. If $J_2 = (K \setminus J_1)$, we're done, otherwise assume $J_2 \subset (K \setminus J_1)$ so that the next iteration is non-empty. Inductively let, $$K \setminus \bigcup_{i=1}^{k} J_i$$ be our next subsequence so that there exists $$J_{k+1} \subset \Big(K \setminus \bigcup_{i=1}^{k} J_i \Big)$$ so that $\{p_j\}_{j \in J_{k+1}} \to p$. It is possible that we are left with a finite set $B \subset K$ so that $B$ is never in $J_k$. In this case, set $m = \max\{B\}$, so that the original sequence converges above $m$. Thus, $\{p_n\}_{n \in \mathbb{N}} \to p$ as desired.    Is this a correct proof? I proved the statement by contradiction rather easily, but I wanted to try my hand at a direct proof. Any comments are appreciated.


Answers which are considered too short to be a good answer shouldn't be used for review audits

I have had review audits several times in the review queues which are mostly fine. They usually included a short (non comprehensive) description of the solution and a link to a howto with the full solution.  You may argue that such answers are not the best way to answer a question, but I guess they helped the user if he was willing to follow and read the link. So I do not think that they should be used as review audits, as it is quite debatable if they are low quality just because they do not quote the link in the answer.  EDIT: You asked for an example, here is another one I found just now:   The post is short, contains a very short abstract of a solution and a link to a howto which looks as if it answers the question in a more comprehensive way. Deleting this answer is a bad idea, as it contributes useful information. Instead of deleting it should be kept until somebody has the time to improve it by extracting the part relevant to the question from the howto and adding it to the answer.  When looking at the page I see that right after me the next user failed. You may think its bad quality, but it is no good idea to use it for review audits as it can be discussed if it is helpful or not.


Send data from Lightning Web Component (LWC) to a Visualforce page

I am adding an LWC component in visualforce and need to add a handler for an event fired in the LWC component on the visualforce page. When googling all I can find is examples of how to do this with aura component using application events. LWC controller: handleSearchClick() {              const searchinfo = {          shipper: this.shipper,         system: this.system,         product: this.product,         status: this.template.querySelector('c-lwc-multi-select').value(),         period: this.period       };     this.dispatchEvent(new CustomEvent(         'dosearch',          {             detail: { data:  searchinfo},             bubbles: true,             composed: true,         }     ));     console.log({ 'lwcNominationSearch searchinfo': searchinfo }); }  AURA app: <aura:application extends="ltng:outApp" access="GLOBAL"> <aura:dependency resource="c:lwcNominationSearch" /> <aura:dependency resource="markup://force:*" type="EVENT"/> </aura:application>  Visualforce: <div id="rcontainer"> </div>  <script>     $Lightning.use("c:NotificationSearch_ltngoutApp", function()     {         $Lightning.createComponent(         "c:lwcNominationSearch",         {},         "rcontainer",         function(cmp)         {             console.log('component created');              //$A.eventService.addHandler({ "event": "c:myEvent", "handler" : visualForceFunction})               $A.eventService.addHandler({                 event: 'dosearch',                 handler: function (event) {                          console.log("vf event success");                 }             });          });     }); </script>


Illustrator exporting to PDF vectors have gaps

I'm creating logo with illustrator, and when I export to PDF, where the meshes joins I get gaps which doesnt look good when you work in photoshop or looking in PDF reader.    I have one solution to fix it - make one shape go under the other. BUT it's not good thing for a logo, if in future it goes to printing and similar things..


Changing SRID of existing data in PostGIS?

While importing my shapefile data to PostGIS, I did not select the proper Projection.  How do I now change the SRID of the data, without transforming the Coordinates?


Why the shell does not terminate when pressing Ctrl+C on the terminal?

When the shell is not running any process, if I press Ctrl+C on the terminal, the shell will not terminate. Is this simply because the shell ignores the SIGINT signal, or is there another reason?


How to curve the tops or bottoms of texts like this?

I tried googling letter art, but I don't know what it is exactly called, so my research was not fruitful. I'm talking about the part "Backwoods Distilling".  How to curve the tops or bottoms of texts like that?  PS. I know many of you will give the solution in Illustrator, which is very much welcome, but if someone knows how to do it Affinity Designer, please tell as well.


When we define complex numbers we start creating a field on R2. I think that is impossible to do the same thing on R3 and, in general, on Rn. Do a theorem exist which prove that?


I'm sorry if this is duplicated, but I can not find any answer to it.


Can you sacrifice a creature that's in the middle of an attack?

Earlier tonight, I was playing magic. My opponent had a card out that allowed him to place a 2/2 goblin token on the board for every creature that made an attack. He also had one out that allowed him to sacrifice one of his creatures and destroy any nonland permanent.  He declared an attack with one of the goblin tokens, thus placing another goblin token on the board. He then sacrificed the attacking token before it attacked and my blocker destroyed it.  I'm new to the game, but it seems to me that if he sacrificed it prior to its attack, it shouldn't have counted as an attack. So he couldn't have placed the new token on the board. Am I wrong?


I have a very stupid question perhaps, but please answer me. An atom consists of electrons, protons, neutrons. protons are positively charged and electrons are equally negatively charged. The charge of the electrons stabilizes the charge of protons. Why are neutrons present? My question is why physicists believe that neutrons are also present when the charge of electrons and protons can stabilize each other.


Excel - How to compare columns for equal values

I have an Excel sheet which has two columns. Both columns have numbers. The first column contains more numbers than the second column. I want to find which all numbers in the second column are there in first column and which are not.  For example consider the following as an example:  Col A | Col B 1     |2 2     |5 3     |7 4     |10 5     |15 6     | 7     | 8     | 9     | 10    | 11    | 12    | 13    | 14    | 15    |


Merge root partition with unallocated space

The root partition space in my Ubuntu 18.04 LTS is almost exhausted, so I want to extend this partition. This is a picture from :. I want to merge the /dev/sda8 partition with the unallocated space preceding it. I used sudo resize2fs /dev/sda8, and it gave resize2fs 1.44.1 (24-Mar-2018) The filesystem is already 4941312 (4k) blocks long.  Nothing to do!  I was following  link. But it is not working. Is there any way of achieving what I want to do without using a live Gparted session? And also, is it absolutely necessary to have swap space adjacent to /?


I'm trying to understand the reason for a difference in speed on my Wifi network vs using an ethernet cable. Hooking a laptop directly into the cable modem shows speeds 28 Mbps down and 5 Mbps up (Speedtest.net results). If I hook it up via ethernet to the router it maintains that speed. So the router itself doesn't cause a slowdown. But if I switch to wifi my download speed drops 8-10Mbps.  This is when the laptop is right next to the wireless router so it's not due to distance. I have also tried switching to the different channels and have received similar results. I realize the 54Mbps advertised by the wireless router is somewhat of the theoretical speed and it might be below that. But it should be able to handle the 28Mbps I would think without a problem. The link speed showing on my computer is 54Mbps so the computer thinks it has a good connection. What else am I missing?


I am trying to do date comparison in javascript.Through a web service call I am getting a date in the form of ""2014-07-02T09:49:49.299Z" and from database I am getting the dat like "2014-07-11 16:01:34".I need to compare these two dates after doing some kind of formatting.i am not sure how to format these two kind of dates to a common format.  Thanks in advance.....


How do you choose an open-source license?

I'm a software engineer, not a lawyer, and my university doesn't offer any courses geared toward licensing software. In fact, their law-related courses are lacking (but slowly growing in number). Where can I go to learn about open-source licenses and how to choose them?


Is a submodule of a free module also free?

Is a submodule of a free module also free ? For me it looks natural that yes, but in my course it's written that it's only true for a module over a PID and I don't really understand why. Any example ?


How to make a script, which will write a string "signal caught" after sending 'interrupt signal' (after pressing ^C on the console, where the script was executed). On top of that after pressing third time CTRL-C it will ask user, if it should end (yes/no). If answer is "no" it will end.


If atoms have specific energy levels, why do opaque solids absorb all visible light, not just some?

Here's my question: if atoms have well defined energy levels and those differences correspond to the frequencies of light that can be absorbed, how is it that opaque objects absorb all or most visible light frequencies?, frequencies get absorbed and you basically don't have any visible light coming out on the other end.   Shouldn't only those frequencies that have to do with its energy levels get absorbed? Yes, I realize ordinary materials have many different compounds, but surely they don't add up to an infinite number of energy levels? Thanks.


Short story with explorers or tourists on a planet with dangerous, but attractive glass plants

I read this in the past 3 years, but I'm sure it was in an old (1950s most likely) pulp magazine that I read once I discovered that the Internet Archive had hundreds of them.  The story concerns either explorers or tourists.  (I think I may be conflating 2 stories.)  At least there are 2 or more characters, 1 being more experienced than the other(s).  They land on a planet where some/many of the species incorporate silica (glass) in their structure.  One character is attracted to a field of low plants whose chiming is very pleasant, maybe even hypnotic.  The more experienced one stops him/her just before he/she walks into the plants, pointing out the razor-sharp edges of the plants and the bones scattered among them.  There may have been an illustration accompanying the story.


Evaluate the series $S_n = \sum_{k=1}^n\log\frac {k (k + 2)}{(k + 1)^2}$

I am having trouble with (a) and (b):  I evaluated (a) and I got that sun of the first three terms does not equal $\ln(5/8)$. I got that it is equal to $\ln(3/4) + \ln(2/3) + \ln(15/16)$ which is not equal to $\ln(5/8)$.  I am also having trouble with part (b). I cannot figure out how to calculate the math to cancel out the $(k+1)^2$ and turn it into $2(n  +1)$.  Any help would be amazing.


A family of events such that all proper subfamilies are independent, but the entire family is not

I'm trying to find an example for $n$ events such that each $k$ ($k < n$) are independent, but the $n$ events together are dependent.  Two events are independent if the probability for both of them to happen equals to the product of the probability of each one separately.


Colder surface radiates to warmer surface

When radiation from a colder source arrives at a warmer surface there is some debate about what happens next. To make the question more concrete lets say that the colder source is at temperature 288K. The warmer surface is at 888K and has emissivity of 1. 3 possibilities   We ignore such radiation because it cannot happen. The radiation is subtracted from the much larger radiation of every wavelength leaving the hotter surface. The radiation is fully absorbed and its effect is to be re radiated at characteristic temperature of 888K (plus infinitesimally small T increase due to radiation absorption).   I would have thought that 2. and 3 are more plausible than 1.  Both 2 and 3 satisfy the Stephan Boltzmann equation. 3 however seems to imply that the radiation from colder object is transformed into much higher quality radiation and a possible second law of thermodynamics infringement.


Adding page numbers to footnotes using style=verbose-ibid style

I've just started using LaTeX and would be really grateful for some help in with citations.   I have been using the verbose-ibid style and understand how to add page numbers when referring to a single item in a footnote, I'm struggling, however, to include pages numbers when citing more than one one item in the same footnote.  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{csquotes}  \usepackage[style=verbose-ibid, backend=biber, giveninits=true, citepages=omit]{biblatex}  \addbibresource{biblatex-examples.bib}  \renewcommand*{\newunitpunct}{\addcomma\space}  \begin{document} Lorem\autocite[381]{sigfridsson} ipsum\autocite[200]{spiegelberg} \printbibliography \end{document}   The code above allows me to generate two footnotes, which each include page numbers. Please could someone tell me how to combine these citations into one footnote, while retaining the page numbers.


Find positive integers such that $2n^3 + 5|n^4 +n+1$


RSA encryption/decryption values not working as expected

I'm faced with an issue I can't seem to understand when it comes to RSA. Below are my values for all of the parameters, unfortunately I can't seem to get the expected decrypted values from my encryption message p=113, q=117,phi=12992,n=13221 encryptionKey = e = 8473 decryptionKey = d = e^-1 = 12969 msg = 3; (encryption) cipher = (3)^(8473) (mod 13221) = 6633 (decryption) msg = (6633)^(12969) (mod 13221) = 12546  why is the msg prior to encryption not equal to msg after encryption? how to get them equal ?


Database.Saveresult into a list of object

I have a list of Line_item__c which is storing my line items as  List<Line_Item__c> toInsertList = new List<Line_Item__c>();   I am inserting these records in database using the below statement :  List<Database.Saveresult> insertResults=Database.insert(toInsertList, false);   Now the result is stored in insertResults which is of Database.Saveresult type but i want the result in a list of Line_Item__c. How do i do this. If anyone has a idea, it will be of great use.


Is that possible in SOQL to concatenate two fields?  SELECT id,name,Description, Make__r.Name + '  ' +            Model__r.Name + ' ' + Model_Year__c  FROM my_custom_object__c


I've been making an adventure map and I want to make an Orc with armor and a custom player head. I did it kind of like you do with /give (/give @p skull 1 3 {SkullOwner:player you want} I am just using my player's head as a placeholder for now. Instead of giving me a mob with player head it doesn't even summon the mob. I am using minecraft 1.12. The command:  /summon minecraft:zombie ~ ~1 ~ {LeftHanded:0,Health:20,Fire:0,HandItems:[{id:"minecraft:iron_sword",tag:{display:{Name:"Orc Sword",Lore:["Bloody and rusted..."]},ench:[{id:16,lvl:3},{id:22,lvl:3}]},Count:1},{}],HandDropChances:[2F,0F],ArmorItems:[{id:"minecraft:iron_boots",Count:1},{id:"minecraft:iron_leggings",Count:1},{id:"minecraft:iron_chestplate",Count:1},{id:"minecraft:skull",{SkullOwner:CandyCaneFeeder},Damage:3,tag:{display:{Name:"Orc Head",Lore:["A trophy of your success against an Orc!"]}},Count:1}],ArmorDropChances:[0F,0F,0F,0.94F]}   The mob head I'm hoping to use instead of placeholder:  /give @p skull 1 3 {display:{Name:"Orc"},SkullOwner:{Id:"aa9cfe76-e245-4e2b-9ee1-dc78e3b02137",Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWIzMWEzYjBlMjFlMjY1MDQ2NjljM2VlYmM4M2ViMjY2YWVmZGQ0NTZlN2UxZTQ3ZTM0MmQ5N2YwYmZhZjkifX19"}]}}}   How can I do it?


Find out number of bits needed to represent a positive integer in binary?

This is probably pretty basic, but to save me an hour or so of grief can anyone tell me how you can work out the number of bits required to represent a given positive integer in Java?  e.g. I get a decimal 11, (1011). I need to get the answer, 4.  I figured if I could work out how to set all the bits other than the most significant bit to 0, and then >>> it, I'd get my answer. But... I can't.


With a lot of help from gis.stackexchange.com I've created leader lines for point symbols. The lines are based on a geometry generator symbology:      Now, I want to implement leader lines for moved labels. It's very importent to me, that the lines start at the center of the labels and end at the point coordinates (or vice versa).  -- Geometry generator: make_line(     make_point(label_x, label_y),     $geometry)   Once again, the lines are covered by the labels:      Is there a way to address the label boxes and shorten the leader lines? I suppose this is quite a tricky question :/


Touchpad broken, firefox crashes, no space in /boot and antivirus

I've been running Ubuntu 14.04 for several days on a Toshiba satellite 600 series. It was designed for windows 7.  It might be a little bit damaged by a lightning strike in May 2015.  The issue is that the touchpad doesn't move the cursor - and also that Firefox web browser closes on it's own  Today I wanted to run an update but the computer told me that there is not enough space on the partition an to run sudo apt-get clean, but I don't know how to use this command.  I'm wondering if the computer has a virus - is there any antivirus system for Ubuntu?  Finally, I installed with encryption - can I remove that?


Does used Apple hardware comes with macOS license?

I have been on eBay, looking for a used Mac mini and to my surprise it said, the system comes without any operation system (disk erased). It is still an Apple product and I wonder, is it possible to not have a "right" to at least an older (original sold) version of macOS?  A good answer would hence point out the aspects:   Can Apple computers be bought without a license? Can Apple macOS licenses be transfered in a way that a Apple Computer ends up without an OS?   update  A comment suggested specifying the model of the Mac Mini. As suggested the product was seen on ebay, where vendors not always care/are able to provide a model number. This being said, the Mac Mini in question was described as only using its hardware attributes:      Apple MAC MINI 1,66 GHz Intel Core Duo   Considering the comment/ request about the model, an answer could highlight if the OS / OS license is depending on the model/product?


If the Handshaking Theorem holds for a sequence of vertices, does there always exist a graph?

I was given a bunch of degree sequences and had to determine whether or not a graph was possible. I used the Handshaking Theorem and concluded there was no graph if the sum of degrees was odd. However, a lot of the times it summed to an even number but there was no simple graph for the sequence. All the time there was a non-simple graph, however. Will there always be a non-simple graph?


How can I find the center of ellipse given an Arc and ellipse radii?

I have an arc with start and end points and also I have width and height of the ellipse. Using these can I find center of the ellipse?  hi Stefan,  how can i calculate $(x,y)$ center , can u give idea?


What is it used for and why  doesn't it equal $\log{x^2}$?


How could we use the Residue theorem to calculate the following integral:  $$\int_0^{2\pi} \frac{1}{1-2p\cos{x} + p^2} dx$$  where $p$ is a real constant, such that $p\in ]0,1[$  Thank you!


We are travelling from the USA to the UK/Scotland/Ireland for a family wedding/ tourism in November 2019 (for 2 weeks).  My husband was convicted of Assault,Family Violence in 2017 (misdemeanor). He’s a US citizen and in Texas.   Complicated story, but he should never have been arrested, albeit for a rogue cop that was "after" an arrest. The "victim" (daughter) told cops not to press charges and he did anyway under The State!  No sentence, just time served (3 days).   Anyway, could this affect him entering the UK?  If so, should he apply for a Visa? We haven't travelled to the UK before.  I'm Australian, so won't have an issue.  Thank you for your assistance.


Was the character of Dumbledore in Harry Potter Gay?

I was just wondering if Dumbledore is gay? The portrayal of his character in the movie gave me that impression. Is there any canon information about his sexual orientation?


$(a,b) \mathbin\# (c,d)=(a+c,b+d)$ and $(a,b) \mathbin\&(c,d)=(ac-bd(r^2+s^2), ad+bc+2rbd)$. Multiplicative inverse?

Let $r\in \mathbb{R}$ and let $0\neq s \in \mathbb{R}$. Define operations $\#$ and $\&$ on $\mathbb{R}$ x $\mathbb{R}$ by $(a,b) \mathbin\#(c,d)=(a+c,b+d)$ and $(a,b) \mathbin\&(c,d)=(ac-bd(r^2+s^2), ad+bc+2rbd)$ as addition and multiplication, respectively. Do these operations form a field?  I have shown that every axiom of the field is satisfied except for the "existence of multiplicative inverses" axiom. This is where I need help. We either need to show that this axiom fails and so we don't have a field or that the axiom $aa^{-1}=1$ is satisfied for every $a\neq 0 \in \mathbb{R}$  The multiplicative identity in this problem is $(1,0)$.  Any solutions or hints are greatly appreciated.


Render in Eevee with default skyboxes? ("Scene World' ticked off in Viewport Shading)

How can I render using these skyboxes?  Thanks!


Push topic and empApi filtered subscription not working after record page refresh (F5)

I need to use filtered subscription using lightning:empAPI for Push Topic notifications. But it does not work with Id filter after records page refresh (F5) whereas when it subscribes on the first place the notifications are coming in. Does it mean that only one active filtered subscription has to exist for the record and user session? If so how can I unsubscribe prior the component is reloaded and new subscription is initiated during refresh (F5).                       <aura:attribute name="channel" type="String" default="{!'/topic/QuoteProcessing?Id=' + v.recordId}"/> <!--<aura:attribute name="channel" type="String" default="/topic/QuoteProcessing"/>--> <aura:handler name="init" value="{!this}" action="{!c.doInit}" closable="false"/>  // doInit just executes helper.subscribe helper.subscribe(component, event);  // helper.subscribe subscribe : function(component, event) {         const empApi = component.find('empApi');         const channel = component.get('v.channel');         const replayId = -1;         //var Qchannel = '/topic/QuoteProcessing?Id='+component.get('v.recordId');         // Subscribe to an event         //console.log('Qchannel '+Qchannel);         empApi.subscribe(channel, replayId, $A.getCallback(eventReceived => {             console.log('Received event ', JSON.stringify(eventReceived));               $A.get('e.force:refreshView').fire();               var toastEvent = $A.get("e.force:showToast");             toastEvent.setParams({             mode : "dismissable",                 message : "Processing  - "+eventReceived.data.sobject.ProcessingStatus__c,                 type : "info",                 duration : 8000             });             toastEvent.fire();            }))         .then(subscription => {             console.log('Subscribed to channel ', subscription.channel);             console.log('subscription ', JSON.stringify(subscription));             component.set('v.subscription', subscription);         });             empApi.onError($A.getCallback(error => {             console.log('EMP API error from subscribe: '+ JSON.stringify(error));         }));        }   PushTopic query contains Id and the field I am changing in SELECT clause. Subscription is established but notifications are not coming.


I would like to add a simple caption "Figure [number]" before an image in my document. If I just use  \begin{figure}[h!] \centering \includegraphics[scale=0.5]{galor3.png} \end{figure}   there is no caption.  If I add  \caption{}   I get the caption "Figure 1.1:". Of course, this code generates a colon, because it expects some caption after the figure number. I would like to have the images numbered without the colon. Is it possible? Thanks


Probability: NEED HELP to Understand with the follow

I need help to understand the probability derviation of a paper. Please help me. For the following, please only treat $|h_{R,B}|^2$ and $|h_{A,R}|^2$ as random variables (other parameters can be treated as constants). Those two random varibles are i.i.d. such that they are exponential distributed with parameter $E[|h_{R,B}^2|]$ and  $E[|h_{A,R}^2|]$ respectively for $|h_{R,B}|^2$ and $|h_{A,R}|^2$.  In particular, I don't understand what he did after line 74 (the yellowed part).


How do I connect using ssh over a direct Ethernet connection?

I have a laptop, a desktop, and a spare 5' Ethernet cable that I can use to directly connect one to the other. The desktop freezes every few days or so, seemingly at random, and when it happens I want to be able to ssh into it as mentioned  so I can make a proper bug report and get this fixed.  Unfortunately, the linked guide doesn't give any instructions on how to do this. Can someone provide a step-by-step answer on how to ssh from my laptop into my desktop when the latter freezes, and also how to conveniently retrieve the necessary files once logged in to attach to the bug report?  A couple things to keep in mind:   I'm using standard desktop Ubuntu installs on both systems. If there's any extra packages I need installed beforehand, let me know. My machines each have only a single Ethernet port; the desktop uses this for its wired-only Internet connection, and my laptop on the other hand uses an 802.11n WiFi connection. Only one machine can use the wired connection at a time due to network restrictions in my dorm, and the wireless connection my laptop uses is very unreliable. Thus, answers should preferably not depend on a working Internet connection, but rather a direct connection between the two machines, if that's possible. I've never logged into one of my own machines from another of my own before, so assume I know nothing and be sure to provide plenty of details. :)


For random generating string how to fix "for loop initial declaration used outside c99 mode"?

Random string generator using C programming. How to fix "for loop initial declaration used outside c99 mode"?  void generate_string(char **string){      srand(time(NULL));     int numOfChars=rand()%9+1;     int i=0;     char temp[numOfChars];      for(i=0;i<numOfChars;i++){         char tmp ='A'+rand()%26;         temp[i]=tmp;       }      temp[i+1]='\0';     strcpy(*string,temp); }       int main()     {     char *str;     str= (char*)malloc(11 * sizeof(char));     generate_string(&str);     int len=(int)strlen(str);         printf("Random String:");     for(int i=0;i<len;i++) {          printf("%c",*str);         str++;        }      return 0; }


Where did Harry's parents get all of their money from?

So, at the beginning of Harry Potter, Harry is found to have a large vault of gold at Gringotts. Where did all of that money come from? What did James (I assume it came from him, as Lily was muggle-born, and they were both young) do to get all of that cash?


Proof of Vector Triple Product by Directions and Magnitudes

I'm trying to prove the vector triple product expansion by magnitude and direction: $$ \vec{a} \times(\vec{b}\times \vec{c})=(\vec a\cdot \vec{c})\vec{b} - (\vec{a} \cdot \vec{b})\vec{c} $$ The equality of direction is easy: using the property of the cross product that $\vec{b} \times \vec{c} $ is orthogonal to both $ \vec{b} $ and $\vec{c} $. But I can't give a correct proof for the latter. Where is my error? My trying is following: Let $ \theta $ be the angle between $ \vec{a} $ and the plane containing $ \vec{b} $ and $ \vec{c} $, $ \varphi $ be the angle between $ \vec{b} $ and $ \vec{c} $ in the plane containing them. The left hand: $$ \begin{align} \Vert \vec{a} \times(\vec{b}\times \vec{c}) \Vert &= \Vert \vec{a} \Vert  \Vert \vec{b}\times \vec{c} \Vert \vert\sin \theta \vert  \\&= \Vert \vec{a} \Vert  \Vert \vec{b} \Vert \Vert \vec{c} \Vert \vert\sin \theta \vert \vert\sin\varphi \vert \end{align} $$ The right hand: $$ \begin{align} \Vert(\vec a\cdot \vec{c})\vec{b} - (\vec{a} \cdot \vec{b})\vec{c}\Vert ^2 & = \Vert(\vec a\cdot \vec{c})\vec{b}\Vert^2 -2 (\vec a\cdot \vec{c})(\vec{a} \cdot \vec{b})(\vec{b}\cdot\vec{c})+ \Vert(\vec{a} \cdot \vec{b})\vec{c}\Vert ^2  \\&= 2\Vert \vec{a} \Vert ^2 \Vert \vec{b} \Vert ^2 \Vert \vec{c} \Vert ^2 \cos^2 (\frac{\pi}{2} - \theta) - 2\Vert \vec{a} \Vert ^2 \Vert \vec{b} \Vert ^2 \Vert \vec{c} \Vert ^2 \cos^2 (\frac{\pi}{2} - \theta)\cos\varphi \\ &= 2\Vert \vec{a} \Vert ^2 \Vert \vec{b} \Vert ^2 \Vert \vec{c} \Vert ^2 \vert\sin^2 \theta \vert  (1-\cos\varphi ) \end{align} $$


Proof of functional completeness (logical operators)

How do i proof the functional completeness of {→,false}? As functional complete is {∧,¬} defined.


I want to use sum in a fraction, but it doesn't like it should. Here's my code: \begin{equation}     \rho=\sum_{I=1}^{N}y_I \end{equation}  \begin{equation}     \rho=\frac{\sum_{I=1}^{N}y_I}{\sum_{I=1}^{N}x_I} \end{equation}  As a reference I've added two images below. one with sum, as it should look, and the other one as a fraction.  I want the sum in \frac{}{} to like it does in a normal equation, that is, the sum range at top and bottom. I have no idea how to implement that. Could anyone please help me?


How to make a clipping mask act like it's supposed to

I'll make this more simple than before, since the answer did not work.    I need the first shirt with the lines behind it look like this:    I just took the lasso tool to create this example, which is not what I want to do. I want to keep it a vector image but have the same outcome.


CSS photo position in top right and inside photo

Hello i want create photo like this image I want this logo to be in the upper right corner and in the person's photo  this is my code

    and this is my  im try add position absolute in logo image and div position relative doesn't work. Help me thank's


Somebody deleted an answer because of an incorrect comment, and I wanted to put a comment on there telling him that the original commenter was wrong, and that he should undelete his answer (which had 4 upvotes at the time).  I had to edit the answer to put "Why was this deleted?!" to get my message through.


Why are the syllables in "elephant" divided in two different ways?

When I'm using Merriam-Webster dictionary to confirm the pronunciation and I found out that the syllables divided in the word and its phonetic are different.  For example, ,  and .     Elephant is divided into el-e-phant which the l is the ending sound of the first syllable, but its phonetic is divided as \ ˈe-lə-fənt \ which the l sound goes the second syllable as the beginning sound.  Experience is divided into ex-pe-ri-ence and the letter r is pronounced as a consonant, but its phonetic is divided as \ ik-ˈspir-ē-ən(t)s\ which the r sound goes to the second syllable, and make an r-controlled vowel sound with the letter e.   How would this happen? I'm totally confused. I really need your kind explanation or some useful material for reference.


let φ: G-H be an isomorphism of groups show that Z(G)≌Z(H)

let φ: G-H be an isomorphism of groups and show that Z(G)≌Z(H). I have no idea how to deal with it.


Obtaining a formula for prediction limits in a linear model (i.e.: prediction intervals)

Let's take the following example:  set.seed(342) x1 <- runif(100) x2 <- runif(100) y <- x1+x2 + 2*x1*x2 + rnorm(100) fit <- lm(y~x1*x2)   This creates a model of y based on x1 and x2, using a OLS regression.  If we wish to predict y for a given x_vec we could simply use the formula we get from the summary(fit).  However, what if we want to predict the lower and upper predictions of y? (for a given confidence level).  How then would we build the formula?


Steps to change Default Salesforce Client Certificate

Yesterday I received an email from Salesforce that . In the required actions, the article said:        If you don’t have an existing self-managed certificate, create one.    Update the API Client Certificate with your new certificate.      So, I created a 'Self-Signed Certificate' and updated it as the 'API Client Certificate'. Is that all needed? Has anyone else done this? I'm assuming the 'Self-Signed Certificate' is qualified as the Self-Managed certificate. Our org doesn't have Single Sign-On or Outbound Messages. It uses Ajax Proxy, getContent() and getContentAsPDF().


Javascript, How to change a value of an internal css class

I have an html file with and internal css style tag, which includes css classes, I'm trying to change the value of color in a class called "header1", when window width becomes less than 700:             I tried to assign the value "red" to the variable hColor, I'm getting nothing, no errors too, it's just ignoring it, tried to test it using alert, I'm getting nothing, no type, no value. My question is: how to change the value of a css class in internal css style sheet using javascript?. I researched lots of answers, found a lot about creating style tag, and changing inlince css values, but not changing the value of internal css style, I found some in JQuery, I'm new to javascript, and I don't know JQuery, is this possible in javascript?  Here's the relevant piece of HTML:  <DOCTYPE! html>

                                  Some Text


How to get the total duration of all video files in current folder and sub-directories

I am trying to get the duration of a bunch of files in current directory and its sub-directories all ending in .mp4. I'm trying to use ffprobe. To make things simple, I am not using find, but ls. If it only lists durations in seconds, it will be fine, since summing them all up would probably be beyond me!   My current effort is like this:    ls -a * |grep .mp4$|xargs ffprobe   This shows      Argument 'SomeVideo.mp4' provided as input filename, but 'DifferentVideo.mp4' was already specified.   How can I make this work? Can ffprobe not just process one file at a time passed via pipe?


Is this sentence grammatically correct?      Shall I get us a Chinese for dinner tonight?   I saw this in a book and it looks a bit strange to me. Should there be an article before the word Chinese?  Thank you!


Is a Schengen visa/transit visa required for a transit flight through two Schengen airports?

I am travelling form Delhi (DEL) to San Francisco (SFO), I have to make a connection flight in Vienna that would take me to Frankfurt (FRA). My flight to SFO is from FRA, I have one ticket for entire journey and the flights are operated by Lufthansa or its subsidiaries.  Do I need a transit visa? My flight arrives at Vienna international airport and leaves from the same, and for second leg it arrives at Frankfurt international airport.  I asked this question as an addendum to my  but was advised to make a new post.  I hold Indian passport and valid US visa.


Marketing Cloud - accessing REST API in a child business unit

I'm attempting to access a Child Business Unit using an Installed Package created in the Parent Business Unit. I am POSTing this payload {   grant_type: 'client_credentials',   client_id: {{ Parent Business Unit client_id }},   client_secret: {{ Parent Business Unit client_secret }},   account_id: {{ Child Business Unit MID }} }  to https://<yourSubdomain>.auth.marketingcloudapis.com/v2/token The error message I'm getting back from the API is {   "error": "invalid_client",   "error_description": "Client authentication failed. Make sure that the client ID and client secret are valid and that the package is installed and enabled.",   "error_uri": "https://developer.salesforce.com/docs" }  I know that the credentials are working because I can successfully get an access token for the Parent BU. I reviewed the post here  and the accepted answer doesn't solve the issue. Is there something I'm missing in the docs about how to access the Child BU?


I am working on an exiting database. All fields seems to be UTF8    Problem is : when I edit some fields in phpmyadmin: I got these chars     En athlÃ©tisme   and selecting ISO-8859-1 works fine  mysql_select_db('myDB'); mysql_set_charset('ISO-8859-1', $con1);    whereas   mysql_select_db('myDB'); mysql_set_charset('utf8', $con1);      gives      En athlÃ©tisme   Question : How can I make it clean and re-encode it all in UTF8 ?


Bash - PS1 not Updating With Proper Hostname after Hostname Change in Script

This is a copy of my post from stackoverflow; I realize I should have asked it here...  I want to run a script that changes the hostname and have my bash prompt (PS1 variable) update immediately with the proper hostname. How do I make this happen?  I run this  #!/bin/bash # Usage: ./changehost <newhostname>  #Do two sed's to edit the files for persistent hostname change sed -i s/$(hostname)/$1/g "/etc/hosts" sed -i s/$(hostname)/$1/g "/etc/sysconfig/network"  #run the hostname command with new hostname to update it hostname $1   In a terminal like so and get this  [user@host dir]# ./changehost newhostname [user@host dir]#    But what I want is this  [user@host dir]# ./changehost newhostname [user@newhostname dir]#    The terminal is updated properly only when I open up a new shell.  I have also tried to do   export PS1='somestring'; export PS1='[\u@\h \W]\$'    outside of the script in the terminal and it does switch to 'somestring' and back, but the hostname is unchanged. :\   Is it possible that the \h is stored in memory when the process begins and can't be changed after startup?


Quantitative method to determine necessary and sufficient causes

I am attending a qualitative methods conference in social science, and one of the speaker argues the following.  In the two graphs below, a researcher using regression would see two regression lines with identical slopes and different intercept -- thus, he would not detect any difference.  In contrast, for a qualitative researcher, the first graph is a perfect case of X being a necessary condition for Y (i.e. Y < X, or Y is limited by X), while the second graph is a perfect case of X being a sufficient condition for Y (i.e. Y > X, or X guarantees a minimum level of Y).     Link to .  Implicitly, the speaker is saying that regression cannot make the distinction that qualitative researchers can. Is this convincing to you? Is there quantitative tool to derive the necessary / sufficient distinction from this bivariate data?


Is there something wrong with df output?

I'm using the command df -h to check disk usage on CentOS 6.4. I see an inconsistency with the output.    look at the line Filesystem: total 490Gb, used 55Gb, and Available 411Gb. What is it mean?  I think that 490 - 55 = 435 ?


Square root without a calculator algorithm

Out of curiosity I'm trying to find an effective algorithm to find the value of a square root of a number(a) without a calculator. I'm trying to find a solution without searching it up.  What I have so far: $$ \sqrt{a} = a^{1/2} $$ $$ a^2 = a.a $$ $$ a^3 = a.a.a $$ $$ a^n = a x .\cdots .n $$ All I need to know is what will $a^{1/2}$ equal to?   I tried: $$ a^{1/2} = a . \frac{a}{2} $$ $$ a^{1/2} =  (a.a)/a $$  But these are definitely wrong


Var[A+B+C] = Var [A] + Var [B] + Var [C]

I know that this relationship is correct when A,B and C are pairwise independent. However, I'm finding it difficult to calculate it.  Let's say that: Var [A] = Var [B] = Var [C] = 0.25. How can I prove that Var[A+B+C] = 0.75?  I started to work with the formula: Var[A+B+C] =E[(A+B+C)^2]−(E[A+B+C])^2 but I got stuck.  Thanks!


What's the correct articulation for abbreviated words?

How to articulate abbreviated words when the original word articulation conflicts the pronunciation of the word?  For example, I would say     A Facebook campaign for Donald Trump   But abbreviating Facebook to FB makes it difficult to keep the articulation intact     A FB campaign for Donald Trump   or      An FB campaign for Donald Trump   Which one is correct?  Second one seems easier to read


Why not allow an external interface to provide hashCode/equals for a HashMap?

With a TreeMap it's trivial to provide a custom Comparator, thus overriding the semantics provided by Comparable objects added to the map. HashMaps however cannot be controlled in this manner; the functions providing hash values and equality checks cannot be 'side-loaded'.  I suspect it would be both easy and useful to design an interface and to retrofit this into HashMap (or a new class)? Something like this, except with better names:    interface Hasharator<T> {     int alternativeHashCode(T t);     boolean alternativeEquals(T t1, T t2);   }    class HasharatorMap<K, V> {     HasharatorMap(Hasharator<? super K> hasharator) { ... }   }    class HasharatorSet<T> {     HasharatorSet(Hasharator<? super T> hasharator) { ... }   }   The  problem gets a trivial solution:   new HasharatorMap(String.CASE_INSENSITIVE_EQUALITY);   Would this be doable, or can you see any fundamental problems with this approach?  Is the approach used in any existing (non-JRE) libs? (Tried google, no luck.)  EDIT: Nice workaround presented by hazzen, but I'm afraid this is the workaround I'm trying to avoid... ;)  EDIT: Changed title to no longer mention "Comparator"; I suspect this was a bit confusing.    EDIT: Accepted answer with relation to performance; would love a more specific answer!  EDIT: There is an implementation; see the accepted answer below.  EDIT: Rephrased the first sentence to indicate more clearly that it's the side-loading I'm after (and not ordering; ordering does not belong in HashMap).


ROC-AUC is higher than accuracy score - what does this mean?

I'm evaluating the performance of a trained neural network, and I'm getting the following stats:     AUC-ROC: 0.91       accuracy: 0.85   How should I interpret this result?  I'll add that the accuracy is a result of one-hotting the output and comparing it against the label, where as the AUC-ROC is calculated using the probabilistic (ie. range 0->1) output of a label. I'm not sure if it is correct to compare the metrics when doing this.


I'm having trouble applying a patch to my source tree, and it's not the usual -p stripping problem. patch is able to find the file to patch.  Specifically, my question is how to read / interpret the .rej files patch creates when it fails on a few hunks. Most discussions of patch/diff I have seen don't include this.


'     Number found where operator expected at ./scripttemp.perl line 5, near   ""sed -i -r "4" (Missing operator before 4?) String found where   operator expected at ./scripttemp.perl line 5, near "}" error.txt""   (Missing operator before " error.txt"?) syntax error at   ./scripttemp.perl line 5, near ""sed -i -r "4" syntax error at   ./scripttemp.perl line 5, near "s/[-.*-]//g}" Execution of   ./scripttemp.perl aborted due to compilation errors. '   I am getting this error running my script :  **#!/usr/bin/perl use warnings; use strict; exec("sed -i -r "4{s/\{\+//; s/\+}//; s/\[-.*-]//g}" error.txt");**   Please tell me what is wrong?


Can I through check my bags on separate bookings (international flights)?

I have two different bookings on British Airways and Emirates.  Booking 1 (British Airways): Washington (IAD) -> London (LHR) -> Dubai  Booking 2 (Emirates): Dubai -> Hyderabad  I have a 5 hour stop in Dubai but do not have a visa to leave the airport. British Airways says they won't through-check my bags. Emirates says it won't be a problem since Emirates and BA are partner airlines.   Not sure what I should do at this point. My flight is tomorrow so its too late to apply for a visa. I have actually done with before without a problem on the same two airlines. The only difference was that it was on a single ticket booked through a travel website.


Increasing the space between tables columns

First of all, apologises for the noob question. Second, I am aware similar questions have been asked but their solutions don't work for me unfortunately. Hopefully someone here can point me in the right direction.   I have a table (markup below), which is rendered very tightly together, which is proving cramped and difficult to read on the document. How can I increase the column width explicitly?  \begin{table}[h] \centering \label{my-label} \begin{tabular}{@{}llll@{}} \toprule {\bf } & {\bf Classifier 1} & {\bf Classifier 2} & {\bf Classifier 3} \\ \midrule {\bf F1-Score} & \multicolumn{1}{c}{71.75\%} & \multicolumn{1}{c}{74.30\%} & \multicolumn{1}{c}{77.86\%} \\ \bottomrule \end{tabular} \end{table}


Why am I not seeing onkeydown when i inspect?

I am using input with an event onKeydown. But when inspect it is not showing onKeydown(It should show). <input type="number"  onkeydown= "return event.keyCode == 190 ? false : true"     class="slds-input" />  When I inspect I am seeing this  Please help me why am I not able to see


Why is the switch drawn like this (NRST, STM32)?

The below part of a circuit is from the AN2586 Reference design for an STM32F1:     RESET goes to the NRST pin of an STM32, and the left clipped line towards a JTAG connector.  B1 is a button, but what is the advantage of having the lines near 3 and 4? What is the difference with a simple 2 pin button?


Installation of Ubuntu 14.10 alongside Windows 7

I want to install Ubuntu 14.10 64bit version in my pc alongside Windows 7 64bit OS. So I have installed Windows 7 and now when I tried to install Ubuntu, it doesn't detect any OS and shows it doesn`t have any OS. What to do now?


Update to Windows 8.1 without using Windows Store

I am currently using Windows 8 on my desktop PC. I want to upgrade to Windows 8.1. I heard that Microsoft provides this update through Microsoft Store for free. But in My home I don't have a faster internet connection. I downloaded a Windows 8.1 ISO from cafe, but when I started installing, it asks for a key. I typed my original Key for windows 8, but it didn't work.  Is there any way for me to update to Windows 8.1 without an internet connection and without purchasing another key?  After I upgrade to windows 8.1 using store, if I retrieved the key using any key finding tools, will it be a new key, and will it work with new installation of windows 8.1?   Thank you


which of the following, inequalities is correct?

let n ≥ 3 be an integer . then the statement   $ ({n!}) ^{\frac{1} {n} } $ ≤  $\frac{n+1}{2}$ is  A) true for every n ≥ 3  B)true if and only if n ≥ 5  C) not true for n ≥ 10  D) true for even integers n≥ 6,not true for odd n ≥ 5  my attempts ;  i was using the stirling formula  $ n! = e^{-n} {n^{n}}  $,, now im getting  $ ({n!}) ^{\frac{1} {n} } $ $  = (e^{-n} {n^{n}})^\frac{1}{n}  $ = $ \frac{n}{e} $ ≤  $\frac{n+1}{2}$..which is true for every n ≥ 3....so correct option is option A).  Is my answer is correct or not .pliz verified  and tell me the solution i would be more thankful..


LWC to display salesforce objects as a picklist onclick

I have a requirement where I need to display list of salesforce objects as a picklist when a radio button is clicked.  Being new to LWC development, I could not figure out what is the right approach to do so. I have come across  from Salesforce articles where we can display radio buttons but as per my scenario, i need to display list of all salesforce objects as picklist when a radio button option is selected.  Can anyone please suggest the right approach to do so.


proof of basic fact that torus actions are diagonalizable

Suppose a torus $T=(\mathbb{C}^\ast)^n$ acts on a finite dimensional vector space $W$, and define for $m \in M$ ($M$ is the character lattice of $T$) the eigenspace $W_m$ by  $$W_m = \{w \in W \mid t\cdot w = \chi^m(t)w \text{ for all }t \in T \}$$ i.e. for $w \in W_m$ is a simultaneous eigenvector for all $t \in T$, with eigenvalue $\chi^m(t)$ depending on $t \in T$. Then it is a famous fact $$W=\underset{m \in M} \bigoplus W_m$$ Can someone provide a somewhat self-contained proof of this result? I don't know much about the theory of algebraic groups.


When I'm trying to copy or move files to a system directory (like C:\Program Files or C:\ProgramData\Microsoft\Windows\Start Menu) nothing happens instead of being prompted for access rights with the usual UAC dialog. The files are not copied/moved and there is no error message.  Here's the story behind it: I got a new PC with Windows 10 installed. There was already a user account "user" created, but I wanted my own account "Florian" with my own name. So I created my account in Administrative Tools and added it to the Administrators group. I switched to my new account and deleted the old "user" account.    Since then I started to setup my PC and install my programs. I tried to copy some portable programs to C:\Program Files when I noticed that I could not simply copy a directory into C:\Program Files. I expected a UAC prompt, but I only got the wait cursor for the fraction of a second and nothing happened. I cannot even delete directories from installed programs.  My user account has no permissions except "special permissions" for C:\Program Files, but as I am in the Administrators group I should be able to modify files there. I checked this with another Windows 10 installation and the permissions are the same.    I get the regular UAC prompt when modifying system settings running programs "as Administrator".  Any ideas why I am not prompted for permission when copying to system folders?


how do I call a function within a class knowing the function name?

I have a function name = "test".  How do I call this.test() function in a class knowing the function name?   I'm guessing I can use the eval() function but that is not working?  How can I call a class function using only the string name in javascript?


I'm used to hearing expressions like 'I got no money' or 'I got a lot of work to do', in which 'got' is used with the same meaning as 'have'. My British friends, however, always put strange faces when I say them. Is it correct to use 'got' instead of 'have' in these sentences? (I guess it's not proper English, but anyway, do people use it in casual speech?)


I already installed Ubuntu 12.04 dualboot on my brandnew Vaio Windows 8 and it doesn't boot any more to windows, so I have a vaio laptop with ubuntu, a thing I can accept but it is impossible to sync the ipod touch 4g iOs 6.1.3 so it (the ipod) became almost useless cus once I tryed to sync with rhytmbox itunes don't recogniz'it any more and the music tracks dont play anymore.  Could anybody help me with this issue?


Blender 2.90 Material outputs and Diffuse BSDF nodes missing

I'm new to Blender, and wanted to try out making a quick Shader. The tutorial I'm following calls for a Diffuse BSDF node, however: When I create a new material, both the BSDF and the default Material output nodes are missing. Does anyone know why this might be happening?


I'm looking to create a function that calculates the top occurring keywords in some text and returns the top 10 most common keywords.   So far I've been using the following code:  public static String KeywordDensityCalc(String articles ) {     String[] body = articles.split(" ");     HashMap<String, Integer> densityTracker = new HashMap<String, Integer>();      for(int densityCounter = 0; densityCounter < body.length; densityCounter++)     {          if (!densityTracker.containsKey(body[densityCounter]))                  {                   densityTracker.put(body[densityCounter], 1);                  } else                 {                     densityTracker.put(body[densityCounter], densityTracker.get(body[densityCounter]) + 1);                 }       }   This allows me to create a hashmap of string (as keys) and number of occurrences (as values). Now my question is how to sort them from highest to lowest and return the top 10 (or some other number)?


I was trying to change ownership of a hard-drive mounted on /media/user/ using command   sudo chwon -R user:user /media/user/   but I made a typo and ran command  sudo chwon -R user:user / /media/user/   Now everything in / is set to user(username) user(group). This system is used by me and my collegue and we cannot ssh into it since permissions have been changed. How do I revert it back to normal ?


Nonlinear regression model linear in some parameters

In a set of  that I stumbled upon online, the author discusses a nonlinear regression model, which is linear in some parameters, like this $$ y = \theta_1 + \theta_2\exp \left( {\theta_3x} \right) + \varepsilon $$ and suggests to first perform a nonlinear regression to estimate $\theta_3$, and then use OLS to estimate the other two parameters. I am not very experienced in regression modeling, so please forgive me if I ask a very simple question, but I don't understand how you can do this consistently without also estimating the other 2 parameters? Apparently, there is some trick involved, which I don't understand...  Another question is what happens to the ability to do inferences based on parameter estimates to the complete model if you do the regression in two stages like that?  Many thanks!


How do you beat a zerg player that roach rushes using protoss?

What is the easiest and fastest way? I'm definitely slower than the zerg player. I usually lose because I cheese(troll), and get discovered, but I usually don't lose. What is the best build order to defend roach rush, because I'm used to cheesing and not good at making a good base?


How to find the config file stored GLOBAL variable?

If we run export -p, then we can find all global variable in the current system. But I think the variable list must be in a certain config file. How to find out it in my CentOS 7 or Ubuntu 16.04?


Removing Item in a List reflects other List of same Class. Why?

I am getting list of state from network call. and i am coping it to another list. now when i remove items from one List the same item is also deleting from other list too.  i am unable to set filter because of this problem. please let me know what to.   here is my code.  private void getStates() {     progressDialog = new ProgressDialog(this);     progressDialog.setMessage("Please Wait");     progressDialog.show();      RestApi restApi = RetroSingleton.getInstance().getRestApi();     restApi.getStates()             .subscribeOn(Schedulers.newThread())             .observeOn(AndroidSchedulers.mainThread())             .subscribe(new Observer<State2>() {                 @Override                 public void onCompleted() {                     progressDialog.dismiss();                 }                  @Override                 public void onError(Throwable e) {                     progressDialog.dismiss();                     e.printStackTrace();                 }                  @Override                 public void onNext(State2 model) {                     state2 = model;                     Log.d(Const.TAG, "onNext: " + model.getState().size());                     Log.d(Const.TAG, "onNext: " + state2.getState().size());                      model.getState().remove(0); //here i remove item                      Log.d(Const.TAG, "onNext: " + model.getState().size());                     Log.d(Const.TAG, "onNext: " + state2.getState().size());                     //now size is same! WHY?                 }             }); }   this is my State2.java  public class State2 {  @SerializedName("error") private Boolean error; @SerializedName("state") private List<State> state;  public Boolean getError() {     return error; }  public void setError(Boolean error) {     this.error = error; }  public List<State> getState() {     return state; }  public void setState(List<State> state) {     this.state = state; }   public class State {     @SerializedName("id")     private String id;     @SerializedName("name")     private String name;      public String getId() {         return id;     }      public void setId(String id) {         this.id = id;     }      public String getName() {         return name;     }      public void setName(String name) {         this.name = name;     }  }   }  any help would be appreciated. please let me know i just can't figure out Thanks


How do you find all the links to disavow for a Google reconsideration request?

A few months ago I received the following notification on Google Webmaster for a website I look after.     Unnatural links to your site—impacts links Google has detected a   pattern of unnatural artificial, deceptive, or manipulative links   pointing to pages on this site. Some links may be outside of the   webmaster’s control, so for this incident we are taking targeted   action on the unnatural links instead of on the site’s ranking as a   whole. Learn more.   The question here is, should we actively attempt to  these links given that the action is seemingly targeted to just a bunch of keywords? I've downloaded the inbound links sample from Google Webmaster and so far I've been through the disavow and  process 6 times, each taking 2-3 weeks only to be supplied just 2 more links that Google don't approve of. At this rate it will take me the rest of my natural life to cleanup all these spammy links!  It seems disavowing is futile as they haven't implemented broad actions against the website as a whole and (from what I can gather) have already nullified the value of those offending links. Under the quoted statement above however is a reconsideration request button that seems to imply I should be actively doing something here?  UPDATE 14th October --  I have since created a small .NET application that you can feed the CSV sample links file into from Google Webmaster. What this tool does is crawl all the links and looks for specific linking patterns as per some configurable match strings.  I realised that many of the links that Google are taking issue with were created by a rogue SEO firm we hired several years ago. All the links are appended with 1 of 5 different descriptions. The application I built uses some regexes to isolate any link sources with these matching appendages and automatically builds the disavow txt file.  In the end it had to come down to an algorithm as manually disavowing links on this scale would take weeks!  I will post the app here once I've cleaned it up.


I have Ubuntu 17.10 on my PC, and I have installed gparted. But it seems that I can't add the unallocated space to /dev/sda4, because I can't move it down.    I have looked online, but found nothing.


I've to Query a field(e.g X) from one object. Say I'm getting 20 records(LIST)  Now, I've to Query another object using result of above Query using field X  (X field is common to both objects but has different names, say here Field1 and Field2)  What is the easiest way to get data in Developer console ? is below correct   List<string> TP;  List<ObjA > Ds1=  [Select id, name , TPID__C       from QRS_Quote_LOC_Plan_Bundle__c      where Field3 = '1111']; // Field3 is some another field  For(ObjA  b : Ds1 )  TP.add(b.Field1); // storing common field data  List<ObjB> MasterD = [Select id, name from ObjB where Field2 in :TP ]; System.debug(MasterD );


Is there a way for me to Export my Minecraft Realms World?

I have played on my friend's Survival Realm for ~3 months and he was going to stop paying for the realm so I was wondering is there any way to get that world for my Personal Client.


REST WCF Service Returns Method not allowed

This is a WCF Rest Service.  I am trying to return either XML or json.  I've tested and tested it but I get Method Not allowed and I can't figure out what I am doing wrong.  When I run it   web.config  <system.serviceModel>     <services >        <service name="Project.TestService"    behaviorConfiguration="TestServiceBehavior">           <endpoint               address=""               binding="webHttpBinding"               contract="Project.ITestService"               behaviorConfiguration="web">         </endpoint>       </service>   </services> <behaviors>   <serviceBehaviors>     <behavior name="TestServiceBehavior">       <serviceMetadata httpGetEnabled="true" />       <serviceDebug includeExceptionDetailInFaults="true"  />     </behavior>   </serviceBehaviors>     <endpointBehaviors>         <behavior name="web">             <webHttp/>         </behavior>       </endpointBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"   multipleSiteBindingsEnabled="true" />     Contract ITestService.vb  Imports System.ServiceModel Imports System.ServiceModel.Web  <ServiceContract()> Public Interface ITestService  <OperationContract()> <WebInvoke(Method:="Get", ResponseFormat:=WebMessageFormat.Xml, BodyStyle:=WebMessageBodyStyle.Wrapped, UriTemplate:="/xml/{id}")> _ Function XMLData(id As String) As String  <OperationContract()> <WebInvoke(Method:="Get", ResponseFormat:=WebMessageFormat.Json, BodyStyle:=WebMessageBodyStyle.Wrapped, UriTemplate:="/json/{id}")> _ Function JSONData(id As String) As String  End Interface   SVC Markup TestService.svc  <%@ ServiceHost Language="VB" Debug="true" Service="Project.TestService" CodeBehind="TestService.svc.vb" %>   Method TestService.svc.vb      Imports Project.MODEL     Imports System.ServiceModel.Activation      <AspNetCompatibilityRequirements(RequirementsMode:=AspNetCompatibilityRequirementsMode.Required)> _     Public Class TestService     Implements ITestService      Public Function XMLData(id As String) As String Implements      ITestService.XMLData         Return "Your request product " + id     End Function     Public Function JSONData(id As String) As String Implements ITestService.JSONData       Return "Your request product " + id     End Function  End Class   URL  http://localhost:23390/TestService.svc/xml/ABC


Keep chapter numbering of figures with endfloat

I'm writing my thesis and using the endfloat package to put figures at the end. Is there a way of keeping the numbering system of Figure X.1 where X is the number of the chapter the figure is defined in?


Parse HTML Code to get a JSON property out

Hi I have this following code for C#.Net  ASCIIEncoding encoding = new ASCIIEncoding(); string postData = "membershipcardnumber=" + Cardnumber; postData += ("&terminalname=" + TerminalName); postData += ("&serviceid=" + CasinoID); byte[] data = encoding.GetBytes(postData);  HttpWebRequest myRequest =   (HttpWebRequest)WebRequest.Create("http://myurl"); myRequest.Method = "POST"; myRequest.ContentType = "application/x-www-form-urlencoded"; myRequest.ContentLength = data.Length; Stream newStream = myRequest.GetRequestStream();  newStream.Write(data, 0, data.Length); HttpWebResponse response = (HttpWebResponse)myRequest.GetResponse(); // Get the stream associated with the response. Stream receiveStream = response.GetResponseStream(); // Pipes the stream to a higher level stream reader with the required encoding format.  StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8); Console.WriteLine("Response stream received."); var egm_response = readStream.ReadToEnd(); Console.WriteLine(egm_response);   the variable egm_response outputs the entire html code. This is just a part of it:

JSON Result :
     {"CreateEgmSession":{"IsStarted":0,"DateCreated":"","TransactionMessage":"Terminal already has an active session.","ErrorCode":37}}

   How can I get or parse this html and only get the value after ErrorCode?


I have just upgraded to 20.04 without any issues, however, Gnome is painfully slow 2second delay with every action, apps take an age to open, terminal takes 2 sec to scroll through the history one item at a time. Anyone else seen this and have any answers?


True or false: a chain of at most countable sets has an at most countable union.

Is the following statement true or false?     Let $\{A_i,\ i\in I\}$ be a family of at most countable sets. Suppose the family is totally ordered under set inclusion, i.e. $\forall i\in I,\ j\in I$, either $A_i\subset A_j$ or conversely. Then $\bigcup_{i\in I}A_i$ is also at most countable.   I had this problem when I was trying to prove something else using Zorn's lemma. Although my original problem had a simpler solution, I am now more interested in this new question I came up with, so I won't post my original problem as it is sort of irrelevant.  The difficulty is that $I$ may not be a countable index set. Yet, I was unable to find a counterexample or a proof off the top of my head. Any ideas?


Can Ubuntu dock be at the bottom when screen is rotated?

I have a touchy laptop, and with Ubuntu 18, the screen rotates with it. Superb. However, normally the dock is at the left (which for screen real estate is optimal), but when the screen is in portrait mode, it ought to be at the bottom.   Is this possible at all, and if so, how?


Word for someone who is ignorant and proud?

Many a times, we tend to meet someone who is ignorant yet arrogant; to the extent that they can go a long way blabbing about something they don't really know with so much vigour. What can you refer to such a person as?


Given $x\in\mathbb R_+$ and $m,n\in\mathbb Z_+$, is it true that $$\bigg\lfloor\frac{\lfloor \frac{x}{m}\rfloor}{n}\bigg\rfloor=\bigg\lfloor \frac{x}{mn}\bigg\rfloor?$$    Thanks for at least three different and convincing proofs! I'll use this result  trying to code the prime counting formula from Wikipedia $(2)$:  Given $m$, select $y$ so that  $\sqrt[3]{m}\le y\le\sqrt{m}$ and let $n=\pi(y)$. Then  $(1)\;$ $\pi(m)=\phi(m,n)+n-1-P_2(m,n)$, where  $(2)\;$ $\displaystyle \phi(m,n)=\phi(m,n-1)-\phi\Big(\frac{m}{p_n},n-1\Big)$,  $\;\phi(m,0)=\lfloor{m}\rfloor$ and  $(3)\;$ $\displaystyle P_2(m,n)=\sum_{y<p\le\sqrt{m}} \Big(\pi\Big(\frac{m}{p}\Big)-\pi(p)+1\Big)$, $\;p$ is a prime.


Why don't custom upstart job names tab complete in the service command?

I'm used to create upstart services with a file in /etc/init/<service>.conf and it works perfectly fine, the only thing I'd like to is to have tab completion the same way that every service in /etc/init.d/ have right now.  When writing sudo service xx the name of the service should apear.   Is there a way to add upstart services to that autocompletion list?


In this , at 15s, the child said "I have straight A's.".   What does "straight A's" mean?


If $x_1,x_2,x_3$ and $x_4$ are independent identically distributed  random variable with continuous distribution .what is the probability of $$P=p(x_1 < x_2< \max(x_3,x_4))$$ I know the exhaustive number of cases are $p(x_1<x_2<x_3)+p(x_1<x_2<x_4)$ and  every $x$ are iid so both have same probabiltiy so is $2p(x_1<x_2<x_3)$ is right? But  i get the $p(x_1<x_2<x_3) = 1/6$ and then my answer is $1/3$ but the answer is $1/6.$ Can we write $P$ as $p(x_1<x_2<x_3<x_4)+p(x_1<x_2<x_4<x_3)$?


I encountered a problem when doing my real analysis assignment. The question is:     Assume $x_n>0$ for every $n\in\mathbb{N}$. Show that $\underset{n\rightarrow\infty}{\lim}{\sup}\sqrt[n]{x_n}\leq \underset{n\rightarrow\infty}\lim{\sup}\frac{x_{n+1}}{x_n}.$   I have no ideas how to prove it. Can someone help or give a hint about this?


What should our kids call grandpa's new wife?

Kids are 17 and 12.  Mom/grandma passed away a few year ago, and grandpa immediately married his new wife.  There is a long story there.  Dad/grandpa wants us to treat her as if she were grandma, but I have a hard time doing that.  My kids had a grandma that loved them so much.  New wife has no role whatsoever in kids life, other than showing up at family events 1-2 times per year.  She is not my mom, so why would she be the kids grandmother?  It is causing a conflict, and am hoping someone has a suggestion on what to call her, other than grandma or Miss "Kate".  Thanks in advance.


$\int_0^\infty \frac{1}{1+x^9} \, dx$  I tried taking the integral of $\Gamma_R = [0,R] \cup \gamma_R \cup I_R$, where we see that \gamma_R is the circle parametrized by $z = Re^{it}$ with $t\in[0,\frac{\pi}{2}]$. And $I_R$ is the line form $iR$ to $0$  one can note the following three things:  1) $\int_0^\infty \frac{1}{1+x^ 9}\,dz$ = $\int_0^\infty \frac{1}{1+z^ 9}\,dz$. (Note that $z$ is on the $x$-axis)  2) $\int_{\gamma_R}\frac{1}{1+z^ 9} = 0$. (By the ML inequality)  the main problem is when i parametrize $I^{-}_{R}$ with $z(x) = xi$ and $x \in [0,R]$. The main problem is that i get that:  3) $\int_{I_R}\frac{1}{1+z^9} = -\int_{I_R^-}\frac{1}{1+z^9} = -\int_{0}^{R} \frac{i}{ix^9 + 1}$.   note that i want to work towards taking $R$ to infinity eventually and then equal the sum of the integrals to the sum of the residuals of $\Gamma_R$ times $2\pi i$. The main problem here is that my term in 3), does not look like the form $c \cdot \int_{0}^{\infty}\frac{1}{1+x^ 9}$ with c a constant value. If i can get this done i think i'm finished.  PS: The singular points i got where $e^{\frac{\pi i}{9}},e^{\frac{3 \pi i}{9}}$.


I'm trying to prove that any subset of a noetherian topological space is noetherian in its induced topology.  MY ATTEMPT OF SOLUTION  Let $X$ be a topological space and $Y$ a subspace of $X$. If $F=\{U_i\cap Y\}$ is a family of open subsets of $Y$, where the $U_i$ are open subsets of $X$, can I say that $M\cap Y$ is a maximal element of $F$, where $M$ is a maximal element of the $U_i$'s? If don't, I don't know how to solve this question.  I really need help.  Thanks in advance.


Is there any word available for an incident occurred and vanished in front of eyes?

I was confused, when one of my friends was writing his name on a lead from vapor of mouth: I saw his name for a few seconds and after that it automatically disappeared.  So what can I call this incident? Is there any word available for this incident?


How to add label to index the rows and columns of the matrix ? because I want to number the line outside the matrix       \[     \begin{array}{lc}       \ Mat_{\varPhi to M} & \left(\begin{array}{@{}ccccc@{}}             1 & 1 & 1 & 1 & 1 \\             0 & 1 & 0 & 0 & 1 \\             0 & 0 & 1 & 0 & 1 \\             0 & 0 & 0 & 1 & 1 \\             0 & 0 & 0 & 0 & 1               \end{array}\right) \\[15pt]     \end{array}     \]


Is it possible to build blender scripts in external editor like Atom

I have little experience scripting thus far but want to develop my skills further. I am particularly interested in autocomplete features and looking to script geometry within one context for Rhino, Blender, and Processing. Atom handles Rhino and processing, but not sure how to make it work with Blender.  Edit: Is it possible to create an atom package for a bpy/bmesh autocomplete library and send scripts directly to blender?    is how Atom can be used with Rhino Python:     Scripts can be executed within Atom.


Hoffman and Kunze, linear algebra sec 3.6 exercise 1

Let $n$ be a positive integer and $F$ a field. Let $W$ be the set of all vectors $(x_1, \dots , x_n)$ in $F^n$ such that $x_1+\dots +x_n =0$.      $1)$ Prove that $W^0$ (annihilator of $W$) consist of all linear functionals $f$ of the form $$f(x_1, \dots , x_n) = c \sum _{j=1}^n x_j.$$      $2)$ Show that the dual space $W^*$ of $W$ can be naturally identified with the linear functionals of the form $$f(x_1, \dots , x_n) =c_1x_1 +\dots +c_nx_n$$ on $F^n$ which  satisfy $c_1+\dots +c_n=0$.   Attempt: $(1) $Solving $x_1+\cdots+x_n=0$ and considering $x_n$ as the dependent variable, we get the basis vectors for $W$ as $\{\alpha_1,\alpha_2,\dots,\alpha_{n-1}\}$ where $\alpha_i=\big(\underbrace{\dots}_{0\text{'s}},\underbrace{1}_{i^{\text{th}}\text{coordinate}},\underbrace{\dots}_{0\text{'s}},-1\big)$  If $f\in W^0$ is expressed as $f(x_1,\dots ,x_n)=d_1x_1+\cdots d_nx_n$ then $W^0$ is the solution space to the system $AD=0$ where $A$ is the $n-1\times n$ matrix with $\alpha_i$ as it's $i^{\text{th}}$ row and $D=\big(d_1,\cdots,d_n\big)^T.$  Since $A$ is in row-reduced row echelon form, we set $d_n=c$ and hence we get  $$f(x_1, \dots , x_n) = c \sum _{j=1}^n x_j.$$  $(2)$ To find the basis $\{f_1,\dots,f_{n-1}\}$for the dual space $W^*$ we need $f_i$'s to satisfy $$f_i(\alpha_j)=\delta_{ij},1\le i,j\le n-1.$$ Looking at $\alpha_i$'s, it is natural to consider $f_i$ as $f_i(x_1,\cdots,x_n)=x_i,1\le i\le n-1$ so that $f_i(\alpha_j)=\delta_{ij},1\le i,j\le n-1.$  Thus $\{f_i\}_{i=1}^{n-1}$ is a basis for $W^*$ and if $f\in W^*$ then \begin{align} f=\sum_{i=1}^{n-1}f(\alpha_i)f_i\\ \implies f(\alpha)=\sum_{i=1}^{n-1}f(\alpha_i)x_i \end{align}     It looks like I am nowhere near in the second part of the problem. Help!    is a related post but the answers given uses tools which are not introduced in the book yet.


A word to describe someone or something that is not last?

I'm looking for a word that describes the state of not being last. A word that would apply to everything in an ordered list that is not the last thing in that list.  From     I wasn't the last person to finish the race.   to (the phrasing is off, but it seems to illustrate my point)     I was .. person to finish the race.   One word that comes to mind is "intermediate", but I don't think that includes the first item in a list.