How can I analytically prove that randomly dividing an amount results in an exponential distribution (of e.g. income and wealth)?

In this current  the following is being proposed:      Suppose you randomly divide 500 million in income among 10,000   people. There's only one way to give everyone an equal, 50,000 share.   So if you're doling out earnings randomly, equality is extremely   unlikely. But there are countless ways to give a few people a lot of   cash and many people a little or nothing. In fact, given all the ways   you could divvy out income, most of them produce an exponential   distribution of income.   I have done this with the following R code which seems to reaffirm the result:  library(MASS)  w <- 500000000 #wealth p <- 10000 #people  d <- diff(c(0,sort(runif(p-1,max=w)),w)) #wealth-distribution h <- hist(d, col="red", main="Exponential decline", freq = FALSE, breaks = 45, xlim = c(0, quantile(d, 0.99)))  fit <- fitdistr(d,"exponential") curve(dexp(x, rate = fit$estimate), col = "black", type="p", pch=16, add = TRUE)     My question How can I analytically prove that the resulting distribution is indeed exponential?  Addendum Thank you for your answers and comments. I have thought about the problem and came up with the following intuitive reasoning. Basically the following happens (Beware: oversimplification ahead): You kind of go along the amount and toss a (biased) coin. Every time you get e.g. heads you divide the amount. You distribute the resulting partitions. In the discrete case the coin tossing follows a binomial distribution, the partitions are geometrically distributed. The continuous analogues are the poisson distribution and the exponential distribution respectively! (By the same reasoning it also becomes intuitively clear why the geometrical and the exponential distribution have the property of memorylessness - because the coin doesn't have a memory either).


Why does chmod succeed on a file when the user does not have write permission on parent directory?

I am trying to understand file/dir permissions in Linux.  A user can list the files in a directory using   cd test ls -l    Even if the user issuing above commands does not have read, write or execute permission on any of the files inside the test directory, still he can list them because he/she has read permissions on the test directory.   Then why in the following scenario user B can change permissions of a file he owns but does not have write permissions of the parent directory?  User A, makes a test directory and gives other users ability to write in it:  mkdir test chmod o+w test   User B, creates a file in test folder.  cd test touch b.txt   User A removes write permission of others from the directory  chmod o-w test   User B, can successfully change permissions, even though permissions are part of directory and this user does not have write permission on the parent directory of the file he owns  chmod g-r b.txt   why does chmod not fail since the user cannot modify the directory which has the file information - permissions etc?


tables: spaces between rows for a single row (top and bottom)

I have this silly question that might look like a duplicate, but I still cannot get it to work... I have the following table, and I just need more vertical spacing at the top and bottom of the 3rd row... Adding [3cm] after the end of the row would give me more space at the bottom of the row, but what about the space at the top? Many thanks! MWE:  \documentclass{standalone}  \usepackage{pbox}  \begin{document}  \renewcommand{\arraystretch}{2} \begin{tabular}{|c|c|c|c|c|}     \cline{2-5}         \multicolumn{1}{c|}{}         & \textbf{group a}         & \textbf{group b}         & \textbf{group c}         & \textbf{group d}\\     \cline{1-5}         \textbf{classif1}         & A         & B         & A         & B\\     \cline{1-5}         \textbf{classif2}         & A         & B         & B         & A\\     \cline{1-5}         \textbf{IDs}         & \textit{\pbox{20cm}{ALK, APC,\\CDH1, EGFR,\\GPC3, HNF1A,\\MPL, PHOX2B,\\RET, TSHR}}         & \textit{\pbox{20cm}{AXIN1, BRCA2,\\BUB1B, CDKN2A,\\ERCC2, ERCC4,\\FANCC, FANCE,\\FH, HRAS,\\MLH1, MSH6,\\NF1, PMS2,\\PRKAR1A, RB1,\\SBDS, SDHAF2,\\SDHB, SDHD,\\SMAD4, SMARCB1,\\STK11, SUFU,\\TP53, TSC1,\\XPA, XPC}}         & \textit{\pbox{20cm}{ATM, BLM,\\BRCA1, BRIP1,\\CDC73, CDK4,\\CHEK2, CYLD,\\DDB2, DICER1,\\ERCC3, ERCC5,\\EXT1, EXT2,\\FANCA, FANCD2,\\FANCG, FLCN,\\MSH2, MUTYH,\\NF2, PALB2,\\PMS1, RECQL4,\\SDHC, SMARCE1,\\TSC2, VHL,\\WRN}}         & \textit{\pbox{20cm}{BMPR1A, FANCF,\\KCNJ5, KIT,\\LMO1, MAX,\\MEN1, NBN,\\PRF1, PTCH1,\\PTEN, TERT,\\WT1}}\\[3cm]     \cline{1-5}         \textbf{Number}         & 10         & 28         & 29         & 13\\     \cline{1-5} \end{tabular}  \end{document}


Difference between Fortnightly and Monthly pay

I used to get paid monthly at base salary of 48k. I have recently changed my job and getting paid fortnightly with a base salary of 50k  I did some calculation and found out that if I get paid monthly I would end taking home $2962.09. However, my take home pay is $1367.13. This does not add up I thought the for nightly should have been 1481$ 2962/2 = 1481?  I was paid 2864 monthly at 48k base salary, being paid 50k fortnight is less than 2864. im confused here.  The website that i used to calculate this is   Here is the summary of my pay. Note, my kiwi saver is 4% and student loan is applied at 12%


linux + find + delete files on remote machines except particular files

we have redhat 7.2 Linux version  I want to remove on remote machines all repositories files under  /etc/yum.repos.d except the following files under /etc/yum.repos.d  local.repo redhat.repo cluster.repo   we tried this ( but without success )  ssh root@$machine find /etc/yum.repos.d  -type f -not -name 'local.repo ' -or -name 'redhat.repo' -or -name ' cluster.repo’  –delete   or  ssh root@$machine find /etc/yum.repos.d  ! -name 'local.repo|redhat.repo|cluster.repo' -type f -exec rm -f {} +   or  ssh root@$machine find   /etc/yum.repos.d -type f -not \(-name 'local.repo'  -or -name 'redhat.repo' -or -name 'cluster.repo' \) -delete


Let $\sigma_n = \frac{1}{n}(s_1 + \ldots + s_n)$. Assuming that $\lim_{n \rightarrow \infty} s_n = s$, prove that $\lim_{n \rightarrow \infty} \sigma_n = s$.  How do I start with this proof? It makes intuitive sense, but I don't know how to do it formally. I've tried writing down the definition of the limit but have not gotten very far, so some hints would help. Thanks!


How to compute precision/recall for multiclass-multilabel classification?

I'm wondering how to calculate precision and recall measures for multiclass multilabel classification, i.e. classification where there are more than two labels, and where each instance can have multiple labels?


Will beef bones completely submerged in 50 degree water for 24 hours still be safe to make into stock/

Will the fact that they are covered in water inhibit spoilage?


Horizontally and vertically align element within 2 elements while maintaining 2:1 width to height ratio

I'm trying to maintain a 2:1 width to height ratio, while trying to maintain the circle elment perfectly aligned vertically and horizontally. By increasing the width, the circled element is not perfectly aligned. Rather than playing with %, is there another way of doing it (and maintaining the 2:1 ratio)?   .con {   display: flex;   border: 2px solid black;   width: 100%;   height:1px;   position: relative;   padding-top: 50%; }  .a {   width: 50%;   position: absolute;   top: 0;   left: 0;   height: 100%;   background: cyan; }  .circle {   z-index: 1;   background: green;   border-radius: 50%;   height: 50px;   width: 50px;   margin: auto;   position: absolute;   top: 45%;   bottom: 45%;   left: 45%;   right: 45%; }  .b {   width: 50%;   position: absolute;   top: 0;   right: 0;   height: 100%;   background: yellow; } <!DOCTYPE html>     <meta charset="utf-8">   <meta name="viewport" content="width=device-width">   <title>JS Bin</title>

A

B


Having a plane equation equaled to zero for calculating its angle with another plane

I got to calculate the angle between two planes.  $$x-3y+2z=14\\ -x+y+z=10$$  As far as I am concerned, that's simply the angle between their normal vectors. And such vectors are $(1,-3,2)$ and $(-1,1,1)$. Therefore  $$\cos^{-1}\left(\frac{(1,-3,2)\cdot(-1,1,1)}{||(1,-3,2)||\cdot||(-1,1,1)||}\right)$$  Which is like $1.88$ radians.  Now then, to verify this I looked for online calculators, and I couldn't help but notice that all the calculators I found required to input the planes like this:  $$x+y+z=\color{red}{0}$$  See, they ask for plane equations to be equaled to zero. My questions are, then:   Do I need my plane equation to be equaled to zero to calculate such angle? Is there an advantage/disadvantage to having an equation equaled to zero? Is there a way to simplify my equation to equal it to zero?


I am unable to call PHP files inside the Drupal directory. My task is maintaining staff's old pages on the new platform. With pages written on clear HTML, there is no problem: I place files in a folder I created (domain.org/sites/default/files/share/staff_folder).  In sites/default/files/.htaccess I added DirectoryIndex share and now the link to the domain.org/sites/default/files/share/staff_folder/index.html can be used. When I import pages written in PHP, e.g. calling domain.org/sites/default/files/share/staff2_folder/index.php, I get a 403 error:     Forbidden      You don't have permission to access /sites/default/files/share/staff2_folder/index.php on this server.   While /sites/default/files/share/staff2_folder/index.html still works.


open a new terminal, let it stay, and switch back to original terminal, run command

I want implement like this at terminal A, open a new terminal B, run command in B, leave B runing, and back to terminal A, run other command.   I have following script, but not what I expected  #!/bin/bash konsole -e 'sh -c "./tel"' echo test   The problem is, echo test command won't run, until I close terminal B.  terminal A output      "failed to get the current screen resources   QXcbConnection: XCB error: 170 (Unknown), sequence: 170, resource id: 90, major code: 146 (Unknown), minor code: 20"   and wait for terminal B close. after I close terminal B, terminal A output "test".  Is there a way to solve the problem?


I was trying to proof that, if $h:\mathbb{C}\rightarrow \mathbb{C}$ has a derivative for all $z \in \mathbb{C}$ and $h'(z)=h(z)$, thus, we must have that $h(z)=c.e^{z}$ for some $c \in \mathbb{C}$. I seems to be simple, but I am stacked. Could anyone give me a hand on it?


What do you do in Dungeon World when someone wants to perform an action they don't have a move for?

So in Dungeon World, everything breaks down to 'moves'.  What about situations where a move is not available, but a check of some sort is called for, such as in the case of a non-fighter who wants to kick down the door?  What mechanism do you use to resolve that situation? Is there the equivalent of a skill check?


Reset Windows 10 on new computer to remove bloatware

If I get a new Win10 computer, filled with bloatware, can I reset the factory installed Windows and create the equivalent of a clean install, getting rid of all the flotsam and jetsam?


If $f(x)=x+\int_{0}^{1}[xy^2+x^2y]f(y)dy$ where $x$ and$y$ are independent variable.Find $f(x).$  I tried to solve it.  $f(x)=x+\int_{0}^{1}[xy^2+x^2y]f(y)dy$  $f(x)=x+x\int_{0}^{1}y^2f(y)dy+x^2\int_{0}^{1}yf(y)dy$  I applied integration by parts but the expression did not simplify.Please guide me to reach the answer $f(x)=x+\frac{61}{119}x+\frac{80}{119}x^2.$


Why does heat added to a system at a lower temperature cause higher entropy increase?

Entropy is defined in my book as $\Delta\ S = \frac{Q}{T}$. To derive the formula it says that entropy should be directly proportional to the heat energy as with more energy the particles would be flying all over the place more rapidly. This makes sense. But then it says that entropy must be inversely proportional to the temperature at which it is added. To be precise  Heat added to a system at a lower temperature causes higher entropy increase than heat added to the same system at a higher temperature.  How does this make intuitive sense? EDIT 1: I found an answer . I think this makes sense. Can anyone read it and tell me if it's correct or not?  Rough intuitive answer: Adding heat to a system increases the system's total energy. This gives more kinetic energy to distribute among the particles in the system, increasing the size of the system's phase space and hence its entropy. However, since momentum is proportional to the square root of kinetic energy, it is clear that the total momentum phase space cannot grow exponentially as you add more kinetic energy; so the rate of growth of its logarithm must taper off. Since entropy is proportional to the log of the size of the phase space, we see that each additional unit of heat must increase the entropy by less and less. Now, for technical details. The reason why the relationship is precisely $dS = \delta q/T$ rather than some more complicated relationship that depends on the nature of the system is that temperature is defined such that this is true.  We know that during first-order phase transitions, the temperature actually stays constant as you add heat! This corresponds to a region where adding heat actually does cause an exponential increase in phase space. Finally, note that some systems actually have negative temperature, and adding more heat to them actually makes the temperature even more negative; so adding heat actually decreases the phase space. So the intuitive answer in the previous paragraph shouldn't be taken too seriously.  EDIT 2: Moreover,  answer explains why there needs to be an additional factor of temperature along with heat in the definition of entropy so as to be consistent with the second law.  This is why heat flows from hot objects to cold objects: the entropy change of the hot object is negative, while that of the cold object is positive. The magnitude of entropy change for the cold object is greater. $\Delta S = \frac{Q}{T_c}-\frac{Q}{T_h} > 0$ as $T_h > T_c$  Keep in mind that entropy increases with temperature. This can be understood intuitively in the classical picture, as you mention. However, at higher temperatures, a certain amount of heat added to the system causes a smaller change in entropy than the same amount of heat at a lower temperature. The formula is $\Delta S = \frac{Q}{T}$. The change in entropy is related to heat. Remember that heat is a form of energy transfer, not energy; we can talk about heat only when some change takes place. Please do point out if there is anything wrong with the answers above.


What's the official SE response to serious mentions of suicide or self-harm in posts?

Last night on , someone posted a question that was basically a suicide note, along with the question of what Judaism thought about suicide. The question was put on hold very quickly, and several supportive comments were posted ("You've listed Los Angeles as your location. A local program that could probably offer a great deal of help is...."). Someone started a conversation in chat, which is how I discovered this question, asking about SE's official policy for posts with serious mentions of suicide or self-harm. I answered with a link to , and a , which was a HNQ question at some point, which was how I found out about the SoftwareEngineering.meta question (I do not have an account on programmers). In any event, it turns out that our wise moderators , though we didn't find that out until later. After searching MSE for an official position, I found that we . Hopefully this won't come up so often, but I feel that this should be made public here (significantly more public than SoftwareEngineering.meta) so that people will know what to do when this comes up.


How to remove a first character of that particular sentences from a list of output

grep /var/log /etc/rsyslog.conf | awk '{print $2}'   Output:  /var/log/messages /var/log/secure -/var/log/maillog /var/log/cron -/var/log/spooler /var/log/boot.log   I want the result to be:  /var/log/messages /var/log/secure /var/log/maillog /var/log/cron /var/log/spooler /var/log/boot.log   I need to remove the -.


As a native English speaker, which two further languages would give me the most travel utility worldwide?

This follows on from a travel conversation a group of us had in a hostel in London.  Assuming I am travelling randomly between countries and continents, which two languages in addition to English would provide the most usefulness in any given country?  I suspect Spanish (North America, South America) and French (Europe, Africa) but with the base understanding between French and Spanish maybe the time would be best spent learning another language?  This question is a real puzzler since the following constraints apply   Length of time required to be "functional" in the language (cost-time trade off) Chance of reaching proficiency within any meaningful timeframe (Mandarin) Regional dialects destroying proficiency (Arabic) Easier Secondary languages underpinning the society (Arabic versus French argument) Similarity of Language families (Romance) leading to wasted effort (Italian v French) Utility of the Language (German versus English when English is understood) Enjoyment is a minor consideration   Happy to consider any other thoughts but it is a really interesting topic for consideration if you are linguistically minded.


Type intersection: use of type variables in intersecting types

I want to declare the return type of a method as the intersection of a type variable and a static interface (say java.io.Serializable).  Ideally, I want to be able to do the following:  public class Main {      public static <I, T extends I & java.io.Serializable> T foo(I object) {         return null;     } }   However, this code gives the following compilation error:  Main.java:3: error: a type variable may not be followed by other bounds     public static <I, T extends I & java.io.Serializable> T foo(I object) {                                            ^ 1 error   According to , this should be possible.     The form of a bound is restricted (only the first element may be a   class or type variable, and only one type variable may appear in the   bound) to preclude certain awkward situations coming into existence.   The error seems clear, but yet no mention to such a restriction in the documentations. As far as I understand, if type variables cannot occur after the first place since an interface is required, and cannot be followed by any other bound as the error says, that would mean that type variables cannot be used in type intersection as such.  Oracle documentations seem to state the otherwise.  Thanks for the insights.


Determine the number of functions $f: \{1,2,3....,1999\}\to \{2000,2001,2002,2003\}$satisfying the condition that $f(1)+f(2)+...f(1999)$ is odd.

Problems:Determine the number of functions $$f: \{1,2,3....,1999\}\to \{2000,2001,2002,2003\}$$ satisfying the condition that $f(1)+f(2)+...f(1999)$ is odd.   My Attempt: Each integer in domain has $4$ choices and therefore the total number of functions is $f$ is $4^{1999}.$ Since there are an equal number of functions that yield odd or even result, we can directly write that the number of functions satisfying the above condition to be $2*4^{1998}.$ I am unsure about this last claim and would like to prove it (if it is true.)Also is the answer to this problem correct?  Edit $1$: I tried to proceed further in the following manner:   For a given mapping $f$ let the number of integers assigned to $2000,2001,2002$ amd $2003$ be $p,q,r$ and $s$ respectively, where $p,q,r,s\in \mathbb{Z}^+$. Therefore the sum in question can be written as $f(1)+f(2)+...+f(1999)=2000p+2001q+2002r+2003s.$ Clearly the sum will be odd iff $q+s$  is odd. Also note that $p+q+r+s=1999\Rightarrow p+r$ is even. On the other hand if we let $q+s$ as even then $p+r$ must be even. Now the number of values of $p,q,r$ and $s$ for which the above two lemmas hold is the same and therefore if we let $f$ to be the function which maps elements form $\{1,2,3,...,1999\}$ to $\{2000,2001,2002,2003\}$ such that $q+s$ is even and $g$ to be the function  hich maps elements form $\{1,2,3,...,1999\}$ to $\{2000,2001,2002,2003\}$ such that $p+q$ is even we will get a bijection.(Maybe!)


Are simply connected subsets of $\mathbb{R}^2$ all contractible?

The question see above. I thought there is a counter-example but not sure: $A:=\{(x,\sin\frac{\pi}{x}):x\in(0,1]\}$, Then $A'=\{(0,y):y\in [-1,1]\}$. Take $\overline{A}$ and connect $(1,0)$, $(0,1)$ with some arbitrary Jordan curve. It's simply connected, and I think a homotopy contracting it to a point would be impossible due to the continuousness problem at $(0,y)\times 0$ of $H(\vec{x},t)$, but I don't know how to give a strict proof. Any help would be appreciated.


I am having difficulties in keeping long URLs inside the correct margins in LyX. I can understand why there are difficulties in hyphenating URLs at a point that will ensure the average reader will understand that it's an inserted hyphen and not part of the URL, but is it not possible to ensure that additional spaces are placed in the line (to justify it) so that the URL all appears on one line, or that it breaks at a '/' or similar?  Or is there a more appropriate solution to this problem - here is one example of a problematic line:  \footnote{This is based on data for desktop performance found at \texttt{http://www.frc.ri.cmu.edu/\textasciitilde hpm/book97/ch3/processor.list.txt} - accessed 25 May 2013 - and data we collected on real time device performance.}


I have a Class called Heap. In it i have declared three separate lists (min_list, max_list and xor_list). When build_heap is called, it creates a heap list over some inital input list. I then set all three lists (min,max and xor) to the heap list. So they shouldn't be linked in any way. But when I do something like  self.min_list[2] = "6"  it changes all of the three lists. My code is below: class Heap: def __init__(self):     self.heap_list = [None]     self.currentSize = 0     self.alist = []     self.min_list = []     self.max_list = []     self.xor_list = []     self.i = 0     self.list_start = 0     self.SCA = 0     self.interval_to = 0  # interval in initial list, not in heap numbering     self.interval_from = 0  def build_heap(self, alist):     i = 0     self.alist = alist     while len(alist) > (2**i):         i += 1     self.i = i     self.list_start = (2**self.i)     for j in range(len(alist)):         self.heap_list.insert(self.list_start + j, alist[j])     for k in range((2**self.i)-1):         self.heap_list.insert(k, None)     # append None to list     # print(len(alist))     for l in range((2**self.i)-len(alist)):         # print("lol")         self.heap_list.append(None)     tup_list = self.heap_list     self.min_list = tup_list     self.max_list = tup_list     self.xor_list = tup_list  def smallest_common_ancestor(self):     bin_from = list(bin(int(self.interval_from) + int(self.list_start))[2:])     bin_to = list(bin(int(self.interval_to) + int(self.list_start))[2:])     smallest_common_ancestor = ""     p = 0     while len(bin_to) > p:         if bin_to[p] == bin_from[p]:             print(p)             smallest_common_ancestor = smallest_common_ancestor + str(bin_to[p])         p += 1      self.SCA = int(smallest_common_ancestor, 2)  def low_id(self):     print("Min_list before change: {}".format(self.min_list))     int_from = int(self.interval_from) + int(self.list_start)     int_to = int(self.interval_to) + int(self.list_start)     m = int_to // 2      while m + 1 != self.SCA:         if (m * 2) == int_to:             self.min_list[m] = self.min_list[(m * 2)]          elif ((m*2) + 1) == int_from:             self.min_list[m] = self.min_list[(m * 2) + 1]          elif self.min_list[m * 2] is None:             if self.min_list[(m * 2) + 1] is None:                 self.min_list[m] = None             else:                 self.min_list = self.min_list[(m * 2) + 1]          elif self.min_list[(m * 2) + 1] is None:             self.min_list[m] = self.min_list[m * 2]          elif int(self.min_list[m * 2]) >= int(self.min_list[(m * 2) + 1]):             self.min_list[m] = self.min_list[(m * 2) + 1]          else:             self.min_list[m] = self.min_list[(m * 2)]         m -= 1     return self.min_list[self.SCA]  At the beginning i do something along these lines, it shouldn't be the part of the problem  heap = Heap()  heap.build_heap(input_list) heap.interval_to, heap.interval_from = f.readline.split()


I was invited to play Rocket League, but it shows a warning:    What does that mean? Is it safe to accept the invitation? What will happen?  It happens only for one person. All others work fine.


In what way does quoting parameters to `find` matter?

When looking for txt files, I run this command:  find . -name "*.txt" -print   This gives me a list of all the text files beneath current directory.  However, find . -name *.txt -print gives me the following error: find: paths must precede expression: mein.txt  Is this the generally expected behavior? What difference do the quotation marks make?


Why do KiCad's library footprints for 0402 resistors and capacitors have different pad sizes?

KiCad's default library footprint for C_0402 is longer than R_0402.  Why?


Ubuntu Instalation on VirtualBox - Problems: instalation freezes, or cannot be finished

I tried to install in VirtualBox (ver. 6.1.6) Ubuntu Desktop 18.4 Desktop and 16.04 Destktop from full images and also mini, but it still fails.   I set different path do store virtual drive and configuration files.  I tried to change settings in settigns of virtual machines:   changing video memory size Enabling and disabling Acceleration  different numebr of cores different types of virtual drives (VDI, VHD, dynamically allocated, or not) Acceleration interface (none, legacy, hyper-V, etc),  turning on and off Hardware Virtualization changing Motherboard's Chipset PIIX3 and ICH9   but still I have problems.  In most cases it was, that during starting i got message:  [   0.075766] Spectre V2: Spectre mitigation: LFENCE not serializing, switching to generic retpoline   but it seems, that instalation go furher and GUI instalator runs, but during loading GUI instalator, for one short moment I got additional message:  [   8.948746]  [drm:vmq_host_log  [vmwgfx]] *ERROR* failed to send log [   8.951199]  [drm:vmq_host_log  [vmwgfx]] *ERROR* failed to send log   In this case it is still running, and even that I can provide all the necessary information for installation like Time zone, name, pasword. But after that i got final maessage:    I was installing from ISO file downloaded from official Ubuntu site. I thought, that maybe there were error during download and ISO file was corrupted, but I did it a few times, and result was the same. Even I tried to install from minimal version of installer and download everything needed during installation.   Using other configugarion (which I cannot replicate now), instalation was stacking in GUI intstalator, and needed very much time to go further the initial setup.  Has anyone similar problem? Does anyone have any idea, what's wrong?  Best regards, Marcin  PS  I have HP EliteBook 745 G6, 16GB RAM, 256 GB SSD, Windows 10 1903, Virtualbox 6.1.6


Zero element of $\mathrm{Hom}_C(X,Y)$ in the additive category $C$

Let's assume $C$ is an additive category. How can we show that for each $X,Y\in\mathrm{Ob}(C)$, the morphism $X\longrightarrow 0\longrightarrow Y$ is the zero element of $\mathrm{Hom}_C(X,Y)$?


Check if string of words contains an email address

I am having a hard time forming a regex expression to check if a string of random words contains an email address. For example:    string str = "Hello, thank you for viewing my ad. Please contact me on the phone number below, or at abcd@gmail.com"     =Match    string str - "Hello, thank you for viewing my ad. Please contact me on the phone number below"    =No match  How can I check whether a string contains an email address using regex? Any help would be highly appreciated.


I know that Gaussian Integers are a subset of complex numbers. They are numbers in the form   $G = \{a + ib \,\vert\, a,b \in \mathbb{Z}\}$  So to prove that a set is countable, I need to find a function $G \rightarrow \mathbb{N}$ such that every $n$ has finitely many preimages (from ).  How should I go about proving that it is countable? I don't really understand what preimages mean.


Is it possible to animate a mesh's geometry without using Shape Keys?

I would like to animate a mesh's geometry without using . Is this possible?


Is there a way to change the emission number of a particle system, without affecting the emission number of the mesh it's separated from?

I have a mesh with a particle system.    I then split the mesh (using P > "separate by selection") and have 2 objects with 2 particle systems.    However, I like each particle system to have a different emission number, so I select U > "Object & Data, Materials + Tex".  I can then remove the particle system from one mesh (and the other remains), but I can't alter the emission number of one without affecting the emission of its counterpart. Is there another way to separate data I don't know about?    Current Solution:  There is a workaround if I delete one system, then re-add it with the appropriate number, but I'm wondering if there's a better way already in place.


I have two hard disks in my PC (160 GB & 80 GB). The 160 GB hard disk has Ubuntu 12.04 installed in it while the 80 GB hard disk has Windows XP. I added the 80 GB hard disk just a few days ago, before which I was using only the hard disk with Ubuntu.   Before the addition of the second hard disk, the Time & Date settings worked fine in Ubuntu(It showed the correct time and date every time I booted my PC). But now, whenever I boot my system, the time is wrong. Even if I set it correctly it becomes wrong the next time I boot my PC.  What is causing this problem and how can I resolve it?


Why did Bajor allow the Cardassians to retake DS9?

In "A Call to Arms" (DS9, episode 5x26), it is made clear that the Dominion has a non-aggression pact with Bajor, which would prevent the Cardassians from retaking Bajor.  However, since DS9 is under the control of Bajor (ever since the occupation ended) and only administered by the Federation, why did the Bajorans allow the Cardassians to take control of the station?  Shouldn't it be protected by the non-aggression pact as well?


Is there a final set of rules that govern the use of "ie" and "ei" in words?

My son asked me this question and checking the web revealed some rules but none of them handle all sorts of exceptions. How do I teach my son this usage ?  Deadrat earlier answered "Encourage your son to read voraciously". Agreed, this is true and comes through experience, but now that I committed to him that I will give him some answer, I ended up trying this forum to get an answer that is explainable to a 6 year old kid.


What was Bran's plan to kill the Night King?

Bran went out of his way to be alone in the Godswood so he could meet the Night King.  When the Night King does finally meet him, Bran just looks at him and doesn't do anything.      If Arya had not come and save him it seems like he would be dead.   What was his plan?


Can I install two Ubuntu versions on the same machine?

I have Ubuntu 10.10 32 bit already installed on my machine..I am using MongoDB and it does not work properly with 32 bit machine.  So I want to install 64 bit Ubuntu 10.10 on my system on another partition (so that I can have both 32 bit and 64 bit versions).  Is it okay to install both 32 bit and 64 bit? I mean will it give any problems? On which partition should I install the 64 bit version? My partitions are as follows:  Filesystem            Size  Used Avail Use% Mounted on /dev/sda1              37G   11G   25G  30% / none                  1.4G  260K  1.4G   1% /dev none                  1.4G  776K  1.4G   1% /dev/shm none                  1.4G  244K  1.4G   1% /var/run none                  1.4G     0  1.4G   0% /var/lock /dev/sda6             129G   73G   50G  60% /home /dev/sda7             127G   76G   45G  64% /vol   Waiting for your replies.


Why doesn't the off-topic flag allow you to pick from any of the sites?

On many occasions, I've found questions that should be moved to AskUbuntu, or Unix/Linux, but when I click the "flag" link, I don't have those as options. I hate to leave something flagged as off-topic with no suggestion of where to put it, so I just cancel.   What determines the sites that show up on that list? Is it best to flag them off topic even if the ideal site doesn't appear?


How do I get the list of open file handles by process in C#?

How do I get the list of open file handles by process id in C#?   I'm interested in digging down and getting the file names as well.   Looking for the programmatic equivalent of what process explorer does.   Most likely this will require interop.   Considering adding a bounty on this, the implementation is nasty complicated.


A torus (a doughnut-shaped object) is formed by revolving the circle    $$x^2 + y^2 = a^2$$   about the vertical line $x = b$, where $0 < a < b$. Find its volume.   I have tried to create an integral that makes sense but I keep getting it wrong. We are learning shell method and disk method if that helps. I'm just stuck at where I should even start with this problem. Any help would be appreciated!


How can the unstable particles of the standard model be considered particles in their own right if they immediately decay into stable particles? It would appear to a layman such as myself that these heavier unstable particles are just transient interplay of the stable forms.


Need to download package and all dependancies for armhf debian

So, I need to download a package and all its dependencies for armhf Debian. The thing is that I am stuck on an Ubuntu machine. How can I download all of this stuff?


$$700^{1734} \mod{347}$$  I know how this could be calculated if I had $376$ in the exponent, using Fermat's theorem. But I have no idea how to approach this problem. What theorem's are appropriate to refer to?


UK standard Visa - bank statement type, proof of vacation reqest

I am super thankful to you guy for helping.  So, I want to go with my boyfriend to London and he will be paying for the trip mostly (9 days). We want to show them his savings account (bank statement). Is this possible or it has to be the bank statement from the account you get salary om? I have a permanent contract and pay slips but my paycheck is not even medium amount. And so, does having an approved vacation proof is very very important?  Thank you!!!  Leona


My Android App is working fine when unsigned. But after singed in when i am opening my app then it is showing Null Pointer Exception.  I tried to create signed apk by "Android Studio" and by "assembleRelase". But facing same exception in both.  Key store file , credential , alias all things are right. but not able to find out what's the issue?  Getting Following exception with signed apk -   java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.SearchView.setSearchableInfo(android.app.SearchableInfo)' on a null object reference     at com.example.pck.MyActivity.onCreateOptionsMenu(Unknown Source)     at android.app.Activity.onCreatePanelMenu(Activity.java:2820)     at android.support.v4.app.FragmentActivity.onCreatePanelMenu(Unknown Source)     at android.support.v7.internal.view.k.onCreatePanelMenu(Unknown Source)     at android.support.v7.app.ai.onCreatePanelMenu(Unknown Source)     at android.support.v7.internal.view.k.onCreatePanelMenu(Unknown Source)     at android.support.v7.internal.a.d.f(Unknown Source)     at android.support.v7.internal.a.e.run(Unknown Source)     at android.os.Handler.handleCallback(Handler.java:739)     at android.os.Handler.dispatchMessage(Handler.java:95)     at android.os.Looper.loop(Looper.java:135)     at android.app.ActivityThread.main(ActivityThread.java:5254)     at java.lang.reflect.Method.invoke(Native Method)     at java.lang.reflect.Method.invoke(Method.java:372)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)   and my gradle file is as following -    android { compileSdkVersion 21 buildToolsVersion "22.0.1"  defaultConfig {     applicationId "com.example.app"     minSdkVersion 17     targetSdkVersion 22 }  signingConfigs {     release {         storeFile file("myfile.keystore")         storePassword "password"         keyAlias "alias"         keyPassword "password"     } }  buildTypes {     release {         minifyEnabled true         proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'         signingConfig signingConfigs.release     } }   }  Could anyone please suggest me , what would be the issue?  Thanks in advance!


I installed Wine through the terminal using these commands:  sudo add-apt-repository ppa:ubuntu-wine/ppa  sudo apt-get update  sudo apt-get install wine1.5   I know that I've removed at least part of wine. I removed the .wine folder in my home folder and I managed to remove the repository via this command:  sudo apt-add-repository --remove ppa:ubuntu-wine/ppa   Now when I try to install wine 1.4 via Ubuntu software center, it tells me I must remove these items to install wine:     Microsoft windows compatibility layer (binary emulator and library)   wine1.5      Microsoft windows compatibility layer (64-bit support)   wine1.5-amd64      Microsoft windows compatibility layer (32-bit support)   wine1.5-i386:i386   I've already tried this command:  sudo apt-get --purge remove wine  but it said that wine wasn't installed. Some assistance would be appreciated.


Import from Access .accdb file to SQL Server

How to import data from Access .accdb file to SQL Server? What should I choose in SQL Server Import and Export Wizard?     Suppose we choose OLE DB Provider for SQL Server Integration Services, then if that is a correct direction, what should be choose next from the following window? What to type in fields Data Source and Location, which mean more or less the same?    I followed instructions described here:  I have installed Microsoft Access Database Engine 2010 Redistributable  However I was hopeless in seeing Microsoft Office 12.0 Access Database Engine OLEDB  Update  If I choose Data Source as Microsoft Access (Microsoft Access Database Engine) I end up getting error message the one shown on picture below. Moreover I think that this data source is tailored for files mdb, not accdb.


I wanted to report a bug in the Android app here on MSE (as suggested by the help text) and got a warning "some of your questions have not been well received..."   As I only have asked two questions yet (both positive score) I wonder why.


Expected Value Inequality - bounded by sums of probabilitys

I have to show the following inequality: $$ \sum_{k=0}^{\infty} P[Y>k] \leq E[Y] \leq \sum_{k=1}^{\infty} P[Y>k]$$ under the condition that Y is a non negative continuous random Variable.  My first idea was to rewrite the inequality using integrals, but then i end up having to integrate over a sum, which is nothing im particulary excited about. Any Ideas on how i can do this?


Trying to build MariaDB, I get the error: You must put some 'deb-src' URIs in your sources.list

I follow  docs on how to build MariaDB on my Ubuntu. It says run On a Debian based distribution: apt-get build-dep mariadb-server-10.X where X is the suffix of the major version.  So I run sudo apt-get build-dep mariadb-server-10.5  and get this error: Reading package lists... Done E: You must put some 'deb-src' URIs in your sources.list  This error hint message is meaningless to me.  Even tried sudo apt-get build-dep mariadb-server-10.5 sudo apt build-dep mariadb-server-10.5 sudo apt build-dep mariadb-server-10.4 sudo apt build-dep mariadb-server-10.3  Also, used a simpler command and yet I get the same problem: $ sudo apt-get build-dep build-essential Reading package lists... Done E: You must put some 'deb-src' URIs in your sources.list  How to fix this error? My Ubuntu is a server with a gui desktop installed on top of it $ uname -a Linux myserver 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux  PS. While I probably can use apt install, I do not really want to install anything more than it is mandated.


How to prove that $a^na^m = a^{n+m}$ provided that either $n$ or $m$ is not an integer

When n and m are both positive integers, to show that $a^n  a^m = a^{n+m}$ will be pretty straightforward:  $$a^n  a^m = (\underbrace{a\cdot a\cdots a}_{n\text{ copies}})(\underbrace{a\cdot a\cdots a}_{m\text{ copies}}) = (\underbrace{a\cdot a\cdots a}_{n+m\text{ copies}})= a^{n+m}$$  Now suppose that, for example, $n \in \mathbb R$ and $0 < n < 1$ and $m \in \mathbb R$  How do you show that $a^na^m = a^{n+m}$ in that scenario too?


Using arithmetic comparison in if:true statement in Lightning web component

I came to a situation where I want to render a text based on there index value. So, Let's assume I am having a loop which is having an index variable and I want to show some specific text if the index value is 0 or 5 or 10. But I am not sure how could I use the arithmetic comparison in HTML file of LWC. Below is the sample code.  <template if:true={navigation.data} >     <template for:each={navigation.data} for:item="tab" for:index="index">                   <template if:true={index==0 || index==5 || index==10}>
 {tab.Title__c}
         </template>          <template if:false={index==0 || index==5 || index==10}>
 {tab.Title__c}
         </template>      </template> </template>


editing local group policies with windows registry

I am trying to edit the local group policy by using windows registry. I noticed something odd : changing the register value does not affect the local group policy editor.  Example : when I navigate in the registry Editor to HKLM:SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions and that I set AllowAdministratorInstall to 0 instead of 1, it does not change anything in the local group policy editor and "Allow administrators to override Device Installation Restriction Policies" is still marked as "Enabled".  It does not work either if I restart the machine. I am working on Windows 10 64bits.  Does anyone have an explanation for this ?


Combining wildcard command along with %s in where clause statement for ArcPy?

I am trying to write a script where the user can search for a five digit zipcode using an input statement and a search cursor. The zipcodes in the file though are nine characters long (i.e. xxxxx-xxxx) so I'm trying to use the wildcard character after five digits in the where clause  but I can't figure out either where to put it or the syntax I'm supposed to use. Currently I can get the use input zipcode to print out but when I try putting the % wildcard in I get an error. Can anyone help me?  Here is my code so far:  import arcpy   #set workspace work=raw_input("work= ") arcpy.env.workspace=work zip5=input("zip5= ") strZip= str(zip5)  def searchHospitals(work,zip5):     fc= "Hospital.shp"     whereClause= '"ZIPCODE" LIKE'+"'%s'"% strZip     print whereClause


I have created values for RSA encryption but it doesn't always work

I am using the values as follows:   $(p, q, n, \phi(n), e, d) = (1033, 5039, 5205287, 5199216, 65537, 3784241)$  Yes, I have made sure $e$ and $\phi(n)$ are coprime.  For example, if I were to encrypt the value $13130$, I would get $4664915$ and then I decrypted $4664915$ and got $13130$.  The problem is when then I encrypted the number $1310731326$ and got $3386045$, when I went to decrypt $3386045$, I got $18660$ which is nowhere near $1310731326$.  I've been trying all day and still can't find the solution. Can someone help me please!?!?!


I am using this  Schematic:  Buck Converter Specifications :  Input Voltage - 18V to 32V Switching Frequency - 300kHz Output Voltage 9V Load Current - 0mA to 200mA Maximum.  When measuring the switching frequency using an oscilloscope, I am placing the probe directly on the TP1102 and also measuring the output voltage on the 47uF capacitor pad. I got the below waveforms : Input voltage of 14V:  However, with the same input voltage, I am just removing the probe which was placed at the switching frequency node. Now, I didn't observe the ringing. Input voltage of 14V without probing the switching frequency :  As you can see, the ringing vanished once I disconnected the probe. Can someone tell me how this ringing at the switching frequency node is happening even though I am probing at the TP1102 and how this is coupling at the other probes also? Please also provide a solution on how to avoid this ringing while measuring the values. Below is the ringing frequency:


How to partially enable a field in biblatex?

To produce an annotated reading list, I want to present the reader with two components of the list: a) a thematically sorted, annotated part b) an alphabetically sorted, non-annotated part  I use biblatex-chicago. I do note the points of an earlier  on suppressing fields. My question is how I can keep a field enabled for (a) whilst disabing it for (b)?  One option I recognise is, of course, to not work on this via fields, but annotate in the main tex file, outside of the bib-file. Ideally, I would want to use a solution that can work with fields in the bib file.


How to specify what MAC, cipher and key exchange openssh should use when generating the key?

I am learning openssh and I found that the fundamental of openssh has 3 components.   Cipher - to encrypt the data Message Authentication Code (MAC) - to ensure data integrity that is data is not changed while it was doing a journey to the end user. Key exchange -  It is used for session  key exchange.   Questions:   Is there any other important part for configuration in openssh? While generating the openssh key, how I do I tell what cipher, MAC and key exchange it should use?


Is it possible to detect, inside a package, whether `\errorstopmode` is in effect?

The title says it all: can I test, inside a package or a macro, whether \errorstopmode is in effect?


Software for creating beamer presentations

Lyx provide a simple GUI to create LaTeX presentations. But has lot of limitations. Ultimately you end up using LaTeX mark up. Is there a better program to create LaTeX presentation similar to LyX?


"framing is not allowed" error when uploading gif file

I was trying to upload a gif file (4MB) into a post. I get the following error:     For security reasons, framing is not allowed. Click OK to remove the frames.   See this gif screenshot (click  if it doesn't play):    Why I am getting this error? Is the size of the file a reason?  Same story is here, on meta, when trying to upload same file.


Replace Win10's Powershell with Powershell 6.0.0

The question is simple, even though the answer might not be, but how can I replace Windows 10 default powershell (major 5) with the one on GitHub (Major 6)?   If installed normally it'll be installed in %programfiles%\PowerShell with executable named pwsh.exe. Is there a way of updating PS 'locally' so that it gets automatically replaced by the newest one? Am I missing something?


Why Everything has exchanged places on my android Interface?

Well, I don't know how but today suddenly my first (and new) android phone (Moto E) got "sick" and everything on both the sides of the interface switched places. It is like reflection about vertical axis. I mean everything looks fine except that,...   operations for which I previously used my Right-Hand, Right-Thumb, etc., I now have to use my Left-Hand, Left-Thumb etc.  Things that were displayed Left aligned previously, are now being displayed Right-aligned. Text Alignment changed. The swipe that worked rightward previously is now changed to Leftward. Swapped direction of swipe. the signs that were previously on Top-Right (battery, time etc.), now have swapped their positions with signs on top-left (notifications and stuff). Memory status that increased rightward, is increasing leftward.   And I am also seeing occasional glitches in the graphics here and there. One of such is that only half of the context menu appear within ES file browser, when mobile is held horizontally. It seems that it is because its shape is not getting updated while the interface turns 90 degrees.  Is it due to some virus? I recently allowed app form unknown resources to install adobe flash (that didn't work, btw). I also have changed my runtime from Dalvik to ART.  Please tell me how to fix this...Thnk you!  Edit: I changed from Dalvik to ART 4 days ago and till today morning, everything was fabulous. Today I updated chrome and installed pocketbook app. And out of nowhere doom struck my humble mobile. Also "Mirroring" is indeed there but only of the relative position of elements.


I'm using Lubuntu 18.04 LTS 32 bit and need to know what choices I have, if any. Thanks!


I have a method which gets a string of consecutive bytes and i need an array of bytes out of it:   void  GetByteArray(string paddedResistance) {    unsigned char cmd[4]={0x00,0x00,0x00,0x00};      list<string> resistanceBytesAsString;      for (int i = 0; i < paddedResistance.size(); i+=2)    {        resistanceBytesAsString.push_back(paddedResistance.substr(i, 2));     } }   This is the input value : "00000100"  and i will split it and add it to the list as four separate strings:  00 00 01 00  I need to convert each of them in order to be able to populate the cmd unsigned char array but i can't figure out how to do it.  In C# i would use   Convert.ToByte(myString, 16);   to populate a byte array.


What does the 'A' trailing letter in Atmel's ATtiny devices mean?

I have both on stock: ATtiny861A-SU and ATtiny861-20SU.  But I can not find out any difference between them except 'In-System Programmable via SPI Port' available for 'A' version.  Could anyone tell me what is the difference between those two devices?  Thanks!


(1) $ \forall x ( P(x) \lor  Q(x))  \iff     \forall x (P(x)) \lor \forall x (Q(x) )     $, is this the same as writing $ \forall x ( P(x) \lor  Q(x))  \equiv     \forall x (P(x)) \lor \forall x (Q(x) $ ? As the truth table for iff requires both sides to evaluate to true or both sides to evaluate to false, in order for the statement to be true? (2) I cannot convince myself that the above iff statement is false, I tried this counter-example: Let the domain of discourse be {2}, P(x) = x is even, Q(x) = x is odd. Then wouldn't both sides of the iff statement evaluate to true, since P(x) is true, Q(x) is false, then $P(x) \lor Q(x)$ is true?. I am not exactly sure how the scope of the quantifier affects the truth values of the predicates? Would appreciate any help to clear this doubt, thanks!


Calculating convergence angle for point data in QGIS

I have been a user of ArcGIS Desktop for many years and this function is easily done within ArcMap using the 'Calculate Grid Convergence Angle (Cartography)' tool.  I am wondering if there is a similar function in QGIS.  A little explanation of my process.  I deal with directional surveys for wells on a constant basis. Typically these are reported to the state in their local State Plane coordinate system and as Grid North.  Since i work in a project that contains multiple states however, converting them to True North instead of their typical Grid North (say New Mexico East NAD83 and Texas Central NAD27) is how i keep them accurate in a NAD27 BLM 13N project. The geologics software I use does the proper rotation for them as long as they are true north.  What I have typically done is create a fishnet in ArcGIS and kept the point file that is a byproduct of that.  In that point file i create fields to store the X,Y, and convergence angle for each point, for their local CRS. I then translate each local CRS (keeping the convergence angle of the original CRS) into the combined NAD27 BLM 13N project and can make a grid out of those points for each states wells. I can then sample the wells to a grid and subtract the convergence angle from the azimuth of the wells directional surveys to create True North surveys.  In QGIS I have found how to do the fishnet portion (much easier) however I cant seem to find the same functionality for storing the convergence angle in a field of that shapefile. I have looked in the field calculator under geometry and typing in various searches. I have discovered how to calculate the X and Ys just cant find that darn angle. For NME NAD83 SPCS convergence angles should be around -.7 to +.6 degrees and Texas Central (since Texas went horizontal with its SPCS's) is around -3.5 in the East to +3.25 or so in the West.


I have applied for a PhD program in USA. I have mentioned a professor's name in the SOP. Will the professor only get the application to review or the other professors will also be able to see my application? Will the other professors mind as I did not mention their name?


Quadratic Divergences in Dimension Regularisation

I think that dimensional regularisation only regularises logarithmic divergences and not quadratic divergences. If you agree, or know someone who does, please comment.


Pause a process based on screen blank status?

I am running Debian 9 but this is a more universal Linux question.  I have an Intel NUC (i5-4250U) with integrated graphics. When I run memory-intensive tasks in the background my system lags graphically. I am using the built-in i915 driver. I have 16GiB of memory and at no time am I swapping to disk.  I would like to have this process pause when I am using my computer. The best way I can think of determining if my computer is in use is to query the status of the screen blanking mechanism.  The tasks I am running in the background deal with being paused (manually) with no ill effects. They take days to run so when I forget to unpause them I lose a lot of potential work.  Ideas?  Thanks!  Edit #1: I was running Wayland, but I switched back to X so I can use the "" command, which returns the number of milliseconds since the user last did something.  , I modified the bash script to pause/unpause a particular PID. It would be neat to specify part of a process name but I can work with the PID okay.  There is most certainly a better way to do it, but this works for now.  #!/bin/bash pid=11677 idle=false idleAfter=10000 while true; do   idleTimeMillis=$(xprintidle)   if [[ $idleTimeMillis -gt $idleAfter && $idle = false  ]] ; then     kill -CONT $pid     idle=true   fi   if [[ $idleTimeMillis -lt $idleAfter && $idle = true ]] ; then     kill -TSTP $pid     idle=false   fi   sleep 1 done


Apostrophe in a variable in SQL statement

I have the following sql select statement which my variable $name does contain apostrophe (eg. ABC's), thus there will be an error.  Can someone kindly advise how can i change the sql statement to be able to retrieve information even though the $name contain apostrophe? I would only want to change directly in the sql statement. Thanks.  select * from tableA where name='$name';


HttpServletRequest object giving null when setting the attribute

I am getting userId from database using HQL in my DAO class.But when itried to set it in session , it is giving null pointer exception . here is the code in DAO class.  @Repository("loginDAO") public class LoginDAOImpl implements LoginDAO{      @Resource(name="sessionFactory")     protected SessionFactory sessionFactory;     HttpServletRequest request;     public void setSessionFactory(SessionFactory sessionFactory) {         this.sessionFactory = sessionFactory;     } public Session getSession(){     return sessionFactory.openSession(); }     public boolean checkLogin(String userName, String userPassword) {          Session session=sessionFactory.openSession();         boolean userExist=false;         String sql_query="from Users as o where o.userName=? and o.userPassword=?" ;         Query query=session.createQuery(sql_query);         query.setParameter(0, userName);         query.setParameter(1, userPassword);         List list=query.list();          if((list.size()>0) && (list!=null)){             userExist=true;             //TO get the user id to insert into orders table              Users user=null;             user=(Users) query.list().get(0);             Long id=user.getId();             System.out.println("Id is "+ id);             **//This is giving Null Pointer             request.getSession().setAttribute("id", id);**               }         session.close();     if(userExist==false){System.out.println("user name or password wrong");}         return userExist;     }  }   i am sure that id has value. Thanks in advance.


Why are the number of verticies in a clique graph less than its a parent graph

I am reading up about Graph theory and the example it gives for a Clique Subgraph looks like this...    Now it states that the bottom graph is "obviously" the clique graph for the top. Is this because it is the smallest graph that can be made so all vertices are adjacent? Would, for example, a graph with 5 or 6 vertices need to leave some unconnected?   Also it mentions that a Clique is a "Maximal complete subgraph" but I thought subgraphs were supposed to contain the same edges. So why are there only 3 nodes with degrees greater than 2 but in the clique there are 4


Is there a way to manually set DX and DY when moving anchor points?

I'm a Software Engineer willing to learn more about design stuff. I've been trying to create a logo for a project and I am stuck trying to use curved lines. When moving anchors points, I'm having trouble with positioning dX and dY because of my trackpad's lack of precision. Is there a way to manually set dX and dY position in Illustrator?  Picture Example: Can't set dY to 12px.


Article saying it used as hash function producing a 128-bit hash value. It can still be used as a checksum to verify data integrity, but only against unintentional corruption. So when it's neither encryption nor encoding, Is it only use as securing and verify data integrity but not concern of decoding?


How can I automatically download lyrics in iTunes?

Is there a way to automatically download lyrics in iTunes?


Functional equations $f(x+y)= f(x) + f(y)$ and $f(xy)= f(x)f(y)$

Let $f:\mathbb{R}\to \mathbb{R}$ is a function such that for all real $x$ and $y$, $f(x+y)= f(x) + f(y)$ and $f(xy)= f(x)f(y)$, then prove that $f$ must be one of the two following functions:   $f:\mathbb{R}\to \mathbb{R}$ defined by $f(x)=0$ for all real $x$   OR   $f:\mathbb{R}\to\mathbb{R}$ defined by $f(x)=x$ for all real $x$   I got to the point where putting the two equations together, you get $f(x+y)f(x)= f(xy) + f(x)^2$ and plugging in $f(x)=x$ checks with it. So am I going in the right direction or am I just doing some guess work? Is there a more elegant way of doing it?   Thanks


cross reference between class with friend class included in C++

I have two headers having cross-reference between each other. I did research and the solution is to pre-define the classes involved. For example, A.h and B.h cross-referencing each other. // A.h #ifndef A_H_ #define A_H_  #include "B.h"  class A {     friend class B; protected:     int data; public:     A(void) {data=1000;} }; #endif /* A_H_ */  // B.h #ifndef B_H_ #define B_H_  #include "A.h"  using namespace std;  class A; // adding the pre-definition of A works IF scr.data won't be called  class B {   friend class A; public:     B() {};          void setup(A &scr) {         scr.data = 0; // this line cause compile error     } };  #endif /* B_H_ */   If B is not a friend of A and scr.data is not called in setup(A &scr), the program compiles without any problem. How could I fix it cross-reference issue when friendship needed for both classes? Thanks.


Do database engines update when the updated value is the same?

Suppose I am running multiple column update on one row. Does the database engine physically write new data to the database if some of the columns contain the same values as existed previously in the database? If so, how can it be avoided?  I'm about to implement a job which will run an update on a large table and most of the values will be the same but still, it has to recalculate them all. I am wondering if the update will also rewrite each column even if there is no need to, because the storage media will degrade faster.


I have started learning java. I am learning  Boolean in java. Boolean has two types, true & false. In C there was nothing like this. We have either 0 or 1. So, I want to know how does true and false work? How is it stored in memory? Does it require 1 bit space or more? Is it some type of string? For example,  class Test { public static void main(String[] args) {     System.out.println( 5 > 6 ); }   }  I get :  false   So, what is the size of false? It looks like a string in java.


Git Merge only single file from master into current branch

I have just started using git. I created branch-A from master. I have created the file abc.txt in branch-A and merged branch-A into master successfully. Now I am working same file in branch-A and want to merge master's (which abc.txt) file into branch-A (abc.txt) file. I tried "git checkout master abc.txt" but it replaces branch-A file with master's abc.txt.  I know "git merge master" will do the work, but if someone can show me how to merge single file ONLY into current branch.   Thanks in advance


Detailed instructions for replacing KingoRoot's Superuser with SuperSU

KingRoot's Superuser, while effective at its main purpose, is throwing up adware lockscreens.  I'd like to replace it with SuperSU but have had difficulty finding instructions detailed enough for my low level of knowledge.  I tried just installing SuperSU from the play store but that failed.   When googling, I see results for kingroot, kingoroot, and I don't even know if they are the same or not.  The Superuser package on my device is com.kingouser.com version 2.1.6.8 (2168). The device is an Azpen A746, the world's 2nd cheapest tablet.  Detailed information on replacing this SuperUser with SuperSu would be greatly appreciated.


At what point is the curvature of $y=-\ln(x)$ maximal?

I used the equation   $$k = \frac{|f''(x)|}{(1+(f'(x))^2)^{3/2}}.$$  Just by looking at its would think the max is at $x = 1, y = 0$.  What is the correct answer?


Why didn't Norrington try to save himself?

In Pirates of the Caribbean: At World's End, Liz Swann was taken captive along with her crew members after being made Captain and a Pirate Lord by a dying Sao Feng. A redeemed James Norrington is among those who imprisoned her, but after some soul-searching, he releases them.   Liz is about to escape when Bootstrap Bill tries to stop them. And Norrington says something about 'their destinies have been entwined, but never joined' and faces Bootstrap. Rather than let Liz be re-captured, he shoots the rope she's hanging from, drops her in the sea and gets himself skewered.  Why?   He had both his sword and his gun out, and pointing at Bootstrap, but he uses the gun on the rope, and the sword, not at all. He could have just shot Bootstrap, pulled himself onto the rope, then used the sword to cut it. Even if he didn't want to hurt Bootstrap, he could've shot him in the leg or something.   Or he didn't even need to shoot. Climb up to the rope and cut it and follow Liz down. From how Bootstrap was acting, it didn't seem likely he'd have jumped off after them, or had the presence of mind to grab the rope (in which case, just cut it again). And it couldn't be that he couldn't reach the rope: Liz just hopped up and grabbed it, and she's a lot shorter than him.   It was really convenient, I guess, giving Norrington an honourable way to die, to break the love triangle and leave Liz for Will, but still... Did he really mean to get himself killed?


i tried to solve this question without success. do anyone know the answer?  f(n,m) presents the number of binary strings (empty string included) that include at most n-1 times '1', and at most m times '0'.      prove: f(n,m) = $\binom{n+m+2}{n+1}-1$


Javascript callback when IFRAME is finished loading?

I need to execute a callback when an IFRAME has finished loading. I have no control over the content in the IFRAME, so I can't fire the callback from there.  This IFRAME is programmaticly created, and I need to pass its data as a variable in the callback, as well as destroy the iframe.  Any ideas?  EDIT:  Here is what I have now:  function xssRequest(url, callback) {     var iFrameObj = document.createElement('IFRAME');     iFrameObj.src = url;                 document.body.appendChild(iFrameObj);         $(iFrameObj).load(function()      {         document.body.removeChild(iFrameObj);         callback(iFrameObj.innerHTML);     }); }   This callsback before the iFrame has loaded, so the callback has no data returned.


I'm looking for a KeyValuePair class in Java. Since java.util heavily uses interfaces there is no concrete implementation provided, only the Map.Entry interface.  Is there some canonical implementation I can import? It is one of those "plumbers programming" classes I hate to implement 100x times.


Duplicate question from same user, neither one has answers

What should I do if I see that a user has posted the exact same problem multiple times? Neither of the questions have answers, so I can't flag the latter one as a duplicate of the first one. Is it okay if I flag it for moderator attention?


Proving this sequence is a Cauchy sequence

I have a positive infinite series $a_n$ and I know that $a_n$$a_{n+1}$ converges to 1 and also that $a_n$$a_{n+2}$ converges to 1.   How do I prove that $a_n$ is a Cauchy sequence (without using limit arithmetics)? How do I calculate $lim_{n->inf}a_n$ = ?   Thanks.


If a card were to have every keyword created, what would the order of them be?

I've looked around and haven't been able to find a complete answer so I'll ask in case anyone has an answer or can point me to one.  I know the order isn't alphabetical, the keywords usually appear in a specific order. Take  and  for example, which puts the keyword order as:  flying, first strike, vigilance, trample, haste, and protection for Akroma   and   flying, first strike, vigilance, lifelink, and protection for the Sphinx.  As with both, it goes flying, first strike vigilance, then some other evergreen keywords, then ends with protection. So is there any distinct order that WotC follows for these?


$R$ integral domain : $u\in R^*, a \text{ is prime} \iff au \text{ is prime}$

$R$ integral domain : $u\in R^*,\; a \text{ is prime} \iff au \text{ is prime}$   I started by looking at $auu^{-1}$. What should I do next? I'd be glad for help.   Note: $u \in R^*$ meaning is $u$ is invertible.


Lebesgue Integral of Non-Measurable Function

In what follows I'm only considering positive real valued functions.  Everywhere I look about the definition of the Lebesgue integral it is required to consider a measurable function. Why do we not define the integral for non-measurable functions? From what I see we require measurablility of the simple functions that approximate f, not f itself. The definition I'm considering is given a measure space $X$ with measure $\mu$ and a measurable function $f$ we define  $$ \int_E f \, \mathrm{d}\mu = \sup_{s \in S} \int_X s \,\mathrm{d}\mu $$ where $S = \{ s : X \to [0, \infty) \mid 0 \le s \le f, s \text{ is simple, measurable} \}$.  For example consider $\mathbb{R}$ with the sigma algebra $\varnothing, \mathbb{R}$ with measure $\mu$ given by $\mu(\varnothing) = 0, \mu(\mathbb{R}) = 1$ and consider $f = \chi_{[0,1]}$ then why can't we say that $$ \int_{\mathbb{R}} f \,\mathrm{d} \mu = 0 $$ (since the only measurable simple function such that $0\le s \le f$ is $s = 0$) which would follow the definition above? Is this not well defined? In general I'm struggling to see why measurable functions (other than measurable simple functions) are used.


On StackOverflow I wrote : It often comes that a XML API reorder tags without our will. (API : Application Program Interface) Is "a XML API" the correct sentence or "an XML API" ?


\sqrt but with a vertical drop at the end

I have a formula   $$\sqrt{t_{i + 1} - t_i }\epsilon_{ij}$$   But when rendered, it looks a little unclear since the epsilon is not adequately separated from the square root.  I'm reluctant to reorder the terms in any way. What I'm after is some way of putting a short vertical line after the square root symbol (say 1/4 height attached to the horizontal bar) which is a common thing to do.  Does anyone know how?


How to control Windows 7 snap feature with two monitors?

There is an  feature in Windows 7. However, it seems to not work when dragging a window to the edge that is adjoined to the second monitor. How to make it work properly? Maybe some regedit modification or something?


Mystery woman appears after flood, marries matriarch's son

I have been searching for so long for a certain series of novels.  The only things I remember about the series is that the covers had an eye and a house partly submerged under water. It was a series of 6 books, each with a different colour. The plot concerns a woman who mysteriously appears after a flood in a southern town ruled by the matriarch of a family. The mysterious woman ends up marrying this matriarch's son and then the fun begins: disappearances and good fortune to those who deserve it.  If this sounds at all familiar, please help.


Can I tap permanents if it's not a cost?

Blinkmoth Urn has an ability that only works if it is untapped at the start of a player's main phase. It has no activated abilities.  Can I, on my turn or any other turn, tap the artifact just to tap it, so it won't become untapped until just before my main phase? Is it legal to tap a permanent even if you are not paying a cost nor resolving a tap effect?  (If possible, a citation from the rules would be helpful, as the answer affects a coworker's main Commander deck.)


I've been reading  and it is talking about some weird behaviors of Generics that I was not aware of before: == and != comparisons in Generics. Let's look at the example below: (Note: you can run the following codes directly on )  static bool AreEqual<T>(T first, T second) {     return first == second; }   You can use this method as it is. When you execute the following code, the compiler will complain and say "Operator '==' cannot be applied to operands of type 'T' and 'T'"  void Main() {     int first = 1;     int second = 1;     (first == second).Dump("Normal Comparison");     AreEqual(first, second).Dump("Generic Comparison"); }   If there is no type constraint applied, you are only allowed to compare with null as following:  static bool AreEqual<T>(T value) {     return value == null; }   However, when you apply Reference Type Constraint like following, then Main() method will work:  static bool AreEqual<T>(T first, T second) where T:class {     return first == second; }   but if the it is Value Type Constraint, then the following code won't work:  void Main() {     int first = 1;     int second = 1;     (first == second).Dump("Normal Comparison");     AreEqual(first, second).Dump("Generic Comparison"); }  static bool AreEqual<T>(T first, T second) where T:struct {     return first == second; }   I think Jon Skeet is trying to explain it in the following pages. He is saying:     Basically, when AreReferencesEqual<T> is compiled, the compiler   doesn't know what overloads will be available -- it's as if the   paramaters passed in were of type object.   The quote above might be the answer but I am still confused as for why it is behaving like this. By the way, AreReferencesEqual<T> method is the same thing with my method with the signature static bool AreEqual<T>(T first, T second) where T:class. My question is why we are seeing this strange behavior.


18.04 is slow in VirtualBox—how to make is usable?

I run Ubuntu in VirtualBox.  18.04 is considerably less responsive than 16.04, with exactly the same VM settings (3D acceleration, 3 cores, 4 GB RAM, guest additions installed, host: macOS, VirtualBox 5.2.18).  18.04 is often slow to respond to clicks and even typing. It is borderline unusable. 16.04, on the other hand, works perfectly fine.  The 18.04 is a fresh install.  Is this considerable performance drop an inevitable consequence of switching to Gnome 3?  Are there any simple settings I can try to make it usable?  I do not need animations or fancy visual effects—this in an OS in a VM so it gets only occasional use, and I mostly just need the terminal.    More details:   Right after boot, performance is satisfactory After opening a Terminal, and maximizing it, performance becomes awful. It does not recover even after unmaximizing the Terminal window, or closing it. Turning off 3D acceleration in VirtualBox makes is more sluggish after startup (e.g. moving window on the screen is choppy), but it never gets unusably slow after maximizing a window.


Conflicting "facts" about the likelihood employed in Bayes theorem

Consider the following "facts" about Bayes theorem and likelihood:   Bayes theorem, written generically as $P(A|B) = \frac{ P(B|A) P(A) }{ P(B) }$ involves conditional and marginal probabilities.  Focus on $P(B|A)$. Wiki Bayes theorem says this is a conditional probability (or conditional probability density in the continuous case). This seems quite clear in the alternate expression $P(B|A) P(A) = P(A|B) P(B)$. In the Bayes theorem, $P(B|A)$ is called the likelihood. The likelihood is $P(B|A)$ viewed as a function of $A$, not of $B$. It is not a conditional probability because it does not integrate to one. See  , or Bishop Pattern Recognition & Machine Learing book p.22, "Note that the likelihood is not a probability distribution over w, and its integral with respect to w does not (necessarily) equal one."     There is a problem here, one of these three facts must be wrong, or else I do not understand something. How can the likelihood in the Bayes theorem be a conditional probability, and also not a conditional probability?  I am not sure (since I do not understand!), but perhaps an answer would be to explain how to view the Bayes equation in terms of what is variable and what is fixed, and how probabilities (and non-probabilities -- the likelihood) can combine in a "type consistent" way.  For example, is it accurate to say that in the Bayes equation $P(A|B) = \cdots$ we should regard $B$ as fixed and $A$ as variable?  And if $P(B|A)$, the likelihood, is not a conditional probability, then the form of Bayes is $$     \text{conditional probability} = \frac{ \text{other} \cdot \text{probability}  }{ \text{probability}  } $$ (or if dealing with continuous variables, $$     \text{conditional probability density} = \frac{ \text{other} \cdot \text{probability density} }{ \text{probability density} } $$ ) where "other" is the type of the likelihood (not a conditional probability density). Is there a rule that  $$    \text{other} \cdot \text{probability} = \text{probability} $$ ?  To me this seems wrong:  multiplying a probability by a thing (likelihood) with arbitrarily large values will cause the result to not integrate to 1.  Aside, I have tried to asked this question , but it was closed as a duplicate. However, I think the people deciding it was a duplicate did not understand the question, which is specifically about the likelihood appearing in Bayes theorem.  I hope this version is more clear!  Please read the whole question before marking it as a duplicate, thank you!


Prove this equation has only two integer solutions

The problem:     Prove that the only integer solutions of the equation $x^3=y^2+2 $ are $x=3$ and $y=\pm 5 $.   I found these related posts:       I have tried techinques similar to the ones used in those posts, however I have not been able to solve it yet.    Edit: The first comment gave me the hint of working in $\mathbb{Z}[\sqrt{-2}]$.  $$x^3=y^2-(-2)=(y+\sqrt{-2})(y-\sqrt{-2}) $$ And we define $a:=y+\sqrt{-2}$ and $b:=y-\sqrt{-2} $. Now I need to prove that $a$ is a cube in $\mathbb{Z}[\sqrt{-2}]$. As a side note, that would imply that $b$ is also a cube in $\mathbb{Z}[\sqrt{-2}]$. Once I prove that, I can use the answers in the post titled "", and solve the problem.  How can I prove that $a$ is a cube in $\mathbb{Z}[\sqrt{-2}]$ ?


How to make NVIDIA GEFORCE 710M a default graphics on Ubuntu

Honestly, my default graphic driver for Ubuntu 13.10 is Intel® Ivybridge Mobile. But got a Nvidia driver which it was already been installed. So, how to make Nvidia driver as a default graphics driver?


Properties of prime characteristic, $p > 0$

Let $R$ be a ring of prime characteristic, $p > 0$ and $x,y \in R$. Show that:  $$(x+y)^p = x^p + y^p$$    To recall definition; a characteristic of $R$ is $n\in\mathbb N \cup \{0\}$, such that $\forall a \in R, na = 0.$ If such a number does not exist then $n=0$.  Any help is much appreciated.


What does being drawn to someone mean in the case of a movie or book character? (the complete question is: to which character in the film were you the most drawn?)


Harvard Referencing, and how to get Latex to use et al when more then 2 authors are present

I am complete new to using LaTeX and I am using it in Overleaf. I am trying to accomplish a more or less Harvard referencing. It works fine, but LaTeX tends to show me all the authors listed in my in-text citations, so it looks like this: (Author a, Author b, and Author c, 2000). I need it to use the abbreviation "et al." when more then 2 authors are named as authors of the same paper. How can I manage that? I do not know much about coding or such things so I need a simple explanation on how to write it, if that is possible. Thank you :) currently it looks like this:  \usepackage[style=authoryear-ibid,backend=biber]{biblatex} \addbibresource{references.bib}   and I use \autocite for in-text citation.


given two continuous functions, can I prove the inequality $||fg|| \le ||f|| ||g||$ using triangle inequality?

Let $f,g : [0,1] \to $ R be continuous functions. show that $||fg|| \le ||f||||g||$. So what I know and found out : The absolute value is a particular instance of the norm. So, $||x||= |x|$ Suppose I take - $f(x)=5$ and $g(x)=2$ be continuous for all x $\in[0,1]$ Then $|f(x)|=|5| $ and $|g(x)|=|2|$ $|fg|=|5\times2|=|10|=10$ $|f||g|=|5||2|=5\times2=10$ hence, $|fg|=|f||g|$,  and  from $||x||= |x|$, we get : $||fg||=||f||||g||$ but how do I proof ? $||fg||<||f||||g||$. Am I to use triangle inequality ?


Why is this getting NullPointerException & ArrayIndexOutOfBoundsException errors

Getting a NullPointerError on line 24 (second for loop) and an arrayoutofindexexception on the main method. I have no idea how to solve this and an explanation would be much appreciated. Please help!  Edit: 'NullPointerError' solved, just needed to initialize the ArrayList for it, but still can't work out the 'ArrayOutOfIndexException' error.  import java.util.*;  public class SnackBar {     private Random randomizer;     private String[] flavours;     private SnackMachine barMachine;     ArrayList<Student> students;      public SnackBar(int numStudents, int packetsBarMachine, int costPacket)     {         randomizer = new Random();         flavours = new String[] {"prawn cocktail", "tango cheese", "natural", "paprika", "salt and vinegar"};         barMachine = new SnackMachine(packetsBarMachine, costPacket);  students = new ArrayList<Student>();          for(int i = 0; i < packetsBarMachine; i++)         {             barMachine.addPack(new PackOfCrisps(randomFlavour()));             i++;         }          for(int j = 0; j < numStudents; j++)         {             students.add(new Student(randomFlavour(), barMachine));                         j++;         }     }      public String randomFlavour()     {         int random = randomizer.nextInt(flavours.length);         return flavours[random];     }      public void describe()     {         System.out.println("The SnackBar has " + students.size() + " hungry students.");         System.out.println("The Snackmachine has:");         System.out.println(barMachine.countPacks("prawn cocktail") + " packets of prawn cocktail crisps,");         System.out.println(barMachine.countPacks("tango cheese") + " packets of tango cheese crisps,");         System.out.println(barMachine.countPacks("natural") + " packets of natural crisps,");         System.out.println(barMachine.countPacks("paprika") + " packets of paprika crisps,");         System.out.println(barMachine.countPacks("salt and vinegar") + " packets of salt and vinegar crisps.");     }      public void runSnackBar(int nSteps)     {         int step = 1;          while(step <= nSteps)         {             System.out.println("Time Step " + step);             describe();             int atRandom = randomizer.nextInt(students.size());             students.get(atRandom).snackTime();             step++;         }     }      public static void main(String[] args)     {         SnackBar bar = new SnackBar (Integer.parseInt(args[4]), Integer.parseInt(args[20]), Integer.parseInt(args[5]));          bar.runSnackBar(Integer.parseInt(args[30]));     } }


Can we use sine and cosine graphs for varying temperatures?

I have been researching for a while looking for what to include more than just deriving the equation of Newton’s law of cooling and a website gave me inspiration by stating what if the temperature of the environment is changing (± C). In conclusion, I wasn’t sure if that person carried out the mathematical process in the right way and the only place I could ask for accurate information is here so please let me know what you think about the mathematical process he went for and if it is right or wrong. Thanks a lot. Website:


Let $g$ be continuous on $[0,1]$ and differentiable on $(0,1)$. If $g(0)= g(1) = 0$, prove that $g'(x) = g(x)$ has a solution

I try to use Darboux's Thm and IVT but end up stuck. Is using mean-value theorem many time can get the result?


Is there a "hook_user_login_failed" hook? Or something similar?

I'm needing to detect when a login failure happens in Drupal and am finding it to be exceedingly difficult even after searching Google.  I have to believe this exists somewhere.  I found this post back from 2007 which seems like an entirely reasonable request for a "failed login" hook:  Is there something that allows this?  Thanks in advance.  AG3


Finding all homomorphisms between two groups - couple of questions

Consider $\mathbb{Z}_{15}$, and $\mathbb{Z}_{18}$. Let's say I want to find all homomorphisms $f:\mathbb{Z}_{15}\rightarrow \mathbb{Z}_{18}$.  I'm not interested in the answer in particular, mostly I'm concerned about understanding the properties of homomorphism, so I can answer these kind of questions myself.    So, first of all, I know that homomorphism of cyclic group is completely determined by it's generator. But, will any mapping do?    For example, the easiest one to find is $f(1)=0$, where $Imf=\left\{0\right\}$, and $Ker=G$  (correct me if I'm wrong, this kind of $f$ can be defined between any two groups). Now, what things do I need to consider, when trying to find another one (if it exist)? Can I decide that $f(1)=1$? (It is not onto, but that shouldn't bother me) And what about $f(1)=2$? and so on...  My second question is: what about non-cyclic groups? Consider $D_{10}$ and $\mathbb{Z}_{18}$, for example. Do I need to go and define $f$ for each and every $g\in D_{10}$? (it doesn't have a generator)  A link to a useful (and simple) summary regarding homomorphisms properties will also be great. Thank you in advance.


i am trying to install Ubuntu alongside Windows8 but while trying to do so it was showing as"This computer currently has no detected operating system" can i know whats wrong with this?? please help me in clearing out this problem. thanks in advance


How can I understand "could have been reached had Nazi discipline?"

While I was reading a book, I found a sentence incomprehensible. It reads, "A danger point could have been reached had Nazi discipline and its totalitarian control been relaxed."  I can understand the meaning only vaguely through the context, though, still I'm not sure what the "had Nazi discipline" is meant to be.  And what's the exact grammatical structure of it?  Thanks!


How can I find posts related to lost reputation due to a "user was removed" message?

Today I noticed that my reputation got truncated by 64 points, and when I looked at my reputation history, I saw  notifying me of points removal along to a "user was removed" message. Each has a slightly different timestamp, ranging from 12:39:04 to 12:39:43.    I can't find the questions/answers concerned by this (and I don't remember having won as much as 65 points once, making this even stranger). I would like to find out how I could have lost 65 points while I never won as much in a single question/answer.  Is there a way I can check which of my posts were impacted?


Import KML to Postgis and preserve style

We have a number of KML files we have authored and are currently using Google to share with end users.   For future needs, we would like to import these documents into a Geo Spacial database (we choose PostGIS). We later want to be able to display these KMLs in client applications. We have not picked a client end rendering tool yet but it will likely be something like OpenLayers or Leaflet.   After experimenting with importing the KML to PostGIS using ogr2ogr we have found that the style specification in the KML (given in Style elements and linked to from features with StyleURL elements) are not being translated to the layer tables generated by the tool. We are able to reassemble the layers in a viewer like QGIS but since the styles do not translate we lose icons, colors, transparencies, etc.   Is there in option for ogr2ogr to import this data to PostGID? Or another compatible tool? What would be the logical step to preserve these styles and allow a client rendering tool like OpenLayers/Leaflet to display them in their original form?


What countries do for people from China, over stay their visa because can't return because corona virus?

Many country and airline cancel airplane travel from/to China because corona virus. This force many people from China over stay their visa. Will countries extend their visa?


How to disable Windows 10 System and Compress Memory feature?

As the title says, how do we disable it?  It maybe promising for low memory devices but not on a 32 Gig Ram, it consumes about 50% of disk access and it slows down other access on local disks.  There were few answers discussed in  but it does not work now on Windows 10 Build 1511


Why is SelectOption not supported by JSON class?

Here's the code:  List<SelectOption> options = new List<SelectOption>(); options.add(new SelectOption('One', 'One')); options.add(new SelectOption('Two', 'Two')); System.debug(LoggingLevel.INFO, '==========' + JSON.serialize(options));   The error:     System.JSONException: Apex Type unsupported in JSON:   System.SelectOption   Is there a way I can convert List<SelectOption> to some other data type before serializing it? in a way that when I deserialize I get it back as a List<SelectOption>?


How can I stop certain apps from appearing in the Dash?

I would like to hide all items that I don't need from appearing in App Lens.  For example: XTerm, File Roller and the Home Folder.  Is this possible?


should we add the letter s in the word "live"when it is used it the phrase "the girl who live "? Which one is right?


Are objects passed by value over Java threads?

Consider the following:  public class Capture extends Thread {     private byte[] data;      public Capture(byte[] data) {         this.data = data;     }      @Override     public void run() {         // do something with the data byte array     } }   Would the data argument in the constructor be passed as reference to the new Java thread or would the object be re-instantiated, thus duplicating the memory?


Is there a way to conditionally format border styles in Google Sheets?

The title says it all.  I have some conditional formatting rules, it seems I'm limited to some basic formatting options;    Is there any workaround to apply further formatting options (such as border)?


Modify proof environment: new line before qed square

I would like to put the QED square at the end of proof on its own line. How can i do that? The qed square should be right aligned and below the last line of the proof.


Powershell opening with ridiculously tiny font (about 5) and won't change to new default settings

Powershell is opening with extremely small font (about 5 pts). When I go to Defaults > Font, the setting is a reasonable 8 x 12 pixels but that is not what is showing on the screen. I try changing some of these settings, but there is no change. When it first opens it appears for a split second at the expected size and then shrinks into the top left corner. This appears to be a bug.  I am aware of  regarding certain fonts requiring certain font sizes. Recommendations in answers to that question have been attempted with no success. This is a different problem.  OS: Windows 8.1 Powershell opened as Administrator.


I have a query which runs much faster with select top 100 and much slower without top 100. The number of returned records is 0. Could you explain the difference in query plans or share links where such difference explained?  The query without top text:  SELECT --TOP 100 * FROM InventTrans      JOIN      InventDim      ON InventDim.DATAAREAID = 'dat' AND          InventDim.INVENTDIMID = InventTrans.INVENTDIMID WHERE InventTrans.DATAAREAID = 'dat' AND        InventTrans.ITEMID = '027743' AND        InventDim.INVENTLOCATIONID = 'КзРЦ Алмат' AND        InventDim.ECC_BUSINESSUNITID = 'Казахстан';     The query plan for the above (without top):      The IO and TIME statistics (without top):  SQL Server parse and compile time:     CPU time = 0 ms, elapsed time = 0 ms.   SQL Server Execution Times:    CPU time = 0 ms,  elapsed time = 0 ms. SQL Server parse and compile time:     CPU time = 0 ms, elapsed time = 0 ms.  (0 row(s) affected) Table 'INVENTDIM'. Scan count 0, logical reads 988297, physical reads 0, read-ahead reads 1, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'INVENTTRANS'. Scan count 1, logical reads 1234560, physical reads 0, read-ahead reads 14299, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.  (1 row(s) affected)   SQL Server Execution Times:    CPU time = 6256 ms,  elapsed time = 13348 ms. SQL Server parse and compile time:     CPU time = 0 ms, elapsed time = 0 ms.   SQL Server Execution Times:    CPU time = 0 ms,  elapsed time = 0 ms.     The used indexes (without top):  1. INVENTTRANS.I_177TRANSIDIDX    4 KEYS:  - DATAAREAID  - INVENTTRANSID  - INVENTDIMID  - RECID 2. INVENTTRANS.I_177ITEMIDX    3 KEYS:    - DATAAREAID    - ITEMID    - DATEPHYSICAL  3. INVENTDIM.I_698DIMIDIDX    2 KEYS:    - DATAAREAID    - INVENTDIMID     The query with top:  SELECT TOP 100 * FROM InventTrans      JOIN      InventDim      ON InventDim.DATAAREAID = 'dat' AND          InventDim.INVENTDIMID = InventTrans.INVENTDIMID WHERE InventTrans.DATAAREAID = 'dat' AND        InventTrans.ITEMID = '027743' AND        InventDim.INVENTLOCATIONID = 'КзРЦ Алмат' AND        InventDim.ECC_BUSINESSUNITID = 'Казахстан';     The query plan (with TOP):        The query IO and TIME stats (with TOP):  SQL Server parse and compile time:     CPU time = 0 ms, elapsed time = 0 ms.   SQL Server Execution Times:    CPU time = 0 ms,  elapsed time = 0 ms. SQL Server parse and compile time:     CPU time = 0 ms, elapsed time = 0 ms.  (0 row(s) affected) Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'INVENTTRANS'. Scan count 15385, logical reads 82542, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0. Table 'INVENTDIM'. Scan count 1, logical reads 62704, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.  (1 row(s) affected)   SQL Server Execution Times:    CPU time = 265 ms,  elapsed time = 257 ms. SQL Server parse and compile time:     CPU time = 0 ms, elapsed time = 0 ms.   SQL Server Execution Times:    CPU time = 0 ms,  elapsed time = 0 ms.     The used indexes (with TOP):   1. INVENTTRANS.I_177TRANSIDIDX      4 KEYS:      - DATAAREAID      - INVENTTRANSID      - INVENTDIMID      - RECID  2. INVENTTRANS.I_177DIMIDIDX     3 KEYS:     - DATAAREAID     - INVENTDIMID     - ITEMID  3. INVENTDIM.I_698DIMIDIDX     2 KEYS:     - DATAAREAID     - INVENTDIMID  4. INVENTDIM.I_698ECC_BUSUNITLOCIDX     3 KEYS     - DATAAREAID     - ECC_BUSINESSUNITID     - INVENTLOCATIONID   Will deeply appreciate any help on the topic!


Why is the texturing on my model rendering blurry and without the alpha chanel?

I'm trying to make a render of a minecraft charterer. This would be simple enough, but I am a total noob with blender. I texture mapped it just fine, but it comes out blurry and the alpha chanel (that shows up perfectly while editing) is pure white. I need it to look like does in editer when I render it. I am at a total loss, I don't know how to fix this. I really need some help  picture on the right is the texture, the picture on the middle is how it looks in the editer, and the picture in the middle is how it looks when rendered.


Why doesn't alias foo='echo "This is a quote: \'"' work?

In order to remind myself when I try to use shopt in Zsh instead of setopt, I created the following alias, testing it first at a shell prompt:  $ alias shopt='echo "You\'re looking for setopt. This is Z shell, man, not Bash."'   Despite the outer single quotes matching and the inner double quotes matching, and the apostrophe being escaped, I was prompted to finish closing the quotes with:  dquote > _   What's going on?  It appeared that the escaping was being ignored, or that it needed to be double-escaped because of multiple levels of interpretation...  So, just to test this theory, I tried double-escaping it (and triple-escaping it, and so on) all the way up until:  alias shopt='echo "You\\\\\\\\\\\\\\\\\\\\\\'re looking for setopt. This is Z shell, man, not Bash." '   and never saw any different behavior.  This makes no sense to me.  What kind of weird voodoo is preventing the shell from behaving as I expect?  The practical solution is to not use quotes for echo, since it doesn't really need any, and to use double quotes for alias, and to escape the apostrophe so it is ignored when the text is echoed.  Then all of the practical problems go away.  Can you help me?  I need resolution to this perplexing problem.


What would be the best way to use TeX to typeset basic arithmetic as it's done in school - for example, to typeset equations like   356 + 42  ---  398   written in this way?


What does the module keyword mean in C# and why it is not in keyword list?

I found strange System.AttributeTargets value - AttributeTargets.Module. I searched it's usages and found this C# code:  [module: ContractNamespace("http://tempuri.org")]   It is an attribute on a something called "module".  What does this module mean in C#? Why can't I find it in the ? Isn't it a keyword? When is it used?


Why is the Lagrangian defined as $L=T - V$?

Please try to provide a sufficient answer, and when it is just „because it satisfies Newton‘s equations“, please try to give an example or explain it. If you know it, I would be very happy if you could tell me how Lagrange himself came up with this.