Why does regression use least "squares" instead of least "absolute values"?

Linear regression uses summation of least squares to find the best fit. Why? I fully understand that we do not want to use actual residuals, otherwise, positive and negative numbers may cancel out each other. Then, why don't we use absolute values? Sorry if this sounds like a duplicate question. I did see many explanations but did not see an easy-to-understand answer. For example, some said that squares made calculation easier. How come?  Your insight is highly appreciated!


Is there a plausible scientific explanation for the seasons in Game of Thrones / Song of Ice and Fire?

The way seasons work in A Song of Ice and Fire is very peculiar, so I was wondering if it's even possible for a real planet to have an orbit/axes/rotation that would account for it?  For example, winters are said to be able to last multiple years. Winter on Earth is caused by the tilt in Earth's axis, so that at certain points in Earth's orbit, the part of the planet experiencing winter is farther away from the sun, but logically this means any planet has winter due to the same phenomenon would always have a winter that is approximately a quarter of its year long. Furthermore, winter in A Song of Ice and Fire is highly variable in length and seemingly unpredictable. Since the seasons seem to last so long, perhaps it could be because their calendar years don't actually correlate with the length of their planet's orbit, which could be very long?


So, I didnt know doing this sudo chmod -R 777 / would completely destroy everything i cant access to ssh neither sftp i dont have any backup there is work of months... btw im using a dedicated of OVH, os ubuntu 20.04


Increase disk partition with Ubuntu live cd and gparted

I am new to Linux and I have created a dual boot with windows 10 inside a SSD, in the start I did a partition of 20 gb believing that it would be just for the system and it would be possible to use the memory leftover without needing to do anything else, so now my system is almost full and I've tried to extend the partition through the gparted unallocating 50 gb of my SSD, but even with the new unallocated space it is not possible to extend through the resize option, what should I do to extend it? And is it possible for me to use the memory from an HD too?


Why a non-static variable cannot be initialized inside a static method?

Recently I met with this error  "non-static variable cannot be referenced from a static context"   where I had initialized all the variables in my main method, which is a static method. But after making all the variables static It compiled without an error. Please Can anyone explain why it happens this way?  public class Test2 {  String[] mycharset;  String chkfor;   public static void main(String[] args){     mycharset = new String[5];     chkfor = "k";     mycharset[0] = "a";     mycharset[1] = "b";     mycharset[2] = "c";     mycharset[3] = "d";     mycharset[4] = "e";     } }


Why does my tar file extraction to destination throw an error?

I am trying to extract the tar.gz folder into a new destination, but it throws the following error? How can I do the changes in Linux command to extract those folder.  $ tar -zxvf IUS17.05_g311_lnx86_GPLV3_N20170504.tar.gz /cad/local/apps/cadence/xcelium tar: /cad/local/apps/cadence/xcelium: Not found in archive tar: Exiting with failure status due to previous errors


Can I get Shadowmere if I've abolished The Dark Brotherhood?

I know that  is a quest reward from the Dark Brotherhood questline. However, since I took the other route, killed Astrid when she visited me and got the quest to destroy the Brotherhood, which I later did (she can't tell me what to do!), I was wondering if it's still possible to get her horse some other way and not through the quest.


Calculate matrix transformation components separately

It is possible to calculate the translation, rotation and scale that were used to build a matrix?  I mean if I have a matrix M can I calculate the rotation, scale, and translation it represents?  Of course I could save each component in the matrix individually, but can I recover this information from just the matrix data?


Private implementation for public interface method

I have encountered a piece of code with method being exposed via public interface while the implementation is private. I'm not sure what should be the expected behavior. Simplified example:  #include <iostream>  class Interface { public:     virtual ~Interface() {}     virtual void myIfMethod() = 0; };  class Derived : public Interface { private:     void myIfMethod(){std::cout << "private method invoked via public interface" << std::endl;} };  int main() {     Interface* myObj = new Derived;     myObj->myIfMethod();     delete myObj;     return 0; }   This sample compiles and executes without a warning:   Is this a correct and well-defined behavior? And if so, why?  Note, the question isn't about private interface method with public implementation (there are multiple such questions on SO) but the other way around.


Prove by elementary methods that there is no largest prime of form $4n+1$

attempts a fairly naive proof based on Euclid's proof that there is no largest prime. Its answers demonstrate the flaw in the OP's logic, namely that the new number formed by the product of all those primes plus 4 might have prime factors all of which are of the form $4n+3$. (A proof of that sort easily demonstrates that there are arbitrarily large primes of the form $4n+3$.) The answers for that problem don't present a valid proof; that is not really what the OP had asked for. While I'm familiar with Dirichlet's proof using analytic number theory that any arithmetic series with coprime starting point and step size contains arbitrarily large primes, there must be an elementary proof for the case $4n+1$.  I say this because in "An Introduction to Number Theory," by Niven and Zuckerman, this proof is posed as excercise 49 in section 2.1; the material presented up to there includes Wilson's theorem and Euler's generalization of Fermat's theorem, but not much past there. So what is the proof using elementary methods, for $4n+1$?


This is a problem I had for long time. I use software to generate Latex (SW). It adds lots of empty lines.  Which ends up using extra white space between a text and the displayed equation that follows.  I've always fixed this by manually removing these empty lines once I am done editing the document. But this is time consuming to do each time.   Is there some command one can add to the preamble only to tell Latex to automatically ignore empty lines, or treat them as if they had % as first character?  I will first show a MWE that shows the problem and then show what I tried after that.  Compare the output of this file  \documentclass[11pt]{article} \usepackage{amsmath} \usepackage[grid]{eso-pic} \setlength\parindent{0pt} \begin{document} line 1  \begin{align*} x &= y \end{align*}  line 2 \end{document}   With this file  \documentclass[11pt]{article} \usepackage{amsmath} \usepackage[grid]{eso-pic} \setlength\parindent{0pt} \begin{document} line 1 %     \begin{align*} x &= y \end{align*} % line 2 \end{document}   Here it is side by side    The left image is for the first file above. You can see it has extra space before the \begin{align} and after \end{align} which I do not like.  I'd like to obtain same output as the right side image (less space), but without having to manually edit the latex file each time by either adding % or to delete the blank lines.   This is what I tried. I saw this question  but this requires one to manually edit the Latex file and add commands after preamble.  I saw this  and I tried the solution there which says     Redefine \par, for example \let\par\relax   But that broke many things in my main build and I was getting many latex errors. The second solution there which says      Redefine \endlinechar to be 32   This is what I tried.   \documentclass[11pt]{article} \usepackage{amsmath} \usepackage[grid]{eso-pic} \usepackage[subtle]{savetrees} \setlength\parindent{0pt} \endlinechar=32 \begin{document} line 1  \begin{align*} x &= y \end{align*}  line 2 \end{document}   update: I need to try the above again on my main build. I had written it wrong before. Will update soon to see if it worked.  I also tried the package \usepackage[moderate]{savetrees} and this is the result  \documentclass[11pt]{article} \usepackage{amsmath} \usepackage[grid]{eso-pic} \usepackage[moderate]{savetrees} \setlength\parindent{0pt} \begin{document} line 1  \begin{align*} x &= y \end{align*}  line 2 \end{document}   Here is side by side    So \usepackage[moderate]{savetrees} did what I want for this example. But when I tried it on large document, I found it compresses things too much in many other places and made line too close to each others. So I did not like the effect. When I tried \usepackage[subtle]{savetrees}, the space was not removed any more.    So I am not sure what to try next.  I asking if there is some other solution to try. Again, I want all empty lines to be treated as %. But by modifying the preamble only. Not the internals of the document, as the document itself is auto-generated.   Using texlive 2017. I use lualatex to compile latex file.


Did your team win the football match yesterday?         The weather was very bad, so we weren't playing.   vs     The weather was very bad, so we didn't play.   Is the first one not correct? Why is it?


How do native speakers 'guess' the pronunciation of the letters in a word they see for the first time?

I confess! Being a non-native speaker, I struggle a lot especially when I come across a new word. And I wonder how do native speakers pronounce perfectly even though they read the word for the very first time. There should be some rule/technique? I'm not sure.  Let's take a case.   If I see a word having 'ch' for the very first time, how do I guess it? Remember, I don't have dictionary. Nor do I have access to this great site when I encounter that word. For example,   Take the word 'chariot'. Being a non-native with quite limited knowledge of orthography, I know that 'ch' is pronounced as in 'Charles'  But then, imagine, I came across the word 'charade'. Undoubtedly, for me, it is 'ch (as in Charles)-re-d-s'. But then, actually, 'ch' there is 'sh' (as in Shane).   It's not just 'ch' but it goes for 'g' as well. 'G' as in 'goat' or 'g' as in 'gymnastic'. Is there any source that teaches how to pronounce a letter if it is placed after/before certain letter? Is there any such rule? The one I remember is when a word ends with 'mb', you don't pronounce 'b'. 'Bomb', 'Comb', 'Tomb' and .      There are a few more words that add another nail in the coffin of my pronunciation complexity!      penis (pee, and not as in 'pen')  asthma (no 'th' pronounced)  Dengue (dengeee)  and many more...


What's the use of having a kernel part in the virtual memory space of Linux processes?

I found a similar question but still it doesn't answer my questions     First off, considering user processes don't have access to this part and I guess if they try to access it, it would lead to an error, then why even include this part in the user process virtual space?  Can you guys give me a real life scenario of this part being essential and useful?  Also, one more question is I always thought the kernel part of memory is dynamic, meaning it might grow for example when we use dynamic libraries in our programs, so is it true? If so, then how can the OS determine how big the size of kernel is in the virtual space of our processes? And when our kernel in physical memory grows or changes, does the same effect happens in the kernel part of virtual memory for all the processes? Is the mapping of this virtual kernel to real kernel a one to one mapping?


What would you call a person who is friendly on the outside but from the inside is plotting something against the one he is acting nice to?

When I type this question in the Google it shows the name of some disease...and I don't want that...I am looking for a word that can discribe him...if not then atleast some adjective to receive his personality, e.g- cunning


Find all real functions $f:\mathbb {R} \to \mathbb {R}$ satisfying the equation     $f(x^2+y.f(x))=x.f(x+y)$   My attempt - Clearly $f(0)=0$  Putting $x^2=x,y.f(x)=1$, we have $f(x+1)=x.f(x+y)$.  Now putting $x=x-1$,we have $f(x)=(x-1)f(x-1+y)$  Putting $x=0$ ,we have $f(0)=-1.f(y-1)$ or $f(y-1)=0$(\since $f(0)=0$)  Finally putting $y=(x+1)$ gives us $f(x)=0$.  This is one of the required functions. But $f(x)=x$ also satisfies the equation.How to achieve this? One of my friends said that the answer $f(x)=x$ could be obtained by using Cauchy theorem but when I searched the internet, I could not find any theorem of Cauchy related to functions .Does any such theorem exist. If yes what is it and how can it be used to solve the functional equation. Is there a way similar to the method of getting the first solution to achieve the second one?


Stick or Disk to upgrade from 16.04 to 18.04

Is there a stick or disk that I can buy to upgrade from 16.04 to 18.04?


I have a large file, but I need a part of it, the lines between line m (1000) and line n (2000).  How can I get it? (and put it into a new smaller file, or print on screen)


Is it possible to render an object's "ground shadows" on a separate layer in Blender Render?

Lately I've been trying to look for any tutorials on how to make "shadow catcher" planes in Blender Render because I need to render ground shadows on a separate layer. However it seems every tutorial I've come across uses Cycles. But can this be done in Blender Render or not?  No this isn't a duplicate of another question. Yes I have a shadow rendered against a transparent background already, but what I am trying to do is have that shadow on a separate layer. Using Blender Render and not Cycles.


If $A$, $B$ and $C$ are the angles of a triangle,....

If $A$, $B$ and $C$ are the angles of a triangle, prove that:  $$sin\frac {A}{2}+sin\frac {B}{2}+sin\frac {C}{2}=1+4sin\frac {B+C}{4}.sin\frac {C+A}{4}.sin\frac {A+B}{4}$$  My attempt;  Here, $$A+B+C=\pi$$  Now,  $$L.H.S=sin\frac {A}{2}+sin\frac {B}{2}+sin\frac {C}{2}$$ $$= 2sin\frac {\frac {A}{2}+\frac {B}{2}}{2}.cos\frac {\frac {A}{2}-\frac {B}{2}}+sin\frac {C}{2}$$ $$=2sin\frac {A+B}{4}.cos\frac {A-B}{4}+sin\frac {C}{2}$$ $$=2sin\frac {\pi-C}{4}.cos\frac {A-B}{4}+sin\frac {C}{2}$$  Now, from here I could not.continue, please help me to.complete the proof..


Do mission ratings in Assassin's Creed IV actually go back to Ubisoft?

At the end of each mission in Assassin's Creed IV, players have the opportunity to rate the mission.  Does this feedback actually go back to Ubisoft?


Improving Review Queues - Design overview II: Changing review bans and other new features

This is one of three project announcements for Improving Review Queues. We’ve summarized the project objectives and goals . As a reminder, this project is still in the . In this post, we are sharing proposed changes to review bans and other new features. We are asking for your feedback before we begin implementation. After we collect community feedback, we will be open to including changes into the next design iteration. Suspension of privileges  Most users learn how to be good reviewers by actually reviewing posts, but sometimes find themselves making wrong decisions. This can lead to a less than obvious suspension of privileges, with too little guidance as to what they did wrong and how they can improve in the future. In the event of a suspension, a user will be notified in the Review Queue dropdown. A post notification will be available with reason and time remaining on the Review Queue main page, along with guidance for continued learning in this area. We’re also proposing softening the language by renaming “review bans” to “review suspensions.” Open questions:  Do you have suggestions of other ways we can notify reviewers of a ban? What information would be most helpful to you in this situation?  New features  My tasks We’re considering introducing a new, additional workflow and means of task discovery. My Tasks is a curated experience that’s currently based on your Watched Tags. This page includes an overview of pending tasks that may require more immediate attention or pique interest in a user’s subject-matter expertise.  Queue filtering We’d also like to add more useful, robust filtering options on all queues. Right now, the filter function is difficult to discover. We want to make this feature more noticeable and add queue-specific options. For example, you will be able to filter by your Watched Tags and sort tasks that are soon to expire out of each queue. Badges Currently, the gold Steward badge is awarded once at 1,000 reviews per queue regardless of whether you’ve performed 1,000 or 10,000 reviews. We propose that reviewers can now earn this badge multiple times, adding more opportunities to earn badges while reviewing - this change is intended to be retroactive. Open questions:  How would you want to be able to customize in My Tasks? Are there other review-centric badges you would like to see added?  In case you missed it... We propose changes to Onboarding and Updated workflows/pathways here: .


braces on the sides of an easybmat matrix

I created the following matrix with , and I would like to add at the bottom (respectively right) something like an underbrace (resp. "rightbrace") under each of the two blocks, together with a number specifying the number of columns (resp. rows) of the block. This amounts to two braces on the bottom and two on the right, and each brace should have a number below (resp. at the right) of it.  I did not find anything about that on the easybmat manual. I think I see how to do the braces with the  package, but then I am not able to create the block structure of the matrix in the first place.  \documentclass{article} \usepackage{easybmat} \begin{document} \[  M(z)= \left[ \begin{BMAT}[5pt]{c|c}{c} \begin{BMAT}[5pt]{c:c:c}{ccccccc} & & \\ & & \\ & & \\ v_1 & \dots & v_m \\ & & \\ & & \\ & & \end{BMAT} & \begin{BMAT}{c}{c|c} \begin{BMAT}[5pt]{c:c:c}{ccc} & & \\ w_1(a) & \dots & w_n(a) \\ & & \end{BMAT} \\ \begin{BMAT}[10pt]{c}{c} B(z) \end{BMAT} \end{BMAT} \end{BMAT}  \right] \] \end{document}     This is more or less what i wish:


Replace using statement with equal try/finally block

How to replace this statement with try/finally block?  using(MemoryStream ms = new MemoryStream()){}   Is this the correct approach?  MemoryStream ms = new MemoryStream(); try {    //code } finally {    ms.Dispose();                 }


How does anything move through a physical distance?

I was wondering and came across a thought: if an object is moving at a particular speed, say 5 m/s, it is equivalent to say that the object is moving at 500 cm/s, or 5000 mm/s and so on; clearly, you can keep dividing '5m' an infinite amount of times, so there will be a particular instance where the object has to move at 5 • ∞ (infinitesimal units/s), so how does the object manage to do that; in the sense, how can it move an infinite distance of any unit in 1 second?


Suddenly can't paste or create files to any other drive. (Xubuntu dual boot with freshly installed Windows 10)

I have 2 hard drives on automount that I could access perfectly. Then I installed Windows 10 and repaired GRUB to get dual boot. I don't know if that's the cause but now I can't paste any files into any drive other than my Xubuntu partition. I googled it but didn't find a solution so I really need some help here. Thank you very much in advance.


C++ compiling program which contain template classes

I faced with some compilation issues, here is details:  Lets say I have a declared of some data structure my_data_struct<typename T>. The reason I use templates here is I want my data structure to be able to work with any data type (Like std::stack or std::vector do)  In that case, if I don't know the final types it will be used for, I must define and declare my structure in one file.  Lets say then, I have couple of other libs (divided by .h declaration and .cpp definition). Each of them use my_data_struc.  Finally, lets say I have main.cpp file where "all comes together" with #include's.  How could I get compile my program?  If I will compile my cpp files separately to object files, and will try to link them togather, I will receive multiple definition of error, because my_data_struct will be defined couple of times...  The only way I realize, is to move definitions of my libs to its declaration (.h) files and then just compile the main.cpp all at once. But, is it the right way to compile programs like that? Or is there is any better way how to build and compile such stuff?  I didn't find any best practices of how to proceed with it...  Thanks in advice.   UPD:  Well, while creating example, I figured out that the actual issues is caused not by template class, but by non template functions that exists beside the class in the same namespace:  //mydatastruct.h #ifndef MYSTRUCT #define MYSTRUCT  namespace G{     template<typename T>     class my_data_struct{         public:          my_data_struct(){};         ~my_data_struct(){};         int do_something(int a){ return a; };         //...     };      int test(int b){ return 2; }; }  #endif   // a.h #ifndef A_H #define A_H  #include "mydatastruct.h"  class A{     public:     A();     ~A(); };  #endif  // a.cpp #include "a.h" A::A(){} A::~A(){}   // main.cpp #include "a.h" int main(){ return 0; }   Compiling:  g++ -c a.cpp -o a.o g++ -c main.cpp -o main.o g++ a.o main.o -o main.exe   And the actual error is:  main.o:main.cpp:(.text+0x0): multiple definition of `G::test(int)' a.o:a.cpp:(.text+0x0): first defined here


TikZ - Is it possible to draw a line over the whole page

I want to create/draw a front page of a document and therefore I want to draw a line from one corner of the Page to another. Ok in the final version I want to implement some control points. But up until now I can´t get the drawing to work when I use "page coordinates" instead of points...  \documentclass{article} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{tikz,xcolor}  \usetikzlibrary{shadows}      \begin{document} \thispagestyle{empty}  \begin{tikzpicture}[remember picture,overlay]     \coordinate (A) at (current page.north east, current page.north east);     \coordinate (B) at (current page.north, current page.south);     \draw[line width=1.5pt]%, cap=round]     (A) -- (B) \end{tikzpicture}  \end{document}


On startup, highlight tags and display tags in a preview window

I am using Vim as a note-taking and outlining tool. I am constructing the "tags" file by myself. What I would like to do is that when I open my notes or outline file, Vim reads the tags present in this file, highlights them and also displays the tag labels in a vertical preview window. I have no experience in Vim scripting so I would appreciate some help. Currently I am using a bash script to generate a tag labels file "taglabels" in $PWD using cut and loading it in a separate vertical window. My script looks like this #! /bin/bash  cut -f1 $PWD/tags > $PWD/taglabels vi -c ":30vsp $PWD/taglabels" $1  As is obvious, the script does not highlight the tags present in the file nor does it it show only the tags present in the file. On the contrary it shows all the tags present in $PWD/tags. I looked into ctags and the taglist plugin but they seem to be more suited for code than for free form text.


How to find the approximation of a series with the help of Riemann sum?

Given a series:  $$\frac{1}n+\frac{1}{n+1}+\cdots+\frac{1}{2n-1}$$  What are these types of questions called and what is the strategy for them?   The next step in the solution manual is:  $$\frac{1}{n} \left(1+\frac{1}{1+\frac{1}{n}}+\cdots+\frac{1}{1+\frac{n-1}{n}}\right)$$  And final answer for this specific question is:  $$\int_1^2 \frac{1}{x} \rightarrow \left[\ln x \vphantom{\frac 11} \right]_1^2 $$


Is it possible to add a group string name to a grouped set in T-SQL  Name     |    NO      |   ---------+------------+  A        |      1     | B        |      1     | C        |      1     | E        |      2     | F        |      2     | G        |      2     |   Output Name join in String.  Name     |    NO      |   ---------+------------+  A,B,C    |     1      |  E,F,G    |     2      |  Declare @tbG Table(idx  int , Name  nvarchar(250)) Insert into @tbG values (1,'A'),(1,'B'),(1,'C'),(2,'E'),(2,'F'),(2,'G');  SELECT Name, idx AS column_names FROM @tbG AS extern CROSS APPLY (     SELECT Name + ','     FROM @tbG AS intern     WHERE extern.idx = intern.idx     FOR XML PATH('') ) pre_trimmed (column_names) GROUP BY idx, Name;    I thinks below is my solution but I can not replace example.  SELECT table_name, LEFT(column_names , LEN(column_names )-1) AS column_names FROM information_schema.columns AS extern CROSS APPLY (     SELECT column_name + ','     FROM information_schema.columns AS intern     WHERE extern.table_name = intern.table_name     FOR XML PATH('') ) pre_trimmed (column_names) GROUP BY table_name, column_names;


Disable Chrome DPI scaling from link, not shortcut

I'm using Windows 7 64-bit with 125% DPI mode.  With the new Chrome release (stable channel) 38.0.2125.101, the Chrome window blows up in size. I've tried , which works when I launch Chrome from the shortcut / taskbar tile. However, when Chrome is not already open and I click a link from another application (e.g. Outlook), it opens Chrome without the disabled DPI scaling. How can I make this fix work whether I open Chrome via a shortcut or through some other means (like clicking a link when Chrome is my default browser)?     (this is the same behavior observed without the flags)  edit: the issue seems to have been fixed by Chromium developers with release 38.0.2125.104


How do I identify the C terminal on my HVAC?

How do I identify the C terminal on an HVAC, furnace, or boiler? If the terminals don't have a screw labeled C what should I look for on the wiring diagram? What steps should I take if a wiring diagram cannot be found or if it indicates that a C terminal doesn't exist?  Note: This is an extension to  which asks about running the wires through the wall. This question is about where to connect the wire at the HVAC.


Where does Chrome store video clips watched but then erased when turned off?

Chrome store video clips you have watched somewhere on the computer and then erases them when you turn it off or maybe even when you leave the url.? Where is that in windows 10? In XP it was about 10 layers deep in applications. I haven't gotten proficient enough to even look for em.


Show that a holomorphic function satisfying $|f(z)|\leq c|z|^n$ must be $f(z)=a\cdot z^n$ for some a.

Let $f:\mathbb{C}\to\mathbb{C}$ be a holomorphic function such there exists a $c\in\mathbb C$ with $|f(z)|\leq c\cdot |z|^n$ for all $z\in\mathbb C$. Show that there exists an $a\in\mathbb C$ with $f(z)=a\cdot z^n$.   Proof.  My general idea is to show that the taylor series only has one non-zero coefficient:  $\displaystyle |a_k|\leq\frac{k!}{2\pi}\oint_{|w|=r}\frac{|f(w)|}{|w|^{k+1}}dw\leq \frac{k!}{2\pi}\oint_{|w|=r}\frac{c\cdot|w|^n}{|w|^{k+1}}dw\leq \\\displaystyle\leq \frac{c\cdot k!}{2\pi}\oint_{|w|=r}|w|^{n-k-1}dw$  Now using the standard estimate since $\oint=2\pi r$:  $\displaystyle \leq c\cdot k!\cdot r^{n-k}\longrightarrow\begin{cases}0,\ k>n\\c\cdot n!,\ k=n\\ \infty,\ k<n\end{cases}$ as $r\to\infty$  In conlusion the taylor series for now looks like $f(z)=\sum_{k=0}^{n-1}a_k z^k+ a_n z^n$ with $|a_n|\leq n!\cdot c$. What do I do with the remaining summands?  Edit: I would say that for $k<n$ we have $|z|^k>|z|^n$ for $z\in D_1(0)$. So since the estimate has to hold for all $z\in \mathbb C$ we can't have that either.


I always heard people say things like     we worked yesterday until seven at night.   But working spans over a course of time, so I think this is much preferable:     We had worked yesterday until seven at night.   But will it be right if it is never "spoken"?


How can I create a new environment and make the first paragraph after it withouth indentation?

I created my own environment and it in/for a KOMA-class. It works fine, except that the first paragraph after it has an indentation. It want it to have no indentation at all, which is why I use false- for the class. How can I set that indentation to zero? Screenshot  MWE \documentclass[ 11pt, a4paper, ] {scrartcl}  \usepackage{ lmodern, blindtext }  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  \usepackage{ multicol, blindtext, }  \newenvironment{teaser}{\vspace{0ex}\par\raggedright\sffamily}{% \par% \rule{0.8\columnwidth}{1pt}\par \vspace{2ex}% }  \listfiles  \begin{document} \begin{center}\huge Title stuff \end{center}  \begin{multicols*}{2} \section{Word}  \begin{teaser} Stuff. Word, some text to fill the void. Here is a longer sentence, quite the long one. \end{teaser}% % How do I have to define the new environment \verb|teaser| so that the first paragraph after it has no indentation?  Words words words words words words words words words words words words words. Words words words words. \end{multicols*} \end{document}


How does the Master Sword durability work?

I intentionally worded the title like that to avoid spoilers, so here goes the spoiler:      The Master Sword needs to recharge its energy when you use it too much. How exactly does that work? At some point you get a message, similar to weapon durability, "Your Master Sword is running low on energy" and finally after more usage that it ran out. How long does it take to fully charge? Can I speed up the process? It seems like I can almost never use it, because the recharge takes so long.


regexp to catch the last quote in css url

I'm currently trying to catch the css images url via regexp. I have this kind of string : #test{background:url(images/prof_01.png);} #test2{background:url('images/prof_01.png');}  I'm using the following exp : /url\(("|')?(.*)("|')?\)/  to catch in both cases "images/prof_01.png". My problem is that in the #test2 example, the url comes with its last quote images/prof_01.png'  How can I get rid of this. Thanks.


How do you overload functions in Python? I know about default arguments, but what if you want one version of a function to take one type and another version to take a different type. In some cases it is easier to write two different functions with different names like from_int and from_str, but this is not always viable in certain cases like the _init_ method.  A simple example:  class Point:     def __init__(self, x, y):         self.x = x         self.y = y      def __init__(self, point):         self.x = point.x         self.y = point.y   Obviously this would not work since there are two definitions of the same function.  I have looked at other questions on SO about overloading functions, but most of them refer to using default arguments and I don't think that would work in this case especially if I wanted to use default arguments for a different purpose. Lets say I wanted the first constructor to set x and y to zero if nothing was given: _init_(x=0,y=0)  This would become even more problematic if I wanted a third version of _init_ to init both x and y from one scalar value:  def __init__(self, n):     self.x = n     self.y = n   In C++ these constructors would be trivial to implement but I do not know of a clean way to do it in python.  I thought about doing this but it does not seem very clean to call:  class Point:     def __init__(self, x=0, y=0):         self.x = x         self.y = y      @staticmethod     def from_pair(x, y):         return Point(x, y)      @staticmethod     def from_single(n):         return Point(n, n)      @staticmethod     def from_point(point):         return Point(point.x, point.y)


What do you call it when someone misunderstands a homonym?

I once ran across a term for the error of misunderstanding the meaning or sense of a word because one doesn't know exactly what the word is. For example, someone mistakenly thinks that the phrase is "tow the line" rather than "toe the line." Can anyone tell me what this type of misunderstanding is called?


Is there any way I can view LogCat events from 24 hours ago?

All the logcat events that I see are very recent. Is there any way to see older events from around 24 hours ago?


I recently got accepted into one of the schools in Europe. According to the anticipated date mentioned in the offer letter, my studies will start in Dec 2017. Now, the problem is that I've got two papers ready for submission at the moment and I don't have the faintest idea what to put for my affiliation. Any ideas?  Just to clarify that this question is not a duplicate: When I was working on the above-mentioned studies, I was not either employed by or affiliated with my former university. My former supervisor did help me out with some parts of the papers, but rather as a colleague or a friend than as a "supervisor" in the true sense of the word.   Thank you


Flying from Auckland to Winnipeg via Houston. Do I need to go through customs in Houston?

I'm Canadian flying through from Auckland to Winnipeg via Houston.  Do I need to go through customs in Houston?


How to show $c_n \leq c_{n+1}$?   Let $c_1=\sqrt{2}$ and $c_{n+1}=\sqrt{2+c_n}$. I have already proven that $c_n \leq 1+\sqrt{2}$.  If I try to prove that $c_n \leq c_{n+1}$, I end up by showing that it does not work:$$c_n\leq 1+\sqrt{2} \leq c_{n+1}=\sqrt{2+c_n}$$$$\Leftrightarrow c_n^2 \leq 2+c_n$$ This is not true, what am I doing wrong?


In-Universe explanation why the founder seem so crude

In Star Trek - Deep Space 9, it is explained that Odo has some troubles (for lack of a better word) with shapeshifting. This results in him to look crude, his features unfinished (e.g. his ears are simple surfaces instead of the wobbles we have:  In the series, it is also mentioned that the Founders are way more skilled in the art of shapeshifting. This to the level of being able to . Nontheless, throughout the series, the female changling decided to have the same crude features as Odo has when not mimicing somebody.  I assume this has been done in order to clearly identify her as a changeling to the viewers. However, I cannot think of an in-universe explanation to why she would decide to have the same crude features as Odo has, given her skills enable her to look however she wants. So, what in-universe reason was there for her to appear in this way?


Very new to database creation, still learning the basics of power query in excel. Boss gave me the task of sorting out employees and their user access to several scattered systems so it's easier to see who has what, is John Smith has this Microsoft license, is an admin for SYS1, and a user for SYS2. I need to be pointed in the right direction about what that model would look like to point to the type of info above, or even query all the SYS2 admins or SYS2 users. Any suggestions on resources to review?


Convergence of $\sum\limits_{n=0}^\infty {\frac{z(z+1)\cdots(z+(n-1))}{n!}} $

The series below converges to a familiar analytic function in some open half plane. Which half plane and which function?  $$\sum\limits_{n=0}^\infty {\frac{z(z+1)\cdots(z+(n-1))}{n!}}=1+z+\frac12z(z+1)+\frac16z(z+1)(z+2)+\dots$$  In class we only cover that the power series converge in a circle of complex plane, so I do not have any clue about the series like this, any helpful hint or advice is welcome! Thanks in advance


I have been told that, if $\{a_n\}_{n\in\mathbb{N}}$, $\{a_{-n}\}_{n\in\mathbb{N}^+}$, $\{b_n\}_{n\in\mathbb{N}}$ and $\{b_{-n}\}_{n\in\mathbb{N}^+}$ are absolutely summable complex sequences, then$$\Bigg(\sum_{n=-\infty}^{\infty}a_n\Bigg)\Bigg(\sum_{n=-\infty}^{\infty}b_n\Bigg)=\sum_{n=-\infty}^{\infty}\sum_{k=-\infty}^{\infty}a_{n-k}b_k$$where $\sum_{n=-\infty}^{\infty}a_n=\sum_{n=0}^{\infty}a_n+\sum_{n=1}^{\infty}a_{-n}$.  I know that if $\{a_n\}_{n\in\mathbb{N}}$ or $\{b_n\}_{n\in\mathbb{N}}$ is absolutely summable, then $(\sum_{n=0}^{\infty}a_n)(\sum_{n=0}^{\infty}b_n)=\sum_{n=0}^{\infty}\sum_{k=0}^{n}a_{n-k}b_k=\sum_{n=0}^{\infty}\sum_{k=0}^{\infty}a_{n-k}b_k$, i.e. the proposition is true if $\forall n\leq-1\quad a_n=0=b_n$, and have tried to use that to prove the general case, but I get nothing. I have not studied any theory of measure yet.  I $+\infty$-ly thank you for any help!!!  EDIT: my question had been considered as a duplicate to  already asked, but that is about the case $(\sum_{n=0}^{\infty}a_n)(\sum_{n=0}^{\infty}b_n)=\sum_{n=0}^{\infty}\sum_{k=0}^{n}a_{n-k}b_k$, which I do know, as I had written. Though, I cannot generalise that to show that $(\sum_{n=-\infty}^{\infty}a_n)(\sum_{n=-\infty}^{\infty}b_n)$, which I hope I correctly write as  $$(\sum_{k=0}^{\infty}a_k+\sum_{k=1}^{\infty}a_{-k}) (\sum_{k=0}^{\infty}b_k+\sum_{k=1}^{\infty}b_{-k})$$ $$=\sum_{n=0}^{\infty}\sum_{k=0}^{n} a_{n-k}b_k +\sum_{n=0}^{\infty}\sum_{k=0}^{n} a_{n-k}b_{-k-1}+\sum_{n=0}^{\infty}\sum_{k=0}^{n} a_{-n+k-1}b_{k}+\sum_{n=1}^{\infty}\sum_{k=1}^{n} a_{-n+k-1}b_{-k},$$  is equal to $\sum_{n=-\infty}^{\infty}\sum_{k=-\infty}^{\infty}a_{n-k}b_k$. The people who regarded this question of mine as a duplicate to that were enough to have this question closed for a while, therefore, I suppose that it may well be trivial that the equality $(\sum_{n=-\infty}^{\infty}a_n)(\sum_{n=-\infty}^{\infty}b_n)=\sum_{n=-\infty}^{\infty}\sum_{k=-\infty}^{\infty}a_{n-k}b_k$ derives from the equality, known by me, $(\sum_{n=0}^{\infty}a_n)(\sum_{n=0}^{\infty}b_n)=\sum_{n=0}^{\infty}\sum_{k=0}^{n}a_{n-k}b_k$. If that is trivial, I do not realise that fact: could anybody, either from those considering the question identical to  or anybody else, please, show me how to derive the equality with the indices $n$ from $-\infty$ to $+\infty$? I... $+\infty$-ly thank you! ;-)


Understanding difference between Coordinate System and Projection?

Can somebody please explain what is the difference between the Coordinate system (WGS 84 for example) and a Projection (Universal Transverse Mercator for example)?  What is the difference between a projected coordinate system and projected CRS


How to pass in the password in scp using Java ssh JSch and jcabi-ssh

I need to execute following command:  scp -r ~/dataIn yatsuk@192.168.1.1:~/dataOut   In ubuntu (16.04) terminal this command work correctly.  yatsuk@192.168.1.1 is localhost.  So I try this code using jcabi:  Shell shell = new SSHByPassword("192.168.1.1", 22, "yatsuk", "passw"); String stdout = new Shell.Plain(shell).exec("scp -r ~/dataIn yatsuk@192.168.1.1:~/dataOut"); System.out.println(stdout);   And this code by JSch:  JSch jsch = new JSch(); JSch.setConfig("StrictHostKeyChecking", "no"); Session session = jsch.getSession("yatsuk", 192.168.1.1, 22); session.setPassword("passw"); session.connect();  Channel channel = session.openChannel("exec"); ((ChannelExec) channel).setCommand("scp -r ~/dataIn yatsuk@192.168.1.1:~/dataOut"); ((ChannelExec) channel).setErrStream(System.err); channel.setOutputStream(System.out); channel.setInputStream(System.in); channel.connect();  while (!channel.isClosed()) {     Thread.sleep(1000); } channel.disconnect(); session.disconnect();   Both return me:  Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). lost connection   Simple commands like "echo 1 > 1.txt" works perfectly. Maybe something I do not understand?


What happens to the singularity within a black hole when a black hole evaporates? If there is a point in space which is both infinitely dense and small, do they simply evaporate as well?


How to convert a string with arrays to an array

How do I convert this piece of response into a valid array? I want to perform an Object.map on the data:  var user_roles = "['store_owner', 'super_admin']";   This is not a valid JSON so I can't use JSON.parse


$$, \[ \] and equation environment alignment

I'm using scrreprt class and I'm having troubles with different behavior of $$ and \[ \]-written equations and equation environment. The problem is that alignment is not the same: $$ equations are centered while equations in equation environment are left aligned.  For example, the following code  Equations: \begin{equation}\label{nelineq} f(x)=0 \end{equation} \begin{equation*}\label{nelineq} f(x)=0 \end{equation*} $$ f(x)=0 $$ \[ f(x)=0 \]   produces   I would like to make all three usages consistent (not yet sure if centered or left aligned).  The question is, how to permanently change default alignments for all three cases? But without use of align or similar environments (dont want to edit all existing equations).  I know that $$ is deprecated, but what about other two methods?


How to check if array has some elements same as another array and to pop those elements out of array

I have an array like this:   array(1) {   [0]=>   string(16) "1785328791698338" }   And other array like this:  array(7) {   [0]=>   string(17) "10207252567926988"   [1]=>   string(17) "10208823390691752"   [2]=>   string(17) "10209064245580796"   [3]=>   string(16) "1274474365912572"   [4]=>   string(16) "1294280923934896"   [5]=>   string(16) "1317727711586522"   [6]=>   string(16) "1785328791698338" }   I should check if some of the elements(in this case only one, but it can vary) from first array are same as some elements in second array, and if they are, to remove them from first array. I tried doing it this way, but it does't work:  function findSameValuesOfArrays($arrayOne,$arrayTwo){          $newArray=array();          foreach($arrayOne as $a){             $newArray[0]=$a;          }          foreach($arrayTwo as $b){             $newArray[1]=$b;          }          if (strpos($newArray[1],$newArray[0])) {             return true;          }      }   This is just to find if there are same elements, and then i would probably unset key where those values are. But function returns NULL.


Motivation For Weight Choice In Pooled Variance

In the formula for , the estimated variance of each population of size $n_i$ is weighted by $n_i-1$.  Is there a good motivation for this?  I would assume the formula is always unbiased, even when different weights are chosen.  But my guess is that the variance of the variance estimation is minimized by this choice, assuming a nice distribution of the 'real' error.  If that's true, where can I read a proof of it?  If not, what other motivation is there for this choice?


Is it possible that Gravity is a Repulsion phenomenon instead of an attractive "force"?

The classical saying is to say that gravity is an "Attractive" force meaning that massive objects like a planet will attract other massive objects like an apple. But is it not actually the empty space that repels massive matter away from it forcing it to go towards the nearest massive object because space-time around it is less repulsive?  We do know that a massive object. "Bends" Space time around it. The apple will follow the curve of space time from the less stretched, less repulsive, point of departure to its arrival, in contact with the planet where the space time is stretched the most and least repulsive. The planet warps Space time, But it is the shape of space time that "pushes" the apple to the planet. The apple is in contact with space time at all times while it travels to its destination.


Usually curved spacetime looks like it causes objects to attract to each other. But is the opposite also possible? For instance if I twist/curve a towel in one direction it is getting smaller but in the other direction it is getting longer (the length of it gets another direction (diagonal or straight). So is it possible that a curveture also creates a repellent effect?


Unhide invisible files from the command line

By default, a number of system directories (such as ~/Library) are hidden in OS X (ie. they don't appear in Finder):    I know I can do this through the GUI but I would like to add a script to my  that does this automatically for certain system directories.  Is it possible to remove the hidden flag for a file/directory from the command line?


Today I found one of my website fully being displayed at another domain that is not mine. Is this some kind of DNS hack or what is the purpose of these actions ? Because I seen this before, few years ago, all content from Adobe Exchange (user uploaded content) was being displayed at many other domains.   Should I be worried about anything ?  Edit: I pinged that domain and it shows same IP address as my own domain. My site is a new/small social networking site with a bit under 3000 users. I found this other domain while looking at traffic sources.  Edit: The other domain that shows my site is forum.[domain].com and their main domain shows illegal downloads, it also has 20 000 Alexa traffic rank.  Temporary I made a test in my php scripts and if http_host is different than my domain, then it exists, this seems to work, but I probably need to edit some DNS settings to stop it from serving my site to outside domains. How do I do that ?  Edit: Inside Plesk panel under ip addresses I removed the default domain for that IP and this caused that other site to show a default Plesk panel (same page that is shown if someone directly types my IP in browser.


Why can't i delete file when i have the file's ownership?

As a root user, I created a file in / directory. I can only read this file when logged in as normal user (say A) as expected.I changed the ownership to A.Now A can read as well as write.But when I try to delete it, permission denied message comes.Can anyone explain why?


How would one go about proving the following identities?  $$\sum_{i=1}^n \sum_{i\neq j}^n \frac{z_i}{z_i-z_j} = \frac{n(n-1)}{2}$$ $$\sum_{i=1}^n \sum_{i\neq j}^n \frac{z_i^2}{z_i-z_j} = (n-1)\sum_{i=1}^n z_i$$ $$\sum_{i=1}^n \sum_{i\neq j}^n \frac{z_i^3}{z_i-z_j} = (n-1)\sum_{i=j}^n z_i^2+\sum_{i<j}^n z_i z_j$$ $$\sum_{i=1}^n \sum_{i\neq j}^n \frac{z_i^4}{z_i-z_j} = (n-1)\sum_{i=j}^n z_i^3+\sum_{i<j}^n z_i z_j(z_i+z_j)$$ $$\sum_{i=1}^n \sum_{i\neq j}^n \frac{z_i^5}{z_i-z_j} = (n-1)\sum_{i=j}^n z_i^4+\sum_{i<j}^n z_i z_j(z_i^2+z_i z_j +z_j^2)$$  I see the obvious pattern here. The problem is that the algebra involving the summation is giving me some difficulty.


Minecraft-what command can i use to teleport a certain player only within a certain radius?

I am not testing for a player.Ive already tried looking online for hours and tried several different versions of the teleport command. i looked up target by volume under commands but it seems i cant use it to teleport a specific player, only @a and @e, and so on...  im specifically looking for a command that will teleport a player away to different coordinates once they step within a certain range of other coordinates.


Will any non-AF lens work on a Nikon camera with built in AF already in the camera body?

I want to purchase a camera with a built in autofocus motor, but I want to know if lenses without autofocus will then focus automatically on that camera body.  In other words, can I buy a Nikon camera body that already has autofocus, then purchase any non-autofocus Nikon lens and be able autofocus simply from the body itself?


How do I install macOS Siri from Sierra to El Captain on my MBP Mid-2012?

I've gotten a MBP Mid-2012 & would really love to install Siri on the same. I've also had tested macOS Sierra Beta from Apple Developers Program & wanted this to be a part of more fast OS El Captain (OSX) as the current El Captain runs blazing fast on my Mid-2012 MBP.  macOS has a different architecture, which is accepted - but Siri would just be an .app file. Given that it's a .app file, can I know the procedure how do I go about installing only Siri on El Captain?


What is the punishment for violating the Treaty of Algeron?

Both the Romulans and the Federation have regularly violated the Treaty when it suits them. Starfleet has obviously developed and manufactured cloaking/stealth technology and the Romulans make regular excursions across the Neutral Zone. They obviously aren't declaring all-out war, so what penalties or sanctions have been imposed for violations?  -edit added for clarity-  Has either side ever 'punished' their own people for any violations of the Treaty?


Keep cmd.exe command history between sessions?

Is there a way to keep the cmd command history between sessions?


Let $G$ a group. Suppose $|G| = \infty$. Then there is an elment $g$ of $G$ with an $o(g) = \infty$.   That's true? Intuitively it seems so, but I'm not sure.


I am trying to prove that given a subspace $\mathbf{W}$ in $\mathbb{R^{n}}$, the subspace and its orthogonal complement 'cover' whole of $\mathbb{R^{n}}$ through '+' where we define $\mathbf{W}$+$\mathbf{W^{\perp}}$ as linear combinations of vectors both in the subspace and in its orthogonal complement. It seems intuitively right, and I can prove that the sum of their dimensions adds up to n, but I am not sure how to prove the question I am looking at. Thanks!


Why do we have two sets of teeth? Why do earlier shed and new teeth replace them? In humans, kids do not have any need for replacement of the teeth. Why don't the milk teeth grow themselves? Or why don't we have a set of small permanent teeth as our first teeth?


Trying to inject JS file, getting theme errors...why?

So, my theme.libraries.yml file shows:  global-styling:   css:     theme:       css/style.css: {}       css/custom.css: {}   js:     js/myjavascript.js: {}   In mytheme.theme, hook_preprocess_node() I have added:  $variables['#attached']['library'][] = 'myjavascript.js';   Drupal is throwing this error message:  User warning: The following theme is missing from the file system: myjavascript.js in drupal_get_filename() (line 250 of core/includes/bootstrap.inc).   I cannot see where I'm going wrong. The javascript is definitely being injected, since it all works. Why am I getting this error?  thanks


Ubuntu won't run after installation on a Chromebook

I'm using Chromebook C720 and I installed Ubuntu, but when it restarts/reboots it enters into Chrome OS and not Ubuntu. How can I get Ubuntu working?


Is a permanent teleportation circle only a destination, and not a point of departure?

The 5th-level spell  says:     As you cast the spell, you draw a 10-foot-diameter circle on the ground inscribed with sigils that link your location to a permanent teleportation circle of your choice, whose sigil sequence you know and that is on the same plane of existence as you. A shimmering portal opens within the circle you drew and remains open until the end of your next turn.      [...]      You can create a permanent teleportation circle by casting this spell in the same location every day for one year. You need not use the circle to teleport when you cast the spell in this way.   The teleportation circle you draw seems to be a point of departure only when you cast it. When it's a permanent teleportation circle, however, it doesn't mention whether you can use it as a point of departure.  Can permanent teleportation circles only serve as destinations?


If $f$ is a periodic function with period $L$, show that the integral $\int_{a}^{a+L}f(x)dx$ is independent of a.   I appreciate your help.


GNOME dock glitches out after unlocking from lock screen on 18.04

When I lock the screen with Super+R and log in again (doesn't matter how long the lockscreen is on for) the "original" GNOME dock appears underneath the ubuntu/dashtodock one and causes Super+[1-9] keys not to work and bugs out some icons of applications that are not added to favorites.   When I reset GNOME by using Alt+F2 "r" this disappears and there is a window saying "Ubuntu bug" stating that there was a problem and in details it says it was a problem with GNOME shell. I already sent the report at least 10 times.


run a 2nd computer as an extra processor

I have a laptop with a busted l.c.d., but otherwise works fine with an external monitor. I was wondering if it is possible to connect it to my main pc as an extra processor(main pc is getting old, it's only single core processor) and if so how? I currently have them connected with a network cable so that I can access the laptop's hard drive but would like to use it to give my pc a bit more power. Both my pc and my laptop have 2 gb  ram and are running windows vista sp2


Can Moderators review more posts than the daily limit?

Can moderators review unlimited posts in a single review queue within a day? I saw one moderator review more than 400 yesterday in Stack Overflow first posts review queue. Today also he's reviewed more than 100 since start. . (Normal daily limit is 40 for Stack Overflow) Is this available only for moderators or what is the logic behind this?


"add/show comments" should dismiss notification

The notification area in the top-left notifies you when there is a comment posted on your question or answer. However, if you're already on that page and click the "add / show 1 more comment" button, the notification stays there until you click it to dismiss it, even though you've already read the comment.  My suggestion would be for clicking the "add / show n more comments" button to denotify all watched comments that it displays.


What is the difference between the words "over" and "above" when used as prepositions?

What is the difference between the words "over" and "above" as far as its usage in prepositions is concerned? I have heard that it is used to differentiate between the things which are static and which are moving. I sincerely do not know whether it is correct or not.


When to use 'an' and when to use 'a' with words begining with 'h'?

Some h-words need 'an' for the indefinite article (I will be there in an hour).  Other h-words need 'a' for the indefinite article (It is a history of sadness).  Is there a general rule?


Question concerning a prepositional phrase

In the prepositional phrase : "Who did you give your number to?" Is the TO at the end of the sentence absolutely necessary?


Order of product of two elements in an abelian group

Let $G$ be an abelian group. Let $a, b \in G $ and let their order be $m$ and $n$ be respectively. Is it always true that order of $ab$ is $lcm(m,n)$?  What if $m$ and $n$ are coprime to each other?


Prove that the coordinate projection $P: E\times F\rightarrow E$ is an open map.

I have a question on topology: how to prove that $P: E\times F\rightarrow E; P((x,y))=x$ is open  such that the first question is: $f:E\rightarrow F$ is open iff $\forall x\in E, \forall V\in \mathcal{V}_x. f(V)\in \mathcal{V}_{f(x)}$  I say let $(x,y)\in E$ and $V\in \mathcal{V}_{(x,y)}$ I have to prove that $P(V)\in \mathcal{V}_x$   But I don't know how to do this.


Show that $f(X - D) \cap f(D) = \varnothing$ with $f$ continuous in $X$, $D$ dense in $X$ and $f|_{D}$ homeomorphism

It is a Dugundji's exercise:  Show that if $X$ is $T_2$, $f \colon (X, \tau) \to (Y, \sigma)$ continuous in $X$ and $f|_{D}$ homeomorphism with $D$ dense in $X$ then $f(X - D) \cap f(D) = \varnothing$.  If I suppose that there is $y \in f(X-D) \cap f(D)$ then exists $x_1 \in D$ and $x_2 \in X-D$ s.t $f(x_1) = y$ and $f(x_2) = y$.  For every nbd $V \in \tau$ of $x_2$ $V \cap D \mapsto U \cap f(D)$ with $U \in \sigma$ because $f|_{D}$ maps open sets in $D$ to open sets in $f(D)$.   Because $f$ is continuos and $y \in U$ then I can find a nbd of $x_2$: $V_1$ s.t. $f(V_1) \subset U$.


Is there a specific term for the association of certain verb(s) with certain nouns (as direct objects)?

Or vice versa. Or perhaps a name for the pair itself?  For example:   hold an opinion make a complaint offer an apology   Also, where might I find a list of such pairs?    EDIT: I chose my title wording randomly. I have no idea whether 'cognate verb' is the correct term for these things. However, I've just found out that 'cognate objects' are a defined class in linguistics, so perhaps my choice of words was inappropriate. I'm going to leave the title as it is, anyway.


Problem Statement  Let $f(x) = x^3 + ax^2 + bx + c$ and $g(x) = x^3 + bx^2 + cx + a$ where $a,b,c$ are integers with $c\not=0$   Suppose that the following conditions hold:   $f(1)=0$ the roots of $g(x)=0$ are the squares of the roots of $f(x)=0$      $$\text{Find the value of} \: \: a^{2013} + b^{2013} + c^{2013}$$   My attempt  Let $f(x) = (x-p)(x-q)(x-r) \: \:$ and $g(x) = (x - p^2)(x-q^2)(x-r^2)$  Expanding we get $$f(x) = x^3 - (p + q + r)x^2 + (pq + pr + qr)x - pqr$$  $$g(x) = x^3 - (p^2 + q^2 + r^2)x^2 + (p^2q^2 + p^2r^2 + r^2q^2)x - p^2q^2r^2$$  And so we have $$a = -(p+q+r) = -p^2q^2r^2$$ $$b = pq + pr + qr = p^2 + q^2 + r^2$$ $$c = -pqr = p^2q^2 + p^2r^2 + r^2q^2$$  Then we get the following relations  $$a = -c^2$$ $$b = a^2 - 2b \implies 3b = a^2 \implies b = \frac{c^4}{3}$$  From $f(1) = 0$ we have $a + b + c = -1 \implies \dfrac{c^4}{3} + c - c^2 = -1$  However, upon graphing this function, I saw that there are no integer solutions for $c$. Have I done something wrong?  Edit  For future readers, my approach can simplified alot if you replace $r$ with $1$ since $f(1) = g(1) = 0$


Record screen, audio and webcam in Ubuntu 17.10

I want to record my screen, audio and webcam in Ubuntu. Any suggestion for good software to do this?


How can I get NBT data from a specific block?

I'm trying to recreate some "Custom NBT Data's", but I can't seem to figure out how. I'm looking for something like: Items:[0:{Slot:0b,id:"minecraft:sandstone",Count:1b,Damage:0s}]  Is there a way to access this in Bedrock edition?


Where is the forward delete button in iPhone’s keyboard?

Where is the left-to-right delete button in iPhone’s keyboard? We have backspace but where is Delete?


While studying the oracle docs I ran into Casting objects and I don't understand the purpose of why people would use it.    so lets say in main you have   Person p2 = new Student(); Person p3 = new GraduateStudent();   and then you have separate classes    class Person {  }  class Student extends Person {  }  class GraduateStudent extends Student {  }   I understand that a student is person and that a graduate student is a person  but why would a person write   Person s1 = new Student()   instead of   Student s1 = new Student()


Visual Studio Community for SharePoint 2013

I am site administrator for one of the sharepoint 2013 on-premise site and I would like to develop the custom webparts for communicating lists and libraries at site level using visual studio Community 2015.   Can anyone help me in knowing is it possible develop farm and sandbox solutions through visual studio 2015 community as it being providing free by microsoft.


Difference between 'cd' and 'cd ..' in unix /linux

I am completely new to unix/linux OS. I have installed Ubuntu 16.04.2 LTS in my system.   What is the difference between cd and cd .. ?  I have opened a terminal and executed the following command: pwd. It gave me /home/avinash  Now I executed cd .. and it gave me /home$  Then I executed the command cd and then gave pwd, which returned /home/avinash/  Can anyone please explain the difference between cd and cd .. ?


Copy files out of the currently running jar

I found this post  but because I am new to stackoverflow I can't comment there. The above post is mostly what I need but I receive an error while running it. I am also new to java and this error I believe is something simple but I can't figure it out. Here is my java code:  import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream;  public class Test2 {  public static void main(String[] args) {      InputStream dllStream = Test2.class.getClassLoader().getResourceAsStream("/resources/jacob-1.18-x86.dll");     System.out.println(dllStream);          try {             FileOutputStream fos = new FileOutputStream("somelib.dll");             byte[] buf = new byte[2048];             int r=0;             while(-1 != (r = dllStream.read(buf))) {                 fos.write(buf, 0, r);             }         } catch (IOException e) {             e.printStackTrace();         }  }  }     Here is the error I'm receiving :  null  Exception in thread "main" java.lang.NullPointerException     at Test2.main(Test2.java:23)  I know that I am receiving this error because something is null. My dllStream is null but I don't know why.  Please someone help this noob ^^^


I don't understand this problem when I try to mount my NTFS data partition in Ubuntu 14.04, please help me mount it

I am a new user to Ubuntu Linux. My data which I saved using Windows in a separate data partition which is in the NTFS file system, is not mounting properly in Ubuntu 14.04 Trusty. The error message which I'm receiving upon accessing my partition is:  Error mounting /dev/sda1 at /media/abdul/MYDATA: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda1" "/media/abdul/MYDATA"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda1': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.     I do not understand this error message, so, please anyone guide me on this issue to mount my data partition successfully, and also give a permanent solution to this problem. Thanks.


System.ArgumentOutOfRangeException: 'Index -1 is out of range. Parameter name: index'

int idx5 = frm.tabControl1.TabPages.IndexOf(frm.tabPage7);             frm.tabControl1.TabPages.RemoveAt(idx5);              int idx6 = frm.tabControl1.TabPages.IndexOf(frm.tabPage8);             frm.tabControl1.TabPages.RemoveAt(idx6);         I have to remove 6 tabs but it says Index out of range. Remove tabs using indexes.


How many times in a 24 hour day do the minute and hour hand make a 90 degree angle?

I am really curious about ways to tackle this since it is such an open ended problem.   I thought about it purely visually and after an embarrassingly long time figured out the answer to be      \begin{align*} 44 \end{align*}   I would love to hear how others think about it! I have also found a neat "rigorized" solution I would be happy to share.


When I try to apt-get update it says:   Get:1 http://archive-3.kali.org/kali kali-rolling InRelease [30.5 kB] Err:1 http://archive-3.kali.org/kali kali-rolling InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> Reading package lists... Done W: GPG error: http://archive-3.kali.org/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.    My /etc/apt/source.list looks like this:   deb http://http.kali.org/kali kali-rolling main contrib non-free # For source package access, uncomment the following line # deb-src http://http.kali.org/kali kali-rolling main contrib non-free # deb cdrom:[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64 L$  #deb cdrom:[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64 LI$   What should I do ? thanks!


How to convert integration tests to unit tests

I've been tasked with changing someone else's integration tests into unit tests. We have business objects that talk to the database. And so our tests currently reflect that. The problem is that I have code that calls the db directly within the method - and I want it to hit mock data instead of the db. How do you do that?   List<listOfStuff> listing = getDataFromDB(DBStuff); //this is what I want to      //not happen in my test.   I can't change the method, and I read something about wrapping the method in an interface, but I'm unsure of how do that...


I'm learning the Python programming language and I've came across something I don't fully understand.   In a method like:  def method(self, blah):     def __init__(?):         ....     ....   What does self do?  What is it meant to be?  Is it mandatory?  What does the __init__ method do?  Why is it necessary? (etc.)  I think they might be OOP constructs, but I don't know very much.


Is there no subject in a sentence like "Under the tree is a dog"?

I was trying to find out sentences without a subject, only object, and I came across  where the poster gives following sentences as an example     Under the tree is a dog.   Next to the park stands a clock tower.   Underneath his jacket was his white tucked in t-shirt and jeans.   Deep beneath the sea lies the mysterious kingdom of Captain Nemo.   Aren't the subjects in them: "the tree", "the park", "jacket", and "the sea" respectively?


$a_n=(-1)^{n-1}, \;  s_n=\sum_{i=1}^{n}a_i$ then find  $ \lim_{n\to > \infty}\frac{s_1+s_2+\dots s_n}{n}$   $$s_k=1,\; \text{if k is odd and } s_k=0  \text{ if k is even}  $$  Cauchy's theorem for a sequence $(x_n) $ in $R$, we have $\lim\frac{x_1+x_2+\dots x_n}{n}=\lim x_n$  How do I make use of this theorem here when $(s_n)$ is oscillating between $0$ and $1$?


I know it is possible to be stung by bees in Animal Crossing: New Leaf.   I learned that the hard way when I was trying to find my furniture tree. Now, I have an eye swollen shut and all of my towns people are making fun of me. They're all being kind enough to inform me that I need Medicine, but they seem to be enjoying themselves at my expense too much to tell me where to actually find the Medicine.  Where can i get medicine? I'd really like it if my townspeople stopped making fun of me.


If I remember correctly,Voldemorts ultimate goal was that wizards would be purified so that true bloods could rule the world of all "lesser creatures". He had many sympathisants and wizards follow him out of fear,but every thing seemed to happen only in great britain.Is there any reason for this? Was he even known outside of GB? Were there any Death Eaters in other countries?  I know that he was born there and it makes sense to me that he would hide his horcruxes in places that mean something to him.But idealogies don't know borders and I always thought he was famous in the whole wizard world.


How should a graduate student email a professor from another country in order to get feedback on their work?

I'm trying to contact with a professor from another country to ask him to see my work and send me a feedback. But I don't know what is better to say that, someone told me that I must "sell myself" and tell that Prof. how   awesome I'm and someone told me that just be abbreviated and be direct to the subject. I don't know which one of them is correct, I think about that and  I'm getting confused; for the first opinion, I think that professor meets many people who are more awesome than me, and he is done of looking for awesome people, instead he is looking on awesome work. And for the second opinion, I think I will make that professor feels in a negative way.  As  academics what do you think is the best way for a fresh graduate(Bachelor holder) to contact with a professor who I don't know personally?


I'm developing a web map for my town. I made my own vector layers and, to avoid the too much "white", I decided to use as base layer OSM. The problem is that when I use the array of resolutions to set the zoom (in the other ways I'm not able to set the zoom) I get the cross-origin error. Here is the code of the osm layer I made:  var osm = new OpenLayers.Layer.OSM(              'OSM',              null,              { zoomOffset: 4, resolutions: [4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135], tileOptions: { crossOriginKeyword: null }}              );          map.addLayer(osm);   With this, by setting the origin keyword on "null", I don't get the cross-origin problem, but it doesn't load the tiles (error 404). If I remove the resolutions array, the tiles are loaded correctly, but then the zoom is not controlled and user is free to zoom to the whole planet. I'm using Openlayers 2.13.1 with IIS Express and Geoserver 2.5.2. Of course, I'm already using a proxy. Any suggestions on where this problem comes from and how to fix it?


Mathematical prerequisites for classical (Lagrangian and Hamiltonian) mechanics

I have just discovered the ideas of Lagrangian and Hamiltonian formulation of mechanics. I wish to self-study further. I (believe I) grasp the very basic idea that both approaches are based on the energy of the system; Lagrangian the difference between kinetic and potential energy, Hamiltonian the total energy of the system. I understand a Newtonian force-based approached to kinematics and mechanics of single particles or simple regular laminas. I understand simple energy analysis of systems where a force approach would be too complex. I have basic calculus skills - up to college / university entrance e.g. integration of a single variable by parts and solving simple, single variable, first-order differential equations. When I look at the mathematical formulation for a very simple system it seems to me the approach needs to be :  Define the Lagrangian for the system Solve the resulting integral  I am having difficulty with both those steps. I think the greatest barrier is understanding the integral expression with partial derivatives. For example, what on earth does the time derivative of the partial derivative of $L$ with respect to velocity, $\frac{d}{dt}(\frac{\partial L}{\partial \dot{x} })$, mean (mathematically)? So apart from (I guess) partial differentiation, what other mathematical knowledge and skills do I need to make a start on Lagrangian and Hamiltonian mechanics?


Can we prove the existence of $A\cup B$ without the union axiom?

If $A$ and $B$ are sets, then $A\cup B$ is defined as follows: $$A\cup B:=\{x: x\in A \, \, \,\text{ or } \, \, \, x\in B\}.$$ In ZFC, $A\cup B$ exists because $\bigcup\{A, B\}$ exists by union axiom, and it is known that axiom of union is independent of rest of ZFC. If there is a set such that $A\subseteq C$ and $B\subseteq C$, then we can define $A\cup B$ using the $C$ and separation axiom. But can I prove the existence of $C$ in ZF-Union? Thanks for any help.


What is the sum of the given special series?any specific formula?


How big should a lens of a telescope be so we can see the American flag on the Moon from the Earth's surface?

How big in diameter should the lens of the imaginary telescope to be so we can see the American flag from e.g. some observatory in Hawaii?


"The answer to question 4" or "the answer to the question 4"?

Consider the examples below:        What was the answer to question 4?   What was the answer to the question 4?      I'm sure that the definite article in the sentence 1 is used correctly. My question is that can we use the definite article before the word question? Or if we can't, why? Because the question 4 is definite. I don't understand why the definite article isn't used in the sentence 1.


What does it mean to go directly from "under review" to "decision in process"?

I submitted a paper to an Elsevier journal in mathematics, which is right now in "decision in process". The status changed in the following manner: Submitted to journal----(after 1 day)--->with Editor----(after 8 days)-->under review-----(after 15 days)-->decision in process. But there was an intermediate stage ("required reviews completed") between "under review" and "decision in process", which was not followed. What does this mean? Is it a bad sign?


i have a string "8120, 8120NGE, 8120NG, 8130, 8130NG, 8130NGE".  And i have a char* (0x0012d094 "8130")  I want to see if the "8130" is in. That exact word.  So i am using     istringstream iss(boards);   string token;   AVBOOL foundBool=FALSE;   while(std::getline(iss, token, ','))   {     const char * compareToken = token.c_str();       token.compare(board);     // with that : it doesn't work cause "8130" is not    equal   0x0012d094 "8130"     if(strcmp(compareToken,board)==0) //with that it doesnt work cause 0x0012cef0 " 8130" is not equal 0x0012d094 "8130"       {         foundBool=TRUE;       }   }   So the question is how do i compare a string with a char * .  Do I need to convert the char into a string and then use string.compare OR  Do i need to convert the string into a char and use strcmp? OR Do i need to do something else?  I am kind of lost here.


Is the varying pronunciation of "schedule" using "sh-" vs "sk-" regional or individual?

‘Hard’ /ˈskɛ.djuːl/vs ‘Soft’ /ˈʃɛ.djuːl/  Is one of the two variants    /ˈʃɛ.djuːl/ with ‘sh‑’ (so including [ˈʃɛ.djɫ], [ˈʃɛ.dʒɫ̩], [ˈʃɛ.dʒu.əɫ], [ˈʃɛ.dʒuːɫ]) /ˈskɛ.djuːl/ with ‘sk‑’ (so including [ˈskɛ.dʒu.əɫ], [ˈskɛ.djɫ̩], [ˈskɛ.dʒuɫ], [ˈskɛ.dʒuːɫ], [ˈskɛˌdʒuɫ], [ˈskɛ.dʒʊɫ], [ˈskɛ.dʒəɫ])   more widespread in the US vs UK, or is this just a matter of areas or even single individuals?


Trying to get Root Privileges for Ubuntu 15.10

I'm trying to run GParted, but it says that I need root privileges. How do I get them for Ubuntu 15.10?


Want to have text appear each time a player joins on my server

So first off, my goal is to have [Server] say something whenever a person joins my server. I was going to do this using the .mcfunction command, where you type /function .... in game, and it saves as a .mcfunction in your data folder.  Is there a way I can do this? Will it stay active 24/7 so that whenever a player joins it will automatically say something and i wont have to manually input a command.


How does a battery work and create a field inside it?

There is an explanation of how a battery works that says that inside the battery (in the positive charge convention) there is a field and the battery does work on the positive charge against the field to move it from the negative terminal to the positive terminal and it becomes full of potential energy, ready to be used in a circuit.  But from what I understand from a battery (an excess of electrons on one side and a lack of electrons on the other side) there isn't a field inside the battery and the battery doesn't take a charge and move it from one side to the other so it gains potential energy.  What I need is a chemical detailed explanation of how a battery works that tells more about how the battery's electric field is created.


Remote installation of pip from python3 without root

I'm trying to install python3 for one of remote hosting over ssh. I don't have root access. Installation was done with:  wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz tar xvzf Python-3.4.3.tgz ./configure --prefix=$HOME/.local make make install   This installs Python 3, however in the end of installation this error occurs:  File "/home/someusername/Python-3.7.0/Lib/ctypes/__init__.py", line 7, in <module>     from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes'   python3 is installed, but pip install failed. After some research it seems that libffi is missing. After using wget to obtain libffi-3.2.1, it is installed with:  ./configure --prefix=$HOME/.local make make install   This shows it is installed:  someusername@a2plcpnl079 [~/.local/lib]$ ls ./  ../  libffi-3.2.1/  libpython3.7m.a*  pkgconfig/  python3.7/ someusername@a2plcpnl079 [~/.local/lib]$ cd libffi-3.2.1/ someusername@a2plcpnl079 [~/.local/lib/libffi-3.2.1]$ ls ./  ../  include/ someusername@a2plcpnl079 [~/.local/lib/libffi-3.2.1]$ cd include someusername@a2plcpnl079 [~/.local/lib/libffi-3.2.1/include]$ ls ./  ../  ffi.h  ffitarget.h someusername@a2plcpnl079 [~/.local]$ cd lib64 someusername@a2plcpnl079 [~/.local/lib64]$ ls ./  ../  libffi.a  libffi.la*  libffi.so@  libffi.so.6@  libffi.so.6.0.4*   Now it is necessary to reconfigure the build of python-3.7.0 so it uses the local libffi. I tried a number of variations but still can't install pip.  # .bash_profile  # Get the aliases and functions if [ -f ~/.bashrc ]; then         . ~/.bashrc fi  # User specific environment and startup programs  PATH=$PATH:$HOME/.local/bin:$HOME/bin  export PATH export HISTTIMEFORMAT="%d/%m/%y %T " export PATH="$HOME/.local/bin:$PATH" export LD_LIBRARY_PATH=$HOME/.local/lib64   Something like this was attempted:  $ ./configure --with-system-ffi --prefix=$HOME/.local LDFLAGS="-L/home/someusername/.local/lib64" LIBS="-L/home/someusername/.local/lib"   The same error occurred, so the question is how to correctly invoke Python-3.7.0 configure to use the local libffi library in order to fully install python?


Does Ubuntu 14.04 LTS support safe remove USB

I'm new to Ubuntu. I know that windows has a feature that allows you to remove your USB flash drive without having to go to the drive, right click and choosing safely remove. This prevents you from corrupting your files if you quickly unplug your flash.  What I want to know is. Does Ubuntu have a similar feature? can I just unplug my USB devices and my files wont get corrupted or must I always go to the drive right click and chose safely remove?  Thank you.


Please help me in installing VMD( visual molecular dynamics) in ubuntu 14.04 LTS

/Downloads/vmd-1.9.2/src$ make install  cp: cannot create regular file ‘/usr/local/lib/vmd/Announcement’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/README’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/LICENSE’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/doc/ug.pdf’: Permission denied cp: cannot stat ‘../LINUXAMD64/vmd_LINUXAMD64’: No such file or directory cp: cannot stat ‘../lib/stride/stride_LINUXAMD64’: No such file or directory cp: cannot stat ‘../lib/surf/surf_LINUXAMD64’: No such file or directory cp: cannot stat ‘../lib/tachyon/tachyon_LINUXAMD64’: No such file or directory tar: plugins: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors cp: cannot create regular file ‘/usr/local/lib/vmd/.vmdrc’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/.vmdsensors’: Permission denied cp: cannot create regular file ‘/usr/local/lib/vmd/vmd_completion.dat’: Permission denied Info: /bin/csh shell not found, installing Bourne shell startup script instead cp: cannot create regular file ‘/usr/local/bin/vmd’: Permission denied Make sure /usr/local/bin/vmd is in your path. VMD installation complete.  Enjoy! sumit@sumit-Ubuntu:~/Downloads/vmd-1.9.2/src$ vmd rlwrap: Cannot execute /usr/local/lib/vmd/vmd_LINUX: No such file or directory


Proof for $\lim_{n \to \infty}\left(1+\frac{a_n}{n}\right)^n = e^a$?

In Statistical Inference by George Casella, Lemma 2.3.14 states that: $\text{Let }a_1,a_2,...\text{be a sequence of numbers converging to }a\text{, that is, }\lim_{n \to \infty}a_n=a\text{. Then}$ $$\lim_{n \to \infty}\left(1+\frac{a_n}{n}\right)^n = e^a$$ Can somebody give me some hint for this? My first instinct is that since n is in the denominator, then that limit term would just be 1. However, this is obviously not correct.


How to give step values as float in python for loop?

I want to run the for loop from 0 to 64 with step size of 0.05. If I use the range function it gives a Typeerror. My code  for i in range(0,64,2):    P=0+i    Q=2+i    for s in range(P,Q,0.05):        X=s   I am actually converting a FORTRAN code into python and in that code, 0.05 was usesd as the step size. The code:  DO 20 I =0,64,2     P=0+i     Q=2+i DO 10 s=P,Q,0.05    X=s    IF((X.GE.P).AND.(X.LT.(P+Q/2))) THEN          Y = -1    ELSEIF (X.GE.(P+Q/2).AND.(X.LT.Q))         Y=1    ENDIF         WRITE(*,*)y   Please help me how can I convert this code properly into python.  Edit: Please check the rest of the code and I dont understand what this ENDIF statement does.


Easiest way to get wifi if signal is too weak

I want to get wi-fi internet access on a smartphone in a certain place. I have a switch there, it is connected by a 20 meters long network cable to a wi-fi router, the router is connected to the internet. The signal of the router is not strong enough to cover the area where I want to receive the wi-fi signal.  What is the easiest way to get wi-fi connection at that place, where I only have a network cable and a switch?


When should one wrap runtime/unchecked exceptions - e.g. CompletionException

When should one wrap runtime/unchecked exceptions? What is the need? Why was CompletionException in java8 introduced? There are other examples as well in java and please include as many examples you want to include.


Updating a value as a HTML input field is being changed

I have several HTML input fields on a page. I would like to update the page based on what value is in the label. If the user types in the field and the value changes, I would like the page to change accordingly, without the user having to click some sort of "calculate" or "submit" button.   Is AJAX required here? Or is there a way to do this purely using some DOM manipulation + javascript state changes?


I'm trying to figure out how this function is  working depending if it's called inside a setTimeout or not.  var myFunc = function(){     console.log('function executes');     return function(){        console.log('return');     } }   then if I call  var exe = myFunc();   it logs 'function executes' in the console  but if I call  var exe = myFunc(); setTimeout(exe,1500);   I got 'function executes' and after 1500ms 'return', but not 'function executes' again, so just the code inside the return part of the function is getting executed.  Can anyone explain this behavior??


I'm trying to create a webform that generates a new page filled with that submission data. So certain users can add/edit new pages easily. Is there a certain webform setting I'm missing for this? I've looked around and have only managed to get the data to display on a single view in a table. Thanks!


Find the lattice of intermediate subgroups of a Galois group.

Consider the Galois extension $K/\mathbb{Q}$ where $K=\mathbb{Q}(e^{2\pi i/11})$. I am asked to calculate the lattice of the intermediate groups of $G$.  I know that the minimal polynomial of $e^{2\pi i/11}$ over $\mathbb{Q}$ is $m(x)=x^{10}+x^9+ ... + 1$ and therefore $G$ has $10$ elements, and every element moves one root of $m(x)$ to another. The roots of $m(x)$ are the roots of unity $\xi,\xi^2,...\xi^{10}$ where $\xi^{11}=1$  How do I follow?


Error Installing Lubuntu Over Ubuntu – Please Help!

I am (barely) running Ubuntu 10.10 on an ancient laptop.  I tried to install Lubuntu over it (and hopefully remove Ubuntu) by running this in the terminal – sudo apt-get install --no-install-recommends lubuntu-desktop ().   About 10 minutes of code ran in the terminal and ended with something like this: (my user name)(my PC name):$.  This is not the exact final line in the terminal, but it is close.  At this point I had no idea what to do to complete the Lubuntu installation or close the terminal window.  I tried putting in my password and this did nothing, so I rebooted.  The result was that Ubuntu came up with no sign of Lubuntu.  What did I do wrong?


solve the equation $x^4-10x^3+26x^2-10x+1$

Solve the equation  $$x^4-10x^3+26x^2-10x+1=0$$   I tried for the values of $x = \pm 1, \pm 2, \pm 3$  but I didn't get the solution.


How can I convert a drive from ext4 to NTFS without losing the data?

I have a hard drive from an Ubuntu system that contains only media files. I would like to move that drive to a Windows 10 computer without losing all of the media. Is this possible, and if so, how can it be done?  I don't want to just mount the ext4 drive in Windows. I want to convert the drive from ext4 to NTFS.


handling categorical data with a large amount of categories

I have data containing few categorical columns with a huge amount of categories at each (more than 1000 different categories at each column). I have to build a predictive model on this data, using the Logistic Regression method (I cannot use any model that can handle categorical data as is - Random Forest, Naïve Bayes, etc.).  Applying the standard 1-to-N method, to change the categorical values to 0-1 vectors, generates a really huge dimension and causes the algorithm to work very slowly (so I cannot apply this categorical data handling method).  Does anybody know any method how to transform categorical data with a large amount of categories, so that distance based methods will be able to handle this data properly?


right (opposite of left) connected to right (legal term)?

Does anyone know of a connection, or some sort of established historical/etymological explanation why in a few languages, "the opposite of left" and "truthful claim to" are the same or seemingly related words? Do they all have a common root? Did they develop independently?  Examples:   English: right  -  right French:  droit  -  droit German:  rechts -  Recht Polish:  prawo  -  prawo Russian: право - право Portuguese: direita - direito   Maybe some people can enhance this list by adding more examples?  My question also on .


In Python, I want to convert list into int.  so if i have input like this:  a=[1,2,3,4]   i want this output:  1234   so How it is possible?


How to get rid of disk icons in Unity launcher?

I have got here an installation of Unity and I am annoyed with the 3 disk icons in the Launcher right below the workspace switcher. Is there a way to prevent these icons from showing?    Those 3 icons right above the trash.


What is the best way to reduce high ISO noise?

Even on a 5D ISO noise is a challenge. I use PS raw photoshop and Adobe Bridge. I want to minimise loss of image quality.


Why does Python pep-8 strongly recommend spaces over tabs for indentation?

I see on Stack Overflow and  that the recommendation is to use spaces only for indentation in Python programs.  I can understand the need for consistent indentation and I have felt that pain.  Is there an underlying reason for spaces to be preferred?  I would have thought that tabs were far easier to work with.


How to draw a code block in LaTeX as in Markdown?

Code blocks are frequently used in Markdown as shown in the picture below. I am wondering whether there is a way to display the same thing in LaTeX, namely an auto-sized, shaded, rounded-corner box around a word.  Thank you in advance!


On the product of $\mathfrak c$-many separable spaces

I already figured out how to show that the countable product of separable topological spaces is separable,  but I'm out of ideas when the index set has cardinality of $\mathfrak c$. My textbook says it is possible but gives no references. Any suggestions how to prove this statement?  In a less general setting, I would also be interested to see how a dense countable set is constructed to $\mathbb{R}^{\mathbb{R}}$. Thanks in advance.


What can I do because of 'Duplicate Product Code' on Steam?

I've just created a new steam account and wanted to activate Half-Live there. Then I got this error message:    When I click on 'Retrieve Account', nothing happens. I am quite sure that I have already activated this many years ago on another account, but I don't remember which account (and which email-address) I used.  When I click on '' it seems not to contain helpful information.  I have the original CD and even the receipt.  What can I do now?


Inflection point could not be a local extreme point?

Why is the statement "An inflection point can not be a local extreme point?" wrong? Isn't a local extreme point either a max or a min only? What is wrong here?


why ignore_sticky_posts in sticky post query

We all know that  ignore_sticky_posts is used to exclude sticky post from your custom query.  But why on codex page , they use ignore_sticky_posts in querying sticky posts??  $args = array( 'posts_per_page' => 1, 'post__in'  => get_option( 'sticky_posts' ), 'ignore_sticky_posts' => 1 ); $query = new WP_Query( $args );   This is so confusing and doesn't make any sense, you want it and yet you exclude it?


Can you enter Canada on a visa in an expired passport?

My nephew's Canadian visa and Passport expires on the 29th of August 2020. He has a new valid passport.  Is his visa still valid on his old passport, so he can enter in Canada on April 22 2020 and leave on May 21 2020?


Can one PC grab another PC and drag them?

While DMing my session today, I encountered a situation I wasn't sure how to answer. The PCs were attacked by a werewolf and decided to flee onto their nearby horses. Two of them were already mounted and two of them were on foot. One player on the ground (a wizard) attempted to cast a spell on the werewolf and failed. He then moved closer to the mounts but couldn't make it with his speed. After a few turns it was the barbarian's turn. The barbarian wanted to drag the wizard with him and plop the wizard onto a horse and then mount with his remaining movement speed.  I wasn't sure quite how to handle it, so I made a compromise. I allowed the barbarian to drag the wizard. However, because the rules specifically state that it takes half of a character's movement to mount, I wouldn't allow the barbarian to force the wizard to mount. However, if the barbarian wanted to, he could mount the horse himself as he had enough remaining movement.  The reason I allowed the barbarian to drag the wizard is because of the lifting, dragging, and pushing rules in chapter 7 of the Player's Handbook. The barbarian had more than enough strength to push our tiny, lightweight wizard around.  I'm not really sure if I handled it right at all. I'm not entirely sure that those rules apply to living beings, especially living beings that can move. I would really appreciate some advice on whether or not players can drag other players after their (the player who is being dragged) turn is over or if players can drag other players at all. If I recall correctly, I believe the wizard still had about 5' of movement left, if it makes a difference.


GeoTIFF rendered in OpenLayers using GeoServer: Tiles have different brightness and sharp edges between them

I have a script that download and process satellite images using pyhon/gdal and then upload them to GeoServer.  The basic process is:  gdalbuildvrt tmp.vrt file_1.tif file_2.tif ... file_n.tif gdal_translate -of GTiff -co TILED=YES tmp.vrt outfile.tif gdaladdo -r gauss outfile.tif 2 4 8 16 32  #then upload to geoserver   outfile.tif looks like this in QGIS:   When GeoServer feeds image tiles to my OpenLayers application I am to understand that it applies a contrast enhancement. This is initially a good thing since my images tend to be a little dark.  The problem is that the effect seems to be applied locally on each tile. This is how the same file looks like in OpenLayers:   I have tried to modify the used style file (SLD) in GeoServer. Changing the ContrastEnhancement property from Normalize to Histogram makes the effect even bigger.  How do I remove these "boxes" in the image?  Does someone have any ideas for what I could try?


Isn't has a general verb when followed by an object and then Ing

The restaurant has a lot of customers stand in line every lunch time   The restaurant has a lot of customers standing in line every lunch time      I know for the fact that the verb "has" in sentence 1 functions as a causative verb like "make" or "let". But, how about the one in sentence 2?   I am not so sure.  I think the verb has in sentence 2 is not a causative verb but functions as a general verb with standing as a modifier.  Could you help me clarify it? Thank you.


Using Induction to prove a product series equality?

I'm getting confused by these types of problems where "n" appears in the general term:  Use Induction to prove:  $$\prod_{i=1}^n \frac{n+i}{2i-3}= 2^n(1-2n)$$  Would my P(n+1) be this?:  $\mathbf P(n+1):$ $$\prod_{i=1}^{n+1} \frac{n+1+i}{2i-3}= 2^{n+1}(1-2(n+1))$$  If this is the case, I dont know how to use the Inductive hypothesis to prove it since the product sequence is now a "different" sequence.  How would I go about solving this?  Many thanks in advance.  Edit: the index was indeed wrong, thanks T Ford, changed it to i=1


I am comfortable with the different sizes of infinities and Cantor's "diagonal argument" to prove that the set of all subsets of an infinite set has cardinality strictly greater than the set itself. So if we have a set $\Omega$ and $|\Omega| = \aleph_i$, then (assuming continuum hypothesis) the cardinality of $2^{\Omega}$ is $|2^{\Omega}| = \aleph_{i+1} > \aleph_i$ and we have $\aleph_{i+1} = 2^{\aleph_i}$.  I am fine with these argument.  What I don't understand is why should there be a smallest $\infty$? Is there a proof (or) an axiom that there exists a smallest $\infty$ and that this is what we address as "countably infinite"? or to rephrase the question "why can't I find a set whose power set gives us $\mathbb{N}$"?  The reason why I am asking this question is in "some sense" $\aleph_i = \log_2(\aleph_{i+1})$. I do not completely understand why this process should stop when $\aleph_i = \aleph_0$.  (Though coming to think about it I can feel that if I take an infinite set with $\log_2 \aleph_0$ elements I can still put it in one-to-one correspondence with the Natural number set. So Is $\log_2 \aleph_0 = \aleph_0$ (or) am I just confused? If $n \rightarrow \infty$, then $2^n \rightarrow \infty$ faster while $\log (n) \rightarrow \infty$ slower and $\log (\log (n)) \rightarrow \infty$ even slower and $\log(\log(\log (n))) \rightarrow \infty$ even "more" slower and so on).  Is there a clean (and relatively elementary) way to explain this to me?  (I am totally fine if you direct me to some paper (or) webpage. I tried googling but could not find an answer to my question)


Is there a word, or an expression, that describes the act of deceptively offering a person(s) a choice of future possibilities, that mollifies them long enough to complete a task, knowing that the end result is already determined?  Example: Mother at grocery offering unruly children a visit to either ice cream shop or candy store afterwards in exchange for calming down. Knowing full well after the grocery they will go straight home.


How to prove that if a prime divides a Fermat Number then $p=k\cdot 2^{n+2}+1$?

If a prime $p$ divides a Fermat Number then $p=k\cdot 2^{n+2}+1$?   Does anyone know a simple/elementary proof?


How can I solve this problem without having to do it by hand?

I'm dealing with the following problem in computational programming. I'm trying to find a way to build an algorithm that can quickly resolve the following problem statement without forcing me to do it by hand. Is there any way to group the following relations below by some pattern or identity in order to make finding a possible values of c much more efficiently?  Problem: Given any integer x, where x > 2, is there any integer c, where c > 1 that satisfies one of the following relations for some integer k, where k >= 0.   $\frac{x}{11 + 10k} = c \Rightarrow x = 11c + 10ck$ $\frac{x}{3  + 10k} = c \Rightarrow x = 3c  + 10ck$ $\frac{x}{7  + 10k} = c \Rightarrow x = 7c  + 10ck$ $\frac{x}{9  + 10k} = c \Rightarrow x = 9c  + 10ck$  Example $\#1$: $x = 3$ (Does not Satisfy) From $\#1$: $c = \frac{3}{11 + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $3$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#2$: $c = \frac{3}{3  + 10k}$, so for $k = 0$, c would be 1, but the restriction on c is that it must be greater than 1. For $k \ge 1$, the denominator will always be larger than $3$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#3$: $c =\frac{3}{7  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $3$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#4$: $c = \frac{3}{9  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $3$. No integer value of $c \gt 1$ will ever satisfy this equation. Example $\#2$: $x = 4$ (Does not Satisfy) From $\#1$: $c = \frac{4}{11 + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $4$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#2$: $c = \frac{4}{3  + 10k}$, so for $k = 0$, the denominator does not divide evenly into $4$. For $k \gt 1$, the denominator will always be larger than $4$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#3$: $c =\frac{4}{7  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $4$. No integer value of $c \gt 1$ will ever satisfy this equation. From $\#4$: $c = \frac4{9  + 10k}$, so for any $k \ge 0$, the denominator will always be larger than $4$. No integer value of $c \gt 1$ will ever satisfy this equation. Example $\#3$: $x = 37$ (Does not Satisfy) No integer value of $c \gt 1$ will ever satisfy this equation. Example $\#4$: $x = 91$ (Satisfies a Relation Above) From $\#2$: $c =\frac{91}{3  + 10k}$, so for $k = 1$, $c = 7$ will satisfy this equation. Example $\#5$: $x = 147$ (Satisfies a Relation Above) From $\#3$: $c =\frac{147}{7  + 10k}$, so for $k = 0$, $c = 21$ will satisfy this equation.


C# Making Basic Multithreaded Loop Return the Correct Values

First off, I'm new to C#, and this is the first program I've written that uses threads. Sorry if it's a bit basic.  Here's my app:      class Program {     static void AddNumbers()     {         int count = 0;           for (int counter = 0; counter < 90000000; counter++)         {             count += counter;         }     }      static void Main()     {         Stopwatch stopwatch = new Stopwatch();         stopwatch.Start();          for (int i = 0; i < 50; i++)         {             // Non-threaded             //AddNumbers();             //Console.WriteLine((i + 1).ToString());              // Threaded             new Thread(() =>             {                 //Thread.CurrentThread.IsBackground = true;                  AddNumbers();                 Thread.Sleep(1000);                  Console.WriteLine((i + 1).ToString());             }).Start();         }          stopwatch.Stop();         Console.WriteLine("Time elapsed: {0:hh\\:mm\\:ss}", stopwatch.Elapsed);          Console.ReadLine();     } }   It simply loops i times and adds a bunch of numbers each time. When I run the AddNumbers() version non-multithreaded, it correctly displays 1, 2, 3... etc, but when I run it multithreaded, it returns the same indexes 2-3 times, skips some, and returns the stopwatch value before all the threads have executed.  Can someone please help spot where my error is and most of all clarify my thinking about how threads work in C#? Thanks!


Using generic types in XAML x:Type markup

I have the following XAML snippet and I want to include a generic parameter and I can't work out what I need to do?  I guess I'm going to have to created a markup extension to do this but I'm unsure how to get this to work with the x:Type attribute.  DataType="{x:Type vm:FooViewModel<Bar>}"