Encopresis: how can we encourage our child to clean himself or ask for help immediately instead of ignoring the dirty underwear?

Our son (now nearly 6.5 years old) has problems with potty training for years now. (The long history is described here:  ).  Remarks:  We are in regular contact with a doctor specialized in such problems and her diagnosis is "encopresis with obstipation".  We still have those problems, at least every second day on average he is soiling between 1 and 7 underpants. That's ok for us, but the main problem is that when it happens, he does not try to clean himself immediately or tell the kindergarten teachers or us to help him, but very often he just ignores it and continues playing/"working"/whatever he does and often even does not admit it if he's directly asked if he has dirty underwear.  We think that this makes things even worse, as it smells for sure and other people notice it and the other kids are making fun of him for that reason.  But although he is very clever and comprehensible in other matters, it happens very often, that he tries to hide it and continue as if nothing had happened.  That makes it very frustrating for his parents and we are not sure how to handle it, as every attempt to "motivate" him acting on it immediately has failed - positive motivation as well as negative one (negative consequences).  We know that this is a very sensitive and difficult topic - more than ever as because we had a lot of arguments and hot discussions with him in the past. But it feels wrong to just let him do what he wants (and at worst run around the whole day with his smelling pants) - also as cleaning him(self) is much easier and faster as long as it is "fresh" ...  Any hints are appreciated.  In autumn, he'll go to school, which might make things even more complicated as there will be nobody any more who feels responsible for helping him clean himself...    Additional remarks:  I am not sure, why he so often refuses to tell us directly, when he soiled his pants. Some ideas (maybe it is often a mixture of several reasons or even something else...):   He does not want to interrupt his play/activity He does not want that other people notice it (however we do everything to help him and to avoid that others notice it, if he tells us) He sometimes might be so concentrated on his activity, that he really does not notice it directly Maybe he did not tell it us for some of the above mentioned reasons and then is ashamed that he did not tell it directly and tries to ignore or hide it Maybe he's trying to ignore it Defiance - some days ago he said, the more often we remind him to "tell us as soon as it has happend", the less he would do so... I decided and promised to him to not mention it again for some weeks. The months/years before, we (parents) had reminded him several times a day to tell us - especially before "critical" situations, where it would be especially difficult to clean him or where the "damage" might be significant   I asked him, if there are situations, where he feels, that he must go to the toilet but would rather keep playing/crafting/doing what he currently does. He said something like "not many", but maybe he just says what he knows is best for him ... I'm not sure.  There are, however, also times when he tells us... we had one such "accident" in public transportation, where he directly told us that there was poo on his seat (shock), it was so much that it had even "jumped" out of his pants. Thanks to his quick reaction, we could clean it and search a place where to clean him.


Object Transform Origin to Geometry Floor

I have about 400 different Plant models. I need the origin to be at the very bottom of the plant so I can plant them at the correct height when I export them to Unity. Is there a faster way to do this than:   Snap cursor to Selected Set 3D Cursor Location Z to 0 Object transform origin to 3D Cursor


Show that $\left|\frac{\alpha - \beta}{1-\bar{\alpha}\beta}\right| < 1$ when $|\alpha|,|\beta| < 1$

This is the question I'm stumbling with:   When $|\alpha| < 1$ and $|\beta| < 1$, show that:  $$\left|\cfrac{\alpha - \beta}{1-\bar{\alpha}\beta}\right| < 1$$    The chapter that contains this question contains (among others) the triangle inequalities:   $$\left||z_1| - |z_2|\right| \le |z_1 + z_2| \le |z_1| + |z_2| $$  I've tried to use the triangle inequalities to increase the dividend and/or decrease the divisor:  $$\left|\cfrac{\alpha - \beta}{1-\bar{\alpha}\beta}\right| < \cfrac{|\alpha| +|\beta|}{\left|1-|\bar{\alpha}\beta|\right|}$$  But it's not clear if or why that would be smaller than one.  I've also tried to multiply the equation by the conjugated divisor $\cfrac{1-\alpha\bar{\beta}}{1-\alpha\bar{\beta}}$, which gives a real divisor, but the equation does not appear solvable.  Any hint would be much appreciated.


I have the following DB-Structure: Please ignore where it says NULL    So now I want to use Linq to count where the DateAndTimeDateType.Day Field equals a given value and where the EventID is different.   Example:  So from DateAndTimeID 11 to 15, the day is 22.03.2019 and the EventID is the same for all of them. Now I want to count where the ID is different. So in this case the result should be 1.   At the moment I'm just counting where the Day is the same like shown in following code:  @Model.DateAndTimes     .Where(f => f.DateAndTimeDateType.Value.DayOfYear == renderedDayWithTime.DayOfYear)     .Count()


Splitting a person's name into forename and surname

ok so basically I am asking the question of their name I want this to be one input rather than Forename and Surname.  Now is there any way of splitting this name? and taking just the last word from the "Sentence" e.g.  name = "Thomas Winter" print name.split()    and what would be output is just "Winter"


Finding the closure of some subsets of the ordered square

I need to find the closure of these sets on the ordered square: $$A = \{(1/n)\times 0 | n\in \mathbb{Z}_+\}$$ $$B = \{(1-1/n)\times \frac{1}{2}| n\in \mathbb{Z}_+\}$$ $$C = \{x\times 0 | 0<x<1\}$$ $$D = \{x\times \frac{1}{2}| 0<x<1\}$$ $$E = \{\frac{1}{2}\times y | 0<y<1\}$$ I know that the closure is just the set itself united with its limit points. For $A$, the set of limit points, I imagine, are $\{<1,0>\}$, that is, the $x$ coordinate is $1$ and the $y$ is $0$. But  is says the reverse. What am I getting wrong? Following the same reasoning, $B' = \{<1,\frac{1}{2}>\}$ $C' = \{<0,0>,<0,1>\}$ What am I doing wrong?


How to make a partition windows can read?

I have installed ubuntu 12.04 and I need to make a new partition out of my system partition. That partition should be readable  by windows 7 in order to ease dual boot with Ubuntu. How can I proceed ?


Python element-wise tuple operations like sum

Is there anyway to get tuple operations in Python to work like this:  >>> a = (1,2,3) >>> b = (3,2,1) >>> a + b (4,4,4)   instead of:  >>> a = (1,2,3) >>> b = (3,2,1) >>> a + b (1,2,3,3,2,1)   I know it works like that because the __add__ and __mul__ methods are defined to work like that. So the only way would be to redefine them?


Why do you need a deflector shield at warp in Star Trek?

I understand that you need a deflector shield to clear a path in front of your starship when travelling at relativistic speeds, such as under impulse drive.    However, since the idea of warp drive is that you create a warp bubble around your ship and compress the space in front of you while expanding it behind you (basically moving the bubble of space that you're sitting in through space) then why do you need a deflector shield?  You're not moving relative to the space you're occupying.    Any particle in your path would just get pushed out of the way temporarily as you pass by.  That particle wouldn't even move relative to the space it's occupying... the space it's occupying would just get warped.    Now I can't imagine it's good for matter to exist in a highly warped area of space.  I imagine any macroscopic bit of matter entering a highly curved area of space would have a lot of internal stresses and absorb a lot of heat, perhaps becoming plasma, so perhaps the deflector shield actually deflects particles out of the path of the warp bubble itself.  That energy has to come from somewhere, which has to be the warp drive itself.  If it didn't take energy to warp through matter then you could theoretically warp right through a planet or a star without worrying about it, but that's clearly not possible.  Are there any canon explanations for why a deflector shield is needed at warp?


How does a Raspberry Pi 4 truly compare against a modern desktop CPU?

I am trying to find raw benchmark numbers between any fairly modern desktop processor and the Raspberry Pi 4gb/8gb, but I am struggling to do so. I understand that there are architectural differences meaning that some benchmarks can not be run on both an x86 instruction set and an Arm based instruction set. What I hope to determine from the raw performance numbers is if the Pi 4 is powerful enough to replace a dual/quad core desktop CPU based VPS with a similar amount of RAM.


Proof for divergence of $\int_1^\infty \cos(x^\frac{3}{4})$

As the title says, I am unable to find a proper proof for the divergence of  $$\int_1^\infty \cos(x^{3/4})$$  As its is not positive, I can't use any of the divergence tests, nor compare it to a sum.  Opening the integral and trying to solve it is resulting in something very ugly, and I doubt that it is the right way to do it.  Could use some help, thank you.


What should 10k users do with flagged answers?

Every once in a while I take a look at the tools page and see a high number of flags - like right now.  And there is indeed some pretty spammy stuff in there.  It's fairly self-evident what to do with flagged questions, I think - just vote to close/delete if the flags are in fact accurate.  But what about flagged answers?  It doesn't really seem like there's much we can do about those.  Should we:   Flag them again, hoping to bump the answer down and/or get it auto-deleted? Flag for (real) moderator attention, i.e. to confirm "yes this is really spam"? Just leave them alone (assuming that a proper mod will find it soon)?   Also - is there any particular action we should be taking if a post is erroneously flagged - i.e. somebody got annoyed that a question wasn't marked CW?  Some guidelines on how best to use this feature would be appreciated.


What does this symbol mean? Please i need help:   Its the symbol just before "$H^{t-1}$". Thanks for help


Add a reputation and achievements pane to iOS app

It'd be nice to see reputation updates in the app, as we get on both the desktop and mobile sites.  Mock-up of how this would look:        Other possible icon states:        While I understand reputation is shown in the feed, it's a bit unwieldy, and has no notification.   With this feature implemented, the feed could arguably lose both reputation and inbox items, and be left with the interesting questions that fill it up. This would make for a much more consistent UX across app and desktop.


DNS server won't work! [Bind9 running on Debian 7; virtualized through Proxmox 3.1]

First I'd like to thank everyone in advance for helping me - communities like this are exactly what amatuers like myself need when faced with perplexing issues.  I've recently begun virtualizing servers - on of which is a dns server running bind9 on debian 7.  My dhcp server correctly issues it as the primary dns for the network, but I just can't seem to get head or tail of why it isn't working.  Feel free to ask me for more info  Zone file (the email has been changed to hide my personal info)  ; BIND data file for kilraine zone ; $TTL    604800 @       IN      SOA     kilraine.lan. myaddress.myemail.com. (                      2014060303         ; Serial                          604800         ; Refresh                           86400         ; Retry                         2419200         ; Expire                          604800 )       ; Negative Cache TTL          IN      A       192.168.1.2 ; @       IN      NS      dns.kilraine.lan @       IN      A       192.168.1.2  dns2    IN      A       192.168.1.1 dns     IN      A       192.168.1.2 dhcp    IN      A       192.168.1.3 main    IN     A      192.168.1.10   Reverse zone file  ; ; BIND reverse data file for kilraine.lan ; $TTL    604800 @       IN      SOA     kilraine.lan. myaddress.myemail.com. (                      3006201401         ; Serial                          604800         ; Refresh                           86400         ; Retry                         2419200         ; Expire                          604800 )       ; Negative Cache TTL ; @       IN      NS      dns. 1       IN      PTR     dns2.kilraine.lan 2       IN      PTR     dns.kilraine.lan 3       IN      PTR     dhcp.kilraine.lan 10      IN      PTR     main.kilraine.lan   And lastly my named.conf.local file.    // // Do any local configuration here //  // Consider adding the 1918 zones here, if they are not used in your // organization // include "/etc/bind/zones.rfc1918";  zone "kilraine.lan" {         type master;         file "/etc/bind/db.kilraine.lan"; };  zone "1.168.192.in-addr.arpa" {         type master;         file "/etc/bind/db.192"; };   I have restarted bind9 numerous times, and I have always gotten "OK".  I used the dnsutils tool 'dig' on both the server and a client, each return the following      ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> kilraine.lan ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 46467 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0  ;; QUESTION SECTION: ;kilraine.lan.          IN  A  ;; Query time: 2 msec ;; SERVER: 192.168.1.2#53(192.168.1.2) ;; WHEN: Mon Jun 30 21:53:41 2014 ;; MSG SIZE  rcvd: 30   I get the following error if I try to use dig kilraine.lan @dns.kilraine.lan  couldn't get address for 'dns.kilraine.lan': not found   Though I get the original dig output from "dig kilraine.lan @192.168.1.2"  Thanks - I REALLY appreciate any help!  Please, don't hesitate for more info!!!


Replace figures by Figure placeholder and move all of them to bottom in LaTeX

I was asked by the journal to      do not embed figures and tables in the manuscript file   Google says me only about  solution.  However solution requires manual amendment of LaTeX file which I would like to avoid to do not remove too much content/do not broke LaTeX file.  I wonder if there is any command in LaTex to replace all content between \begin{figure} and \end{figure} with simple Figure X where X is a next consecutive number and move all of the figures/tables to the bottom. ... Or if there's any simpler solution


How many reflexive relation are there on a set with n elements?

How many reflexive relation are there on a set with n elements ?


Limit of the sequence $a_n = \frac{1+\sqrt2+\sqrt 3+ \cdots +\sqrt n}{n\sqrt n}$

I have to solve this sequence:  $$a_n = \frac{1+\sqrt2+\sqrt 3+ \cdots +\sqrt n}{n\sqrt n}$$  As a tip I've been told to use Stoltz-Cesaro for sequance of this form : $a_n = \dfrac{x_n}{y_n}$  So I did Stoltz-Cesaro $\dfrac{x_n - x_{n-1}}{y_n-y_{n-1}}$ and I end up with: $\dfrac{\sqrt{n}}{n\sqrt{n}-(n-1)\sqrt{n-1}}$. I am stuck at this point, can you please give me some tips on what to do next? Thank you.


bad spacing between macro and real rendering

Here is a capture of the current rendering I get :  I am obliged to set a "\," after the GC$_{\text{ph}}$ and WL to have a little spacing after these symbol to not interfer with classical text, that is to say : \newcommand{\GCp}{GC$_{\text{ph}}$\,} \newcommand{\WL}{WL\,}  and the Latex source : Here after a triplot showing the 2D joint distribution with individually the \GCp and \WL probes and their simple combination.  As you can see, this is not symmetric and even I put "\," on each side in \newcommand, this is not pretty. I am on overleaf. If someone could tell me how to fix this ?


Computing the integral of $\log(\sin x)$

How to compute the following integral?  $$\int\log(\sin x)\,dx$$    Motivation: Since $\log(\sin x)'=\cot x$, the antiderivative $\int\log(\sin x)\,dx$ has the nice property $F''(x)=\cot x$. Can we find $F$ explicitly? Failing that, can we find the definite integral over one of intervals where $\log (\sin x)$ is defined?


Add the possibility to cancel created flags that are still active

I accidentally created a flag as duplicate for this question:    I was in the input to select a duplicate. Typed some words and pressed enter. It automatically selected the first entry. It didn't ask me anything and created the flag.  That said, I believe it could be good to be able to cancel our own flags. I see it as active in when I click the flags I created but there is no way to remove it. As I see it, it should be possible to remove our own flags as long as they are active. When the flag get rejected or accepted, it should not be possible to cancel it.  One other way to handle flags could be to show a flash popup just after a flag has been created with a link to cancel it. If you let the flash message go away, then it won't be possible to cancel it or you'll have to go in your profile to remove (it if such feature could be added).


Fetch the row which has the Max value for a column

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


Regex works perfectly for hashtags and @usernames but not for URL's

I have a regex that I've been using for a while to highlight a hashtag (eg. #stackoverflow) or a username/mention (eg. @jeffjohnson) while a user is typing out text.  Here is how I create that regex:       NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"(#|@)(\\w+)|(#|@)" options:0 error:&error];   I want to add to this regex pattern so that it will also highlight a URL. So I changed it to the pattern to the following: @"(#|@|http)(\\w+)|(#|@|http)"  This works correctly when they type http it will become highlighted but when they type a colon (:) the colon is not highlighted.  If I try adding www to the regex pattern the same way that I added http, the same thing happens. www will highlight correctly but as soon as you type a period (.) the period will not highlight.  How can I add full URL detection to this regex pattern?


Adding magic link for Meta Stack Overflow?

In comments here on Meta SE I can use the magic link [so] to link to .  Consequently, I would have expected the magic link [meta.so] to link to  but that magic link does not seem to be available.  Can it be added, please?


I want to create a large menu structure, and the admin pages time out, so I cannot insert them via the admin screens.  How can I insert the menu entries directly in the database?   Thank you


Using Inkscape "pdf+latex" pictures: "pdfTex warning: PDF inclusion: multiple pdfs with page group included in a single page"

When I include multiple pictures produced in Inkscape and saved as pdf+latex in one page I get the warning:  pdflatex> pdfTex warning: pdflatex.exe (file D:/..... .pdf): PDF inclusion: multiple pdfs with page group included in a single page"   I found almost nothing via google.  Has somebody an idea?


Pretty formattings for warning and info blocks

I'm looking for pretty formatting for warnings, and others for some info or tips.  For the moment, I use the following formatting but maybe someone has one better idea.    To obtain this, I use the following code.  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[x11names,svgnames]{xcolor} \usepackage{graphicx} \usepackage{fourier-orns} \usepackage[framemethod=tikz]{mdframed} \usetikzlibrary{calc}  \makeatletter % Default settings for warnings     \newcommand{\warningSymbol}{\raisebox{0.8\depth}{\danger}}      \definecolor{warningColorText}{named}{Red3}     \definecolor{warningColorLine}{named}{Red3}     \definecolor{warningColorBack}{named}{LemonChiffon1}     \definecolor{warningColorBackSymbol}{named}{white}  % Inline mode     \newcommand{\warning}[1]{%         \textcolor{warningColorText}{\warningSymbol{}\,#1}%     }  % Block mode     \tikzset{         warningsymbol/.style={             rectangle,             draw  = warningColorText,             fill  = warningColorBackSymbol,             scale = 1,             overlay         }     }      \mdfdefinestyle{warning}{%         hidealllines      = true,         leftline          = true,         skipabove         = 12,         skipbelow         = 12pt,         innertopmargin    = 0.4em,%         innerbottommargin = 0.4em,%         innerrightmargin  = 0.7em,%         rightmargin       = 0.85em,%         innerleftmargin   = 1.1em,%         leftmargin        = 0.85em,%         middlelinewidth   = .2em,%         linecolor         = warningColorLine,%         backgroundcolor   = warningColorBack,%         fontcolor         = warningColorText,%         firstextra        = {             \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)             node[warningsymbol] {\warningSymbol};         },%         secondextra       = {             \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)              node[warningsymbol] {\warningSymbol};         },%         middleextra       = {             \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)              node[warningsymbol] {\warningSymbol};         },%         singleextra       = {             \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)              node[warningsymbol] {\warningSymbol};         },%     }      \newmdenv[style=warning]{@Warning}     \newenvironment{Warning}{\let\warning\relax\begin{@Warning}}{\end{@Warning}} \makeatother  \usepackage{lipsum}  \begin{document}  \warning{IMPORTANT !} \lipsum[1]  \begin{Warning}      \lipsum[1] \end{Warning}  \end{document}


Can we have tag synonym suggestions appear in suggested edit review queues?

So someone suggests a tag synonym. How does anyone else know about it? There is nothing on site which says when a suggestion has been made, so no-one knows. And if they don't know about it it can't be approved.  It would make so much more sense if these suggested synonyms appear in the suggested edits review queue. After all, tag wiki edits appear there.  Can this be done?


Installation failure Couldn't get size: 0x800000000000000e: Hardware Error

I use Windows in my  which has an upgraded BIOS. When trying to install Ubuntu 18.04, but this error occurred:


What do the names of Immunoglobulin subtypes mean?

What is the exact meaning and full form of  IgM, IgG, IgA, etc? What is the rationale behind the names of the isotypes, if there is one? For example, what does "M" mean in IgM?


sudo apt update  Can anyone help resolve this? ERROR: Fatal error: E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/b in/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cn f-update-db > /dev/null; fi' E: Sub-process returned an error code  File exists: desktop:/usr/lib$ ls cnf-update-db  cnf-update-db  File contents: #!/usr/bin/python3  import glob import logging import os import sys  from CommandNotFound.db.creator import DbCreator from CommandNotFound import CommandNotFound   if __name__ == "__main__":     if "--debug" in sys.argv[1:]:         logging.basicConfig(level=logging.DEBUG)     elif "--verbose" in sys.argv[1:]:         logging.basicConfig(level=logging.INFO)          db = CommandNotFound.dbpath     if not os.access(os.path.dirname(db), os.W_OK):         print("datbase directory %s not writable" % db)         sys.exit(0)      command_files = glob.glob("/var/lib/apt/lists/*Commands-*")     if len(command_files) > 0:         col = DbCreator(command_files)         col.create(db)


$$\int_0^1 \prod_{n\geq 1} (1-x^n) \, dx = \frac{4\pi\sqrt{3}\sinh(\frac{\pi}{3}\sqrt{23})}{\sqrt{23}\cosh(\frac{\pi}{2}\sqrt{23})}$$  This monstrous expression is from Tolaso Network (tolaso.com.gr). I have no idea how to approach it - converting the product to a sum of logarithms does no good, and one cannot switch the order of product/integral either. The product in itself doesn't converge to anything nice either.  I am interested in seeing the proof of the above identity, as well as an explanation of how exactly $\sqrt{23}$ becomes involved in such a deceptive integral. Both real and complex analytic solutions are welcome. A proof without the pentagonal number theorem would be nice as well, since that somewhat trivializes the problem.


What to do about well received answers that don't answer the question, if correctness of an answer is subjective/needs expertise to see it's wrong?

Recently on biology SE there was a question evolutionary biology which generated a lot of interest. Often these sorts of questions attract a lot of opinionated and flawed answers, and answers that don't actually (attempt) to answer the question. Unfortunately they generally get well upvoted because there are not enough people capable of finding the flaws or understanding the question properly*, and they are still interesting.   Essentially the question asks "Previously I thought that evolution was about improvement, but someone corrected me - it is not actually about improvement.  and a correct answer would show that, first of all, evolution is a process of change, and the reason we see so much improvement (adaptation) is because of selection, a mechanism of evolution. In other words, selection, not evolution, explains the frequency of improvement.  Many answers came (and went) that were wrong or long opinion pieces. Some have persisted though, and in fact there is an accepted answer with a score of 52 (54 up, 2 down). That answer doesn't, in my opinion**, answer the question. It explains that selection doesn't necessarily lead to increased complexity, which is another issue entirely. I think it has got a lot of upvotes because it is in an interesting post and generally well written, but it would answer the question "Does evolution always increase organismal complexity?"  Would it be correct to flag answers, which have been heavily upvoted and accepted, as not an answer? Even though it is well received, and may be interesting to read, it does not even attempt to answer the question.  I've read some posts on meta about how to deal with accepted answers () but it's a bit different with such highly upvoted answers and questions which may garner some opinion in the answers, and whether an answer does indeed answer the question is less clear cut, so I'm unsure what to do. I would really appreciate some guidance - I'm not comfortable leaving such answers on a subject I care about, evolution is subject to a lot of misconceptions in the public and such answers won't help in stopping that. I have tried downvoting and commenting on the post but with no success, my comment saying explaining why I think the answer does not answer the question is multiple upvoted.    * Understanding the true nature of the question requires a deep understanding of the subject because, in large parts, it is down to subtle differences in two processes.  ** Opinions formed by doing a PhD in evolutionary biology studying the process of adaptation


Can you use the Adobe Creative Clouds apps, the desktop version, on an iPad Pro?  Possibly through mirroring the display ( desktop to iPad)?


Making backup with Git in android studio

I'm working on a Calculator app. at the current state app works fine but I want to try a different approach which requires make drastic changes to my codes. I want to make a backup copy of my project and from what i heard Git is a good solution. So I installed Git and activate it in Android Studio. But I'm new in coding and do not understand Git or its linguistics. What I want is to be able to have complete backup of current state or version of my app before changing things and later be able to go back and forth between versions easily. It would be great if someone could help me with it? or knows a tutorial site or some videos which clearly explains things about Version Control and Git.


What is it that strips vocals from audio when a 1/8" audio jack is partially unplugged?

Every once in a while, my eighth-inch audio jack will slip loose and I'll seemingly lose only the voice part of a track -- leaving somewhat of a "karaoke" version. What I would guess about how audio plugs work suggests that I'd be making this up; however, I've asked and others tell me they've experienced this as well.  What causes this stripped vocals from audio when a 1/8" audio jack is partially unplugged?


In-universe, if someone is willing to make a sword out of Adamantium (for example to fight Wolverine), are there places where they could find it?  Is this a metal that one can mine or purchase? And if yes, where would one find these deposits?


I was looking for a MOSFET that I could use to control 3.7v 4A dc motors with for a quad copter. I'm very new to electrical stuff, but I read that I could use MOSFETs to control motors.  I look online for MOSFETs meeting the specs I listed above, and noticed that the majority of MOSFETs have labels with extremely high currents.  For instance  says 195A on it, and it seems really small.  Can MOSFETs that small really handle currents that high? Wouldn't they just melt?


Is there a sort of "two-sided semidirect product"?

Let $G,H$ be groups. Suppose we have both an action of $G$ on $H$, and an action of $H$ on $G$, both non-trivial. Let "$\cdot$" define the former action, and $\circ$ define the latter.  What can we say about the product: $$ (g,h)\,(g',h') := \big(g\,(h\circ g'), h\,(g\cdot h')\big), $$  or the product: $$ (g,h)\,(g',h') := \big(g\,(h\circ g'), (g'\cdot h)\,h'\big), $$  or anything similar where the other action is a right action?     Do we have a group?   Is this used somewhere?   Is it useful, or too general?   Thank you.


I am building a GUI with Tkinter at the moment. With the GUI I can create files, add certain lines to the files, delete lines, save and load files. My problem is, that i want to prevent the closing of the window if the current file wasn't saved. Is there a way to solve this problem?


Why setting value to a function's argument affects the input variable when iterated but not when used as vector?

I'll appreciate an explanation to the different results. I've written a simple code to pinpoint my question:  import numpy as np  def mulby2_v1(x):     x = x * 2     return(x)  def mulby2_v2(x):     for idx in range(len(x)):         x[idx] = x[idx] * 2     return(x)   vecin = np.ones(10,) vecout = mulby2_v1(vecin) print('v1:\n',np.vstack([vecin, vecout]))  print('--------------------')  vecin = np.ones(10,) vecout = mulby2_v2(vecin) print('v2:\n',np.vstack([vecin, vecout]))   Which result with  v1:  [[ 1.  1.  1.  1.  1.  1.  1.  1.  1.  1.]  [ 2.  2.  2.  2.  2.  2.  2.  2.  2.  2.]] -------------------- v2:  [[ 2.  2.  2.  2.  2.  2.  2.  2.  2.  2.]  [ 2.  2.  2.  2.  2.  2.  2.  2.  2.  2.]]   The input vector itself is modified in v2 but not in v1. Now why resetting a variable by index change the input while multiplying the whole vecotr by a scalar does not?


What have to be normally distributed: groups or whole sample?

It is a general and maybe basic question, but it will help me to avoid a mistake. To test the dependence of continuous variable on nominal with parametric test (t-test, ANOVA), "the data has to be normally distributed" (distribution have to be not much violated from normal).   But I don't clearly understand: I have to test the normality of the continuous data together (whole sample) or the normality of data in every single group?   And if my groups have small sizes (n=4-6), and therefore I fail to reject null, does this indicate a permission to use parametric methods?  Can anyone provide me a link to some good examples of statistical (biomedical) hypothesis testing with R (google did not helped)?


So according to  and  I should be using \(...\) instead of $...$ and \[...\] instead of $$...$$.   But what if I have a document where I've already used dollar signs a bit? How do I convert them? A simple find and replace won't work since:   It won't care whether $$ is a beginning or ending; and I use the dollar sign in the text (to refer to the currency).    Does anyone have a neat tip for this?


Is there an intuitive explanation for Maxwell's equations? I know they are axioms but is there a logical understanding of why instead of mathematical. Both forms don't explicate the scientific reasoning behind them to me.  I would appreciate a non- or minimally mathematical approach to them.


Uniform convergence with two sequences of functions

For, $n\ge 1$ let, $g_n(x)=\sin^2(x+1/n)$ , $x\in [0,\infty)$ and $f_n(x)=\int_0^xg_n(t)\,dt.$  Then, which is(/are) correct ?  (A) $\{f_n(x)\} $ converges pointwise to a function $f$ on $[0,\infty)$ but does not converge uniformly on $[0,\infty)$.  (B) $\{f_n(x)\} $ does not converge pointwise to any function on $[0,\infty)$.  (C) $\{f_n(x)\} $ converges uniformly on $[0,1]$.  (D)  $\{f_n(x)\} $ converges uniformly on $[0,\infty)$.  I found that, $$f_n(x)=\frac{1}{2}\left[x-\frac{1}{2}\sin(x+1/n)+\frac{1}{2}\sin(1/n)\right].$$  So, $f(x)=\lim_{n}f_n(x)=\frac{x}{2}-\frac{1}{4}\sin x$.  Now, $|f_n(x)-f(x)|\le 3/4$. So, by M-test, $f_n(x)$ is not uniformly convergent, but point-wise convergent. So option (A) is correct..Am I right??


If electric fields add, and intensity is proportional to $E^2$, doesn't superposing light violate energy conservation?

We know that the energy in a wave goes as electric field amplitude squared($E_0^2$) as given by poynting vector but the amplitude of electric fields are added linearly. To see why this creates a paradox, consider 2 lasers both with linearly polarized lights with electric field $E_0$. The total energy coming out of these lasers is then proportional to $2*E_0^2$. Now, suppose you find a way to add the amplitude of these 2 waves coherently so that the crest and trough match exactly with each other giving a net amplitude as $2*E_0$. Now, the energy carried by this wave would turn out to be proportional to $4*E_0^2$ which is greater than the energy we started out with!!!. How is this possible?


How to disable popup "Close this terminal?" when closing terminal?

Each time when I want to close terminal there is a popup with question "Close this terminal?" because some process is running in terminal. I don't care about this process. How to prevent terminal from showing this popup?


DOI does not appear in bibliography entries in authoryear mode

I am having this problem with elsarticle. When I compile the file the doi does not appear in the bibliography entries.   \documentclass[review, authoryear]{elsarticle} \usepackage{hyperref, doi}  \begin{filecontents}{mybib.bib} @article{Be05, author  = "Fernando Bernstein and Awi Federgruen", title   = "Decentralized Supply Chains with Competing Retailers Under Demand Uncertainty", journal = "Management Science", volume  = "51", number  = "1", pages   = "18--29", year    =  "2005", doi     = "10.1287/mnsc.1040.0218" } \end{filecontents}  \begin{document} \cite{Be05} \section*{References} \bibliographystyle{elsarticle-harv} \bibliography{mybib} \end{document}   I compile it with TexWorks using the option pdfLaTeX+MakeIndex+BibTex or the option PdfLaTeX/ then bibtex/ then 2 times PdfLaTeX. Everything else works as it should. The problem appears when I use the option  authoryear   If I ommit it it works fine, but then the citations are numbered (as they should) which is not what I want.  Can anyone please explain to me what is wrong with my code and fix this. Thanks.


Unable to install MiKTeX distribution in Windows

I have a fresh Windows 10 operating system installed. I am unable to install the MiKTeX 2.9 latest update in Windows. I got the following at the end of the log file after failed installation process:  updating package definition directory ("C:\Program Files\MiKTeX 2.9\tpm\packages")... installed 3066 package definition files visiting repository C:\Users\HARIKR~1\AppData\Local\Temp\mik77723... repository type: local package repository loading lightweight database... "C:\Program Files\MiKTeX 2.9\miktex/bin/x64\initexmf.exe" --common-install="C:\Program Files\MiKTeX 2.9" --set-config-value=[Core]SharedSetup=1 --admin --log-file="C:\Program Files\MiKTeX 2.9\miktex/config\uninst.log" --verbose: log4cxx: No appender could be found for logger (initexmf). log4cxx: Please initialize the log4cxx system properly.  Sorry, but "MiKTeX Configuration Utility" did not succeed.  You may want to visit the MiKTeX project page, if you need help.  An error occurred:   source file: Libraries\MiKTeX\Core\Process\Process.cpp   source line: 159   message: The executed process did not succeed.   info: fileName="C:\Program Files\MiKTeX 2.9\miktex/bin/x64\initexmf.exe", arguments="--common-install="C:\Program Files\MiKTeX 2.9" --set-config-value=[Core]SharedSetup=1 --admin --log-file="C:\Program Files\MiKTeX 2.9\miktex/config\uninst.log" --verbose", exitCode="1"   I have tried uninstalling Adobe Reader, turned off antivirus.


How can I add a new value to a picklist using APEX?

I have queries pulling all of the information correctly but what I can't seem to find was a way to add new options to a picklist using APEX.  I currently have   Package__c.Products__c.add(new Schema.PicklistEntry(products[j].Name));   Package__c is my custom object, and Products__c is the picklist. products[j] is pulling a list of products pulled from our products page.  And I've tried adding it as a select option, or even casting the variable type.  And this information has to go to the actual picklist within a custom object, and not within a visual force page or anything like that.


How can one change the timestamp of an old commit in Git?

The answers to  describe a way to amend previous commit messages that haven't yet been pushed upstream.  The new messages inherit the timestamps of the original commits.  This seems logical, but is there a way to also re-set the times?


On a certain representation of the Galois group of $X^n-a$ from Lang's Algebra

I am having trouble understand theorem $9.4$ of Chapter $6$ of Lang's Algebra (pg. 300-301).   The setup is a we have a field $k$ of characteristic not dividing $n$. We know that the splitting field of $f=X^n-a$ is $k(\zeta_n,\alpha)$ where $\alpha$ is a root of $f$ and $\zeta$ a primitive $n^{th}$ root of unity. Any automorphism $\sigma$ of the Galois group of $f$ over $k$ maps $\alpha \mapsto \alpha\zeta^b$ where $b$ is unique modulo $n$, and $\sigma$ induces an automorphism of the cyclic group $\mathbf{\mu_n}=\left\langle \zeta \right \rangle $ via $\zeta \mapsto \zeta^d$ where $(d,n)=1$ and $d$ is uniquely determined by $\sigma$.   We then verify that the map  $\sigma \mapsto \begin{pmatrix} \ \ 1 & 0\\ b_\sigma & d_\sigma \end{pmatrix}$ where $b$, $d$ are the integers determined by $\sigma$ in the previous paragraph is an injective homomorphism into the group $G(n)$ of all matrices $\begin{pmatrix} \ 1 & 0\\ a & c \end{pmatrix}$ such that $a \in \mathbf{Z}/n\mathbf{Z}$, $c \in (\mathbf{Z}/n\mathbf{Z})^{*}.$    The question that the theorem addresses is when the above the map is an isomorphism of the Galois group of $f$ and $G(n)$. With $\phi$ being the Euler function, the theorem states:   Suppose $[k(\zeta_n):k]=\phi(n)$ and let $a \in k$. Suppose for each prime $p|n$ that $a$ is not a $p^{th}$ power. Let $K$ be the splitting field of $X^n-a$ over $k$ and $G$ the Galois group. Then the above map is an isomorphism $G \cong G(n)$ with commutator subgroup Gal$(K/k(\zeta_n))$, so $k(\zeta_n)$ is the maximal abelian subextension of $K$.   The proof begins with the case $n=p$ where $p$ is a prime, which I follow. However, following that case Lang writes (bold is what I don't understand):  A direct computation of commutator of elements in $G(n)$ for arbitrary n shows that the commutator subgroup $C$ is contained in the group of matrices $ \begin{pmatrix} \ \ 1 & 0\\  b & 1 \end{pmatrix}$, $b \in \mathbf{Z}/n\mathbf{Z}$ and so must be that subgroup because its factor group is isomorphic to $(\mathbf{Z}/n\mathbf{Z})^{*}$ under the projection on the diagonal.  When $n=p$ is prime I already happened to know that $G \cong \mathbf{Z}/p\mathbf{Z} \rtimes_\varphi (\mathbf{Z}/p\mathbf{Z})^{*}$ from which it is clear (I think?) that the quotient by the image of $\mathbf{Z}/p\mathbf{Z}$ is the maximal abelian quotient, and the fact that the commutator subgroup is nontrivial inside a subgroup of order $p$ means it must be the whole group. However, when $n$ is arbitrary it's not obvious to me why the quotient by the commutator $C$ in $G(n)$ is ismorphic to $(\mathbf{Z}/n\mathbf{Z})^{*}$ nor why $C$ has to be isomorphic to $\mathbf{Z}/n\mathbf{Z}$. If someone could explain what is missing here that would be much appreciated.  I also have a couple of questions on the rest of the argument which I will just link here     1.) On the $3^{rd}-4^{th}$ lines: $\beta$ is a root of $X^m-a$ and by induction we can apply the theorem to $g=X^m-a$.   OK, fine, but what is Lang using the induction for? The splitting field for $g$ is $k(\beta,\zeta_m)$ and has Galois group isomorphic to $G(m)$ and it's maximal abelian extension is $k(\zeta_m)$. I've been staring at this and I don't see what the conclusion is.  2.) lines $3-5$ after the diagram: apply the $1^{st}$ part of proof (case of $n=p$ is prime) to $X^p-\beta$ over $k(\beta)$...shows that $k(\beta,\zeta_n)\cap k(\alpha)=k(\beta)$.  Again I don't know what exactly is being said. The splitting field of $X^p-\beta$ over $k(\beta)$ is $k(\alpha,\zeta_p)$, and it's maximal abelian subextension is $k(\beta,\zeta_p)$. How does Lang's conclusion follow from that?   Thanks to everyone who took the time to read my question, any help is much appreciated.


If I'm not wrong, tty is composed of:   Line discipline TTY driver   In addition, a shell (bash, for example) is a program that execute different commands/programs like ls, mkdir, rm, ...  After reading , I guess the shell is the same as TTY driver, because they share some features like job control, but I'm not sure at all.  So, are the shell and tty driver equivalent?  Please, correct me if something I wrote is wrong.


Using a question as the basis of an article elsewhere

I remember sometime reading that SO owns the copyright to my questions. However, in this case I posted the question merely to garner opinions on a system of doing things. One very good opinion makes me want to write an article on Code Project outlining the system. What attributions and or permissions do I need to do that?


Is Hawking radiation valid for a microscopic black hole?

A black hole evaporates by Hawking radiation. The computation of the evaporation time uses some approximations.  Question: Is the evaporation time valid for a microscopic black hole?    In particular, is it possible that at a given miscroscopic scale, the evaporation stops? For example at a microscopic scale so that the mass of the black hole is the neutron mass.


REGEXP in MYSQL isn't working for full word search all time

I've a table like this,  values ------------------- male,female PHP 30 PHP (30) PHP ($30),CSS ($20) PHP {$30},CSS {$20} PHP [$30],CSS [$20] PHP (€30),CSS (20)   I've prepared the sql like this,  SELECT mytable.values FROM mytable WHERE mytable.values REGEXP '[[:<:]]PHP ($30)[[:>:]]'   It should match one row (4th), but it's not working.  It's also not working with () / {} / [] or any types of symbols like $ / €  I want to mention here that,   MYSQL LIKE isn't the right thing for me I think, because it won't work if we want to match male. REGEXP is working for PHP 30 here and it's working for only strings.   Could anyone please inform me what will be the best solution to match the exact word or sentence?  Thanks in advance.


Confusion with origin/branch and local/branch merging..?

I have a branch on GitHub (origin) called issue75.  I have a local issue75 branch that I'm trying to sync up with origin, but when I run the following...  git merge origin/issue75   I end up with a message telling me "Already up-to-date."  However, if I compare them with...  git diff origin/issue75   I do see that there are differences between the files in my local issue75 branch vs. the origin/issue75 branch.    I'm not sure how to resolve this at this point and would appreciate any assistance I can get.  Thanks!


Natbib In-Text Citation displays (author?)

I have taken a look through many other questions on this subject but cannot seem to fix my issue. Essentially while references display correctly I cannot get the author citation to appear in my text despite running pdflatex followed by bibtex followed by two more runs of pdflatex. Any help would be appreciated.  Sample tex file:  \documentclass{article} \usepackage{natbib}  \begin{document}  Blahblahblah \citet*{Test12}.  \bibliographystyle{plain} \bibliography{refs}  \end{document}   refs.bib:  @article{Test12, author = "John Smith", title = "Test Article", year = "2012", journal = "The Test Journal" }   Output:


Fantasy show from the late 2000s about a young man gaining magical powers

This was most likely somewhere between 2005 and 2010, and I saw it on a local TV station that licensed it (as the channel was in my native language but the show was in English). I realise the title is a bit vague, but that's because I only really remember three scenes:  Atop a cliff the main character is confronted by an assassin aiming to kill him. I'm sure there was a wast amount of smoke, that the character has to break through, before he jumps into the water (I think). I'm sure that the events were preceded by the local village burning during the day (possibly by the assassin).  The main character (a young man with shoulder length blonde hair) is sailing through a water filled canyon (visually similar to  from Vinland Saga) on a small boat. I remember that this was the end of the episode with a voice-over by (I think?) an old man.  This last scene may have happened just before the second scene - a giant door somewhere underground was shaking and was then broken apart from the inside. I think that there were mages/wizards trying to stop this but they couldn't.   I think that the main character was (a soon to be) mage, but being originally from a village (the one that burns in 1.). And yeah, I know all this sound as generic as a show can be, but I genuinely cannot remember anything more specific. I'm pretty sure that all these scenes happened in the same episode (or at least in sequential episodes). I know it's not  and I'm pretty sure it's not .


What is the benefit of using HMAC over hash with key suffix? I realize that using key prefix is a bad idea because it allows message extension attacks. When adding key as a suffix such attack possibility is eliminated.  MAC = h(k||x) // key prefixing, bad idea MAC = h(x||k) // key suffixing, much better idea   HMAC uses double hashing presumably to prevent extension attacks. Why is it better than just simple key suffixing?  HMAC scheme:


I ssh-ed into my webhost's directory, and tar-ed the webapp to download. When I try to mv to ~/mydirectory/backups or /home/mydirectory/backups, it defines the "home" as my root on the webhost that I'm ssh'ed into.  How do I mv in ssh to a local drive while still being inside the webhost's system?


One day I directed to SO and was met with the awesome Interesting page, which I really like. But when I travel away from it, I have to re-enter the query string to get it back. Is there a plan to make this tab visible so I can click to it anytime?


Unable to install packages on Ubuntu 16.10

root@sagar-Lenovo-Product:~# apt install git Reading package lists... Done Building dependency tree        Reading state information... Done Package git is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'git' has no installation candidate


I have a shapefile which contains a 20 hectare polygon. I want to demarcate 9,48 hectares from the entire polygon with a parallel.  I can make the parallel line with the longer line but I can not do the incision...  Can you help me how to do the incision?


We have a company website, let says it's http://www.mycompany.com. URL without the www (http://mycompany.com) is working and displays the same website.  When Googling mycompany, first result is the website, with no site links.  When Googling mycompany.com, first result is the website, with site links.  When Googling www.mycompany.com, first result is the website, with different site links.  Why is there no site links for "mycompany" keyword?


How do I run a command on multiple files

This is pretty basic, I have a folder with several subfolders of JS files and i want to run Google's Clojure compiler on all of the files in those folders. The command to process a single file is as follows:  java -jar compiler.jar --js filename.js --js_output_file newfilename.js   How do I modify this to run on every JS file in my directory structure?


When you click the text Copy to clipboard textbox's value

I have a text box on my website. When you click on the text in this text box, I want it to copy the value in the text box.  <input id="link" type="text" value="<?php echo $link ?>" disabled>


Finding integers satisfying $m^2 - n^2 = 1111$

We have to find the integers $m$ and $n$ which will satisfy the given condition: $$m^2-n^2=1111.$$  What could be the answer and how? i tried using trial and error and that took a long time.


How can I make pressing Super+[number] multiple times cycle through open windows of an application?

On Ubuntu 18.10, when I press Super+[number] for an application with a single window, that window is brought to focus. If there are multiple windows though, I get a popup selection which requires me to choose which window I want, and then press Enter.    Is there a way I can get the following behavior?   Pressing Super+[number] and releasing focuses the first window of the application at [number] on the dock. Pressing Super+[number] and holding Super displays the popup.   Then pressing [number] multiple times cycles through the available windows. Releasing both keys on the selected window focuses that window.    This is the behavior on Windows, and I'm almost positive it's the behavior I had with Gnome on a different distribution. I might have had an extension installed or something though.


Changing the interface language in Windows 7 Home Premium

A friend of mine has recently purchased a laptop in the U.S. that has Windows 7 Home Premium on it with an English interface. Not being a native English speaker, I'm trying to change the interface language to traditional Chinese.  I've looked through the Control Panel in search of something that might let me change the interface language. Naturally, I looked at the Region and Language section and managed to change the formats the computer uses and install a working keyboard, but I haven't found a way to change the interface language.  Upon doing some research, I found out that there are two kinds of interface packs, Multilingual User Interface (MUI) and Language Interface Packs (LIP).   It seems that MUIs can only be installed through Windows Update, so I looked through the list of updates. To my dismay, the language packs are not present. The optional updates tab doesn't even show up. Many sites show a drop down menu the under Keyboards and Languages tab in the Region and Language options, yet it doesn't show up for me. We also don't have the Windows 7 DVD which might contain this useful file.  As far as the LIPs go, I can't find one in Chinese at all, let alone traditional Chinese.  Can the interface language be changed in Home Premium at all? If it can, how would I do so?


What is wrong with "Where should this car be parked?"?

Why does Microsoft Word 2010 show an error for the following sentence?     1. Where should this car be parked?   Word 2010 also suggests changing the sentence to     2. Where this car should be parked?   Is the sentence (1) wrong? If yes, why? What about sentence (2)?


Prevent "mysterious" folders in drive root from appearing without disabling Windows Update

In  it is asked and answered why mysterious folders appear at the root of my D-drive periodically, named e849ad3686d570a415, 57431c392d6db70ad5bfcd1a6676a241, etc, containing folders like i386 and amd64: they're leftovers from Windows updates. It is also explained there that it is safe to delete those folders.  In fact, there are more similar/related questions:        None of these questions or their answers explain how to prevent it from happening, apart from the obvious conclusion to just disable the root cause (Windows update) entirely.  So my specific question then is: How can I stop this from happening, without resorting to rigorous solutions such as disabling Windows Update, moving over to Linux, etc., and without resorting to creating an after-the-fact solution (e.g. a scheduled task to delete these folders)? Is that possible?  What I've tried so far is looking for a way to find out what specific process generates these folders so I can narrow my search for a solution. I've found  about a general way to find out such things, but it isn't very helpful. I've tried checking who the owner of those folders is, but MY-PC\Administrators doesn't tell me much either. I've tried dir e849ad3686d570a415 | format-list * in Powershell, but it tells me nothing of interest. I've  around but that mainly leads to aforementioned question.  Bottom line: How can I stop these folders from appearing? Removing them by hand is getting pretty old and writing a script or task to do this periodically "feels dirty".


Travelling with my Old Passport with UK visa

My Philippine passport will expire in March 2017 and my UK visa that is valid until Nov. 2016 has been stamped on it. I am now processing a new passport and my question is can I travel with my old passport with UK visa on it together with my new passport?  I am planning to visit the UK by third week of September.


In my models file (django) I have a following code  def __unicode__(self):     return  u'EXAM: grade: %f' % (self.get_grade_display())   and in admin panel I have obrained  EXAM: grade: 2.000000   Anyone knows how to truncate the float number to the following format:   EXAM: grade: 2.0


What should I do when somebody uses my email?

I have two email addresses (or more!), one of which I'm using for Stack Overflow (with my current account), while I am certainly not using the other anywhere on Stack Exchange.   Recently, I've received an automated message from the Stack Exchange team like this one, on the other email address:     Recently, you answered a question on The Workplace Stack Exchange, but you haven't verified your email address yet.      Click on the following link to verify your email and set a password so that you can log in.      Set Your Password   A few days later I received a similar message saying that I answered a question on the Islam Stack Exchange.   Obviously somebody who used my email address (on purpose or by accident) for their account, is posting answers to some of the Stack Exchange sites.  What should I do in this case? How can I prevent him from using my email address for their account?


I am asked to consider f(x) and g(x) which are both 1-1 functions on their respective domains. I have been asked to show f ∘ g is a 1-1 function and then a followup statement of if f ∘ g is 1-1 does that mean f(x) and g(x) are both 1-1 on their domains.  The problem I am having with this question is how do I show the result? I understand when a function is 1-1 over a certain domain and I have tried composing my own functions but am unsure how I prove the result is true because I do not believe providing an example of two functions f(x) and g(x) where the first statement holds is really what I am supposed to do.  Sorry for posting again so soon, especially for such a similar and straightforward question.  Thank you.


Remove duplicates from array and save it to another one

So I have been tasked to make an array without duplicated values from another existing array. So I did it, but I want to know is there some other better way to do that. Example input/output: Input: 10, 15, 10, 5, 1, 3 Output: 10, 15, 5, 1, 3 So here is my code. #include <stdio.h>  int main(void) {   const int MAX_ARRAY_SIZE = 5;    int m[MAX_ARRAY_SIZE], p[MAX_ARRAY_SIZE];     for(int i = 0; i < MAX_ARRAY_SIZE; i++) {     printf("Enter number: ");     scanf("%d",&m[i]);   }   int k = 0;   int dup = 0;   for(int i =0; i < MAX_ARRAY_SIZE; i++) {     for(int j = i +1; j <MAX_ARRAY_SIZE; j++) {         if(m[i] == m[j]) {             dup = 1;         }     }     if(dup != 1) {       p[k++] = m[i];     }     dup = 0;   }    printf("The new array without repeated values\n");   for(int i = 0; i < k; i++) {     printf("%d\n",p[i]);   }    return 0; }  I'm not sure if this is the right and simple way I do that. I want some suggestions. Thanks in advance. :)


I'm trying to proof that when dividing the first series with $p$, the remainder is $p-1$ and when dividing the second series with $p$ ($p>2$) the remainder is $0$. I understand that I need to use Fermat's little theorem, and maybe the special case of it, but have problems applying it. And help of hints would be superb as I seem to be stuck...   David


I'm preparing for exam and I have to solve this problem.  Please, how do I prove that $\lim\limits_{n\to\infty}\frac{1}{n}\left(1+\frac{1}{2}+\cdots+\frac{1}{n}\right)=0.$ Any Theorems to guide as well?


In Excel, how to keep two years of data together based on a common data point?

I have a list of data from 2015-2016 and want to keep the two years together based on a common data point.  I would also like to exclude anything that does not have both years on file because I only care about the year to year change, so single values are just clutter.  So my table looks something like this.  I want to take out the "oranges" line.  Thanks!   edit: and by "apples" "pears" etc., I mean, unique reference numbers--these being the data point that I would like to connect the years to.  2015    apples  4   $0.79 2016    apples  2   $0.83 2016    oranges 14  $1.12 2015    pears   22  $0.74 2016    pears   17  $0.79


How do I set the size of a picture in my question post?

The picture I uploaded is too large... Is there a way to limit the size (width & height)?


Here is my question: perf stat will show some info for program running. Below is my program running on a Linux system with Intel 32 cores, my program have 32 threads. Performance counter stats for './mul8_t32_lock/dfc_main':       2,527,620.62 msec task-clock                #   27.051 CPUs utilized         5,382,455      context-switches          #    0.002 M/sec           322,153      cpu-migrations            #    0.127 K/sec         6,728,473      page-faults               #    0.003 M/sec 5,773,817,446,711      cycles                    #    2.284 GHz 8,504,327,916,051      instructions              #    1.47  insn per cycle   358,700,135,637      branches                  #  141.912 M/sec       952,042,974      branch-misses             #    0.27% of all branches       93.438474548 seconds time elapsed     2482.333923000 seconds user      66.839344000 seconds sys  So, why is the seconds user + seconds sys do not equal seconds time elapsed? And, I want to know the real meaning of the seconds user and seconds sys.


hyphenation command is countermanded - how to find the countermand? (dot is culprit?)

EDIT2: This was flagged as duplicate to a question about hyphenation in multi-language-documents. It is not. My document (60 pages) has just one language, but i have eleven such documents, in different languages. I noticed the problem in the danish version.  My question relates to the traceability of the hyphenation rules, i.e., how can i find out which rule is followed to what point, rather like in a debugger for a programming language.  ORIGINAL QUESTION: I inherited a very complex latex document (50+ files, class-file, ...).  In this document, some expressions are written in CamelCase, and i wanted to employ \hyphenation{Camel-Case} to make sure the expression only gets cut at that one specific position.  In at least one case, the expression is cut like this: Came-lCase. If i put the above command exactly in front of the line containing the offending expression, the expression is cut correctly. I checked the spelling of this instance, and made sure it's actually the very same character-encodings as any other instance. So my thinking is that somewhere along the line the hyphenation command gets countermanded. My question is twofold:   how can i find out where the command ist countermanded (without trial& error) is there a way to make that command more countermand-proof?   EDIT: I just realized that the sentence runs: "[...] yada yada CamelCase." and that only the dot at the end makes the difference between obeying the hyphenation-command and not obeying it (but that should not impact hyphenation-rules, should it? The dot adds length, but should not make the expression different). The specific document is using\usepackage[danish]{babel} , as the main difference to other documents of the same structure (same content rendered in eleven different languages and therefore babel-packages) - apart from the content being in different languages, of course...


Justifying Calculations on $f(n)=\frac{1}{2 \pi}\int_{-\pi}^{\pi}\theta e^{-in \theta} d \theta$

In Stein's Fourier Analysis i'm having trouble Justifying the following calculations for the Fourier Coefficients in $(1.)$  $(1.)$  Let $f(\theta) = \theta$ for $ -\pi \leq \theta \leq \pi$ in the case when $n \neq 0$:  $$f(n)=\frac{1}{2 \pi}\int_{-\pi}^{\pi}\theta e^{-in \theta} d \theta = \frac{1}{2 \pi}[-\frac{\theta}{in}e^{-in \theta}]_{-\pi}^{\pi} + \frac{1}{2 \pi in} \int_{-\pi}^{\pi}e^{-in\theta}d \theta = \frac{(-1)^{n+1}}{in} $$  Then the Fourier Series of $f$ is given by:  $$ f(n) = \sum_{n \neq 0}  \frac{(-1)^{n+1}}{in}$$


Howto see disk I/O utilisation per process - iotop and pidstat not available in Homebrew on macOS

I have the same question  this, but for macOS.  There is a GUI solution with Activity Monitor. Any command line alternative? I use latest macOS Sierra.


Sequence of rational numbers converging to any irrational number

I attempting to solve the following question: "Show there is a sequence of rational numbers converging to any irrational number".   I don't understand how to tackle this problem because it says any irrational number.   I know for example that the sequence $s_n$ = $(1 + 1/n)^n$ converges to $e$, but I can't think of a sequence that will converge to any rational number.   As a caveat I have looked at other similar questions on stack exchange but none seem to cover this any aspect.   Thank you.


Is it "to play a game on someone" or "play games with someone"?

I find this expression strange because it's clearly widely used, but seems sort of "unofficial", the "official" version, meaning the one described in dictionaries and grammar books, being playing games with, not on.  Both expressions seem to be current and valid, according to Google Books. I'm just not entirely clear on the context and the usage.  My understanding is that playing games with implies some sort of tricky, mischievous behavior, which may or may not be intentionally malicious, like office politics or standing someone up on a date ("Jane didn't show up...again. Is she playing games with me?"), while playing games on implies a form of studied deception. ("The ad said that the comic book was in mint condition but there are barely noticeable tears... are they trying to play a game on me?")


How would I go about replacing everything in between multiple layers of parentheses?

I'm looking to replace everything in between a set of parentheses in java using the replaceAll() method. The problem I'm running into is that in between the set of parentheses are another set so it looks like the following: (stuff here (more stuff) and more stuff) and using the regular expression: \\(.*?\\) doesn't work because it ends up only replacing part of it because of the nested parentheses. Any suggestions on a regex I could use to replace everything?


Idiomatic expression for a difficult choice

This has cropped up several times in the past couple of months, and I've been struggling to find  a fitting word to describe this phenomenon. I'll describe it:  You have two choices(no, it's not Hobson's choice). Both of them are desirable, yet both of them each have a tiny part which is most undesirable, such as a tough condition, or a demanding clause. You have difficulty deciding which one to pick.  Whenever something like that comes up, I think of the expression "Can't burn a candle at both ends", but I'm not looking for that.  I'm looking for an expression that describes a difficult choice. Any suggestions?  EDIT: It's idiomatic. I'm quite sure it is. It's an expression of some sort. And no, it isn't "dilemma"


Why does everyone seem to think that moving clock appear to tick slower?

I'm getting interested in special relativity and almost all people and explanations about the subject I found on the internet seem to think that when A and B would be in relative motion, they would both observe the other's clock tick slower than their own. However what I found about this is following, in § 4. (Physical Meaning of the Equations Obtained in Respect to Moving Rigid Bodies and Moving Clocks) of Einstein's On the electrodynamics of moving bodies (1905):       From this there ensues the following peculiar consequence. If at the points A and B of K there are stationary clocks which, viewed in the stationary system, are synchronous; and if the clock at A is moved with the velocity $v$ along the line AB to B, then on its arrival at B the two clocks no longer synchronize, but the clock moved from A to B lags behind the other which has remained at B by $\frac{1}{2}tv^2/c^2$ (up to magnitudes of fourth and higher order), $t$ being the time occupied in the journey from A to B.   This sounds like complete opposite to what everyone seems to think.  Now this time discrepancy doesn't have anything to do with Doppler effects or isn't just some observers illusion. This is supposed to be physical fact, after stopping the traveler has physically aged less than the rest of the world.    The question: Why should the stationary clock seem slower to the traveller?    The quote i provided explicitly says that his own clock will have experienced less time. Please note that A and B can be arbitrarily close and there can be an infinite amount of such points for which the quote applies. Also the train need not stop to witness this effect   Therefore it seems to me certain that the traveller would observe the stationary clocks move faster.


Editing when you have reached you review limit

I reviewed my daily 20 edits this morning. I love to do it with my coffee and waffles beside me.   Now I capped the reviewed edits limit not the edits limit itself. This is the tricky part : I see a suggested edit on a post like this and I read it        I know I can't approve / reject it but I still feel it could be upgraded. So I consider adding my own edit. But I get stuck with this page teasing me because I reached my limit of 20 reviews ... !!        Where is the I don't want to review. Let me add my own Edit button ?


Newton's Cradle: why does it stay symmetric?

How is it that always the same number of balls leave at the other end in Newton's cradle. I understand that the momentum needs to be conserved, but as momentum is defined as p=m*v couldn't you have a different number of balls move at a different speed instead of the same number of balls at the same speed?


Standard Brownian motion almost surely not $0$.

Consider a continuous standard brownian motion $(B_t)_{t\ge 0}$. I want to show, that $$\mathcal{L}(\{t\ge 0: B_t=0\})=0$$  I also have a hint that I need to show that $B:\mathbb{R}_+\times\Omega\longrightarrow\mathbb{R}$ is measurable. Then I shall find, that $E[\mathcal{L}(\{t\ge 0: B_t=0\})]=0$ and conclude the statemate above. I would appreciate any help! Thanks in advance!


Why should the data be shuffled for machine learning tasks

In machine learning tasks it is common to shuffle data and normalize it. The purpose of normalization is clear (for having same range of feature values). But, after struggling a lot, I did not find any valuable reason for shuffling data.  I have read this post  discussing when we need to shuffle data, but it is not obvious why we should shuffle the data. Furthermore, I have frequently seen in algorithms such as Adam or SGD where we need batch gradient descent (data should be separated to mini-batches and batch size has to be specified). It is vital according to this  to shuffle data for each epoch to have different data for each batch. So, perhaps the data is shuffled and more importantly changed.  Why do we do this?


Should I quote variable when passing to command?

I always do this when passing variable to command  mkdir -p "$dir_to_make"   are those quotes needed? I tried to google but didn't find much. I always write them, just interested if they are necessary.


As a British native English speaker I have only ever used the word "folk" as an adjective in phrases such as "folk music" or "folk tales". My unscientific impression is that its use as a synonym for people is increasing in the British media, which prompts the question: How can I decide whether it should be folk or folks?   We should do more for our old folk.   or   We should do more for our old folks.   ..   Some folk never listen.   or    Some folks never listen.   Are the two words interchangeable, or are there some clear usage patterns?


When I flag a question as a duplicate it says 404

We are having an error with the flag as duplicate radio box. It never fills out, but just says 404. If one  of the developers could take a look at this, that would be great.


How do stealth and surprise interact for full-round actions?

This is something of a clarification question off of   Suppose we have the following situation:  A sorcerer is stalking an unaware foe, and wishes to blast them with a spell with some metamagic tacked on.  He has Improved Invisibility up, is surprisingly good at stealth, and is using a spell with no verbal component.  In this particular case, the target has no real chance of becoming aware of his presence until the spell actually flies... but the spell itself is a full-round action because of metamagic.  Assume that the Sorcerer is willing to take his time as necessary in order to get this right and optimize on any additional action advantage that he might be able to squeeze in before the opponent figures out what's going on and starts to respond, including holding actions/delaying/etc if pertinent.  Don't worry about the effects of any other spells, magic items, or other abilities not available by default to all adventurers.  What does the resulting fight look like in terms of who goes when?  This is distinct from the originating question first in that the target remains unaware until the sorcerer has finished casting, whenever it is that that should occur, and second in that I am interested in the shape of the combat going forward from that point as well.  In particular, is there any way that the casting sorcerer might get another turn after the original cast but before the target can act?  If not, is there any way they could at least extract a few extra actions?  If so, how hard could they push that?  As clarification, this is intended primarily as a theoretical question to better understand this part of the rules.  It's not in support of any particular game.


How do I get Chromium or Firefox manage multi touch events properly?

I am using Ubuntu 12.04 and have a multitouch capable screen (3M MicroTouch USB controller) but can't get any touch events inside a browser window (Firefox or Chromium).  I see all gestures with geistest -w WINDOWID program. I have a multitouch demo tetris program which works. So basically the touch screen is supported on a lower level, but both browser applications don't get any touch events, only mouse events.  What do I have to do to get a proper setup for this?


Why do the vowels in "finite" change when "in" is added to it

I just noticed that the vowels in the word "finite" change when the prefix "in" is added to it. Why does this happen? Infinite could easily have been "infainait".   "in" + /ˈfʌɪnʌɪt/ = /ˈɪnfɪnɪt/ both the vowels have changed.  What causes the pronunciation to change?


How is the matrix identity $\det\begin{pmatrix}A&B\\B&A\end{pmatrix}=\det(A+B)\det(A-B)$ proved?

The  mentions the following matrix identity $$\det\begin{pmatrix}A&B\\B&A\end{pmatrix}=\det(A+B)\det(A-B),$$ valid for squared matrices $A$ and $B$ of the same size.  How is this result proved?


What legal action can I take to get my refund related with wrong information about transit visa?

Two week's back I was travelling back from India to USA,my flight was via Rome and Paris, so as par rule I was required a transit visa. And I did apply for the transit visa in Kolkata's Italian Consulate. I had done all the paper works for my visa application and also buy insurace, but at my interviw, I was told through VFS that since I have an USA F1 visa (Indian Passport) and I am not coming outside of the airport, I don't need a visa. In fact they have sent me an official email to support their words.   However when i reached the airport, the airlines (alitalia airlines) didn't allow me to get on the flight. Although I showed them my official email, but they didn't accept it. And thus I was forced to buy a new ticket.   So now is there any way I can take any legal action against either the airlines or the consulate to get my money back. If so, what could be my procedure. Since I am a student, that money matters a lot. And I did everything from my part but I was given wrong informations.


UPDATE - NOT A DUPLICATE:  The reason why I do not think this is a duplicate is because I need to access data within a program called Wekan.  I do not know how to extract that data from Wekan by mounting the ISO, which is why I am hoping to boot from the ISO.  ORIGINAL POST:  I created a full backup of Ubuntu 16.04 using the command:  sudo dd if=/dev/sda of=/some_folder/backup.iso   So the backup includes the full drive, including all partitions etc.  I then installed Ubuntu 18.04 and realized I forgot to copy over something from Ubuntu 16.04.   Is it possible to boot into the 16.04 iso file and load the operating system using 18.04?  Also, the 16.04 drive is encryption and I do have the passphrase to access it.


i have try different solutions from this media but still it does not work for me please help me.  function get_category(){ var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { var ans = document.getElementById("sell_panel"); ans.innerHTML  = xmlhttp.responseText; } } xmlhttp.open("GET", "includes/get_category.php", true); xmlhttp.send();  } `$('.item_btn').on('click', function () {// HERE IS MY CLICK EVENT alert("helo"); });`  AND MY get_category.PHP FILE IS;  <?php include("database.php"); $db = new Database();    $sql = "SELECT DISTINCT category FROM stock"; $result = mysql_query($sql); if($result === FALSE) {  die(mysql_error()); // TODO: better error handling }    while($cat = mysql_fetch_array($result)){  echo "
//HERE IS THE DIV  {$cat[0]}
   "; }     ?>   I HAVE TRIED delegate() also it did not work for me and i have heard about to trigger my event handler in ajax but i dont know how to do it please help me guys


Prove $f(x) = x^{2}\cos(1/x)$ is differentiable

How would I prove that the function   $f: \Bbb R \to \Bbb R$, where $f(x) = \begin{cases} x^2\cos(1/x)   & x \neq 0 \\ 0 & x=0 \end{cases}$  is differentiable?  So far I have tried using the product rule, but gotten stuck with differentiating $\cos(1/x)$ from the definition of differentiation.


Is it possible to pursue PhD in different area than master's thesis?

I am doing masters in physics. I recently did internship in high energy physics for 2 months. But my institute allows me to do 6 months project only in condensed matter physics. I want to pursue PhD in high energy physics only. So, is it possible to pursue PhD in different area than master's thesis?


Access rows in an automatically generated table using Javascript+JQuery

I am new to JQuery. I have two tables: table1 is hardcoded in HTML and table2 is generated using javascript from an array loaded from a csv file. After the second table is displayed, I want to highlight (and later process) the row that user clicks using a JQuery. Simplified code below.  Hardcoded table:

 cell1	cell2	cell3

 cell4	cell5	cell6

   Generate table from an array with id "data" (works fine):     JQuery script to do whatever to a row in the table, for example display an alert when a row is clicked:     This code doesn't work for the generated table2. It does work only if I try to highlight the whole table (using $("table")) but not when I try to highlight any of its elements (tr, td). It works perfectly for the hardcoded table1.  I tried using different elements like $("#table2 :td"), $("#table2 td") and so on but to no avail. How come I can access the whole table but not its elements?


Transform regression model with all logged terms to 'unlogged' form

I have two independent variables to predict my independent variable. For both theoretical and practical reasons, it made sense to log all of the three variables.  In R formula: log(y) ~ log(x1) + log(x2) The model works great and meets all assumptions of linear regression with flying colors. Now, I'd like to transform the fitted model including the fitted parameters to its 'unlogged' state, i.e., without the logs. I think this should be: $$y = exp(\hat{\alpha}) \cdot exp(\hat{\beta_1})^{x_1}  \cdot exp(\hat{\beta_2})^{x_2}$$ where each of the three parameters are the estimates from the regression, transformed exponential. Is this correct?


Add publisher field to Music biblatex entry

I have this sample file:  \documentclass[a4paper]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{ebgaramond} \usepackage{filecontents} \begin{filecontents}{bibliografia.bib} @Book{Zarlino1558, Title = {L'istitutioni harmoniche}, Author = {Zarlino, Gioseffo}, Publisher = {Francesco de' Franceschi}, Year = {1558}, Address = {Venezia}, }  @Music {Venturi1592, Author ={Stefano Venturi del Nibbio},   Title ={Il primo libro di madrigali a 5},   Address ={Venezia},   Publisher ={Angelo Gardano},   Year ={1592} }    \end{filecontents}   \usepackage{polyglossia}  \setdefaultlanguage{italian} \usepackage[backend=biber, style=authortitle, sorting=nyt]{biblatex} \usepackage{xpatch}  \let\mkbibnamelast\textsc%  \let\mkbibnamefirst\textsc%  \let\mkbibnameprefix\textsc%  \let\mkbibnameaffix\textsc  \renewcommand*{\newunitpunct}{\addcomma\space}  \xpatchbibmacro{publisher+location+date}{\setunit*{\addcolon\space}}%  {\setunit*{\addcomma\space}}{}{}  \DeclareNameAlias{sortname}{first-last}  \addbibresource{bibliografia.bib}  \begin{document} \section{Sezione} Questo è un test.\nocite{Zarlino1558} \nocite{Venturi1592}  \printbibliography  \end{document}   I would like to add a publisher field for my music type entries, which should appear between address and year, like for other books type entries.


How to run a java code inside a jar file that reads a file specified in String args[]

So I have a java program that reads a file specified by using args  $ java Main somefile.txt   But how do I do it when I make it into a jar? Let's say that foo.jar contains   -META-INF -Main.class -someFile.txt   And run it with (without specifying args after)  java -jar foo.jar   How do I do that? Note that I also use gradle to assemble the jar.


In Inelastic collision, momentum is conserved while Kinetic Energy is not, Why?

First of all, I tell you that I know there is same question available which is already answered, but no answer cleared my doubt, that's why I am asking the question in more detail.  Let there be a collision between two bodies with velocity in same direction before and after the collision. During the collision of two bodies, heat energy is produced, so particles of the bodies start vibrating rapidly about there positions, due to transfer of kinetic energy of the bodies to constituent particles. This must lead to reduce in velocity of the two bodies, and consequently reduce in total momentum.  Thus, I am saying there may be loss of kinetic energy, but there should be loss of momentum too.  Please tell me where I am wrong.  Also please, don't state the law of conservation of momentum or its modified form and try to explain in practical terms.


Shell scripts not running on double click

I have created the below script.  #!/bin/bash sudo echo "Hi, I'm root"   It is inside a file called script.sh  I have checked the permission to run as a program inside properties. When I double click, nothings happens. The only thing that happens is that the text editor opens. How can I see what is going wrong?


Zoom to predefined areas/extents in QGIS

Is there anyway or any plugin to create predefined extents/areas (e.g. cities) that one can zoom to in QGIS? For example, create a city A, define  the extents of the city and when one click on the name of the city then it will be zoomed to the center of it.


jQuery remove scroll listener after reach certain point

Is there an option how to remove or disable scroll listener after reaching certain point on page? I'm not interested in load browser by listener when I don't need it anymore.   In my case a want to someway stop this whole particular function below after calls loadMore(load_btn);  The function:  $(window).scroll(function(){     var load_btn = $('.js-load-more.auto-load:not(.loading)');     var scroll = $(window).scrollTop();     var height = $(window).height();     var btn_top = $(load_btn).offset().top;     var launch_pos = btn_top - (height - (height*0.1));      if (scroll > launch_pos) {         $(load_btn).removeClass('auto-load');         loadMore(load_btn);     } });


How to install Synaptics touchpad manager with terminal?

I need to get this to get my touch-pad working but I am unable to install it with Ubuntu Software Center as it says `  "Update Error: Require Installation Of Untrusted Packages"


How can we format the date in xslt ?  Example:   <xsl:value-of select ="name of function(I/P, 'MMM dd, yyyy')"/>


Let $A$ be an $n \times n$ matrix. If $A$ is invertible, then $|A| \neq 0$?

Let $A$ be an $n \times n$ matrix. If $A$ is invertible, then $|A| \neq 0$. How I can justifying the answer?


Novel or series of novels with aliens that can speed up

So I just thought of a novel or a series, not sure (it was definitely an author's early work) in which humans are colonizing another planet. The plants and animals are pretty dangerous, so they've started with a colony on an island. The island has surprisingly few species. They later discover that this is because of the local super-predator. It lives in the water, there's a river that runs through the island. And the key thing is, it has an enzyme or something that is basically rocket fuel. The alien can Speed Up to ridiculous speeds. However, that's why it needs to be near the water - this can lead to overheating and it dying. There's also some political conflicts going on between the human settlers, and the protagonists build a separate enclave in a mountain, and they maybe have a small stream running through the middle room? In the second book, it turns out the aliens are almost sapient or something? In any case, we do have some chapters from the POV of the aliens. The humans start calling them Monsters or Demons or something, I think.


nullPointerException while using random Java

While using random generator i get error with message     Exception in thread "main" java.lang.NullPointerException   i completely don't know why, because a lot of time it working, and then it throw exception. I have feeling like resource of generating doubles just has been exploited. I have a lot of messages on screen "psst" (pMutationChangePc is set to 0.0), and accidently it always finishing in error in first IF statement. Do you guys have some ideas how to resolve this problem, or what could be the problem? Code isn't even hard to read some checking values and printing on screen...  public void Mutation()     {         Random r= new Random();             if (r.nextDouble()<mutation.pMutationChangeStrategy && mutation.pMutationChangeStrategy!=0.0)             {                 char [] tab= {'P','C','D','K'};                 System.out.println("psst");                 this.strategy.buffor=MutationRecurtion(tab, r);             }             if (r.nextDouble()<mutation.pMutationChangePc)             {                 System.out.println("Mutation");                 if (r.nextBoolean()==true)                 {                     System.out.println("boolean");                     this.pOfCoopMax+=mutation.parameterIncMutation;                     this.pOfCoopMin+=mutation.parameterIncMutation;                 }                 else                 {                     this.pOfCoopMax-=mutation.parameterIncMutation;                     this.pOfCoopMin-=mutation.parameterIncMutation;                 }             }        }


Is Mavericks still available for download (from Apple or anywhere)?

I've got a MBP (mid-2012) that is currently running Mountain Lion and I would like to upgrade it to Mavericks.  Now that Yosemite is available, it seems that Mavericks is no longer available for download.  Is that correct?  Is there any way to download a Mavericks installer?


I recently installed Ubuntu 20.04 and I am trying to install Cisco packet tracer but i keep on getting a unmet dependency   packettracer : Depends: qt-at-spi but it is not installable   I am completely new to this and Don't know what to do. Thank you for your time


I am upgrading to Windows 10. I have Windows 8.1 Pro, which version of Windows 10 should I choose in the Downloader?

There is home, pro, home n, pro n. I have Windows 8.1 Pro, which version should I select?


When is the union of a family of subspaces of a vector space also a subspace?

It is not difficult to prove that the union of a chain (or, more generally, a directed family) of subspaces of a vector space $V$ is a subspace of $V$.   Given a family $\mathcal{F}$ of subspaces of a vector space $V$ such that the union of $\mathcal{F}$ is a subspace of $V$, is it true that $\mathcal{F}$ is a directed family?  If not, is there a "nice" characterization of families of subspaces whose union is a subspace?


one of the definitions of the word "correspondent" is a person with whom one converses through writing: is there a corresponding ;-) word for a person with whom one converses vocally (either in person or via telecommunications)?


Positioning name of node label in tikzpicture

I have the following diagram:  \documentclass{article} \usepackage{amsmath,amsfonts,graphicx} \usepackage{algpseudocode} \usepackage{tikz, nth} \usetikzlibrary{arrows.meta,decorations,decorations.pathreplacing,calc,bending,positioning, chains}  \begin{document} \begin{tikzpicture}[scale=0.6]         \draw[thick,]  (0,8) -- (0,0) node[left] {0};         \draw[thick,]  (0,0) -- (8,0) node[right] {8};         \draw[thick,]  (8,8) -- (8,0) node[left] {};         \draw[thick,]  (8,8) -- (0,8) node[left] {8};          \draw[thick,]  (4,0) -- (4,8) node[left] {};          \fill (1, 4) circle[radius=2.5pt] node[below]{$A$};         \fill (2, 6) circle[radius=2.5pt] node[below]{$B$};         \fill (3, 2) circle[radius=2.5pt] node[below]{$C$};         \fill (4, 8) circle[radius=2.5pt] node[below]{$D$};         \fill (7, 3) circle[radius=2.5pt] node[below]{$E$};         \fill (6, 1) circle[radius=2.5pt] node[below]{$F$};         \fill (5, 7) circle[radius=2.5pt] node[below]{$G$};         \fill (3, 8) circle[radius=2.5pt] node[below]{$H$}; \end{tikzpicture} \end{document}   How can I position the caption of the node $D$ both below and left, so that the line doesn't obscure the caption?


Creating point at highest value in raster using ArcGIS Desktop

I am using ArcGIS Desktop 10.1.   I am trying to find the location of the highest value pixel in my Direct Solar Radiation Raster. I can see the extent of the data in my raster but don't know where the highest value pertains to.   Is there a way to simply select pixel with highest value or create a point at highest value?


How to get paragraph for certain option of command right away?

For example instead of whole manual of apt-get I want jump to -f option from terminal prompt right away, without using search through manpage.


Does sleeping directly after eating cause permanent health issues?

I've heard sleeping directly after eating makes digestion less effective, i.e. you don't get all the nutrients you could get if you would stay awake. I've also heard it raises sugar levels in the blood. But does it have any negative long term affects?


Is there a "best" way to automatically restart SQL Server on a regular basis? I read that I could create a batch file to net start, net stop the agent and service in a batch file and schedule that, but I was curious if there was a better way of doing this.  Please nevermind how this is indicative of a larger problem of operation, I've been arguing this for a month and we've ended up here.  Thanks :).


If both are available, include PDF or EPS?

I'm using GraphPad Prism to generate several graphs. It can export them in some formats, including EPS and PDF. Both are vectorized, both can be implemented in Latex.  So which format is better, and why? PDF seems to be smaller, but the files are sub-megabyte sizes, so I don't care. Is PDF faster, as EPS is implemented (and apparently transcribed to PDF) via epstopdf?


Hello there im new to regex and i was wondering how to parse data with html i did the   Regex.Match created = Regex.Match(text2, @"""created""":"""(.*?).820Z""");   But that code gives me an error could somoene help me?


I have some files and each files have distinct name but all of them have the same "-statement" at the end like this:  flower-statement.mp3 leave-statement.mp3  ball-statement.mp3 goal-statement.mp3   So I want to remove this: -statement  Is that possible?


What are `:` at the beginning of lines used for in a Bash script?

What are : at the beginning of lines used for in a Bash script? I have seen some usage of : at the beginning of lines, like in the following snippet of code: cgcreate -g "$cgroups:/$uuid" : "${BOCKER_CPU_SHARE:=512}" && cgset -r cpu.shares="$BOCKER_CPU_SHARE" "$uuid" : "${BOCKER_MEM_LIMIT:=512}" && cgset -r memory.limit_in_bytes="$((BOCKER_MEM_LIMIT * 1000000))" "$uuid"  Experiments show that : functions much like a comment (#), since nothing is printed to stdout; however, : $(echo foo > bar) creates a new file bar, so code execution does happen.


Does alcohol give bonus to will saves against fear?

Me and my friend were arguing regarding the effects of alcohol and i wanted to ask here to clarify. Are there any positive effects to being intoxicated?


I've just installed arduino from Software Center but I've run into a few complications.   Port /dev/ttyACM0 is not accessible so I can't upload anything. I understand that this is a common problem, but none of the solutions seem to work for me. Except maybe running as sudo from the terminal which I haven't been able to figure out how to do.   Sketch uses 1,460 bytes (0%) of program storage space. Maximum is 253,952 bytes.    Global variables use 9 bytes (0%) of dynamic memory, leaving 8,183 bytes for local variables. Maximum is 8,192 bytes.   avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied    ioctl("TIOCMGET"): Inappropriate ioctl for device   ioctl("TIOCMGET"): Inappropriate ioctl for device   avrdude: ser_send(): write error: Bad file descriptor   avrdude: stk500_send(): failed to send command to serial port     I found a few "solutions" that don't seem to work for me.    run arduino as sudo:   sudo: arduino: command not found   It might work, but cant seem to get arduino to run from the terminal itself. I'm not sure but it might have something to do with it being "snap" and ignorance on my side on how to run these programs from terminal. I tried several paths (except the right one of course) $ sudo adduser <username> dialout   answer:   The user `username' is already a member of `dialout'     Of course  has been replaced by my username    Also within arduino /dev/ttyACM0 was black and available.  Also tried sudo adduser <username> tty  The user was added, but no difference.  $ sudo chmod a+rw /dev/ttyACM0    answer: already had the right read and write privileges.  $ sudo udevadm trigger  tried this.. found it on Stack Overflow.     None really seemed to work though, so I keep trying to want to try to run it first from terminal as sudo but as I said I can't seem to figure out why arduino-mhall199. If this could work then it is enough for me, I don't use it often enough for that to be an issue.   Oh yeah of course. Ubuntu 17.10, sorry


'Use mobile data for' toggle changes won't save on iPhone 6, iOS 9.0

When I change an app's setting to use mobile data (or not), the changes aren't saved when I exit settings. It's infuriating as, for example, I can't use WeChat at all unless I'm on wifi.  Elsewhere on this forum it's suggested that the only way to rectify this is to restore not from backup. Is there really no other way? And if I do need to restore not from backup, how do I do it? And what will the consequences be - e.g. lost contacts, etc?  Many thanks for any help.


Tikz: defining nodes as other tikzpictures

I would like to define a shape for nodes in tikz using another tikzpicture. For instance, I would like to make the following into a node shape called monoid  \begin{tikzpicture}   \node (m) [circle,scale=.5,draw] at (0, 0) {};   \node (i1) at (-1,.5){};   \node (i2) at (-1,-.5){};   \node (o) at (1,|-m){};     \draw [-] (m) to (o);     \draw [-] (i1) to [out=0, in=135] (m);     \draw [-] (i2) to [out=0, in=-135] (m); \end{tikzpicture}   and be able to use it in another tikzpicture. For example, doing something like  \begin{tikzpicture}   \node(M)[monoid]at(0,0){};   \draw (-1,0)[out=0,in=180]to(M.i1); \end{tikzpicture}   If someone could point me to the part of the manual that I need to read in order to do this, it would be great. Thanks a lot in advance!  Elena


Prove that f(x) vanishes in whole of its domain.

$  f(x):[0,1] \to R $  is  continuous on $[0,1]$ &  differentiable on $(0,1)$ such that for all $x\in(0,1)$      $$|f'(x)|\le c |f(x)|$$ for some $c\in (0,1). $  If $f(0)= 0$, prove that $f(x)=0   $ on whole $[0,1]$   Here what I have done till now. Using Mean Value Theorem,  we get $|f(x)-f(y)|= |x-y||f'(\Omega)|\le c|x-y||f(\Omega)|$  for some $\Omega\in(x,y)\subset[0,1]$.   As f is defined on compact set, so it has maxima and minima in that set. Let $M$ be maximum value of f(x) at $x_o$.   So, our inequality gives us $f(x_o) =M < f(x) + \delta |f(\mu)|$ where we choose $|x-x_o|<\delta/c$ where $\mu\in(x,x_o)$ or $(x_o,x)$ whatever suitable.   I am stuck here and not been able to proceed further. I feel like an argument like this may work : -  we can choose $\delta$ as small as possible and so equality will hold only if function must have value $M$ in an interval. As $f(0)=0$   so $M=0$  I will be grateful, if someone can provide different solutions.


Difference between the derivative and differential

It is said that $\frac{d}{dx}$ is a operator and $\frac{dy}{dx}$ is the derivative of y with respect to x. But now in thomas calculus he defined $\frac{dy}{dx}$ as the ratio of two quantities dy and dx,where dy and dx are differentials.     What is the difference between operator $\frac{d}{dx}$ and differentials?   How is a derivative is defined in terms of differentials? Please anyone help?


How to get the numbers after the decimal point? (java)

double d = 4.321562;   Is there an easy way to extract the 0.321562 on it's own from d? I tried looking in the math class but no luck. If this can be done without converting to string or casting to anything else, even better.


Initializing static pointer in static class

So I have the following c++ class  class MyClass:  public:       static void InitObject();  private:      static MyObject *myObject;         };   And then in the .cpp file I do  void MyClass::InitObject {     myObject = new MyObject(); }   However, I get a compiler error saying that "myObject" was referenced from InitObject() and then it says Linker command failed with exit code 1.   Why doesn't this work? How do I fix it?


Why Earth is considered to be an inertial frame?

Earth rotates about its axis and also revolves around the Sun at the same time. So why Earth is considered as an inertial frame in Newtonian Physics. So technically, I'm effectively asking why the Earth-centered, Earth-fixed () frame is considered an inertial frame?


Error with TIkz function and polar coordinates in Texlive/MacTex

I am encountering a rather odd typesetting error with Tikz when running the following code:  \documentclass[]{amsart}  \usepackage{tikz,pgfplots} \usetikzlibrary{patterns,calc,fadings,decorations}  \begin{document}  \[\begin{tikzpicture}[thick,x=2em,y=2em]     \draw [->] (0,0) -- (0:{sin(90)}); \end{tikzpicture}\]  \end{document}   The above runs fine with MikTex (Windows) but gives this error when run in TexLive (Ubuntu) or MacTex:  Package `tikz` Error: Giving up on this path. Did you forget a `semicolon`? \draw [->] (0,0) -- (0:{sin(90)})   If I change (0:{sin(90)}) to (0,{sin(90)}) or (0:{1}) then it works fine. Any idea why?


Bash - get string containing spaces in for loop

I am attempting to write a bash script that operates on each directory in a subset. Unfortunately the path contains spaces, and I am unable to change the name.  The for loop insists on breaking at each space; I have tried dozens of variants, but am unable to come up with a solution.  A simplified version is below.  #!/bin/bash SOURCE="/Volumes/Time Machine Backups/Backups.backupdb/Zaphod" for file in `ls -d "$SOURCE"/201*` do     echo "File: $file" done   Can anyone suggest how I can get every entry e.g. /Volumes/Time Machine Backups/Backups.backupdb/Zaphod/2017-06-30-215735 in a separate variable.


How to hide the files in a server with 2 sudo users

I am sudo user of our server (Ubuntu). There is also another sudo user in our server, so both of us have access to other directories as root. I have some private files that I do not want to share with the other sudo user. Is there any way to do that?