How can I fix my code to print "AAADADDA" instead of "DAADAAAAAAADADDA"?
What's the simplest way to print a Java array?
Prove that $Au\cdot v = u\cdot A^Tv$ Let A be an $n$ x $n$ matrix and let $u$,$v$ $\in$ $\mathbb{R^n}$. Prove that $$Au\cdot v = u\cdot A^Tv$$  I tried using the fact that $A^Tu=A\cdot u$. However, I cannot seem to get to this result. Could anyone please help me out? Comment font sizes are inconsistent on Android An issue similar to that described in  and likely to be related.  The comments for a question may vary in size:         Chrome for Android on Nexus 7 running 4.2.2 Jelly Bean. This also occurs on Firefox for Android: Adding Grids in Project Manager of QGIS I am using QGIS 3.12. I am new to QGIS after having worked with ArcGIS Desktop for a while. I am having issues with adding a grid to my project. I am using CRS ESPG:3587 WGS 84 / Pseudo-Mercator and noticed that the grid is showing the wrong coordinates and have included the parameters I have set for the grids. I have read enough threads on QQplots here to understand that a QQplot can be more informative than other normality tests. However, I am inexperienced with interpreting QQplots. I googled a lot; I found a lot of graphs of non-normal QQplots, but no clear rules on how to interpret them, other than what it seems to be comparison with know distributions plus "gut feeling".   I would like to know if you have (or you know of) any rule of thumb to help you decide for non-normality.  This question came up when I saw these two graphs:    I understand that the decision of non-normality depends on the data and what I want to do with them; however, my question is: generally, when do the observed departures from the straight line constitute enough evidence to make unreasonable the approximation of normality?  For what it's worth, the Shapiro-Wilk test failed to reject the hypothesis of non-normality in both cases. Distribution of Dark Matter around galaxies It is well-known that measurements of the velocity profile in galaxies are not compatible with Newtonian laws. A way to circumvent the problem is to assume that galaxies are surrounded by a spherical halo of Dark Matter. The density of mass of this Dark Matter can then be computed from the velocity profile with Newton's laws.   My question is the following: the formation of a galaxy involves essentially only the gravitational interaction. According to Newton (and General Relativity too), the trajectory of a particle does not depend on its mass. As a consequence, I do not understand how usual matter and Dark Matter could have followed different trajectories leading to such different mass distributions nowadays. Can somebody explain this (apparent) paradox ? Is a noisy laptop fan caused by dirt on the fan? Why were there so many spells cast in the movies without saying the words to the spell? From my memory of the last Harry Potter movie I saw, I've seen many wizards cast spells without saying the spell at all.  During the final battle in Hogwarts, many wizards just swung their wands and their enemies were knocked out. I am 100% sure about this!  The most remarkable spells were the ones that emit a green or red beam in the final battle of Harry Potter against Voldemort when they pushed their beams towards each other.  So, the question is, are they cheating? Because, unless there are wordless spells, they must say the words for a spell. Playing Minecraft on Windows 10, owning a Xbox One disc I own a Minecraft disc for an Xbox One, and would like to play on my PC (ultimately, playing with others who will be on the Xbox).  I'm not too familiar with the Xbox account ecosystem, and with dozen different Minecraft editions, I'm lost as to how I can do that. Why is Steam only showing me "Buy" instead of "Play" option for a game shared via Family Sharing? I thought the whole point of Family Sharing was so that multiple copies of the game didn't have to be bought. I have no problem downloading the game, but instead of "Play", my only option once it's downloaded is "Buy". Am I missing something? Issue in using longtable within table environment I have an issue making a long list with wrapped text. The table can be several page long. I use longtable and assign the width for each column but as soon as I put it in the \begin{table} \end{table}, it does not work. It clips the table. I want to make a label for the table so I put it in the table environment.  And is there a way to automatically adjust the width so that I don't need to assign the value manually?  Thank you.   Tung  \begin{table} \centering \begin{longtable}{|p{6.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|} \hline Name                                      &amp; Company     &amp;  Catalog Number   &amp;   Comments    \\ \hline Small DNA FRAG Extract Kit-100PR          &amp; VWR         &amp;   97060-558 &amp; \\ \hline Acrylamide 40\% solution 500 mL           &amp; VWR         &amp;   97064-522 &amp;  \\ \hline Bis-acrylamide 2\% (w/v) solution 500 mL  &amp; VWR         &amp;   97063-948 &amp;  \\ \hline GeneRuler 100 bp DNA Ladder, 100-1,000 bp &amp; Fermentas   &amp;   SM0241  &amp;    \\ \hline Mini Vertical PAGE System                 &amp; VWR         &amp;   89032-300  &amp;  \\ \hline \end{longtable} \label{tab:list} \end{table} Should the personal/research statement be technical? Related:   I know I must describe my past and current research in my personal/research statement or statement of purpose. But do I use technical terms?  I was given the advice that since the people reading my statement are mathematicians (I am applying to US for applied mathematics), they should know what I am talking about.  Although I am applying to applied mathematics, it would also be nice to hear from other fields (biology, computer science, engineering etc) about this. I posted a comment to a duplicate question on . But I decided to delete it. Afterwards I voted as duplicate and thought a comment would be generated like     possible duplicate of ...   But it didn't. My guess is that the duplicate-comment won't be generated if a comment exists with that link, even if deleted. In unix/linux, any number of consecutive forwardslashes in a path is generally equivalent to a single forwardslash. eg.  $ cd /home/shum $ pwd /home/shum $ cd /home//shum $ pwd /home/shum $ cd /home///shum $ pwd /home/shum   Yet for some reason two forwardslashes at the beginning of an absolute path is treated specially. eg.  $ cd ////home $ pwd /home $ cd /// $ pwd / $ cd // $ pwd // $ cd home//shum $ pwd //home/shum   Any other number of consecutive forwardslashes anywhere else in a patch gets truncated, but two at the beginning will remain, even if you then navigate around the filesystem relative to it.  Why is this? Is there any difference between /... and //... ? Proving that $\left( \frac{\partial^2}{\partial x^2} + \frac{\partial^2}{\partial y^2} \right) \lvert f(z) \rvert^2 = 4 \lvert f'(z) \rvert^2$ Given $f$ entire show that $$ \left( \frac{\partial^2}{\partial x^2} + \frac{\partial^2}{\partial y^2} \right) \lvert f(z) \rvert^2 = 4 \lvert f'(z) \rvert^2 $$ I've come close to getting the exact answer by writing $f(z)$ as $u(x,y)+iv(x,y)$ and realizing the Laplacian of f is equal to zero. This leads to a lot of cancellations but I'm still making mistakes in my computations and I can't figure out where. Any help is appreciated. In the middle of touching up a new texture, I pressed save and suddenly my textures all turned black on the model and UV texture - just vanished.  I tried reopening the file in another instance of Blender, I tried to CtrlZ too and it just did this weird patchy thing on my texture.   How do I recover it and what did I do wrong? How to truncate all logfiles? can anybody give me a solution to truncate all logfile in /var/log/ directory?  and a question just for knowledge, is it a good idea or not?  #!/bin/bash LOGDIR="/var/log" for logfile in $(ls $LOGDIR/*log) do   truncate -s 0 $logfile done Is an apostrophe with a decade (e.g. 1920’s) generally considered “incorrect”? I typically don’t use an apostrophe with plurals in any situation, but I always assumed that the use of an apostrophe in constructions like acronyms:     Forty BA’s were given out to students this year.   or numbers:     Though the greatest period instability occurred during the 1950’s when. . . .   was more or less ok. I would personally use BAs and 1950s here, but I've never thought the apostrophe in this case was necessarily “incorrect”. What say ye? Is it "re-offend" or "reoffend"? I want to know whether there is a hyphen in the word re-offend, or if it is spelt reoffend. I looked in Oxford English dictionary and the word "reoffend" appears, but then I checked Merriam-Webster and the word is not in there.  So is reoffend a word or is it re-offend?  I'm in Australia where we observe UK English if that matters. How do you serialize an object in C++? I have a small hierarchy of objects that I need to serialize and transmit via a socket connection.  I need to both serialize the object, then deserialize it based on what type it is.  Is there an easy way to do this in C++ (as there is in Java)?  Are there any C++ serialization online code samples or tutorials?  EDIT: Just to be clear, I'm looking for methods on converting an object into an array of bytes, then back into an object.  I can handle the socket transmission. failed to fetch security undermined error [IP: 91.189.91.38 80] in ubuntu 20.04