How do I add an integer value with javascript (jquery) to a value that's returning a string?

I have a simple html block like:  8   Using jquery I'm trying to add a 1 to the value (8).  var currentValue = $("#replies").text(); var newValue = currentValue + 1; $("replies").text(newValue);   What's happening is it is appearing like:  81  then  811  not 9, which would be the correct answer.  What am I doing wrong?


Create a \savebox in a Group and have it available outside of group

The MWE below creates a \savebox within a group which results in several blank lines:  If I comment out the\begingroup and \endgroup I get the desired results:  My thinking was that adding the \global should have fixed this issue. So, how do I create and define \savebox within a group and yet be able to use the outside of the group? Notes:  While the MWE here does not need grouping my actual use case does, so I would really prefer to not have to eliminate the grouping.  Code: \documentclass{article} \usepackage{etoolbox}  \newcommand*{\MyLink}[2]{% \begingroup     \ifcsdef{MyBox #1-#2}{%     }{%         \typeout{*** Defined savebox for #1-#2}%         \global\expandafter\newsavebox\csname MyBox #1-#2\endcsname%         \global\expandafter\savebox\csname MyBox #1-#2\endcsname{#2: #1}%     }%     \expandafter\usebox\csname MyBox #1-#2\endcsname% \endgroup }%   \begin{document}     \MyLink{http://www.wikipedia.org}{W}           \MyLink{http://www.wikipedia.org}{W}           \MyLink{http://www.apple.org}{A}           \MyLink{http://www.google.com}{G}       \MyLink{http://www.wikipedia.org}{W}       \MyLink{http://www.wikipedia.org}{W}  \end{document}


I get so confused in possessive pronouns

Can you please correct these sentences.  1.Can I click a picture of yours.   2.Do you know the email address of John's?  3.I think of both of yours betterment.   4.You are a friend of John's.


What is Drupal 8 file pattern name for a specified content type?  Suppose I have  a Movie content type. What is the pattern name for its page? Is it page--node--movie.html.twig?


What is the actual name of character c2 in the anime code geass? I would also like to know the name of v2 if that is possible.


What is the difference between new keyword and virtual-override keyword

Both keywords are hiding the base class members only wright if same member is present in child class also!


how to control padding between struct elements in GNU compiler?

In below code. When I print individual char array size it prints correct value. But when I print whole struct size at a time it adds one byte more for each char array.  How can I control padding between elements in struct using #pragma in GNU C++ compiler? Can I set it to 0?  #include <iostream> using namespace std;  typedef struct s1{     char test[15];     char t2[15]; }s1;  typedef struct s2{     int message_id;     int message_size; }s2;  typedef struct s3{     char test[15];     char t2[15];     int a; }s3;  typedef struct s4{     char test[15];     int a; }s4;   int main() {     s4 st;     cout<<sizeof(s1)<<endl;     cout<<sizeof(s2)<<endl;     cout<<sizeof(s3)<<endl;     cout<<sizeof(s4)<<endl;     cout<<sizeof(st.test)<<endl;     return 0; }   -----------------------OUTPUT--------------------  30 8 36 20 15   How can I control padding between struct elements?


I have the following char*  char* config = "username 12345 google.com 225";   While trying to split it by space, I expect the result be a vector<string> of words contained in the string, BUT I instead get only the first word and nothing more.  Here is the code I use:  istringstream iss_str(config); string token; // storage for splitted config data vector<string> tokens;  // port number is an integer value, hence it should // be type-cast back to integer int config_int_port = 0;  while( getline(iss_str, token, ' ') ) // I also have replaced space with \000 but to no avail {     tokens.push_back(token); }   The result I get is a vector with size 1 which only contains the first word, username  I also have used the following method, but the result is the same as previous one:  copy(istream_iterator<string>(iss_str),      istream_iterator<string>(),      back_inserter(tokens));   UPDATE I use the following function to execute the above code:  void __cmd_conf(char* __config)   And it is called:  __cmd_conf(optarg);   optarg is linux's global variable for the next option's arguments.


E: Could not get lock `var/lib/dpkg/lock`   - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (`/var/lib/dpkg/`)   Is another process using it?


I'm confused about the index in python. This is my problem: number = "1234567" print(number[-3:1:-3])  Output: 5 Why did the output is only 5 and not 52? When the starting position is in the number 5 and the end position is in the number 1(Am I right?). From the right(SINCE IT IS NEGATIVE SO REVERSE) i count from 5 then skipped 2 spaces then the number 2 should also be included.


C++ friends in template classes, separation of interface and implementation

The following code works fine:  Class.h:  #ifndef ClassLoaded #define ClassLoaded  #include <iostream>  template <class T> class Class{     public:         template <class T> friend std::ostream& operator<<(std::ostream& Stream, const Class<T>& Op); };  #endif   Class.cpp:  #include "Class.h"  template class Class<int>;  template std::ostream& operator<<(std::ostream& Stream, const Class<int>& Op);  template <class T> std::ostream& operator<<(std::ostream& Stream, const Class<T>& Op){     return(Stream); }   Main.cpp:  #include "Class.h" #include <iostream>  using namespace std;  int main(){     Class<int> Test;      cout << Test << endl;      return(0); }   but the following extended version gives a linker error (unresolved external symbol) and I do more or less understand why. But how to fix it?  Class.h:  #ifndef ClassLoaded #define ClassLoaded  #include <iostream>  template <class T> class Class{     public:         class SubClass{             public:                 friend std::ostream& operator<<(std::ostream& Stream, const SubClass& Op);         };          template <class T> friend std::ostream& operator<<(std::ostream& Stream, const Class<T>& Op);      private:         SubClass Member; };  #endif   Class.cpp:  #include "Class.h"  template class Class<int>;  template std::ostream& operator<<(std::ostream& Stream, const Class<int>& Op);  template <class T> std::ostream& operator<<(std::ostream& Stream, const typename Class<T>::SubClass& Op){     return(Stream); }  template <class T> std::ostream& operator<<(std::ostream& Stream, const Class<T>& Op){     Stream << Op.Member;     return(Stream); }   Main.cpp:  #include "Class.h" #include <iostream>  using namespace std;  int main(){     Class<int> Test;      cout << Test << endl;      return(0); }   I guess I need an analogue of the lines  template class Class<int>;  template std::ostream& operator<<(std::ostream& Stream, const Class<int>& Op);   for SubClass and also some sort of template version of  friend std::ostream& operator<<(std::ostream& Stream, const SubClass& Op);   but how to do it?  Edit: As this was claimed to be a duplicated of another question: My question here is very specific (see comments below) and is not answered by the quoted questions or even mentioned there.


When I insert any figure into my Latex document all I get as the output is a total black background instead of the image (when I use switch [demo] on). However when I disable the demo, I get an error message      LaTex could not determine the graphics size    What should I do in this case?  Here is my preamble:  \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}


how to take images with multiple cameras with Script?

To be clear i want a script, which produces what i am describing below. I want to iterate through all the cameras in my scene where each one renderes an image. I can do this manually by rendering with active camera, then set another camera to active, and then render again.   I have five cameras in my scene and i am going to be using this scene a lot. in reality the question might be more about setting a camera to active with script.


How to set keyboard switch with Ctrl+1, Ctrl+2, Ctrl+3 etc

In windows in keyboard switch settings there is an option that you can switch keyboard language with unique combination for each one.  For example, Ctrl + 1 - for english, Ctrl + 2 - for russian, Ctrl + 3 for ukrainian etc.  It would be super handy, if there is an option to set this thing in Ubuntu.   Are there any options?


W and Z bosons are observed/discovered. But as force carrying bosons they should be virtual particles, unobservable? And also they require to have mass, but if they are virtual they may be off-shell, so are they virtual or not.


Some problems in Noncommutative Algebra book of Benson Farb and R. Keith Dennis

In , there is a following exercise. Exercise 2. Let $R$ be a ring (with $1$) such that the only left ideals of $R$ are $0$ and $R.$ Show that $R$ must be a division ring; that is, if $R$ is simple as a left $R$-module, then $R$ is a division ring. If the hypothesis that $R$ has an identity is dropped, the result no longer holds. Give an example to show this. In fact, the type of example you give is unique. I have written a little about it. Regard a ring $R$ as an $R$-module.     If $R$ is simple, we will show that $R$ is a divison ring. Indeed, if $x\in R,$ then $R=Rx,$ and so there is $y\in R$ such that $yx=1.$ Since $y$ is an element of the simple $R$-module $R,$ we have $R=Ry.$ This implies $1=zy.$ Moreover, $z=z1=z(yx)=(zy)x=1x=x.$ Therefore $R$ is a division ring. Otherwise, if $R$ is a division ring, then we will show that $R$ is simple. Indeed, if $x\in R,$ then $Rx$ is a submodule of $R.$ It seems that $R=Rx.$ This implies $R$ is a division ring. The rest of the problem leaves me wondering. In this book, the ring is defined by a ring, has certainly identity $1.$ But the author gives $1$ and finds an example about the division ring without $1.$ I think the definition of a division ring requires $1.$ Moreover, I can't find an example about it. Other way, in exercises 4 (c) and 4 (d),  I think that $\mathbf{Q}$ must be written $\mathbf{Q}[x],$ and all simple $R$-modules, where $R$ is a principal ideal domain, are isomorphic to $R/I$ where $I$ is an ideal generated by a irreducible element. I'm not sure about this. Please take a look and help me.


Adding application icons to Artful Aardvark Activities and dock

How can I add one of my applications to the "Activities"? How can I pin it to the dock?


jquery $ notation returns null for document element

I am trying to use javascript to change a value of a select box on a ToysRUs address page. The project is an extension that fills out an address form automatically.     The item id is billingAddress.address.stateSelect  document.getElementById("billingAddress.address.stateSelect") // returns the element.  $("#billingAddress.address.stateSelect") // returns null.   I wanted to use $("#billingAddress.address.stateSelect").val("CA") to change the selection, but I cannot because it is null.  The page is using jQuery      (typeof jQuery != 'undefined') // is true   I still get null after escaping the periods with backslashes.  s=document.getElementById("billingAddress.address.stateSelect").id; console.log(s); s= "#"+s.replace( /(:|\.|[|])/g, "\\$1" );  //also tried \\\\ backslashes and \\\ backslashes console.log(s); //gives billingAddress\\.address\\.stateSelect console.log($(s)); //is still null


I'm studying the Axiom of Choice. But it is so hard for me to apply the exercise.  The question is:  Let $A$ be any set with more than one element. Prove that there exists a bijective function  $f : A\to A$ such that $f(x)\neq x\text{ }\forall x \in A$.  I don't feel sure that the question is only for applying axiom of choice. I learned the Zorn's lemma but I dont feel certain to apply the Zorn's lemma.  Please help me.


Multicols environment not stepping page counter

I am writing a document which needs a multicols environment stretching over multiple pages. Moreover I am intending to use \thepage in the body of the environment. To be specific I need to know whether the page ist odd or even.   After getting some weird results I realized, that the multicols package does not seem to step the page counter, unless a manual \newpage is issued.   MWE:  \begin{filecontents*}{\jobname.xmpdata} \Title{title} \Author{author} \end{filecontents*} \documentclass[a4paper,11pt,twoside,parskip=half]{scrartcl}  \usepackage[x-1a]{pdfx} \usepackage[ngerman]{babel}  \usepackage{blindtext} \usepackage{multicol}  \begin{document}   \begin{multicols}{2}     \blindtext\\     \textbf{PAGE: \thepage}\\     \columnbreak     \blindtext\\     \textbf{PAGE: \thepage}\\     \blindtext     \blindtext     \blindtext\\     \textbf{PAGE: \thepage}\\     \blindtext     \newpage     \blindtext\\     \textbf{PAGE: \thepage}\\   \end{multicols} \end{document}   Thanks in advance for any help


Integral $ \int_0^\infty \int_0^\infty \frac{e^{-(x+y)}}{x + y}\,dx\,dy $

The integral $$ \int_0^\infty \int_0^\infty \frac{e^{-(x+y)}}{x + y}\,dx\,dy $$  is  (A) infinite  (B) finite, but cannot be evaluated in closed form  (C) $1$  (D) $2$  I have tried with integration by parts in succession and ending up with value $1/2$. But there is no such option. The correct option is (C) $1$.   Where I am going wrong?


wms layer not shown on geoserver while wfs works fine

I have a really strange problem which I don't know how to solve. I have shp file I've import into PostGIS using PostGIS Loader (made sure the srs is 4326 same is shp file) .  In geoserver (2.6.1) I've created a postgres store and published the table I've imported , set it SRS (WGS84) and style (default Polygon).  Now this is where things go weird and I have no idea how to approach this problem:   If I Preview the layer via WFS (KML/GeoJson/CSV etc...) I get the txt files with all features inside. If I try to preview via openlayers or any other WMS (like geotiff) either I see empty map or get error  When I create a store of shp files with the data I've imported , it shows fine as wms.    Here is example that I do see features via wfs (csv) but error in wms.  Any idea ?!    EDIT 1: It was pointed out in comments that "width=78450&height=330" is a strange size (although this is what geoserver auto generate in preview) so I've manually edited the request to :  http://localhost:8080/geoserver/Oakland/wms?service=WMS&version=1.1.0&request=GetMap&layers=Oakland:oakland180110&styles=&bbox=-122.502975463867,37.3532028198242,-121.66429901123,37.9185791015625&width=512&height=345&srs=EPSG:4326&format=image/png   and now I get empty image:   Since I do see the data in the shp files preview :  http://localhost:8080/geoserver/Oakland/wms?service=WMS&version=1.1.0&request=GetMap&layers=Oakland:Oakland180110&styles=&bbox=-122.491314021,37.379831195000065,-121.71847960399995,37.89508712800005&width=512&height=341&srs=EPSG:4326&format=image%2Fpng   I tend to think that the problem is somewhere from reading the data from PostGIS.    Last thing I did is comparing the shp layer settings to the postgis layer settings but I don't see anything that might hint on the problem I have:    Update 2:  I've checked geoserver log and noticed that the following query returns null:  SELECT encode(ST_AsBinary(ST_Simplify(ST_Force_2D("the_geom"), 0.002246433788820923)),'base64') as "the_geom" FROM datatable   Now , the_geom column is geometry type and is not null .  When running ST_Simplify it brings back null :  This is working :  SELECT ST_Force_2D("the_geom") as "the_geom" FROM "public"."datatable"   This brings the nulls :  SELECT ST_Simplify(ST_Force_2D("the_geom"), 0.002246433788820923) as "the_geom" FROM "public"."datatable"   Any idea why ?


How to shrink the .ldf(log) file of the particular live production database?

I would like to say that as one of my production database (.ldf) log file is growing larger than  databse size.  The size of database file (.mdf) and their log file (.ldf) is as follows:-  1)database file (.mdf) size is 29 MB 2)log file (.ldf) size is 100 GB   I am working as a DBA, still i don't have any information of that database. Due to System Administrator was maintaining to that SQL Server database. Before hiring to me, no one was as a DBA here. That's why he was maintening the windows as well as MS SQL Server services.   Before two day ago he called to me and told to me this (.ldf) file is growing to day by day. But the database (.mdf) file lesser than that.   First i have checked out the "Recovery Model" of the database. I did found out "Full Recovery Model".  First of all , I have taken full backup of Database with "full" recovery model. Still i didn't take backup of  log file (.ldf). I have googling related to this topic and find out so many blogs like  ,  ,  \, ,   ,, and finall this MSDB BOL    Before shrinking the log file (.ldf) of 100 GB, i want to some expert advice . what he will advice to this.  My working Environment is :  1)Windows Server 2012 R2 2) MS SQL Server 2012 3) Recovery Model of that database is "Full Recovery Model" 4) Windows is in Domain Environment 5)VMware Virtual Platform 6) Database (.mdf) Size is 29 MB 7)Log file (.ldf) size is 100 GB 8) No Mirroring of database 9)NO Replication of databse 10) NO AlwaysOn   As per Paul Randal Blog, if i will go 6 point **"Switch to SIMPLE when it fills up, shrink the log, then switch back to FULL"** .  and also as per MSDN BOL   Shrinking a log file to a specified target size USE DatabaseName; GO -- Truncate the log by changing the database recovery model to SIMPLE. ALTER DATABASE DatabaseName SET RECOVERY SIMPLE; GO -- Shrink the truncated log file to 1 MB. DBCC SHRINKFILE (DatabaseName_Log, 1); GO -- Reset the database recovery model. ALTER DATABASE DatabaseName SET RECOVERY FULL; GO   This is a right procedure to shrink the log file (.ldf) of particular production database.  Or , Is there any suggestion or idea to shrink (.ldf) file apart from this procedure will be appreciated.


Is the number of irreducibles in any number field infinite?

Are there infinitely many irreducibles in the ring of integers of any algebraic number field ?  I tried to follow the same argument as we usually do for integers. Suppose there are finitely many irreducibles, say $p_1,\ldots ,p_n$ and let $\alpha :=1+ p_1\cdots p_n$. Now if $\alpha $ is not a unit then it must have an irreducible $p$ such that $p|\alpha$ but then $p$ can not be any of the $p_i$'s and we have a contradiction. $\textit{What if $\alpha$ is an unit ? Is it possible for $\alpha$ to be an unit ?}$   Of course, one can replace $p_1\cdots p_n$ by $p_1^{k_1}\cdots p_n^{k_n}$ for any $k_1,\ldots ,k_n\in\mathbb{N}$ and the same argument would go through.


Consider the group $C_2\times C_2=\{x^2=y^2=1, xy=yx\}$.  Then, any automorphism of $C_2\times C_2$, say $\phi$, must map $x$ to something of the same order, so $x$ can be mapped to $x$, $y$, or $xy$.  Consider the case when $\phi(x)=y$.  Then, I want to say what $\phi$ does to the other elements of $C_2\times C_2$.  What would be the best way of going about this?  I know that $\phi(e)=e$ where $e$ is the identity element, but what would happen to $\phi(y)$ or $\phi(xy)$?  Could we say anything?  What about the case then when $\phi(x)=xy$ or $\phi(x)=x$?


How do I use the latest GCC on Ubuntu? (Ubuntu 18.04; gcc 8.1)

Ubuntu currently provides gcc version 7.3, however gcc version 8.1 is currently available. I'd like to install gcc 8.1 alongside gcc 7.3 (so that if I call c++ it invokes the version from gcc 7.3, and if I call c++-8 it invokes the version from 8.1).   I tried following the instructions outlined in  (but replacing 4.9 with 8.1), but gcc 8.1 isn't in the repository listed in the question:  $ sudo apt-get install gcc-8.1 [sudo] password for sky:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package gcc-8.1 E: Couldn't find any package by glob 'gcc-8.1' E: Couldn't find any package by regex 'gcc-8.1'   How do I install gcc 8.1 in ubuntu 18.04?  Edit: This question isn't a duplicate because GCC updated the way versions are handled. It's now necessary to write sudo apt-get install gcc-8 instead of sudo apt-get install gcc-8.1.


How would I make something spawn when and where a snowball hits something?

I know how to make things spawn as they follow an object, but is there any way to make them spawn once lets say a snowball hits its target?  I am working on a way to make snowballs that spawn tnt upon hitting their target.


Spells that do not specify that they do damage but state that they affect hit points

I'm relatively new to DnD in general and 5th edition is my first experience with Dungeons and Dragons.  I am confused with some spell mechanics. Spells usually state that they do damage, such as:  Burning Hands (Lv 1)  A creature takes 3d6 fire damage  Ray of Sickness (Lv 1)  On a hit, the target takes 2d8 poison damage   But some spells only dictate that the hit points are affected:  Sleep (Lv 1)  Roll 5d8; the total is how many hit points of creatures this spell can affect.  Color Spray (Lv 1)  Roll 6d10; the total is how many hit points of creatures this spell can effect. [sic]   In this case what would I do?  Do I do 5d8 damage if I cast sleep or 6d10 damage if I cast color spray? If so, why on earth would I use any other Level 1 spell as these two would be exponentially better than any other D&D 5e level 1 spells?


"Would you like to automatically move these comments to chat?" could be clearer

When two users message each other in the comments one too many times, Stack Exchange presents a message as follows:     Would you like to automatically move this discussion to chat?   I clicked on it thinking it would move the discussion to chat. Well, it kind of did that. It copied the discussion to chat, and left the original comments behind.  There's an easy fix for this: use the correct verb.  suggested...     Would you like to continue this discussion in chat?   ... and my original suggestion was...     Would you like to automatically copy this discussion to chat?   What do you think?


how do we organize our site's (navigation) pages in Google search?

Is there a HTML technique for organizing my site's main pages in Google (navigation)? Or is it made by a Google's specific tool for creating a result layout like in this picture?    Look at the difference of the results for my site:


set text to TextView - NullPointerException

im working the last days on a small app but since 2 days i cant set a text to my textview. I know that normally it has to be made in this way:  TextView textview1;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      textview1 = findViewById(R.id.tvid1);     textview1.setText("blablabla"); }   In my case is my layout not directly the main layout where the textview is. Im using the default Navigation Drawer Example and their is another layout called that refers to the main-content-layout.  I let the program do something in another java-class and that class return a String Value that has to be displayed in my TextView. But I can get data from EditText-Field they are aswell in the same layout.  And this is the Error when my application has to set the text:     java.lang.NullPointerException: Attempt to invoke virtual method 'void   android.widget.TextView.setText(java.lang.CharSequence)' on a null   object reference   EDIT - 13.05.18 16:00:  when i put TextView calc_price_output into the onCreate methode and the textview set the text. But why he dont do it in another methode that use the same variable :?   PROBLEM SOLVED - But no idea how ...  the problem exists only in the last methode. All other works perfectly.


In my book, the following are described to be the steps that one must follow if he wishes to find the direction of static friction force acting on an object:  "(1) Draw the F.B.D(free body diagram) of the object in question with respect to the other object on which it is kept. (2) Include the pseudo force also, if the contact surface is accelerating. (3) Decide the direction of the resultant force and resolve this force into two components; one along the surface of contact and the other along the normal to this surface. (4) The direction of static friction is opposite to the component of the result force along the contact surface."  Firstly, are these steps correct? Will I always obtain the correct answer by following these steps? Secondly, consider the following problem:  In questions like these, when I try to find the resultant force and then assign the direction to static friction, I find that my answer is incorrect! Are there some other steps to follow when I know that the object is definitely accelerating in one direction or another? Edit 1: I approached the above question by doing exactly what my book suggests; first, I identified all the forces acting on the smaller block, being the normal force applied by the block A and its weight mg downward. Adding these two forces, I get another force that actually acts on the body like so:  I wonder if I'm not supposed to take either of the contact forces into consideration when drawing the F.B.D to figure out the direction of static friction acting on the body. Also, are there other steps for finding the direction of kinetic friction? Edit 2: From Judge's answer, I have been able to figure out my mistake, it being that I completely missed step (3) and didn't resolve the resultant force into components! Sheesh. Sorry! Much thanks in advance! :) Regards.


The ordering of word pairs: anyone for chips and fish?

When we list pairs of words, certain orders seem much more common and natural than others.  A few examples:   Fish and chips instead of chips and fish Ladies and gentlemen instead of gentlemen and ladies (likewise, men and women instead of women and men) I'm sure we've all (?) had those disagreements about whether it's Rob and Salma or Salma and Rob (or whatever)   In most of these cases though, I struggle to rationalise why one order sounds more 'right' than another.  Is it purely a historical accident that one order is more common than another? Or are there subtle linguistic rules that are responsible?


Short way to solve integration of unique problem of rational function which cannot be solved by substitution

Here is the problem: Integration of  $$\int\frac{1}{1+\sqrt{x^2+x+2}}.$$  I started by completing the square and then substituting but it became too complicated.  So I want to solve in a shorter way. Any help would be appreciated.


My functional analysis textbook says   "The metric space $l^\infty$ is not separable."   The metric defined between two sequences $\{a_1,a_2,a_3\dots\}$ and $\{b_1,b_2,b_3,\dots\}$ is $\sup\limits_{i\in\Bbb{N}}|{a_i-b_i}|$.   How can this be? Isn't the set of sequences containing complex numbers with rational coefficients the required countable dense subset of $l^\infty$?  Thanks in advance!


Avoiding first chance exception messages when the exception is safely handled

The following bit of code catches the EOS Exception  using (var reader = new BinaryReader(httpRequestBodyStream)) {      try {         while (true) {             bodyByteList.Add(reader.ReadByte());         }     } catch (EndOfStreamException) { } }   So why do I still receive first-chance exceptions in my console?      A first chance exception of type 'System.IO.EndOfStreamException' occurred in mscorlib.dll   Is there a way to hide these first chance exception messages?


Difference between "I only have 10 dollar on me and "I have only 10 dollar on me"

Is there any grammatical correctness in either of these expressions: "I only have 10 dollar on  and  "I have only 10 dollar on me" ?


I "random" meaning with known probability?

Can I say that a phenominon(e.g. like a coin flip) Is not deterministic but also not 50/50 ,rather completly unpredictable ? Is there a term for such behaviour ? Is that what "random" mean or is random apply for 50/50 ?


What does ' (single quote) do in the terminal?

If I type ' (single quote, next to the <enter> button) in the terminal and then press enter it drops to a > prompt.  What exactly is this, what's it used for, and what type of commands can I enter here?    I can <Ctrl-C> out of it but that's all I got.


I was wondering whether it is possible to execute a command depending on the used documentclass.  \documentclass{dinbrief} %\documentclass[a4paper]{letter} \usepackage{ifthen}  \begin{document} \ifthenelse{<documentclass is dinbrief>}{\setlength{\headheight}{20mm}}{} \the\headheight \end{document}   I think in principle this code should work. But what exactly should go in the conditional of the ifthenelse (instead of ). Via google I could not find out if there is a variable holding the documentclass so can it be requested during compilation, and if it exists, what's its name?


Detecting \global, \long, \outer, \protected

Is there a way to detect whether or not the next assignment is going to be \global, \long, \outer, or \protected?  That is, is it possible to write a command \detectmodifiers such that code like  \def\otherdef{%   \detectmodifiers   preprocessing   \ifglobal\expandafter\global\fi   \iflong\expandafter\long\fi   \ifouter\expandafter\outer\fi   \ifprotected\expandafter\protected\fi   \def }   does the right thing (defines an \otherdef command that acts the same way as \def, but does some preprocessing first)?


In a book with figures, tables and listings, I figured out that all listings and some tables and figures look better when presented in a tcolorbox. The book has the usual tables of contents:  \tableofcontents{} \listoffigures{} \listoftables{} \lstlistoflistings{}   but tcolorboxes have their own headlines (and may define their own counters), so it seems redundant (and unattractive) to have the usual captions and labels for figures, tables and listings too.   So my question is how to produce the lists of figures/tables/listings the reader expects after the ToC when    tcolorbox is used exclusively? tcolorbox is used sometimes, while the plain listings package and regular  table/figure environments are used in other cases?   EDIT: Here is a MWE (adapted from T.F.Sturm) that has figures, tables and listings as well as a tcolorbox theorem and listing with a label and a counter. How do I make them appear in the ToC section in the beginning of the file?  \documentclass{article} \usepackage{tikz} \usepackage{here} \usepackage[listings,theorems]{tcolorbox} \tcbset{noparskip} \begin{document} \tableofcontents{} \listoffigures{} \listoftables{} \lstlistoflistings{} \pagebreak{} %---------------------------------------------------------- \section{Colored boxes}  \begin{tcolorbox}[colback=red!5,colframe=red!75!black]   My box. \end{tcolorbox}  \begin{tcolorbox}[colback=blue!5,colframe=blue!75!black,title=My title]   My box with my title. \end{tcolorbox}  %---------------------------------------------------------- \section{\LaTeX-Examples}  \begin{tcblisting}{colback=red!5,colframe=red!75!black} This is a \LaTeX\ example: $\displaystyle\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}$. \end{tcblisting}   %---------------------------------------------------------- \section{Theorems}  \newcounter{mytheorem}[section] \def\themytheorem{\thesection.\arabic{mytheorem}}  \tcbmaketheorem{theo}{Theorem}{fonttitle=\bfseries\upshape, fontupper=\slshape,      arc=0mm, colback=blue!5,colframe=blue!75!black}{mytheorem}{theorem}  \begin{theo}{Summation of Numbers}{summation}   For all natural number $n$ it holds:\\[2mm]   $\displaystyle\sum\limits_{i=1}^n i = \frac{n(n+1)}{2}$. \end{theo}  We have given Theorem \ref{theorem:summation} on page \pageref{theorem:summation}.  \pagebreak{} %----------------------------------------------------------  \section{Tables, Listings and Figures} %---------------------------------------------------------- This is table 1 %----------------------------------------------------------  \begin{table}[H]   \centering   \begin{tabular}{ll}     Header1 & Header2 \\ \hline     Cell1 & Cell2 \\   \end{tabular}   \caption{My Table No1}   \label{tab:tab-1} \end{table}   %---------------------------------------------------------- This is table 2   \begin{table}[H]   \centering   \begin{tabular}{ll}     Header3 & Header4 \\ \hline     Cell3 & Cell4 \\   \end{tabular}   \caption{My Table No2}   \label{tab:tab-1} \end{table}  %---------------------------------------------------------- This is figure 1 %---------------------------------------------------------- \begin{figure}[H]   \centering \begin{tikzpicture}     \draw (0,0) node {A} --           (2,0) node {B}; \end{tikzpicture}    \caption{Figure No1}   \label{fig:fig-1} \end{figure} %---------------------------------------------------------- This is figure 2 %---------------------------------------------------------- \begin{figure}[H]   \centering \begin{tikzpicture}     \draw (0,0) node {C} --           (2,0) node {D}; \end{tikzpicture}    \caption{Figure No2}   \label{fig:fig-2} \end{figure}  \begin{lstlisting}[caption={Java Logic 1},label=java1] public class Main {     public Main(String args[])     {         // Java logic in listing 1     } } \end{lstlisting} %\label{code:Listing-1}  \begin{lstlisting}[caption={Java Logic 2},label=java2] public class Main {     public Main(String args[])     {         // More Java logic in listing 2     } } \end{lstlisting} %\label{code:Listing-2}  \end{document}   Here is the output:


Can't set default WSL version while installing WSL2

I'm trying to install WSL2 on Windows 10 by this . Both features, Microsoft-Windows-Subsystem-Linux and VirtualMachinePlatform, have been enabled: > Get-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux"   FeatureName      : Microsoft-Windows-Subsystem-Linux DisplayName      : Windows Subsystem for Linux Description      : Provides services and environments for running native user-mode Linux shells and tools on Windows. RestartRequired  : Possible State            : Enabled CustomProperties :                    ServerComponent\Description : Provides services and environments for running native user-mode Linux shells and tools on Windows.                    ServerComponent\DisplayName : Windows Subsystem for Linux                    ServerComponent\Id : 1033                    ServerComponent\Type : Feature                    ServerComponent\UniqueName : Microsoft-Windows-Subsystem-Linux                    ServerComponent\Deploys\Update\Name : Microsoft-Windows-Subsystem-Linux  > Get-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform"   FeatureName      : VirtualMachinePlatform DisplayName      : Virtual Machine Platform Description      : Enables platform support for virtual machines RestartRequired  : Possible State            : Enabled CustomProperties :  After enabling each of the features computer was restarted. But I can't set default WSL version as any call to wsl from the PowerShell started with administrative privileges results in "Access is denied": > wsl --set-default-version 2 Access is denied.  > wsl --help Access is denied.  The error doesn't occur if wsl is called without administrative privileges but another one does instead: > wsl --set-default-version 2 Invalid command line option: --set-default-version  The guide says that it means that my OS doesn't meet the requirements for WSL 2:  If wsl --set-default-version results as an invalid command, enter wsl --help. If the --set-default-version is not listed, it means that your OS doesn't support it and you need to update to version 1903, Build 18362 or higher.  Let's check with winver:  Hmmm... Looks like it satisfies the requirements. So what's the problem? How can I finish WSL2 installation? What am I doing wrong?


Let $U,W$ two subspaces in $V$. Assuming that $U\cup W = V$, show that: $U=V$ or $W=V$.     So, by definition of union: $$U \cup W = \left\{ {u + w|u \in U,w \in W} \right\}$$   How to proceed?  And a technical issue: Is $U \cup W$ equivalent to $U + W$?   EDIT:    Consider the following scenario (Following @Learner approach): $U = V \backslash \{x\}$ and $W = V \backslash \{y\}$.    $U\cup W = V$, but none of the subspaces is equal to $V$.  Where is the error?


Is there any value to NOT deleting my own duplicate question?

Is there any value to NOT deleting my own questions closed as duplicates?  Does anyone benefit from me leaving these questions there dangling in infinity?


How long do Tenacious and Unsung Hero badges take to be awarded?

Just curious whether the process takes a while, and whether it scrapes through history to determine if it was once valid or not. Currently, I have 6 0-vote accepted answers and 20 1+-vote answers (), and that makes it > 5 and > 20% but not for long if voting goes up or down from here. ;-P  Update:  Special thanks to Grace Note for pointing out the  to follow. I upgraded this to a bug because it's been 48 hours during which the criteria supposedly were met. 6 0-votes, 20-23 1+ votes during the whole period. The criteria only last so long, so it may go out of scope soon. If it only checks every 3 days, I'm not sure if that's intentional or a bug.


How to show convex hull of finitely many vectors in $\mathbb{R^n}$ is a compact set?

Suppose $x_1,x_2,\cdots,x_k$ is any finite set of vectors in $\mathbb{R^n}$. A convex combination of these vectors is $\sum_{i=1}^{k}\lambda_ix_i$ where $\sum_{i=1}^{k}\lambda_i=1$ and $\lambda_1,\lambda_2,\cdots,\lambda_k\geq 0$. The set $C$ which contains all the convex combinations is called convex hull.  Show that $C$ is compact in $\mathbb{R^n}$.  I know that since the underlying space is $\mathbb{R^n}$, using Heine-Borel theorem we need to show the boundedness and closedness. For the boundedness if I assume the  2-norm of $x_i$'s is bounded, i.e., $\|x_i\| \leq \|M\|$ then   $$ x=\sum_{i=1}^{k}\lambda_ix_i \leq \sum_{i=1}^{k}\lambda_i \|M\|=\|M\| $$   But for the closedness we need a sequence $(x_k)$ in $C$ and show this converges in $C$. How to show this part?


Asymptotic distribution of maximum order statistic of IID random normals

Is there a nice limiting distribution of $\max( X_1,X_2,...,X_n) $ as $n$ goes to $\infty$, assuming that they are iid normal distributions with variance $\sigma^2$.   This is almost certainly a well known problem with a clever proof and nice solution, but I've been digging around and haven't found anything.


Kids space travel series featuring 'The Great Ta'

I'm looking for a kids space travel science fiction series. It featured green aliens, there were at least 3 books in the series, and they were very old, with the first book published in the 60's.  Two more crucial details - mushrooms play a crucial role in the books, and the alien leader is known as 'The Great Ta'.


I'm using WinSCP to access Unix computers. How can I change user after I have logged into a Unix server using WinSCP?  E.g. I have personal account in Unix computer A. I can log into this computer using PuTTY and then change user to root user  $sudo /usr/bin/su - rootuser   How can I do the same thing using WinSCP? I don't know the password for rootuser.


Is "Convertor" a valid word in everyday use?

I work as a software engineer, and we have many uses for converters.  I saw here that "convertEr" is used, and did not find any reference to "convertOr". However, at work I've encountered this word many times.  Questions:   Specifically,when is it acceptable to use "convertor"? Generally, when and where to use "xxxxxxOr" / "xxxxxxEr" ? Is there any rule as to when I should use this and not that?


Kuratowski-Zorn Lemma with pre-order (quasi-order, proset) instead poset?

What would happen if we would use pre-order (there is no weak-antisymmetry, only reflexivity and transitivity) in  Kuratowski-Zorn Lemma instead of partial order?      Suppose that we have set P which is preordered and  has the property   that every chain (i.e. totally ordered subset) has an upper bound in   P. Then the set P contains at least one maximal element.   Is this statement true in ZFC? If not, what can we postulate to make it true? I think it can be false, or at least we need to postulate something more (or not?), but I am just missing something and don't see it.  P.S.      I wanted to put tags with combination of words like: Kuratowski Zorn Lemma Pre-order Proset, but it seems that none of them exist and I need to have 300+ reputation to create new ones, thus I only typed (set-theory) :( If someone with bigger reputation could make this topics' tags more precise, I would be grateful :)


jQuery Validation plugin: disable validation for specified submit buttons

I have a form with multiple fields that I'm validating (some with methods added for custom validation) with Jörn Zaeffere's excellent jQuery Validation plugin. How do you circumvent validation with specified submit controls (in other words, fire validation with some submit inputs, but do not fire validation with others)? This would be similar to ValidationGroups with standard ASP.NET validator controls.  My situation:  It's with ASP.NET WebForms, but you can ignore that if you wish. However, I am using the validation more as a "recommendation": in other words, when the form is submitted, validation fires but instead of a "required" message displaying, a "recommendation" shows that says something along the line of "you missed the following fields.... do you wish to proceed anyways?" At that point in the error container there's another submit button now visible that can be pressed which would ignore the validation and submit anyways. How to circumvent the forms .validate() for this button control and still post?  The Buy and Sell a House sample at  allows for this in order to hit the previous links, but it does so through creating custom methods and adding it to the validator. I would prefer to not have to create custom methods duplicating functionality already in the validation plugin.  The following is a shortened version of the immediately applicable script that I've got right now:  var container = $("#<%= Form.ClientID %> div.validationSuggestion");  $('#<%= Form.ClientID %>').validate({               errorContainer: container,     errorLabelContainer: $("ul",container),     rules: {         <%= YesNo.UniqueID %>: { required: true },         <%= ShortText.UniqueID %>: { required: true } // etc.      },     messages: {         <%= YesNo.UniqueID %>: 'A message.',         <%= ShortText.UniqueID %>: 'Another message.' // etc.     },     highlight: function(element, errorClass) {         $(element).addClass(errorClass);         $(element.form).find("label[for=" + element.id + "]").addClass(errorClass);         $(element.form).find("label[for=" + element.id + "]").removeClass("valid");     },     unhighlight: function(element, errorClass) {         $(element).removeClass(errorClass);         $(element.form).find("label[for=" + element.id + "]").removeClass(errorClass);         $(element.form).find("label[for=" + element.id + "]").addClass("valid");     },     wrapper: 'li' });


Memory usage increases whenever I run stored procedures

I want to know why SQL Server memory use increases whenever I run stored procedures.  After I stop and restart SQL Server, the memory used is just 1 GB.  Each time I run stored procedures, the memory use increases, and has now reached 8GB.  I checked temporary tables, there are just a few.  I don't know why and how to reduce SQL Server memory use.  I'm using SQL Server 2012 under Windows 8.


Can a pipe be used instead of exec in - find / -name “.txt” -exec cp {} /junk \;

If I want to find any files with .txt in the name, and for every match that is found copy it into the /junk folder, I understand I could use the following:  find / -name ".txt" -exec cp {} /junk \;   Could a pipe be used instead of -exec in the above command?  I think I remember someone saying that a pipe will run each side (of the pipe) at the same time where as -exec will run the left side and then the right side? Am I miss remembering this? Pipe obviously needs to get the output from the left command before it gives the output to the right command so I don’t see how they could both run at the same time.


Why doesn't a value node set to 1 evaluate to pure white in the shader editor?

I am starting to work with math nodes more often and came across something I don't understand fully. When you preview a value node that is set to a value of 1, the result is not pure white. If I crank it to about 3-4, then I get pure white.  Why doesn't 1 result with maxed out RGB values? Thanks for any help.


Why do some legendary powers not get extracted by Kanai's Cube?

I noticed the  legendary power is not extracted by Kanai's cube.  I understand that some powers are not extracted because they vary per character (see answers to , which made me think of this one).   Any idea why that and other powers can not be extracted?


Sacrificing as part of a command, to fulfill other costs?

It is covered well  that sacrificing one creature cannot fulfill the requirements for two abilities that are both activated abilities (have 'Sacrifice a creature: do something', like ), or other costs ("As an additional cost to cast , sacrifice a creature"), but can cause multiple triggered abilities (like 's).  However, there's one other type of sacrifice that some cards call for; when you're commanded to ("Target opponent sacrifices a creature" as in ), or optionally "may sacrifice" (like ).  Are those "commanded to" or "optionally may" actions costs (and therefore must have a creature sacrificed specifically to it and no other cost), or some other sort of trigger?  A complete example: I have a  and a  in play. An opponent casts  on me. Can I sacrifice the Bane Alley Blackguard to the Falkenrath Aristocrat's ability (she gains indestructable for the turn and a +1/+1 token), and have fulfilled the requirements for what Cruel Edict needs me to do?


im using htlatex to transcript a latex file to html for a web application. It seems to work fine with most of my equations, but as soon as I use \frac or \dfrac the images of the equations become very blurry.  Somehow I also had to stop using the equation environment in favor of $ $.   Im not sure if a minimum example would help?  \documentclass[12pt,a4paper]{article}   \usepackage{amsmath} \usepackage{booktabs} \usepackage{amsthm} \usepackage[english]{babel} \begin{document} $F_i=\left(\dfrac{L_i}{Y_i}\right)^\alpha $ \end{document}   After using "htlatex file.tex" the output is realy blurry


How do you handle different difficulties at the same task?

In a game of Dungeon World, how do you handle different difficulties at the same task?  A few examples:   climbing a wall with easier handholds vs. climbing a smoother wall pushing a heavy cabinet out of the way vs. pushing it while enemies are pushing back lifting a heavy beam with debris on it vs. lifting the beam after the debris has been removed   Each of these examples gets at the players' approach to the problem.  They have a difficult (not impossible) task in front of them.  If they deal with something else, the task becomes easier.  So it would be really helpful to have some way of adjusting the difficulty of a task to reflect this.  In other roleplaying games, I'd just (as the GM) change the target difficulty, or give some bonus/negative to the die roll.  What's the Dungeon World way of handling this?    There's  about how to pile on more problems before you can even try the underlying task.  I'm not looking to just pile on more stuff, I'm looking to make the underlying task possible, but more difficult.


Is it not possible to have an array based Queue with generics ?

This is an array based Queue , for int :   /**  * Array based  * @author X220  *  */  public class MyQueue {      private int[] _data;     private int MAX_SIZE;     private int front = -1;     private int back = 0;     private int elementsCount = 0;      public void printQueue()     {         int j = this.front + 1;         int i = 0;         while (i < this._data.length && i < elementsCount)         {             System.out.println("At location " + j % MAX_SIZE + " element :" + this._data[j % MAX_SIZE]);             j++;             i++;         }     }      public MyQueue(int _size)     {         MAX_SIZE = _size > 0 ? _size : 10;         this._data = new int[MAX_SIZE];     }      public boolean IsEmpty()     {         return this.elementsCount == 0;          }      public boolean IsFull()     {         return this.elementsCount == MAX_SIZE;     }      public void Push(int pushMe) throws QueueIsFullException     {         if (IsFull())         {             throw new QueueIsFullException("Queue is full");         }         this.elementsCount++;         _data[back++ % MAX_SIZE] = pushMe;     }      public int Pop() throws QueueIsEmptyException      {         if (IsEmpty())         {             throw new QueueIsEmptyException("Queue is full");         }         elementsCount--;         return _data[++front % MAX_SIZE];     }      public static void main(String args[])     {         try         {             MyQueue q1 = new MyQueue(15);             q1.Push(1);             q1.Push(2);             q1.Push(3);             q1.Push(4);             q1.Push(5);             q1.Pop();             q1.Pop();             q1.Pop();             q1.Pop();             q1.Pop();             q1.Push(6);             q1.Pop();             q1.Push(7);             q1.Push(8);             q1.Push(9);             q1.Push(10);             q1.Push(11);             q1.Push(12);   //          q1.Push(1); //          q1.Push(2); //          q1.Push(3); //          q1.Push(4); //          q1.Push(5); //          q1.Push(7); //          q1.Push(8); //          q1.Push(9); //          q1.Push(10); //          q1.Push(11); //          q1.Push(12); //          q1.Push(40); //          q1.Push(50);             q1.printQueue();          }         catch (Exception e)         {             System.out.println(e);         }     }       @SuppressWarnings("serial")     class QueueIsFullException extends Exception      {           public QueueIsFullException(String message){              super(message);           }     }      @SuppressWarnings("serial")     class QueueIsEmptyException extends Exception      {           public QueueIsEmptyException(String message){              super(message);           }      }  }   I wanted to use generics so I changed the int to T but then I got for this :   public class MyQueue <T>{      private T[] _data;     private int MAX_SIZE;     private int front = -1;     private int back = 0;     private int elementsCount = 0;      public void printQueue()     {         int j = this.front + 1;         int i = 0;         while (i < this._data.length && i < elementsCount)         {             System.out.println("At location " + j % MAX_SIZE + " element :" + this._data[j % MAX_SIZE]);             j++;             i++;         }     }      public MyQueue(int _size)     {         MAX_SIZE = _size > 0 ? _size : 10;         this._data = new T[MAX_SIZE];     }  ....   }   That :         Cannot create a generic array of T      And from the answers to  I see that I can't use generics with arrays .   Does this mean that there is no work around for a generics Queue based on array ? Must I switch to some other data structure ?


LiDAR dataset displaying 500 meters to the east of correct position

Why does my LIDAR dataset show up ~500 meters to the east of the correct position even though a spatial reference/coordinate system is provided?  Some background:   The LIDAR data were downloaded from the USGS website as .zip files Unzipped, the .las files have an associated .xml file with correct coordinates for tile position (UL Corner, UR Corner etc.)  Projected coordinate system (State Plane NAD 1983 Florida East Meters) is listed in .xml The FL County layer in the image below is in the correct location.   How can I permanently bind the projection/spatial information to the .las file (not need the separate manually created .prj file)? I'm trying to use the LAStools (from lastools.org). When I use the LASclip, the clipping polygon is in the correct location but arcmap thinks the .las file is 500 meters east still, so nothing (or everything) gets clipped.


I looking for the name of one of Asimov's short stories, where the world ends and all dead people start coming out of their graves and start talking to their relatives.  I know some kind of celestial herald or angel is involved, but I don't remember much more.


Can I install ubuntu to a hard drive via sd card?

I don't have a usb drive or cd, all I have is a sd card, could I wipe my hard drive and install ubuntu with some sort of file I can put onto an sd card? I don't really know how any of this works please help


User  deleted the following question:   Let $R=K[x_1,\ldots,x_n]$ be a polynomial ring over a field $K$ and $I=(f_1,\ldots,f_q)$  a monomial ideal of $R$. If $f_i$ is homogeneous of degree $d\geq 1$ for all $i$, then prove that  $$ R[It]/\mathfrak m R[It]\simeq K[f_1t,\ldots, f_q t]\simeq K[f_1,\ldots,f_q] \text{ (as $K$-algebras).} $$ $R[It]$ denotes the Rees algebra of $I$ and $\mathfrak m=(x_1,\ldots,x_n)$.


Order of element equal to least common multiple

Let $G$ be a group, and $a,b\in G$. Suppose $\operatorname{ord}(a)=m, \operatorname{ord}(b)=n$, and that $ab=ba$. Prove that there is an element $c\in G$ such that $\operatorname{ord}(c)=\operatorname{lcm}(m,n)$.   Let $A=\operatorname{lcm}(m,n)$. I consider $(ab)^A=a^Ab^A=1$, so the order of $ab$ divides $A$. What can we do to find an element with order exactly $A$?


how many conditional sentence types are possible?

I wonder how many conditional sentence types are possible. Basically, there are four main and two mixed types. By mixing tenses, it could be up to nine of them. Are the rest viable?  I came across the following examples in Full Spate Pre-Profficiency Primer:   After you have just sold alcohol to a young guy. If he is if under eighteen, you should not have sold him the alcohol. If he promised to bring the drinks, he will. If you will take a seat, the doctor will see you shortly. (Likely, the former will demonstrates politeness only.) I would be grateful if you would tell me a little about your friends. (The same politeness, but would instead.) If he will keep eating all those biscuits, he can not expect to stay as slim as he used to be.   I would be grateful if someone could shed more light on the topic.


The font in my TeXmaker window is quite small and therefore hard to read.    Is there a way to make it bigger and easier on the eyes? I would also love to know why the font became so small in the first place.


Is there any difference between mode value 0777 and 777

I saw a code change at work, where the mode values were changed from 777 to 0777 to make nfs setattr work. What is the difference in the 2 values?


d with a little line through the top of it

In math mode one can do $\hbar$, which produces an h with a little line through the top of it. I want to do the same thing, except with the letter d instead. Is there a generalization of $\hbar$ that works for other letters besides just h?


Tag links in tag excerpts not shown properly

If a tag excerpt contains a link to another tag with the [tag:foobar] syntax, this link is not properly shown in every context. For an example see . The link is shown as [tag:school-libraries] but it should be  or at least "school-libraries".


Election candidates with more than 100 downvotes are not showing the minus sign against the number of downvotes

On the  if you click on the number of votes it will show you the breakdown of up and down votes in the same way that question up and down votes can be viewed.  But if the candidate has more than 100 down votes then the down votes count is missing the minus sign:


Show ToC for each section only if there is no subsection

In Beamer, I used the following code to show ToC at the beginning of each section.  \AtBeginSubsection[] {   \begin{frame}<beamer>[allowframebreaks]{Outline}    \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/shaded/hide]   \end{frame} }   Then the problem is the ToC is not shown at the last section 'Conclusion' because there is no subsection under 'Conclusion' section.  So I used the following code to show ToC at the beginning of each section.  \AtBeginSection[] {   \begin{frame}<beamer>[allowframebreaks]{Outline}     \tableofcontents[currentsection]   \end{frame} }   Now the problem is ToC is shown twice at the beginning of 'normal' sections (with subsections). How can I show ToC at the beginning of Section 'only if' there is no subsection under it?


Is there any definition of the sum of $n$ summands, when $n$ is not a natural number?

I think, from the algebraic point of view, that this doesn't make sense, since the addition of $n$ terms is defined "inductively" from the binary operation of the addition. This even yields the formula of $nx = x + x + \cdots + x$, where the $x$ is added $n$ times (which I saw as a different operation than the multiplication in a ring, but an action of the natural numbers in the ring).  However, it would make sense to make a definition of adding $n \in \mathbb{R}\setminus\mathbb{N}$ terms or summands? Something like the sense of a fractional derivative?


Nested lists in Python: initialization and issues with expected values

I was trying to print a simple 2D matrix in Python 3, implementing it with nested lists. So I need something like this:  [ [1, 2, 3],   [4, 5, 6],   [7, 8, 8] ]   However, for some reasons the printed output seems to show only the last line.  Here is my code:  # I create a table with 4 rows and 5 columns, all filled by Nones: table = [[None] * 5] * 4  # Then I initialize it with numbers: num = 1 for i in range(4):     for j in range(5):         table[i][j] = num         num = num + 1   If now I try to print the table:  for i in range(4):     for j in range(5):         print(table[i][j], end="\t")     print("")   Here is the result:  16      17      18      19      20 16      17      18      19      20 16      17      18      19      20 16      17      18      19      20   However, I expected something like this:  1       2       3       4       5 6       7       8       9       10 11      12      13      14      15 16      17      18      19      20   What's wrong with my code?


Is it more expensive to buy airline tickets together than separate?

I'm looking for tickets in despegar.com (a travel website for the American continent) and found out that a flight for just one person was about USD $350 incluiding all taxes, and I did the exact same search but instead of 1 person I chose 2 and the price for both tickets was USD $1200 (USD $600 each).  I thought this could be an error in the website, so I tried diferent dates and destinations getting the similar results.  Therefore I'm wondering if it is cheaper to buy airline tickets separately?   PS: The market price for the ticket I mentioned in the above example is about USD $600, so I'd love to take advantage of the USD $350 deal, but I'm afraid I might not find another ticket for my partner in the same flight.


If DC adapters are so prevalent, why is AC used in construction by default?

I'm not sure if there's a better place to ask this or not.   Why, at least here in America, is the standard electrical system set up for alternating current (AC) rather than direct current (DC)? I'm just completing a long-distance move and realizing how many DC adapters I have and how many of my devices require DC power:   All of my guitar pedals. My alarm clock. My external hard disks. My USB car HDD dock.   ... and the list goes on. If we're almost constantly having to use DC adapters to convert AC into DC, why isn't the standard DC, other than because people resist change?


How to disable and remove Wifi Sense? (Sending your Wifi passwords to Microsoft)

Can one disable and remove Wifi Sense completely?  Perhaps by disabling a service, removing system files, or by registry editing?  I found options and registry keys to stop Microsoft from sharing your Wifi passwords with other people, but I want to disable Wifi Sense completely, so that not even Microsoft gets my Wifi data.    How can I do that?    Is Wifi Sense running as a dedicated process or service on my system? Are there more secret registry entries?  This other question () is related, but I want to go a step farther and actually remove the Wifi Sense functionality from my system so that it never has the chance to share any networks.   And yes, I know that you can add _optout to you wifi SSID to disallow sharing of your own wifi's password. But first of all I cannot change my SSID and secondly I'm not only using my own Wifi and I certainly don't want to share other peoples password with Microsoft, can be highly illegal in some circumstances (at work for example).   EDIT: From what I understand, wcmsvc is the service responsible for Wifi Sense, but it's also responsible for the Wifi core components itself. So disabling would probably kill Wifi altogether. :/ Another thing I found out is that Wifi Sense seems to store it's registry entries in this key: HKLM\SOFTWARE\Microsoft\wcmsvc\wifinetworkmanager\ Any idea what all the keys in it do? For example: HKLM\SOFTWARE\Microsoft\wcmsvc\wifinetworkmanager\crowdsrcplugin\EnableWiFiCrowdsourcing  Screenshot showing there is no complete disable option:


overriding private writeObject readObject methods in Java

I know from school that it's impossible to override a private method. Despite that, it seems that redefining the methods writeObject and readObject in a Serializable class, they act as overriden public/protected methods.   private void writeObject(java.io.ObjectOutputStream out)          throws IOException {  } private void readObject(java.io.ObjectInputStream in)          throws IOException, ClassNotFoundException {  }   I don't know the implementation of serialization in the JVM... but this looks as a dirty trick to make the things working.  Am I right, or am I missing something?


Computing the best constant in classical Hardy's inequality

Classical Hardy's inequality (cfr. Hardy-Littlewood-Polya Inequalities, Theorem 327)  If $p>1$, $f(x) \ge 0$ and $F(x)=\int_0^xf(y)\, dy$ then   $$\tag{H} \int_0^\infty \left(\frac{F(x)}{x}\right)^p\, dx < C\int_0^\infty (f(x))^p\, dx $$  unless $f \equiv 0$. The best possibile constant is $C=\left(\frac{p}{p-1}\right)^p$.   I would like to prove the statement in italic regarding the best constant. As already noted by Will Jagy , the book suggests stress-testing the inequality with   $$f(x)=\begin{cases} 0 & 0\le x <1 \\ x^{-\alpha} & 1\le x \end{cases}$$   with $1/p< \alpha < 1$, then have $\alpha \to 1/p$. If I do so I get for $C$ the lower bound  $$\operatorname{lim sup}_{\alpha \to 1/p}\frac{\alpha p -1}{(1-\alpha)^p}\int_1^\infty (x^{-\alpha}-x^{-1})^p\, dx\le C$$  but now I find myself in trouble in computing that lim sup. Can someone lend me a hand, please?    UPDATE: A first attempt, based on an idea by Davide Giraudo, unfortunately failed. Davide pointed out that the claim would easily follow from   $$\tag{!!} \left\lvert \int_1^\infty (x^{-\alpha}-x^{-1})^p\, dx - \int_1^\infty x^{-\alpha p }\, dx\right\rvert \to 0\quad \text{as}\ \alpha \to 1/p. $$  But this is false in general: for example if $p=2$ we get   $$\int_1^\infty (x^{-2\alpha} -x^{-2\alpha} + 2x^{-\alpha-1}-x^{-2})\, dx \to \int_1^\infty(2x^{-3/2}-x^{-2})\, dx \ne 0.$$


Python decimal range() step by step value

I wants to check all combination values which satisfy the conditions given in if statement   def drange(start, stop, step):     r = start     while r < stop:         yield r         r += step     for a in drange(0.1, 0.9,0.1):     for b in drange(0.1, 0.9,0.1):         for c in drange(0.1, 0.9,0.1):             if a+b+c == 1 and a>b>c:                 print a                 print b                 print c   It is working but doesn't give the all combinations.


I tried:  /tp @e[type=ArmorStand,T=100] ~ ~1 ~   Then:  /tp @e[type=ArmorStand,Time=100] ~ ~1 ~   I'm stuck.  I am looking for a command-block only solution.


I downloaded the launcher (from www.minecraft.net) after purchasing and registering. I run windows 7 ultimate (YES, i downloaded the windows .exe version). I start the launcher and it works fine. I sign in, works fine. I hit play, and all seems normal, until the Mojang screen pops up. Stays up for maybe 3 or 4 seconds, then it will crash back to the launcher. Does this over and over again. Ive tried re-downloading minecraft, re-installing java, several things. Error log reads as follows:  # # A fatal error has been detected by the Java Runtime Environment: # #   EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x053c3e88, pid=3680, tid=648 # #  JRE version: Java(tm) SE Runtime Environment (7.0_60-b19)  (build 1.7.0_60-b19) #  Java VM: Java HotSpot(tm) client VM (24.60-b09 mixed mode, sharing windows x86 ) #  Problematic frame: #  C  [ig4dev32.dll+0x3e88] # #  Failed to write core dump. Minidumps are not allowed by default on client versions of windows # #  If you would like to submit a bug report, please visit: #    http://bugreport.sun.com/bugreport/crash.jsp #  The crash happened outside the Java Virtual Machine in native code. #  See problematic frame for where to report the bug. #


Show that $\left(1+\dfrac{1}{n}\right)^n$ is monotonically increasing

Show that $U_n:=\left(1+\dfrac{1}{n}\right)^n$, $n\in\Bbb N$, defines a monotonically increasing sequence.   I must show that $U_{n+1}-U_n\geq0$, i.e. $$\left(1+\dfrac{1}{n+1}\right)^{n+1}-\left(1+\dfrac{1}{n}\right)^n\geq0.$$  I am trying to go ahead of this step.


How to access Render Result pixels from python script?

Render Result exists in bpy.data.images["Render Result"] but it contains no data.  Also bpy.data.images["Render Result"].size[0] is 0, even if the render shows as an image in the UV/Image Editor with a width of 1366.  Maybe the render result cannot be accessed as an image or I missing some update or refresh call somewhere but I can't find such a thing in the 2.68 API documentation.  Any tip in the correct direction appreciated.


Setting up 2 external monitors on a laptop with VGA splitter

I have a laptop with a graphics card that supports 2 displays. I would like to know the easiest way to set it up so I can close my laptop lid and use 2 external monitors (unique displays).  I use it primarily for office applications and video and want a quality, clear picture.  The laptop has 1 VGA port and I have 2 24" 1920x1200 monitors that have VGA and DVI ports. So a few questions:   Can I just use a VGA splitter? (seen mixed feedback on this) Would it a VGA to 2 DVI splitter give a better picture quality? (if it exists) Would I be better upgrading laptop to one with 2 digital ports ( I just see a lot with VGA and HDMI though)   specs: Model: Toshiba Satellite C675-S106 (Windows 7) Graphics Card: Intel HD Graphics 3000 (supports 2 displays) Processor: Intel Core i3-2350M


How to fix this traceback error with this addon?

I'm trying to use this addon:  in blender 2.82 but when I'm creating a new beveled curve I get this error:   File "C:\Users\Saynom\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\bevel-curve-tools-master\__init__.py", line 539, in execute     subsurf = self.subsurf)   File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\modules\bpy\ops.py", line 201, in __call__     ret = op_call(self.idname_py(), None, kw) RuntimeError: Operator bpy.ops.curve.y_add_bevel_to_curve.poll() failed, context is incorrect  location: <unknown location>:-1   I don't understand Python but is there any quick fix to this issue by any chance?  Thanks in advance for your help.


How does an arcane focus work with an Eldritch Knight?

My PC is an Eldritch Knight. I was wondering what is an Arcane Focus? Do I need to have it in my hand? If I get the War Caster Feat does my arcane focus become obsolete?


I'm working through , trying to set up a django app on an ubuntu 16.04 VPS. I've followed the directions on setting up an nginx config file. Following the directions I have set up a basic nginx config file and put in in /etc/nginx/sites-available/tester. Now I'm trying to symlink it to /etc/nginx/sites-available/  deploy@server:/etc/nginx/sites-available$ sudo ln -s tester /etc/nginx/sites-enabled/tester   But I'm suspecting that Something is wrong because the link looks different than the default link.  Also after reloading Nginx with:  sudo systemctl reload nginx   The site did not work. I checked :  sudo nginx -T   but don't see the config file. What am I doing wrong. What do the colours mean?


How to use guava class to instance map in interface?

I have interface called RestClientInterface which is implemented by abstract RestClient class, those class is extended by SearchRestClient and IndexRestClient. Both of those classes are singletons. I would like to be able implement in the interface static method getInstance. I decided to use Guava library like suggested here: .  I have implemented two statics methods in interface:  public interface RestClientInterface {      ClassToInstanceMap<RestClientInterface> classToInstanceMap = MutableClassToInstanceMap.create();      static <T extends RestClientInterface> T getInstance(Class<T> type) {         return classToInstanceMap.getInstance(type);     }      static <T extends RestClientInterface> void registerInstance(Class<T> type, T identity) {         classToInstanceMap.putIfAbsent(type, identity);     } }   And next registered instances in both extending classes:  public class IndexRestClient extends RestClient {      static {         RestClientInterface.registerInstance(IndexRestClient.class, getInstance());     }      /**      * IndexRestClient singleton.      */     private static IndexRestClient instance = null;      private IndexRestClient() {}      /**      * Return singleton variable of type IndexRestClient.      *      * @return unique instance of IndexRestClient      */     private static IndexRestClient getInstance() {         if (Objects.equals(instance, null)) {             synchronized (IndexRestClient.class) {                 if (Objects.equals(instance, null)) {                     instance = new IndexRestClient();                     instance.initiateClient();                 }             }         }         return instance;    }  }   Next I call this like that:  IndexRestClient restClient = RestClientInterface.getInstance(IndexRestClient.class);   But every time I get null. Static registration of the instances doesn't work as the array of registered instances is empty. How can I correctly instantiate those both classes?


How much do i need to change a vector image to make it my own

so this question was already asked before but it referred to vector work that was derived from a picture or artwork of some form.  My question is about simple 1bit silhouette vectors, and where the line between being inspired by and copied from lies.  This question is motivated by my need to use this particular vector (below) as a logo for my app, it looks exactly like i envisioned it but unfortunately although i wouldn't mind not owning exclusive rights to it, there is simply no way, other than to contact the artist himself, to buy a license that allows me to use it the way i want to.    So the only option I have is to make one myself, my question then is:  How much do I need to change the original work to make it my own?  And, where exactly does the inspired by/copied from line stands?  Thanks.


Amount and sparsity of data for recommender systems

I'm starting to work in a project that will have a recommender system as one of its components. I'm trying to figure out if I have the right type of data for the recommender.   The data contains ratings from implicit feedback. That is, data is either $1$ if there has been interaction (between the user and the item), or unknown if there has not been interaction. Interaction in this problem would be that the user has clicked/viewed the item.  I have about 124K users, 4,2K items, and 160K ratings. The sparsity is 99.96%.  The amount of rating per user is like this:    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    1.000   1.000   1.000   1.291   1.000  81.000   The amount of ratings per item is like this:   Min.  1st Qu.   Median     Mean  3rd Qu.     Max.      1.00     1.00     3.00    37.59    11.00 13570.00    Clearly a majority of the users have only rated (interacted) with one item. While only a 25% of the items have a single rating.   My questions are:    Which levels of sparsity (amount of user-item known ratings) are typical for recommender systems? How do I decrease the sparsity of my rating matrix? Should I remove users with few ratings, should I try to gather more data?


Why won't this work?  I'm trying to make an instance of a class delete itself.  >>> class A():     def kill(self):         del self   >>> a = A() >>> a.kill() >>> a <__main__.A instance at 0x01F23170>


Writing custom GUI map application without installing QGIS

I would like to know if it is possible to develop standalone map applications with QGIS without installing QGIS software or embedding QGIS. Most instructions ask to either install QGIS or embed in to the final executable. Is it possible to call QGIS functionalities by using shared libs? According to this () answer there's one example application,  which requires py2exe to be installed.  Is there a promising way to achieve the objective without installing QGIS?


Kitchen drawer railing track socket replacement

Any advice on how to go about fixing this bracket?  How do I finding out the replacement model/part details for this thing?


python re.match() doesnt return expected result

I am attempting to select part of a python string using re.match:  revenue = "Revenue;;Item,Johnver,Vanston,Danbree,Vansey,Mundyke;Tea,190,140,1926,14,143;Coffee,325,19,293,1491,162;Water,682,14,852,56,659;Milk,829,140,609,120,87;;Expenses;;Item,Johnver,Vanston,Danbree,Vansey,Mundyke;Tea,120,65,890,54,430;Coffee,300,10,23,802,235;Water,50,299,1290,12,145;Milk,67,254,89,129,76;;" revenue = re.match(r"(?<=Revenue;;).*(?=;E)", file_content) print(revenue)   but it returns None.  I tested the regular expression on regex101.com, and it gave me the desired match, the text following Revenue;; and preceding ;Expenses:  Item,Johnver,Vanston,Danbree,Vansey,Mundyke;Tea,190,140,1926,14,143;Coffee,325,19,293,1491,162;Water,682,14,852,56,659;Milk,829,140,609,120,87;   Therefore I'm assuming something is wrong with my python implementation, however, I couldn't find any information in the python regex documentation that helped me. Tried with both python 2 and 3.  What could I be doing wrong


Incorrect grammar on StackApps registration page sidebar

The sidebar of the StackApps  states:     You'll also receive parameters for authentication users via OAuth 2.0.   I believe this should read:     You'll also receive parameters for authenticating users via OAuth 2.0.


Interactive Creation  You can position and scale primitives as you create them using your mouse, without having to use transformation tools. This options in Maya.  Is it possible to make such an option for a blender?


Windows Update not working on Windows 2012 R2 Standard

I recently inherited the management of a Windows 2012 server at a remote site.    I checked Windows Update and it has not been updating since March.  When I tell Windows to check for updates, it acts like it is checking, but it seems to say that for hours.   If I attempt to restart the windows update service, it seems to never be able to shut down.  My only remedy seems to be rebooting to get back to the point where I can tell Windows Update to check for new updates.    The last successful check for updates says March 20.  The last time updates were installed says March 17 (failed).  The update history shows that one update failed for March 17, a printer driver update, but the history shows 13 failed updates for Feb 17.  Not sure what else to try.


Is there a point to paginating articles online?

Is it better to paginate a long article or show the entire article on one page?  The following is a side-by-side of the same article. On the left is page one with navigation and on the right is the full article.    Is there data to support that one is better than the other? If so, what makes it better?  The following is an example of the article navigation for a long article.    The user is given the option of just seeing the whole story, skipping to a particular page or going to the next page.  Wouldn't it be easier (read: better) to give the user access to the entire article right away? If the user reads the first page and then decides they want to see the full story, they'll go through a page refresh and be taken to the top of the page with the full story. That can't be a good UX right?  My hunch is this is some sort of ploy to get more clicks on a site, but perhaps I'm missing a real reason why paginating a long article or post might be better.  So, what's the deal?


An equivalent of arXiv, but for tabular and other experimental data?

Suppose I'm doing some experimental work in an academic context. The essence of the results will likely be captured by documents such as conference/journal articles, technical reports, a M.Sc. or Ph.D. thesis, a monograph etc. For these kinds of artifacts, we have all sorts of avenues for long-term archiving and Internet availability: Journals have their own archives, universities make internal publications available (well, sometimes), and you can put copies on arXiv and/or sites like ResearchGate or Academia.edu (although the latter have their problems).  If you've produced software code - you can again use university-specific facilities, or platforms like BitbBucket, GitHub or SourceForge which recently revamped itself into relevance.  Where would you put raw data, though? Especially tabular data? You don't publish the (potentially large amounts) of it alongside your papers. You could put it as a file on your website, but this is limited-availability archiving/publications - it's like putting a link to a software source archive on your website. It's there, but people are much less likely to find it than if it were a repository on one of the platforms mentioned above.  So, my question is: Are there platforms for storing public data, in particular data obtained during academic/scientific work?  Notes:    It doesn't quite matter if the data is accessible directly as though on an SQL database; or if you can browse it in a tabular fashion through some web interface. Those are nice options, but even something "primitive" as a CSV file in a standard-format URL is already passable. Same goes for versioning or revision-control support: Nice to have, not a deal-breaker for a potential answer here. Publications don't need to have a perma-link to the data, nor will it necessarily be archived before such publications. But again - it's a nice feature such a platform could have.  is highly related - almost a dupe - if you look at the title, but the body asks different questions than I do. I don't want/need the data to count as a "paper" or a CV-worthy publication; I don't need/want peer-reviewing of the data as a condition for it being available to the public etc.


How was this notable weapon possibly retrieved?

Okay, so Maz talks about how that’s Luke’s lightsaber and his father’s, before him. And also explains why Kylo Ren wanted it so badly.  But how’s that even possible...?   In The Empire Strikes Back, Luke loses his arm and the lightsaber when he’s fighting with Darth Vader in Cloud City. That’s the lightsaber Obi-Wan had given Luke in Star Wars: A New Hope, telling him it was his father’s. In Return of the Jedi, when Luke hands himself over to the stormtroopers, one of them gives Luke’s saber to Darth Vader (saying it’s the only thing/weapon he had on him). Anyway, during that conversation, Vader points out “I see you have constructed a new lightsaber.”   Also, it was green (not blue) if I recall correctly, but I’ll let that slide for now.  Later, when Darth Vader loses his arm, he also loses his lightsaber.   (Arms, Lightsabers and Giant Vents do not, a good combination, make.)    So the lightsaber Maz talks about could be Luke’s. But it definitely wasn’t Darth Vader’s or Anakin’s.  Have I missed something or was one of the chopped-arm-lightsabers not lost down a vent?


Is there any good algorithm for multiplying each digit number in array?

There are two arrays in java :  int[] a = new int[]{1,2,3,4}; int[] b = new int[]{4,0,5};   Is there any good algorithm for for multiplying each digit number in array? I mean if I multiply a with b, then result should be like:   int[] result => {4,9,9,7,7,0}   (because 1234*405 = 499770) I can only think about elementary school version of multiplying.. but it not only requires me a lot of time and not a effective way in programming. I want to know a way that calculate array itself, not change it to 'int' variable because I have to treat very very big number over than size of int. Thanks for you advices in advance :)   No use "BigInteger"


I have seen questions over SO that have comments saying thing like: "not a good question for this site - migrated it to SuperUser" - what does this mean?  I am quite new to SO and haven't found out about many features on it. Please can you not roar at me, which, unfortunately, my parents do most of the time.


Trigonometric sum of the first n sin(nx).

How can I prove that:  $$\sin(x)+\sin(2x)+\cdots+\sin(nx)=\frac{\sin\left(\frac{x(n+1)}{2}\right)\sin\left(\frac{nx}{2}\right)}{\sin\left(\frac{x}{2}\right)}?$$


How to add google satellite as a base layer for a geoserver generated openlayers page

İ have added a shapefile to geoserver and generate a WMS page. I want to add google satellite  as a base layer but i can't do it.  Any hint on how to add google satellite as a base layer?


Let $C = \{0, 1, 2, \ldots, \aleph_0, \aleph_1, \aleph_2, \ldots\}$. What is $\left|C\right|$? Or is it even well-defined?


Over the years I have seen a few people transport a dog on a bike.  What options have you seen?   Please include a photo in your answer if possible.


Why is $z\mapsto |z|$ not differentiable at $(0,0)$?

Can someone explain to me why the absolute value function $f(z)=|z|$ is not differentiable at $(0,0)$ even though Cauchy Riemman conditions are true at $(0,0)$ ( using $|z|=\sqrt{x^2+y^2}$ )?


i have a 802.11n WiFi Dongle  in the cd there is a driver for linux that i put link bellow  i want install this driver with ./configure & make & make install BUT I CAN'T  please please please Help me...


How to demonstrate potential for securing external funding in faculty applications?

Many faculty positions ask applicants to demonstrate potential for securing external funding. For a fresh PhD who has only co-written some grant proposals, how can we demonstrate this potential? I really appreciate any thought.


Is it safe to use a 19V DC adapter for a 12V input if it can provide enough watts?

I have a small TV which expects 12V DC at 34W. Can I use an adapter with a higher voltage rating (19V for example) as long as it can provide enough amps to satisfy the amount of watts needed by the TV?  If the adapter says 19V, does that mean that it can provide "up to" 19V safely or will it always provide 19V and damage the TV?


I need to create a random number between 80 and 120, I was given the line  int tempF = (-17 + (int) (Math.random() * ((-20 - (-17)) + 1)));   and I added the line  Random generator = new Random();   above it, but I'm not sure where to go from here?


Download an ISO for a different edition of Windows 10

I'm working on a laptop running Windows 10 Home.  I'd like to take advantage of the fast internet connection I'm on to download an ISO of Windows 10 Professional to install later on another machine.  The  doesn't offer the option for Professional, only Home.   The  doesn't seem to exist any longer.    I disagree @magicandre1981 that my question is a .  The answer to this post is no longer valid - the solution link ending 'Windows10ISO' now redirects to the media creation tool, and it was apparent from my question that I already knew of the creation tool's existence.  My question related to confusion as to the availability of Windows 10 Pro through this tool.  The user interface in the previous question has since been redesigned (in a bad way) - I notice it used to say 'Windows 10 editions below are valid for both Windows 10 Home and Windows 10 Professional'.  If it still said that in the media creation tool, my question wouldn't have arisen.


I have a collection:  List<Car> cars = new List<Car>();   Cars are uniquely identified by their property CarCode.  I have three cars in the collection, and two with identical CarCodes.  How can I use LINQ to convert this collection to Cars with unique CarCodes?


Simple Past vs. Present Perfect for recently completed actions

In the following dialogue:     A: Look! I have bought a new hat.   B: Nice! Where did you buy it?     or     C. Nice! Where have you bought it?     Which is correct, b or c? Or both?


What would be the effects of warp collisions?

Triggered by a  I was wondering what actually would happen to a ship (e.g. the Enterprise-D NCC-1701) that collides with a stationary object such as a) another ship of a similar configuration or b) a gigantic structure like a moon or even a planet.  We know the deflector is supposed to keep interstellar dust (not to be confused with ordinary dust, which is a different thing) from ripping large holes in the ship.  At first, one thinks "Obvious. ." But does it really? Would the deflector manage to actually deflect both masses? If not, where is the threshold of what a deflector can handle? Would the ship maybe tunnel right through the object, because of wibbly-wobbly space wobblification by the warp field? It does do some weird things to the space right in front and behind the vessel.  Important remark: We cannot approach this with what we know about physics at all. For all intents and purposes, both ships must measure the other ship travelling faster than light, resulting in it having infinite (or rather undefined) mass and by extension momentum. If we start with that reasoning any ship jumping to warp would suck in the entire universe (it takes a moment, but think about it). So, obviously we cannot apply our intuition (even our relativistic intuition) here.


Email subscription to a combination of tags (using AND operator)

Lately I've noticed that hovering over tags opens a mini info-window with tag related data and activities including email subscription option. Great!  But instead of subscribing to just a single tag I'd rather subscribe to a combination:     tagX and tagY and tagZ ...   giving me a much better selection of questions delivered to my email inbox.  Similar to viewing questions with a particular tag. You can always click on any of the related tags and you get a subset of questions that have both tags (the first one and the second one as well) and not either.  Is this kind of email subscription possible or are there any plans on developing it?  Edit  Tag sets on StackExchange (as suggested by @Barry) don't work, because they are combined by an OR operator instead of an AND. A tag set therefore widens the filter instead of narrowing it. Just so you know this question hasn't been sufficiently answered yet.


How well-known is the theology of Middle-earth, in Middle-earth?

One thing that is notably absent in Middle-earth is any mention of temples, churches, priests or religious rites.  There are passing mentions of Men who would "worship" Sauron, but generally the world of Middle-earth seems much less religious than medieval Europe, or even classical antiquity.  One never hears about "the cult of Aule" or "the cult of Yavanna," although historically there were many "cults of Athena" or "cults of Poseidon."  Aragorn doesn't (to my memory) make an offering to Tulkas before battle, nor does he pray to Eru Ilúvatar for victory, and all the holidays and solemnities seem to commemorate historical figures, not religious ones.  This is especially strange in a world where there are still living witnesses, like Galadriel, to the actions of the Valar and other "divine" beings, and where there are still Maiar wandering around talking to people and putting on flashy firework shows.  Now, a lot of people talk about how Tolkien didn't want the Valar to be considered "gods," but at the same time he did use phrases like "the gods of old" numerous times.  Clearly, these beings would have qualified for worship in most cultures.  And even without the Valar being considered a true pantheon, there is still Eru, a closer analogue to the Christian God of Tolkien's beliefs, and we know the denizens of Middle-earth knew of him (Him?) because of the line "Eru, who in Arda is called Ilúvatar."  And yet, Ilúvatar seems not to be terribly important to anyone on a daily basis.  So my question is this: how familiar with the "theology" of Middle-earth were the citizens of Middle-earth?  Would the average merchant in Rohan know about the Valar and the Maiar and Iluvatar and the Music of the Ainur?  The average noble in Minas Tirith?  The younger Elves, like Legolas?  The Dwarf Lords?  Were the theological truths about the formation of the world, the Valar and the Maiar just so well known that they weren't worth commenting on, or had they been forgotten by most?  And if they had been forgotten, why wasn't the knowledge (whether through deliberate teachings or casual conversation) re-invigorated by witnesses like Gandalf or Galadriel?


Why 'mkpasswd -m sha-512' produce different result every time it is called?

I am using this function to create a password in the shadow file  $ mkpasswd -m sha-512 password $6$o50n4EfNOBzfs$K5l5AcOI5e0I9n2df0LmR11OLSPKSVM6AGBOnWVfDDfMubb46MrAj0zehdLNEoYzD2fj5q4XUdDwexj/dWLHy/ $ mkpasswd -m sha-512 password $6$ADmDOhDpW$gsYQuiKPpV1ewaUpRq2VGAvrcocffLQ8XGF94e6LNLZfKIjy6Ku.cZoR/5exeCi1ESjPB9TRM6HxCiY5BCNCV0 $ mkpasswd -m sha-512 password $6$Efj1agaI$HGkny3q1OTYT4KREh18gueHJae/3Bvil0iOEhfXj8bD.qy9Lg2UIQJMuBcq0XtG3xzueK.7cp0GfKr7tEo5YI/ $ mkpasswd -m sha-512 password $6$zdVPlCPai4Y$x3CBvlP99xZXZcr4PTiE..YLpZx39h5OHDxqazd9wFLImPuwsXF0M6KmqLzlCCrnQhI2lmEPdCzfmHA/fDiOz.   It makes me wonder how does the output value work as a password


To be more fun. If you are 2 people to play, would you play each 2 characters? With only 2 characters into play, I fear that we would lack some expertise.


What do you call someone who always puts blame on others?

No matter what had really happened, this person will always blame and find an appearing logical/thought out way/strategy to it that, fundamentally, it's the other person who was the cause for all the trouble AND everything else that came from this trouble as well and from the next and so on.  No (slang) words like "jerk", "*sshole" etc. please.


If I call os.stat() on a broken symlink, python throws an OSError exception. This makes it useful for finding them. However, there are a few other reasons that os.stat() might throw a similar exception. Is there a more precise way of detecting broken symlinks with Python under Linux?


Every time I log into a VM with root, su into a user account, and try to use screen it throws an error:  Cannot open your terminal '/dev/pts/0' - please check.   A Stack Overflow post said I needed to use script /dev/null to fix it, and it works, but it still doesn't explain why I need to type script /dev/null. I would like to understand what it does and why I need to type it.


Logging in as the same user multiple times in Remote Desktop Windows Server 2008

Quick question: I have a situation where I need to let multiple people on different PCs log into one server 2008 machine as administrator simultaneously over remote desktop. I have the CALs for it, it's just not set up correctly. When one user tries to log in, it boots the other out. What I need is to present to them a different session, just each as logged in as admin. Sorry for the slightly rambling post, I'm new here. Thanks!


what is there a way to turn the page by 90 degrees?  I know there is a package called lscape, but that only rotates the content of the page, instead of the entire paper.  Basically, I imagine it like this.    So, I want to rotate the entire a4 paper by 90 degrees.


How to change directory permission from read-write to read-only

I'm an elementary-os user and I recently installed XAMPP to practice PHP. At first, I had to give read-write permission to /opt/lampp/htdocs/, in order to create the project files.     But accidentally, I have given read-write permission to /opt/lampp/ instead of /opt/lampp/htdocs/. I used following command.  $ sudo chmod -R 0777 /opt/lampp/     Now, when I tried to go to phpMyAdmin in browser it says, Wrong permissions on configuration file, should not be world writable!    I'm guessing, changing the directory's permission to it's default state (read-only) will solve this. I tried googling but couldn't find any working solution. Please help!


I can not connect to the internet via ethernet or wireless. I have a dell inspiron 6400 and through a little research know that i need b43 drivers, the problem is that ive tried downloading the drivers on a computer with internet access then on the computer that doesnt have internet, extracting them to the desktop and installing from there but it doesnt work, i may be doing something wrong so some help there would be appreciated. can someone help in a step by step guide as im new to ubuntu, thanks  i need the bcm4311 802.11b/g drivers i think.. but how can i download and install them on another computer and where do i get these drivers  Im using ubuntu 13.04 on the computer with no internet and the computer without. The output of uname -a says  3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux


Im just a beginner in particle physics. As I have understand, electrons are considered as a point particle whose spin has nothing to do with original rotation around own axis but an intrinsic quantum number. But muon can be considered as a heavy electron that decays into electron.can we say muon actually rotates around itself in external magnetic field? Or it is also a point like particle? How can I know?


Changing alt/ctrl + shift keys functionality

I need to replace the Alt+Shift keys combination with CapsLock key, but I'm not sure how to do this. Also, for accessibility reasons I need to replace Ctrl+Shift with RShift key for example.   All I found is  but unfortunately, it only replaces keys and not key combinations.  Is there any way of achieving this type of functionality?


sometimes using rm -rf in script could be catastrophic  example  rm -rf $TMP/$folder   when TMP and $folder are without any value , it will actually   removing all under "/"  so I am asking how to use the rm -rf in the scripts so it will be safe?


Best smartphone data plan in South Korea?

What is the best way to get smartphone access when traveling for a few days in South Korea? I am mostly interested in getting cheap data access (google maps...).


I need to install WinUSB but no matter what I try it doesn't work, I always get an error no matter what I do.  This doesn't work  sudo add-apt-repository ppa:colingille/freshlight sudo apt-get update  sudo apt-get install winusb


Definition of convergence of a nested radical $\sqrt{a_1 + \sqrt{a_2 + \sqrt{a_3 + \sqrt{a_4+\cdots}}}}$?

In my answer to the recent question , @GEdgar correctly raised the issue that the proof is incomplete unless I show that the intermediate expressions do converge to a (finite) limit. One such quantity was the nested radical  $$ \sqrt{1 + \sqrt{1+\sqrt{1 + \sqrt{1 + \cdots}}}} \tag{1} $$  To assign a value $Y$ to such an expression, I proposed the following definition. Define the sequence $\{ y_n \}$ by:  $$ y_1 = \sqrt{1}, y_{n+1} = \sqrt{1+y_n}. $$ Then we say that this expression evaluates to $Y$ if the sequence $y_n$ converges to $Y$.   For the expression (1), I could show that the $y_n$ converges to $\phi = (\sqrt{5}+1)/2$. (To give more details, I showed, by induction, that $y_n$ increases monotonically and is bounded by $\phi$, so that it has a limit $Y < \infty$. Furthermore, this limit must satisfy $Y = \sqrt{1+Y}$.) Hence we could safely say (1) evaluates to $\phi$, and all seems to be good.  My trouble. Let us now test my proposed idea with a more general expression of the form $$\sqrt{a_1 + \sqrt{a_2 + \sqrt{a_3 + \sqrt{a_4+\cdots}}}} \tag{2}$$  (Note that the linked question involves one such expression, with $a_n = 5^{2^n}$.) How do we decide if this expression converges? Mimicking the above definition, we can write: $$ y_1 = \sqrt{a_1}, y_{n+1} = \sqrt{a_{n+1}+y_n}. $$ However, unrolling this definition, one get the sequence $$ \sqrt{a_1}, \sqrt{a_{2}+ \sqrt{a_1}}, \sqrt{a_3 + \sqrt{a_2 + \sqrt{a_1}}}, \sqrt{a_4+\sqrt{a_3 + \sqrt{a_2 + \sqrt{a_1}}}}, \ldots $$ but this seems little to do with the expression (2) that we started with.   I could not come up with any satisfactory ways to resolve the issue. So, my question is:     How do I rigorously define when an expression of the form (2) converges, and also assign a value to it when it does converge?   Thanks.


i have on my server a settings i use for all my users. every time i create a new user i have to copy all the settings over and over.  for example:   .vimrc. .profile .bashrc firefox homepage to our intranet evolution settings (server and username) etc...   i saw skel can do it, is there a easy way to setup a user with my settings when i adduser?  thanks


Python Deep learning code memory consumption

I am using OpenCV + deep neural network for object detection. I am using python language.  I want to run the code on some embedded system platform (like Raspberry Pi for example). I want to know whether my code will run or not on the embedded system platform. Right now I am running the code on my laptop which has large memory.   I want to first know how much my code is consuming memory at run time. After that I will choose hardware containing  sufficient RAM.  So how can I know the run time memory consumption of my python code? Any extra tips or opinions will also be appreciated.  EDIT: I am using Ubuntu Linux.


I get this when trying to install WINE repo for my disco 19.04:  Err:12  disco Release   404  Not Found [IP: 91.189.95.83 80]  E: The repository ' disco Release' does not have a Release file. 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.  Wine still sort of installs but I have trouble understanding what this problem means for me. The goal is to install wine and play on linux so I can play all, or most, of my Steam games.  And how does one remove this PPA?