If I want to shuffle the question to prepare four different questions papers having same questions but with the different question numbers, what should I do?       \documentclass[12pt,a4paper]{exam}     \usepackage{amsmath,amsthm,amsfonts,amssymb,dsfont}     \setlength\parindent{0pt}         %usage \choice{ }{ }{ }{ }         %(A)(B)(C)(D)         \newcommand{\fourch}[4]{         \par                 \begin{tabular}{*{4}{@{}p{0.23\textwidth}}}                 (a)~#1 & (b)~#2 & (c)~#3 & (d)~#4                 \end{tabular}         }          %(A)(B)         %(C)(D)         \newcommand{\twoch}[4]{                  \begin{tabular}{*{2}{@{}p{0.46\textwidth}}}                 (a)~#1 & (b)~#2                 \end{tabular}         \par                 \begin{tabular}{*{2}{@{}p{0.46\textwidth}}}                 (c)~#3 & (d)~#4                 \end{tabular}         }          %(A)         %(B)         %(C)         %(D)         \newcommand{\onech}[4]{         \par               (a)~#1 \par (b)~#2 \par (c)~#3 \par (d)~#4         }          \newlength\widthcha         \newlength\widthchb         \newlength\widthchc         \newlength\widthchd         \newlength\widthch         \newlength\tabmaxwidth          \setlength\tabmaxwidth{0.96\textwidth}         \newlength\fourthtabwidth         \setlength\fourthtabwidth{0.25\textwidth}         \newlength\halftabwidth         \setlength\halftabwidth{0.5\textwidth}        \newcommand{\choice}[4]{%       \settowidth\widthcha{AM.#1}\setlength{\widthch}{\widthcha}%       \settowidth\widthchb{BM.#2}%       \ifdim\widthch<\widthchb\relax\setlength{\widthch}{\widthchb}\fi%       \settowidth\widthchb{CM.#3}%       \ifdim\widthch<\widthchb\relax\setlength{\widthch}{\widthchb}\fi%       \settowidth\widthchb{DM.#4}%       \ifdim\widthch<\widthchb\relax\setlength{\widthch}{\widthchb}\fi%       \ifdim\widthch<\fourthtabwidth         \fourch{#1}{#2}{#3}{#4}       \else\ifdim\widthch<\halftabwidth         \ifdim\widthch>\fourthtabwidth           \twoch{#1}{#2}{#3}{#4}         \else           \onech{#1}{#2}{#3}{#4}         \fi       \fi\fi     }     \begin{document}      \begin{questions}     \question If $a = 3 + i$ and $z = 2 - 3i$ then the points on the Argand diagram     representing az, 3az and - az are     \choice{Vertices of a right angled triangle}{ Vertices of an equilateral      triangle}{Vertices of an isosceles triangle}{Collinear}     \question If z represents a complex number then $\arg (z) + \arg\left(\bar z\right)$ is      \choice{$\dfrac{\pi}{4}$}{$\dfrac{\pi}{2}$}{0}{$\dfrac{\pi}{6}$}     \question If the amplitude of a complex number is $\dfrac{\pi}{2}$ then the number is     \choice{ purely imaginary}{purely real}{0}{neither real nor imaginary}     \question The value of $i + i^{22} + i^{23} + i^{24} + i^{25}$ is     \choice{i}{-i}{1}{-1}     \question The volume generated by      rotating the triangle with vertices at     (0, 0), (3, 0) and (3, 3) about x-axis is     \choice{$18\pi$}{$2\pi$}{$36\pi$}{$9\pi$}\end{questions}     \end{document}      \end{document}   That is I need to mark the question paper given above as Code A. And I need to print another question paper which marked as Code B and in this question paper the first question Code A should be in question number 5 (say) and similarly others also should have different positions...


I was named even before I was born.      Is this correct? or       I had been named even before I was born   In the first sentence, the even before word clarifies the time frame. Do we still need to use I had been named?


Why can't I translate parts of my mesh with the 3d widget?

I'm new to Blender, when I was working on a simple character like in the tutorial I'm following. I tried to change the shape of 2 cubes by moving the x and y arrows on the widget but it's not working and it doesn't even give me an arrow shape when I use box select. Does anyone know why this is happening and how I can fix it?


Cut-off point in a ROC curve. Is there a simple function?

I want to find the cut-off point for gender based on an anthropological measurement. I can draw the curves and I know that in case sensitivity and specificity are both similarly important, the point closest to the upper left corner of the frame (or if the curve is negative, the closest point to the lower right corner) should be determined as cut-off.   However, I don't know whether there is any already implemented function in R or any other programs for determining this, simply? I just know SPSS doesn't have such a function. Do you know any programs, or R which can do it via an already implemented function?


I was refused a visa..want to reapply soon cause have already pay for my ticket fee..and i dont want to make a mistake again

I was refused a visa to visit the UK today and i was planning in reapplying very soon cause i had already booked a ticket   The decision they made include *i have refused your application for a visit visa because i am not satisfied that you meet the requirements of paragraphs V4.2- V4.10 of appendix V because  (1) you have applied for a visa to visit the UK for 2months and 29days.you state you are a student and that a person will sponsors your visit.Although you have provided his documentation, i must also consider your own personal circumstances in Nigeria.  (2)i noted that you have not provided any documentation or information to demonstrate how you are supported financially in Nigeria .furthermore, the study documentation you provided is only a letter of offer and does not demonstrate your ongoing studies.   You also appear to have no dependents and you have not demonstrate that you have any assets in Nigeria or elsewhere   4.for this above reasons, i am not satisfied you have shown that, on the balance of probabilities, your ties to Nigeria or elsewhere are such that you are leaving the UK at the end of your proposed visit. I am not satisfied that you are genuinely seeking entry as a visitor or intend to leave the UK at the end of your visit. Paragraph V 4.2 (a) (c) of the immigration.     Please need someone to explain better before i reapply


$$f(x,y) = \frac{xy^2}{x^2 + y^2},$$ determine the limit of $f(x,y)$ as $(x,y) \to (0,0)$. The answer for this would be $0$ right??  and can it be calculated from:  $$f(x,0) = \frac{xy^2}{x^2 + y^2}= 0$$ and  $$f(0,y) = \frac{xy^2}{x^2 + y^2}= 0$$ ??


evaluate this definite integral $\int_{-2}^{2} \frac{x^2}{(1+5^x)}dx$ ??

$$\int_{-2}^{2} \frac{x^2}{(1+5^x)}dx$$ I tried taking the substitution of $$1+5^x = u$$ in hope i will get product of two functions which can be integrated by parts but it turns out to be a very complicated function. Is it possible to integrate it using some property of definite integral?


Inequality vs. Inequation, Equation vs. Equality

When talking about statements that two terms are mathematically (un-)equal (e.g., 1 = 1, 1 < 2, or 1 != 2), what is the correct notion for such mathematical statements? Are there special cases w.r.t. "mixed" relations like x <= y? Can some notions be used interchangeably?  It seems many online sources use "equation" and "inequality" but there is also a . Apart from personal posts in forums, I have not found any sources using "equality" in such a situation, yet. Systematically, I would think that "equation" and "inequation" would make more sense than "equation" and "inequality", but not everything (probably very few things) in natural languages have developed according to a purely logical system.  Note that this question is more general than  for that it particularly asks for the relation between the notion for equations and the one for inequalities. Equations are not part of the existing question at all.


Closed form for $\sum_{n=-\infty}^\infty \frac{1}{(z+n)^2+a^2}$

I want to express $$\sum_{n=-\infty}^\infty \dfrac{1}{(z+n)^2+a^2}$$ in closed form. What comes to mind is the formula $$\pi\cot\pi z = \dfrac{1}{z}+\sum_{n\ne 0}\left(\dfrac{1}{z-n}+\dfrac1n\right)=\dfrac{1}{z}+\sum_{n=1}^\infty\dfrac{2z}{z^2-n^2}$$  and also $$\dfrac{\pi^2}{\sin^2\pi z}=\sum_{n=-\infty}^\infty \dfrac{1}{(z-n)^2}.$$ But neither of these gives the term $(z+n)^2+a^2$ that we want. Perhaps we can adjust somehow?


Need help getting records from a custom object

looking for some help with this.  I have a custom object named Annual_Sales_Targets__c with a master detail relationship to Contracts.  When a contract is activated, a workflow will kick off and send an email to various people.  The template is a visualforce template that creates a pdf with the contract details. I'm good up to this point.  I need help with querying the custom object to pull the corresponding sales targets and them as a table to the pdf.


Recently I've decided to remove windows completely and just use linux. For the past couple of months I've noticed the entire system freezing completely and my laptops fans start to spin really loud, I assume this is because of a kernel panic because it doesnt just happen with ubuntu it also happens on LM, arch, any distro really.  I checked acer's website and my bios version is 2.11 but the latest is 2.14 which includes some updated micro code for intel or something ? So I think updating the bios might help the only issue is I don't use windows and dont want to install it on my pc ...  I've tried booting into the windows 8 install disc that came with my pc but i cant find my usb drive inside cmd( I thought it would be best to just run cmd and open the exe file for updating the BIOS that way.)  Any help is much appreciated.


Don't delete negatively-scored posts by a deleted user on META

When a user's account is deleted (for any reason), all their negatively-scored posts are automatically deleted by the Community bot. From :     The system will  any question (and its answers) or answer with a negative score when its owner’s account is deleted.   On the main site, this is all well and good: if a user had some crappy posts, no point keeping them around when the user themselves isn't around any more.  But on the meta site, it can cause problems. There, "negatively scored" isn't the same as "crappy"; and users such as spammers who get quickly deleted don't often acquire enough rep to post to meta. Someone might have posted an unpopular suggestion or feature request which, although declined, is still useful to link back to; this should still be available to the community if the user quits.  (The example that motivated this was a user on , who was once a very active and valuable meta contributor but recently deleted his account over accusations of mod abuse. He'd posted several answers to an  on the site's scope, and  of  were , reflecting the fact that those topics were decided to be off-topic. I only recently discovered that these answers had been auto-deleted, and had to  all  of . There could be many other useful negatively-scored posts by this user which have been deleted and which I haven't yet found to undelete. This is not a good state of affairs.)  Please can the auto-deletion of negatively-scored posts by deleted users be abandoned on meta sites?


What's the fastest way to determine all the subgroups of the additive group $\mathbb{Z}_{24}$

Question is as in title.  I know that all of the subgroups of $\mathbb{Z}_{24}$ (under addition) must be cyclic, and I could find them by finding the generating groups for each element of $\mathbb{Z}_{24}$ - but surely there is a quicker way?  Would appreciate any help,  Jack


I was trying to see why a comment looked like this when writing a comment with
:     Any news on my answer?
 I hope it is helpful    Yep, when typing in the raw data for the comment:     Any news on my answer?
 I hope it is ***helpful***   That comes the first comment shown. Strangely, using ***helpful*** will have the natural result of : helpful while the
 will not be working. So instead of this:     Any news on my answer?  I hope it is helpful   It shows:     Any news on my answer?
 I hope it is helpful   Instead. Why is
 not working when used in a comment? Is this intentional or a bug?


Ubuntu 9.10 server requires frequent reboots to free up memory

I'm running Ubuntu 9.10 on my server. It works fine, it's just that over time (usually a couple of days) the memory usage just grows and grows until it invariably runs out and needs to be rebooted.  It's running Apache, Samba, ProFTPd, Postfix, Munin & Webmin.   Is there anything that can be done to free up the memory that it doesn't need anymore?


Add additional lines to Google Sheets Line chart

I'm having some issues adding simple lines to a line chart on Google Sheets. I have a line chart using Table A, has ten X and Y values, X values are dates, Y values are a number, simple line chart.  I want to add Table B to the line chart, which has two X and Y Values, X has the first and last date of Table A, Y has the start and goal numbers. This way I can compare the actual results (from table A) to the goal results (Table B).  The chart I have is ignoring the X values of Table B, and uses the first two X values of table A instead. If I have three Y values in table B, it will use the first three X values of A to plot them.  I could average the values out in B to make ten values rather than two, but A will keep growing meaning I would have to re-do the averages every time I add new data to A, and I would like the ability to change the two values in B.  Surely there is a simpler way to do this without a huge amount of formulas just to make a simple line?   Clarification: I need the data split into multiple tables, I cannot combine the tables into one.


Is 0 the unique center for the mixture density of $N(-a,\sigma^2)$ and $N(a,\sigma^2)$, each with weight 0.5?

Suppose $f_{-a}(x)$ is the pdf for $N(-a,\sigma^2)$ and $f_{a}(x)$ is the pdf for $N(a,\sigma^2)$. Let $f(x)=0.5f_{-a}(x)+0.5f_{a}(x)$ be the mixture density. Is $c=0$ the unique center for $f(x)$ in the sense that $f(x)=f(2c-x)$ for any $x$? My guess is that it is the unique center, but I don't know how to rigorously show it. Thanks!


I am new to blender. After following a youtube tutorial of modeling a bird, trying to add some texture. But the texture looks like stretched. So I applied checker board to see what is wrong and it looks like the attached image. Please help to fix this. Thank you,


I have a good background in linear algebra, Topology and Differential geometry. I would like to understand the concept of supersymmetry in theoretical physics, and hopefully read Witten's landmark paper Supersymmetry and Morse theory sometime later. Please suggest suitable references. Thanks


Code snippet comments in code formatting break the formatting of the post

When special HTML comments used for snippets are present in a post, these comments break the rendering of the post. For example, consider the following markdown code (notice that the whole thing is indented 4 spaces so it should be rendered as code exactly the way it is, not as a snippet):                         some text            Note that I replaced the e in begin with a Unicode version to get around the bug I'm posting this question about, so if you want to test it, you need to change it back. This will also be the case in several other parts of this post. The above markdown code renders as following in the preview:
a8b16640-62c6-f0be-7620-21454bd60607
    And as the following when the post is submitted:       some text          () While it should render as following:      some text     I also noticed that the numbers and letters inside the
 tag in the preview are completely random. By simply deleting a character and adding the same character again, I got completely different numbers and letters (although the dashes stayed at the same positions). After some testing, I noticed that this happens for every time there are these three comments in the code block, in this order:  A comment of the type , where the value ofjs hide can be true or false, and possibly containing other parameters such asconsole: true.  At least one of the comments ,  or .  An  comment.   If one or both of the begin snippet or end snippet comments is missing, everything renders normally. If the language comment is missing or is before or the begin snippet comment or after the end snippet comment, everything is rendered normally except that the begin snippet and end snippet comments aren't rendered and there is an "edit the above snippet" link at the end of the code. For example the following code:           some text        is rendered as this in the preview:  some text    and as this in the submitted post (note that the comments are missing):  some text   Also, there are similar problems when the snippet comments are in backticks. For example, my three bullet points earlier in this question have the following markdown code:  - A comment of the type `<!-- bеgin snippet: js hide: false -->`, where the value of `js hide` can be `true` or `false`, and possibly containing other parameters such as `console: true`.   - At least one of the comments `<!-- language: lang-html -->`, `<!-- language: lang-css -->` or `<!-- language: lang-js -->`.   - An `<!-- end snippet -->` comment.  If I wouldn't have used a Unicode trick, this would have been rendered as:   A comment of the type `    `.   - An ` ` or ` `, `     I think that anything that is indented 4 spaces or within backticks should be treated as code, no matter if it would have a special meaning if it weren't formatted as code. Can these bugs please be fixed?


Thunderbird doesn't raise or give focus when you click "Write" or "Reply"

I'm using Thunderbird 2.0.22, the version that comes with Ubuntu Intrepid 8.10.  When I hit "Reply" or "Write", a new email window pops up, but it ends up being under the main Thunderbird Window, and doesn't have focus. Thunderbird is the only application that exhibits this weird behaviour, and it just started happening one day, whereas it worked fine before.  I've seen this problem years ago as well, and wasn't sure how I fixed it.


Integrating Factor of $(axy^2+by)dx+(bx^2y+ax)dy=0$.

$$(axy^2+by)dx+(bx^2y+ax)dy=0$$  I have asked this question before too, but i wish to know the method for evaluating the integrating factor which is $\dfrac {1} {(a-b)(x^2y^2-xy)}.$  So far i know:  $M(x,y)dx + N(x,y)dy=0$ is said to be a perfect differential when   $\frac{\partial (M(x,y))}{\partial y}=\frac{\partial (N(x,y))}{\partial x}$.  In this case the equation is not exact and integrating factor is multiplied to make the differential equation exact.  Is there any other method to solve this differential equation?


$(p-1)(p+1)/24 \in \mathbb N$ for all primes $p \geq 5$

I want to show  \begin{align} \frac{(p-1)(p+1)}{24} \in \mathbb N \quad \text{for all primes} \quad p \geq 5 \tag{1}. \end{align} I can show $(1)$, if the following statement is true.     Let $a,b,c,d \in \mathbb N$ and $a \geq b \cdot c \cdot d$.   \begin{align} \text{If} \quad  \frac{a}{b},\frac{a}{c},\frac{a}{d} \in \mathbb N, \quad \text{then} \quad \frac{a}{b \cdot c \cdot d} \in \mathbb N \tag{2}. \end{align}   Given $(2)$ we show that $(1)$ is true for $a = (p-1)(p+1)$, $b = 2$, $c = 3$ and $d = 4$. Since $p$ is a prime $(p-1)$ and $(p + 1)$ are even, implying $(p-1)/2 \in \mathbb N$, $(p+1)/2 \in \mathbb N$ and thus $(p-1)(p+1)/2 \in \mathbb N$ and $(p-1)(p+1)/4 \in \mathbb N$. One of the three numbers $(p-1)$, $p$ and $(p+1)$ must be divisible by 3. Since $p$ is a prime either $(p-1)$ or $(p+1)$ is divisible by 3, implying $(p-1)(p+1)/3 \in \mathbb N$.  Question Is $(2)$ true?


Javascript switch case - appropriate use for duplicate information?

The use case:  switch(element.tagName){     case 'STYLE':         element.type = 'text/css';     case 'LINK':         element.rel = 'stylesheet';         break; }   In this case the rel needs to be applied to both. So the above doesn't have a break; after case 'style:' and the code works, and I understand it can do this - for <style> elements it added both rel and type and for <link> elements only have rel applied.  But is this an appropriate way to use it?


Interchanging battery with a higher capacity battery

My Redmi 1s has a battery capacity 2050mAh (BM41). And the upgrade of the phone is Redmi 2 with capacity 2200mAh(BM44).   Can I use this battery if it fits in my device? Will it creates any software problems?


Mixed content warning - Shouldn't HTTPS Everywhere ruleset work? (EDIT)

Recently I've noticed that whenever I open a question that has imgur.com-linked images, I get a mixed content warning (and, indeed, imgur links have http: prefix), which is strange since I use HTTPS Everywhere extension for Firefox (which should set all prefixes to https). That also seems to be true for some other sites (which might suggest that it's a Firefox problem).   EDIT: whatever the site configuration, I expect HTTPS Everywhere to replace the imgur-links with their https versions (they do work on their own). Moreover the extension has a . Isn't it correct and shouldn't that be enough?


Probability that the given quadratic equation has real solutions

$a$ and $b$ are randomly chosen real numbers in the interval $[0, 1]$, that is both $a$ and $b$ are standard uniform random variables. Find the probability that the quadratic equation $x^2 + ax + b = 0 $ has real solutions?


My son has built a computer. It has no operating system. We want to install ubuntu via a usb. His computer has no internet access, so I want to download ubuntu to a usb through my laptop, then use the usb to install it on his. The usb is Fat/32. It looks like the instructions I find on this site are for installing on machines with existing Microsoft or Apple operating systems.


If someone were to die on the moon, would their body decay?

I heard that the footprints of Neil Armstrong are still there, so I was wondering if someone were to die there, would they remain preserved, too?   If not how long would it take for them to decay?


Capitalizing "the" when mid-sentence in a company name?

Consider a company called:     The Association of Examples Ltd.   When you refer to this company, should you have to capitalize "the" when it's mid-sentence and would have been used even if it wasn't in the name?   It looks odd to me:     In other news, The Association of Examples announced that...      Sarah is the founder of The Association of Examples and has...   But I imagine it's the correct way.  For the grammar-conscious, why or why not?    To give you context, I am asking also when branding ones own company like that. The Economist did it (as did ) and , but I can imagine it can cause confusion.


Tool to extract Documents on basis of list of IDs

Does anyone know of a tool that if I have a list of Document IDs (from Document Object) I can download the files attached to them? Dataloader seems to just want to give me a body string of Bytes, not the actual file.  File Exporter is having issues as per recent updates. Additionally, dataloader.io only gave us the base64 encoded for documents.


Is a square-integrable continuous local martingale a true martingale?

I am wondering, if the following is true without any other assumptions and if so, how to prove it:  Let $(M_t)_{t \geq 0}$ be a continuous local martingale on a filtered probability space $(\Omega, \mathcal{F}, (\mathcal{F}_t)_{t\geq 0}, P)$ that satisfies the usual conditions.  If $(M_t)_{t\geq 0}$is square integrable (that is, for all $t\geq 0$ we have $E[M_t^2] < \infty$) then $(M_t)_{t\geq 0}$ is a true martingale.  Thanks for any advice.


Error while installing new packages in ubuntu

04 and I was trynna install a Screen recorder in my ubuntu. I installed SimpleScreenRecorder and when I was trying to record the files there was this error "H.264 decoder is required to play this file." So I tried to fix it by using commands : "sudo apt-get install ubuntu-restricted-extras" Link to the website I got to know about SimpleScreenRecorder:  Link to the command I got for solving the problem:  After I did the command I found out that the command I ran was for ubuntu 18 so maybe that's why the problem is coming. Now i have this thing on my notification: "An error occurred, please run package manager from the right-click menu or apt-get in a terminal to see what is wrong. Error: Broken count>0. This usually happens when you install packages that have unmet dependencies." Problems that is occurring when i try to install any package from terminal: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 11285 (apt-get) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?  Note: I am super new with Linux and i don't know anything, please have patience with me. Thank you


I hit the rep-cap today (+230, including 2 checkmarks, no bounties), and then I answered an interesting question that I couldn't help but answer anyway. As "lost rep" from the upvotes started accumulating, a thought occurred to me:     If I delete this answer now, and un-delete it after midnight UTC, would I get the upvotes back?   I don't want to try it because I feel like it would be somewhat "gaming the system" and at the end of the day it's just +20 (well, at the time of this writing), but I really honestly wonder, how would that be handled by the system?       Possibility 1   My daily rep goes to +210 upon deleting; the two upvotes that didn't count upwards suddenly count downwards. That'd be somewhat awkward, but I'd understand. Midnight UTC I un-delete the answer and get the +20 back. Net change: 0.       Possibility 2   My daily rep doesn't move upon deleting, because the two upvotes didn't count upwards and won't count downwards. Midnight UTC I un-delete the answer and get a free +20. Net change: +20, and I just gamed the rep-cap.    How does that actually work?


I'm using TeXLive on Mac OSX 10.9. I created some .sty, .bib, and .bst files that I would like to be accessible to every tex file I compile. The restriction is the location of the files I created is fixed (that is, I am not willing to move them anywhere). I am also not willing to have the path specified in each tex file. These restrictions are because I use the same files across multiple computers and OS's.  Is it possible to tell my TeX distribution where to look for .sty, .bib, and .bst files?  There are many related questions, but most of the answers are "put the files in such-and-such a place", which doesn't work for me. The question  has lots of information, but only gives solutions satisfying my restrictions for Linux and Windows. I apologize if there's already an answer to my question on this site.


Infiniteness of set of primes such $f$ have root $\mod p$

Let $f \in \mathbb{Z}[x]$ be non constant. How to prove that exists infinitely many primes such $f$ have root in $\mathbb{Z/_{(p)}}$. I spent much time, but with no benefits.


I don't know why this is not working I get no compilation error here but the program always returns the else statement. Am I supposed to define operation some other way or call it someway else?   import javax.swing.JOptionPane;  public class Calculator1 {  public static void main(String []Args) {    String firstNum;   String operation;   String secondNum;    firstNum = JOptionPane.showInputDialog("Input a number.");   secondNum = JOptionPane.showInputDialog("Input another number.");    double num1 = Double.parseDouble(firstNum);   double num2 = Double.parseDouble(secondNum);    operation = JOptionPane.showInputDialog("Input an operation sign.");    if (operation == "x") {     System.out.println( num1 * num2 );   }   if (operation == "*") {     System.out.println( num1 * num2 );   }   if (operation == "/") {     System.out.println( num1 / num2 );   }   if (operation == ":") {     System.out.println( num1 / num2 );   }   if (operation == "+") {     System.out.println( num1 + num2 );   }   if (operation == "-") {     System.out.println( num1 - num2 );   }   else {     System.out.println("Please enter an appropriate operation sign.");   }   } }


If $\sin(a)\sin(b)\sin(c)+\cos(a)\cos(b)=1$ then find the value of $\sin(c)$

If $$\sin(a)\sin(b)\sin(c)+\cos(a)\cos(b)=1,$$;where abc are the angles of the triangle.! then find the value of $\sin(c)$. By trial and error put this triangle as right angled isosceles and got the answer..!! But i want a complete proof!


How to put a job in background without output?

When putting a job in background with the command bg, I have the output of the command of the job.   How to put the job in background (like the bg command) but without any output?  PS: the job is linked to a command with an output (there is no >/dev/null 2>1 in the original command)


Will the download from Epic Games resume after hibernate

I have already tried shutdown and restart but it resets download to 0%. i am specific about hibernating my laptop. P.S. I have tried the answer of Bxxt from question by jack wilshere but it did not work.


I'm having a really hard time configuring ubuntu 13.04 to have a static ip address. I have tried multiple solutions but everytime I reboot (can't do the network reset command because ubuntu freezes) I end up with no connection.  Here is what I get when i type ifconfig into the terminal:  eth0      Link encap:Ethernet  HWaddr 10:bf:48:bc:07:cb             inet addr:192.168.0.8  Bcast:192.168.0.255  Mask:255.255.255.0           inet6 addr: fe80::12bf:48ff:febc:7cb/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1763067 errors:0 dropped:0 overruns:0 frame:0           TX packets:1024326 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:2284491220 (2.2 GB)  TX bytes:136809317 (136.8 MB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:1840 errors:0 dropped:0 overruns:0 frame:0           TX packets:1840 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:185688 (185.6 KB)  TX bytes:185688 (185.6 KB)   I have also tried this:  auto lo iface lo inet loopback auto eth0 iface eth0 inet static         address 192.168.0.160         netmask 255.255.255.0         broadcast 192.168.0.255         gateway 192.168.0.1         dns-nameservers 24.222.0.94         dns-nameservers 24.222.0.95   If anyone could help me it would be very much appreciated.


real meaning of divergence and its mathematical intuition

how does divergence which means sink or source equal to ∂Fx/∂x+∂Fy/∂y +∂Fz/∂z.I have been thinking it for a long time and i think "divergence tells us how fast the vector increases when we move apart from the vector source"


I'm using location.reload in js but I wanna set the page a i wanna reload, this is my function   success: function (data) {                 alert("Andamento concluido nos seguinte processos: " + data.ids_processos);                 location.reload('/admin/carregamentop/index');                 return false;             }   How can i set the page?


What's the adverb for the state of being panickily instantaneous? For example, when you play an action game, fighting a large bunch of enemies under great pressure, you just tap buttons ...ly in fear of losing the fight, while what you're supposed to do is be steady and calm.


Webform submit buttons redirect to first page when clicked twice

Hi I'm relatively new to Drupal 7 and I'm currently working with a multistep webform. I'm having a particular problem around the Previous/Next submit buttons which seem to work fine when clicked ones but when two clicks are performed on any of them with a second or two delay between the clicks (while the form is loading) they do not direct to the previous or next page (depending which button is clicked) but direct to the start of the form. Any idea on how to prevent this from happening. I have tried to disable the buttons (in the hook_form_alter()) after the first click and also tried to put some sort of delay but nothing seems to be successful. Any suggestions on this?


When putting some code sections into SO questions, the system tries to detect the language and automagically colorizes the code but sometimes if the excerpt of code is small enough it cannot get the correct language, or renders no language at all (grey text).  By looking at some edits from experienced SO users I have found the <!-- language: lang-xxx --> trick to give the correct language to the rendering engine.  That  gives a list of supported languages but I have seen in SO some languages not listed here (like lang-nsis) and the  shows a list that is different of what is told here.   Is there an up-to-date list of supported languages for syntax highlighting in Meta?  Would it be possible to show it in the "markdown editing help" to keep it accessible easily?


Why can't I divide this cubic through by $x$? (I see why, but what's the rule?)

I had this problem at school (we're just doing polynomial equations):  $$2 x^3 - x^2 - 3x = 0$$  I can see that $x = 0$ is a solution to this. But I divided left and right side by $x$, factorised, and didn't get the $0$ solution.   I can see I was wrong. But why is there this exception to the rule that "you can always do the same thing to the left and right side of an equation"?  Thanks, Sibby


What commands look up the hostname of a LAN device at a given IP address? For example:  dig -x ip.address nslookup ip.address   are not giving LAN device names, only registered domain names on the WAN.


How can I tell the creation date and creator of a file inserted into a MS Word document?

If I have a Word document and a CSV file was inserted inside the Word document, how can I tell the creation date of the CSV file and the person who created it when I open the CSV file up from within the Word document? (In other words, simple version control on the CSV file.)


Show $f$ can't be irreducible over a finite field if $f^\prime$ is the zero polynomial.

I'm hoping someone can give me a nudge in the right direction...     Let $F$ be a finite field, and let $f(x)$ be a nonconstant polynomial whose derivative is the zero polynomial.  Prove that $f$ cannot be irreducible over $F$.   I've got that every root of $f$ is a multiple root and that for $F=\mathbb{F}_{p^r}$, the exponent of every term of $f$ is a multiple of $p$.


TV identification: Short-lived TV show about a time traveller with a super-computer disguised as a credit-card

It might have only been a pilot or a made for TV movie, but I remember a male time traveller who was for some reason in 90s US from a semi-distant future. He had in his possession a super-computer disguised as a regular credit card, which could hack things and I think spoke to him in a female voice.   Note: Not Quantum Leap - the time traveller and "credit card computer" might be keywords that people would hit upon, but 'Ziggy' the computer in QL was non-speaking, operated by a hologram and did not resemble a credit card - this one had its own voice and was disguised as a CC.


CPU overloaded but no proccess is using more than 1%

I am monitoring a Cpanel (centos) server which have a 2-core CPU (4 virtual CPU cores) and it seems to be overloaded because I got this values using top:  load average: 11.80, 13.30, 13.02 Cpu(s): 42.2%us, 11.7%sy,  0.0%ni, 35.6%id, 10.1%wa,  0.1%hi,  0.3%si,  0.0%st   But if I look at the proccess list (using top or ps) no proccess is using more that 1%  Also, the sum of the proccess CPU usage (%) equals 4 and if I even assume that 0% values are rounded numbers, and change it to 0.04 (which rounded using 1 decimal digit is 0) the sum is 11 (still less than 100%).  How can I correctly interpret this data?, are there some hidden proccesses which are overloading my cpu.


RxJava testing NullPointerException on Schedulers.io()

I have unit test to test user repository and i use custom rule to override the Schedulers and i'm still get the NullPointerException   Here is the test code  public class UserRepositoryTest extends BaseTest {      @Mock     private UserMapper userMapper;      @Mock     private GithubService githubService;      @Mock     private Throwable throwable;      @InjectMocks     private UserRepository userRepository;      @Test     public void fetchUsersEmitsErrorWhenNetworkServiceErrors() {         when(githubService.getUsers()).thenReturn(Single.error(throwable));         userRepository.fetchUsers().test().assertError(throwable);     }      @Test     public void usersRawItemsFromServiceAreMapped() throws Exception {         List<UserRaw> userRawList = createUserRawList();         when(githubService.getUsers()).thenReturn(Single.just(userRawList));          userRepository.fetchUsers().subscribe();          verify(userMapper).apply(userRawList.get(0));         verify(userMapper).apply(userRawList.get(1));         verify(userMapper).apply(userRawList.get(2));     }      private static List<UserRaw> createUserRawList() {         return new ArrayList<UserRaw>() {             {                 add(mock(UserRaw.class));                 add(mock(UserRaw.class));                 add(mock(UserRaw.class));             }         };     }  }   The base class that the test extend from   @RunWith(MockitoJUnitRunner.StrictStubs.class) public abstract class BaseTest {      @Rule     public final MockitoRule rule = MockitoJUnit.rule();      @Rule     public final RxSchedulerOverrideRule overrideSchedulersRule = new RxSchedulerOverrideRule();  }   The custom rule  public class RxSchedulerOverrideRule implements TestRule {      @Override     public Statement apply(final Statement base, Description description) {         return new Statement() {             @Override             public void evaluate() throws Throwable {                 RxJavaPlugins.setIoSchedulerHandler(scheduler -> Schedulers.trampoline());                 RxJavaPlugins.setComputationSchedulerHandler(scheduler -> Schedulers.trampoline());                 RxJavaPlugins.setNewThreadSchedulerHandler(scheduler -> Schedulers.trampoline());                 try {                     base.evaluate();                 } finally {                     RxJavaPlugins.reset();                 }             }         };     }  }   and the code from the repository code   public Single<List<User>> fetchUsers() {         return githubService.getUsers()                 .subscribeOn(Schedulers.io())                 .observeOn(Schedulers.computation())                 .flatMapObservable(Observable::fromIterable)                 .map(userMapper)                 .toList();     }   I think this bug is very weird because i already override  the repository Schedulers   This the message     java.lang.NullPointerException    at   com.ahmedabdelmeged.githubarch.data.UserRepository.fetchUsers(UserRepository.java:41)     at   com.ahmedabdelmeged.githubarch.data.UserRepositoryTest.usersRawItemsFromServiceAreMapped(UserRepositoryTest.java:46)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at   org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)     at   org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)     at   org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)     at   org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)     at   org.mockito.internal.junit.JUnitRule$1.evaluateSafely(JUnitRule.java:63)     at org.mockito.internal.junit.JUnitRule$1.evaluate(JUnitRule.java:43)     at   com.ahmedabdelmeged.githubarch.common.RxSchedulerOverrideRule$1.evaluate(RxSchedulerOverrideRule.java:24)


What's the upper bound connections of TServerSocket in Delphi?

Actually I'm trying the ability of TServerSocket in Delphi, and found always around 10K connections are activate, and for the rest, although they're showing me the status "Connected", but still, they cannot receive any message, and for sure, my server socket is broadcasting the same messages to all of them.  So, what's the limit of the TServerSocket? Why there's no data traffic even when connected? Is there any options i can turn?  BTW, I'm using Delphi5.  Thank you in advance.


Which nvidia driver from additional drivers option should I choose?

I have NVIDIA Geforece 7025 / nForce 630a integrated gfx card on my UBUNTU 12.04.And I have 4 options in Additional drivers:    NVIDIA accelerated graphics driver (version 173)   NVIDIA accelerated graphics driver (post-release updates)(version current updates)  NVIDIA accelerated graphics driver (version current)[Recommended]  NVIDIA accelerated graphics driver (post-release updates)(version 173 updates)   I am currently using the First option.  My Problem is there I can't update the version 173 to the latest version of drivers using xswat PPA. Whenever I do it and reboot but the NVIDIA xserver sttings always shows me the same version.  Which option would allow me to update my drivers to the current version?


Name of a comic book with protagonist by the name of York (most probably)

I am trying to identify a comic book I came across as a child in the early nineties of the twentieth century. It was most probably coming from an English speaking country, but I know it from a Polish magazine in which only a short translated fragment was reproduced. I found it really haunting but I found no other trace of it ever since. I have had no access to the comic book since then and all online searches have been futile so far. The protagonist name was, as far as I can recall, York. The setting was somewhat Victorian, 19th century, but possibly more similar to New York than London of that time. The plot contained supernatural elements: weird alien creatures (“a stain”), mysterious temples, ancient civilization living underneath the sea with an artificial sun which must be regularly brought to the surface in order to recharge using “our” sun, telekinesis, telepathy, and the mention of a critical point on the surface of Earth with the potential to destroy it upon an application of only tiny force. It is funny how much I can still remember after reading it once thirty years ago. I found it really cool. Has anyone ever heard about this comic book and could point me to it?


I'm a bit confused about an object casting example in Java.  Say you have the following:  Complex cr = new Real(1.2);   Here, Complex is the superclass, Real is the subclass.  If I cast cr to a Complex, say:  (Complex)cr.method();   it acts the same in the program as just regular  cr.method();   Why is it?


3d view looks really wonky. All I see is what appears to be the camera view?

Not sure how I ended up with this view in my 3d view window. I looked at the display in another 3d view and it shows the whole scene, as it should.  I can't see any difference in the display properties.  How did I end up with this wonky view? And, is there a way, short of collapsing that window and re opening it, of getting it back to the "standard" view?


Finding a bound on the maximum of the absolute value of normal random variables

Suppose that $X_1, \ldots, X_n \sim N(0,1)$ are independent random variables. I am interested in finding a constant C that satisfies:  $$ E\left[\max_{1\leq i\leq n}|X_i|\right] \leq C \sqrt{log\  n} $$  I know one method is to employ the moment generating function trick, then take logs of both sides. However, I was wondering if there exists a more direct method. thanks!


Grid-like layout for pages containing a graph and a table

For an (R) analysis project I am working on I need to automatically generate reports containing graphs and tables that will later be reviewed by other people. I wrote my thesis in latex, but I never had to do layout-intensive parts. I want to a achieve a layout similar to this:    (the horizontal lines are just for illustration, I don't need them in the document)  In the ideal case, I would be able to define presets for three different kinds of pages that, I could define similar to beamer slides:   1/3rd top frame(graph), 2/3 bottom frame (table)  2/3rd top frame(graph), 1/3 bottom frame (table)  full-page graph/table   The images/tables should not be able to screw up the grid, and in the worst case be cropped to the 'frames' they are in.  Is this even possible in latex?


Derivation of a generalization of Mertens' Third Theorem.

One of Mertens' Theorems states $$\prod_{p\le x}(1-\frac{1}{p})\sim \frac{e^{-\gamma}}{\ln(x)}.$$ I have seen a generalized version that states  $$\prod_{m<p\le x}(1-\frac{m}{p})\sim \frac{c(m)}{(\ln(x))^m},$$ where $m$ is a positive integer and $c(m)$ is a real number that depends on $m$. How can I derive this result? Is there a way to find what the values of $c(m)$ are? Thank you very much.


Symmetric Group $S_n$ is generated by transpositions.

I have to proof, that a symmetric group $S_n$, with $n \geq 2$ with support $\{a_1, a_2, ... , a_p\}$ such that $σ(a_k)= a_k+1$ (when $k < p$) and $σ(a_p)=a_1$, is generated by transposition $(1,2)$ and the cycle $σ=(1,2,...,n)$.  I started by verifying that $σ(1)(1,2)σ(2) = (2,3)$.  Then by iteration I show that the next transposition $(3,4) = σ(1)(2,3) σ(2)...$ Iterating until transposition $(n,1)$.  After this how can I then proof that $S_n$ is generated by this transposition?   Thanks!


Reputation changes not visible in the achievement box (again)

Just like , which was marked as . But today, it's not working again. I'm still notified of new badges:      Update: it looks like new events are now updated; reputation events from earlier this UTC afternoon are still missing:


Prove that $R[x]$ is an integral domain if and only if $R$ is an integral domain.

I want to prove that for a ring $R$, $R[x]$ is an integral domain if and only if $R$ is an integral domain.  I have one direction of the proof ($R$ an integral domain implies $R[x]$) an integral domain, but I am having trouble proving the other direction.  Here is the first direction:  Let $R$ be an integral domain, and suppose on the contrary that $R[x]$ is not an integral domain, meaning that it has zero divisors. In particular, let $f(x),g(x)\neq 0\in R[x]$ such that $\deg(f)=n$ and $\deg(g)=m$ and $f(x)g(x)=0$. Specifically, $f(x)=a_nx^n+...a_1x+a_0$ and $g(x)=b_mx^m+...b_1x+b_0$ where $a_i,b_j\in R$ for all $0\leq i,j\leq n,m$. Now, consider the polynomial term $a_nb_mx^{n+m}\in f(x)g(x)$. Because $f(x)g(x)=0$, this means that each polynomial coefficient must be zero, so in particular $a_nb_m=0$. But, $R$ is an integral domain so either $a_n=0$ or $b_m=0$, contradicting the degree of $f(x)$ or $g(x)$. Thus, $R[x]$ is an integral domain.  And here is what I have so far for the other direction, but I'm not sure if I have the right set-up. Any hints or comments are appreciated.  Now, suppose conversely that $R[x]$ is an integral domain, and suppose on the contrary that $R$ is not, meaning that it has zero divisors. In particular, let $ab=0$ where $a\neq 0$ and $b\neq 0$ for $a_0,b_0\in R$. Furthermore, consider the polynomial product $f(x)g(x)=0$ for $f(x),g(x)\in R[x]$, where $f(x)$ and $g(x)$ are defined in the same way as above. Because $R[x]$ is an integral domain, either $f(x)=0$ or $g(x)=0$.


Allow pinging a user who suggested a rejected edit

version of   If a user suggested an edit which was later rejected, they should still be manually pingable on the post.


Can we have a Stack Overflow specific blog?

The blog at  is distinctly different from its cousins at  or . In particular, it has little to do with programming. It really ought to be blog.stackexchange.com as it has naturally morphed into a blog about the larger network. Could this be remedied? Could we have a SO blog about programming?


I have divided my tex files as follows:  . ├── content │   ├── abstract.tex │   ├── mainA │   │   └── a.tex │   ├── mainB.tex │   ├── mainC.tex │   └── MainD │       ├── d.tex │       └── dd.tex ├── main.tex   In my main.tex file, I include all these files.   My  \tableofcontents just outputs one line with title. What am I missing? Below is my MWP.  \documentclass[runningheads]{llncs}  \begin{document} \title{How fancy can the title be}  \maketitle \tableofcontents  \input{content/mainA/a.tex} \input{content/mainB.tex} \input{content/mainC.tex} \input{content/mainD/d.tex} \input{content/mainD/dd.tex}   \bibliography{references}}  \end{document}


Installing the latest hplip runs into missing dependencies (Ubuntu 18.04)

Trying to install the  in the hope that it will solve , I get errors about missing libraries:  warning: Missing REQUIRED dependency: libusb (libusb - USB library) warning: This installer cannot install 'libusb' for your distro/OS and/or version.   How can I install all the missing dependencies in their right versions?  Alternatively, would you recommend any other model/manufacturer for a low-cost printer that simply works with Ubuntu 18.04?


If I downvote an answer to -1, I don't get the "delete" link until I reload

Stack Overflow has a bunch of nice UI things that are XHR'd.  However, when I vote to -1 an answer, I need to reload to get the delete link. It's not very  obvious, as most things just work.  Could we enable the link automatically in this case?


Repack and export a java project as an executable

I made my first application with Java in Eclipse now I need to repackage or create an executable file file from that project. I used a lot of external jar libraries that I would like to export whit the project. Any solution is welcome.


Is Using Digital Signatures to prove identity a zero knowledge proof?

Suppose Alice publishes a book with a public key in it, and later wants to prove that she wrote the book. She could sign challenge messages with her private key, and others could verify those signed messages. Alice is proving she knows a private key without revealing anything about it.  Is this an example of an interactive zero knowledge proof?   Or does this example somehow not apply to zero knowledge proofs?


Recurrence relation, induction and Fibonacci numbers

1.(a) Consider the recurrence relation $a_{n+2}a_n = a^2_{n+1} + 2$ with $a_1 = a_2 = 1$.  (i) Assume that all $a_n$ are integers. Prove that they are all odd and the integers $a_n$ and $a_{n+1}$ are coprime for $n \in \mathbb{N}$.  (ii) Assume that the set $\left\{ a_n,\ a_{n+1},\ a_{n+2}\right\}$ is pairwise coprime for $n \in \mathbb{N}$. Prove that all $a_n$ are integers by induction.  (b) Consider the recurrence relation $a_{n+2}a_n = a^2_{n+1} + 1$ with $a_ 1= 1,\ a_2 = 2$ and compare this sequence to the Fibonacci numbers. What do you find? Formulate it as a mathematical statement and prove it.  I have no idea where to start with 1(ai) but with 1(aii) i have started with:  Given that $\left\{a_n,\ a_{n+1},\ a_{n+2}\right\}$ is pairwise coprime you get $gcd(a_n,a_{n+1})=1,\  gcd(a_n,a_{n+2})=1,\  gcd(a_{n+1},a_{n+2})=1$  Using the initial terms, you can do base induction on $a_{n+2} = \frac{a^2_{n+1}+2}{a_n}$ to prove whether the next terms will be integers.  $a_3 = \frac{1^2+2}{1}$ $a_4 = \frac{3^2+2}{1}$ $a_5 = \frac{11^2+2}{3}$  gives:  $a_1=1,\ a_2 = 1,\ a_3 = 3,\ a_4 = 11,\ a_5 = 41$  which are all integers. So the base induction is correct.  Now for the inductive step $n=k, k \rightarrow k+1$  $a_{k+3} = \frac{a^2_{k+2}+2}{a_{k+1}}$. I am not sure how to prove this for the inductive step.  Also for (b) how do you formulate a mathematical statement and prove it?


Is a conditional image creation with add_image_size possible and which would be the best hook?

I try to get the Picturefill solution described  running with the latest Wordpress install. One thing I wonder is the following. Would it be basically possible to only conditionally create image versions. Normally you have something like that in your functions.php:  add_image_size('res-small', 410, 9999); add_image_size('res-medium',750, 9999); add_image_size('res-large', 920, 9999);   But if you have different scenarios and constraints in one layout it might require more than 3 or 6 image versions (if you include the standard WP ones too)- e.g. 9 or even more. So would it be possible to conditionally create sets of images e.g. :   <?php if($hook == x) {     add_image_size('bps1-small', 410, 9999);     add_image_size('bps1-medium',750, 9999);     add_image_size('bps1-large', 920, 9999); } else if ($hook ==y) {     add_image_size('bps2-small', 360, 9999);     add_image_size('bps2-middle', 520, 9999);     add_image_size('bps2-middle', 820, 9999); } else {     add_image_size('bp3-small', 220, 9999);     add_image_size('bp3-middle', 820, 9999);     add_image_size('bp3-large', 1200, 9999); } ?>   Would that basically work or does WP require to generate EVERY image size listed in the functions.php or is there an even more elegant way? Unfortunately I was unable to test it yet cuz i am out of ideas which would be a practical hook  after which the if function could distinguish which set of images it should create. Any suggestions would be appreciated. Thanks a lot Ralf


Show this set is a base for some topology on $\mathbb{Z}$

Given $a,b \in \mathbb{Z}$ with $a \neq 0$ define,  $$S(a,b)=\{an+b : n \in \mathbb{Z}\}$$ Then $\mathscr{B}=\{S(a.b) : a \in \mathbb{Z} \setminus \  \{0\}, b \in \mathbb{Z}\}$ is a base for some topology $\mathscr{T}$ on $\mathbb{Z}$.  My work:  We need to show that for every $x \in S(a,b) \cap S(c,d)$ there exists another base element $S(e,f)$ such that $x \in S(e,f)$.  So far I've noted the following,  $$S(a,b)=\{x : x \equiv b(mod \,a)\}$$ $$S(c,d)=\{y : y \equiv d(mod \,c)\}$$  now I am trying to find what the elements of the intersection of these sets are, through basically testing a couple examples it looks to be the set $S(ac, b+d)=\{(ac)n+(b+d) : n \in \mathbb{Z}\}$.  Now is where I need help, I can't find a nice way to show that this set is in fact the intersection.  Any help is appreciated, thanks!!


Can we use hide to mean make something disappear?

Someone asked me     What if someone hides their instagram stories from you?   I replied      I'd hide them from my life.   Is my sentence right  Does hide mean to make disappear?  If not What else could I have used here?  Someone told me the object of preposition "from" is a person who is not supposed to see or find that which is hidden  So what about this sentence?      the magician hid(made her disappear) from the stage?   Is it wrong?


Hi I am having the following code. when i am using instance variables i am getting the output as follows(Default Values)  int value: 0 float value: 0.0 String value: null Static int value: 0   But if i try declare the local variable and print the default value it is giving an error that the variable should be initialized. Can any one explain me the reason please?  public class DefaultValues {   int a;   float b;   String c;   static int d;   public static void main(String[] args) {           int e;                                     // <----     DefaultValues dv = new DefaultValues();     System.out.println("int value: "+dv.a);     System.out.println("float value: "+dv.b);     System.out.println("String value: "+dv.c);     System.out.println("Static int value: "+d);     System.out.println("local int value: "+e); // <----   } }


How can I include a Photoshop file inside another Photoshop file?

If one was designing a website where they laid out each page mock as a separate photoshop file but each one had the common elements of the site such as the header and footer, but also could have common elements like buttons—is it possible to design the button in one photoshop file in its own and then include it inside a page mock file. Then if the content of the button psd file change it would automatically change in the page mock file.  Is this possible? Am I making sense?


I need some help, in my database I have a relation many to many, so I created an aux table to make 1 to many relationship, the tables are the next.  offices           request        request_x_offices -------          ---------       ------------------  id               id              id_request office_name      name            id_office   So when i do a query to request_x_offices i get some like the next  request_x_offices ----------------- id_request| id_office ----------------- 1   1 1   2 1   3 1   4 1   5  2   1 2   2  2   3    etc...   after I do a JOIN to replace the offices_id by the name of the office and I get the next  id_request|office_name ----------------- 1 | office_name1 1 | office_name2 1 | office_name3 2 | office_name1 2 | office_name3 2 | office_name5   But I want to get something like the next.  ------ id_request|office_name 1 |office_name1, office_name2, office_name3 2 |office_name1, office_name3, office_name5   I tried do a coalesce but I only get a single row with all the office_name of all the id's :(  Any help will be appreciated, thanks for you time guys.


How do photons mediate (or create) a force?

Is there a somewhat intuitive explanation as to why the exchange of a photon between two particles causes a force between those particles? Is there a difference in the way massless and massive particles act in this regard?


How was Tony able to communicate with Veronica?

Since, in Avengers: Age of Ultron,       Ultron is in the internet, and all files, and pretty much everything connected to a computer (think Cylons),    how does Tony communicate with Veronica without Ultron stopping him?


WHAT IS DIFFERENCE BETWEEN "STORY" AND "TALE" IN THIS CONTEXT?

For all their efforts, the diplomats at Versailles achieved the precise opposite of what they had set out to do, inexorably, tragically laying the groundwork for the next, more horrible world war. In this sense, then, the story of diplomacy also reads as a cautionary tale. source:


Let $G$ be a commutative group of odd order.  Show that the map $f(a)=a^2$ is an isomorphism of groups from G to itself.  $f(ab)=(ab)^2=a^2b^2=f(a)f(b)$ so clearly its a homomorphism.  Now suppose $f(a)=f(b)$.  Then $a^2=b^2$.  Multiply on the left by $a$.  $a^3=ab^2$ and since G is odd, $a^3 =e$.  So $e=ab^2$. Then multiplying by $b$ on the right,  $eb=ab^3$ and $b^3 = 1$ so $a=b$. It is injective.  How do we show it is surjective?


Context : In order to test some backup process which are supposed to work all nights, i want to select a random files on a large amount of datas. (Around 7 millions of files. This is a NFS server with  ~8To of data used, mainly web applications.   The random selecting part need to be called 2 times, first with pure random selection, and then i want to pick some fresh files (something like : find /data/ -mtime 1|shuf -n 1 ) I wrote a script which made a parsing of backup configuration files, try to restore via the tool, compare original checksum with the old one and report all tests in a mail.  Everything work except the "random selecting part", indeed i've some performance issues.   I've tested many ways to select random files on a large FS. here is some of my ideas :    Select random used inodes and getting the filename of associed inode (Performance issue, to lot of ram needed, process is very long.)  find /data/ -type f -mtime 1 |shuf -n 1 →  (Too much files piped to shuf (time $command ~ 46seconds) ) RANDOM=$(shuf -i 1-7000000 -n 1) && find /data/ -type f -mtime 1 |head -n ${RANDOM} → Same performance problem when random > 1000000 (time $command ~ 49seconds)) Python discovery script with (os.listdir) → Good performance but i used with ctime, horrible performance issues   I'm very surprised to not find some library/tools/scripts (in Python, Bash, C or whatever) for making things like explained before. It seems not be a specific problem, i think that some admins in the world and to test randomly if backup are working correctly.   So i'm interrested of some ways to do it, with specific GNU/Linux/BSD/*nix tools, Python script/library. Hope you consider that i'm searching for "high performance" things. My script will call solution for each path backup config files.   Thanks in advance


Where can I get an official verification whether a transit visa is required?

I am a Indian Citizen and will be travelling to Lyon (France). Right now, I am just checking various flights. I haven't decided, as  most of the flights transit through a Schengen country, Middle Eastern country, or Russia.   I want to be sure about the transit visa requirements in each country before making flight reservations. While I've checked transit visa requirements of many countries, most of these answers are from forums. I keep seeing posts that say "as long as you are not leaving the airport you do not require a transit visa," which is not necessarily the case.   I do understand that it depends on your nationality and duration of layover, but I want to find the genuine source to get the answer regarding transit visa of a country.


Proving $\prod \limits_{k=0}^{n}(1-a_k) \geq1- \sum\limits_{k=0}^{n}a_k$

Let $(a_n)_{n \in \mathbb{N}}$ a sequence of real numbers with $0 \leq a_n \leq 1$ for all $n \in \mathbb{N}$.  I want to prove the following inequality using mathematical induction:  $\prod \limits_{k=0}^{n}(1-a_k) \geq  1- \sum\limits_{k=0}^{n}a_k$.  It's obviously true for $n=0$.  $n \rightarrow n+1$  Assume that it's true for n. Then one has:  $\prod \limits_{k=0}^{n+1}(1-a_k) = (1- a_{n+1}) \prod \limits_{k=0}^{n}(1-a_k) \geq (1- a_{n+1}) (1- \sum\limits_{k=0}^{n}a_k) = 1- \sum\limits_{k=0}^{n}a_k - a_{n+1} + a_{n+1} \sum\limits_{k=0}^{n}a_k = 1- \sum\limits_{k=0}^{n+1}a_k + a_{n+1} \sum\limits_{k=0}^{n}a_k=...$  How to go on?


Change \textwidth and \textheight in mid-document

I set my \textwidth and \textheight in the preamble and would like to change both for some pages. How can this be done? E.g., the following example for \textwidth appears to work for the page number, but not for the text:  \documentclass{article}  \textwidth=5cm \textheight=5cm \begin{document} A \hfill B \eject \textwidth=10cm A \hfill B \end{document}   Output (true to scale):


How did the Dumbledore brothers get away with Ariana's murder?

Some of you might insist that it was not a murder, as we know that a rebounding spell had hit Ariana, as shown in .  However, a death in such a well known family would not go uninvestigated, I presume. Were the Dumbledore brothers investigated? How did they get away with their sister suddenly dropping dead?  I'd think that Ministry of Magic has means to recognize a death caused by magical means. That's how we know that Tom Riddle Snr. was killed by Avada Kedavra. So Ariana's failing health might be a poor excuse.


limit of Holder norms: $\sup\limits_{x\in [a,b]} f(x) = \lim\limits_{n\rightarrow\infty} \left(\int_a^b (f(x))^n \;dx\right)^{\frac{1}{n}}$

Show that $$\sup_{x\in [a,b]} f(x) = \lim_{n\rightarrow\infty} \left(\int_a^b (f(x))^n \;dx\right)^{\frac{1}{n}}$$ for f continuous and positive on [a,b].  I can show that LHS is greater than or equal to RHS but I can't show the other direction.


Is the operator $(\cdot)^{\frac{1}{p}}$ subadditive for $1<p<\infty$ for positive numbers?

Is the operator $(\cdot)^{\frac{1}{p}}$ subadditive for $1<p<\infty$? I am aware that the square root operator is subadditive for positive numbers, as for $a,b > 0$: $\sqrt{a+b}\leq \sqrt{a}+\sqrt{b}\iff a+b\leq a+2\sqrt{a}\sqrt{b}+b$ and the last statement is trivially true since $\sqrt{a}\sqrt{b}\geq 0$. How can I generalize this proof for $p\in (1,\infty)$? Is the assumption on non-negativity of $a$ and $b$ necessary?


How to construct matrix of regular and "flipped" 2-qubit CNOT?

When constructing the matrices for the two CNOT based on the target and control qubit, I can use reasoning:  "If $q_0$==$|0\rangle$, everything simply passes through", resulting in an Identity matrix style $\begin{bmatrix}1&0\\0&1\end{bmatrix}$ in the top left. "If $q_0==|1\rangle$, we need to let $q_0$ pass and swap $q_1$, resulting in a Pauli X $\begin{bmatrix}0&1\\1&0\end{bmatrix}$ in the bottom right.  $CNOT \equiv \begin{bmatrix}1&0&0&0\\0&1&0&0\\0&0&0&1\\0&0&1&0\end{bmatrix}$  "If $q_1$==$|0\rangle$, everything simply passes through", results in leaving $|00\rangle$ and $|10\rangle$ unaffected. "If $q_1==|1\rangle$, we need to let $q_1$ pass and swap $q_0$, mapping $|01\rangle$ to $|11\rangle$ and  $|11\rangle$ to $|01\rangle$  $CNOT \equiv \begin{bmatrix}1&0&0&0\\0&0&0&1\\0&0&1&0\\0&1&0&0\end{bmatrix}$  This all seems to check out, but here comes my question: I would like to know if there is a more mathematical way to express this, just as there would be when combining for instance two hadamard gates: $H \otimes H \equiv \frac{1}{\sqrt{2}}\begin{bmatrix}1&1\\1&-1\\ \end{bmatrix} \otimes \frac{1}{\sqrt{2}}\begin{bmatrix}1&1\\1&-1\\ \end{bmatrix} = \frac{1}{2}\begin{bmatrix}1&1&1&1\\1&-1&1&-1\\1&1&-1&-1\\1&-1&-1&1 \end{bmatrix}$  And a bonus question:  How I can, using notation like "CNOT", show which qubit is the control bit and which qubit the target bit?


Allow cross-site queries in data explorer

I think it would be useful if we could join across databases in the data-explorer.  For example, I'd like to query up a list of questions that I had a hand in migrating away from SO, and see what percentage of them were subsequently closed or re-migrated.  I realise I could download the various data dumps and do this on my own machine, but it would be nice if it were allowed on the online version.  Is this possible/practical?


How do I stop the screen from being locked on suspend?

On GNOME the screen locks when I suspend, and I find that a bit annoying (no one else in the house uses ubuntu anyway haha). What can I do to stop this?


Gyroscopic precession force translated 90 degrees?

I was watching a video on propeller gyroscopic effect, please take a look at this 1 minute segment (up to 6:06):    Alternatively, here is a summarizing image from the above video:    Could you please explain mathematically why the person says that, when a force is applied at one point on the gyroscope, its effect gets translated by 90 degrees in the direction in which the gyroscope is turning? Thanks a lot!


Kingo Root fails and gives error code 0x11f116 (Xiaomi Redmi Note 9)

I unlocked bootloader on my Xiaomi Redmi Note 9 and tried to Root it with Kingo Root mobile and desktop. Both keep failing and mobile gives error code 0x11f116. Now mobile version crashes when lauching. I couldn't find any information about that code, so can anyone help?


QGIS 2.8.1 print composer won't export all OpenCycleMap base layer tiles

My set-up is Linux Mint 17.1, 32- bit system, QGIS 2.8.1-Wien.  I have a map with few layers including OpenCycleMap as a basemap.  In Print Composer the extent of the map is 32.5km x 22km square and the print page size is A1.  I am exporting from Print Composer to a large PNG image file of about 220Mb (container size) at a resolution of 200 DPI.  Everything exports to the image file fine, except OpenCycleMap. It does not appear to have enough time to download from the server.  There are therefore many missing background map tiles.


How to prove      $$I=\int_0^1\frac{\ln^2(1+x)}{1+x^2}\ dx=4\Im\operatorname{Li}_3(1+i)-\frac{7\pi^3}{64}-\frac{3\pi}{16}\ln^22-2\ln2\ G$$   Where $ \operatorname{Li}_3(x)$ is the the trilogarithm function and $G$ is the Catalan constant.  Variant approaches are appreciated.


Is the likelihood term in Baye's rule a conditional probability?

Baye's rule allows us to estimate the distribution of model parameters $\theta$ given the data that we have seen. where $$p(\theta |D) = \frac{p(D|\theta)p(\theta)}{\int p(D|\theta)p(\theta)d\theta}$$ The term $p(D|\theta)$ is regarded as the likelihood of the data given some model parameters $\theta$ . Many answers have been provided saying that the likelihood is . In this scenario where $\theta$ is treated as a random variable with a gaussian prior for example, is $p(D|\theta)$ a conditional probability or a function over the parameter $\theta$ ? I have been reading  on Bayesian Inference as well, and the term $p(D|\theta)$ seems to treat $\theta$ as a parameter rather than a random variable ? Intuitively, I feel that $p(D|\theta)$ in the Bayesian formula treats $\theta$ as a parameter. I still have some doubts however.


Unity doesn't load - only desktop wallpaper in 16.04

I changed my HDD of Ubuntu 16.04 from i7 Lenovo PC (GTX-960, 32 GB) to i5 Dell PC (very old GPU, 16 GB). I ran the following commands in the recovery shell of the i5 PC:  sudo apt-get purge nvidia*  sudo apt-get update sudo apt-get upgrade   I can login successfully but I see no GUI, only Ubuntu's background.     How can you transfer Ubuntu 16.04 HDD to New PC successfully?


In , Cobb uses his dead wife Mal's totem. It is not clearly mentioned or shown what was Cobb's original totem? Or did I miss something? Help please.


How can you find the number of occurrences of a particular character in a string using sql?  Example: I want to find the number of times the letter ‘d’ appears in this string.  declare @string varchar(100) select @string = 'sfdasadhfasjfdlsajflsadsadsdadsa'


Wildcard certificates with short hostnames?

I'm trying to generate a certificate with the following subjectAltName:  hostname *.hostname hostname.mydomain.local *.hostname.mydomain.local   I generate the CSR via OpenSSL and then get the certificate from Microsoft Active Directory Certificate Services. Certificate works OK for the following alternative names:  hostname hostname.mydomain.local *.hostname.mydomain.local   But, *.hostname just doesn't work. Testing with Curl, I get the following output:  % curl https://m.example/ curl: (51) SSL: certificate subject name '*.example' does not match target host name 'm.example'   If, on the other hand, I add 'm.example' as a subjectAltName, then it works. So, wildcard with shortened hostname just refuses to work.


The final state of 1000 light bulbs switched on/off by 1000 people passing by

There are  1000  light bulbs and 1000 tutors. All light bulbs are off. Tutor 1 goes flipping light bulb 1,2,3,4... tutor 2 then flips 2,4,6,8... tutor 3 then 3,6,9...etc until all 1000 tutors have done this.  What is the status of light bulb 25? 93? 576?  Is there a general solution to find out the status of any light bulb?  How many light bulbs are on after all 1000 tutors have gone by?  Not homework but a UK university interview question. Please help.


I have written a program in Python, using version 3.3.3. This program is just a simple weight loss tracking program that uses a pictograph for visual representation of whatever number the user has input. The characters used in the pictograph are all unicode (□▪▫∙). I have used the open() function as follows:  open('Pictograph.txt', mode = 'a', encoding = 'utf8')   Prior to using open(), I was using tkinter's askopenfile() which would allow me to let the user choose which file they'd want to save to, but would not allow me to set the encoding to UTF-8. I finally stumbled upon the encoding option of open(), which works well, but only in the Python shell. (I was having problems writing those characters to a standard .txt file before this, encoding = 'utf8' made the difference for that problem, but did not help anything in the command line.)  Now, I have a 'help' option that enables the user to see a legend of the pictograph, and in so display cp1252 text, as well as the four Unicode characters listed above.    I just captured this image, but prior to that I felt it had to do with text encoding in the command line. Is there any way to allow my program to set the command line to where it can read those characters and not crash?  This is what is supposed to print (as seen in the shell):    Any insight would be greatly appreciated.    Okay, so this is a duplicate. That's it? I tried looking for an answer for over an hour. I didn't find anything that would solve my problem. I would like not to have to spend another hour trying to find the page I am supposedly duplicating.


How, on a physical level, does ATP confer energy?

When ATP is used as the energy currency to make, say, reaction X + Y → Z happen, is what happens on a physical level down at the molecular scale that during the reaction    ATP + H2O → ADP + Pi       ΔG˚ = −30.5 kJ/mol (−7.3 kcal/mol)    that 30.5 kJ/ mol is conferred by ATP molecules physically bumping around the reactants X and Y, the kinetic energy of the above reaction being what does it?  I mean, is the energy coin of ATP conferred to reactions by molecular collisions, or is it an electric field effect in the spatial geometry the way the ATP molecule tends to break apart?


(basic) Closure in Constructor Functon - what am i doing wrong?

A private method is called to some private parameters. However, they log as “undefined”! The problem area is indicated with a 🚩 in the code below. Why doesn’t Closure work here? What am I not getting? (background: I am 3 weeks into learning JS and am making a simple timer as learning exercise) Thanks in advance, Lenn function Timer() {     let _startTime , _stopTime, _durationHistory = 0;     let _startTrigger = false;     let _stopTrigger = false;      timerSwitch = function(log, trigger) {         log = Date.now() * 0.001;         trigger = true;      };      this.start = function(){         timerSwitch(_startTime, _startTrigger); //🚩why doesn't closure apply here?          console.log("timer started", _startTime); //🚩the console logs _startTime as Undefined. I'm expecting it to inhert the new Date.now() *0.001     };      this.stop = function(){         timerSwitch(_stopTime,_stopTrigger);         _durationHistory = _durationHistory + (_stopTime - _startTime);         console.log(`timer stopped: ${_stopTime}s | _durationHistory: ${_durationHistory}`);     };      this.reset = function(){         _startTime = 0;         _stopTime = 0;         _durationHistory = 0;         console.log('timer reset: start', _startTime, ' | stop ', _stopTime, '| history ', _durationHistory);     };      this.duration = function(){         console.log(_durationHistory);     }; };  tmr = new Timer(); tmr.start();```


I would like that the width of the first column of an array to be 2cm and the second column to be 1cm. I have the following document but apparently the setting for the width of the second column is not working.    \documentclass{book}     \usepackage{multicol}     \begin{document}     \begin{multicols}{2}     \noindent      \begin{tabular}{ p{2cm} l   p{1cm} r}      abc abc abc abc   & xyz xyz xyz xyz xyz \\      \end{tabular}     \end{multicols}     \end{document}


I want a software for blogging like Live Writer in Linux and GNOME.  Do you have any idea?


I have a model from a previous version of Blender, and the more advanced material options are not available from the menu.  If I do a "Load Factory Settings" then the new material options show, but not with the old model loaded.  Can I get an old model to work with the new material options?    BTW: I'm looking to control the alpha channel.      This is how it looks after "Load Factory Setting"


I rendered a png file which has appeared as with a box where the smoke should be. There's also a screenshot of the materials setting selected which does show the smoke. Whats going wrong here?        I don't think I have any materials for the emitter? The smoke is created from the quick effects menu.


What do they mean? How should I use them? Which one is more appropriate to what context?  I was talking to a colleague of mine and we couldn't get to a consensus about what should we say when referring to drinks, for example:     A lemonade is made of lemons.   or     A lemonade is made with lemons.


Errors: Exception in thread "main" java.lang.NullPointerException

I'm trying to insert data in sql with java. I finished writing but when i run it i receive this error :   Exception in thread "main" java.lang.NullPointerException  No suitable driver found for jdbc:sqlite:C:/Users/inflamesc/Desktop/pp project/neural.sql     at insertapp.insertapp.insert(insertapp.java:26)     at insertapp.insertapp.main(insertapp.java:44)  here is my code: What is the problem ? what im doing wrong ?  package insertapp;  import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException;    public class insertapp {   private Connection connect() {      String url = "jdbc:sqlite:C:/Users/inflamesc/Desktop/pp project/neural.db";     Connection conn = null;     try {         conn = DriverManager.getConnection(url);     } catch (SQLException e) {         System.out.println(e.getMessage());     }     return conn; } public void insert(String id, String firstName, String lastName, String userName, String email, String password, String aboutMe ) {     String sql = "INSERT INTO USERS(id,firstName,lastName,userName,email,password,aboutMe) VALUES(?,?,?,?,?,?,?)";      try (Connection conn = this.connect();         PreparedStatement pstmt = conn.prepareStatement(sql)) {         pstmt.setString(1, id);         pstmt.setString(2, firstName);         pstmt.setString(3, lastName);         pstmt.setString(4, userName);         pstmt.setString(5, email);         pstmt.setString(6, password);         pstmt.setString(7, aboutMe);          pstmt.executeUpdate();     } catch (SQLException e) {         System.out.println(e.getMessage());     } }  public static void main(String[] args) {      insertapp app = new insertapp();     app.insert("1", "Jedi","TheLast","TheLastJedi","jedi@example.com","12345","slacker");     app.insert("2", "Chew","Becca","ChewBecca","chew@example.com","12345","noisy"); }   }


ConcurrentModificationException on List size()

I'm trying to do some caluclation for each value of the list in the main thread as below  for (int i = 0; i < list.size(); i++) {                 //Do some task             }   Bur I'm getting the ConcurrentModificationException on list.size().  It is the simple java.util.List  Caused by: java.util.ConcurrentModificationException                                                                         at java.util.AbstractList$SubAbstractList.size(AbstractList.java:360)                                                                         at java.util.Collections$SynchronizedCollection.size(Collections.java:440)   How to solve this ?  Complete code :  private List<Double> computeValue(@NonNull List<Double> list1, List<Double> list2) {         List<Double> computedList = new ArrayList<>();             for (int i = 0; i < list1.size(); i++) {                 computedList.add(-((list1.get(i) + list2.get(i)) / 2));             }         return computedList;     }


Cartoon where 4 elemental children fight big monsters but have to press a symbol

The 4 children each have an element but they have to press a symbol hidden on the skin of the enemy to activate their powers. I remember them changing into a look that represents an animal (fire was either a lion or tiger, wind was a pink butterfly, thats all i remember).


A ring $R$ is called an algebra over a field $k$ whenever $R$ is a vector space over $k$ and $λ(rs) = (λr)s = r(λs)$ for all $λ ∈ k$, $r$, $s ∈ R$. Prove that $\mathbb{Z}$ is not an algebra over a field.   Is it correct to say that since $\mathbb{Z}$ cannot be a vector space over any field, it cannot be an algebra?  Edit: Is it possible to prove this without using the above fact? The proof of the above fact involves something I haven't learnt, so I guess I should be able to solve this problem by showing that suppose $\mathbb{Z}$ can be a vector space over a field, and it would lead to a contradiction.


Is there is any harmful effect if I am using 2 amp instead of 1 amp

for my dish tv set up box. I am using 5 volt 2amp ac/dc adapter instead of 1amp. Is it okay? Or harmful? That dealer said to me that I can use higher amp.  Please reply. ...


I was recently gifted an old Mid 2010 Macbook Pro with the following specs listed here:    I would like to do a few things to it, but I have never owned an apple computer before and I know there are some restrictions on the hardware i can purchase to upgrade it.  These are the things I want to do  1) Upgrade Ram: Currently it has 2x2GB of RAM in it. This model is rated for up to 8GB but I have been reading online and it seems some people have been able to successfully install 16GB of RAM, so i am confused. Does anyone have a definitive statement on whether or not this Macbook Pro will work with 16GB of RAM? If it does accept 16GB total which RAM should i buy for a Macbook Pro like this? If it only accepts 8GB total which RAM should i buy? And I know the clock speed must be 1066Hz for this Macbook Pro, but can i use DDR3, or DDR4 RAM? Does the DDR type matter?  2) Install Secondary Hard Drive: I am not 100% so i need someone to inform me but i believe there is space in this Macbook Pro for a second hard drive. Does the CD Drive need to be removed in order for a second Hard Drive to be put in? Or is there simply space inside it for a second hard drive but not installed by Apple? Either way I would like to install an SSD into it and install the Operating System onto that SSD. Which SSD can i look to buy that is compatible with this  Pro?  3) Fresh install of Mac OSX: As it currently stands my friend who gave this laptop to me didn't erase his data. I am uncomfortable with this and want a fresh start. How do I do a fresh install of Mac OSX Mavericks (or should i wait for Yosemite?). Where can i buy a Disk/USB for it (or make a disk/USB for it) to do a clean install and how do i format a Macbook Pros hard drive and install fresh? Should this be done at an apple store?  4) Higher Screen Resolution: This is my lowest priority and I don't think it is possible to do without major invasive changes to the Macbook Pro but i want to know if it is possible. Currently the Max Resolution on the Device is 1440x900, i would like to know if it is possible to replace the LCD with one that is 1920x1080 for high resolution.


How can I change the language for dictation on the fly?

With English not being my first language, I usually need support for at least two languages when using features like auto-correct and dictation.  Is it possible to toggle the language which is used for dictation via a shortcut?  As of now, I always have to manually navigate through the menus in the System Preferences which if far from convenient. I've tried to see if there are any pre-defined actions in Automator, but found none.


Today this "forbidden" ethernet/airplane mode icon appeared in the Panel.    The little square one with the red circle. How do I remove it please? I've tried Alt+right-click, but the only option not grayed out is Always on top which isn't much help.


Why does my CC give me cash back, when they get nothing from me?

When I applied for my new credit card, I answered several questions.  In one of these I indicated that I pay off the balance of my card every month.  The bank is not getting interest from me, since I do this.  But I still get cash back for purchases I make with this card.  What is the bank getting out of the deal?


Reference contains five authors (reference writing)

When you use bibtex to write references that contain more than three authors, not all names appear, but only the first name and others appear  How can I show the names of all authors  Example  \RequirePackage{filecontents} \begin{filecontents}{\jobname.bib}      @article{RN63a,        author = {Xu, Liyun and Chen, Yanhao and Briand, Florent and Zhou, Fengxu and Givanni, Moroni},        title = {Reliability Measurement for Multistate Manufacturing Systems with Failure Interaction},        journal = {Procedia CIRP},        volume = {63},        pages = {242-247},        ISSN = {2212-8271},        year = {2017},        type = {Journal Article}     } \end{filecontents}   \documentclass[a4paper,10pt]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc}  \usepackage{csquotes} \usepackage[%   style=numeric,    sortcites,   backend=biber,   giveninits=true % <=================================================== ]{biblatex} \addbibresource{\jobname.bib}  \DeclareNameAlias{default}{family-given} % <============================ \renewcommand*\newunitpunct{\addcomma\space} % <========================   \begin{document}  \section{First Section} This document is an example of BibTeX using in bibliography management.  Three items are cited: \textit{The \LaTeX\ Companion} book  \cite{RN63a}.  \medskip  \printbibliography  \end{document}


GRUB booting even though I have Ubuntu uninstalled

A while ago, I'd say 2 or 3 years ago, I didn't have a Windows 7 License, so I decided to install Ubuntu, because I'd always wanted to try Linux, and because it was free. I decided it wasn't my cup of tea, and decided I just wanted to buy a W7 license.   So, since I uninstalled Ubuntu alongside Windows 7 license-less at the time, I just went into Windows 7's Programs and Features menu, and uninstalled Ubuntu, and wiped the partition and conjoined it with the main one.   Now, at the time, I thought this was all I needed to do, so I didn't do FixMBR before uninstalling and deleting the partitions. Fast-forward to nowadays, I took advantage of the free update to Windows 10 from last(?) year, I've had to live with the minimal bash-like editing is supported... menu and pressing f11 and f12 and selecting boot drive as Windows Boot Manager every time I launch my PC.  As a separate note, if this matters to the situation, in my Disk Management window, there's a EFI partition of 100 MB in my main disk, while my C: drive is NTFS and I have a recovery partition.  Also, I forgot to mention that Fixmbr and similar commands in a recovery drive don't work.  So, I was wondering if there was any way to fix this so that my Windows boots automatically?


Select All Records From Table That Do Not Exist In Secondary Table

This should be straight forward, but I am getting my tail kicked with the proper syntax.    I have this syntax  Select DISTINCT     bm.Location     ,bm.[Beer (Upcoming Menu)] FROM      ___SampleRequired bm LEFT JOIN      ___Sample td      ON LTRIM(RTRIM(bm.[Beer (Upcoming Menu)])) = LTRIM(RTRIM(td.Beer_name)) WHERE      bm.Type LIKE '%Mandate%'     AND bm.Location = 'StapleChase'   which I want to show all beer that exist in the SampleRequired Table that DO NOT exist in the Sample Table.  When I execute the above query I get 24 results returned.  My expected returned result set is 23 because   BLUE MOON BELGIAN WHITE   exists in both of the tables.  How should I change this query so that I ONLY get the results that exist in SampleRequired that DO NOT exist in Sample?  ***Had to use pastebin bc SO complained my post was mostly code...sorry


What is Probabilistic Programming Used for?

I am hearing a lot about probabilistic programming.  Turns out its just a way to specify probabilistic graphical models.  Like Tensorflow is to neural networks.  So, why use it? Do you know of any place where it has been useful?


Proof of the uncountability of reals using the diagonal argument—problem?

Consider a common proof of the uncountability of $(0,1]$, as presented  for example:  We assume that the reals can be arranged in a sequence $x_k$, represent every number in $x_k$ by its nonterminating decimal expansion, use the diagonal argument to create a sequence of decimal digits that differs from the nonterminating decimal expansion of each number in $x_k$ and then claim that this sequence of digits so generated must be the decimal expansion of some number not in $x_k$.  My problem is with this last step. Could it not be the case that the new sequence of digits is just the terminating decimal expansion of some number already in $x_k$?  Would it not be more correct to use the sequence $x_k$ to generate a sequence of all (both terminating and non-terminating) decimal expansion of all numbers in $[0,1)$ and then apply the diagonal argument?


Limit of the geometric sequence $\{r^n\}$, with $|r| < 1$, is $0$?

Prove that the $\lim_{n\to \infty} r^n = 0$ for $|r|\lt 1$.   I can't think of a sequence to compare this to that'll work.  L'Hopital's rule doesn't apply.  I know there's some simple way of doing this, but it just isn't coming to me. :(


How to disable Page Table Isolation to regain performance lost due to Intel CPU security hole patch?

Because of the current Intel CPU security hole issue, there is a patch expected which slows down the system performance.  How can I make sure that this patch will not be installed on my Ubuntu system?


Define the binary operation $\bigtriangleup$ on $P(A)$ by $X \triangle Y = (X-Y) \cup (Y-X)$.Prove $\langle P(A), \triangle\rangle$ is group.

Let A be a set.Define the binary operation $\bigtriangleup$ on $P(A)$   by $X \bigtriangleup Y = (X-Y) \cup (Y-X)$ for all $X,Y \in  P(A)$.Prove that $\langle P(A), \bigtriangleup\rangle$ is an abelian group.   In this question I stuck in showing that the binary operator $\bigtriangleup$ is associative.  I wrote what are $X \bigtriangleup (Y \bigtriangleup Z)$ and $(X \bigtriangleup Y) \bigtriangleup Z$, and then by drawing Venn diagrams, I concluded that these two operations gives different results.I checked my calculations, but couldn't find anything.  I can write here my calculations, but the way that I have tried to solve is pretty tedious way to prove such kind of thing, so I am asking that how can I prove that this binary operator is, in fact, associative ?


Yosemite - Require password after sleep is disabled

I am trying to prevent the system to always ask for the password when it wakes up from sleep.    I have a MacbookPro with Yosemite 10.10.5.  User has admin rights and password different than the iCloud one.  FileVault is off.   The System Preferences > Security and Privacy > "Require password [5 seconds] after sleep or screen saver begins" is disabled and there's no way to enable it.   If I execute defaults read com.apple.screensaver i get:  {     askForPassword = 0; }   If I execute defaults -currentHost write com.apple.screensaver askForPasswordDelay -int 3600 the defaults don't change...


RFC on I-live-inside-a-massive-sphere Paradox

my respect to this great community! I've been thinking on the mechanics of a collapsing star and this led me to the following paradox which I can't explain: Assume I live inside a perfect sphere (of non zero thickness) of matter. Newton showed that inside such a sphere observer feels no gravity, because in every interior point all gravity vectors add up to 0. (I'm not sure if this holds in GR. I don't have the mathematical skill to verify it. But I assume it probably does.) The basic assumption of SR is that the laws of physics work exactly the same for all observers in uniform motion. Living inside the spehere I feel no forces so I assume all laws of physics will work normally in my frame of reference. Now the interesting part: Assume that the sphere is made of some incredibly dense and incredibly strong material (this assumption is not necessary - more on that later - but it will help to illustrate). Perhaps some degenerate quark matter held together by the Strong Force (not that important). Consider what happens if we start to increase the density and mass of the sphere. As the mass increases I continue to live my happy life inside the sphere, as all gravity still cancells itself out. But as some point the mass of the sphere is so great that it's Schwarzschild Radius becomes greater than the radius of the sphere. For the outside observers the sphere just became a Black Hole. And now I live inside a Black Hole. Space and time switch places... The singularity is in my kitchen... But at no point during the mass increase process I saw anything happening at all. I wouldn't be able to measure in any experiment that the mass around me increased. And yet instantly I have this singularity in my kitchen. Impossible. It's not continous. Paradox. What's the point of this? I speculate that the core of a collapsing star has the exact same experiance. It never notices that an event horizon emerged around it. That is also the reason why the assumption that the sphere is strong is irrelevant. I'm interested in the very short instant of time during the core collapse right before event horizon emerges. I appreciate any insght you might have on how this paradox can be resolved.


Vertically centering a div inside the parent div

I have this problem of centering the div vertically. I've looked over Stackoverflow but nothing seems to fix my problem. Here's the code:   .contactform {   width: 100%;   min-height: 100vh; }  .contact {   width: 100%;   height: 500px;   text-align: center;   background-color: rgb(36, 125, 241);   margin-top: 100px;   margin-bottom: 100px; }  .contact h1 {   font-size: 40px;   letter-spacing: 4px; }  .contact-content {   width: 70%;   height: 100%;   display: flex;   /* justify-content: center;   text-align: center; */   margin: 0 auto;   /* position: absolute; */   margin-top: 50px; }  .contact-column-one {   width: 33%;   height: 50%; }  .contact-column-one .location i {   font-size: 50px;   cursor: pointer; }  .contact-column-one .location i:hover{   color: rgb(19, 112, 233);   transition: .5s; }  .contact-column-one h1 {   font-size: 30px; }  .contact-column-two {   width: 33%;   height: 50%; }  .contact-column-two .phone i {   font-size: 50px;   cursor: pointer; }  .contact-column-two .phone i:hover {   color: rgb(19, 112, 233);   transition: .5s; }  .contact-column-two h1 {   font-size: 30px; }  .contact-column-three {   width: 33%;   height: 50%; }  .contact-column-three .email i {   font-size: 50px;   cursor: pointer; }  .contact-column-three .email i:hover {   color: rgb(19, 112, 233);   transition: .5s; }  .contact-column-three h1 {   font-size: 30px; }

CONTACT US

                                                               place
ADDRESS

Address

                                                               phone
PHONE

Phone Number

                                                               email
EMAIL

Email

    I've tried flexbox but came to no solution. I've also tried the method of making top: 50% and then transform: translateY(-50%); but still didn't fix my problem. Thank you for your time! UPDATE: When I try to make the position absolute/relative to parent/child it moves my section to hero section!


How to display log in screen on an external display?

Wondering if anyone has any idea on how could I choose the log in screen to be displayed on my external monitor after boot up on 20.04 LTS? I am using a laptop with a destroyed built-in screen so.. I have my monitor set as my primary and only display once I am logged in, can't say the same for the log in screen though. I am simply forced to stare at a purple screen and enter my password.  No shortcut to switch display works at this stage.


MinionPro is erroneous when using beamer

I've installed MinionPro on OSX using the instructions , after getting the free version of the font. The code generated too much output to paste here, but it appeared ok. I've then tried the following small working example:  % !TeX document-id = {ab57b317-99c9-42bf-84cf-986427da740b} % !TEX encoding = UTF-8 Unicode \documentclass{beamer} \usepackage{MinionPro} \begin{document}     \begin{frame}     This is a dot: $\dot a$.  \end{frame} \end{document}   Unfortunately, the \dot is erroneously compiled for me, as can be seen by the following picture. Which part of the installation did I mess up - what can I do to fix this?


Restore from ibd files where is no frm files

I had an Ubuntu 18.04 with mysql 5.7. I upgraded it to Ubuntu 20.04 with mysql 8.x. But this 8.x not was compatible with my Drupal 7 and I tried to downgrade. After this I tried with a 5.7 docker image and this show the database but not the tables inside. In the /var/lib/mydatabes directory I see a lot of .idb files, but nothing else. Is it possible to recover the database tables? And how? Thanks.


I am currently working on a paper where we use one image from another paper. How and where should I denote that?  Currently, we have the image source only in the caption like this:  \caption{Comparison of a \gls{CNN} for classification (top)          and a \gls{FCN} which creates a heat map (bottom).          \cite{long2014fully}}


How to interpret the coefficients from a beta regression?

I have some data that is bounded between 0 and 1. I have used the betareg package in R to fit a regression model with the bounded data as the dependent variable. My question is: how do I interpret the coefficients from the regression?


On transformations of random variables, discrete vs continuous

Suppose we have a discrete r.v. $X$, take $Y = g(X) $ where $g$ is one-to-one and onto-  If we want to obtain the new pdf for the discrete r.v. we simply notice that $$f_Y(y) = P(Y=y) = f_X(g^{-1}(y)) $$   Now if random variable $X$ is continous and $g$ is always one-to-one and onto why can't we apply this to the continous case also?  that is, why can't we say $$f_Y(y)  = f_X(g^{-1}(y)) $$ for a continous random variable?