I am given an initial x and y position and initial velocity and I was asked to graph the trajectory in 1 second intervals.  This is what I have so far:  If $x_0 = 1, v_{0x} = 70, y_0 = 0, v_{0y} = 80, a_x = 0, a_y = -9.8$, and time will be 0,1,2,3... and so on.  Using these equations on every second you can find the plot will be a bell shaped with the highest point being ~ 325 m at about 600 seconds:   $$ x = x0 + (v_{0x})t + 1/2((a_x)t^2) $$ $$ y = y0 + (v_{0y})t + 1/2((a_y)t^2) $$  Usually in physics, we are taught in perfect condition with no air resistance. But what if there was air resistance? How would it affect this problem? How can i add it to my calculations and see what the difference is?


If these are the vertices for a parallelogram,   (0,0), (-1,3), (4,-5), (3,-2)  how do I find the area?  I know it's supposed to be a 2x2 matrix and I need to find the determinant for it but I don't know which columns of it to use. Am I supposed to draw it out?  Am I supposed to shift one of the vertices to?


What items do I need to make my world Hard Mode?


I am learning future tense now. However, I don't what is the difference between "will-"and "be going to-".


Define $A+B=(A\cup B) \backslash (A\cap B)$. Is this set operation associative? I've try to expand $(A+B)+C$ and $A+(B+C)$, but it just became too messy...


Two of my web pages that were published last month are not indexed by Google, although both the webpages are on sitemap and the sitemap is recently updated successfully. Other web pages that are published this month are indexed but not the ones that are published before them.  I also conducted a live test and everything seems to be good. Can you please suggest some ways to force index a page?


Let  $ ABCD $ be a square with side length $ a $. Let $ s $ be a staircase from $ A $ to $ C $ with total length $ l $ and number of steps $ n $. It consists of perpendicularly alternating lines of length $ \frac{a}{n} $, as .  We see that $ l $ can be expressed as follows: $$ l = \frac{a}{n} \cdot n + \frac{a}{n} \cdot n = \frac{a}{n} \cdot n \cdot 2 = 2a $$ and as such stays constant at $ 2a $.  Now let us imagine that the amount of steps is infinite, e.g. $ n =  \infty  $. Per definitionem, the staircase should now be the diagonal of the square with length $ l=a\sqrt{2} $ according to Pythagoras. This is paradoxical! According to the equation pictured above, it should have the length $ 2a $, not $ a\sqrt{2} $.  My question is:  Does $ l $ equal to $ 2a $ or $ a\sqrt{2} $?


What happens to matryoshka Mordenkainen's Magnificent Mansions?

The following situation happened towards the end of our last session(I am the DM): A player cast Mordenkainen's Magnificent Mansion, so they could take a break to heal up their comrades and rest a bit.   Then, that player cast the Mansion again (after a long rest) and placed the portal inside the first mansion. Everyone went through before the first mansion disappeared, and expected to return to the main overworld again after another 24 hours.  But technically, the Mansion only expels creatures, not portals to extradimensional planes, so shouldn't they be thrown out where the first mansion was, an extradimensional space?  I am not gonna do this to them now since this would be the end of the story and not something anyone expected, but still: Under RAW, would my players be back to the extradimensional space where the first mansion was?


fancyhdr package: Not Displaying header and footer

Can anyone help me see why the fancyhdr package fails to display the header and footer while I typeset my file? I have all the correct file paths for the input commands. Also, there is no error detected by my typesetting tools. I can't find a reason my document cannot display a header and a footer.  I'm using Texpad 1.8.7 on a MacOS Mojave 10.14.6. I've installed the full version of the MacTeX and I have double checked that I have the fancyhdr package installed in the right place. Can anyone help?   My code is as follows:   \documentclass[12pt, twoside]{report} \usepackage[utf8]{inputenc} \usepackage{graphicx} \graphicspath{ {/Users/siyang/Desktop/Images/} } \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry} **\usepackage{fancyhdr}** **\pagestyle{fancy}**  \title{ {Social Strain and Delinquency}\\ {\large The University} } \author{me} \date{January 1, 2020}  \begin{document}  \maketitle  \chapter*{Abstract} Abstract goes here  \chapter*{Dedication} Dedication goes here  \chapter*{Declaration} I declare that..  \chapter*{Acknowledgements} I want to thank... \end{document}


Prove that the if $\sum{a_k}$ converges, then $\sum{a_k^2}$ converges

Prove that if $a_k\ge0$ and $\sum{a_k}$ converges, then $\sum{a_k^2}$ also converges.  I am not far at all, new to trying to prove math expressions... anyways all that I have written is $a{_k^2}\le{a_k}$  It makes sense that if a series is convergent then squaring it would make it converge faster at least as k is getting bigger knowing $\lim\limits_{k\to \infty} a_k=0$ for a convergent series...but how would I show this in general?


I use Ubuntu 14.04 on my desktop. I am considering upgrading to 16.04 so I looked at . I downloaded a 16.04 iso file and then used Startup Disk Creator to create a bootable 16.04 USB stick.  Part way through the process I received a message: "A volume with software packages has been detected. Would you like to open it with the package manager?"  This worried me as I thought it may install 16.04 on my hard disk and not on the USB so I aborted the process.  Will answering "yes" install 16.04 on my hard disk?


It's possible to animate a change noise texture by animating the texture coordinates with a mapping node or by animating the texture space, however this only works on one axis at a time (on the other axes the texture will appear to be sliding across the object's surface).  For example, the top face has the desired effect but the other faces appear to be moving/sliding upwards:    Even with all three axes location and rotation animated it still appears to be sliding rather than statically changing.    Is there some way to make each face appear like the top face in the first gif but still be seamlessly blended with the other faces? This should work for other shapes as well.  In other words, I'm looking for a way to animate the "seed" of the texture.


'Hellburner'--looking for a sci-fi story that contained that term

I read a story--the first part of one, at any rate--years ago, and haven't tracked it down since. It started with a man been sent to a planet under attack to pose as a monk--he arrived in the middle of an assault, but still had to do penance for being late. So he wore a hair shirt, that created an agonising reaction. He was captured by the attackers (who took him for the man he was posing as), who then stood off the planet in their starships and watched as a 'hell burner' weapon tumbled out of deep space and torched the planet. The attackers then explained that they weren't responsible for the hell burner, but every time they arrived at a planet, a hell burner turned up afterwards, at shorter and shorter intervals.  As the story developed, there was some kind of time travelling dimension, and a character turned out to have his organs reversed. I may have got some details wrong, but this was the shape of it.  Anyone know this story, and the author?


I need to take the multi-line output of a program, match a string, and return the previous line of all matches.  An example of the output of the program:  $ jack_lsp -p firewire_pcm:analog-1_out         properties: input,physical,terminal, firewire_pcm:analog-2_out         properties: input,physical,terminal, firewire_pcm:analog-1_in         properties: output,physical,terminal, firewire_pcm:analog-2_in         properties: output,physical,terminal, $   I need to match, for example, 'input', and return the previous line of all matches. So in the example, the expected output would be:  firewire_pcm:analog-1_out firewire_pcm:analog-2_out   Here is what I have, but it only returns the first match:  $ jack_lsp -p | grep -B1 input | head -1 firewire_pcm:analog-1_out $   What am I doing wrong?


Alternative notations of Function Composition

In category theory, we always use many composition notation. And in computer science, we often use category theory to describe problems.  Usually, we use g ∘ f to stand the composition of "g after f"  Also, we use f ; g to stand the composition of "f before g"  But the ; is a common used syntax of line end in computer program, is there any substitutable notation of ; ?


Confusion regarding the concepts and derivation of Hydrostatic Equilibrium for a star

First and foremost I am sorry for this; in order to make the questions clear I must first upload the lecture notes from my institution $^\zeta$ for the derivation of Hydrostatic Equilibrium:          $^\zeta$ Lecture notes courtesy of Imperial College London, Astrophysics dept, 2017-2018 edition.    Firstly, in equation $(3.1)$ why is there no negative sign for $F_g$? Last time I checked, Newton's law of gravitation told us that   $$F=-\frac{GMm}{r^2}$$  Nextly, I have a conceptual problem with equation $(3.2)$; when they use the term 'pressure' I am going to assume that they are referring to the radiation pressure that is released due to nuclear fusion reactions taking place in the sun. In that formula it must be the case that $P(r) \gt P(r+\delta r)$ if this is the case then $(3.2)$ should read $$F_p=-\left(\frac{dP}{dr}\right)\delta r\,\delta A $$   Correct me if I'm wrong but Hydrogen nuclei are fused together to generate the more stable Helium and hence lots of radiation pressure acting outwards from the centre of the star. If this is correct then $P(r+\delta r)=0$, since the outside face of that cylindrical volume element in Figure $3.1$ will not 'feel' any of this radiation pressure because this pressure only acts on the inner face. What am I not understanding here?  Moving on to equation $(3.3)$, let's suppose the sign of the gravitational force in $(3.1)$ really is neglected. Does this mean that the negative sign in $(3.3)$ is due to $P(r+\delta r) \lt P(r)$ and hence $$\frac{GM(r)\rho(r)}{r^2}=-\left(\frac{dP}{dr}\right)\,?$$ I know this is the same equation as in $(3.3)$ but I have written it with the negative sign next to the pressure differential as I would like to know where this minus sign originates from. Does anyone know?  My final concern is the sign in $(3.4)$ as last time I checked $$g=-\frac{GM}{r^2}$$ and not $$g=\frac{GM}{r^2}$$  Hence, equation $(3.4)$ should read  $$\left(\frac{dP}{dr}\right)=\rho(r)\,g\,?$$     I forgot to mention that I have done some research and  is the closest derivation I could find, which, needless to say is no less helpful than the notes I have.


How does quantum world affect us and why should I care about it?

We live in a world which is much larger than quantum world. The laws of quantum physics are not valid. While I am pressing the keys on my laptop, I have 100% certainty that I am writing what I really want.   Then  how is such microscopic world going to affect me?  The quantum world is entirely different, perhaps best suited for those Aliens.   Then why should I worry about uncertainty and other stuffs happening at infinitesimally  small scale?


The array won't be deallocated here when the constructor throws, right?

This is a potential memory leak, correct? arr won't be deallocated if the constructor throws, right? I have read that the destructor won't be called in this case, but any sub objects of badType would be, however I think the array won't here because it's a raw pointer, correct?  class badType { private:     int* arr;     int myLen, myNum; public:     badType(int myLen, int aNum)     {         this->myLen = myLen;         arr = new int[myLen];          if (aNum < 100)              throw exception{ "Da number is too low" };          myNum = aNum;     }      ~badType()     {         delete[] arr;     } };


Is Darth Vader's temple on the exact spot on Mustafar where Anakin was defeated?

After watching Rogue One again, I pondered upon the location of the temple on Mustafar at which Darth Vader is seen in meditation.  As we all know, Darth Vader underwent a battle on this planet that did not end in his favor (to put it lightly).  As he is a dark side practitioner, and the dark side feeds on passion, it makes sense that he would meditate in a location where he undoubtedly had some strong emotional connection (not only was he mutilated, but he also believes he murdered his beloved just prior to this).    But it is the precise location of his temple that I am curious about.  Based on this shot from the film:    the temple is built on the top of a lavafall. During Revenge of the Sith, near the end of the Darth's battle with Obi-wan, they fight on a lavafall. It seems to make sense that he would choose to build a a temple near this location, so he could overlook the spot where his transformation took place.    Is there any evidence to support or deny the claim that this is that same lavafall?


How do I make this 'folded text' logo in Photoshop?

How can I make this logo in Photoshop? Please teach me how its possible, or give me a hint what to search for to find tutorials for similar results.    Thank you.


In a convex Quadrilateral ABCD, $\measuredangle ABC = \measuredangle BCD = 120^{\circ}$.Prove that: $ AC + BD \ge AB + BC + CD$

In a convex Quadrilateral ABCD, $\measuredangle ABC  = \measuredangle BCD = 120^{\circ}$.Prove that:    $$ AC + BD \ge AB + BC + CD$$  My attempt  Tried to use cosine formula twice' i.e ($\triangle ABC$ and $\triangle BCD$) and tried to make and inequality.But couldn't prove.


I'm looking for a closed expression (if it exists) of the following sum: $$\sum_{m=0}^{\infty} \frac{m^n}{m!}c^m$$ where $n \geq 1$ is a positive integer, and $c$ is a fixed constant. The series seems to be convergent for all positive integers $n$, but I can't see the pattern; first values are:  $$\sum_{m=0}^{\infty} \frac{m}{m!}c^m=ce^c$$ $$\sum_{m=0}^{\infty} \frac{m^2}{m!}c^m=c(c+1)e^c$$ $$\sum_{m=0}^{\infty} \frac{m^3}{m!}c^m=c(c^2+3c+1)e^c$$ But for an arbitrary $n$? I can't find any reference. Thanks!


I have taken one JFrame in which we have shown the information about our firm  there is one information(label) like:   website: www.samteksystems.com  I want that whenever I click on www.samteksystems.com it should display that website. Please help me in this.


How can I overlay a still image directly on top of a rotating image?

I have a spinning wheel that rotates and lands on a prize. The problem is, next to that wheel is a red arrow pointing at the winning prize, and that red arrow moves around a bit depending on the size and orientation of the screen because it's a responsive app.  I thought a good solution would be to overlay a still image of an arrow on top of the rotating one. I would imagine that would ensure the arrow is always pointing to the correct prize.  If I were to put the html code for that image directly next to the code for the rotating image, I know it would place it next to/under each other. How can I overlay two images in the same position?  Here is the page in question if that helps at all.    Thank you very much for any direction on how I can learn or do this.


Alternatives to Photoshop and Illustrator

I just try to move completely from Windows to Ubuntu. I am a web designer and developer, the development part is awesome in Ubuntu but I am missing the design part.  What I used to work with is Adobe Photoshop and Illustrator. Are there any good alternatives for Ubuntu available?


Dealing with categorical variables in regression

I have this categorical variable that represents the country for a person. How can I use this in regression model. If there had been less levels for a category I could have used dummy binary variables to encode them. But in the case of countries, there are more than 200 countries, so it doesn't make sense to use binary variables. What should I do?  Obviously, one of the ways would be to make the variable coarse, take continent instead of country to reduce the levels. But this is not what I want to do?  Lets suppose I have a categorical variable which is the user id. What should I do in this case?


What factors affect the rate of decay of a radioactive atom?

I saw a specific quote that made me question this : "Other atoms in the universe don't influence the rate, it's just an intrinsic property of each separate atom that it has some chance to decay." (from ) I'm assuming there are some factors that do influence rate of decay? Also assuming that statement is generally correct in a broad sense, or even technically correct because it only mentions other atoms not influencing the rate - I've no idea, why I'm asking. But there has to be some factors that influence rate of decay, even if only at a quantum level, right? I've read  amongst other answers. I understand this may not be answerable, or the answer is simply "best evidence says its random" - but that question is 3 years old, and I'm hoping maybe the consensus has changed/shifted/new concepts are being explored. I'm also curious about environmental factors. i.e. could uranium 233 decay differently (more rapidly/slowly), on average, in different settings? What causes the differences (pressure, presence of other atoms, ?) - this part I've yet to find any answer on, the others, I assume, imply a standard environment to show randomness of decay. To go further, and my apologies if my ignorance is showing, does the presence of one versus many atoms change the rate of decay (again, avg) To restate the question (title): What factors affect the rate of decay of an atom? Please comment with any improvements


In Fate, why do some male historical figures get turned into females, but not vice versa?

DISCLAIMER: My only knowledge about fate is the Fate/Zero and Unlimited Blade Works anime adaptations, as well as the Fate/Extella video game. This is something I'm genuinely curious about.  The Fate franchise is all about summoning Heroic Spirits to participate in the Holy Grail War. It is filled with fictional depictions of historical and mythical figures, such as Hercules, Achilles, King Arthur, Alexander the Great, and more.  There are many instances of turning male historical figures into female Heroic Spirits, including but not limited to King Arthur, Nobunaga Oda, Musashi Miyamoto, Francis Drake, and many more.   However, the reverse doesn't happen. Female historical figures stay female when summoned as Heroic Spirits and aren't turned into males.   Why is this? Is it for artistic reasons? Story-telling reasons?


How do I encourage Google to show a search box for my website above the site links?

While searching a particular website or product in Google, sometimes a search box appears under that website in    I've already registered my website in Google Webmaster Tools and properly submitted my sitemap XML file, but this isn't appearing for my site.  I think it is somehow related to Google Custom Search Engine (CSE). How can I get this feature for my website?


Radially symmetric charge distribution (dipole moment)

a) There's a radially symmetric charge density $\rho(r)$ centered around the origin. Determine the dipolemoment of that charge density. b) Let $\rho(r)$ be an arbitrary charge density now. Under what circumstances does the dipole moment of the displaced charge density  $\rho '(\vec{r}) = \rho (\vec{r}-\vec{b})$ differ from the one not displaced at all.  Here were my ideas so far: a) Just thinking about the situation it has to be zero, right? I mean, since there's no real dipole. But how do I show that mathematically? I was thinking of just going like this (it may be wrong): Let the charge density be $\rho (r)=kr$, then we can get the charge q by integrating: $$q=4\pi \int_0^R kr\cdot r^2dr=\pi k R^4$$ I'm looking at the charge distribution as a spherical electron cloud with radius $R$. Then, since $p=qd$ and $d$ is zero because there are no two different charges the dipole moment is zero. Is that sufficient as an answer? b) I don't know how to approach this one. My guess is that its dipole moment is also zero because we're only looking at a displacement here. Anyone got any idea? I would appreciate any advice on this.


Why is the vertical space between entries not equal in the glossary?

I am using the glossaries package and when trying to avoid linebreaks in long descriptions with the listdotted style I noticed that the vertical space between the entries is not equal for all of them.    The red line is always the same size and as you can see, sometimes the distance between entries is smaller (blue rectangle), sometimes equal. This is present in the printed page too.  Is there a specific cause for this and is there a way to fix this?


Is there even a relativistic mass or just relativistic momentum? How does one reason to prefer one over another? What is the problem with saying a hot gas will have more mass/inertia to it?


Prove $\lim_{n\to\infty} \frac{a_n}{n}$ exists for positive sequence where $a_{n+m} \leq a_n + a_m$

Let $\{a_n\}_{n=1}^\infty$ be a positive sequence of real numbers such that $a_{n+m} \leq a_n + a_m.$  Prove that $\lim_{n\to\infty} \frac{a_n}{n}$ exists by showing that $\lim_{n\to\infty} \frac{a_n}{n} = \inf_{n \geq 1} \frac{a_n}{n}.$   A similar question has been posted previously, see  , and I have found that this is the general result of "Fekete's Subadditive Lemma" for sequences, but I am unhappy with the few proofs I've seen.  Perhaps the clearest one I have found is  , but this seems a bit tricky for what is expected on this qualifier question.  We are given a hint "treat $\liminf$ and $\limsup$ separately".  Does anyone know of a more direct way to show that this limit exists?


Ubuntu 14.04 installed on Samsung 850 Pro 512GB results in data corruption

In short: Does anybody know why running Ubuntu 14.04.3 LTS on Samsung 850 Pro 512GB drive results in corrupted file system and random files disappearing?  Here is the long story: In 2013 I got System76 laptop and I paired it with Plextor M5M 256GB (PX-256M5M) SSD. For almost two years this system was rock solid. About 3 weeks ago I replaced the SSD with new Samsung 850 Pro 512GB (MZ-7KE512) and sense then I have been experiencing stability issues. At beginning was small crashes or screen corruptions, but week after week the problem become progressively worst. My investigation quickly identified a lot of corrupted files and some just missing. After I searched the Internet I found that there are at least two main issues:   Samsung 8xx drives do not properly support queued TRIM command execution and have been blacklisted by the Linux kernel developers . But I'm not sure if that patched is back-ported to 3.16.0-53-generic #72~14.04.1-Ubuntu SMP Fri Nov 6 18:17:23 UTC 2015 x86_64 GNU/Linux kernel. Algolia worked with Samsung to identify a bug in Linux kernel related to use of Samsung 850 Pro 512GB in RAID0 configuration.  (I'm not using any RAID). Looks like Samsung provided a patch , but I'm having hard time determining if this patch is accepted by kernel developers. And if it ever going to make it into Ubuntu kernel.   For now, as workaround, I have disabled trim by removing execution flag from /etc/cron.weekly/fstrim until I find better solution. At the same time Ubuntu explicitly white-lists Samsung drives in /sbin/fstrim-all. Am I the only one with this issue?


How can we draw a line between two distant points using a finite-length ruler?

We want to join by a line two distinct points $A$ and $B$. We have only a ruler of length $l>0$ and a pen. If $AB>l$ how can we do this?


Why is my palindrome checker always evaluating to true? I tried to debug, and my results are different

Just trying to check if the input is a palindrome. Code keeps evaluating to true, but upon debugging, my answers are false;  Maybe I'm confused with == vs .equals?  class Solution {     public boolean isPalindrome(int x) {         int orig = x;         String result = x + "";         char[] original = result.toCharArray();         String compare = "";          if(orig < 10) {             return true;         }          for(int i = original.length-1; i >= 0; i--) {             compare += original[i];           }          //System.out.println(result); -121         //System.out.println(compare); 121         if(result == compare) {             return true;         } else {             return false;         }        }  }


I am Bangladeshi passport holder. Travelling to Canada from Abu Dhabi via Zurich or Munich or Frankfruit do I need transit visa in those countries? Since I have Canada visa and will fly from Abu Dhabi to Toronto via Zurich or Munic without Sengen visa, is there any problem as I am Bangladeshi Passport holder?


According to my Windows Explorer, I'm running out of space on my C: drive, with only 22 GB left out 517 GB.  However, I ran  and , each of these shows that the C: drive only takes up just less than 260 GB.  Here's an image of all three of them together.    Why is so much space (~235 GB) unaccounted for, and where can I being looking for the spacing-hogging culprits?  I'm not sure what to do.


I want to prove that those inequalities are true for $a, b ∈ R$: $$ |a + b| ≤ |a| + |b| $$ $$ ||a| − |b|| ≤ |a − b| $$ $$ |a − b| ≤ |a − c| + |c − b| $$  Now I can see that they are true, and I could argue it with words, but how would you prove it on paper using mathematic notation?


What do you call it when someone repeats part of a sentence?

What do you call it when somebody repeats part of a sentence?  For example:  'I like walking I do'


Minkowski metric -- why does it follow from the constancy of the speed of light?

In all the sources I’ve been able to find, the Minkowski metric appears ad hoc, or is defined analogously to the euclidean metric. I’d love to see an argument why this metric (time coordinates positive, space coordinates negative) must follow from the constancy of the speed of light. It is clear that the Minkowski metric is preserved under the hyperbolic transformation of space-time, but likely others are as well. Why this particular metric and not something else.  Consider the determinant function of an n by n matrix. It has a god awful mathematical form involving the sum of n ! terms. Yet all you need to get the (unique) formula are a few postulates — the determinant of the identity matrix is 1, the determinant is a linear function of its rows (or its columns), interchanging any two rows of the determinant reverses the sign of the determinant, etc. etc. This basically determines the (unique) formula of the determinant. I’d really like to see the Minkowski metric come out of something like that.


I'm fairly new to Ubuntu, and I'm trying to get it working on a computer of mine. It's an older PC that I've had windows 7 on. Currently, when I boot to the desktop, within a few moments, the screen shows nothing but small horizontal bars everywhere. Using graphic failsafe mode is the only way I can do anything within it at the moment. So I'm trying to install the appropriate NVIDIA driver downloaded from their site, which is a .run file.  I got a few errors at first concerning the x server running, but was able to overcome them by using Cntl + ALt + F1, sudo service lightdm stop  Now, when I try:   $ sudo ./NVIDIA.run --kernel-source-path=/usr/src/linux-headers-3.16.0-33 ERROR: Neither the '/usr/src/linux-headers-3.16.0-33/include/linux/version.h' nor the '/usr/src/linux-headers-3.16.0-33/include/generated/uapi/linux/version.h' kernel header file exists.   The most likely reason for this is that the kernel source files in '/usr/src/linux-headers-3.16.0-33' have not been configured.   I used tab when typing the path so that it would complete it for me.  Here's the full log:  nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Mon Mar 30 21:38:44 2015 installer version: 304.125  PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin  nvidia-installer command line:     ./nvidia-installer     --kernel-source-path=/usr/src/linux-headers-3.16.0-33  Using: nvidia-installer ncurses user interface -> License accepted. -> Installing NVIDIA driver version 304.125. -> Running distribution scripts    executing: '/usr/lib/nvidia/pre-install'... -> done. -> The distribution-provided pre-install script failed!  Continue installation anyway?     (Answer: Yes) -> Performing CC sanity check with CC="cc". -> Performing CC version check with CC="cc". -> Using the kernel source path '/usr/src/linux-headers-3.16.0-33' as specified by the '--    kernel-source-path' commandline option. ERROR: Neither the '/usr/src/linux-headers-3.16.0-33/include/linux/version.h' nor the     '/usr/src/linux-headers-3.16.0-33/include/generated/uapi/linux/version.h' kernel header file     exists.  The most likely reason for this is that the kernel source files in '/usr/src/linux- headers-3.16.0-33' have not been configured. ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for   details.  You may find suggestions on fixing installation problems in the README available on  the Linux driver download page at www.nvidia.com.


Regular expression for adding a space between dot and uppercase letter?

I am working with a dataset that consists of transcripts and summaries. I want to compare sentences to assign labels to them. The summaries are literally some sentences of the transcript, but there is no space after a sentence. This prevents me from using a sentence tokenizer or doing a .split() operation. One example summary:  TimeWarner said fourth quarter sales rose 2% to $11.1bn from $10.9bn.For the full-year, TimeWarner posted a profit of $3.36bn, up 27% from its 2003 performance, while revenues grew 6.4% to $42.09bn.Quarterly profits at US media giant TimeWarner jumped 76% to $1.13bn (Â£600m) for the three months to December, from $639m year-earlier.However, the company said AOL's underlying profit before exceptional items rose 8% on the back of stronger internet advertising revenues.Its profits were buoyed by one-off gains which offset a profit dip at Warner Bros, and less users for AOL.For 2005, TimeWarner is projecting operating earnings growth of around 5%, and also expects higher revenue and wider profit margins.It lost 464,000 subscribers in the fourth quarter profits were lower than in the preceding three quarters.Time Warner's fourth quarter profits were slightly better than analysts' expectations.   import re summary = article_df.iloc[0,3] print(summary) summary = re.sub(r'([A-Z].)', r' \1', summary) summary   Resulted in:    Time Warner said fourth quarter sales rose 2% to $11.1bn from $10.9bn. For the full-year,  Time Warner posted a profit of $3.36bn, up 27% from its 2003 performance, while revenues grew 6.4% to $42.09bn. Quarterly profits at  US media giant  Time Warner jumped 76% to $1.13bn (Â£600m) for the three months to  December, from $639m year-earlier. However, the company said  AO L's underlying profit before exceptional items rose 8% on the back of stronger internet advertising revenues. Its profits were buoyed by one-off gains which offset a profit dip at  Warner  Bros, and less users for  AO L. For 2005,  Time Warner is projecting operating earnings growth of around 5%, and also expects higher revenue and wider profit margins. It lost 464,000 subscribers in the fourth quarter profits were lower than in the preceding three quarters. Time  Warner's fourth quarter profits were slightly better than analysts' expectations.   It results in extra spaces after some capital letters. However, it does not take decimal points into account, which is what I want. How can I make sure that it only adds a space between a dot and an uppercase letter?


How to improve the performance of this select query?

I have two tables: TABLE1 and TABLE2.  And I am running this select query to fetch the data. It takes long time to run:  SELECT TABLE1.* , TABLE2.COL1 , TABLE2.COL4 FROM TABLE1, TABLE2      WHERE TABLE1.COL1 IN ('1','TEXT','HO TED')        AND TABLE1.COL2= 1800   AND TABLE2.COL1 = 10519198        AND TABLE1.COL3>= 100   AND TABLE1.COL4= TABLE2.COL2   AND TABLE2.COL3=('TEXT')   How could I improve the performance of this select query? Does too many AND affect my performance?


How to overcome burn problems or buy installation disk?

I have tried and tried to download and burn Ubuntu 13.04 without success. The first time took 18 hours. Where and from whom can I purchase a installation disc in Atlanta, Georgia.


Do I need visa for a long layover in Korea?

I'm a Filipino working in Canada as a temporary foreign worker. I'm going back to Philippines this coming Dec and my flight have to stop over in Korea for 16 hours.  I would like to see my husband who is currently in Korea.  Can I go out from the airport to see my husband without a Korean visa?


A dollar amount $\${-}67.9{-}$ is divisible by 72. What is this number?

A client buys 72 turkeys. On the receipt, 2 digits are missing, the first and the last. So, the total price is $\${-}67.9{-}$. Find a way to make the price of each turkey round at the second digit without trial-and-error method.  So, the answer is obviously $\$5.11$/turkey, so $\$367.92$ total. I found that with with 2-3 trial-and-error.  I bypassed his problem by using python and made a script that tries every combination and assures it is divisible by 0.01.   Please help me find a mathematical way of solving this problem.


expectation of maximum of iid random variables from normal distribution.

1) How to find expectation of max of random variables , i.e :  $\mathbb{E}[max(x_1,x_2,\dots,x_n)]$ where $x$ are IID random variables from $\mathcal{N}(\mu,\sigma^2)$.   I know that CDF is $F(x)^n$ and PDF is $nF(x)^{n-1}f(x)$. I have also seen simplifications for uniform and exponential distributions but not for Gaussian distribution.   2) In general, How to solve      $\int_{x=0}^{\infty} [nx F(x)^{n-1}f(x)] dx$


How can I prove Zorn's lemma is equivalent to Axiom of choice?


C# TimeSpan gives 0 as TotalMilliseconds

I was trying to "benchmark" two nearly identical loops. When I inspect them one by one the subtraction is without any hiccups, and the TimeSpan gives back the correct numbers as the TotalMilliseconds. When I benchmark the two loops together however the first subtraction gives back a number between 3 - 4 (which should be right), and the second one always gives back 0. What am I doing wrong? Thanks!  class Program {     static void Main(string[] args)     {         Console.WriteLine(":: Simple for ::");          var a = 0;         var start = DateTime.Now;          for (int i = 0; i < 10; i++)         {             a += i;         }          Console.WriteLine("Elapsed time: {0} ms", (DateTime.Now - start).TotalMilliseconds); // 3 - 4 ms         Console.WriteLine(":: Fancy for ::");          a = 0;         start = DateTime.Now;          foreach (var i in Enumerable.Range(0, 9))         {             a += i;         }          Console.WriteLine("Elapsed time: {0} ms", (DateTime.Now - start).TotalMilliseconds); // 0 ms     } }


Continuous function with $\lim_{x \rightarrow + \infty}f(x)=0$ and $\lim_{x \rightarrow - \infty}f(x)=0$ is uniformly continuous

Suppose that $f: \mathbb{R} \rightarrow \mathbb{R}$ is a continuous function with $\lim_{x \rightarrow + \infty}f(x)=0$ and $\lim_{x \rightarrow - \infty}f(x)=0$. Show that $f$ is uniformly continuous on $\mathbb{R}$  My attempt: Take a random $\epsilon >0$. As  $\lim_{x \rightarrow + \infty}f(x)=0$, there exists a $M_{1} \in \mathbb{R}$ so that for every $x \in \mathbb{R}$ with $x > M_{1}$ it holds that $|f(x)-0|< \epsilon$. As  $\lim_{x \rightarrow - \infty}f(x)=0$, there exists a $M_{2} \in \mathbb{R}$ so that for every $x \in \mathbb{R}$ with $x < M_{2}$ it holds that $|f(x)-0|< \epsilon$. Now take $M \geq \max \{|M_{1}|,|M_{2}|\}$. Then surely will $|f(x)|< \epsilon$ for every $x \in \mathbb{R} \backslash [-M,M]$.  Now I'm not sure how to go on from this. I do know that $f$ is uniformly continuous on the interval $[-M,M]$ because it is continuous. But how can I expand this to $]- \infty,+\infty[$ ?


Is there a name for the abbreviated syntax used in signs etc?

For instance, a train sign might say South bound trains this platform rather than Use this platform to take a Southbound train.  There is an interesting lack of articles and sometimes verbs, is there a name for this style (or a reason for it)?


"Underfull \hbox in paragraph 58--68" warning

I have become relatively familiar with most commands and what-not however I CANNOT seem to actually troubleshoot these darn "underfull" messages. If anyone can look at this bit of text and help me begin to understand these warnings I would greatly appreciate it.   This is lines 57-73 with the underfull \hbox (badness 10000) in paragraph at lines 58-68 message.  \end{center}     \indent\textbf{Identity Law:}\\     If $\alpha$:A$\rightarrow$B, then\\     I$_B\circ\alpha$=$\alpha$ and $\alpha$ $\circ$ I$_A$=$\alpha$\\     \indent\textbf{One-to-One \& Onto functions (\& Bijections):}\\     We say that $\alpha:A\rightarrow B$ is \textbf{1-to-1}(injective) $\iff\alpha$(a$_1$)=$\alpha$(a$_2$)$\Rightarrow$(a$_1$)=(a$_2$)\\     \\We say that $\alpha$:A$\rightarrow$B is \textbf{onto} (surjective) if for each element in the codomain B $\exists a \in A$ such that $\alpha$(a)=b.\\     \textbf{Bijection:} $\alpha$:A$\rightarrow$B is both 1-to-1 \& onto.\\     \textbf{\underline{Theorem:}} A map $\alpha$:A$\rightarrow$B is a bijection if and only if there exists a map $\beta$:B$\rightarrow$A such that $\beta\alpha$=I$_A$ and $\alpha\beta$=I$_B$.\\     \textbf{Remark:} In this event, the function $\beta$ is unique.     \textbf{Proof:}     \begin{center}         Suppose B':B$\rightarrow$A is another such function.\\         Then: B'=I$_A\circ$B'=$\beta$($\alpha$B')=$\beta\circ$I$_B$=$\beta$\\         \textbf{Notation:} we denote the unique function $\beta$ in the theorem by a$^{-1}$, called the inverse of the bijection of $\alpha$.\\         $\alpha^{-1}\alpha$=I$_A$ \& $\alpha\alpha^{-1}$=I$_B\square$\\     \end{center}


Adjusting the signature between "Sincerely and Name"

I want to placing the signature between "Sincerely and Name". Using the latex  commands French Cursive: {\cursive\setul{0.1ex}{}\ul{~~Mickly~~}}  \documentclass[11pt]{letter} % Default font size of the document, change to 10pt to fit more text  \usepackage{newcent} % Default font is the New Century Schoolbook PostScript font \usepackage{soul}% for the underlining \usepackage[doublespacing]{setspace}% just to set the samples further apart  \usepackage{emerald}% for 1-4 \usepackage{frcursive}% for 5 \usepackage{inslrmin}% for 6  \usepackage[T1]{fontenc}  %\usepackage{helvet} % Uncomment this (while commenting the above line) to use the Helvetica font  % Margins \topmargin=-1in % Moves the top of the document 1 inch above the default \textheight=8.5in % Total height of the text on the page before text goes on to the next page, this can be increased in a longer letter \oddsidemargin=-10pt % Position of the left margin, can be negative or positive if you want more or less room \textwidth=6.5in % Total width of the text, increase this if the left margin was decreased and vice-versa  \let\raggedleft\raggedright % Pushes the date (at the top) to the left, comment this line to have the date on the right  \begin{document}  %---------------------------------------------------------------------------------------- %   ADDRESSEE SECTION %----------------------------------------------------------------------------------------  \begin{letter}{Professor \\ Institut \\ University\\ City, Country 123456}  %---------------------------------------------------------------------------------------- %   YOUR NAME & ADDRESS SECTION %----------------------------------------------------------------------------------------  \begin{center} \large\bf Mick Fre \\ % Your name \vspace{20pt} \hrule height 1pt % If you would like a horizontal line separating the name from the address, uncomment the line to the left of this text Street \\ City, Country 123456 \\ 111-333-111 % Your address and phone number \end{center}   \signature{Name} % Your name for the signature at the bottom  %---------------------------------------------------------------------------------------- %   LETTER CONTENT SECTION %----------------------------------------------------------------------------------------  \opening{Respected Professor:}  JD: {\ECFJD\setul{0.1ex}{}\ul{~~Mickly~~}}  Skeetch: {\ECFSkeetch\setul{0.1ex}{}\ul{~~Mickly~~}}  Teen Spirit: {\ECFTeenSpirit\setul{-0.1ex}{0.3pt}\ul{~~Mickly~~}}  Tall Paul: {\ECFTallPaul\setul{0.15ex}{}\ul{~~Mickly~~}}  French Cursive: {\cursive\setul{0.1ex}{}\ul{~~Mickly~~}}  Insular Minuscule: {\iminfamily\setul{0.1ex}{}\ul{~~Mickly~~}}  \closing{Sincerely yours,} \end{letter} \end{document}


Perform this integration: $\int\frac{t}{t^3 + 1}$

I am solving the following question  $$\int\frac{\sin x}{\sin^{3}x + \cos^{3}x}dx.$$  I have been able to reduce it to the following form by diving numerator and denominator by $\cos^{3}x$ and then substituting $\tan x$ for $t$ and am getting the following equation. Should Iis there any other way use partial fraction to integrate it further or   $$\int\frac{t}{t^3 + 1}dt.$$


If $X$ is a connected subset of a connected space $M$ then the complement of a component of $M \setminus X$ is connected

I have an exercise found on a list but I didn't know how to proceed. Please, any tips?  Let $X$ be a connected subset of a connected metric space $M$. Show that for each connected component $C$ of $M\setminus X$ that $M\setminus C$ is connected.


No Windows boot option after installation of Ubuntu

Here is the output of the lsblk command my issue was not able to resolve with the above command stated.


I have to find $u,v\in \mathbb Z$ such that $231u+45v=1$. By Euclide algorithm,  \begin{align*} 231&=5\cdot 45+6\\ 45&=6\cdot 7+3\\ 7&=3\cdot 2+1 \end{align*} The first equation gives $$6=231-5\cdot 45.$$ We put this in the second equation, and we get $$45=(231-5\cdot 45)\cdot 7+3\implies 3=36\cdot 45-7\cdot 231.$$ Now I replace $3$ in the last equation, and obtain $$7=2\cdot (36\cdot 45-7\cdot 231)+1\implies 7-72\cdot 45+14\cdot 231=1,$$  but the 7 disturbs me, did I do my algorithm wrong ?


Question Based On Galileo's Law Of Falling Bodies

Galileo discovered that the distance fallen is proportional to the square of the time it has been falling.Why is it proportional to the square of the time and not just time? i.e $d \propto t^2$ why not just $d \propto t$  I know this question involves some common sense which i'am not able to use for some reason!


Prove that $\sum_{r=0}^{n} r \binom{n}{r}^2 = \frac{n}{2} \binom {2n}{n}$

My attempt $$\sum_{r=0}^{n} r \times \frac nr \left[\binom {n-1}{r-1} \right]^2$$ $$=n\sum _{r=0}^{n} \left [\binom {n-1}{r-1}\right]^2$$ The square on the binomial coefficient is throwing me off, otherwise it would have been easier to proceed. I don’t know what to do with that square. Edit: As pointed out in the comment, i managed to find out $$\sum_{r=0}^n (\binom nr )^2 = \binom {2n}{n}$$ But using this in the above expression isn’t giving me the right answer. Am I supposed to make a modification to the limits in the sigma function?


How to change desktop background to solid colors in Ubuntu 20. Currently I can only found change picture in Settings->Background


comparison of mean a subpopulation with entire population

How can I compare mean of subpopulation with mean of entire population? I want to compare mean of specific method with mean of all methods in a proficiency testing(PT) program.  A PT program is a program in which an organisation which executes PT, sends samples to multiple participants and ask them to measure some characteristics in sent sample. After a deadline participants send their results to PT provider. Provider analyse results in all and different groups. Groups are those who used same methods for measuring that characteristic.


I recently upgraded my os from Mint 17.3 to Mint 18.1. Now dual screen doesn't work. I tried to install newest fglrx drivers from  but X server doesn't boot.  I tried to install AMDGPU-Pro but I simply have Unsupported OS.  Here is more information about my card :   lspci -v | grep AMD 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X] (prog-if 00 [VGA controller]) 01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]   Is there a solution? Do I have to downgrade? I only want to have dual screen and I don't care about gaming.


I have a function that depends on the internet and downloads files, however sometimes the download time is too long or the sending request processes is failing.I wanted to know how can I set some-thing like a timer for the function, and if it exceeds the time (lets say a minute) to rerun the function from the beginning.


Does Stack Exchange merge edit branches?

Update: The  is not a duplicate to this question for a simple reason: the suggested duplicate does not explain how StackExchange deals with conflicting edits in the queue. And the fact that the suggested duplicate references a queue that can be filled up makes me begin to doubt the accepted answer to my question. To clarify the answer to my question in light of the linked suggested duplicate: is the review queue in question filled up by total edits to all questions, or number of edits to a given question. If the latter, how many edits fills up this queue to a single question, and how are conflicting suggested edits to a given question handled? Note: this question is very much about implementation: I want to know how StackExchange internally handles suggested edits. For some reason someone edited my question to remove the implementation tag. I am re-adding it in light of the suggested duplicatee.  Perhaps this is a duplicate, but I can't find the answer. SE uses review queues to approve suggested edits. What happens when more than one edits are suggested before any are approved? Is the result a branch or does the new edit edit the previously suggested edit? And if it is a branch, does SE merge the edits when they are both approved?


Sum Values in One Range Based on Criteria in Another

I have a simple spreadsheet, two columns "Amount" (col Q) and "Account" (col O).  I want to get the sum of the "Amount" column where the corresponding "Account" forum equals "Paypal".  This is as far as I can get!  =SUM(Q:Q)*(O:O="Paypal")


Making a HiLo program~ having trouble getting the game to repeat

so, for my Java class I need to make a HiLo game. I figured the game out on my own, but I wanted to take it a step further, and after the user completes the game(guesses the right number) I want to ask them if they would like to play again. The problem is, I can't seem to figure out exactly how. I have tried several things and at the moment I'm trying to get them to enter either yes or no to continue playing the game. If someone could help me figure out what I'm doing wrong and explain it to me, that would be great. Thanks!      Random generator = new Random();     Scanner scan = new Scanner(System.in);     int answer, guess;        answer = generator.nextInt(101);     System.out.println("Lets play a game. Guess the number(0-100): ");     guess = scan.nextInt();      while (guess != answer){         System.out.println("Wrong guess.");         if (guess > answer){             System.out.println("Your guess was higher than the answer. Guess again: ");         }         else{             System.out.println("Your guess was lower than the answer. Guess again: ");         }         guess = scan.nextInt();     }     if (guess == answer)         System.out.println("You got it! The number was " + answer);      //after initial game finishes, we ask if they want to play again.     System.out.print("Want to play again? ");     String again = scan.nextLine();      while (again != "no"){     System.out.println();     System.out.print("Great! lets play again.");     System.out.println("Take a guess(0-100 inclusive): ");     guess = scan.nextInt();     while (guess != answer){         System.out.println("Wrong guess.");         if (guess > answer){         System.out.println("Your guess was higher than the answer. Guess again: ");     }         else{         System.out.println("Your guess was lower than the answer. Guess again: ");     }     guess = scan.nextInt();      if (guess == answer)         System.out.println("Your got it! The number was " + answer);      System.out.println("Want to play again? (0 for no, 1 for yes): ");     again = scan.nextLine();     }     }     System.out.println("Thanks for playing!"); }   }


What oil or fat to use for different purposes?

I understand that one of the main reasons to use different kinds of fat or oil is the temperature at which it burns, e.g. an extra-virgin olive oil to fry a steak wouldn't work. Taste is also a very important aspect. Can you give a list of the most commonly used oils/fats and what they are used for?


I just installed MacTeX and cannot get a new .cls to run correctly

I'm new to LaTex so forgive me if I use some incorrect language here. I'm trying to install a new .cls file from AIAA and have read from the LaTeX wiki that .cls files should go under Users/username/Library/texmf/, however when I go to 'Library' I don't see a sub folder labeled 'texmf'. I have installed the latest version of MacTeX.  Is there another location I should place the .cls file in my directory for it to run properly? This is the error I get when I try to run it now  ! LaTeX Error: File `new-aiaa.cls' not found.Type X to quit or  to proceed,or enter new name. (Default extension: cls)Enter file name:! Emergency stop. \usepackage


How can I delete a file with the name "*"?

Someone who isn't me ran dd if=/dev/zero of=* iflag=fullblock,count_bytes count=200G, so now there's a 200gb file taking up space on my filesystem. Is there a way to delete it without running rm * ?


Does anybody know a nicer expression for the sum $\sum_{i=0}^{k} \binom{n}{i} \binom{n-i}{k-i}$?


is it possible for two fields with the same characteristic to not be isomorphic?

I know there is a long list of invariants, but is there a proof or theorem that explains two fields with the same characteristic are isomorphic?


My sugar daddy is threatening to get me in trouble because he has my ssn and all my personal information is this even possible if so what do I do

We exchanged phone numbers and all personal information and If I don’t give him what he wants he said he could get me in major trouble what do I do I can’t keep doing this? How do I know if this is real


Can a university revoke one's degree for his minor misconduct?

I don't mean misconduct that will make him get expelled or miss his academic requirement. He will have received sanction like making an apology or suspension for a month if the university finds it out earlier. But the student now has graduated and will not be back. Can the university still do something to him?


Which tense to use in an academic paper when referring to past research?

I am writing a paper in mathematics.   Stone theorems have a long history. B [B78] proved the stone theorem for the B model. C and D [CD14] not only prove a stone theorem for the cake process in random environment, but also have a nice overview of existing results.  (here B, C and D are some names, and 'stone theorem' and 'the cake process' also represent something else, but it is not important for the structure)  Question: is it ok to use a past tense in the first sentence which refers to 1978, but use a present tense in the second sentence which describes something that happened relatively recently, in 2014?


How to show that a multivariable function is not differentiable?

How would I show that $$f(x,y) = \frac{2xy}{x^2 + y^2}$$  is not differentiable at the origin?   Is it enough to show that as the function tends to the origin along the paths $y = x$ and $y=2x$ that we get different limits and hence the function is not continuous?


After switching from 18.04 to 20.04, I noticed that the asterisk thing doesn't work.  For example: If I want to remove all nvidia packages, I type in sudo apt remove *nvidia* and apt removes any package that contains the string nvidia. But when I try to do it in 20.04, it doesn't work. Apt says package not found. What could be the problem here?


If you scroll down on the Ask Question page you get a 'footer overflow' as seen below:


I have method which returns List of objects, I m facing a problem while fetching a data from list, I m getting null pointer exception when i am trying to fetch the data.  method which returns List:  public List <EstimationResivion> getEstimationRevision(double rev_id){  List<EstimationDetailRevision>  estDetail=estDetailRev(rev_id); List<EstimationPanelRev> estPanelrev=estPanelRev(rev_id); List<EstimationPannelDetailRevision>   estimationpaneldetailrev=estPanelDetailRev(rev_id); List<EstimationResivion> estRev=estRevision(rev_id);      EstimationResivion ed= new EstimationResivion();     ed.setEstimationdetailRev(estDetail);     ed.setEstimationpanelRev(estPanelrev);     ed.setEstimationpaneldetailRev(estimationpaneldetailrev);      System.out.println("Size before: "+estRev.size());     estRev.add(ed);      return estRev;     }   estDetailRev code:  private List<EstimationDetailRevision> estDetailRev(double d){      return getJdbcTemplate().query("SELECT * FROM estimation_detail_rev WHERE rev_id=?",  new Object[] {d }, new EstimationDetailRevRowMapper()); }   estRevision code  private List<EstimationResivion> estRevision(double d){      return getJdbcTemplate().query("SELECT * FROM estimation WHERE est_revision=?",  new Object[] {d }, new EstimationRevRowMapper());  }   estRevision will return list of List<EstimationResivion> which i am storing in estRev.  code from where i am calling getEstimationRevision  and trying to fetch data from list  public void getRevision(){ double d=0; List<EstimationResivion> est=estimationdao.getEstimationRevision(d);  for(EstimationResivion er:est){     System.out.println(er.getEstContactPerson());     System.out.println(er.getEstCustomer());     System.out.println(er.getRevId());     // epd=er.getEstimationpaneldetailRev();      List<EstimationDetailRevision>  edr=er.getEstimationdetailRev();     for(EstimationDetailRevision estimaitonDetail:edr){          estimaitonDetail.getCompCategory();         estimaitonDetail.getCompMake();     }  }   I am getting null value when i call er.getEstimationdetailRev(); if i specify the index i am able to getdata something like this:  List<EstimationDetailRevision>  edr=est.get(64).getEstimationdetailRev();   My question is how can i fetch data without specifying index ?


Set the same height of the rectangle with different splits in tikz

I posted the same question in . I am not able to get the figure with two nodes the same height (10 cm), when they are rectangles split in different number of parts. It appears when the object is split in more parts the total height, apparently, increases. How to fix this?  The reproducible example and the actual output is on the .  \documentclass[a4paper]{scrbook} \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry} \usepackage[utf8x]{inputenc}  \usepackage{caption} \usepackage{latexsym} \usepackage{amssymb} \usepackage{amsmath} \usepackage{subcaption}   \usepackage{calc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows,positioning,shapes,calc,arrows}  \newcommand\Textbox[2]{%     \parbox[c][#1][c]{2.3cm}{\centering#2}}  \begin{document}  \begin{figure}     \begin{subfigure}[b]{0.32\textwidth}         \centering         \resizebox{\linewidth}{!}{          \begin{tikzpicture}         \node (h1) {\textbf{Text I}};         \node[draw,         align=center,         text width=2.5cm,         %minimum height=7cm,         draw=red!50,         rectangle split,          rectangle split parts=3, below of= h1,yshift=.5cm,         rectangle split part fill={gray!30, blue!20, green!15},         anchor=north east]{\textbf{Tit A}             \nodepart{two}\Textbox{6.7cm}{Cir 1\\67\% }              \nodepart{three}\Textbox{3.3cm}{Cir 2\\33\%} };         \node[draw,         align=center,         text width=2.5cm,         %minimum height=7cm,         draw=red!50,         rectangle split,          rectangle split parts=4, below of=h1,yshift=0.5cm,         rectangle split part fill={gray!30, blue!15, green!15,green!30},         anchor=north west]{\textbf{Tit B}             \nodepart{two}\Textbox{4.6cm}{Cir 1\\ 46\%}               \nodepart{three}\Textbox{3cm}{Met \\30\%}               \nodepart{four}\Textbox{2.4cm}{Let\\24\%} };         \end{tikzpicture}         }     \end{subfigure}     \begin{subfigure}[b]{0.32\textwidth}     \centering     \resizebox{\linewidth}{!}{         \begin{tikzpicture}         \node (h1) {\textbf{Text II}};         \node[draw,         align=center,         text width=2.5cm,         %minimum height=7cm,         draw=red!50,         rectangle split,          rectangle split parts=3, below of= h1,yshift=0.5cm,         rectangle split part fill={gray!30, blue!20, green!15},         anchor=north east]{\textbf{Tit A}             \nodepart{two}\Textbox{3.3cm}{Part 1\\33\% }              \nodepart{three}\Textbox{6.7cm}{Part 2\\67\%} };         \node[draw,         align=center,         text width=2.5cm,         %minimum height=7cm,         draw=red!50,         rectangle split,          rectangle split parts=5, below of=h1,yshift=0.5cm,         rectangle split part fill={gray!30, blue!15, green!15,green!30,yellow!15},         anchor=north west]{\textbf{Tit B}             \nodepart{two}\Textbox{3.3cm}{Cr1 \\ 33\%}               \nodepart{three}\Textbox{2.5cm}{Cr2\\25\%}               \nodepart{four}\Textbox{2.2cm}{Cr3\\22\%}             \nodepart{five}\Textbox{2.0cm}{Cr4\\20\%} };         \end{tikzpicture}     }     \end{subfigure}  \end{figure}  \end{document}


Confused about Java passing methods (by value or reference)

guys, Please, can you clarify something for me?  As i understand (please correct me if i am wrong), when i pass the variables to a method or class i'm passing by value, isn't it?  if it's true, then why does Java has method .clone()?  Why do i ask this question, because i am very confused...here is the code: if i pass variables using the following code and then modify them inside the dialog, the original values (outside) are also changed.  DialogChoosePayment mDialogChoosePayment = new DialogChoosePayment(mContext,  (ArrayList<Payment>) defaultValues.getPayment(), (ArrayList<Payment>) selectedValues);                 mDialogChoosePayment.show();   But, if i use the following one, then the variables values (Original variables from outside) are not changed.  DialogChoosePayment mDialogChoosePayment = new DialogChoosePayment(mContext,  (ArrayList<Payment>) defaultValues.getPayment().clone(), (ArrayList<Payment>) selectedValues.clone());                     mDialogChoosePayment.show();   Please, explain it to a newbie =)


Unable to find Skype chat history on Windows 10

I'm using Skype (not for Business) on Windows 10. I want to export my chat logs to a text file. I read  and other posts which say I should look in %appadata%\Skype.  But all this folder contains is RootTools\roottools.conf. There is no user folder in there. Where are my chat logs?


Statement to determine the type of an object in C++

Is there a statement s_type which allows to determine the type of an object in C++?   E.g.  s_type(int a);      // int s_type(&a);         // int*


Files greater than 1 GB and older than 6 months

I want to find files which are greater than 1 GB and older than 6 months in entire server. How to write a command for this?


Guys what are the best Online resources for learning Compiler Design ?  Would Perl be a viable language to write a Compiler ?


Why disable Fast Boot on Windows 8 when having dual booting?

Why is everybody keep mentioning to disable Fast Boot on Windows 8 if you have installed alongside Ubuntu? Is it something that is recommended only for UEFI machines or is it a suggestion for Legacy BIOS machines as well? Is it because it makes the Windows partition inaccessible from Linux or there is another more serious reason to disable it?


How can you duplicate weapons in Borderlands 2?

I want to get 2 identical Unkempt Harolds for my Gunzerker, and I do not want to Tourge token grind. I have one already, but I want to get another. How would I duplicate with the newest version of PC BL2?


root login authentication failure, how to use sudo?

My main problem is that I cannot use sudo. My root account is locked using sudo passwd -dl root.  I have two users on my machine. root and admin, admin does not have su permission. When I try to use sudo on admin user, it says that admin is not in the sudoers file.  When I try to use su while logged in admin user  su: Authentication failure   and when I try to use sudo  admin is not in the sudoers file.  This incident will be reported.   can I unlock my root user back?


Ban ImageShack images because they are reusing old URLs for advertising

There's a very popular topic on Stack Overflow's Meta asking to . This was created because ImageShack deletes old images to free up server space, making images within older posts fail to load.  Unfortunately the situation is much worse than just deleting; it seems they're reusing old URLs for advertising purposes. In the post here about  I've just had to edit out the ImageShack images from  separate  because they've been reused as advertisements:        Can we block ImageShack across the entire Stack Exchange network?


What lens is compatible with Nikon D90 for birding?

I own Nikon D90 with a 18-105mm kit lens. I have been looking for a suitable lens for birding with D90. According to Nikon support  would work with D90. But I guess 300mm is not enough for birding. So what alternative do I have?


What would happen if I put a 2400mhz ram on a E5 2620 v3 which supports only a maximum of 1866 MHz?! I read that that would work but CPU could only reach its maximum, but is there any exception?


I would like to get a laptop, mainly to use in school and extracurriculars. While I can save up with my job, it would be much easier to finance the laptop instead, since I'm saving up for other things as well. At 15, is it possible for me to finance the laptop, or anything else for that matter? I would assume not, for legal reasons, but am asking just to be sure. Thank you!


Using strtotime() and update_post_meta not saving

I would like to take a date entered in a meta box field, & convert it into a Unix timestamp (dd/mm/yyyy) and save it in the wp_postmeta table.  But my code isn't working:  function save_custom_meta($post_id) {      //check permissions     if (!current_user_can('edit_page', $post_id))             return $post_id;       // Convert _date to actual date stamp      if($field['type'] == 'eventdate') {      get_post_meta($post->ID, 'custom_eventdate', true)         strtotime('_date');         }       if(get_post_meta($post->ID, $key, FALSE)) { // If the custom field already has a value         update_post_meta($post->ID, $key, $value);     } else { // If the custom field doesn't have a value         add_post_meta($post->ID, $key, $value);     }     if(!$value) delete_post_meta($post->ID, $key); // Delete if blank }  add_action('save_post', 'save_custom_meta', 1, 2); // save the custom fields   What have I got wrong, please? Thank-you for taking an interest!  UPDATED  How can I save the date in dd/mm/yyyy format, so that I can then sort  them by date order asc/desc? UNIX timestamp is not appropriate, apparently.


Some days ago (I think it was last Sunday if that's relevant) I got quite a surprise when starting Fallout 4: Instead of the usual "Please stand by", I got a cute little video explaining one of the S.P.E.C.I.A.L. stats, in that case it was explaining Luck. I have not got such an intro since, but I expect there to be more, at least one for each stat.  Are there indeed more of those videos, and if so, can I trigger them somehow?


OOP PHP - Passing methods trough functions

I am new to OOP in PHP and I am trying to understand how it work. I am trying to implement PDO into a my own class.  This is what I am doing:  class db {      private $options;      function __construct() {         $this->options = array(             'database_host' => DATABASE_HOST,             'database_name' => DATABASE_NAME,             'database_user' => DATABASE_USER,             'database_pass' => DATABASE_PASS         );      }      private function connect() {         try {             $pdo = new PDO('mysql:host=' . $this->options['database_host'] . ';dbname=' . $this->options['database_name'], $this->options['database_user'], $this->options['database_pass']);             $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);             $pdo->exec("set names utf8");         } catch (PDOException $e) {             echo 'ERROR: ' . $e->getMessage();         }     }      public function select($table, $what, $where, $custom) {          $query = "SELECT " . $what . " FROM " . $table;         $child = "1";         $param = array();         if ($where)             foreach ($where as $data => $value) {                 if ($child == "1") {                     $query .= " WHERE " . $data . " = '" . $value . "'";                     $param[":" . $data] = $value;                     $child = "next";                 } else {                     $query .= " AND " . $data . " = '" . $value . "'";                     $param[":" . $data] = $value;                 }             }          if ($custom)             $query .= ' ' . $custom;          $statement = $pdo->prepare($query);         if ($statement->execute($param))             return $statement->fetchAll(PDO::FETCH_ASSOC);         return false;     }  }   The problem is that I don't know how to make the function connect() communicating with the below one select() When I try to call the select() function, I get this error:  Fatal error: Call to a member function prepare() on a non-object in /Applications/MAMP/htdocs/game/api/class.db.php on line 47   I would like that when I call the select() function, the connect() one connects to the DB and makes all its variables available for the other functions of the class...but I am lost.


Number of publications "are enough" for US PhD admission in CS?

How many publications as an undergraduate are enough if one's goal is to do a PhD at a top US school?  Of course quality is important, but assuming all are "high enough" quality (e.g. in a reputable well known conference but not world class) should a student try to publish more given that he can?   Maybe publishing in different sub-fields shows one has a broad understanding of the field?  For example one can publish a paper with a professor as his Thesis, and 1-2 extra papers with other professors working with them as research assistant.  Is there a point where one has "proved" he can do research and there is no need to publish more? Will graduate admissions view 2 vs 4 publications much more positively?  Edit: I am talking about Computer Science


Is it known if $\frac{\zeta(3)}{\pi^3}\in\mathbb{Q}$?   It is obvious that $\frac{\zeta(2n)}{\pi^{2n}}\in\mathbb{Q}$, but since there is no closed form for the odd values, are we left to be unable to determine if the solution could have such a form?


for how long can I store homemade chocolate mousse in the fridge?

My chocolate mousse recipe includes just raw eggs (2 weeks until best before date), butter, sugar and black chocolate, ingredients are mixed together with the hot, liquid chocolate. I know about this canonical question/answer pair: , but its answer is unsatisfying in my case, as the eggs are not completely raw, since the yolks are mixed with the hot chocolate and the whites, beaten to Egg Whites are also mixed together with the hot yolk and chocolate. So neither uncooked proteins nor cooked proteins in the canonical answer apply to my question. I'm worried about the time of its preservation in a refrigerator (5ºC). How long can I store my chocolate mousse before it becomes critical for consumption? If I see a liquid at the bottom of the container, is this a sign to throw it away?


This is a thinly veiled rant, I realize, but if anybody can rationalize "emails" for me in such a way that I can stop grabbing people who say it, and asking them if they've ever gone to their mailsbox to retrieve the mails left for them by the mailsman... I would very much appreciate it.  I realize it's probably pure laziness, but maybe someone can rationalize this in such a way that I can stop cringing every time I see it used in a professional setting.


\def\test#1{ \def\csv{#1} \ifx\csv\empty \else X\fi }   \starttext  This is a test x\test{1}x.  \stoptext   Should result in xXx, but shows x Xx. How do I avoid the leading space here?  Edit: Ok, this has been resolved, but what if I need one or more leading spaces before the Xsuch as x    Xx. Using this doesn't help:  \def\test#1{% \def\csv{#1}% \ifx\csv\empty% \else%     X\fi% }%


Workspace 1 to laptop screen and Workspace 2 on HDMI connected TV?

I have two workspaces, which I need to function as below:  Usually they function as usual two workspaces, but...  When I connect a HDMI cable to my system  I want to have workspace 1 display on laptop screen and be workable with keyboard and touchpad inputs as usual.  While in the background, I want to display Workspace 2 content on the TV connected through the HDMI cable.  How can I get this done???  Preferably without compiz involvement.


When a stick that has been twisted into a knot burns, what happens to the potential energy?

I tied a springy stick into a knot, giving it potential energy, because it could spring out of the knot shape. But then I threw it into a fire and it burned to ash without untying. What happened to the potential energy?


The knife tool won't show the exact result that was done before pressing enter

So the first picture is right after I selected where I will cut, and the second picture is after pressing Enter/Space Bar which should apply my previous result to the world. But it is not what I asked blender for, and it tries to snap at vertices. In the tutorial video, it seems that I can cut edges without already existing vertices but it is not the case for me. How do I change this?


I'd like to perform an ANOVA with a normally distributed response variables and several explanatory variables. Some of the explanatory variables are continuous and some are categorical (factor(..)).  aov(a~numeric(b) + factor(c ) + numeric(d) + factor(e))   The residuals of this model are perfectly normally distributed but the assumption of homoscedasticity is not respected. What can I do?   Welch correction?   Does it work for multiple way ANOVA? How can we perform such a thing with R?  ordered logic model?   I tried the function polr (in R) but I get an error message saying that the response should be a factor  Friedman test?   I tried but I got an error message saying that the formula is incorrect (although it is exactly the same as for aov(..))  Kruskal.wallis?   It works only for one-way Anova I think.      Update  m = aov(myFormula, myData) plot(y=residuals(m), x=m$fit) abline(lm(residuals(m)~m$fit))


If a Matrix Has Only Zero as an Eigen-Value Then It Is Nilpotent

Prove that a matrix with only zero eigenvalues must be nilpotent.   How will I be able to prove this?


Can't create anaconda shortcut to launch from desktop on ubuntu 17.10?

I have used the guide from similar question ()  but nothing works when it comes to Ananconda3 shortcut.  Here is my desktop file for anaconda:  [Desktop Entry] Version=1.0 Type=Application Name=Anaconda-Navigator GenericName=Anaconda Exec=bash -c anaconda-navigator Icon=/home/paygilant/anaconda3/lib/python3.6/site-packages/anaconda_navigator/s$ Terminal=false StartupNotify=true MimeType=text/x-python;   I have succeeded the image part, but can't actually launch it. There is an icon on my desktop and I have put in the command bash -c anaconda-navigator.  Please help me identify what am I missing?


install ubuntu desktop using a proxy server?

Is there some way, when installing Ubuntu-20.04 Desktop, to tell the installer to use a proxy server?  I didn't see any option for that (unlike when installing Ubuntu Server) and trying to google an answer seems impossible because the results are all about setting a proxy after install.  I have a slow, metered internet connection so I want to install though my caching proxy so that any subsequent installs will not have to re-download hundreds of megabytes of packages.


How can I tell if my junction box will support a ceiling fan?

I want to install a drum type ceiling fan to the dining room ceiling of a new condominium I just bought. The drum type fan with a light weighs 24 lbs, as per the Home Depot website. How can I tell if the junction box will support this fan?   I would like not to have the electrician come twice i.e, first to look at the installation and then again, to install or maybe just tell me the fan unit is too heavy for the junction box.  The management cannot seem to tell me what the box will support.Thanks


An error occurs when I was trying to create a new linked list

Hi there, I was trying to create a new linked list however failed to insert numbers in for some reason, I checked everything and still couldn't figure out, can someone help? thanks.   Node.java  public class Node { public int data; public Node next; public Node(int data, Node next){; this.data = data; this.next = next; } public String toString(){     return data + ""; }    public static Node addBeforeLast(Node infront, int item){ Node last = infront; Node befLast = last; while (last.next!=null) {     befLast = last;     last = last.next; } Node tmp = new Node (item, last); if (befLast == null) {     return tmp; } befLast.next = tmp; return infront; } }   Test.java   import java.util.Arrays;  public class Test { public static void main (String[] args) {     int[] array = new int[10];     for (int i = 0; i < array.length; i++)     {         array[i] = i;     }     System.out.println(Arrays.toString(array));      //Create a new linked list     Node Ary = new Node(0, null);     Node tmp = Ary;     for (int j = 0; j < array.length; j++)     {         tmp.data = array[j];         tmp = tmp.next;     }      //Test: print them out     System.out.println(Ary);  }   }   Console:  [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] Exception in thread "main" java.lang.NullPointerException     at Test.main(Test.java:19)


I have a list with a bunch of attachments. A recent request came through to make these attachments searchable. Is the an attachment type that is searchable?


Theta terms observable effects for $SU(3)$, $SU(2)$ and $U(1)$ in the standard model

In p.726 of Peskin QFT, it says:  The theta terms are total derivative, that terms involving $SU(2)$ and $U(1)$ have no observable effects.  However for the strong $SU(3)$, it costs a strong CP problem. Why is that? Question: Why there are no theta terms observable effects for $SU(2)$ and $U(1)$? But only $SU(3)$? Just to be clear, the discussion here is already making the quark rotations to reduce the CKM matrix coupling for the $W$ weak flavor current to only a complex phase $e^{i \phi}$ (which also violates CP). So other than this $e^{i \phi}$, because we had already rotated the quarks, we may generate the theta angles for all $SU(3)$, $SU(2)$ and $U(1)$. Because we already rotated the quarks to reduced the CKM matrix -- in my opinion, we should not rotate the quarks again to reduce the theta terms  $\theta$ of $SU(3)$, $SU(2)$ and $U(1)$ (!?) -- otherwise, rotating the quarks again will generate back CKM matrix with more complex phases!! (this is the dilemma if you want to (1) remove the theta terms  and also (2) remove the complex phases of CKM, and (3) keep the Yukawa-Higgs coupling to a good mass eigenstate basis. So please explain carefully what we are going to do to deal with (1),(2),(3) altogether? (!?)


Which method is faster to select body element?

What is better to use for performance in JavaScript?  document.children[0].children[1]   vs  document.querySelector('body')   Which is more faster in performance?


Cannot install Ubuntu -- Wubi does not currently support EFI

I have the .iso image of Ubuntu 15.10 that a friend gave to me. I have a pre-installed Windows 10. When I mount the image and run wubi.exe, it gives the following error:     Wubi does not currently support EFI.   Please tell me how to install (dual-boot) Ubuntu (with Windows). My FastBoot service is off and Windows is installed in UEFI mode.


I can see all my upvotes in the "votes" tab of my user page. For example,   This includes the questions, answers and comments. Is there a way to list all comments those I have upvoted?


Show there is no non-abelian group of order 9

I want to show there is no non-abelian group of order 9. How should I attempt this?


16.4 ubuntu   apt-get update W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted) E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied) E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


pgfplots: add margin 'whisker' to barchart

I have the following bar-chart with 5 sets of 2 bars. For some of the individual bars, there is a margin in the (upper) value. I would like to express this similar to a boxplot, with a 'whisker' on top of the bar. Is there a way to specify a value and plot a whisker in this graph, or do I need to resort to manually drawing the lines? \documentclass{article} \usepackage{pgfplots}  \begin{document} \begin{tikzpicture}     \begin{axis}[         width  = 0.65*\textwidth,         height = 7cm,         major x tick style = transparent,         ybar=2*\pgflinewidth,         bar width=14pt,         ymajorgrids = true,         x tick label style  = {text width=1.8cm,align=center,font=\small},         symbolic x coords={Scenario 1,Scenario 2,Scenario 3,Scenario 4,Scenario 5},         xtick = data,         scaled y ticks = false,         enlarge x limits=0.25,         ymin=0,]         \addplot[pattern=dots, style={mark=none}]             coordinates {(Scenario 1, 1500) (Scenario 2,1610) (Scenario 3,1620) (Scenario 4,1590) (Scenario 5,1660) };                      \addplot[fill=gray, style={mark=none}]             coordinates {(Scenario 1, 1520) (Scenario 2,1625) (Scenario 3,1650) (Scenario 4,1605) (Scenario 5,1660)  };              \end{axis} \end{document}


Shell command to put recent line of output onto current command line

Shells have a useful feature where pressing the keyboard UP arrow replaces the contents of the current command line with the previous command that was entered. (And if you do it again, the command before that, and so on.)  I would like a similar feature, where pressing (some other button) replaces the contents of the current command line with the last line of output from the previous command (and if you do it again, the previous line of output , and so on.)  Is there any shell that provides a feature like this?  The motivation is that you often want to run a command, and then run another command with part of the previous commands's output as input. (No, I don't want to do anything involving piping the output of one command into the next. I'm looking for an interactive experience, where you run the first command, see its output, and then get a line of that output into your next command, without having to reach for the mouse to do a clumsy copy-and-paste.)


'For' is a coordinating conjunction, but 'because' is a subordinating conjunction. Is that right? Can someone explain why?

He went to bed, for he was tired. (For = coordinating conjunction) He went to bed, because he was tired. (Because = subordinating conjunction) Is this correct? If so, I'm confused. In all the examples and explanations I've found online it says 'for' is a preposition unless used in that particular way above, in which case it becomes a coordinating conjunction (FANBOYS). But to me it seems like 'for' has the exact same function and meaning as 'because' in the above example. Both could be replaced with 'due to the fact that...' Why is 'because' subordinating but 'for' coordinating?  FANBOYS: for, and, nor, but, or, yet, so


Missing icon for "Show desktop" in Dash in 18.04

I upgraded today to 18.04. One item I am missing is a "Show desktop" button in the dash. How can I add this without running a script?  (This must be a common request)


When I say:     The board and council meetings will be held on the 5th and the 6th of this month, respectively.   it seems to be the proper way to say it and it sounds correct . But when I say:     Let's get tea and coffee for you and for me, respectively.   especially in an informal environment, it sounds unnatural at best and snobbish at worst. So what is a good informal word for 'respectively'?


I trying to fetch data form database which is have 3 column unique_id, parent_id & node_name, but this query (Given in below) is return only two rows.  Condition: every parent has two child.  DROP PROCEDURE `treeTbl`; CREATE DEFINER=`bizsol`@`localhost` PROCEDURE `treeTbl`(IN `childId` INT(255)) DETERMINISTIC NO SQL SQL SECURITY DEFINER BEGIN  DECLARE tempId INT DEFAULT 0;  SELECT *, unique_id as id FROM t_users WHERE 1 AND parent_id = childId;  IF(tempId>0)   THEN     SET tempId = id;     CALL treeTbl(tempId);  END IF; END   And call form here,  CALL treeTbl(3);


Can touching connections between each WS2812B-LED result in a shock

WS2812B LED-strips are ran at 5V, and can consume up to 60mA per LED. This can quickly add up to a few amperes.    Would I receive a chock if I'd touch the connections between each LED while the strip is powered up? I'd guess so, since the current flows between the points -- however I've seen videos of people touching the strip while powered up.  Is it safe to touch the connection points while the strip is powered up?


I have rendered an object using hdri and lamp lights. Using render layers i want to have object and shadows only. I show you my nodes.  I need to know how to transform white pixels to alpha channel using nodes.


How to make text not wrap in gnome-terminal?

I have the output from a command in gnome-terminal, but there is too much text currently so it is wrapping, but the wrapping means that it is much harder for me to read the output because of the nature of it. So I was wondering if there is any way to make the output, or perhaps even all the text, not wrap in gnome-terminal?  I am running Ubuntu GNOME 16.04 with GNOME 3.20.


How to create a covariate × time interaction term in Cox regression?

In Cox regression, it is sometimes inevitable that the strength of a predictor will vary across time (Singer & Willett). This violates the proportionality assumption, but can be incorporated in the model as an interaction term between the covariate and time (or the log of time).   How does one create this interaction term (by hand)? If the predictor has only one single value per subject (e.g., gender coded as 1 or 0), how can this be multiplied by time – which for each subject, takes on many values (e.g., if time is measured in days, and the study is 100 days long, then $t=\{1,...,100\}$)? Is the predictor value multiplied by the event time (e.g., death)?   I've read from some sources that you multiply the covariate value by a function of time, but I'm not sure if this is accurate, or how one would do this in a data set by hand.


Latex is numbering my references from the very document beginning including the List of Figures. As a consequence, the first reference to be cited (in the introduction) is already number 5.  How can I set LaTeX to start the counting in introduction only?


How to get to/from Washington Dulles International Airport?

How do I get to/from Dulles Airport in Washington, D.C.?  I've reviewed  and it's hard to tell what's actually the combination easiest/cheapest way.  We're staying near Eastern Market if that makes a difference.


Can xubuntu 14.04 directly be upgraded to 20.04 LTS?

There are similar questions already posted but they are about upgrading to relatively newer version of xubuntu but not a huge jump as in my case. I have 14.04 which is quite an old release can this be upgraded to 20.04 without reinstall ?  Thanks


Do any (non-hardware) RNGs exist which could be used to create an OTP for crypto purposes?

I've stumbled (jobwise) over a system where small messages (512 Bytes or less) are encrypted and decrypted using a simple XOR using a OTP. That OTP is created using a seed based on the individual user passwords and a simple PRNG.  I'm currently seeing the following problem: Alice always keeps her password absolutely secret and it is never shared or transmitted. But the crypto-message may be intercepted by Eve, who may be smart enough to detect the pattern used to XOR the message (as the PRNG functionality is widely used as simple C-lib rand() functionality and therefore publicly available).   The reason why "they" used the OPT approach is to ensure "speedy encryption" (before transmission via SSL, secured storage, etc.).   My counter-argument is that it may be speedy, but because the seed is generated using a simple byte-addition (which results in a seed between 0 and 255), Eve has pretty good chances to quickly find the used seed and thereby the PRNG offset... which will allow her to decrypt the complete crypto-message(s) within 256 trail-and-error approaches.  Personally, I am about to advise them to use an acknowledged crypto-scheme (like AES) and make them drop their weak and insecure OTP-based crypto thing.   For as long as I can remember, I have been reading and have been told that an OTP may be regarded to be theoretically secure — but for that, the OTPs must be absolutely and truly random. From my point of view, a PRNG (cryptographically secure or not) does not seem to be a secure way to generate an OTP for crypto-purposes (using simple XOR).  But this got me thinking — maybe I am missing something in the big sea of crypto-schemes, functions, and implementations.   To avoid I'm missing something, I would embrace any feedback on the question:  Do any (non-hardware) RNGs exist which could be used (or securely abused) to create an OTP for crypto purposes?


I was upgrading my ubuntu from 11.10 to 12.04 LTS but the power went off.  So when i restarted by laptop there was a black screen that came. Then I downloaded 12.04 from windows 7. It is rebooting from windows boot manager. Now how do i remove 11.10 ubuntu.


Sampling distribution of regression coefficients

I previously learned about sampling distributions that gave results which were for the estimator, in terms of the unknown parameter. For example, for the sampling distributions of $\hat\beta_0$ and $\hat\beta_1$ in the linear regression model $Y_i = \beta_o + \beta_1 X_i + \varepsilon_i$  $$ \hat{\beta}_0 \sim \mathcal N \left(\beta_0,~\sigma^2\left(\frac{1}{n}+\frac{\bar{x}^2}{S_{xx}}\right)\right) $$ and $$ \hat{\beta}_1 \sim \mathcal N \left(\beta_1,~\frac{\sigma^2}{S_{xx}}\right) $$  where $S_{xx} = \sum_{i=1}^n (x_i^2) -n \bar{x}^2$  But now I have seen the following in a :     Suppose we fit the model by least squares in the usual way. Consider   the Bayesian posterior distribution, and choose priors so that this is   equivalent to the usual frequentist sampling distribution, that   is......      $$ \left( \begin{matrix} \beta_0  \\ \beta_1  \end{matrix} \right)  \sim \mathcal  N_2\left[\left(\begin{matrix} \hat{\beta}_1  \\  \hat{\beta}_2  \end{matrix} \right),~\hat{\sigma}^2  \left(\begin{matrix}   n & \sum_{i=1}^{n}x_i \\   \sum_{i=1}^{n}x_i &  \sum_{i=1}^{n}x_i^2  \end{matrix}  \right) ^{-1}\right] $$   This is confusing me because:     Why do the estimates appear on the left hand side (lhs) of the first 2 expressions, and the right hand side (rhs) of the last expression? Why do the beta hats in the last expression have 1 and 2 subscripts instead of 0 and 1? Are these just different representations of the same thing? If they are, could someone show my how they are equivalent? If not, could someone explain the difference? Is it the case that the last expression is the "inversion" of the first two? Is that why the 2x2 matrix in the last expression is inverted and estimates/parameters are switched from rhs$\leftrightarrow$lhs? If so could someone show me how to get from one to the others?


Transit visa in Bangkok for a Sri Lankan

I'm a Sri Lankan who is traveling from Brisbane to Sri Lanka. I have a 2 hour transit visa in BKK (Bangkok Airport). My both flights (from BNE to BKK and BKK to CMB) are Thai Airways flights. Do I need to have a transit visa for staying 2 hours in Bangkok airport? I have a Sri Lankan passport.


Delineating catchments upstream of flow sites

I have many flow sites and I used them to delineate catchments upstream of each flow site using Spatial Analyst Tools > Hydrology > Watershed.   As you know using this tool, you'll get the catchments delineated as shown below (Figure 1).  Is there a way to get the catchments delineated as illustrated in Figure 2? In other words, as you move downstream, the catchment of each flow site will include all the catchments upstream of this site.


What package should I use to draw these circuits?   Is it circuitikz?


My book says that according to first law force applied is proportional to mass times acceleration is $$F=kma.$$ Now it says that for convenience we take $k=1$ and it does not affect anything. But my question is if we take any other value of $k$,equations of kinetic energy, motions of equation etc would change? how can we take $k=1$ conveniently. EDIT-Previous answers say that k=1 because force is defined so that it is "easy" to remember. Therefore my new question is if we define F=2Ma and then derive new results for kinetic energy etc,will they be valid too?


Distribution of the product of $n$ i.i.d log-normal random variables

Let $X_1,\ldots,X_n$ be independent log-normal random variables such that $$log(X_i)\sim N(\mu,\sigma^2)\ \ \forall i=1,\ldots,n$$  Then what can be said about the distribution of the random variable $Y$?   Where $Y$ is defined as  $$Y=X_1\times\cdots\times X_n$$


What makes the mean of some distributions undefined?

Many PDFs range from minus to positive infinity, yet some means are defined and some are not. What common trait makes some computable?


Prove $$\int_0^1\prod_{n=1}^\infty(1-x^n)dx=\frac{4\pi\sqrt3}{\sqrt{23}}\frac{\sinh\frac{\pi\sqrt{23}}3}{\cosh\frac{\pi\sqrt{23}}2}.$$ In fact, product $(1-x^n)$ is difficult to compute, I hope you can show me some ideas, thank you!


Prove that 1 less than the number of equivalence classes divides $p-1$ where $p$ is prime

I am faced with the following problem:     Let $p$ be a prime number and $\gcd(p,n)=1$.  Define an equivalence   relation on $\mathbb{Z}_{p}$ as follows: $x \sim y$ iff $n^{r}x = n^{t}y$ for some $r,t \geq 0$.  Let $m$ be the number of equivalence   classes of this equivalence relation.  Prove that $m-1$ is a divisor   of $p-1$.   I must admit that I am at a loss as even where to begin with this one: the only thing I know for certain is that $m-1$ is certainly not a divisor of $p$! (Unless of course, $m-1$ is equal to either $1$ or $p$). Well, that and that since there are $m$ equivalence classes, one of them must be $[m-1]$.  I even tried working backwards, saying to myself okay, if $m-1|p-1$, then $\exists c$ such that $p-1 = c(m-1)\, \to \, p = cm-c+1$. But that also doesn't seem to get me anywhere.   It seems as though I have been staring at this forever with nothing to show for it. Thus, any assistance anyone out there could give me would be greatly appreciated.


Active Plugins for current blog in WP Multisite Network?

Simple question but I can't find an answer - how do I find whether the current blog in a multisite network has a given plugin activated (speaking about plugins that are available to all sites on the network but are NOT network activated)?


How to detect a background program (in Windows 7) which steals active focus automatically?

A background process/program steals focus from my currently active application. It disturbs me a lot when I type in an app or control an app using keyboard or play online flash games in full-screen. I want to remove this program from my PC, but I'm unable to detect it. I've analyzed all processes & scanned for viruses. All things are right from this side. I don't want to change focus behavior using registry tweak. Please, help me detecting that app..


The exercise is: If A is an invertible matrix then there is a polynomial $p(t)\in \mathbb{K}[t]$ that $A^{-1}=p(A)$. I've tried to think that, if A is invertible, then the characteristic polynomial has the form $p_A(t)=t^n+\ldots+a_1t+(-1)^n\det(A)$, with $\det(A)\neq 0$. So, the minimal polynomial is something like $m_A(t)=t^n+\ldots+ b_0$, with $b_0\neq 0$. I am trying do some modification in $m_A$ to conclude the exercise. Some type?


I went through several websites and  found that the easiest way to peel tomato is to boil them . So, How long do we need to boil tomatoes so that you can easily peel them?


How to show that the ring $S/A$ has no zero divisors? (Hungerford, Algebra, Problem 12, Chapter III, Section 2)

I am having trouble with another homework problem (Hungerford, Algebra, Problem 12, Chapter III, Section 2).  Let $R$ be a ring without identity and with no zero divisors. Let $S$ be the ring whose additive group is $R \times \mathbb{Z}$ with multiplication given by $$(r_1,n_1)(r_2,n_2)=(r_1r_2+n_2r_1+n_1r_2,n_1n_2).$$ Let $A=\{(r,n) \in S \mid rx+nx=0 \text{ for all } x \in R\}$. (a) $A$ is an ideal in $S$. (b) $S/A$ has an identity and contains a subring isomorphic to $R$. (c) $S/A$ has no zero divisors.  I've done (a) and (b), but haven't been able to crack (c). Here's what I have so far: (c) Suppose $((r, n) + A)((s, m) + A) = (0, 0) + A$. Then $(r, n)(s, m) \in A$, so $(rs + mr + ns)x + (nm)x = 0$ for all $x \in R$. But $(rs + mr + ns)x + (nm)x = rsx + mrx + nsx + nmx = r(sx + mx) + n(sx + mx)$. Now here we have an expression involving $r(something) + n(something)$ and $s(something) + m(something)$, and I want to say that if it's zero for all $x$ then $rx + nx = 0$ for all $x$ or $sx + mx = 0$ for all $x$, but all I seem to be able to say is that $rx + nx = 0$ for all $x = sx' + mx'$, which is not (or not obviously) what I want. I appreciate any help!


How to find days between two dates with time in jquery/javascript

I am new to jquery, how do I get the number of days between two dates with time also.  var fromDate = $("#from_txn_date").val();//2017-02-20 00:00:00 var toDate = $("#to_txn_date").val();//2017-06-20 00:00:00   my date format is yyyy-MM-dd HH:mm:ss.  How to check days? i tried but time reason i didn't get solutuion


Available Wi-Fi networks not even showing in Ubuntu 16.04

My Ethernet works fine but it is not even showing options of available networks in Wi-Fi (Initially it was working fine).  The output of lspci -knn | grep Net -A3; rfkill list, is as follows:  03:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a] 0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   Also o/p of sudo modprobe wl is:  modprobe: FATAL: Module wl not found in directory /lib/modules/4.15.0-29-generic   Also command sudo apt install --reinstall bcmwl-kernel-source shows error:  Can't create report and wl not found.


I wanna just add the int numbers into a LinkedList, but when i type "exit" there are an exception

I wanna   add  some numbers into linked list, but in my loop when i want to end adding and type "exit" there is an exception:   Exception in thread "main" java.lang.NumberFormatException: For input string: "exit"     at java.lang.NumberFormatException.forInputString(Unknown Source)     at java.lang.Integer.parseInt(Unknown Source)     at java.lang.Integer.parseInt(Unknown Source)     at Main.main(Main.java:16)     code  import java.util.LinkedList;     import java.util.List;     import java.util.Scanner;      public class Main {         public static final String EXIT = "exit";          public static void main(String[] args) {             // TODO Auto-generated method stub             List<Integer> list = new LinkedList<>();             Scanner input = new Scanner(System.in);             String temp;              System.out.println("Add number: ");             while((temp=input.nextLine()) != "exit"){                     int i = Integer.parseInt(temp);                     list.add(i);                     System.out.println("Add number:");             }             System.out.println("Completed. The summary is: ");             int suma = 0;             for(Integer skl : list){                 suma += skl;             }             System.out.println(suma);          }      }


Lower bound placement in summation sigma sign

I have this equation and I would like to have lower bound (v \in N_i(u)) exactly under the summation symbol and not to the right side of it. How to accomplish it?     This is my LaTex notation:


Getting name of logged in Windows user via Php on Apache

I cannot seem to get the Windows username of the logged in user via Php / Apache.  I have downloaded and added this module in Apache:  LoadModule authnz_sspi_module modules/mod_authnz_sspi.so   But when I call this from PHP via:  print $_SERVER['REMOTE_USER'] ;   I still get: Notice: Undefined index: REMOTE_USER. Please note this is an intranet site so running on an internal LAN. The server hosting the site is XAMPP.  I have also tried this:  but I am getting a prompt to re-enter my username and password (using Chrome and IE) something which I do not want. I also added this to my httpd.conf:  <Directory "C:/xampp/htdocs">  Options None  AllowOverride All  Order allow,deny  Allow from all  #AuthName "SSPI Protected Place"  AuthType SSPI  SSPIAuth On  SSPIAuthoritative On  SSPIOfferBasic On  SSPIOmitDomain On  Require valid-user  </Directory>