How can I add dotted circle within the tikz figure?

My working code is as follows: \documentclass{article}  \usepackage{tikz,tikz-cd,pgf,makecell,smartdiagram,lmodern,ragged2e,array,caption,graphicx,booktabs,tabularx,xcolor}  \usetikzlibrary{positioning}  \begin{document}     \tikzstyle{block} = [rectangle, rounded corners, thick, align=center, fill=orange!40, text width=3.5cm]          \begin{figure}[!h]         \centering         \resizebox{.8\linewidth}{!}{             \begin{tikzpicture}[thick, node distance = 5cm,]                 % Place nodes                 \node [block] (MC) {Magnetic\\ Contour plane\\($\mathbf{MC}$)};                 \node [block, right of=MC, node distance=6cm] (TM) {Topographic Magnetic Field\\($\mathbf{TM})$};                  \node [block, below of=MC, node distance=3cm] (BM) {Base\\ Magnetic Field\\($\mathbf{BM}$)};                  \node [block, right of=BM, node distance=6cm] (FM) {Fuzzy\\ Magnetic Field\\($\mathbf{FM})$};                  \node [right of=MC, node distance=3cm, yshift=0.3cm] (a) {$\cong$};                  \node [right of=BM, node distance=3cm, yshift=-0.3cm] (b) {$\cong$};                  \node [below of=MC, node distance=1.5cm, xshift=-0.3cm] (c) {$\cong$};                  \node [below of=TM, node distance=1.5cm, xshift=0.3cm] (d) {$\cong$};                                   %draw arrow                          \draw[line width=1pt,->] (MC) -- (TM);                 \draw[line width=1pt,->] (MC) -- (BM);                 \draw[line width=1pt,->] (BM) -- (FM);                 \draw[line width=1pt,->] (FM) -- (TM);             \end{tikzpicture}         }     \end{figure}      \end{document}  that produces:  I want to put a dotted circle in the diagram that looks like this one:  How can I achieve this? Please help.


None of the HDMI output are working, all saying "dummy output", it was working yesterday, but when I use the headphones it became soundless, with or without the headphones.  Thank you already!


I have a class in a namespace that I've used extensively throughout my solution. As the number of classes in this namespace has grown I realize that it would've been a better design decision to place this class (and a few others) into a sub-namespace. Is there any easy way to do this in Visual Studio(C#)?   I'm thinking something like the Class->Refactor->Rename feature.  Perhaps an extension?


The following code helps me validate an XML file with an XSD schema.  XmlReaderSettings settings = new XmlReaderSettings(); settings.Schemas.Add(null, xsdFilePath); settings.ValidationType = ValidationType.Schema; settings.ValidationEventHandler += new System.Xml.Schema.ValidationEventHandler(settings_ValidationEventHandler); XmlDocument document = new XmlDocument(); document.Load(xmlFilePath); XmlReader rdr = XmlReader.Create(new StringReader(document.InnerXml), settings);  while (rdr.Read()) {  } isValid = true;   The ValidationEventHandler also tells me what the errors are, but doesn't tell me on 'where' or 'on which line' they are located. Is there any way to get the line number where the XML fails to be validated?


How to boot a system from pendrive in EFI mode succesfully?

During last week, I tried to install Ubuntu for few newcomer friends. I know two method to make a bootable Flash USB through Linux. One is famous method of "DD" and other one is Unetbootin. But I got failed for each time I tried one of these methods to bring system in EFI mode up(and when it starts in UEFI mode it fails to install because of different reasons such as having another distro installed in EFI). So I had to use the software "Rufus" in windows to make a bootable flash USB and it worked in EFI mode. But I don't want to use Windows each time just only to make a Flash USB bootable properly. Do you have any serious advice?


I have a question about a sum when calculating moment generating function.  The question is : "Find the moment generating function for each of these two random variables. (i) $X$ = outcome a die toss, $p(x) = P[X= x] = \frac{1}{6}$ for $x = 1,2,3,4,5,6$. I don't understand how the sum in the answer $e^t \cdot \frac{1}{6} + e^{2t} \cdot \frac{1}{6} +...+ e^{6t}\cdot \frac{1}{6} = \frac{1}{6}e^t\frac{e^{6t}-1}{e^t-1}$.  Why doesn't it work to have this as the sum of a finite geometric series with the common ratio being $e^t$?


When I use the lens to run the calculator (which if often), I can't type just 'calc[enter]' (which is what my muscle memory does), I have to type 'calcu[enter]' otherwise LibreOffice Calc starts.  How can I suppress LibreOffice Calc from showing in the list. Or better still, how can I ensure the calculator program has precedence?


Will this schematic work as a four-bit shift register?

– Schematic created using   Will this work as a four-bit shift register? (And by extension a shift register of any size?) Each vertical PMOS / NMOS transistor pair acts as a multiplexer, and the PMOS transistor to its left amplifies the voltage back up to close to V_high. I'd be interested in hearing people's feedback on this. Right now I have only three transistors (and a resistor) per bit. Can I really get it that small a ratio, or are there reasons why I need more transistors per bit?  It's probably worth noting that I don't have master/slave here, so I can only assert (Shift) long enough to move one bit toward the right and no more.  Furthermore, I'm not trying to say that I need a resistor with 100 ohms. That appeared to be the only resistor I could use to make this schematic! What I want is a resistor that has significantly less resistance than the PMOS it's next to when it's at high impedance, but enough resistance to prevent a short circuit from V_high to ground when that transistor is conducting.  Okay, now I've changed each of the BJT's to MOSFET's, and reduced the resistance of each resistor from 100 ohms to 10 ohms. I'm still going on the assumption that (shift) will only be asserted long enough for the gate delays of M4 and M5, and then of M6, so the value of (dataIn) will only make it to M6's output, and won't move to M8 until the next time (shift) is asserted. Is this enough to get this circuit behaving like a four-bit shift register?


How does permanent magnets attract each other if the $B$-field can do no work?

How can two permanent magnets do work on each other?  If you put two magnets with opposite poles facing each other they will attract each other. If you put them with the same poles facing each other they will repel each other.  What is the mechanism behind this? A static $B$-field can do no work, and still the magnets will attract/repel.


Let $f(x) = \frac{x}{x}$.  Is it correct to say that $f(x) \ne 1$, since $f(x)$ has a discontinuity at $x=0$?


I have a Windows Cluster made up of two nodes connected via SAS to a storage array. I have two virtual machines configured with their hard disks (vhdx) on the shared storage. They are up and running correctly. Now I need to build a "shared volume" between these two vm, that is a disk with files and folders in, that can be accessed from both servers, like an smb share. I understood that it was possible creating a vhdx file on the shared storage and then attaching it to both vm flagging "enable virtual hard disk sharing" but I think I misunderstood something. Can you tell me if this is realizable or not, end eventually what's the best practice to reach my goal? I basically need a storage accessible simultaneously from two virtual machines, possibly without setup a separate file server to expose smb shares.


ASP.NET: Is there a way that I can simply pass a model into a view and render it to a string?

I'm wondering whether there's a way that I can instantiate an object or call a utility function that will simply take in an object and perhaps a path to a view as parameters, and return a string that consists of the rendered view, using the object as the model.   I don't want to go through the usual ASP.NET request pipeline, or deal with dependency injection or even depend on the framework running to provide a bunch of services.  I simply want an easy way to render a view to a string in code.   Does this exist?   If anyone knows of any good sources on how view rendering in ASP.NET works under the hood, that would also be very helpful.


I have  this slide for a presentation:  \begin{frame} {Bonjour}  Hi  \begin{itemize}  \item blabla  \begin{itemize}  \item A  \item B \end{itemize} \end{itemize}  \begin{overlayarea}{1\textwidth}{0.6\textheight} \only<1>{ \begin{block} {La solution1}  blablablablablablablablablabla \end{block}  } \only<2>{  \begin{block}  {La solution2}    blablablablablablablablablabla   \end{block}        }   \end{overlayarea}    \end{frame}   I want the subitem A and B to disappear when La solution1 and La solution2  appear and at the same time they should take the places of A and B. The Hi should stay though.


Mountain bike crank hits derailleur cable

Just bought my first bike and it was put together by the store. I was wondering if this little cable/wire is okay, it's hitting my pedal every time I’m riding. It doesn’t really bother me, but I don’t want it to end up messing something up really bad. Help please new bike owner


Let $R$ a commutative ring and $I$, $J$ ideals of $R$ such that $I + J = R$. Prove that $IJ = I \cap J $  Is clear that $IJ \subseteq I$ and $IJ \subseteq J$ then $IJ \subseteq I \cap J$  this  for any two ideals of a ring. But i not  know as proof the other contains, because it is necessary that $I + J = R$?


Prove that there is no nonabelian simple group of order less than 60

Any tips for this question? I don't want the answer itself, just figure out how must I proceed.


How to calculate the minimum and maximum length of the 6th sample, using only measurement data of the first 5 samples?

I have a sack of 1000 sticks. The length of the sticks are normally distributed. I randomly take out 5 sticks and measure them to be [40; 30; 60; 20; 30] mm long. How can I now calculate, with a confidence interval of 99%, the minimum and maximum length of the sixth stick?  I have managed to calculate the population mean standard deviation accurately using t-table but it really doesn't help me here.


What is the difference between image size and image quality?

I have a Casio EX-S12. It has a setting for image size, but also a separate setting for what it calls "image quality". There are three image quality values: "Fine", "Normal", and "Economy".  The Casio manual is not clear on what image "quality" actually means -- specifically how it's different from image size. All they say is that the "Fine" setting "helps to bring out details when shooting a finely detailed image of nature that includes dense tree branches or leaves, or an image of a complex pattern." I'm confused because isn't this what image size is all about (more pixels = more detail)?  In terms of memory usage, the manual also says that for a 5 megapixel picture, a "Fine" image takes up 2.99 MB, a "Normal" image takes up 1.62 MB, and an "Economy" image takes up 1.12 MB, so this "image quality" setting of theirs is certainly having a significant impact on memory usage.  My question is, what exactly is "image quality", if it's not image size? What is the "thing" that is taking up additional memory?  Thank you.


Question: Let F be a field, that is, a set with operations $+$ and $\cdot$     which satisfy the axioms of the definition of an "ordered field".     Prove that if $F$ is finite (i.e. has only finitely many elements), then     there does not exist an ordering $<$ which makes $F$ into an ordered     field.  How can I go about proving a finite field has no order?


"Featured on meta" in community bulletin not updating

Not sure if this is just excessive caching, or something else: We had two meta items tagged as  but  is displaying. 11 hours ago we remove the tag from the original item, but it's still showing and the newer item is still not showing.    According to  we should be able to have two  items on the community bulletin?  Am I being too impatient? When I tagged the first item it appeared almost immediately.


Becoming a vampire lord and getting bloodcursed arrows after curing Serana

I've finished Dawnguard and chose to cure Serana of vampirism, but now I think I'd like to have the option of become a vampire lord and getting bloodcursed arrows. I've done some basic console fiddling but was unable to faithfully reproduce a vampire lord transformation (adding the vampire lord spell turns you into a weaksauce version that dies in 2 hits on Master). Mods and console commands welcome, though I'd prefer something along the lines of Valerica taking on Serana's "duties" or simply turning Serana back into a vampire lord.


Creating attribute field with restricted values on ArcMap?

I am looking to create a field in my attribute table for polyline features and I want the values for the field to be restricted to specified options (that is, a field with just YES/NO value).  Any ideas on how I can do that on arcgis 10.2?


When accumulating gold through dailies, what is the best way spend this gold? I understand you're able to get card packs through chance when unlocking the chest after finishing the arena. So should I directly buy card packs or take my chance and go for the arena?  (I understand this is skill dependent)  Sub questions:   What can be won in the arena? What is the minimum prize received when losing 3 times?


Having matrices in an equation all the same height

I am currently writing a matrix equation with matrices that have the same number of rows, the lines of each have different heights. The result are very differently heightened matrices The only solution I found by googling was stretching all the matrices which looks highly awkward, as it stretches the first (big) matrix as well and makes it even bigger. Are there any suggestions?  My problem:  \documentclass[10pt]{article} \usepackage{amsmath} \newcommand{\partdiff}[2]{\ensuremath{\dfrac{\partial \! #1}{\partial \! #2}}} \begin{document}  Problem itself:\\  \begin{equation}   \begin{pmatrix}     \partdiff{B_0}{y_0^0} & & \cdots  \\      & \ddots & \\     \cdots & & \partdiff{C_3}{y_2^{N-1}}   \end{pmatrix}   \cdot   \begin{pmatrix}     \delta y_0^0 \\     \vdots \\     \delta y_2^{N-1}   \end{pmatrix}    = -    \begin{pmatrix}     B_0\\     \vdots \\     C_3    \end{pmatrix} \end{equation}  With sufficent strectching:\\ \begin{equation} \renewcommand{\arraystretch}{2.7}   \begin{pmatrix}     \partdiff{B_0}{y_0^0} & & \cdots  \\      & \ddots & \\     \cdots & & \partdiff{C_3}{y_2^{N-1}}   \end{pmatrix}   \cdot   \begin{pmatrix}     \delta y_0^0 \\     \vdots \\     \delta y_2^{N-1}   \end{pmatrix}   = -    \begin{pmatrix}     B_0\\     \vdots \\     C_3   \end{pmatrix} \end{equation} \end{document}   Also, probably stupid aside: There has to be an easier way to paste code blocks than typing four spaces in front of each line manually.


From time to time I have noticed what I only can describe as an abuse of the 5 minute grace period when answering a question.   User posts a short incomplete answer, just to be the "first answer" of a question. User edits this answer frequently for 5 minutes, often adding information from other users answers, to make the answer better than the other answers. User get lots of reputation due to being the "first answer" and being very "thorough", even though the user, in my opinion, doesn't deserve it.


I understand how the gyms work with battling friendly gyms to raise the gyms level. Just wondered if anybody knows if there is a cap to the level it can reach? I presumed it would be level 6, but I've seen level 7 gyms around.  Thanks


Lost assassins creed save progress by reinstalling windows

Lost assassins creed save progress by reinstalling Windows system.  Any idea how to recover it ?


How to install import_3dm add-on properly?

I'm totally new to blender - mostly work in Rhino, but am wanting to use it to render models that I build in rhino so am trying to install the .  I had blender 2.80 installed. Tried installing the addon from the .zip file on my desktop (import_3dm-master) it shows a message in blue in the bottom right of the screen stating that it has installed that addon but it doesn't show in the addon menu under any of the categories.  I tried extracting the file and copying it directly into the addon folder. Still nothing. Tried installing the import_3dm-v0.0.2 version. This shows up in the menu but has an error (shown in screenshot below). I even installed blender 2.82a in the hopes that this would somehow solve the problem but no luck... Here is the error message I get:    Q: How to install this add-on properly?


How about an exact solution for the position of a planet as a function of time?

Recently I was surprised to discover that no exact solution for the position of a planet as a function of time exists. I am referring to the two-body problem in a gravitational field where Newtons law of gravity holds.  Well known are proofs that the planet will move in an ellipse, Keplers laws can be derived fairly easy etc., but for the exact position of the planet on the ellipse as a function of time, no formula exists, only numerical approximations.  Is this correct? Can anybody elaborate on the deeper reason(s) that this relatively simple case cannot be solved?


New badge proposal based on number of profile views

I think it would be neat to earn a badge for having X number of profile views. You could have different levels, for example:      Bronze - [Renown]    - 300 views     Silver - [Celebrity] - 1000 views     Gold   - [Eminence]  - 3000 views  I know this really doesn't necessarily "encourage positive behavior" directly, but it is a good indicator that people are either eager to read your other questions/answers (which is likely because you've provided a thoughtful response). It could of course also be that you've offended someone for some reason. Either way, it shows you are participating in the community. What do you think? If you agree, would you suggest any changes on the name/count/type of badges that would be awarded? Bounty added: I'm still interested in whether this will become a badge or not...  General consensus (thus far):  Number of views should be increased Remove gold badge altogether (I didn't like the name celebrity anyway...)  So:      Bronze - [Renown]   - 1000 views     Silver - [Eminence] - 3000 views  Another general problem seems to be "how does this encourage positive behavior", which I have already outlined above. It's more of a metric that shows your participation in the community through a "wow" factor (again, this could be seen as negative). Why is it even in the profile in the first place if it's a negative thing? Any other thoughts?


I am using windows 10 on an ASUS laptop and the sidebars are miniscule. Thanks for the help.


I'm looking into partitioning my hard drive between windows 8 and linux ubuntu. I've never done anything of the sort, so i'm wondering how it works. If I save files while I'm running it as Ubuntu, will I be able to access those same files if I'm running it as Windows 8, say, the next day?


The speed of light is constant as long as you are measuring it from a reference frame moving at a constant velocity, such as earth  What do we have to measure it from a reference frame moving at a constant velocity ? Isn't the speed of light always constant?  I don't really understand..Please explain.  Also sorry if this question seems dumb, im a 10th grader..


Should I avoid using a phrase that is commonly misused?

The phrase "Doesn't do nothing" is often used when a person actually means,  "Doesn't do anything."   Should I avoid using this phrase? Generally, I would, but in my context, I want to negate what I had said previously.  Example:  I wrote that clicking a button does nothing. Later on, I found out that it does do something, so I want to write that I was wrong and that it, in fact, doesn't do nothing but does x.  Is it okay to write it like this or should I avoid it because people commonly misuse this phrase to mean the opposite?


Latex + TikZ: How to horizontally centre text in a node with a calligraphy font?

I want to produce rectangles with horizontally centered text. However the outcome of my code produces rectangles where the text is NOT centered.  \documentclass[ngerman,a4paper,25pt]{scrartcl} \usepackage[11pt]{moresize} \usepackage{babel} \usepackage{slantsc} \usepackage{array} \usepackage{amsmath} \usepackage{fix-cm} \setcounter{secnumdepth}{0} \pagestyle{empty} \usepackage{ragged2e}  \input Sanremo.fd \newcommand*\initfamilySanRemo{\usefont{U}{Sanremo}{xl}{n}} \usepackage{tikz} \input ArtNouvc.fd \newcommand*\initfamilyArtNouvc{\usefont{U}{ArtNouvc}{xl}{n}}  \usepackage{calligra} \usepackage[T1]{fontenc}  \begin{document} \begin{Center}                                                                     \foreach \n in {Heinrich, Justus, Julius}{\par    \normalfont\calligra   \begin{tikzpicture}[align=center]      % \draw (0,0) rectangle (108mm,41mm) node[pos=.5, align=center] {\Huge\fontsize{40}{70}\selectfont\n};     \node (rect) [rectangle, draw, minimum width=108mm, minimum height=41mm] at (0,0) {};     \node [below] at (rect.north) {\Huge\fontsize{40}{70}\selectfont\n};   \end{tikzpicture}   \vspace{5mm}  }   \end{Center} \end{document}   The rectangle containing 'Hendrik' shows that the centering is not perfect.    What am I doing wrong?


What is the origin of the term "AAA game?"

One often hears the term "AAA" thrown around , but where does the term come from? How was it coined and popularized?


How does a perturbation theory make sense in quantum field theory?

The idea of a perturbation series in powers of a coupling $\alpha\ll1$ (for example, the fine structure constant in QED) make sense if the contribution of $(n+1)^{th}$ term in the series is smaller than the contribution of $n^{th}$ term. Now, the tree-level amplitude for a QED process is finite. However, at $\mathcal{O}(\alpha^2)$, the contribution from the S-matrix to the amplitude is divergent (all diagrams with loops are divergent because loop momentum can be arbitrarily high). How does perturbation theory make sense in QED (or in any quantum field theory)?


Somewhere along the line I picked up the notion that using iframes is 'bad practice'.   Is this true? What are the pros/cons of using them?


Proving $\prod_k \sin \pi k / n = n / 2^{n-1}$

I am stuck trying to prove   $$\prod_{k=1}^{n-1} \sin {\pi k \over n} = {n \over 2^{n-1}}$$  and I'd appreciate help.   What I have done so far:  $z^n - 1 = \prod_{k=1}^n (z - \xi^k)$ where $\xi = e^{2 \pi i k\over n}$. Dividing both sides by $z-1$ we get  $$ {z^n - 1 \over z - 1} = \prod_{k=1}^{n-1} (z - \xi^k)$$  Taking the limit $z \to 1$ on both sides, $$ n = \prod_{k=1}^{n-1} (1 - \xi^k)$$  So I'm getting close to what I want to prove but unfortunately, this is where I am stuck!      How to proceed form here?


If a black hole 12 inches in diameter were situated (say) 10 metres off the ground, what would happen?  And how long would it take to devour the earth?


So I've been stuck on this proof for the past threes days now. I keep going back and forth and making no progress.     Let $n\in \mathbb{Z}_{\geq 2}$. Show that $\mathbb{Z}/n\mathbb{Z}$ has a nonzero nilpotent element iff there is a prime $p$ s.t. $p^2$ divides $n$.   $(\Rightarrow)$ I know $a$ can be factored into distinct primes, so $a=p_1^{e_1}\cdot ...\cdot p_m^{e_m}$ then $a^k=p_1^{e_1k}\cdot ...\cdot p_m^{e_mk}$.  Also since $n|a^k$ so $a^k=nd$ for some $d\in \mathbb{Z}$.  $a^k=p_1^{e_1k}\cdot ...\cdot p_m^{e_mk}=nd$. So $nd$ has that distinct prime factorization.  Then I get lost on what to do.


Zip4j Library ZipFile.setPassword() method throws NullPointerException on non-null input

I'm looping a buffered reader to pull lines from a dictionary, add them to an ArrayList, and then run them later in the program. Throughout this 15,000,000 line dictionary, blank lines come up about once every 30,000 lines. I don't expect all users of this program to use the dictionary I include, and I don't want to manually pick out and erase each blank line. When the program encounters this line, it throws a pesky NullPointerException, killing the program immediately. I've tried adding a try/catch to add the line if it's not blank and pass over a line that is null using continue. As always, here's my code:                  String line;                 if ((line = br.readLine()) != null) {                     try{                         passwordArray.add(line);                         System.out.println(line);                     } catch(NullPointerException npe){                         System.out.println("The line is null.");                         continue;                     }                 }   Stack Trace:  Exception in thread "main" java.lang.NullPointerException     at net.lingala.zip4j.core.ZipFile.setPassword(ZipFile.java:650)     at zZipCracker.zZipCracker.zZipCracker(zZipCracker.java:96)     at zZipCracker.zZipCracker.main(zZipCracker.java:55)   Line 96:  zipper.setPassword((String) passwordArray.get(0));   Looking at line 96, the blank line is being added and cannot run because the library I'm using requires a password that's length is greater than 0. Line 55 is just a call to the method where this entire process is completed.


Is there any recovery software available for ext4?

Well, I have accidentally deleted my Ubuntu drive. I just want to recover all the contents of /home.   Is there a way to do it? I referred to , where I need to specify the extensions of files. And in my case, I don't know actual extensions. So, is there any utility which can let me recover my /home folder alone?  I have not even formatted that drive or touched it at all. So no write has been done on that drive.  If you have suggestions on how to recover, please tell me.


An example of a norm which can't be generated by an inner product

I realize that every inner product defined on a vector space can give rise to a norm on that space.  The converse, apparently is not true.  I'd like an example of a norm which no inner product can generate.


Why can I not access a file named `-` when quoting?

I have a file called -.  I want to display its contents.  One way is to do  cat ./-   since cat - reads from standard input. However, why are cat "-" and cat '-' also interpreted by the shell as cat -?


How to block non-free with apt preferences?

I want to block all packages from non-free, except for those that I  name explicitly. Currently, I have:  /etc/apt/sources.list :  deb http://ftp.us.debian.org/debian stable main contrib non-free   /etc/apt/preferences.d/non-free_policy :  Explanation: Disable packages from `non-free` tree by default Package: * Pin: release c=non-free Pin-Priority: -1   (The idea is, that I add an explicit stanza for every package I want from non-free.)  But it doesn't work:  root@silber:/etc/apt/preferences.d# apt-get -s install firmware-linux-nonfree Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut.        Statusinformationen werden eingelesen.... Fertig Die folgenden NEUEN Pakete werden installiert:   firmware-linux-nonfree 0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Inst firmware-linux-nonfree (0.43 Debian:8.4/stable [all]) Conf firmware-linux-nonfree (0.43 Debian:8.4/stable [all])   What am I missing?


Call a function written inside of __init__ somewhere else in the Class

So say I have a Class:   class Testclass:       def __init__(self, key)           self.key = key             def function(self, key):               do something ...     can I call specifically the function without calling the whole __init__ somewhere down the line inside a Testclass Method?  I need this because I have two functions within __init__ and I need them separately.   Or maybe I am doing this all wrong from the get go, so any other suggestions would be welcome.


Programmatically get webform submitted field values

How can i print/echo the submitted value of specific field in from a webform? I need to do this in the webform 2 PDF module so i can better customize the output of generated PDFs. Im fairly new to Drupal so an example of how to get a simple f_name filed would be great.   I'd also like to start getting more involved with the Webform API too.  i.e   First Name: SUBMITTED NAME VALUE


What is the plural and singular form of people you follow on social media?

I'm developing a social network which has a feature similar to twitter's follow/following setup. At the moment I have the following (hehe) terminology on the site:  follower - someone who follows you followers - group of people who follow you  I'm also using following at the moment to describe a group of people you are following. However, this also has the meaning of a group people who follow you.  So what is the correct terminology for:   a group of people you follow on social media? a person you follow? and how can you refer to the photos uploaded by the group of people you follow?   The only thing I can find so far is 'who you follow' which is a bit wordy.


What is the method transferring an old Clash of clans on account to new device if the old device can't switch on already due to hardware problem

I can't generate link for transferring my old C.O.C account to the new device. Can I use old C.O.C account to other device such iPad and using the old game centre and Apple ID? Will it transfer my previous Clash of Clans Town to the new device? Is it possible?


If $\gcd(m,n) = 1$, show that $m^{φ(n)} + n^{φ(m)} ≡ 1 \mod{mn}$

If $\gcd(m,n) = 1$, show that $m^{φ(n)} + n^{φ(m)} ≡ 1 \mod {mn}$   The only similar problem I found to this in my notes was "Find all positive integers $n$ such that $φ(n) = 12$." Unfortunately this was no help and I'm really lost, any help is really appreciated.


MWE  Please use the image linked to below.  \documentclass{article} \usepackage{graphicx}  \begin{document} \includegraphics{dank} \end{document}   Oddly enough, only this picture fails and only when compiling with XeTeX (as opposed to pdfTeX or LuaTeX):  ERROR: Dimension too large.  --- TeX said --- <to be read again>                     b l.5 \includegraphics{dank}  --- HELP --- From the .log file...  I can't work with sizes bigger than about 19 feet. Continue and I'll use the largest value I can.    is a bit of an eyesore, so I'm not displaying it inline.  Please check the shasum to make sure it's still the same file when you download it.  $ shasum dank.jpg b889bc28b2ccd079073267159db0562f45b58e4d  dank.jpg   What's special about this image?  Why does it fail?  Its natural setting (as seen with LuaTeX or pdfTeX) is well under 19 feet.


I am a non-EU student studying in Barcelona and have a valid residence permit of Spain. Currently, I am in Venice as an exchange student and I want to apply for UK Standard Tourist Visit Visa.   Can apply for UK Standard Tourist Visit visa from their authorities in Italy, instead of going to Spain & applying?  I couldn't find any information on the UK website about this.


In bootstrapping, within a single instance of resampling, why do you draw a number of samples equal to your starting N?

I understand that the basic premise of bootstrapping a dataset with N data points is:  Sample with replacement from N a number of draws, D, equal to N; Repeat step 1 K times - that is, as much as you can stand computationally (slash when the estimated parameters/distribution is relatively normal and stable with minimal gain from increasing k, etc.)  Why does the number of draws D equal N? I can understand intuitively that it wouldn't be great to select fewer draws than N, since fewer draws will limit your ability to correctly estimate the mean. I also saw  suggesting that there are cases when it might be permissible to draw a D smaller than N. But since you're sampling with replacement, what is stopping you from drawing a D twice as large as N? Or three times? Is it because it would "over-weight" more data points with more frequent representation in the dataset relative to rarer datapoints? Thank you for your help!


Question about charging and using an iPad mini

I just purchased a cellular iPad mini but I cant seem to find out if charging an iPad mini while using the device affects battery life, and does charging overnight affect battery life?


Convert batch file using GDAL_Translate.

how to convert batch file from .tif to .bil format using gdal_translate in windows CMD command line, file in the directory.   Directory path : D:\GDAL-TEST 001_mean.tif 002_mean.tif 003_mean.tif 004_mean.tif So on....   I have one code but by this code we can convert single file at a time but i want to loop through all raster which have .tif extension in the  directory and convert it to .bil format. Please want a solution   My code. I a running this code on GDAL Command window on windows 7 platform.      gdal_translate -of "ENVI" D:\GDAL-TEST\001_mean.tif D:\GDAL-TEST\001_mean.bil


Which Ubuntu version works best for my system (see below)?

my configuration: Sony Vaio laptop, Windows 7 Starter service pack 1, 32-bit; 1GB RAM, 250 HD which Ubuntu version works best? Had downloaded and booted (USB, Rufus) version 18.04.1. LTS amd64, get error message /casper/vmlinuz.file not found


I am trying to initialize a simple array in java with 10 integers. Problem is that, no matter what I do, the output always comes completely different from what it is supposed to be. Example:  int[] example = new int[] { 2, 5, 7 }; System.out.println(example);   Result: [I@fd13b5  Another one:  int[] myList = {1,2,5,4,13,451,4}; System.out.println(myList);   Result:[I@7ffe01  Even if I do not assign anything to it:  int[] numberList = new int[10]; System.out.println(numberList);   Result: [I@1fae3c6  I really have no clue why it does this... Can someone please help? I don't know if it matters but I am using Eclipse. Thanks!


Java how to reduce/combine two arrays into one with the reduce function, if possible?

I have this code:  String[] arr1 = {"asd1", "asd2", "asd3", "asd4", "asd5", "asd6", "asd7"};     String[] arr2 = {"asd8", "asd9", "asd10", "asd11", "asd12", "asd13", "asd14"};      String[] concatenated = Stream.of(arr1, arr2)            .flatMap(Stream::of)            .toArray(String[]::new);      String[] concatenated = Stream             .concat(Arrays.stream(arr1), Arrays.stream(arr2))             .toArray(String[]::new);      String[] concatenated = Stream.of(arr1, arr2)             .reduce(new String[arr1.length + arr2.length],                     (String[] a, String[] b) -> )); ///// how to proceed from here?      System.out.println(Arrays.toString(concatenated));   I am playing around and i didn't managed to find how to use the reduce function to combine them both to get this result:  [asd1, asd2, asd3, asd4, asd5, asd6, asd7, asd8, asd9, asd10, asd11, asd12, asd13, asd14]  note: The order doesn't really matter, the important thing is to get them both into one array with the reduce function..  Is it possible to do it with the reduce?


WilI always more cores and threads translate to better performance in blender?

After writing I guess a 3 page essay describing my problem and after about a year of inactivity on stack exchange I remembered to sum up my problem, so please if you need more details tell me in the comments, and if is not the right place to ask please tell me too. My question is fairly simple, How does blender right now uses a CPU (2.8 or 2.9)? Is blender good at using high core counts of CPUs? and how much of an impact will more threads have on blender's performance. Now some context, I am upgrading from my computer bit by bit due to school and my budget, Unfortunately that is because of new blender versions requirements are higher, I picked up an entry level GPU and an SSD now I am searching for CPUs, I have always been loyal to Intel (Mine right now is a Core 2 Quad), but unfortunately the cheapest new i7 I could find of 8th or 9th gen was the budget of my whole computer, So I returned to i5s where my comparison is situated, I am comparing a a 6 core 12 thread intel i5-10400f cpu and an AMD Ryzen 7 2700X with 8 cores 16 threads, I didn't have any AMD cpu before and it is not that popular plus I use linux distributions of which AMD only fully support Ubuntu (I use Fedora), so question again: is higher threads and core counts matter in blender, or in other words what is the difference I will have for more thread and core counts? is it only in rendering? or also is calculations and simulations? And please if there is a detailed post/blog/manual describing this it would be helpful to mention it's link. Thanks is advance.


Proving an equation with invertible matrices

I need to prove that if $A$, $B$ and $(A + B)$ are invertible then $(A^{-1} + B^{-1})^{-1} = A(A + B)^{-1}B$  I'm a bit lost with this one, I can't find a way to make any assumptions about $(A^{-1} + B^{-1})$, Neither by using $A^{-1}$, $B^{-1}$ and $(A + B)^{-1}$.  If someone could clue me in I'll be grateful.    UPDATE:  Thanks for all of your input - it really helped, I got a solution, I'd like to know if my way of proving it is valid:  $(A^{-1} + B^{-1})^{-1} = A(A + B)^{-1}B$      multiplying both sides by $A^{-1}$ and $B^{-1}$    $A^{-1}(A^{-1} + B^{-1})^{-1}B^{-1} = (A+B)^{-1}$    now multiplying both sides by $(A + B)$, I get to  $(A+B)(A^{-1}(A^{-1} + B^{-1})^{-1}B^{-1}) = I$  Lets call $(A^{-1}(A^{-1} + B^{-1})^{-1}B^{-1})$ -> $C$    Now I determine that $C$ is $(A+B)^{-1}$, because $(A+B)C$ equals the Identity Matrix.    So lastly to verify that I place $C$ in the original equation:  $(A^{-1} + B^{-1})^{-1} = A(A^{-1}(A^{-1} + B^{-1})^{-1}B^{-1})B$  and from this I get:  $(A^{-1} + B^{-1})^{-1} = (A^{-1} + B^{-1})^{-1}$


Integration of a function with respect to another function.

What is the intuition/idea behind integration of a function with respect to another function? Say $$\int f(x)d(g(x)) \;\;\;\;\;?$$ or may be a more particular example $$\int x^2d(x^3)$$  My concern is not at the level of problem solving. To solve we could simply substitute $u=x^3$ and then $x^2=u^{2/3}$. My concern is rather about what meaning physical/geometrical does this impart?  ADDED if you ask what kind of meaning I seek, integration of a function w.r.t a variable gives the area under the curve and above x-axis.


What type of grammar construction is this

She thinks herself able to best him in this argument.   She thinks that she is able to best him in this argument.   She thinks herself to be able to best him in this argument.   Are the first and the last sentence the same in meaning?


My graphics graphics card is a Radeon HD 4250 and ATI has dropped the support for x-server version higher than 1.12. Are there any alternative graphic drivers I can use besides the opensource driver, Gallium 0.4. If not what's the best config I can do to boost performance so that it's similar to the proprietary driver. I'm running Ubuntu 13.10 64bit, and my graphics are: Gallium 0.4 on AMD RS880.


Is it possible to find related post associated with the reputation loss due to "user was removed" message

I have seen the similar  here on the site related to the message user was removed but its not quite clear how to find the related post associated with it.   We can see the post associated with removal of post, is provided with the post heading and/or question. I think the posts associated with this user was removed message is of the user who is getting this strange reputation loss.    In the image above we can see the when post is removed the heading is provided, but for the user removed message the heading and/or link is not provided.  Is it possible to find out the related post?


Why rasterizing objects in Illustrator causes them to be pixelated

I am having a sudden problem with my vectors after being rasterized within Illustrator. The rasterized image becomes pixelated. If anyone might have an idea as to what might have happened all of a sudden, I would greatly appreciate the help.   Thank you and here are some reference screenshots of what I mean.


conflict between hyperref and enumitem packages (and \refstepcounter)

The solution outlined for each of the following two posts appears to conflict with the hyperref package.         Here is a MWE.  The desired output for the example is  1. Outer 2.1. This is line 2.1, in block 2.  2.2. Inner again 3. Outer again 4. Let’s end here   This output is indeed produced by the LaTeX source below, but if I uncomment the \usepackage{hyperref} line in the header, LaTeX gives me an error just after the \skipitem command, as described in the inline comment below:  \documentclass{article}  % \usepackage{hyperref} % if we uncomment the above line, we get an error as described below  \usepackage{enumitem}  \newlist{steps}{enumerate}{9} \setlist[steps]{itemindent=0pt} \setlist[steps,1]{label=\arabic*.,ref=\arabic*} \setlist[steps,2]{label=\arabic{stepsi}.\arabic*.,ref=\arabic{stepsi}.\arabic*}  \makeatletter \newcommand{\skipitem}{\refstepcounter{\@enumctr}} \makeatother  \begin{document} \begin{steps} \item Outer   \skipitem   % If we uncomment the \usepackage{hyperref} line in the header,   % we get the following error after the \skipitem above   %    % ./tmp.tex:20: Missing number, treated as zero.   % <to be read again>    %   \c@0.0ptxcii    % l.20   \skipitem   % \item[] \label{blockA}   \label{blockA}\item[]   \begin{steps}   \item\label{lineB} This is line~\ref{lineB}, in block~\ref{blockA}.   \item Inner again   \end{steps} \item Outer again \item Let's end here \end{steps}  \end{document}   Can someone help me work around this conflict, so I can use hyperref with this use of enumitems and refstepcounter?  Thanks.  (Note: smaller working examples are possible, but they give different error messages.  I'm hoping to get the current example working.)


How to escape special chars on jquery selector

I have to select an element with this id QR~QID207~24 and its failing ,I think I have to escape ~ but it doesn't work wit \ this way  QR\~QID207\~24.How can I escae this special chars on the selector??


Google Sheets Put "PASS" in one cell if another cell is green / "FAIL" if red

I have Google Sheet 1 with a result in a cell that will turn green or red based on conditional statements that evaluate if the result is good or bad. On sheet 2 I would like to have post PASS or FAIL based on the color of the cell in sheet 1. Any help?


I know how to make proofs by induction, but I don't understand why it prove that the propriety is true. It's in fact logical, but how to prove that proof by induction really prove the assertion.


I want to calculate values from Java List. I managed to create the code using float in order to store money amount.      private float sumAmounts(List<ExpressCheckout> myList)     {         float total = 0.0f;         for (ExpressCheckout item : myList)         {             total += item.getAmount();         }         return total;     }   I tried this code:  private BigDecimal sumAmounts(List<ExpressCheckout> myList) {     BigDecimal total = new BigDecimal(BigInteger.ZERO);     for (ExpressCheckout item : myList)     { //            total += item.getAmount();         total.add(item.getAmount());      }     return total; }   But I get NPE when I execute the code. Is this a proper way to use BigDecimal?


New to the Linux. How to update firefox and install flash player add-on?

I am new to the Linux System. I was able to download the update to Firefox (I think), but do not know for sure how to update it. I think my system is missing something, but being new to this operating system I not sure.  I was going to try installing another program to have a friend help me, but can't install that one either because I can't figure out how to install it. Got this laptop from someone with it installed.


How to loop a triangle-shaped piece into n-gon

I have a triangle with an angle of 45 degrees, I need to loop it so that I get an octagon with the same pattern on each of 8 "slices"   I could use a screw modifier, but it messes up edges inside of a slice


How to create unallocated space in Ubuntu 16.04

I've already installed ubuntu 16.04 and I want to manage my partitions. I opened GParted and I wanted to have "unallocated space" to install another OS on it. I selected one partition and chose Resize/Move option. But I can't do the resize because Minimum size and Maximum are the same!


What is null geodesic equation for the static and spherically symmetric line element in $$ds^{2}=-K^{2}dt^{2}+\frac{dr^{2}}{K^{2}}+r^{2}(d\theta^{2}+\sin^{2}\theta{d\phi^{2}})$$ where $$K^{2}=1-\frac{2M}{r}-\Lambda r^{2}+2 a r$$ Does anyone know how to derive the null geodesic equation for the above metric? The result was given  without derivation as $$\frac{d^{2}u}{d\phi^{2}}+u=3M u^{2}-a$$ where $$u=\frac{1}{r}$$ I am trying to derive the above equation. First I started by setting $ds^{2}=0$, because null geodesic. Then I divided by $d\phi^{2}$. This is the equation I got $$\frac{dr}{d\phi}=\sqrt{K^{2}r^{2}\sin^{2}\theta}$$ Assuming that $\frac{dt}{d\phi}=\frac{d\theta}{d\phi}=0$, is this a correct assumption? Now Assuming that My calculation is correct so far does anyone know how to get the equation $$\frac{d^{2}u}{d\phi^{2}}+u=3M u^{2}-a$$


From what I understand, the disk device has a queue that stores read/write requests from the linux kernel. What happens when the device doesn't drain the queue fast enough (i.e. overflows)?  Does this queue extend (logically) into DRAM?   can some requests be lost?


Is it ever proper to use myself and when starting a sentence? Here is an example of what I mean:  Myself and some very successful people are building a team across the Globe!  or Myself and (Name) are going to be on the call tonight.


What to do with late answers to bad questions?

The review queue just presented me with .  Now, the question strikes me as 'opinion-based'. And it really doesn't help to add another opinionated answer. However, the question is out there, not closed, and the answer isn't spam or incoherent.  I wish that the late answer queue had buttons to do things like vote to close or downvote the question.


Blender Eevee render not working properly for me

The Eevee render mode has not been working properly for me. The objects just become transparent and have a gray thing in it (look at the picture). Also, when i render it, the object is just a transparent texture. When i go into Cycles, everything looks alright, no problem. My pc specs are: i7 5500u and AMD Radeon r9 m375. Can anyone help me?


I've noticed today that some of our companies clients' DNS servers were changed to 203.115.81.38 and 203.115.71.66 even thought they were still using DHCP. I wonder if this is some sort of an attack/malware etc. I have not been able to trace it down to anything yet but I thought sharing the addresses would help if this is a part of a wider problem.  I'm virus/malware scans on some of the computers and will update if I find anything useful.   Note: The DNS changes back to normal after a "ipconfig /renew"   Note 2: "Rogue Killer" found the source as "PUM.DNS". Looking to see how to remove it in mass scale.


Why am I getting an out of memory exception?  So this dies in C# on the first time through:  splitBitmaps.Add(neededImage.Clone(rectDimensions, neededImage.PixelFormat));   Where splitBitmaps is a List<BitMap> BUT this works in VB for at least 4 iterations:  arlSplitBitmaps.Add(Image.Clone(rectDimensions, Image.PixelFormat))  Where arlSplitBitmaps is a simple array list.  (And yes I've tried arraylist in c#)  This is the fullsection:  for (Int32 splitIndex = 0; splitIndex <= numberOfResultingImages - 1; splitIndex++) {    Rectangle rectDimensions;    if (splitIndex < numberOfResultingImages - 1)    {     rectDimensions = new Rectangle(splitImageWidth * splitIndex, 0,        splitImageWidth, splitImageHeight);    }    else    {     rectDimensions = new Rectangle(splitImageWidth * splitIndex, 0,       sourceImageWidth - (splitImageWidth * splitIndex), splitImageHeight);    }     splitBitmaps.Add(neededImage.Clone(rectDimensions, neededImage.PixelFormat));    }   neededImage is a Bitmap by the way.   I can't find any useful answers on the intarweb, especially not why it works just fine in VB.  Update:  I actually found a reason (sort of) for this working but forgot to post it.  It has to do with converting the image to a bitmap instead of just trying to clone the raw image if I remember.


Bringing word into existence just by calling and using it

Sometimes, when I read essays, I see that writers make up words and by using them, they bring those words into existence.  For example:      In her article "Juban America", Ruth Behar uses the term "Juban", which is just the Jewish-Cuban identity, and though we know this term doesn't exist, she uses it. We know this word doesn't exist but after using it, it is brought into existence.   Is there a single word to name this strategy or phenomenon?


Disk space given back to Mac HD after removing partition, but is not usable

This looks similar to some other related questions here, but has some meaningful differences. I thought it was worth a separate question for that reason.   Like others I had an error while installing Windows 10 with Bootcamp. I had the error where you select the BOOTCAMPdrive and then click "Format," and then the disk is renamed to "Disk 0s5" (or close to that, if I remember correctly) and there is an error when you select it to install Windows 10.   I then followed the many instructions and exited Boot Camp Assistant, delete the recently created partition, and then started to go through the process again. I went back into Boot Camp Assistant and restored the HD to all being for Mac OSX. There was an error during the process. It said it failed, but the Mac HD then said 839 GB again like it should say. However, the 175 GB I had allocated for Windows in the partition, out of the 839, were not available. So when I go to set up the partition again I only have a total of 60 GB available instead of the 235 GB available like it should say after freeing up the former partition. So the 175 I used for the partition is back on the main disk, but I can't use it for anything, and am not sure how to free it up.   This is the print out of diskutil cs list:  <my-imac:>~ <my-account-name>$ diskutil cs list CoreStorage logical volume groups (1 found) | +-- Logical Volume Group 37905FD6-6AA8-4E49-BB1E-B19031E8101E     =========================================================     Name:         Macintosh HD     Status:       Online     Size:         838904774656 B (838.9 GB)     Free Space:   0 B (0 B)     |     +-< Physical Volume 923BC4E2-174B-4C6E-B604-72C4A7263521     |   ----------------------------------------------------     |   Index:    0     |   Disk:     disk0s2     |   Status:   Online     |   Size:     23553724416 B (23.6 GB)     |     +-< Physical Volume 7F30C1AF-0F14-4F43-9AF0-6058373887DA     |   ----------------------------------------------------     |   Index:    1     |   Disk:     disk1s2     |   Status:   Online     |   Size:     815351050240 B (815.4 GB)     |     +-> Logical Volume Family 74B7428F-8D10-4BB8-87D3-19B8F73C2844         ----------------------------------------------------------         Encryption Type:         None         |         +-> Logical Volume F3D44897-0134-4C19-871A-72E258AECDA8             ---------------------------------------------------             Disk:                  disk2             Status:                Online             Size (Total):          837958688768 B (838.0 GB)             Revertible:            No             LV Name:               Macintosh HD             Volume Name:           Macintosh HD             Content Hint:          Apple_HFS             LVG Type:              Fusion, Sparse   When I run  it also does not show the 175 GB that I should have reclaimed after deleting the partition as being available. It says I only have 60 GB available out of the 839 GB.      Since daisydisk agrees with the cs list how can I add ~175 GB to get my fusion drive back to 1 TB total capacity?


Why is Past Perfect Tense used in "This was my third trip to Iraq in 10 years and my second since Daesh had taken over several areas of the country."?

Why in below sentence writer has used past perfect tense i.e. since Daesh had taken?     This was my third trip to Iraq in 10 years and my second since Daesh had taken over several areas of the country.   As per my knowledge we can use present perfect:     This was my third trip to Iraq in 10 years and my second since Daesh has taken over several areas of the country.   Because Iraq is presently in the possession of Daesh.  Or simple past tense here:     This was my third trip to Iraq in 10 years and my second since Daesh taken over several areas of the country.   Because I think there is no need to explain which event happen first and which second.  .


Was Grand Moff Tarkin under Darth Vader's control?

In A New Hope, we see Grand Moff Tarkin ordering Darth Vader around. Also, it was . It's uncertain whether he knew .  But considering that Darth Vader was a Sith Lord, and a Jedi before that, are we entirely sure he wasn't secretly controlling Tarkin through a Jedi Sith mind trick?


How to convert a string to Double with all the numbers after the floating poing?

Lets say i have a string "53.430996", I want to convert it to a string and store all the values after the floating point I tried: #include <iostream> #include <bits/stdc++.h> #include <string> #include <stdlib.h> using namespace std; int main(){    char* convertme="53.430996";    double converted=atof(convertme);    cout << converted;    return 0; }  But the output is 53.431 but i need 53.430996 so I can later cast it to a long long with static cast < long long > (coord ∗ 100000)  So, I can get the value without the floating point  5343099


How can I convert minutes from Unix timestamp to date and time in java? For example, timestamp 1372339860 correspond to Thu, 27 Jun 2013 13:31:00 GMT. I want to convert 1372339860 to 2013-06-27 13:31:00 GMT. Edit: Actually I want it to be according to US timing GMT-4, so it will be 2013-06-27 09:31:00.


Can you add an external fingerprint reader to a MacBook that will work like the built-in reader?

I would like to use an external keyboard, mouse, monitor, etc and have my MacBook closed. The only issue is that I can no longer access the fingerprint scanner. Is there a way to use an external one? FYI, I have installed  which is very useful but doesn't cover all cases where a fingerprint can be used.  Yes, I read the similar question but thought this one was different since that one referenced a 10-yr old Macbook that didn't have the Touchbar. And there are ways to solve the problem in that question.


Which is stronger: Incursio or Grand Chariot?

While Wave says Grand Chariot is stronger, Incursio(Tatsumi) has more abilities, from what we see, and has the ability to adapt to any weather or situation, because of the beast used to make it. Its user, Tatsumi, also relies on his personal skill most of the time, Incursio there to just bail him out when he is in serious trouble, while Wave relies on Grand Chariot more than anything. But I could be wrong, so let me know your opinions.


"Is he a director of this company?" or "Is he director of this company?"

In these sentences:  "Is he a director of this company?"   "Is he director of this company?"  Why don't we use the article 'a' in this question? Is there any workaround?


Extract sub string from last in a string JS

I need to write JS function which returns true if string contains - depreciated in its last otherwise false.  For example:  var somestring = "string value - depreciated";   function should return true in above example.  function isDepreciated(var S) {     //Need to check for substring in last     //return true or false }   One possible solution is to use search function but that means that if - depreciated comes within string then it will also return true. I really need to find weather substring is in last or not.  Please help.


How to disable phone number linking in Mobile Safari?

Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers.  I am writing a web page containing an IP address, and Safari is turning that into a phone number link.  Is it possible to disable this behavior for a whole page or an element on a page?


I am communicating between two python scripts via pipes (Python 3.6.0 on osx). In the ideal case where the message is sent and waiting in the pipe, reading it isn't a problem. However when the pipe is empty it hangs while trying to read it.   Here is the script that writes to the pipe:   import pipes pipe_path = "/tmp/mypipe" t = pipes.Template() t.append('tr a-z A-Z', '--') f = t.open(pipe_path, 'w') f.write('ping')   Here is the script that that reads it:   import pipes pipe_path = "/tmp/mypipe" t = pipes.Template() t.append('tr a-z A-Z', '--') f = t.open(pipe_path, 'r') txt = f.read() print(txt)   So if I run the second script without running the first one it hangs. How can I detect if the pipe is empty and avoid it hanging on f.read()?


Longhand Student, Spirited Rider, Deft Hurler Style

I'm trying to make a mounted charger with the aforementioned feats (along with Spear Push, Polearm Momentum, and Pinning Challenge).  I've read some conflicting reports about whether you can use all the feats at the same time on Cleave. I'm not very knowledgeable when it comes to various errata and sources, I just use whatever's in the compendium - am I able to use these three feats simultaneously?


What to do when a post belongs to 2 sites?

This does not happen frequently, but see for example:     I'm sorry for this duplication, but is there a better way to put your post on 2 different sites, without this stupid duplication?


Prove that the Lagrangian Density $\mathscr{L}$, which generates a given set of Euler-Lagrange equations, is not unique.     Hint 1:  Adding a divergence to $\mathscr{L}$ does not alter the   Euler-Lagrange equation.   Attempt: Let $\mathscr{L´}=\mathscr{L}+\sum_{k}\frac{\partial f_k}{\partial x_k}$  Where $$\mathscr{L}=\mathscr{L}\big(x_k, \varphi_j, \frac{\partial \varphi_k}{\partial x_k}\big)$$ $$f_k=f_k(\varphi_j)$$ $j=1,...,m$ indexes the dependent field variables.  $k=1,...,n$ indexes the independent variables.     Hint 2: Then prove that: $$\frac{\delta \mathscr{L´}}{\delta \varphi_j}=\frac{\delta \mathscr{L}}{\delta \varphi_j}$$   Attempt: Now we define $$\frac{\delta \mathscr{L}}{\delta \varphi_j}=\frac{\partial \mathscr{L}}{\partial \varphi_j}-\sum_{l} \frac{\partial}{\partial x_l} \frac{\partial \mathscr{L}}{\partial (\partial \varphi_j/\partial x_l)}$$    But i can´t keep following the hints to get the proof done:


does the word "or" use Inclusive or Exclusive logic on my test? and how do I identify the logic that is being used?

I had taken a multiple choice business test the other day and the question was the following:     1. In Microsoft Word, the scissors function would be used to:       A) Cut or select certain information        B) Bolding a word       C) None of the above     I believe that the "or" in answer A) signifies that the scissor function is capable of both a cut and a select operation, whereas my teacher believes that it means one or the other and since the scissor function is capable of a cut operation A should be the correct answer.   I chose C) "None of the above" and I am considering escalating my complaint to student services.  Some relevant information may include that the Microsoft office being used by this class is of 2003. It is also a grade 9 class.  *Below is a link to the follow up of what happened at student services incase anyone is interested:


Is it possible to get user IP address in Angular 5 without the use of an external site?

I'm making a strawpoll site. I'm using IP addresses to check if a user already voted on a poll or not. For the moment I'm using an external API with a JSON callback which returns the user IP. The problem here is that some ADBlockers will block the http request to the external site leading in a user "without" an IP bound to him. I would like a function which would give me the user IP without the use of an external site.  Is this possible? And how would I go about implementing it?


An inner page is being ranked above my homepage. How to switch this?

My most important keywords are "ethical design agency". I have an 'ethical design' page on my website (www.made-up-name-design-agency.co.uk/ethical-design).  I've noticed that when searching using this phrase, my ethical-design page ranks highly and my homepage doesn't. But I don't want people to go to the ethical-design page because that is a fairly functional page with my environmental policy. I want search engines to rank my homepage, which gives an intro to what I do.  Is there a way to get search engines to rank my homepage or direct people in the search results to the homepage?  Would sitelinks be the answer? And if so, how do I make sitelinks? I've looked in Google Search Console     and can't find anything.


How should I configure SPF for my domain?

I'm the domain administrator for, say, example.com. I have a few dozen users and we provide them with e-mails (first-name@example.com) that are aliases to their main e-mail.  Now there's quite a few servers on the internet that mark mails as spam if they don't use SPF, and I'd like my users not to be considered as spammers. How should I configure SPF on my domain given that they might send mail from many different mail servers (their ISP, gmail, hotmail, their own server, whatever) ?  The only solution I've found so far would be to set up an SMTP server and ask users to send it through it (which is probably what SPF expects me to do). Is there any simpler way ? Is it common among usual mail providers that allow using aliases to also allow a specific SMTP server when using an alias ?  Here, I'm not asking how to configure basic SPF parameters or what SPF is in general, but how to deal with SPF when it involves many users that may send e-mails using their own SMTP server.


pkg installer installs to inconsistent locations

When I install my Xamarin-generated package with the terminal command from   sudo installer -pkg /path/to/package.pkg -target /   the place it actually gets installed is inconsistent, even from the same package.  Sometimes it goes to Applications. Sometimes it goes to   myProject/bin/debug   Sometimes it goes to  myProject/bin/Distribution/   What gives?


How to move all files and folders via mv command

How can I move all files and folders from one directory to another via mv command?


I have a couple of select2 'controls'  <select id="SizeID" class="js-example-basic-multiple" multiple="multiple"  style="">         //                           </select>  <select id="ColorID" class="js-example-basic-multiple" multiple="multiple"  style="">         //                           </select>   By using the following, i can get the selected values.  $('select').select2().on("change", function (e) {     log(e.val); })   But how can i get the id of the select2 that triggered the change event?


Find files based on modified date(specifying the exact hour)

My question is:   How to find files that has been modified from a given date(specifying the exact hour) to another given date(specifying the exact hour) in a given directory, from / for example.  I think that can be achieved with find.  Does anyone know how to do this¿? Thank you in advance


How can I install Ubuntu and Windows 10 as dual boot?

I want to install Ubuntu as dual-boot with Windows 10?  How can I do this? Is it complex, or can a beginner do it?


My mom wants to bring her mom and niece to canada for 3 months. Her mom came to canada many years ago however her niece has never traveled anywhere (she's 19). When we applied for the visa my mom’s niece got denied because they're not sure if she will return to their home country after the trip is over although we can 100% guarantee that both will leave when the trip is over. How can we prove this to the immigration officer because we know that you have to show strong ties to your home country but we're not sure what strong ties a 19 year old can have given her age.  please reply with any advice for getting visa approved when we reapply


If in space with no opposing force,will a body of 1kg pushed with 1N force keep on accelerating 1m/sec every second? When will it stop accelerating?

If in space with no opposing force,will a body of 1 kg pushed with 1 N force keep on accelerating 1 m/sec every second? When will it stop accelerating?


but for ubuntu 16.  I was trying to open google earth on chrome but was getting a message along the lines that I did not have any hardware accelaration.  So I followed some askubuntu questions and was able to get it working by enabling something in chrome's flags. But know I have the black bars and borders everywhere in ubuntu. Even the terminal is black and I can't see anything.  Please help


Why does VS not define the alternative tokens for logical operators?

Alternative tokens are  c++ , yet in Visual Studio 2013 the following emits a compilation error (undeclared identifier):   int main(int argc, const char* argv[]) {     int k(1), l(2);     if (k and l) cout << "both non zero\n";      return 0; }   Since and or not have been around for quite some time, is there a reason for not implementing them?


How to deal with some really questionable reviews

I have a habit of looking back at suggested edits I've reviewed to see if my decisions tend to be in-keeping with the community and I've noticed an 18k user () apparently just clicking anything...   Approved:  Rejected:    (NB: I initially linked the wrong suggested edits. Apologies, corrected)  Looking at the users history, there's 3-4 seconds between each vote, which is probably about as fast as the buttons work.  Obviously the automated tests audits aren't blocking these reviews - so is there any other mechanism to mitigate/prevent this? Perhaps a reporting process?  Failing that, can I suggest that perhaps if the time between reviews (in a block) is consistently under (say) 7-10 seconds, we trigger a throttle of some sort?  I know some edits really can be reviewed one after another but not all of them and certainly not this consistently.


College football game - start time vs kickoff time

I'm always confused by the times for which college football games are scheduled.  If a game (say, like the Oregon/Ohio State game tonight) has a start time of 6:30 PM, does that mean that the kickoff occurs, quite literally, at 6:30 PM?  Or, does this 6:30 start time signal the commencement of "pregame" procedures, such as teams running out on the field, coin toss, etc?


Prove that the congruence $ax \equiv b $ mod $m$ has a solution if and only if $d | b$, where $d = $gcd$(a,m)$  I thought about proving using the contrapositive that $d$ does not divide $b$, but i'm not sure that would really help and am stumped as to where to start.   Some help would be great!


Develop a statistical test to distinguish two products

I have a data set from a customer survey, I want to deploy a statistical test to see whether there is significance difference between product 1 and product 2.  Here is a data set of customers' reviews.   The rate is from very bad,bad,okay,good,to very good.  customer    product1    product2 1           very good   very bad 2           good        bad 3           okay        bad 4           very good   okay 5           bad         very good 6           okay        good 7           bad         okay 8           very good   very bad 9           good        good 10          good        very good 11          okay        okay 12          very good   good 13          good        good 14          very good   okay 15          very good   okay   What methods should I use to see if there is any difference betw these two products?


My daughter, who is a dual citizen (US and Spain), is returning from Spain after being there for 9 months studying. She entered Spain on her Spanish passport. She will check in for her flight back to the US with her US passport (proof to Iberia that she can enter the US) and enter the US with her US passport as required by US law. The trick is the exit from Spain as there is no entry stamp on her US passport, since she entered on her Spanish one. The suggestion seems to be that while she is flying on her US passport that she goes through EU passport control on her way home with her Spanish passport as there's no stamp in her US passport.  A potential issue could be that if the Spanish ask for her boarding pass at passport control when leaving Spain, her name on her US passport and thus her boarding pass is slightly different than on her Spanish passport. In the US, she has just my husband's last name and on the Spanish passport, she has his name and my name (the sedan family name). Thoughts?


What methods exist for cooling superconducting quantum computers?

Existing superconducting quantum computers need to be cooled near absolute zero.  For example, some of D-Wave's machines are cooled to about $20 \ \mathrm {mK}$.  Their design uses a dilution refrigerator.  Are there any other cooling methods for superconducting quantum computers besides dilution refrigerators which are capable of achieving such low temperatures?  Are there any specific commercial quantum computer designs or research projects using these other cooling methods?


Prevent scaling of printout of PDF without using hyperref

pdftex produces PDF. We need a viewer to view the PDF and print it. Some of those viewers tend to scale the printout: the letters shrink. This is a bug especially of the Adobe Reader and explained here:  .  A solution is describe here:  :  \usepackage{hyperref} \hypersetup{pdfprintscaling=None}   I'd like to avoid hyperref, because it slows down compiling.   My question: Is there a command to do that without hyperref, maybe similar to \pdfinclusioncopyfonts=1? (To avoid a misunderstanding: \pdfinclusioncopyfonts=1 does somethin completely different, I'm asking if there exists something like \pdfprintscaling=0.)


java null pointer exception hashMap containsKey

I am trying to understand why I get the following error:  Exception in thread "main" java.lang.NullPointerException     at HashMapClass.person_exists(HashMapClass.java:12)     at MainClass.main(MainClass.java:7)   I would have expected that by using contains key I would avoid pointing to nothing. Put another way, how do I query by hashMapClass when it is Empty?  MainClass.java  public class MainClass {      public static void main(String[] args) {      HashMapClass people = new HashMapClass();     boolean e = people.person_exists("foo");     } }   HashMapClass.java  import java.util.HashMap;  public class HashMapClass {      private HashMap<String, PersonClass> people;      HashMapClass() {     this.people = people;     }      public boolean person_exists(String name) {     if (this.people.containsKey(name)) {         return true;}     else {return false;}} }   PersonClass.java  import java.util.HashMap;  public class PersonClass {      private String name;     private HashMap<String, Integer> archive;     private int x;      PersonClass(String name) {     this.name = name;     this.archive = archive;     this.x = 10;     } }


Feat prerequisites when gaining the feat as bonus feat

The Dervish of Dawn gains the Feat Dervish Dance as a bonus feat at level 1. This feat has the following prerequisites: Weapon Finesse, Perform (dance) 2 ranks, proficient with scimitar. Which I can obviously cannot fulfill on level 1. Can I now us this feat without the prerequisites or do I have to wait till I fulfill them and can use the feat afterwards?


Carbonized oil when seasoning carbon steel

I've been trying to season my 11 7/8" Matfer Bourgeat Carbon Steel pan, with mixed success. The first time I did it, I had this weird patch of my pan that wasn't very nonstick, so I scrubbed off the bad part and tried again.   The last time I did it, I added about 1/3 cup of soy oil (smoke point around 320F) to the pan and put it over medium heat on a gas burner for 15 minutes. After the 15 minutes, I noticed that the sides of the pan were pretty amber colored, but the middle was still kind of metallic looking. At that point, I dumped some oil out and let it sit at medium heat for about three minutes. I looked away for not more than 30 seconds and my pan had developed this black, carbonized, sticky film of oil on the middle and some of the sides of the pan. (Picture included)  I'm not sure how to proceed from here. I'm thinking I will have to clean it off the film. To do this, I'm thinking of heating the pan with water, and a bit of vinegar, before taking the heat off and adding some baking soda. Then I would hit it with scotch bright and steel wool (fingers crossed that should work). But from there, I don't know what I should do differently to get a even, amber seasoning to my pan.   Any suggestions for how to clean this off, and what to do differently in the seasoning proccess would be much appreciated.  Thanks :)   Update: I have looked around a bit, and I see that I should have:     Used thinner coats of oil, let them cool, and repeat several times. Expect the actual color change to happen as the pan is cooling.     However, I wonder how much oil I actually should use for a pan this size. 1/3 cup is definitely too much.


My program compiles perfectly, but whenever I try to run it throws a NullPointerException. I tried searching this up, and found that the error relates to some value being null while the program is trying to use it, but I re-checked everything and came up blank.      import hsa.Console;     import java.awt.*;     import java.util.* ;     public class PlatformAndBall2     {         static Console g ;        public static void BallLoop() throws InterruptedException     {     do {        int height = g.getHeight();        int width = g.getWidth();        int xpos,ypos ; xpos= 0; ypos =0 ;        int radius ;  radius = 20 ;        int addx, addy ; addx = 3; addy = 3;         xpos += addx ;        ypos += addy  ;        g.setColor(Color.red) ;       g.clear();       g.fillOval(xpos,ypos,radius,radius) ;        Thread.sleep(15); // sets frames        if ( xpos < 0 )         addx += 3 ;         if ( xpos > width - radius)          addx += -3 ;            if ( ypos < 0 )         addy += 3 ;            if ( ypos > height -radius )          addy += -3 ;     }while (true);        }        public static void main(String[] args)throws InterruptedException {          Console g = new Console() ;         BallLoop();        }}


Prove that $\sum a_i e^{\alpha_ix}=0$ has at most $n-1$ real solutions.

We have to prove that $$\sum_{i=1}^n a_i e^{\alpha_ix}=0,a_i\neq0,\alpha_i\neq\alpha_j\forall i\neq j$$ has at most $n-1$ real solutions.  I tried differentiating and other stuff but was unable to do anything... Any suggestions will be helpful.


Does time dilation mean an object moving faster advances faster in time?

I tried to read a bit about relativistic time dilation, but the maths and complex physics overwhelmed me, confused me -I'm not trained in this field beyond common divulgation and basic education, and I'm not interested in physics professionally-, so this put me off the subject but I'm still curious about it, so I'll ask it simply enough in an attempt to get a concise answer.  If, say, someone sat on a bench at a park while Earth is going through rotation and traslation as usual, and someone else ran by, also rotating with Earth, there would be a minimal time dilation on the runner's clock from the sitting guy's point of view. Does this mean the runner is moving faster in his own timeframe or slower? I ask this because, although his clock is ticking slower, by moving faster, so I read, one can go further into the future.  Does this mean time advances slower for him, or he is advancing faster in time?


Probability that $AX^2+BX+C=0$ has only real roots for $A,B,C \sim Unif(0,1)$

From chapter 6, practice exercise 26 (b) from "A First Course in Probability" by Sheldon Ross (working it for my own recreation):  Given R.V.s $A,B,C\sim_{iid}Unif(0,1)$ and asked to find the probability that $AX^2+BX+C=0$ has real roots (ie $B^2>4AC$).   Can someone help me understand how to set up the integral to compute the desired probability: $$ Pr(B^2>4AC)=Pr(B>2\sqrt{AC}) $$ *$\{B<-2\sqrt{AC}\}$ has probability zero since $B\sim Unif(0,1)$ and, therefore, cannot be negative.  I understand that, in order for $B$ to be between 0 and 1, we need $0<\sqrt{AC}<\frac{1}{2} \rightarrow 0<AC <\frac{1}{4}$, but I am having trouble coming up with an integral that makes sense.   Thanks!


How to make sure Google doesn't think index.html and homepage pages are duplicate content?

I have a website built with html CSS and JavaScript, its working on Firebase platform.  I did a duplicate content test on siteliner.com, the results showed me 100% duplication between index.html file and home page.  Just note that the file I was working on is index.html I don't know if that matters but at the moment the index page's power page is 100 compared to the home page which stands at 33  After reading a little about the topic, I realized that to avoid SEO problems I need to redirect 301. I did redirect from the homepage to index.html.  My question is split into two:   Have I done right by redirecting from the home page to index.html and not vice versa? Do I need to do something in addition to make sure that there is no harm to SEO?


Can we find a monotone function $f:[0,1]\rightarrow\mathbb R$ whose discontinuity set is exactly the set $\mathbb Q\cap [0,1]$? Or can we prove that such a function does not exist?


Is there anything in medium format systems which can beat pro-level 35mm digital with fast lenses in low light?

When someone wants to compliment a 35mm sensor, he can say that it's [almost] as good as medium format. Medium format appears to be the gold standard where image quality is concerned.  But. I'm usually working with natural light using my lenses wide open, and the widest lenses that I've seen for Hasselblad or Leica S2 are f/2.8, which I consider very dark. Also, when I watch clips on youtube concerning medium format, people usually use those lenses with artificial lighting, which also confirms my impression that medium format cameras aren't as light sensitive as DLSR systems.  So my question is - let's say I'm working with 1D X and 85mm f1.2. Is there anything in medium format sector, that can beat that combination when working in low light conditions?


A rope between Earth and Moon - Length and Speed of Light

An earlier question was asked on what would happen if a rope was attached between Moon and Earth, but the question was more about the impacts in terms of geology.  We keep the same experiment setup :     Now let's add a guy holding the rope on Earth and an astronaut holding the other end of the rope, on the Moon. Since the distance between Earth and Moon is 384 000 km and that nothing can go faster than 300 000 km/s, what would happen if the Earth guy would pull on the rope. Would it take a little bit more than a second for the astronaut to feel the change in tension ? Does it mean that the rope has been somehow elastic during that 1 sec ?


How can I prove that a system $\{t^k\}_{k=0}^{\infty}$ is not a Schauder basis for C([0,1]) I tried to come up with a function that on the one hand is equal to 1 when t->1, and on the other hand given series $\sum_0^{\infty}{\alpha_k t^k}$ doesn’t converge. And that will contradict a definition of a Schauder basis


I can not kill one process with command kill -9, is there any way to kill it without restarting the machine?


How to use salesforce reserved keywords in json deserialization in apex rest services

I'm new to apex rest services.Normally in Apex rest services the input json body automatically deserializes to apex class object. but my json body contains reserved key words.For Rest services automatically deserialization happen if we define method parameters so we don't have control to replace json string.  Can anyone please let me know how to overcome this problem.  I'll receive input in the following way  {  "reqId":"DNMFJP00029279",  "buyerDetails":{  "company":"DNMF(DunderMifflin)",  "coordinatorLastName":"Hamilton",  "coordinatorFirstName":"Susan",  "department":"PaperProcessing",  },  "rates":{  "taxStatus":"w-2",  "currency":"USD",  "billRateMax":"30.88",  "billRateMin":"8.00",  "payRateMin":"7.50",  "payRateMax":"22.00",  "targetPayRate":"45.00",  "targetBillRate":"72.00"  },  "reqDetails":{  "responseDeadline":"2015-2-10T00:00:00+00:00",  "category":"Professional",  "reason":"Project",  "education":"Bachelor'sDegree(Required)",  "skills":"MicrosoftWord-4years(Required)",  "workDays":"Monday,Tuesday,Wednesday,Thursday,Friday",  "endTime":"5:00PM",  "startTime":"8:00AM",  "createdDate":"2015-1-31T00:00:00+00:00",  "totalOpenings":1,  "hours":"40.00",  "endDate":"2015-12-31T00:00:00+00:00",  "startDate":"2015-04-13T00:00:00+00:00",  "comments":"WillrequireoccasionaltripstoScranton,PA",  "description":"Thisjobrequiresexpertiseinsalesandpapermanagement.",  "qualifications":"Mustbeabletooperateastapler",  "title":"BusinessAnalystIII",  "positionType":"Temp",  "location":"1725SloughAvenue,WashingtonDCUSA20008"  },  "submittalMax":2,  "reqStatus":"hold",  }   please help me how to deserialize the above string in apex rest service


Why is this series of square root of twos equal $\pi$?

Wikipedia claims this but only cites an offline proof:  $$\lim_{n\to\infty} 2^n \sqrt{2-\sqrt{2+\cdots+ \sqrt 2}} = \pi$$  for $n$ square roots and one minus sign. The formula is not the "usual" one, like Taylor series or something like that, so I can't easily prove it. I wrote a little script to calculate it and it's clearly visible, but that's not a proof.


simply python question: how do I append all elements in list of list

A = [['2','4'],['1','2']] B = [] for i in A:   for x in A[i]:     B.append(x) print(B)      TypeError: list indices must be integers or slices, not list   I expected to use two loops to iterate all the elements in A. A[i] is the first list element in A. And the second for loop should iterate the A[i] and append all the elements into B. However, the error says must be integers or slices, not list. I don't know why i can not iterate elements in A[i]. I am very appreciate if anyone can help.


Programmatic equivalent of default(Type)

I'm using reflection to loop through a Type's properties and set certain types to their default.  Now, I could do a switch on the type and set the default(Type) explicitly, but I'd rather do it in one line.  Is there a programmatic equivalent of default?


I want to use the same font as this paper (title, section, subsection)  I have asked the author, he said they only used \documentclass[letterpaper]{article}. Does anyone know how to obtain this font? Thanks.


Print only the Nth line before each line that matches a pattern

I'm trying to print only the <N>th line before a search pattern. grep -B<N> prints all the <N> lines before the search pattern. I saw the awk code  that can print only the <N>th line after the search pattern.  awk 'c&&!--c;/pattern/{c=N}' file   How to modify this to print only the <N>th line before each line that matches pattern ? For example, here is my input file  ... ...    0.50007496  0.42473932  0.01527831    0.99997456  0.97033575  0.44364198 Direct configuration=     1    0.16929051  0.16544726  0.16608723    0.16984300  0.16855274  0.50171112 ... ...    0.50089841  0.42608090  0.01499159    0.99982054  0.97154975  0.44403547 Direct configuration=     2    0.16931296  0.16553376  0.16600890    0.16999941  0.16847055  0.50170694   ...   I need a command that can give me back the 2nd line before the search string Direct configuration. I'm trying to run this in SUSE-Linux


Why does the sentence "Glimpses do ye seem to see of that (...) ?" starts with 'glimpses' instead of with regular 'do'?

I cannot make much sense of glimpses in the following passage from :  Know ye now, Bulkington? Glimpses do ye seem to see of that mortally intolerable truth; that all deep, earnest thinking is but the intrepid effort of the soul to keep the open independence of her sea; while the wildest winds of heaven and earth conspire to cast her on the treacherous, slavish shore?  Why did Melville begin this somewhat lengthy question with glimpses instead of with do? The following would make more sense to me:  Do ye seem to see that mortally intolerable truth;(...)?   does not clear up anything to me.


I need help to prove this: If $\gcd(a,b)=1$ then $\gcd(a+b, a^2-ab+b^2)$ is equal to $1$ or $3$. I have done this: Let $d$ be the g.c.d. of $(a+b, a^2-ab+b^2)$, then $d$ divides $a+b$ and $d$ divides $a^2-ab+b^2$. That implies $d$ divides $(a+b)n + (a^2-ab+b^2)m$, for some $n,m$ integers. Let $n$ and $m$ be $a$ and $1$ respectively, then $d$ divides $2a^2+ b$. With the same argument but with $n=b$ we get $d$ divides $a^2+2b$. Then $d$ divides $3a^2+3b^2$. That implies $3a^2+3b^2 \geq d$, and we get that $3 \geq d$, because $\gcd(a^2+b^2)=1$. So $d$ must be $3$ or $1$ because if $d =2$, $d$ has to divide $a^2+2b$ and $2a^2+ b$, but we see that no. So $d=3$ or $1$. I don't know if I did it well.


agree/disagree button on meta or upvote/downvote effects based on tags

I just got rid of a question ban, after doing some stupid stuff when I just got on meta. I asked a question which got closed because it was a dupe of a whole lot of other questions. After that, I posted a suggestion, which had 1 upvote, and four downvotes. That was all my activity on meta.  After posting some constructive answers here again, I regained the right to ask questions. Although I know that I'm risking to get downvoted into oblivion again, I'd like to suggest an 'agree/disagree' button. This time, I have searched meta, and was not able to find any suggestion like this.  When I had been banned, I was looking at a lot of questions discussing penalties and meanings of downvotes on meta; Some say that a downvote has an ambiguous meaning, they can mean either that your question is low quality, or that people disagree with it. Some say that it is just unclear what it means. To clean this meaning up, I'm suggesting these buttons. They could be a thumbs up and a thumbs down buton or something, to distinguish between  agreement and question quality.  Disagreement would only remove 1 rep from the asker, and would be free for the downvoter, while downvotes remove 2 rep, or as suggested in other feature requests, 5 or 10.  The only problem I can see, is that this goes against the 'don't make me think' rule in UI design. Users now need to learn even more, because they need to know the difference between those icons.  Another way this could be implemented, is by changing the influence of votes based on the ,  and  tags.


How can I completely replace Windows XP by installing Ubuntu over it?


Variadic nested template type as parameter

I would like to have a function parameters of the template type of the variadic template class. How can the following code be well-formed?  template <typename T> struct Foo {   typedef T Base; };  template <typename... Targs> struct Bar {   void get(Targs::Base... args) {} /// Type of the typedef Base of Foo! };  int main() {   Bar<Foo<int>, Foo<double>> bar;    int i = 0;   double j = 0.0;   bar.get(i, j); }   Using GCC 4.9 C++11 or 5.3.


How to use /give command to give enchanted items in Minecraft Bedrock (PS4)?

I am trying to /give a player an enchanted sword using commands, but it isn't working. This is the command: /give @p diamond_sword 1 0 {ench:[{Id:16,lvl:1}]}   No matter what I try, it insists that there is a missing “}” or object member name. How can I fix this issue?


How to detect closing and refreshing browser tab?

I know that this code will be triggered when you closing tab AND when you refresh the tab.  window.onbeforeunload = closingCode;     function closingCode(e) {         var evtobj = window.event ? event : e;          var callDateUTC = { callDateUTC: new Date().toUTCString() };          if (evtobj == e) {             //firefox             if (!evtobj.clientY) {                 that._apiGateway                     .post(that._apiGateway.ApiPaths.RefreshToken, callDateUTC)                     .subscribe((loginResponse: LoginResponse) => {                     });             }         }         else {             //IE             if (evtobj.clientY < 0) {                 that._apiGateway                     .post(that._apiGateway.ApiPaths.RefreshToken, callDateUTC)                     .subscribe((loginResponse: LoginResponse) => {                     });             }         }          return null;     }   But I want to know which of those two event was triggered...  if (tabWasRefreshed){     //code } else if(tabWasClosed){     //code }


On the evolution of the universe that currently has no definitive answer to how it is evolving and at what rate:

Is the universe an open system?   Is the expansion of the universe accelerating?   Reference links:


I don't understand the ouptut of this code. When comparing two strings with same value (not assigned using new keyword), java returns true. But when I do it using new keyword and pass the value in the constructor, it prints false.  But when I use new keyword and instead of passing the value to the constructor I assign it in the next step. This time it returns true. Why?  class CheckStrings{ String s; }   public class EQCheckTest {   public static void main(String[] args) {     String a1 = "pune";     String a2 = "pune";     String a3 = new String("pune");     String a4 = new String();     a4 = "pune";     CheckStrings cs = new CheckStrings();     cs.s = "pune";      System.out.println(a1==a2);      System.out.println(a1==cs.s);     System.out.println(a1==a3);      System.out.println(a1==a4);   } }   OUTPUT:      true     true     false     true   Why a1==a3 false and a1==a4 true?


Where did my sytem font go and how can I get it back?

I left my laptop suspended for a bit and when I re-opened it, most of my system fonts were hidden. On my desktop, a few folders have some random letters in their name visible, but most have disappeared:    And most of my title bars and dialog windows are totally opaque, as you can see in this screenshot of the screenshot dialog:     I'm not sure how to even begin to troubleshoot this. I'm sure I could restart my computer but there must be a better way to get my fonts back?  I read through  but this isn't something I've seen before and I've been on 16.04 LTS for quite some time, so I think this is a different issue.   Plus, I have compiz (the solution suggested in the answer to the above question) and it, too, is unusable at the moment:    Two months later, I'm still struggling with this. My fonts just kind of choke, usually after my computer has been asleep for a while. It's inconsistent which apps choke -- for instance right now there are zero letters on my desktop or my terminal but Firefox is fine. If I re-boot my computer everything is back just fine but that's obviously super inconvenient.   Logging out and back in would be a good option, but I'd have to memorize the location of the "log out..." menu item. Because that is always hidden.   Note that this is marked as a duplicate of  but the solution there is to upgrade to 15.04. I'm on 16.04, so should be past that.


Short story about a man visiting a community for the deaf. Ends with them ascending to a higher plane of existence

I was reading  and it made me suddenly remember another story I read in a book somewhere in the 90s to the early 2000s. Rather than being about a sighted man showing up in a community of the blind, this involved a hearing man (for some reason, I want to say he was either a reporter or an encyclopaedia salesman) showing up in a community for the deaf. They were socially isolated, the result of the government or society trying to eliminate hereditary deafness. I don't remember if the theme was of eugenics or simply that deaf people were kept from meaningfully interacting with society. While there, the protagonist notices that the children (all of whom are deaf) spend time standing in fields, holding hands, and swaying to music he can't hear. He comes to realize that, by being completely isolated from sound, the community hears something more fundamental to the universe, and the story ends with the community using this to move to another world, possibly a higher plane of existence.  One of the odd details that I remember was a member of the community communicating that when they started out, they were preyed upon by men who assumed they would be easy targets due to their deafness, and that they had both trained to defend themselves and also kept a number of guard dogs on the premises.


$n$ points $z_1,z_2,\cdots,z_n$ in the unit open disk are given. Prove or disprove that there exists $z$ in the unit circle such that $\prod_{i=1}^n |z-z_i|^i \ge 1$.  I think it can be solved by elementary analytic methods but no idea.


Ideal for $2\times 2$ matrix entry in $\mathbb{Z}$

I am considering a problem in Ring Theory.      Consider the ring $\mathbb{M}_{2}(\mathbb{Z})$,the 2x2 matrices with entries in $\mathbb{Z}$. Find all its ideals.   So the way I start thinking this problem is, I first try think about $\mathbb{M}_{2}(\mathbb{R})$. By elementary matrix's row reduction and column reduction, I found that in any non-trivial ideal in $\mathbb{M}_{2}(\mathbb{R})$ it can be shown to contain the identity $\mathbf{I}$ thus the ideal is $\mathbb{M}_{2}(\mathbb{R})$ itself.  Then I turn to think about, what happens if I restrict the entry from $\mathbb{R}$ to $\mathbb{Z}$. The observation I make is that, we cannot apply the trick as in $\mathbb{M}_{2}(\mathbb{R})$ to obtain an identity $\mathbf{I}$ because we don't necessarily have multiplicative inverse for $\mathbb{Z}$, like 2's inverse is $\frac{1}{2} \notin \mathbb{Z}$.   So from here What I conclude is that, since we're not guarantee to have identity $\mathbf{I}$ in ideal, $\mathbb{M}_{2}(\mathbb{Z})$ should have some proper ideal. But I am stuck on how to find all such ideal. It's easy to think for a few, like upper-triangular matrix, lower-triangular matrix. But how can I show them all, or prove there is no other.  Thanks in advance. Any hint strongly appreciated~!


How to fix the following error during an update?

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.88.149 80]  E: Some index files failed to download. They have been ignored, or old ones used instead.


Prove that $\sum_{n=1}^{\infty}\exp\left(-n^{\varepsilon}\right)$ converges.

I have the problem to prove, that the following series converges:  \begin{equation} \sum_{n=1}^{\infty}\exp\left(-n^{\varepsilon}\right), \end{equation} where $\varepsilon > 0$.  I tried everything. I tried the ratio and root test, but I don't come to a solution. Can someone help me?  Thanks!


Javascript after pressing button make button colored where id and class =

I tried to search for this online but couldn't find anything that works  i want that after i press  then class where id = 1 is changed to cls-checked      after pressing vote it goes to php and like is pressed i want to make users already see like without reloading  function vote(vote, val)         {             var params = {"vote": vote, "id": val.id};             $.ajax({                 data:  params,                 url:   'vote.php',                 type:  'post',                 success:  function (response) {                  }             });         }   problem is i always have 2 elements with same id if each element had different id i could use this code  var x = document.getElementById("1"); x.className = "cls-2";


Null pointer exception launching debug (Unable to instantiate activity) . Bad IF condition?

I have this piece of code. When I launch debug I receive the error     java.lang.RuntimeException: Unable to instantiate activity   ComponentInfo{nicola.pokerstarsleaguecalculator/nicola.pokerstarsleaguecalculator.MainActivity}:   java.lang.NullPointerException: Attempt to invoke virtual method   'android.view.Window$Callback android.view.Window.getCallback()' on a   null object reference.   I suppose the error is here:  if (JTIscritti.getText().length()!=0)   How can i correct it? Thanks    public class MainActivity extends AppCompatActivity {     public EditText JTIscritti = (EditText)findViewById(R.id.JTIscritti);     public TextView JLPremiati = (TextView) findViewById(R.id.JLPremiati);     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          JTIscritti.addTextChangedListener(new TextWatcher() {         @Override             public void onTextChanged(CharSequence s, int start, int before, int count) {             }              @Override             public void beforeTextChanged(CharSequence s, int start, int count, int after) {              }              @Override             public void afterTextChanged(Editable s) {             premiati();             }             public void premiati() {                 if (JTIscritti.getText().length()!=0) {                     PuntiLeague aPunti = new PuntiLeague();                     String strIscritti = String.valueOf(JTIscritti.getText());                     int iscritti = Integer.parseInt((strIscritti));                     int premiati = aPunti.aPremio(iscritti);                     String strPremiati = Integer.toString(premiati);                     JLPremiati.setText(strPremiati);                 }                 else JLPremiati.setText("0");             }         });     } }   UPDATE: I solved thank to @ΦXocę 웃 Пepeúpa ツ and @VishnuSP moving some declarations+assignments  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     final EditText JTIscritti = (EditText)findViewById(R.id.JTIscritti);     final TextView JLPremiati = (TextView) findViewById(R.id.JLPremiati);


Origin of Hamilton's variational principle

My question is what is the theoretical origin of . I mean is there any rigorous mathematical proof of this principle from some more basic principles?


This morning I'm working in a cafe where bizarrely the WiFi DHCP gave me an IPv6 address (and DNS, etc), but no IPv4. As such, I can use IPv6-enabled sites such as , but stack exchange sites appear not to resolve (at least in chrome on OSX). Can IPv6 be enabled for the stack exchange network? (Don't worry, I'm now tethered to my iphone, so I can get my work done.)  Update: Now this has been migrated to meta.SE (where it should be), I see there are several possible duplicates:      However, none of these seem to have a conclusive answer - either of:  "Yes, we will support IPv6 on X date" "No, we have no plans to support IPv6".  I know this is now a dup (as it probably should be), but I would love to see a useful answer.