Show the post's comments on the "Suggested Edits" review interface

Having recently reviewed a few suggested edits, I've found that not being able to see the comments on the post is hindering my understanding of the context of some edits.  In particular, there have been a few posts where someone has made a substantial edit to a question or answer which significantly alters its meaning. Typically I'd reject that as "too radical", since it can't be known that the new meaning of the post was what the original author intended.  However, in some cases it is clear from the comments that the original author is aware of the intended change, and as such the editor is not in fact misrepresenting the author's intentions. In these cases, it would have been useful to see the comments when making the review decision.  As an example, a common cause of this is when an inexperienced user is asked to clarify their question, and ends up writing a comment that would be better off as an edit to the question (due to length, excess code content, etc), presumably due to lack of awareness that the question can be edited. Often, other users will helpfully edit the question to include the information the OP put in the comment (see ,  and  for examples). In this situation, it is clear that the edit reflects the OP's intentions, but this information is only present in the comments which are not visible in the review interface.  Following is the suggested edit screen showing the suggested edit. It seems indentation is increased and one line is moved a few lines upwards and some empty lines added to increase readability. But it look like an invalid edit since changing the related line may cause alteration on the runtime. So not looks lie a valid edit. Better open the answer and examine it        Checking the Q&A itself reveals that a talk had taken place between the OP and the answerer and revision done by the OP with the permission of the answerer. So it was indeed a valid edit.        In short: is there any particular reason comments are not displayed in the suggested edit review interface? I think it would add useful contextual information when making review decisions, and presumably this would be trivial to implement.  Note: this is not a dupe of , as it does not concern comments posted after the suggested edit.


I have the following array environment:  \begin{array}{ccc} 0 & = & \text{some equation} \\ 0 & = & \text{some other equation} \\   & \vdots \\ 0 & = & \text{last equation} \end{array}   However, I get lots of spacing around the equal signs here, not unlike when using the eqnarray environment.  I want to use the array environment because \vdots is of smaller width than =, and gets centered under it.  Any help on conforming the padding/spacing to other equations would be greatly appreciated.


I made two functions which count punctuations in a text file. These punctuations are comma, apostrophe, hyphen and semi-colon. Counting comma and semi-colon is quite straight forward, but counting apostrophe and hyphen is a little bit more complicated as there are certain rules I must follow (according to my assignment) e.g. I can only count an apostrophe if it is between two letters like in shouldn't, won't etc. So I split this task up into two functions: countpunc1() and countpunc2().   At the end of both of these, I return a dictionary that has the count of these punctuations.   Then in the function main(), I want to be able to return a dictionary that has both the results from countpunc1 and countpunc2 combined into one key: punctuations.   Example shown at the bottom.  Here is my code:   def countpunc1(text):      for ch in '0123456789abcdefghijklmnopqrstuvwxyz!"#$%&()*+./:<=>?@[\\]^_`{|}~-':         text = text.replace(ch, '')     words = text.replace('--', '').replace("'", '').split()            wordlist = list(words)      dictToReturn = {}     punctuations = [',', ';']      punclist = list(i for i in wordlist if i in punctuations)       for x in range(len(punctuations)):         dictToReturn[punctuations[x]] = dictToReturn.get(x,0)     for p in punclist:         dictToReturn[p] = dictToReturn.get(p,0) + 1      return dictToReturn   def countpunc2(text):     for ch in '!"#$%&()*+./:<=>?@[\\]^_`{|}~':         text = text.replace(ch, ' ')     words = text.replace('--', ' ').split('\n')         wordlist = str(words)      punctuations = "'-"                dictToReturn = {}     letters = "abcdefghijklmnopqrstuvwxyz"     for i, char in enumerate(wordlist):         if i < 1:             continue         if i > len(wordlist) - 2:             continue         if char in punctuations:             if char not in dictToReturn:                 dictToReturn[char] = 0             if wordlist[i-1] in letters and wordlist[i+1] in letters:                 dictToReturn[char] += 1      return dictToReturn  def main(text):     text = open(text, 'r').read().lower()     profileDict = {}     # profileDict[punctuations] = ??     return profileDict   In the second last line above that is commented, I tried doing things like:  profileDict[punctuations] = countpunc1(text) + countpunc2(text)  and   profileDict[punctuations] = countpunc1(text).items() + countpunc2(text).items()  Clearly all of these are wrong and I get an TypeError: unsupported operand type(s).   Expected result is something like this:  E.g:  dict[punctuations] = {",": 9, "'" : 0, ";" : 4, "-" : 11}  PS. the function themselves work fine as I tested them on multiple text files.


$K[x,y]/\langle x^2-y^3\rangle \cong K[t^2,t^3]$

I'm stuck with this (should be easy) computation. I started by considering the most natural map $K[x,y] \to K[t^2,t^3]$ which is the one that sends $x \mapsto t^3$ and $y \mapsto  t^2$, and then extend by linearity. the map is easily seen to be surjective and factors through the quotient. The point is that I cannot find a way to show that the induced map is injective.. If I try to write down a general polynomial in two variables which is sent to zero I lose myself in the computations. Are there some other methods to show such claim?


I am trying to align div element centre vertically using below code but it's not working I am trying to get this since a long time but no result can someone help me please where did I do my stack and how can I    .center {     padding: 10px 0;     border: 3px solid green;     margin-left:10px;     margin-right:10px;   }   <!DOCTYPE html>
Center Vertically

In this example, we use the padding property to center the div element vertically:

I am vertically centered.
       <form action="/action_page.php">       <fieldset>         <legend>Personal information:</legend>         First name:
         <input type="text" name="firstname" value="Mickey">
         Last name:
         <input type="text" name="lastname" value="Mouse">

         <input type="submit" value="Submit">       </fieldset>     </form>
                    solve this?


which preposition is correct to use? On graduation day or at graduation day?  Thanks.


Can you make a non-polar electrolytic capacitor out of two regular electrolytic capacitors?

There was some discussion on this question        which I don't see as being conclusively resolved:   "turns out that what might LOOK like two ordinary electrolytics are not, in fact, two ordinary electrolytics." "No, do not do this. It will act as a capacitor also, but once you pass a few volts it will blow out the insulator." 'Kind of like "you can't make a BJT from two diodes"' "it is a process that a tinkerer cannot do"   So is a non-polar (NP) electrolytic cap electrically identical to two electrolytic caps in reverse series, or not?  Does it not survive the same voltages?  What happens to the reverse-biased cap when a large voltage is placed across the combination?  Are there practical limitations other than physical size?  Does it matter which polarity is on the outside?  I don't see what the difference is, but a lot of people seem to think there is one.  Summary:   As posted in one of the comments, there's a sort of electrochemical diode going on:     The film is permeable to free electrons but substantially impermeable to ions, provided the temperature of the cell is not high. When the metal underlying the film is at a negative potential, free electrons are available in this electrode and the current flows through the film of the cell. With the polarity reversed, the electrolyte is subjected to the negative potential, but as there are only ions and no free electrons in the electrolyte the current is blocked. —    Normally a capacitor cannot be reverse-biased for long, or large currents will flow and "destroy the center layer of dielectric material via electrochemical reduction":     An electrolytic can withstand a reverse bias for a short period, but will conduct significant current and not act as a very good capacitor. —    However, when you have two back-to-back, the forward-biased capacitor prevents a prolonged DC current from flowing.  :     For circuit positions when reverse voltage excursions are unavoidable,   two similar capacitors in series connected “back to back” ... will create a   non-polar capacitor function ... This works because almost all the circuit voltage   is dropped across the forward biased capacitor, so that the reverse   biased device sees only a negligible voltage.   :     The oxide dielectric construction that is used in tantalum capacitors   has a basic rectified property which blocks current flow in one   direction and at the same time offers a low resistance path in the   opposite direction.


Prove that $f(x,y)$ is continuous on $\mathbb{R^2}$

Prove that $$f(x,y) =\begin{cases}  e^{\frac{-1}{|x-y|}} &\text{for } x\neq y\\           0  &\text{ for  } x =  y\end{cases}$$ is continuous on $\mathbb{R^2}$. How much $proof$ has to go into showing that when $x \neq y$ $f(x,y)$ is continuous. It seems clearly true for since we have the constraint that $x\neq y$. For the $f(x,y) =0$ case where can I take this?


Reference request: How to understand $p\to q$?

I have studied calculus, linear algebra, some naive set theory, some analysis. These were not satisfactory at all. I want to find a way to understand the mathematical system in an axiomatic way.  The most difficult thing I have is "$p\to q$". There was no book that gave satisfactory explanation about this.  For example     $1+1 = 2 \to \sqrt 7$is irrational.    This is a true statement, but does not make sense to me. How does $1+1 = 2$ imply that $\sqrt7$ is irrational?!   I can't accept the definition of $p \to q$'s truth table, especially "vacuous truth".   Would you recommend me books regarding foundations of mathematics?  Would you recommend me a book that explains $p \to q$ well?


How to formulate continuum hypothesis without the axiom of choice?

Please correct me if I'm wrong but here is what I understand from the theory of cardinal numbers :  1) The definition of $\aleph_1$ makes sense even without choice as $\aleph_1$ is an ordinal number (whose construction doesnt depend on the axiom of choice) with some minimal property. With or without choice, there is no cardinal number $\mathfrak{a}$ such that $\aleph_0 < \mathfrak{a} < \aleph_1$.  2) In ZFC, all cardinal numbers are $\aleph$ and are comparable (by the trichotomic property of the ordinals). The continuum hypothesis states that $\aleph_1 = 2^{\aleph_0}$.  3) In ZF, $2^{\aleph_0}$ need not be an $\aleph$. However, I don't know if talking about  $2^{\aleph_0}$ in ZFC makes sense or not.  Does it make sense in ZF to define CH to be the statement that if a set is larger than the natural numbers, then it must contain a copy of the reals (up to a relabeling of the elements) no matter what the cardinality of the reals is ?


Nonparametric test for equality of variances

I have two small data sets (sizes $n_1 = 8$ and $n_2 = 21$) which look like they have significantly different variances. I know very little about the underlying distributions, but it's definitely not safe to assume they're normal or anything nice like that, which rules out the F-test. I'm aware I could use one of the other named tests (Bartlett, Brown–Forsythe, ...) although I'm not currently quite sure what they assume about the population distribution, if anything.  Instead, I've tried my hand at using a permutation test: the null hypothesis is that the two datasets have equal variance, so relabel the data points at random and measure the difference in the two variances of the relabelled sets. Out of 1,000,000 attempts, fewer than 40,000 had a larger difference in variance (<4%).  Is it correct to say that, therefore, the difference in variance of the two data sets is significant at the $p < 0.05$ level? If so, is there a well-recognised name for this kind of test?


Leave bash script running on remote terminal while not logged in?

I have a bash script that takes several hours to run.  While it's running, I would like to do other things, which may involve logging out or disconnecting from the internet (my script runs network tests on various computers).  I understand that there is a command that would allow me to run my tests from a remote terminal and logout of the terminal while it runs.  Does anyone know what this command is?


I've downloaded Pokémon go for 2 days now, and I have not even played yet. Because I get the message "Our servers are experiencing issues. Please come back Later". I've checked all the other sites, I used a google account instead but still get the message "Our servers are experiencing issues. Please come back Later". I've done everything. I wanna play this game all my friends are playing it but not me.


sample variance divided by variance is Chi Square

To estimate the sample variance, the following relation is often used: $$\frac{(n-1)s^2}{\sigma^2} \sim \chi^2(n-1) $$ With $(n-1)$ being the degrees of freedom. Could someone provide me a formal proof and some intuition for this relation?


I'm having reasonable success with notifications and fragments in my Android App although occasionally I get an error, as shown below, in my Firebase error log  Although it rarely occurs, about 5-6 per 10,000 notifications over 3 months to the app, it is a bit annoying because the notification is lost (maybe that's an acceptable level of crashes!)  I'd love to fix it in my code if I could, but I don't quite understand what this log is telling me  Does it mean anything to you..? Any help appreciated  NullPointerException - FragmentManagerImpl.execSingleAction  Exception java.lang.NullPointerException:  android.support.v4.app.FragmentManagerImpl.execSingleAction (FragmentManager.java:1623) android.support.v4.app.BackStackRecord.commitNowAllowingStateLoss (BackStackRecord.java:637) android.support.v4.app.FragmentPagerAdapter.finishUpdate (FragmentPagerAdapter.java:143) android.support.v4.view.ViewPager.setAdapter (ViewPager.java:511) com.support.android.policeman.MainActivity.setupViewPager (MainActivity.java:156) com.support.android.policeman.MainActivity.refreshFragments (MainActivity.java:454) com.support.android.policeman.MainActivity$7.run (MainActivity.java:425) android.os.Handler.handleCallback (Handler.java:730) android.os.Handler.dispatchMessage (Handler.java:92) android.os.Looper.loop (Looper.java:176) android.app.ActivityThread.main (ActivityThread.java:5419) java.lang.reflect.Method.invokeNative (Method.java) java.lang.reflect.Method.invoke (Method.java:525) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1046) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:862) dalvik.system.NativeStart.main (NativeStart.java)    Ok, so I'm a bit of a novice. However, thanks @altskop for the tip on how to understand this log and below is the bit of code where it is throwing the fatal error (viewPager.setAdapter(adapter) is line 156 to be exact)  private void setupViewPager(ViewPager viewPager) {     Adapter adapter = new Adapter(getSupportFragmentManager());     adapter.addFragment(new SenderListFragment(), "Loopy");     adapter.addFragment(new MessageListFragment(), "Poopy");     adapter.addFragment(new ContactListFragment(), "Scoopy");     viewPager.setAdapter(adapter); }   Is there a reason why the new adapter create wouldn't work, and if it returns null, what can I do..?


Why a Doe symbolizes Snape's love for Lily when in fact it symbolizes the tragedy of his life?

I know it was her Patronus. But. As JKR stated in an interview:  Chely: James patronus is a stag and lilys a doe is that a coincidence? J.K. Rowling: No, the Patronus often mutates to take the image of the love of one's life (because they so often become the 'happy thought' that generates a Patronus).  Meaning Lily's Patronus does not represent her personality as Snape knew it. Apparently Lily's Patronus would be (or was - if she mastered it earlier) something different, more personal. Obviously Snape's Patronus should have changed together with Lily's from being something different before (if he could cast it by the time). Doe is the evidence of Lily's love for Snape's worst enemy - probably the worst thing happened in Snape's life apart from her death. How does this represent the happiest thoughts for Snape? Basically, Snape's Patronus mutates to match James's - which is just bizarre, especially when you think that Snape should be aware of it. Side thoughts: Patronus probably should not necessarily take form of your love's Patronus to match. We see Tonks cast a wolf when fall in love with Lupin - probably just because a wolf is something that associated with him in her mind. I doubt that Lupin's Patronus is a wolf, given he should consider it to be the most hated part of himself. So Patronus should be more about your own perception of the loved one (speculative though). So... why a doe?!


Why confidence interval is important when point estimator is close to zero?

When the point estimator is relatively small numbers, a confidence interval is likely to contain zero, be fairly wide and include both positive and negative values.  Basically, when CI contains zero we would say that we cannot reject null hypothesis, but is there another conclusions that we can get from CI? In that case what additional information (interpretation) can provide us the confidence interval?


How do I enable showing fuction explanation on eclipse?

I would like eclipse to show me explanations for different methods, how do I do that?


Searching in Start menu does not show updated entries and shows deleted entries

I do not like the mess in the Start menu which is caused by applications adding their shortcuts when being installed. So, I regroup only necessary items, adding my own shortcuts, or delete unnecessary stuff (like "readme.txt") by modifying the files in "C:\Users\ [[userid]] \AppData\Roaming\Microsoft\Windows\Start Menu\Programs". It used to work but today, I found that searching (by typing some letters in the search box) does not reflect recent changes. It is as if it is showing a snapshot of the past. The strange thing is that those items are shown in the list when I scroll the Start menu, but not when searching by typing letters in the box. It is Windows 10 21H1; maybe it is happening after the upgrade to this version. I have tried rebuilding the index, but that did not solve the problem. The result is the same, and rebooting the OS did not solve the problem either. I tried running the Start Menu Trouble Shooter that Windows showed, and it showed "Fixed", but the result was the same. How can I solve this problem and make new entries appear in the search result?


Looking for the title of a YA/Youth sci-fi novel about kids traveling to alien planet where the aliens need sulphur to survive?

Plot Details/Summary: This particular book was part of "story time" that the teacher read to the class when I was in elementary school back in the 70s, so I'm a little fuzzy on the details.  What I do remember is that some kids, and possibly a parent/guardian, travel to an alien planet.  The aliens there have a problem: sulphur/sulfur is a vital nutrient to them, and their natural source has somehow run out. I recall one of the kids - I think a little girl - solves their problem by giving the aliens her pet chicken.  The yolk in the eggs she lays have enough sulphur to sustain them.  I'm not sure if this was supposed to be a temporary fix until they found a more permanent source, of if they planned on breeding more chickens to make it a sustainable thing.   The humans return to Earth at the end, I think. Publication Details: The book would have come out no later than the mid-to-late 1970s.  It was very "soft" sci-fi, written for a young audience.  That's all I can remember.


Why is pressure over the wing lesser than the pressure on the bottom?

Why is the flow above the wing faster than the lower one? Most people say it's because the pressure above is lesser than the bottom one But for the pressure to be low... The velocity must be high.So its like the chicken and egg question for me. Can't understand which one is the cause and which one is the effect.


Unable to get a response with Lambda Stream Filter

Here is the stream "airportFilteredList" i am having trouble with, it should print the country name that matches the filter of the given "Turkey" string but it doesn't print anything to the console, using count() on the stream gives a value of 0  public void getFilteredAirportList(String filteredText){       System.out.println(filteredText); //returns Turkey          Predicate<Airport> filterCountry = u -> u.getCountry() == filteredText;      Stream<Airport> airportFilteredList = airportList.stream().filter(filterCountry);      airportFilteredList.forEach(u -> System.out.println(u.getCountry()));  }   I made a general stream without the filter as well from the same list but it works well and returns all country names of the airports.  public void getAirportList(){     Stream <Airport> airportStream = airportList.stream();     airportStream.forEach(u -> u.getCountry()); //returns Turkey }   The ArrayList from which the Airport objects are retrived  ArrayList<Airport> airportList = new ArrayList<Airport>();  public void createAirport(String airport, String country, String continent,         String airfield_length) {     airportList.add(new Airport(airport, country, continent,             airfield_length));  }   The full source code is at


Find $x$ positive integer such that $x^4+x^3+x^2+x+1$ is a perfect square

Find the number of positive integers $x$ for which $x^4+x^3+x^2+x+1$ is a perfect square.   My attempts:  Let $x^4+x^3+x^2+x+1=k^2\implies (x+1)^2(x^2-x+1)=(k-x)(k+x)$  I analysed this a bit found $x=0$ as one which satisfy all condition, how do I find other, please help, try to continue this further, if any other elegant method then add that too.


Stimulus and adult parental dependent claimed for 2019

Can I amend my 2019 return to remove my parent as a dependent so they can get stimulus check?  I know that it says that if an adult "can" be claimed as a dependent than they aren't eligible but how does the IRS know if an adult could be claimed or not be claimed as an adult dependent on someone's tax return regarding the COVID stimulus?


Finding joint density of dependent variables

I've got two random variables, $x$ and $y$, where $x=u(y)$ and $y=v(x)$. How do I find the joint density of the two variables?   The eventual purpose is to find the integral  $\int^a\int^b f(x,y) dydx$,  where $f(.)$ is said joint density function.  This question is related () but I'm still a bit confused by the answer. I am indeed effectively looking for $Prob(x \leq a, y \leq b)$ but don't understand how I can get there without knowing the PDF first.  Any advice is much appreciated. Thanks a lot in advance!


Why is it "'s" after Let and before a verb, example "Let's go" or Let's do something"?

We often learn the structure “Let’s do something”, but why it there an apostrophe-s after let and before the verb?  Why does we need ’s in this structure?   Does ’s means is or does it mean was?


There is a program that starts with the system as shown in the image below.  I do not know how to find out which program is this.


How to clear a zombie process whose parent is init (PID 1)?

According to:   In order to clean a zombie process I should kill its parent.  In my case the parent is PID 1 (init). Which according to:   can't be killed. (even if it could be killed, I'm not sure it's such a good idea)  root@localhost:~# ps -ef | grep bcmrm root     16772 30829  0 22:47 pts/8    00:00:00 grep bcmrm root     21272     1  0 Jan26 ?        00:00:02 [bcmrm] <defunct>   What are my options? And why didn't init process cleaned it up?  Thanks,


How to prevent my ISP from putting every website in a frame?

My ISP has a bad habit of putting every page I visit into an iframe so they can overlay it with their commercials etc..  (I'm guessing they are using a transparent proxy to do it)  Is there an add-on that can remove the frames or block the attempt to do so?  Something like AdBlock does not work in this case.


The apex crypto class is great but it appears to only be able to sign content. Is there any way to verify a signature in apex? I would expect a Crypto.verify() method but it doesn't appear to exist. I have some device which will be shipping me back a configuration file containing a signature and public key and I'm at a loss on how to successfully verify this. Was planning on using the SHA1 algorithm.   Has anyone dealt with this before?


C++ Struct Error “No matching function for call 'erase'

vector erase function brings up an error whereas clear function works. What is the reason for this..?      #include <algorithm> #include <vector> #include <iostream> struct person_id{     person_id() = default;     person_id(int id) : p_id (id) {}      bool operator==(const person_id& other) { return p_id == other.p_id; }     int p_id; }; using std::cout; using std::endl;  int main(int argc, char* argv[]) {     std::vector<person_id> people;      person_id tmp_person;     tmp_person.p_id = 5;     people.push_back(tmp_person);      people.erase(5); // error : “No matching function for call 'erase'     people.clear(); // works      return 0; }


I've installed Skype, but the icon is not shown at the top panel (tray). As "tray-whitelist" was removed from dconf, I can't add icon by myself.


Prove the exsistence of 3 zero points of a function

Assuming $a<b$, function f(x) is continous at [a,b], and we have  $\int_a^bf(x)dx=\int_a^bxf(x)dx=\int_a^bx^2f(x)dx=0$  Prove that $\exists \ x_1,x_2,x_3\text {(different from each other)}  \in(a,b)$ satisfying $f(x_1)=f(x_2)=f(x_3)=0$.  I have proved the existence of one zero point by differential mean value theorem, but have no idea about going on.  Thanks for any solution or hint.


I get the following from sudo fdisk -l  Device       Start        End   Sectors   Size Type /dev/sda1     2048    1050623   1048576   512M EFI System /dev/sda2  1050624 1000214527 999163904 476.4G Linux filesystem   but my ADATA SU800 should have 512 GB total.   My last Ubuntu install got corrupted or something and now I can't seem to delete it.


When flagging an answer there doesn't seem to be an option for duplicates. Is there an etiquette for this, or nothing in place?  If there is nothing in place can I suggest a flag as duplicate option. It seems rather annoying that people just rep hunt by duplicating previously stated answers, with changes that are limited or non existent.  I think the only use case where this might cause upset is when someone has genuinely submitted an answer, and someone else has just submitted theirs as they have been writing.   In this scenario, where the time between answers is short and a factor, then perhaps a 'merge' function could be introduced. Which then assigns joint authorship, splits the reputation for the answer and allows an editor to take the best of both duplicate answers.


How do I recover a previous version of an Excel file which was overwritten?

Does anyone know of a way to recover a previous version of an MS Excel (2007) file in Windows Vista Home Premium version, which I've accidentally wrote over?


A pyramid $ABCDS$ in which all edges have different lengths and $|AS|+|CS|=|BS|+|DS|$

I'm trying to solve the following problem from the Polish XI Olimpiada Matematyczna Gimnazjalistów (question 7 from . The submission deadline of 12 October 2015 has passed.    I drew the grids below in order to clarify and notice some dependencies, but I cannot find any.


How can I explain what is wrong with the sentence "She is having difficulty to shop"?

It should be, I believe "She is having difficulty shopping." But I am not sure how I can explain to someone who is a non-native English speaker why the form "She is having difficulty to shop" is not correct but "She is having difficulty shopping" is okay.


The Number of Topologies on a Finite Set

I would like to know if there is like a magical formula to know how many topologies exist on a finite set  For example for $X = \{ a, b, c \}$ I found $29$, but I dont know if there are more or how to know this exact number without writing all topologies first.


Why do I get constant forecast with the simple moving average model?

I am trying to forecast time series data for next $n$ time periods and I am using various forecasting techniques like simple moving average, exponential smoothing (Single,double,triple) and auto.arima().  I am getting equal forecasting values for simple moving average and single exponential smoothing and at times, even auto.arima() function in R is giving me the same forecast values.  Here is the code that I am trying to use  mod_mva <- SMA(data.train,n=2) forecast_mva <-forecast(mod_mva,ts_freq)   Here is the output:


My Laptop has USB 3.0 but Ubuntu 14.04 doesn't recognize it?

I have two USB 3.0 ports in my dell inspiron 5421 laptop . The ports marked as SS meaning super speed. But when I run the command lspci -t this is the output  /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M     |__ Port 3: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtsx_usb, 480M     |__ Port 4: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M     |__ Port 4: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M     |__ Port 6: Dev 5, If 0, Class=Video, Driver=uvcvideo, 480M     |__ Port 6: Dev 5, If 1, Class=Video, Driver=uvcvideo, 480M   and the output of lsusb is below  Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 005: ID 0c45:649a Microdia  Bus 001 Device 004: ID 8087:07da Intel Corp.  Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   As is shown, none of the command shows the presence of a Super Speed USB port. I never actually checked it before but currently I am thinking to buy a portable 256Gb SSD, that's why I am checking if the port would be a bottleneck for the Drive.  Here is the output of lsmod | grep hcd; lspci -nnk | grep "USB controller" -A2   00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04) Subsystem: Dell Device [1028:0591] Kernel driver in use: ehci-pci   00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04) Subsystem: Dell Device [1028:0591] Kernel driver in use: ehci-pci


nmap -p1-65535 localhost gives me   PORT     STATE SERVICE 8080/tcp open  http-proxy   What is the process that is using this port.  From /etc/services/:  http-alt    8080/tcp    webcache    # WWW caching service


how do I get my code to use the value of the $HOME variable?

I'm trying to put together a generic script that will check the existence of several key directories for various users on different servers. Additionally, I want to leverage each user's $HOME variable.  For eg, let's say this were true:   on server 1: jdoe's home is /home/jdoe  on server 2: jdoe's home is /opt/jdoe2 server 3 hasn't been built yet; we won't know where they build his $HOME until the server is built. on server 4: mysql's home is /opt/home/mysql   This is what I have for my important directories (ordered from most to least impt):  $ cat mylist.txt $HOME/most_impt_dir1 $HOME/most_impt_dir2 $HOME/most_impt_dir3 $HOME/misc $HOME/junk   ...I want to find the most impt dir owned by this user.   Here's what I'm trying:  for i in `cat mylist.txt` do    if [[ -O $i ]] && [[ -d $i ]]; then     echo "found it: $i"     break   else     echo "$i is not it."   fi  done   The above code does not work for anything in my list because it is literally checking for dirs beginning with $HOME. How do I get my code to use the value of the user's $HOME variable?


Program prints -ve integers after 2147483647

I've recently started learning C. I have read that integer range of gcc is -214783648 to +2147483647.  Using GCC on CentOS.  I understood that it is 2^32 is splitted into two parts and 0.   Is this a imposed restriction on the Compiler ? Any Advantages with this ? or my compiler is 32 Bit ? (As far as I know my computer is 64-Bit). If one one go above this limit, what should one do ?   Thanks in Advance


Use the same counter for definitions and theorems

\newtheorem{thm}{Theorem}[section]  \newtheorem{defn}{Definition}[section]   \begin{defn} --some text \end{defn}  \begin{thm} --some text \end{thm}   when using the above commands i get as output the following code:  Definition 1.1 Theorem 1.1  But i want as output the following values: Definition 1.1 Theorem 1.2  Every time theorem and definition is used only the decimal values should be incremented. How can i do this?


Effect of spectral shift on the eigenvalues of a real symmetric matrix

Suppose a matrix A(real symmetric) is changed to A − σ I, where σ is any scalar quantity and I is the identity matrix. Explain what happens to the eigenvalues and eigenvectors of A?  I am unable to figure it out.  Thanks


Wrong values when reading floats from a text file in c

I am reading text file contains values like below     125602365  119653955   126374444   124463807   127312438   128395899   and the below code to read it.  if(!(pvtcheck(0)))   {      fscanf(fp,"%f",&deltime);      printf("\ndeltime0=%f\n",deltime);    ///Actual value is 125602365, but i am getting 125602368.   }    if(!(pvtcheck(1)))   {       fscanf(fp,"\t%f",&deltime);        printf("\ndeltime1=%f\n",deltime);///Actual value is 119653955, but i am getting 119653952.   }   /// same for pvtcheck(2),pvtcheck(3),pvtcheck(4)   if(!(pvtcheck(5)))   {       fscanf(fp,"\t%f",&deltime);        printf("\ndeltime5=%f\n",deltime); ///Actual value is 128395899, but i am getting 128395896.   }   In the Comment i have written output , any solution to not change the values


"Decode" special characters: %c3 -> Ö, %20 -> Space, etc

I want to implement a little Dropdown that will show Items that I searched for in a folder.  So, the problem is that I'm German and we have characters like Ä, Ö, Ü etc.  These characters are shown in a strange way. For example, the char Ö is "%c3". Also, spaces are shown as "%20".  Is there a simple way to change them without the string.Replace function?  My code:  try {     string dirPath = (Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) +          "\\Arma 3 - Other Profiles");      List<string> dirs = new List<string>(Directory.EnumerateDirectories(dirPath));      foreach (var dir in dirs)     {         HttpUtility.UrlDecode(dir);         MessageBox.Show(dir);         comboBox1.Items.Add(dir.ToString());     } } catch (UnauthorizedAccessException UAEx) {     Console.WriteLine(UAEx.Message); } catch (PathTooLongException PathEx) {     Console.WriteLine(PathEx.Message); }


I installed ubuntu 16.04 on my lenovo G500 wifi off

04 on lenovo G500 the wifi seem off meaning regardless seem enable ..can't see any network as is off. I tried few network-manager restart but still nothing .Please can someone help ? Many thanks   Hi the output is:   02:00.0 network controller (0280):broadcom corporation BCM43142 80.11b/g/n (14:e4:4365) (Rev 1) Subsystem : lenovo-g5 BCM43142 802.11/g/n (17aa:0611) kernel driver in use : bcma-pci-bridge  patrizia@patrizia-Lenovo-G500:~$ lsmod | grep -e acpi  thinkpad_acpi          86016  0  nvram                  16384  1 thinkpad_acpi  snd                    81920  18 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_ codec_conexant,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_ hda_intel,thinkpad_acpi,snd_seq_device  video                  40960  3 i915,ideapad_laptop,thinkpad_acpi


C# Xml Serialization and Memento Pattern - Serializer fails to save the object

I'm trying to learn how to save an object to the file in c#. I'm trying to use Xml serialization and Memento pattern. The object that i want to save is of "caretaker" type. Here is how it looks like:  public class Memento {     public int prop1 { get;private set; }     public String prop2 { get;private set; }     public int SomeClassProp { get; private set; }     public Memento(int p1, String p2, SomeClass sc)     {         this.prop1 = p1; this.prop2 = p2; this.SomeClassProp = sc.SomeClassProp1;     }     } public class Caretaker {     private Memento _memento;      // Gets or sets memento     public Memento Memento     {         set { _memento = value; }         get { return _memento; }     } }   Serializer code (copied from stack overflow):    public void SerializeObject<T>(T serializableObject, string fileName)     {         if (serializableObject == null) { return; }          try         {             XmlDocument xmlDocument = new XmlDocument();             XmlSerializer serializer = new                  XmlSerializer(serializableObject.GetType());             using (MemoryStream stream = new MemoryStream())             {                 serializer.Serialize(stream, serializableObject);                 stream.Position = 0;                 xmlDocument.Load(stream);                 xmlDocument.Save(fileName);                 stream.Close();             }         }         catch (Exception ex)         {             //Log exception here         }     }       /// <summary>     /// Deserializes an xml file into an object list     /// </summary>     /// <typeparam name="T"></typeparam>     /// <param name="fileName"></param>     /// <returns></returns>     public T DeSerializeObject<T>(string fileName)     {         if (string.IsNullOrEmpty(fileName)) { return default(T); }          T objectOut = default(T);          try         {             XmlDocument xmlDocument = new XmlDocument();             xmlDocument.Load(fileName);             string xmlString = xmlDocument.OuterXml;              using (StringReader read = new StringReader(xmlString))             {                 Type outType = typeof(T);                  XmlSerializer serializer = new XmlSerializer(outType);                 using (XmlReader reader = new XmlTextReader(read))                 {                     objectOut = (T)serializer.Deserialize(reader);                     reader.Close();                 }                  read.Close();             }         }         catch (Exception ex)         {             //Log exception here         }          return objectOut;     }   The problem lies here:      XmlSerializer(serializableObject.GetType());   Here is where it throws the exception, and in result the file is not created. I'm guessing there is something wrong with the type of object that I want to save, right? Can you anyone help me somehow?    Edit: Serializer usage:  c.Memento = this.CreateMemento(); SerializeObject<Caretaker>(c, "savedObj");


When should I use "Would",  "Would have", "Will", and "Will have"?

I hope someone, once and for all, can clarify (with examples) the difference in usage of will vs. would vs. would have vs. will have.


$$\sum_{n=1}^{\infty}\frac{1}{n(n+1)\cdots(n+v)}=\frac{1}{vv!}$$ I am struggling to find a solution for this but no luck yet. How can I analyze it to get to second part?


I have this function:  byte GD_FindButton(BUTTON **array, TPoint *Touchposition) {     int i = 0;     for (i = 0; i < sizeof(**array); i++)     {         if ((Touchposition->x > (*array)->x1) && (Touchposition->x < (*array)->x2) && (Touchposition->y > (*array)->y1) && (Touchposition->y < (*array)->y2))             return (*array)->name;         array++;     }     return 0; }   where **array is a pointer of pointer declare as is:  BUTTON **button_array[2] = { &home, &start };   that contain   BUTTON home = { 20, 145, 70, 195, 'h' }; BUTTON start = { 84, 33, 236, 185, 's' };   I have to detect the size of the **button_array for prevent overflow during the for loop but I have problem to understand how to do. Can you help me?  Thanks!!


Apache takes me to same site with different domains

When I try to navigate to my site any domain I enter under https it takes me to the site specified in the VirtualHost config provided. I have setup the ServerName but it still doesn't work. So if I enter  it takes me to the site as expected but when I enter anything else such as  it still takes me to the previous site. Why does this happen?  <VirtualHost *:80>         ServerName storage.example.com         #Redirect permanent / https://storage.example.com/         RewriteCond %{HTTP_HOST} ^storage.example.com         RewriteRule ^(.*)$ https://storage.example.com$1 [R,L] </VirtualHost>  <VirtualHost *:443>         Alias /files /var/www/files         ServerName storage.example.com         DocumentRoot /var/www/nextcloud/          <Directory /var/www/nextcloud/>                 Options +FollowSymlinks                 AllowOverride All                  <IfModule mod_dav.c>                         Dav off                 </IfModule>                  SetEnv HOME /var/www/nextcloud                 SetEnv HTTP_HOME /var/www/nextcloud         </Directory>          # SSL         SSLEngine on         SSLCertificateFile      /etc/letsencrypt/live/storage.example.com/cert.pem         SSLCertificateKeyFile /etc/letsencrypt/live/storage.example.com/privkey.pem         SSLCertificateChainFile /etc/letsencrypt/live/storage.example.com/fullchain.pem          Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains;"          ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined  </VirtualHost>


all linux installation stops at error ""intramfs unable to..." version 14

installation stops at ""initramfs unable find a medium containing live file system "" i have tried lubuntu , xubuntu ,ubuntu all are giving me errors ..iam using bootable usb and using Universal-USB-Installer-1.9.5.6(1).exe as instructed on pendrive linux  quick specs p4 3.ghz 512mb ram ,32bit hdd is pata 80gb i researched and found that it is bios setting problem....  ubuntu version is ubuntu-14.04.1-desktop-i386.iso xubuntu version is xubuntu-14.04.1-desktop-i386_2.iso lubuntu version is lubuntu-14.04.1-desktop-i386.iso


Why is my reversal ring not working with the lens's aperture?

Recently I bought a reversal ring for my Canon 700D, to take macro photography. I reversed an 18-55mm kit lens. When I tried to take photos, the aperture went to f00. What can I do to set the aperture?


I want to create a collection of exercises. For this I constructed an environment for the exercises:  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc}  \newcounter{wf} \setcounter{wf}{0}  \newcounter{Aufg} \setcounter{Aufg}{0}  \newcommand{\Punkte}{0}  \newenvironment{Aufgabe}[1]{% \renewcommand*{\Punkte}{#1}% \nopagebreak% \begin{list}{}{} \item[]% \makebox[0pt][l]{%       \hspace{-1cm}\refstepcounter{Aufg}\textbf{\arabic{Aufg}}}%}% \ignorespaces}{ \ifnum \Punkte>0 \hspace*{0pt} \hfill \mbox{(\Punkte\ BE)} \fi% \end{list}% }  \begin{document} \begin{Aufgabe}{5} This is exercise number one. Topic: Alpha \end{Aufgabe} \begin{Aufgabe}{4} And here we have exercise number two. Topic: Beta \end{Aufgabe} \begin{Aufgabe}{2} Finally exercise number three. Topic: Gamma \end{Aufgabe} \end{document}   I also have substructures for the exercises (exercise A2.1.1 or so) but I want to keep it simple here and just take a look on the exercise numbers.  For an index normally I would write \index{Alpha} in exercise number one (and Beta in two and gamma in three) and this would give me:   Alpha   1  Beta    1  Gamma   1  Because it refers to the page number. But what I really want is an index which gives me the exercise number. So for example using \myindex{Alpha} in exercise one (and Beta in two and Gamma in three) and it should result to  Alpha   1  Beta    2  Gamma   3  Or if there is a more complex structure and exercises with the same topic it should be like this:  Alpha   A2.2; A3.4  Beta    B1.1; B1.2.1; B1.2.2  Gamma   A1; B5.4   and so on.   Do you have any ideas for this special problem?  Thank you in advance for your help.


If $X,Y$ are independent $\chi ^2$ with $m$ and $n$ degrees of freedom, then $\frac{X}{X+Y} \sim\beta(m/2, n/2)$

I was reading  and I find the following problem: Let $X$ and $Y$ be independent $\chi ^2 $ with $m$ and $n$ degrees of freedom then $\dfrac{X}{X+Y} = \beta(m/2, n/2)$. Where $\chi^2(k)$ has density function $$f_{\chi^2(k)}(x)=\begin{cases}\displaystyle \frac{1}{2^{k/2}\Gamma(k/2)}\,x^{(k/2) - 1} e^{-x/2}&\text{if }x>0,\\ 0&\text{if }x\le0 \end{cases} $$  I proved that $X+Y$ is $\chi ^2$ with $n + m$ degrees of freedom using the moment-generating function. If $Z=X+Y$ and $U=\dfrac{X}{X+Y}=\dfrac{X}{Z}$ using the formula for the density of the ratio of two independent random variables: $$f_U(u)= \int_{-\infty}^{\infty}f_X(uv)f_Z(v)|v|dv $$  then  $$\dfrac{u^{m/2-1}}{2^{(m+n/2)} \Gamma(m/2) \Gamma((m+n)/2)} \int_0^{\infty} v^{m+\dfrac{n}{2}-1} e^{-(v/2)(u+1)}dv $$  and using some algebra:  $$f_U(u)=\dfrac{u^{m/2-1} \Gamma(m+n/2)}{\Gamma(m+n/2) \Gamma(m/2) (u+1)^{m+n/2}}$$  and this is not $\beta(m/2, n/2)$, it looks more like $\beta(m/2, m/2+n/2)$ but $(u+1)^{m+n/2}$ is causing troubles.  I need help if something is false or any hint.


When I run the command apt-get update.Error occurred   root@ubuntu:~# apt-get update   E: Some index files failed to download, they have been ignored, or old ones used instead.   I am unable to solve this problem.could anyone help me?


How can I produce the codes to get the symbols of pencil, ruler and compass in LATEX? I'm gonna write a sentence I can draw this figure by using simple tools in my presentation. So I prefer to include symbols pencil, ruler and compass instead of the words simple tools. Is it possible?


Why do Template Specializations need declspec?

I have a Project in CMake including a shared library. To use templated Functions i have to explicitly instantiate or specialize them because the compiler can't know for which types they will be needed from outside the library. CMake provides a Makro that produces the needed __declspec(dllexport) / __declspec(dllimport) I have prefixed the declaration of my function with that macro and everything works as intended. Now when I add a Specialization for that function it strangely also needs that macro, otherwise the linker creates an error (Ex.: undefined reference to `_imp__Z3addIdET_S0_S0') There is no immediate Problem here, I am just confused as to why the Specialization needs the declspec again. Even more so since simple instantiations don't seem to need it. I am using gcc 10.2.0 from msys2 and ninja 1.10.2 on Windows 10 Edit: I looked at  before asking and it does not answer mine. When compiling other.cpp the compiler has acces to everything about the template function. So when compiling main.cpp add<int> is already present in libother.dll and add<double> should be as well. I guess add<double> is only exported into the .dll with __declspec(dllexport) The question is: why is add<int> exported without it then? Example: CMakeLists.txt: cmake_minimum_required(VERSION 3.19.4) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) #Put Lib and Exe into the same Folder project(Test)  add_library(Other SHARED other.cpp) target_include_directories(Other PUBLIC .)  include(GenerateExportHeader) generate_export_header(Other                        EXPORT_MACRO_NAME OTHER_EXPORT                        EXPORT_FILE_NAME OtherExports.h) target_include_directories(Other PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")  add_executable(Test main.cpp) target_link_libraries(Test Other)  main.cpp: #include <iostream> #include "other.h"      int main(){     std::cout<<add(1,2)<<std::endl;     std::cout<<add(1.0, 2.0)<<std::endl;     return 0; }  other.h: #include "OtherExports.h" template<typename T> OTHER_EXPORT T add(T a, T b);  other.cpp: #include "other.h"  template<typename T> T add(T a, T b){     return a+b; }  //instantiation for int without declspec macro, compiles! template int add<int>(int, int);  //specialization for double without declspec macro, doesn't compile! template <> double add<double>(double a, double b){     return a-b; }  //Specialization for double with declspec macro, compiles! /*template <> OTHER_EXPORT double add<double>(double a, double b){     return a-b; }*/


Can we incorporate member functions inside a structure in C++? As we do in classes can we put functions inside structures.  If yes then what is the fun on keeping both Structures and Classes in C++?


The locate command on ubuntu is so great that I miss it a lot on Windows 7.  Do you know of an alternative?  Ok I found this but it's not great:    Thank you


Saving file to .shp with have many attribute

Is there a way to save a file to .shp with have many attribute (I use QuickOSM to create a building Layer and I tried to save but it get error). Is there a way to change .KML to .shp? I get error message:  Could not make temporary scratch layer permanent. Error: Creation of field addr:street_1 failed (OGR error: Can't create field addr_str_4 in Shape DBF file, reason unknown.)


How do I make windows explorer display the file path instead of words such as "Documents" or "Desktop"

If you ever click something on the sidebar in windows explorer:  the top thing says the name of what whatever you clicked:  However if you actually navigate to the place by clicking through the files starting at "This PC" it displays the path:  How do I force the top bar to always show the direct path instead of just the word?


Is LAN with StarCraft 2 definitely not possible?

I searched around the web, even in the official SCII com forums, but I could not get an exact answer on this question:  "Is LAN with SCII definitely not possible or is there a way to get the PCs inside the LAN connected even through the Battle.NET without connecting the computers via Internet?"  I heard about work-arounds, where you still use battle net but after connecting to the certain players you let the connection run over the local network.


Seagate Expansion Hard Drive (Portable) is not recognized By Windows!

My  is not recognized by windows. When I connect it to the computer I do not see "Mass Storage Device" Under "Universal Serial Bus Controller". I already check the troubleshoot and test for everything (Cable is OK, I checked in another computer, etc)  It happen after I connect the Hard Drive to another computer which then I realized it's USB Port was corrupted and problematic.  Is there a way I can fix this Hard Drive? Or any utility which can access this hard disk? When I connect Hard Disk, it turned On (The Light become green) and it start vibrating.  P.S: I check my drive again SeaTools, but  cannot recognize it too.


Flagging question as "off-topic" crashes the app

As the title suggests, when choosing to flag a question as "this question should be closed for another reason" -> "off topic", the application crashes.  I have tried multiple questions on both Stack Overflow and Meta, and observed this behaviour.


How do I test is a Python variable is a set

If I have an object:      w = {'A'}   how do I test if this is a set or not?


Executing ModelBuilder using C# classes?

How can I execute ModelBuilder in ArcMap 10.1 using .NET 2013 C# classes?


Is there a word to describe "see wrongly"?

e.g. misunderstood, misread  It does not sound formal to say "understood wrongly" or "read wrongly". The only way to make it sounds formal is to use a single word to describe that act.  However, I cannot think of a word to describe "see wrongly" although it is commonly spoken (in Singapore).


How to prove that  $$1^2+2^2+...+n^2=\frac{n(n+1)(2n+1)}{6}$$ without using induction.  If we don't know the right side of this expression, how to get right expression. I tried with partial sums and binomial formula but can't get it.  So the problem is: $$1^2+2^2+...+n^2=?$$  Thanks for replies.


Is an Anti-Symmetric Relation also Reflexive?

According to the definition of an Anti-Symmetric Relation if xRy and yRx then x = y  Which means, effectively, x is in relation with itself. Does this mean that anti-symmetry implies reflexive property as well?


Find the sum of the following inﬁnite series:  $$\frac{1}{5}-\frac{1.4}{5.10}+\frac{1.4.7}{5.10.15}- ...$$    stuck on this problem.seek your help


Trying to run python web server in background on Windows

So, I basically am setting up an extremely simple python 3.8 web server to shutdown and restart my pc. I want to have the program run silently every time I startup my PC. I have created a .bat file to do so, and I will use task scheduler to have it run automatically. My problem right now is with the python console that shows up whenever I run the .bat file. Right now the python file is saved as a .pyw file, and I have tried changing the python3 command to pythonw3, which is a valid program, but doesn't keep my web server up and closes the python console immediately. This is my python code: import socket from http.server import BaseHTTPRequestHandler, HTTPServer import time import os  hostName = "" hostPort = 80   class MyServer(BaseHTTPRequestHandler):      #   GET is for clients geting the predi     def do_GET(self):         self.send_response(200)         if "shutdown" in self.path:             self.wfile.write(bytes("
Shutting Down...
", "utf-8"))             os.system("shutdown /s /c Shutting_Down... /t 5")         elif "restart" in self.path:             self.wfile.write(bytes("
Restarting...
", "utf-8"))             os.system('shutdown /r /c Restarting... /t 5')         else:             self.wfile.write(bytes("
You accessed path: %s
" %                                self.path, "utf-8"))                        #   POST is for submitting data.     def do_POST(self):          print("incomming http: ", self.path)          # <--- Gets the size of data         content_length = int(self.headers['Content-Length'])         # <--- Gets the data itself         post_data = self.rfile.read(content_length)         self.send_response(200)          client.close()          #import pdb; pdb.set_trace()   myServer = HTTPServer((hostName, hostPort), MyServer) print(time.asctime(), "Server Starts - %s:%s" % (hostName, hostPort))  try:     myServer.serve_forever() except KeyboardInterrupt:     pass  myServer.server_close() print(time.asctime(), "Server Stops - %s:%s" % (hostName, hostPort))  This is my bat file: cd C:\Users\MyUser\Desktop\PC Remote Shutdown and Restart start python3 Shutdown.pyw  I am trying to have the python console not appear, and still be able to access the webserver


No option for showing for my 2nd operating system after restart

I have dual booted lapy with ubuntu and windows,the problem is I am unable to start windows. Why this is happening??


I have read that the creators of TOS originally wanted to give Spock red skin but the red makeup they used looked bad in black and white TV.  And they they considered green makeup for Spock.  So did Leonard Nimoy wear green makeup in Star Trek: The Original Series?  The question "Why are Vulcan lips human-reddish instead of Green?" and its answers assume that Nimoy did not wear any greenish face makeup in Star Trek.    The cover illustration for Star Trek 1967 by James Blish has a greenish faced Spock.  :  In pictures of Spock from Star Trek: The Animated Series he sometime seems to have a Caucasian complexion and sometimes a slightly greenish complexion.  Spock never looks as green as an Orion slave girl, but sometimes looks like he could be related to the Green Girl of Woolpit. If the makers of Star Trek: The Animated Series deliberately gave Spock a slightly greenish complexion it was very well done considering that director Hal Sutherland had a form of color blindness.    But I have been watching Star Trek: The Original Series on the Heroes & Icons channel and Spock's face does seem faintly greenish in some scenes, especially when standing next to a Caucasian Human.  According to Memory Alpha:     Most Vulcans had straight, glossy dark brown or, more commonly, black hair and pale skin with a very subtle greenish tinge, much as the skin of Humans of European descent had a very subtle reddish or pinkish tinge.      The original question by bitmask in "Why are Vulcan lips Human-Reddish instead of Green?" says that Caucasian Humans have lips that are a brighter pink than their paler skin on the rest of the face.  And thus Spock could have been given green lips to show that he was a green-blooded Vulcan.  And it asks why that wasn't done.    Thus bitmask believes that Leonard Nimoy as Spock didn't wear any green makeup on his face and thus on his lips.  The accepted answer by G.Vegt says:     As the link you provide indicates, caucasian-equivalent Vulcans have not only green blood, they have green skin. (In a caucasian, most of the skin colouration is from the blood, this is why sick caucasian people tend to become so pale as their blood withdraws from their skin.)      Thus I would expect that while they may have wanted to colour the lips and skin green, it was not feasible in the budgets of the time to do more than just colour the lips. The combination of pink with green is aesthetically unpleasing to many people, so they probably decided to avoid combining pink skin with green lips, and accept it as a limitation.      Over time, people have gotten used to the skin tone of Vulcans as portrayed in the series, and as such it would be economically infeasible to use modern technology to provide the correct skin tone and lip colour.     So he says:  1) Officially most Vulcans have pale greenish skin and slightly brighter greenish lips.  2) Probably the makers of TOS couldn't afford to color more than Spock's lips.  3) Pink and green are clashing colors so it would have looked bad for Spock to have pinkish skin and greenish lips.  So the creators of TOS didn't color Spock's lips.  4) And so people have become used to seeing Vulcan with pinkish skin and lips.  But there is some evidence that Leonard Nimoy may have worn faintly greenish face make up as Spock in Star Trek: The Original Series.  So I ask if bitmask and G.Vegt are correct in saying that Spock was not depicted with faintly greenish skin in Star Trek: The Original Series or if Leonard Nimoy as Spock did wear faintly greenish face makeup?


I wonder how I can add a \part entry to the TOC without any output in the the document itself. I actually got a nearly working version:  \begin{filecontents}{chap1.tex} \chapter{Chapter} This is a chapter. \end{filecontents} \begin{filecontents}{chap2.tex} \chapter{Chapter} This is a chapter. \end{filecontents}  \documentclass{scrbook}  \usepackage{xparse,hyperref}  \NewDocumentCommand{\TOCpart}{s m}{%    \clearpage    \refstepcounter{part}%    \phantomsection    \addcontentsline{toc}{part}{%       \IfBooleanF{#1}{\protect\numberline{\thepart}}%       #2%    }%    \cleardoublepage    \ignorespaces }  \begin{document} \tableofcontents \part{Normal Part} \include{chap1}  \TOCpart{TOC Part} \include{chap2}  \part{Normal Part} \chapter{Chapter} This is a chapter.  \TOCpart{TOC Part} \chapter{Chapter} This is a chapter. \end{document}   This works except that “II. TOC Part” should be listed with page 7 instead of 6. I.e. with the same one as the following chapter. If I change the definition to  \NewDocumentCommand{\TOCpart}{s m}{%    \cleardoublepage    \refstepcounter{part}%    \phantomsection    \addcontentsline{toc}{part}{%       \IfBooleanF{#1}{\protect\numberline{\thepart}}%       #2%    }% %   \cleardoublepage    \ignorespaces }   The entry has the right page number but if followed by an \include it appears behind the chapter entry, which is pretty wrong … so how can I combine the two definitions to get the part before the chapter but with the chapter’s page number, while still using \include and don’t moving \TOCpart inside of the included file?


Stopping users voting multiple times on a website

I'm planning to add some vote up/vote down buttons to a website I run. This seems easy enough but I want to stop people voting multiple times. One solution would be to make them register before allowing them to vote but I'd prefer not to have to force them to register.   Is there are a reasonably straightforward way of doing this? Checking the IP address doesn't seem like a good solution, since it's possible that multiple users may come from the same IP address.   Cookies might be the answer, but a savvy user could delete the cookie. Any better ideas?


UK visa for my green card Filipino wife, do we have to have all accommodations paid for and planned in advance

We are wanting to travel to UK, specifically Scotland. We only plan to get a hotel for 3 days in Edinburgh and then travel around for 3 weeks and get hotel accommodations as we go without a firm travel structure.  In trying to get a UK visa for my green card Filipino wife, do we have to have all accommodations paid for and planned out in advance? If so that would kill the trip for us.  Thank you so much for trying to help this old man.


When I do sudo apt update I keep getting stuck in the line below:  0% [Connecting to security.ubuntu.com (2001:67c:1360:8001::21)]    Is there any problem with ipv6 resolution in Ubuntu? Is there a way to force ipv4 in case this is the problem ? (maybe my router is not so smart, I don't know).  Ping output:  ping6 2001:67c:1360:8001::21 PING 2001:67c:1360:8001::21(2001:67c:1360:8001::21) 56 data bytes ^C --- 2001:67c:1360:8001::21 ping statistics --- 12 packets transmitted, 0 received, 100% packet loss, time 11000ms   Traceroute output:   traceroute6  2001:67c:1360:8001::21traceroute to 2001:67c:1360:8001::21  , 30 hops max, 24 byte packets  1  * * *  2  * * *  3  * * *  4  * * *  5  * * *  6  * * *  7  * * *


Weird Reputation Change (How do I report)

On StackOverflow, I just went from a reputation 2,452 to 2,412 in a matter of seconds, no Idea how. Who do i ask and how to I report this to?  Resolved  A question had been deleted, and that is the reason I lost the reputation.


iPhone 7 Plus takes days to turn on showing Apple logo or black screen

I’ve had this issue for months but in the last couple of days it’s got very very bad.  When my phone runs out of battery it needs like 2–3 days to turn back on. At the beginning of this problem the phone would need about 1h. Every time when my phone goes off again the time to switching on goes up.  What does this all look like? Well, when my phone died I put it on the charger, then the logo appears and goes off. When it goes off, a black screen pops out with a little white line on in it, then it turns on back to Apple logo. It keeps doing this until it turns on which is 1 or 2 even now 3 days.  I tried to restore it and also update it but nothing happens, literally nothing happened.


Change Dash to Dock setting on Ubuntu 18.10

I prefer to have Dash to Dock minimized, so I use a command   dconf write /org/gnome/shell/extensions/dash-to-dock/extend-height false.    The problem is, when I tried this command in the new Ubuntu 18.10 installation, it didn't work as expected and there is extra vertical line visible. Is there a way to get rid of it?


How to count accepted answers for questions not asked by ourself

I have answered for questions in SO (some are asked by me) and in that, some answers are accepted with +1s, some are accepted with no +1s, and some are not accepted. Is there any way I can count or track on accepted answers I posted which are not for questions I asked?  Note: I know how to track accepted answers using isaccepted:1 user:484082


I'm interested in writing packages for TeX/LaTeX/XeLaTeX. I googled around, but all I found was guides or tutorials about how to prepare documents using LaTeX. I want to know how LaTeX works and how to change it or add new things to it.   Which book/guide/tutorial is the most useful source to learn LaTeX programming? Is there official documentations around LaTeX development? (I couldn't find development SCM on official site. is source code private?)


Difference between a space and a "wave" symbol (tilde/"~")?

As title, what is the difference between a   and ~?  I see no differences after the compilation.  MWE:  \documentclass[a4paper]{article}  \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \usepackage[colorinlistoftodos]{todonotes}  \title{Your Paper}  \author{You}  \date{\today}  \begin{document} \maketitle  I am cool.  I~am~cool.  \end{document}


I want know model and characteristics of my wifi card. How to do it in ubuntu?


set theory proof of $A\cap B = A \setminus(A\setminus B)$

Please proof that $A\cap B=A\setminus(A\setminus B)$ this really gave me sleepless night. I tried using the set intersection properties but I still got confused.


mathtools: \dddot cause the term to rise

From , I have tried the using \hspace{0pt} and   \makeatletter \renewcommand{\dddot}[1]{%   {\mathop{\kern\z@#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@    \hbox{\normalfont ...}\vss}}}} \renewcommand{\ddddot}[1]{%   {\mathop{\kern\z@#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@    \hbox{\normalfont....}\vss}}}} \makeatother   after loading mathtools but the problem still persists.    \documentclass{article} \usepackage{mathtools} \begin{document} \[ \dot{\mathbf{r}}\times\ddot{\mathbf{r}}\times\dddot{\mathbf{r}} \] \end{document}   In the case the font scheme I am using has any affect as well, the fonts are:  \usepackage[utf8]{inputenx} \renewcommand{\rmdefault}{ppl}                  \linespread{1.05}                   \usepackage[scaled]{helvet} \usepackage{courier}               \usepackage{eulervm} \normalfont       \usepackage[T1]{fontenc}            \usepackage{textcomp}


Show the original function when logging funcName in a decorator

I have a decorator to retry some operations for 3 times if a deadlock happens, and does some logging in the process:  def retry_on_deadlock(func):     logger = logging.getLogger('test')      @wraps(func)     def decorated(*args, **kwargs):         retry_count = 0          while retry_count < 3:             try:                 return func(*args, **kwargs)             except DeadLockException:                 retry_count += 1                  if retry_count == 3:                     raise                  logger.warning('We are in the decorated function here')      return decorated  @retry_on_deadlock def crucial_function(value):     with value:         do_something()  crucial_function(important_data)   Our logging format includes %(funcName)s which, in this specific case, will evaluate to decorated. Is there a way to make crucial_function appear in the logs instead?  I already tried implementing a logging filter, but the logic it needs became a bit cumbersome, as it needs to inspect the stack, and if the logging happened directly in the decorated function (ie. not in a function called by the original function) it will overwrite funcName on the log record. If this is the only way, though, i will sadly accept it.  Update: This is not the same as  question as i don’t really care about the functions signature (which, in fact, is preserved by the @wraps decorator). I want to instruct the logging library to skip one level from the stack trace when logging the function’s name via the %(funcName)s, %(filename)s, and %(lineno)s.


Adding Role To a Marketing Cloud User via API

Is there a way to add marketing cloud roles to a user via SOAP or REST API?


Creating volumetric lighting (crepuscular rays) in Cycles

(a.k.a. "god rays" and many other names) can be created in Blender Internal by checking the Halo checkbox in the lamp properties box.  How can I create a similar effect using Cycles?


Why are there so many loopback addresses?

From my understanding, all IP addresses of the form 127.x.y.z are loopback addresses. Now that seems to be quite a waste to me; indeed, already more than one address seems like a waste.  Is there any use in having so many loopback addresses?


the comparative ... , the comparative ... and predication

I know people have asked about the correlative comparative construction, but none of the previous posts concerns its specific analysis. How would you analyze the boldfaced part of #2 below?   The more you buy, the greater the discounts you receive.  The more you buy, the greater discounts you receive.    In #1, "greater" stands in a predicative relation to "the discounts you receive"; it's paraphrasable as "The discounts you receive are (the) greater the more you buy. The copular verb "are" can be treated as omitted in #1. Does the same predicative relation hold in #2? What about an alternative analysis whereby "greater discounts" stands in a verb-object relation to "receive"? In this connection, consider #3:   The longer you work, the more money you earn.   Which kind of relation holds in #3? A predicative or verb-object relation?


How to hand over arguments containing "-" in Bash?

I tried to use the grep command to search for a string like -R in a file. But the command thinks, that I am trying to hand over an option like -i for ignore case.


A bot script needs to be run to convert meta.[site] URLs to [site].meta URLs

The Community bot already ran through posts to convert internal http:// links to https://, which is great, but it needs to be run one more time: this time, it needs to convert links of this format:  https://meta.example.stackexchange.com/   to this format:  https://example.meta.stackexchange.com/   Our old meta pages on RPG Stack Exchange contain lots of internal meta references which still follow the old (first) domain protocol.  This link points to rpg.meta and is fine:   However this link points to meta.rpg and contains a privacy error in Chrome because meta.rpg.stackexchange.com doesn't actually have a certificate:         As you can see this means people trying to visit meta links posted before a few months ago are left with no obvious option of how to actually reach the intended destination. They'd also be confused why an obviously Stack Exchange URL is breaking.  Please run that Community edit script another time!  Reported locally on our RPG.SE meta as well here:


Panel settings not appearing on right-click in gnome

I just installed Ubuntu 12.04. I switched to Gnome classic from unity as I'm more comfortable with the former. However, I couldn't find where the panel setting are. Usually a drop down menu appears on right-clicking the top and bottom panels. But it doesn't happen now.  I need the panel settings so as to auto hide the panels (as my netbook screen is quite small!) as well as to add the "system monitor" applet to the panel which is really useful.  Where can I find the panel settings?


Linear gradient is not working with  element

I am trying to apply CSS gradients to my  elements. It clearly doesn't work and I've been trying to work it out with no success. I am using Chrome if it has to do anything with the issue.    body {   margin: 1cm; }  a {   padding: 15px 60px 15px 60px;   text-decoration: none;   border: 1px solid black; }  #1button {   background: rgb(2, 0, 36);   background: linear-gradient(65deg, rgba(2, 0, 36, 1) 0%, rgba(12, 12, 125, 1) 35%, rgba(0, 212, 255, 1) 100%); }  #2button {   background: rgb(2, 0, 36);   background: linear-gradient(65deg, rgba(2, 0, 36, 1) 0%, rgba(232, 51, 55, 1) 35%, rgba(241, 95, 223, 1) 100%); } Button #1 Button #2


How could we have spent this time on the island?      How could we spend this time on the island?   What is the difference between those two sentences ?


Does anyone know what device could this be?    I got all drivers for my computer from


How to read a file outside of project directories with Scanner

I have this 2 lines in my code:  String csvPath = "D:\\myFolder";  Scanner scanner = new Scanner(ReadCSV.class.getResourceAsStream(csvPath + "\\myFile.csv"));   It gets me a null pointer error. I think it is because it is trying to find it under project path. How can I make this work without omitting the scanner? Is it possible to make it work wit getResourceAsStream() ?


Check if the number $3^{2015} - 2^{2015}$ is prime


Well, today, I had an intense discussion with one of my colleagues about underscores in attributes' names. While some libraries I work with put it in the start of the name, others put it last.  Is the recommended standard to put it first, and if so, why do others like PCL library put it last?  Also, Is there a special shortcut in msvc to suggest only underscored variables?


Expected number of convergence steps for random number generator sequence

Let $R(n)$ returns an integer in the range $0,1,...,n−1$ with uniform probability. Note that this is not a true function in the mathematical sense, as inputting the same number a second time will not necessarily yield the same result. The random number generator only works for $n > 1$. Starting from a googol, $x_0 = 10^{100}$, consider the sequence $x_i = R(x_{i−1})$. Eventually the sequence terminates when $x_s = 0$ for some $s$ and no further generation is possible. What is $E[s]$?   Intuition: $R(x_i)$ generates a midpoint on average and imagine a number line cut in half. Hence, $E[s]$ is equivalent to the number of cuts until we're left with nothing but $0$ (in some sense).  So, $E[R(n)] = \frac{n-1}{2}$ for $n \geq 1$.   $E[R(10^{100})] = \frac{10^{100}-1}{2} = \frac{1}{2}\cdot10^{100}-\frac{1}{2}$  $E[R(\frac{10^{100}-1}{2})] = \frac{1}{2^2}\cdot10^{100} - \frac{1}{2^2}$  In general, we want to find $k$ such that  $\frac{1}{2^k}10^{100} - \frac{1}{2^k} = 1$. Solving for $k$ , I get $k = \log_2{(10^{100}-1)} = E[s]$. Is this the right approach?


Is the exact value of $^{\infty}i$ known?

Wikipedia's article on tetration has a  of successive tetrations of $i$ that seems to imply that $^{\infty}i$ converges, and my own experimentation seems to confirm it, but I'm suspicious of purely numerical results like that, and the article itself has no references for this portion of the text. Is the exact value known, or is the figure of approximately $0.4383 + 0.3606i$ quoted in that article the best that can be done?


Center \leq, \geq, = with different text above

I am typesetting some mathematical equations using \begin{align*} environment. Hopefully to make the steps clear I am adding text above =, \leq, \geq but I am having troubles with aligning them e.g.:  \begin{align*} x_1 + x_2 \overset{\text{some text}}=& 2y^3 \leq\\ \overset{\text{some longer text}}\leq& 3z \end{align*}   The result is, that the \leq is not centered with = sign above. Is there a neat way to solve this? In some different cases I am using this approach:  \begin{align*} x_1 + x_2 \overset{\text{some text}}=& 2y^3 \leq\\ \overset{\phantom{\text{some text}}}\leq& 3z \end{align*}   But I don't think that adding some phantom characters to the first example would be a good way how to do it.


Getting refused entry and removed at Heathrow, X in passport

I have been to the UK 12 times and I also had a 2 year visa. My boyfriend lives in England and we have been together 8 years. Last time I visited I was refused entry because I didn't have a return ticket. I also had an old resume I forgot. (It was 1 resume and it was 3 years old from when I first stayed the 2 years I just forgot it in the pocket I know it's really stupid) The officer didn't say he thought I'd work illegally but he did say he thought I might OVER stay. (I haven't over stayed the last 12 times, and he knew that.)  They took my photo and fingerprints even before I was refused. What will happen now? If I apply for a partner visa will I get refused? Before I was seeking entry as a visitor when I got refused and I want to visit again before getting this partner visa.  How hard will it be to get a visa for "join your partner in the UK" for me? I was honest the whole time and even when he was trying hard to find lies (it seemed) the immigration officer seemed pleased I didn't lie about anything.  How will having an X in my passport affect me?  I'm Canadian and he is British.


Heathrow Aiport showers for connecting passengers

I am arriving at Heathrow Airport Terminal 3 (Air Canada) and departing from Terminal 1 on SAA to SA (layover is 11 hours).  Are there any showers for connecting passengers anywhere (money is no problem), or do I have to leave the airport on a Hoppa Bus and get a day room at one of the local hotels? I don't really want to leave the airport environment! Cheers!


In Rogue One, why did the Deathstar not aim directly at its target?

In Rogue One, towards the end the imperials...      ...decide to fire the Deathstar on the base on Scarif. Their motivation seemed to be vengeance to the rebels that were fighting there, as well as protection to make sure they did not extract any vital information.          But when they fire, they miss the base. Instead the Deathstar blast fires through the tower, and hitting the ground some distance (miles?) away.    Were they rushing and accidentally missed, or did they miss on purpose?


What is the list of keys and their corresponding wins?  I have it listing that the highest number of wins I've had in arena is a Champion key, but it doesn't say how many wins it was.


How can we see our progress towards the next Socratic badge?

The Socratic badge is a gold, and we get it when 100 questions with score > 0 and maintain a positive question record, obtainable multiple times   When someone does not have it, then we can see how we're doing.  When someone already has it, then how can we see our progress towards the next one?


Error during tentative install/try many Ubuntu distros on Samsung Smart Ativ 500t

After following many other answers from similar situation I finally was able to boot USB live distros in my Samsung Ativ 500t, a pretty old PC with horrible hardware Intel Atom Cherry Z3760 with PowePC GPU. After many efforts when I select in Grub Try or Install Ubuntu/Mate/Lubuntu and others, it seems to start, gives some errors of GPIO not being able to be address in IrQ and some logo of start shows up to finally say that the media of installation cannot be found. I understand this particular hardware is not so easy to handle (32 bits for processor and EFI), but it seems I’m close to getting it to work, it seems that for some reason after getting into GRUB the partitions just get lost. What can I do to solve the error: (initramfs) unable to find a live medium containing a live file system  when trying to install or try any Ubuntu and derivatives in my Atom Z3760? I have already tried different pendrives, and I have already tried removing and plugging it back in. Can someone help me?


Is there an ordered (by insertion) map in bash?  I know there's an  data structure in bash, but when iterating over it, the order of the elements is not by insertion. Example below.  I'd like to keep the map ordered by insertion.  Associative array not preserving insertion order:  declare -A REPLACE_MAP REPLACE_MAP['b']='2' REPLACE_MAP['a']='1' for key in "${!REPLACE_MAP[@]}"; do     echo "$key - ${REPLACE_MAP["$key"]}"     value=${REPLACE_MAP["$key"]} done   Result:  a - 1 b - 2   I'd like a data structure that will yield the following result:  b - 2 a - 1


Problem installing vineyard from terminal

I cannot install vineyard because I am asked this:  To run a command as administrator (user "root"), use "sudo <command>."   See "man sudo_root" for details.


I've got a TI LM3S Cortex-M3 Development board with USB host. I've done quite a bit of TCP/IP programming through the Ethernet and using SPI/UART GSM modems, but I was wondering the feasibility of getting web access through a USB 3G 'dongle'.  From my brief bit of research, I can see most of the modern modems support this through CDC-ACM and/or RNDIS but having only 256k flash and 96k of RAM am I being a bit too ambitious? So far I've only found commercial libraries for this and I haven't looking into the complexities of doing myself.  Should I just be looking at ARM9 and Linux?


Static Variable Usage In C Adress different

I have a header file where I have declared a structure and declared it as  static Test_t = TESTID;  Have multiple files in the project and files has multiple functions. And want to update these variables from different files and functions. So have tried to get the address of this static variable inside each function like    Test_t *info = &TESTID;   Update it as info-> ...  But the address of info are different in functions?  What could be the reason?


if there are 4 different tables and 18 people, how many ways can the people be seated to have at least 4 in each table?

For example with 15 people at 3 different tables each seating 5 people, is the number of combinations of seating equal to: $$\binom{15}5\binom{10}5(4!)^3$$


In this comparison, how, according to the writer, does Latin relate to French rap?

The Arabic of “Frozen” is frozen in time, as “localized” to contemporary Middle Eastern youth culture as Latin quatrains in French rap. —  by Elias Muhanna  Please explain what this comparison means. What does the writer want to convey here; how does Latin relate to French rap?


Wi Fi Not working in ubuntu 16.04 HP Stream

Hi I have just switched from Windows 10 to Ubuntu 16.04  Compiled Log From This  →   I am just learning the system and have gone to use firefox and my internet is not working and saying that there are no connections available.  I'm kind of new to all this so simplifying things to me would help, please please help me as I have set it as my default OS.  Laptop is an HP Stream Notebook 13


Dovecot user lookup fails when using username@domain format

I have Dovecot v2.0.11 installed on a FreeBSD server and the user lookups for incoming email addresses are failing, but lookups for system users is successful.  Dovecot is setup to use system users, so my dovecot.conf has   userdb {   driver = passwd }   and  passdb {   driver = passwd }   I have auth debug enabled.  For example, I have a user called webmaster, and using doveadm user for "webmaster" works as follows:  #doveadm user webmaster userdb: webmaster   system_groups_user: webmaster   uid       : 1020   gid       : 1020   home      : /home/webmaster   However using doveadm user to lookup webmaster@myregisteredname.com fails as follows:  # doveadm user webmaster@myregisteredname.com userdb lookup: user webmaster@myregisteredname.com doesn't exist   This is resulting in incoming mail for webmaster@myregisteredname.com to bounce with an "unknown user" error.    Here's the failure logged in /var/log/maillog:  Apr 16 20:13:35 www dovecot: auth: passwd(webmaster@myregisteredname.com): unknown user   Here's the failure logged in /var/log/debug.log:  Apr 16 20:13:35 www dovecot: auth: Debug: master in: USER       1       webmaster@myregisteredname.com  service=doveadm Apr 16 20:13:35 www dovecot: auth: Debug: passwd(webmaster@myregisteredname.com): lookup Apr 16 20:13:35 www dovecot: auth: Debug: master out: NOTFOUND  1   The users and their home directories were imported from another server and the users were setup using the vipw tool.  I'm sure there's someting I missed on the import that's not "linking" the system user with the dovecot lookup.    Any ideas about what that something may be?  EDIT: Using BillThor's advice, I updated dovecot.conf as follows:  #doveconf -n passdb userdb passdb {   args = username_format=%n   driver = passwd } userdb {   args = username_format=%n   driver = passwd }   However, now, doveadm user fails in a different fashion:  #doveadm user webmaster@pantronx.com doveadm(root): Error: userdb lookup(webmaster@myregisteredname.com): Disconnected unexpectedly doveadm(root): Fatal: userdb lookup failed for webmaster@myregisteredname.com   And, it no longer works for users without a domain:  #doveadm user webmaster doveadm(root): Error: userdb lookup(webmaster): Disconnected unexpectedly doveadm(root): Fatal: userdb lookup failed for webmaster   When I get the above messages, the following is in /var/log/maillog:  Apr 17 17:30:02 www dovecot: auth: Fatal: passdb passwd: Unknown setting: username_format=%u Apr 17 17:30:02 www dovecot: master: Error: service(auth): command startup failed, throttling


Is it safe to delete from C:\Windows\Installer?

I've been looking on an XP machine what is using all that diskspace, and it turns out C:\Windows\Installer is high up there on the list of directories that use the most diskspace.  It seems to contain a cache of msi and msp files.  Is it safe to delete those? To save diskspace, I've been deleting the "$KB...$" directories for ages without any problems. I want my Windows Updates in my system, why you would want to uninstall them is something that I have never understood. (Except when you're on an update revision board professionally or something of that order.)


can I use "used to" for something is "used for" some objective?

I am curious about using "used to" which is used for expressing some habitual actions in the past. But how to use it for passive voices?  Example 1:  I used to eat chocolate too much when I was a baby  This example is OK. What about the second one?  Example 2:  a) This computer is used to calculate statistics.  b) This computer is used for calculating statistics.  Which one is more suitable? In other words, are both of them give the same meaning? I am avoiding making contextual mistakes.  My problem is that I have read a sentence and I thought it should be corrected:  Actual sentence:  Bivariate linear regression is used to measure the degree of linear relationship between two variables.   After correction (not sure if it is really required):  Bivariate linear regression is used for measuring the degree of linear relationship between two variables.   I think (b) should be.


Insufficient storage error on android phone

Please help me, my thL T6 pro device has enough memory available but I can't download. It's so annoying. Please help me.  Available storage 3.5g but it says insufficient storage.


Is there a formula for sin(a*b) like the addition formula?

This may be a dumb question but I wanted to know if there was a different way of writing sin(ab) similar to that of the addition formula or is it unnecessary?


Conky Widgets are Opening in their Own Windows

I just upgraded to 16.04 and I'm getting all my customization set up again, but it seems that most Conky widgets are opening in their own window, instead of just appearing on the Desktop; although some are working correctly.  For example:  LSD (working properly):    Seamod (not working, opening in own window):    Since it's not affecting every single widget, I assume it could be an issue with the conkyrc with the widgets that aren't working, but this also never happened in 14.04 so I wasn't sure if maybe there was some compatibility issue in 16.04. My Google-fu has failed me in finding a solution.  If anyone can point me in the right direction, it would be much appreciated! :)


Custom script "invoked too many times" error

Credit:   function getDirection(city1, city2, unit) {   var directions = Maps.newDirectionFinder()     .setOrigin(city1).setDestination(city2)     .setMode(Maps.DirectionFinder.Mode.DRIVING)     .getDirections();   var d = directions.routes[0].legs[0].distance.text;    var distance, value = d.split(" ")[0].replace(",", ""), text = d.split(" ")[1];   if(text == unit) {     distance = value;   } else if(text == "km" && unit == "mi") {     distance = value / 1.6;   } else {     distance = value * 1.6;   }   return Math.round(distance); }   I have used this code snippet in one of my sheets. I am working on a dataset with roughly 6000 entries and I am getting some errors because of the large volume.      Script invoked too many times per second for this Google user account. (line 0).      Service invoked too many times for one day: route. (line 4).   I considered purchasing a Google Apps business account to increase my quota, but that might not even help. Do you maybe have any advice for me in this regard?


I have tried to install java on ubuntu, but cannot find a way to make it work. Is there a way to install java with apt-get?


limit of $\lim\limits_{x \to \infty}((x+1)^a - x^a)$

Hello everybody, i couldn't figure out how to demonstrate this equation without L'Hopital i wonder if its possible.   $a \in (0,1)$ $\lim\limits_{x \to \infty}((x+1)^a - x^a) = 0$


Solutions to $y^2 = x^3 + x$ in $\mathbb{P}^2(\mathbb{F_p})$.

Consider the elliptic curve $$\mathcal{C}: y^2 = x^3 + x.$$  Let us consider the reduction of $\mathcal{C} \mod{p}$.   Some explicit computation show that $\# \tilde{\mathcal{C}}(\mathbb{F}_3) = 4$,  $\# \tilde{\mathcal{C}}(\mathbb{F}_5) = 4$, $\# \tilde{\mathcal{C}}(\mathbb{F}_7) = 8$, and $\# \tilde{\mathcal{C}}(\mathbb{F}_{11}) = 12$ (these totals include the point at infinity).  On page 138, Example 4.6, Silverman and Tate go on to say that it is "not hard to check that" $4 | \# \tilde{\mathcal{C}}(\mathbb{F}_p)$ for all $p \geq 3$.  However, I am struggling to verify this fact myself, and would be very grateful for any assistance!  From working the smaller cases by hand, it seems like a natural divide would be between $p \equiv 1 \mod{4}$ and $p \equiv 3 \mod{4}$. However, if feels like there must be some theorems about solution in these two separate cases that I am missing right now.


Can't hide object which particles are based on, without losing particles

To clarify i'm not in this instance trying to hide emitter. The emitter oblong shape with arrow is supposed to be there. The particles are all based on a torus shape so all the little pink coins are based on that but i want to hide from render the large torus i have elsewhere on the screen. I un-clicked camera under ray visibility but then lost both the particles and the large torus. Thanks for any tips.


Is there a way to (offline)  retrieve app messages (messages that  appear with on the top right on the home screen with a small icon of the app)  Without opening the app itself? (or when the app doesn't store these messages)  Or is there an app that I can install that can remember these messages?  I am using a Dtek 50 android 6.0


Securing my Microsoft Remote Desktop connection over the Internet?

On my home Windows 10 machine, I have port forwarded Microsoft's RDP port (3389) via my router to port (20202). Thus, I can remotely access the Windows 10 machine via the Microsoft Remote Desktop application on my Mac by simply typing in <my public IP address>:<port> (e.g. 134.111.23.443:20202).  I'm wondering if there is a way to make this more secure, such as tunneling over SSH, without requiring any other computers (I only have the Windows 10 Machine connected to the Internet by landline at home, and my MacBook, which I take with me).


Starting from my secondary school, I have never understood the concept of short circuits. For instance, why would current prefer a path with no resistance than a path with much resistance? How does it know or decide that that there is much resistance in the one path and no resistance in the other? I know I am imagining current as a person that has his own will. But what is the physics behind it? None of my teachers were able to give me a satisfying answer so far and it really bugs me.


Finding the Maximum and Minimum values w/constraint

I apologize I have asked this question before but it died and I just got around to working it out based on the suggestions so here it is.   Let the function $f$ be defined as $f$($x$,$y$,$z$) $=$ $x$$y$$z$  find the maximum and minimum values subject to the constraint: $g$($x$,$y$,$z$) $=$ $x^2$+2$y^2$+3$z^2$   $$F=x y z +\lambda  \left(x^2+2 y^2+3 z^2-a\right)$$ Computing derivatives $$F'_x=y z+2 \lambda  x=0\tag 1$$ $$F'_y=x z+4 \lambda  y=0\tag 2$$ $$F'_z=x y+6 \lambda  z=0\tag 3$$ $$F'_\lambda=x^2+2 y^2+3 z^2-a=0\tag 4$$ Now, I should consider equations $(1,2,3)$ and solve them for $x,y,z$ in terms of $\lambda$.   Multiplying equations 1,2,3 by $x,y,z$ we obtain that $2x^2=4y^2=6z^2$. From here I found the corresponding multiples that $x^2$ and $y^2$ are in terms of $z$ and plugged into equation 4 to solve for z. I found that $x$ Was a multiple of $z$ by 3 and $y$ was a multiple of $z$ by $\frac{3}{2}$ I found this by setting $4y^2$=6$z^2$ and got $\frac{6}{4}$ = $\frac{3}{2}$ Now plugging these into equation 4 I obtained 3+$\frac{3}{2}$+$3z^2-6$=0 My algebra lead me to $z=$ $\pm\frac{1}{\sqrt{2}}$ but if done right z should equal $\pm\frac{\sqrt{2}}{\sqrt{3}}$  I got this by adding 6 over to the right then subtracted 3 leaving me:                                                                                $\frac{3}{2}$+$3z^2$=$3$ then subtracting $\frac{3}{2}$ lead me to : $3z^2$= $\frac{3}{2}$ and dividing by 3 gives $\frac{3}{2} \div \frac{3}{1}$ which is equivalent to $\frac{3}{2} \times \frac{1}{3}$ = $\frac{3}{6}$ and you can see that really leaves me with $z^2$= $\frac{1}{3}$ which is equivalent to $z=$ $\pm$ $\frac{1}{\sqrt{3}}$  What did I do incorrectly and how do I proceed from here once I have found z. Also how is it that you can write the two functions as two functions added together giving you $F$.


I am a US asylee, and I have green card and USA travel document. I want to travel to UAE , and since UAE doesn't accept travel document can I use my national passport?


python context protocol: why __enter__ and __exit__ method can't be defined in object?

My understanding was, that in order for this snippet to work:  with some_obj:     # do something   the some_obj object must have __enter__ and __exit__ methods. And this is more or less the only requirement.  The following code demonstrates, that this is not correct:  class X:     pass  def my_enter(*args, **kwargs):     print("enter ", args, kwargs)  def my_exit(*args, **kwargs):     print("exit ", args, kwargs)  some_obj = X()  some_obj.__enter__ = my_enter some_obj.__exit__ = my_exit  with some_obj:     print("inside with")   Even though the some_obj obviously have attribute __enter__ the above code fails:  Traceback (most recent call last):   File "tst_with.py", line 17, in <module>     with some_obj: AttributeError: __enter__   Interestingly, if I replace the two lines where I add methods to object with the following:  X.__enter__ = my_enter X.__exit__ = my_exit   everything is ok.  Is there any reason why object having these magic methods is not enough for with statement to work?  (I encountered this problem when crafting a mock object, and the original code was more sane than the code above.)


I noticed tree-like patterns on inner surfaces of home appliances plastic bodies. For example, on the lid of air conditioner indoor unit, inside of humidifier, at the bottom of washing machine powder drawer. The shape of the patterns reminds of , but there's no source of high voltage inside those machines and no obvious reason of forming a high electric charge on the surface (and I've never been hit by a spark from them).  The following pictures demonstrate some of the patterns I found. The "branches" are near 1 mm wide. Contrast was increased a little.   The patterns can be easily washed away with soap and water, they are probably formed of dust. Air indoors is moderately humid in summer and very dry in winter, if it's important.  What is the reason of those patterns and what do they consist of?  EDIT.   Similar question  pointed by  shows the same dust patterns. The answer marked as accepted suggests that dust attaches to irregularities on plastic surface around marks from  process. In my pictures the surface is free from such marks, but it can have salt deposit from water drops. The  on that question is very elaborate.  of charged dust particles on differently charged surface is an interesting suggestion, that is the most probable in my opinion. Similar question  shows the same dust patterns. No answer is accepted. The highest rated answer describes deposition of statically charged dust particles onto plastic surface (like the previous one).  on Biology StackExchange. Comments state that dry plastic surface is unlikely to support life, but if it's a living thing, it's a fungal colony. Answer suggests that pattern can be a crystallization structure when liquids dry up. It can be plausible in my case (all mentioned machines deal with water that is splattered on plastic surfaces and dries up from time to time), but is not an explanation with electronics mentioned in other questions.


I have some with proving by induction. I cannot find a solution for the inductive step: $1^3 + 2^3 + ... + n^3 = (n(n+1)/2)^2$  I already did the induction steps:  Basis: P(1) = $1^3 = (1(1+1)/2)^2$ (This is true)  Inductive step: Assume $P(k) = ((k)(k+1)/2)^2$  To be proven: $((k)(k+1)/2)^2 + (k+1)^3 = ((k+1)(k+2)/2)^2$  My problem is that I do not know how I can put the $ + (k+1)^3$ inside $((k)(k+1)/2)^2$.   Simplifying the left and right part of the statement does not help:  Simplifying the left side: $((k)(k+1)/2)^2 + (k+1)^3 = ((k^2+k)/2)^2 + (k+1)^3 $   Simplifying the right side: $((k+1)(k+2)/2)^2 = ((k^2+3k+2)/2)^2$  So i am left with: $((k^2+k)/2)^2 + (k+1)^3 = ((k^2+3k+2)/2)^2$  That is the same as: $1/4 (k^2+k)^2 + (k+1)^3 = 1/4((k^2+3k+2))^2$  Going further with the left side:$1/4 (k^2+k)^2 + (k+1)^3 = (1/4)(k^4 + 2k^3 + k^2) + k^3+3 k^2+3 k+1$  Going further with the right side: $1/4((k^2+3k+2))^2 = 1/4 (k^4+6 k^3+13 k^2+12 k+4)$  Now I am stuck with: $(1/4)(k^4 + 2k^3 + k^2) + k^3+3 k^2+3 k+1 = 1/4 (k^4+6 k^3+13 k^2+12 k+4)$  Now I am kind of left with garbage. Am I missing something? What do I do wrong? Where can I find a good resources to learn how to solve this issue?


Is it possible to downgrade an iPhone from iOS 8 to iOS 7?

iOS 8 in my iPhone 5 drains the battery, I'd like to return to iOS 7 if I can.  Is it possible?


How do I sync Outlook calendars to Google Calendar?

I've found plenty of instructions on how to add Google Calendar to Outlook (via ics links) but nothing on how to do it the other way around, which is what I want.  How do I share an Outlook calendar so that I can view it in Google Calendar?


My company develops software with two sides: client and server. I've installed Microsoft SQL Server on Windows and am running the client side on Ubuntu with some configuration.  But I'm wondering: is there a way to run Ubuntu as the server instead and install SQL Server on it?