Question regarding supplying parseInt to map

Why is it that, when I use parseInt explicitly with the first argument, everything works as I expect, but with I straight up supply the parseInt function to map, it becomes like you can see in the picture?  I've read up a little bit on the second radix-argument of parseInt, and I suppose it has something to do with that. But I still don't understand what JS internally supplies to the parseInt function as the second argument when I don't explicitly do it myself. Does anyone know?


$\Bbb{C} \otimes_{\Bbb{R}} \Bbb{C}$ and $\Bbb{C} \otimes_{\Bbb{C}} \Bbb{C}$ are not isomorphic as $\Bbb{R}$-vector spaces.   Clearly each tensor product is both a left and right $R$-module. But how do I show that they're not isomorphic?  I'm trying to argue as in other examples, so in $M = \Bbb{C} \otimes_{\Bbb{C}} \Bbb{C}$, there's the simple tensor $(-1)\otimes i = (i^2) \otimes i = i \otimes(-1)$.   But those two simple tensors are not equal in $N = \Bbb{C} \otimes_{\Bbb{R}} \Bbb{C}$.  I'm not sure how to show that.  Let $\phi : M \to N$ be an isomorphism.    Then $\phi((-1)\otimes i)$ must equal $\phi (i \otimes (-1))$.


Where to ask questions about Apache and WAMP

As above. Just to avoid confusions, and prevent pro trolling... I wonder if there is dedicated place to  ask questions about Apache and WAMP


Please enable low-rep users to easily breakout up and down votes on their own questions

I know once you get a certain amount of reputation, you can see the total up and down votes for questions. Well, my proposal is to always be able to see this on your own questions and answers. You can see it by going to your user page anyway, so why not make it possible to do by simply clicking on the number of votes (like you can when you have the rep)?


Definition of boundary of differential manifold is well defined

Given the following definition of manifold with boundary : $S \subset \mathbb{R}^{N}, N \in \mathbb{N}$ is a $n-$differential manifold with boudary if : $n \in \mathbb{N}, \forall \hspace{0.1cm} p \in S, \hspace{0.1cm}\exists \hspace{0.1cm} V $open neighborhood of $p$ in $\mathbb{R}^{N}$ and $U$ open in $\mathbb{R}^n$, with $\varphi : U \longmapsto V \hspace{0.1cm} C^\infty$ with differential of rnk $n$ such that $\varphi(U \cap \{x \in \mathbb{R}^n : x_n \geq 0\}) = V \cap S$ is a homeomorphism. In this setting we say that $\partial S \ni p \iff \varphi(U \cap \{x_n = 0\}) \ni p$ With definition I'd like to prove the well-definess of the boundary of a manifold, without using arguments which involve algebraic topology. To be more accurate, it's not clear to me how the following follows from the definition : If $\varphi_1,\varphi_2$ are parametrization with $ p \in \varphi_1(U \cap \{x \in \mathbb{R}^n : x_n \geq 0\}), p \in \varphi_2(U \cap \{x \in \mathbb{R}^n : x_n \geq 0\})$ we have that $$p \in \varphi_1(U_1 \cap \{x_n = 0\}) \iff p \in \varphi_2(U_2 \cap \{x_n = 0\})$$ Any help hint or reference of the proof will be appreciated.


While this post has elements of jest in it, I'm entirely serious, and I think this situation deserves to be addressed:  - While this discussion is not the only answer, that question really demonstrates that we, the community, aren't in a position to help the moderators as much as we could be.  What tools can we ask for that would lighten their load?  There are over 270 users with more than 30k reputation. Unfortunately they are all lumped together with the 500+ plebes who have 20k reputation in terms of ability. The current abilities are offered on an exponential rate that suggests the next natural priviledge points are:  40k (176 users) 60k (84 users) 100k (36 users) 150k (6 users) 250k (1 user) 500k (0 users) 750k (0 users) 1M (0 users)  What, if any, privileges could we award people at the above levels? Note that while I extended the progression well past 20k, we really only need to get something at 40k so the 500 people with 20k have a new . For instance, perhaps 40k users could see more of the moderator flags of certain types, and perhaps they would have more ability to act on them unilaterally or bilaterally. There are probably a lot of other things I'm not aware of that could be extended to the 40k users, and if chosen well they could lessen the workload of the moderators, so I'm actually hoping the moderators chime in here with ideas for things they think could be done by highly trusted users. Related:  NOTE: I am just a user, I'm not in any position of authority, so this is a just a discussion, and not endorsed by or backed by Stack Exchange.


In De Broglie's Explanation for Bohr's Quantization Condition, why do we not use 2πr = n λ/2, why do we use 2πr = n λ?

In de Broglie's explanation for Bohr's quantization condition, why do we not use $2\pi r = n\lambda/2$, why do we use $2\pi r = n\lambda$?  We know that in waves on strings, for standing waves creation in a string between two rigid supports, we use "Length of String" $ = n \lambda/2$. Why do we not use a similar concept here?


When I pdflatex the text below it doesn't insert the picture, but writes the name of the file instead (pic).  And the geometry line gives the error  ! LaTeX Error: Missing \begin{document}.   The picture I am using is at  and the floatrow package .  Question  Can anyone see what is wrong?  Text  \documentclass[a4paper]{article} \pdfpagewidth=\paperwidth \pdfpageheight=\paperheight \usepackage{aeguill} \pdfcompresslevel=9 \usepackage[pdftex,colorlinks]{hyperref}  \usepackage{a4} \usepackage{fixltx2e} \usepackage[danish]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc}  \usepackage[draft]{graphicx} \usepackage{floatrow}  \usepackage{geometry}  \geometry{margin=10pt,paperwidth=\textwidth+20pt,paperheight=\textheight+20pt}  \begin{document}  The first paragraph.  \begin{figure}   \includegraphics{pic} \end{figure}  And the second.  \end{document}


How to get the local IP address of a DHCP client host from python

To get the local fixed IP address, I use:  IP_ADDRESS = socket.gethostbyname(socket.getfqdn())   When I run this command on a DHCP client host, it returns '127.0.1.1'.  I know how to get it by parsing the result of ifconfig, but I would prefer to get it directly from python. Does anyone know how to get it?


Hi I have an xml text like this  <w:p> abc </w:p> <w:p> def </w:p> <w:tr #A1b2c3> <w:p> 123 </w:p> </w:tr> <w:tr #C1d2e3> <w:p> 456 </w:p> </w:tr> <w:p> ghi </w:p>   I need to extract all paragraphs like  abc  except those inside a table row like   123  . Any help please?


Formatting a file to use it with fortune in the terminal

I have a big text file with 'Terms' and its 'Definition' separated by spaces(variable). I want to use it in fortune cookie format.  Current file format:  **term1**     this is my definition with occasional(
,/,e.g., ; etc symbols) and some are way longer **term2**  this is my definition with occasional(
,/,e.g., ; etc symbols)   I want to transform it to the following format  **term1** : this is my definition with occasional(
,/,e.g., ; etc symbols) % **term2** : this is my definition with occasional(
,/,e.g., ; etc symbols) %   maybe with some sed or awk (I'm not good in either one)  please help.


I have a shell script that's executing a sed command. Upon variable expansion, it quotes the filename.  sed -i "$3d" $filename   becomes  sed -i 1d '~/file'   as shown by the debugging flag -x.  When ran, this produces  sed: can't read ~/file: No such file or directory   When I try to run the command manually, the same thing happens, unless I remove the quotes.  sed -i 1d ~/file   Running without quotes produces the desired output.


How to format number to very special format in java?

I want to format always-11-digit integer number to format "123-456-789 12". Is there library method to do this?  EDIT: May be I can group 3 numbers with:   DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols();  decimalFormatSymbols.setGroupingSeparator('-');  DecimalFormat decimalFormat = new DecimalFormat("000,000,000.00", decimalFormatSymbols);   But I can't separate two first digit with space (where '.' is now)


Integer.toString() add "\u0000" characters, and if statement fails...

OK, my first question in stackOverflow.   This is something that I left me completely baffled.  Java (I use android Studio), I write the following code:      Integer aNumber = 200;     String aNumberInString;     aNumberInString = Integer.toString(aNumber);     Boolean result;     if(aNumberInString == "200"){         result = true;     } else {         result = false;     }      Log.i("result:",result+"");   OK, logic and what I expect is that the condition is true... But NO! it fails.  I was really shocked by this behavior, then investigate a little more, and run the code in debug mode step by step.  when I get to the condition, I inspect the value of "aNumberInString" and to my surprise, this is what I find:    OK, so the first thing I think is: "Integer.toString ()" are doing something wrong.  Let's try another way: "String.valueOf ()"  Run in debug mode, and:    THE SAME! and fails, of course.  Obviously fails because it compares different characters, and in Internet I found a way to fix it,  string.replace ("\\ u0000", "");   but my question is not how to fix it, is:   Why is this happening?  Is there a correct way to prevent this from happening?  From already thank you very much to all, Regards, Nicolas


My code now: random_lst = [1,2,3,4,5,6,7,8,9]  What's practical way in Python to make list of lists from list?  My goal: [[1,2,3],[4,5,6],[7,8,9]]


What will happen if I use a voltmeter instead of an oscilloscope in a Chua's circuit?

Suppose I use a voltmeter instead of an oscilloscope in chua's circuit. Voltmeters only measure the average voltage over a short time period.   Questions (please consider both DC and AC voltmeter, because I don't know which one should be used...):   So does the voltmeter show a "coordinate" of the centroid of the double scroll attractor(or any other pattern formed)(since it is an "average") What voltmeter reading corresponds to the double scroll? If the double scroll is symmetric about the origin, should the voltmeter read zero? Will the voltmeter suddenly jump to zero or gradually declines to zero? Practically is there any other difference between voltmeter and oscilloscope?


Adjusting the start and ending position of || arrows

I want to draw lines for dimensions with the command \draw[|<->|]...;. In addition, I have line to some other objects, whose dimensions should be stated. However, the lines from the arrow option |<->| are a bit shifted compared to the perpendicular line at the same coordinates. Is there a way to correct this automatically and not manually, like I did it in the example? Subtracting the half line width is only applicable, if the direction of the arrow is known, and only easy, if it's along the coordinate system.  MWE  \documentclass[convert={density=1000}]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[gray] (0,0) -- (0,0.5); \draw[gray] (1,0) -- (1,0.5); \draw[|<->|] (0,0.125) -- (1,0.125); \draw[|<->|] (0-\pgflinewidth/2,0.375) -- (1cm+\pgflinewidth/2,0.375); \end{tikzpicture} \end{document}   Output    Edit:   uses \pgfarrowsdeclare, which seems to be deprecated, as stated in . I'll try to solve my question with the current command, \pgfdeclarearrow. With it I can simply write  \pgfdeclarearrow{name=dim-dim,   means={>.|[sep=-0.25pt]},}   which is a very short solution and almost does what I want. The only drawback is that it is not possible for me to use \pgflinewidth instead of the manual value -0.25pt. This results in the error Missing \endcsname inserted., if I try to compile the following code:  \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{arrows} %\pgfdeclarearrow{name=dim-dim,   means={>.|[sep=-0.25pt]},} \pgfdeclarearrow{name=dim-dim,   means={>.|[sep=-\pgflinewidth]},} \begin{document} \begin{tikzpicture} \draw[gray] (0,0) -- (0,1); \draw[gray] (1,0) -- (1,1); \draw[dim-dim] (0,0.5) -- (1,0.5); \end{tikzpicture} \end{document}   Is there a way to overcome this error?


Is there any other size tires that will fit on a 27 x 1 1/4 rim?

I live in a city with plenty of cycling shops, but they are all out of 27 x 1 1/4 tires. Each shop gives me a different answer about the possibility of using a different size of tire. Can I fit a different size onto an old 27 x 1 1/4 rim?


How to turn the white colour portion to transparent

I got this map icon in work in illustrator, and would like to turn those white dash line and the white outline of the location mark to transparent. Can you please advise me how to do it? Thank you in advance.


Is it legal to upload PDFs of my papers on a personal website & research-networking websites?

I've created a .com personal website where I intend to describe my research, including full-text PDF copies of my published papers. I was going to also make these PDFs available in my account on academic social-networking websites such as ResearchGate and Academia.edu. I've seen many researchers do the same, and indeed these websites will happily accept anything you will upload. However, I have doubts whether this would actually be legal. Most of my papers are not open-source, and without a subscription, one would just hit the journal's paywall. Is it likely that if I upload these PDFs, I am inviting copyright infringement allegations from the publishers, or any other sort of legal problem? My field, if relevant, is experimental psychology. Having researched this question on this SE site as well as some of the above-stated ones, I found no conclusive answer. Various proposed alternatives to the uploading of full-text PDFs seem to be to either upload preprints or personal "accepted" (but not journal-formatted) versions, or to state (both on the personal website and on academia.edu etc) that full-text PDFs are available upon individual reasonable request. However, none of these options seem ideal, when you'd simply like whoever is interested in your papers to be able to quickly access them in the obvious places.


Compiler-error when changing member of struct

I have the following code which does not compile cause of this error:     Error 5   Cannot modify the return value of 'System.Collections.Generic.List.this[int]' because it is not a variable   The code looks like this:  List<myStruct> myList = new List<myStruct> { new myStruct { a = 3 } }; myList[0].a = 5;  struct myStruct {     public double a; }   However when myStruct is a class this compiles. I assume it has something to do with struct being an immutable object whereas a class-instance is per se a "dynamic, mutable" object, maybe there are some better explenations for this.


I want to run some BASIC codes on Ubuntu 14.04 . Can someone please refer to the interpreters or IDEs which are available for running BASIC codes?


In the following sentence which is correct, and why?  As homeschool moms, we know there (don't/doesn't) seem to be enough hours in the day to tackle all that we want to teach our girls.


I'm just a dabbler in electronic circuits and I'm really still kind of a noob. I am working on a project called the "Atari Punk Console" (Originally known as the "Stepped Tone Generator") but there are some parts of the wiring schematic that I don't understand, specifically the parts with the ground symbol.  Here is the schematic:   See those two ground symbols? I don't understand how to properly connect the circuit to ground at these points. How can I do this and be sure that I did it properly. I don't understand grounding at all so any pointers or clarification is also welcome. Thanks in advance.


What is a regex that would match using the word نيك alone and not when combined with other words like الهندسة الميكانيكية

I have tried \bنيك\b but this does not seem to work.    Examples would be: نيك  should MATCH  الهندسة الميكانيكية should NOT MATCH  نيك  نيك  نيك  should MATCH


Why are part of my model differently colored?

I tried to redo normals, but this doesn't seem to be the issue here. When imported to Unreal the different colored items have missing polies.


I can't include bitmaps with pdflatex. Here is my mwe:  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[turkish]{babel} \addto\extrasturkish{\uccode`i=\string"9D \lccode`I=\string"19 } \addto\noextrasturkish{\uccode`i=`I \lccode`I=`i }   \usepackage{graphicx}  \begin{document}  \shorthandoff{=}  \includegraphics[width=5cm,height=5cm]{000.bmp} \end{document}   Gives the error Unknown graphics extension: .bmp.


I'm trying to run  on ubuntu 14.04 64 bit. It says  Gtk-Message: Failed to load module "gail" Gtk-Message: Failed to load module "atk-bridge"   In synaptic they seem installed, which is confusing, unless I'm looking at different packages. So I wounder how to install them using apt-get?


After turning census block data into a raster, how do I redistribute the density to reflect land cover types

I plan on rasterizing (terminology?) census block data relating to density to a regular 30 m by 30 m grid for use with NLCD data.  I then hope to distribute the density of the original census block among each result set of grid cells within the original polygon according to the land cover type dictated by the NLCD dataset.  For example, let's imagine a string of city blocks with a park, all found within one census block.  If within this census block the average density is 1000 people/km^2, we ultimately would want the resulting grid cell containing the park to have a lower population density than the grid cells containing the surrounding apartments.  This information may be captured by the NLCD dataset, with the park being classified as '21' (open but developed land) versus 24 for apartment buildings which could be classified as '24' (high density development).  Is there a method, or set of methods, within ArcMap that would allow me to:   Redistribute the density based on the NLCD value Perform this redistribution only within the original census block polygon   I don't know if this is possible, but I figured I would ask.  Edit  Here's what I have been trying:  I converted the census block data to a raster, snapping it to the NLCD land cover data and ensuring the output grid cells were the same size.  Each cell contains the same info as the original census block (housing umbers, population, etc). I have been trying to figure out a way to edit the new grid so that if the NLCD grid cell contains a land cover type that doesn't support a business or housing (park, forest, farm, etc.) that it's housing and population values area set to 0.  My next move was going to be figuring out how to subtract the non-residential/non-business grid cells area from the area of the original census block, and force a recalculation of the density.  Converted the altered census block layer to grid cells again, with each having the new density value, and once again set the cells' housing, population, and density values that don't support a business or housing (park, forest, farm, etc.) to 0.  Kind of circular, and I'm not sure of all the steps (raster calculator for editing individual grid cells based on another raster's grid cell value?), but it seems to logically work out if I can get the parts to work.  On the other hand, @dof1985's answer seems to simplify the first part of my workflow (by directing me to the correct toolset), but I will still have to nullify the grid cells where parks, etc., do exits after the density has been recalculated for the census data.


Why aliasing happens with higher emission strength?

As seen from the image below, when using higher strength value for Emission, it seems some aliasing effect appears. Why? And how to fix it?


Why are my mails sent from Postfix recognized as Spam?

I have a postfix mail server for our firm. The mails sent from this server to gmail and yahoo goes in spam.  The postfix is configured on our server and it has never been used for spamming.  Everything is configured as is should. The server works fine, the headers are as they should be.  What should I do in order the messages not to go in spam?


What is an appropriate response to "what's up" greeting?

Sorry if it's a trivial question, but when someone uses what's up as a greeting I have no idea what they want to hear. What are the possible answers and what does this question mean exactly?


Find an integer $0\leq n<1000$ such that the last three digits of $n^{267}$ are $321$.   I have tried this method:  $n^{267}\equiv 321(\text{ mod }1000)$  So, I break it up into two congruences and thought to apply the Chinese remainder theorem.  $n^{267}\equiv n^3\equiv321\equiv 1(\text{ mod }8)$ $n^{267}\equiv n^{67}\equiv321\equiv 71(\text{ mod }125)$  But it's very hard to solve the above congruences. Therefore, I do suspect that there is another method to solve the above congruence. Please help


Should "whom" be capitalized in a title?

As in the title of the book For whom the Bells Toll, should the word "whom" be capitalized?  Also, any advice on when to capitalize within a title would be appreciated.


Is it possible to add an "ignore" option and block any user from commenting on our answers?

When a user is commenting unnecessarily on our answers, how about if we can block that user from posting those comments.


Stuck In Infinite While Loop (with switch statement)

I haven't used Java in a while and am having a simple yet frustrating error. My code is something like this:  public static void main(String[] args) throws IOException{     String input = "";     BufferedReader in = new BufferedReader(new InputStreamReader(System.in));     while(input != "Q"){         input = in.readLine().toUpperCase();         switch(input){             default: break;             case "A": //do stuff break;             case "B": //do stuff break;         }     }     System.out.println("Out of the loop!"); //never reaches this statement }   I ran the eclipse debugger and it clearly shows the input variable being changed to "Q" when entered by the user, but the while loop keeps restarting.


How do I install java? Want to play minecraft

complete novice at Ubuntu. Trying to set up minecraft to play through Ubuntu but saying I need to install plug ins to see them and my minecraft won't play as it's a jar file instead of a exe file?


Cooking steak in frying pan, problem with oil splatter

I was using canola oil and put the stove top setting on "high - 9". I read plenty of guides suggesting there will infact be oil splatter, but it was pretty excessive and burning my arm with one drop getting near my eye before I stopped. I turned the heat setting down to "medium - 4", where the oil splatter seemed to drop substantially. Before I try to make steak again I'd like to get some clarification  So my questions are:   Which heat setting am I supposed to use? Is that type of oil splatter normal or should I try using a different oil, and if so, what oil? Should oiling the meat instead of the pan help the problem?


How do I mute/unmute all sound coming from Firefox via a shortcut command?

My goal is to have a custom shortcut, which mutes/unmutes all sound coming from Firefox, toggling between the two states. I can't seem to find any info on how to achieve that.


If $A,B$ have eigenvalues $\pm1$, what can I say about the eigenvalues of $AB,BA$?

If $n\times n$ matrix $A$ has eigenvalues $1,-1$ and $n\times n$ matrix $B$ also has eigenvalues $1,-1$, can I then say something about eigenvalues of $AB$ and $BA$?


I make my animation and now I realized that its pointed in wrong direction I used -y (native blender) as direction but I need to be pointed at x axis so what would be the easiest way to rotate whole animation, to switch -y with x :)


I have installed the LaTeX class files for Springer svjour3 as instructed at   But I cannot import template.tex into LyX (using plain latex option). The error comes out:      "cannot convert file- an error occured while running tex2lyx -f   template.tex template.lyx"   Next I tried to create a new file from template provided by LyX, svjour3.lyx. No problem here, I can view the PDF. Then I exported it to a .tex file (using plain LaTeX option) and tried importing it back again to LyX. The cannot convert error above appears.


Installing libraspberrypi-bin on Ubuntu Server 20.04 for Raspberry Pi4

A year ago I was running Ubuntu Server 19.04 on rPI4. I needed vcgencmd so I had to install libraspberrypi-bin. I have notes on how to clone the userland repository, edit few files, and compile it from source. I did it last year and it works fine up to this day. I got another rPI4 today and need to install it again, however it looks like the files in repo changed since and my own obscure method doesn't work any more. I googled around and following  guide. I've added ppa:ubuntu-raspi2/ppa repo to my fresh Ubuntu 20.04 however after running apt update I get the following error: root@ubuntu:/tmp# sudo apt update Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease Hit:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease Ign:3 http://ppa.launchpad.net/ubuntu-raspi2/ppa/ubuntu focal InRelease Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease Err:6 http://ppa.launchpad.net/ubuntu-raspi2/ppa/ubuntu focal Release   404  Not Found [IP: 2001:67c:1560:8008::15 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/ubuntu-raspi2/ppa/ubuntu focal 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.  It looks like that repo was last updated over 2 years ago I guess this guide is also out of date. My question in short: how to get libraspberrypi-bin on Ubuntu 20.04 for Raspberry Pi 4?


The list item size is matchparent so each item is occupying the whole screen. Just a simple fix- use wrap content   App Version: 1.0.89 Device Manufacturer: LGE Device Model: Nexus 5   OS Version: 6.0.1 (3437181)


What's the best way make an "augmented" coefficient matrix?

When studying systems of linear equations, it's nice to remind people that the last column of the coefficient matrix holds the constants.  This is often done in books by putting a vertical line between the last column and the next to last column.  What is a good way to do this in LaTex?


How many solutions has the equation $e^z=z$?

How many solutions does the complex equation $$e^z=z$$ have ?   Can we somehow use that this equation implies $z=\ln(z)$ and if this is possible, how do we deal with the infinite many branches of the complex logarithm ?  Is $2$ the number of solutions ?


Searchable Spinner has caused my app to crash upon filtering the search loaded from firestore

The data from my firestore database has been successfully loaded into my searchable spinner but upon trying to filter my items(i.e., upon searching through the searchable spinner), my app is getting crashed. CODE:  parties=new ArrayList<>();     arrayAdapter = new ArrayAdapter<String>(cartActivity.this, android.R.layout.simple_list_item_1, parties);     arrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);     searchableSpinner.setAdapter(arrayAdapter);     db.collection("/RootCollection/partyDocument/partyCollection")             .get()             .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {                 @Override                 public void onSuccess(QuerySnapshot queryDocumentSnapshots) {                     for(QueryDocumentSnapshot documentSnapshot:queryDocumentSnapshots){                             partyMaster pm=documentSnapshot.toObject(partyMaster.class);                             parties.add(pm.getName());                             arrayAdapter.notifyDataSetChanged();                     }                  }             });   The data is properly getting downloaded and visible in the searchable spinner but filtering the search results is crashing my app.  Error Logcat:      --------- beginning of crash 06-11 15:58:42.244 8801-8801/com.example.user1.salesmanapp E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.user1.salesmanapp, PID: 8801     java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference         at android.widget.ArrayAdapter.getCount(ArrayAdapter.java:337)         at android.widget.AdapterView.checkFocus(AdapterView.java:737)         at android.widget.AdapterView$AdapterDataSetObserver.onInvalidated(AdapterView.java:860)         at android.widget.AbsListView$AdapterDataSetObserver.onInvalidated(AbsListView.java:6749)         at android.database.DataSetObservable.notifyInvalidated(DataSetObservable.java:50)         at android.widget.BaseAdapter.notifyDataSetInvalidated(BaseAdapter.java:59)         at android.widget.ArrayAdapter$ArrayFilter.publishResults(ArrayAdapter.java:546)         at android.widget.Filter$ResultsHandler.handleMessage(Filter.java:282)         at android.os.Handler.dispatchMessage(Handler.java:111)         at android.os.Looper.loop(Looper.java:207)         at android.app.ActivityThread.main(ActivityThread.java:5740)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:766)   The library which i have used for my searchableSpinner is   implementation 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1'   THANKS IN ADVANCE


What's the mistake in "When I was a child, I must eat everything on my plate or I wouldn’t get any dessert."?

"When I was a child, I must eat everything on my plate or I wouldn’t get any dessert." Find a part of the sentence that contains a mistake.


Does anyone know of a nice (and preferably free) way to integrate Prolog and C#?  Im looking to create a Prolog dll or similar to call from my managed code, and retrieve an answer once all the processing has been complete. Im looking for it to be predominantly one sided (c# calls Prolog).  I have seen  which talks about Prologs real world usage but I was wondering if anyone had either any experience with c# & Prolog? or a nice tutorial/article?


Are company-name tags like [microsoft] and [apple] useful?

The thing with these tags is, you can always (or almost always) use a specific product/technology/language tag which would render the company-name tag completely redundant (see Appendix C for sloppy non-proof). For example, what relevant information would  tag add to  already tagged with ? What would  tag add to  already tagged with ? Another way of looking at this: how much useful information do you lose if you don't tag a question with a company name? Note: I'm not talking about brand/company/organizations like , , ,  because those names also refer to websites/web services with which you can interact via API or from which you can extract data. Appendix C: The "about" test The relationship between a tag and a question can be expressed as such  This question is about [tag]  In case of ,  This question is about [microsoft]  Fair enough. But in reality people are using these company-name tags like this  This question is about something developed by or related to [microsoft]  But if that's the case, you might as well just go with  This question is about [something developed by or related to microsoft]  where  can be , , ... you get the idea.


Use keyboard media buttons for Spotify, not YouTube

Ever since I updated to macOS 10.14.4,  I've been having trouble with media buttons working with YouTube and not Spotify. Is there anyway to write a script to remove YouTube access or is there a way in system preferences to set Spotify as the default? Thanks!


Show that $$\det \begin{bmatrix} -x & 1 & \dots & 1 \\ 1 & -x & \dots & 1 \\ \vdots & \vdots & \ddots & \vdots \\ 1 & 1 & \dots & -x \end{bmatrix}  = (-1)^n(1+x-n)(1+x)^{n-1}$$ for all $n \in \mathbb{N}$.  I tried using induction but I didn't manage (using row/column swaps). Does anyone have any idea?


How can I prove mathematically that the mean of a distribution is the measure that minimizes the variance?

According to the Page 87 in Kruschke: Doing Bayesian Data Analysis, the author says that the mean of a distribution is a value that minimizes the variance of a probability distribution, for example, a normal distribution. The following is what is mentioned in the page:  It turns out that the value of $ M $ that minimizes $ ∫dx p(x)(x−M)^2$ is $E[X] $. In other words, the mean of the distribution is the value that minimizes the expected squared deviation. In this way, the mean is a central tendency of the distribution.  I have read the paragraph and kind of understood what the author is trying to say but I wonder how this can be written mathematically using the above equation or any other ways.


"one of the cables that runs" or "one of the cables that run"?

Recently at work I was writing the following, and I have not been able to get a firm answer on which version is the most grammatically correct. The sentence is:     We would like to use one of the cables that _________ between rooms.   Is the correct conjugation run or runs?  I think 'run' is correct, because I think that the verb in the prepositional phrase is referring to 'cables' not 'one.' However, a number of colleagues have said that 'runs' is correct because one is singular.


Prove or disprove.       Let $f_n(x)=x^{n-1}+x^{n-2}+\cdots +x+1$. Then $f_p(x^{p^{e-1}})$ is irreducible in $\mathbb Q[x]$ for all prime $p$.   I know if $p$ is a prime $f_p(x)$ is $p$-th cyclotomic polynomial and is irreducible.


How to refers to single characters of a word

I need to positionate every single digit of a number in some positions, (i.e. 1234,35 euros) in single cells of a module. How  I can refer to single digit? Thank you.  I wish to do something like this :


How can I safely pass an argument containing '{{}}' to a bash script?

The following arguments are valid for docker command:  docker ps -f"status=exited" --format 'table {{.Names}}' #output: # jovial_hellman   # modest_blackwell   So I have created this script   docker-ps-exited  #!/bin/bash # show exited docker processes docker ps -f"status=exited" $@   But when I try to add the rest of the arguments in the console it fails:  docker-ps-exited --format 'table {{.Names}}' # ERROR OUTPUT: # "docker ps" accepts no arguments. # See 'docker ps --help'. #  # Usage:  docker ps [OPTIONS]    Why the script fails passing the arguments correctly? How should I write it in order to be able to accept any arguments I pass at the end?


What structures do stand behind the expression the movies (we're going to the movies)? It confuses me that it is plural (movies) and with the definite article (the). It seems that in the same way you say the woods (we went camping in the woods).


An operator button that gets greyed out?

Anyone knows how to make an operator button that gets greyed out if two or more objects are not selected.


I am developing a code from the link : . I have the below code  <apex:page controller="FindNearbyController" docType="html-5.0" >      <!-- JavaScript to get the user's current location, and pre-fill          the currentPosition form field. -->     <script type="text/javascript">         // Get location, fill in search field         function setUserLocation() {             if (navigator.geolocation) {                 navigator.geolocation.getCurrentPosition(function(loc){                     var latlon = loc.coords.latitude + "," + loc.coords.longitude;                     var el = document.querySelector("input.currentPosition");                     el.value = latlon;                 });             }         }         // Only set the user location once the page is ready         var readyStateCheckInterval = setInterval(function() {             if (document.readyState === "interactive") {                 clearInterval(readyStateCheckInterval);                 setUserLocation();             }         }, 10);     </script>      <apex:pageBlock >         <!-- Form field to send currentPosition in request. You can make it              an <apex:inputHidden> field to hide it. -->         <apex:pageBlockSection >             <apex:form >                 <apex:outputLabel for="currentPosition">Find Nearby</apex:outputLabel>                  <apex:input size="30"                       html-placeholder="Attempting to obtain your position..."                      id="currentPosition" styleClass="currentPosition"                       value="{!currentPosition}" />                 <apex:commandButton action="{!findNearby}" value="Go!"/>             </apex:form>         </apex:pageBlockSection>          <!-- Map of the results -->         <apex:pageBlockSection rendered="{!resultsAvailable}" title="Locations">             <apex:map width="600px" height="400px">                 <apex:repeat value="{!locations}" var="pos">                     <apex:mapMarker position="{!pos}"/>                 </apex:repeat>             </apex:map>         </apex:pageBlockSection>      </apex:pageBlock>  </apex:page>   In my developer console, code dont know what is <apex:map. Could you please let me know what is the issue ?  The error message,  Unknown component apex:map in FindNearbyControllerVFPage at line 41 column 52     As per the link :  .   <apex:map> components are not supported in Developer Edition. So you should be trying to run this in Sandbox of supported Production org (Enterprise, Unlimited, etc).   Why there is a restriction of using the API ? How developer will developed the code ?


Password protect files/folders using cli

I have some important documents that I need to protect from anyone else having access to my machine.   The problem being the other persons have access to my machine via root account so changing the file permissions is not a option for me. I have seen apps like cryptkeeper but I was wondering can I password protect my files/folder by command line mode in ubuntu.


Why doesn't Cantor's diagonalization work on integers?

Why can't you use Cantor's diagonalization argument to prove that the integers are countably infinite? i.e.  1: 12345....  2: 42345....  3: 56903...  4: 46234...  5: 23421...  etc.  Then we could create a new integer by adding 1 to each number in the diagonal, so the new integer would be 23042. Where did I go wrong in my reasoning?


how to extract content sitting in between email chain headers using regular expressions in python

trying to extract useful string content in a chain of email messages.  text = """I have a string which is a chain of email messages like this: From: x,y  Sent: Monday, January 07, 2018 12:48 PM To: a,b Cc: p,q Subject: subject Importance: High  Hi a, some useful message body 1  Thanks  From: x,y  Sent: Monday, January 06, 2018 12:48 PM To: a,b Cc: p,q Subject: subject Importance: High  Hi b,  some useful message body 2  Best" useful_output = re.sub((From.*Importance)+, '',text)   expected result : it should replace From to Importance patterns anywhere in text with null leaving useful content in between. the result expected would be something like : "Hi a,some useful message body 1 Thanks Hi b, some useful message body 2 Best"  but the result is same as input


Prove that ∀ n ∈ {n | n ∈ ℕ ∧ n > 7}: n = x*3 + y*5

How would I prove that for all elements of a set {n | n ∈ ℕ ∧ n > 7} (all natural numbers greater than 7), there are multiples of 3 and 5 which, when added up, are equal to that element of the set?  A := {n | n ∈ ℕ ∧ n > 7} ∀ n ∈ A: n = x*3 + y*5   I do understand why this is true:   8 = 1*3 + 1*5 9 = 3*3 + 0*5 ...  15 = 0*3 + 3*5   and this pattern repeats once 16 is reached, as 8 can be replaced with 1*3 + 1*5, so I'd basically have to add 1 to x and y for every time 8 fits in n.  I am however not sure how I can formulate this mathematically correct.  Thanks in advance, CrushedPixel


pgfplots: plot data table until n-th line


I am trying to download executable file on windows server 2003 as part of Penetration Testing course I am doing right now and I seem to fail... Powershell is not enabled and bitsadmin is just "freezing".  C:\dlhere>bitsadmin /transfer ez http://vps/executable.exe C:\dlhere\test.exe bitsadmin /transfer ez http://vps/executable.exe C:\dlhere\test.exe  BITSADMIN version 2.0 [ 6.6.3790.1830 ] BITS administration utility. (C) Copyright 2000-2004 Microsoft Corp.   I am clueless right now...   I just acquired command-line access with "nt authority\systemd".


Does the Rule of Two Serve any Actual Purpose?

I know Darth Bane came up with the Rule of Two to ensure the survival of the Sith, but, in reality (or in the Star Wars reality), does it (or any Sith rule) serve a true purpose?  And why does each successive Sith bother with it?  Due to the nature of the Sith, Sith Lords tend toward arrogance and self-importance.  Both the Sith master and Sith apprentice seem to regularly break the rule by training others.  Deceit and personal interest over loyalty is a way of life for the Sith.  What is to keep any Sith from following the Rule of Two (or any rule, for that matter) if it is against their own self interest?  If a Sith Master can stay in power longer by training a 2nd apprentice and pitting the two against each other, is he really going to worry about the Rule of Two more than his own plans and survival?  The Rule of Two also assumes that every Sith Master would place the survival of the Sith over his own survival, as opposed to attempting to ensure his own immortality in whatever way he could (like Plagueis).  When you have a group that, by default, is arrogant and self-serving, as well as deceptive, why would they want the Sith to survive themselves?  I can see how the Rule of Two, and any other Sith beliefs would be possible guidelines, but it terms of the nature of ambitious people (and the Sith are ambitious), it's hard to believe that each new Sith Master would follow this rule faithfully.  So does this rule, or any Sith rule, actually work?  Or is it more of a suggestion that is broken when convenient?


I am new to Ubuntu, using 14.04 I am trying to format an SD card to make space on it, and it's not working. I tried in terminal:  format mmcblk0 hformat mmcblk0   and it says:  hformat: /home/michael/mmcblk0: error (no such file or directory)   How do you format an SD card?


mysql-server:Depends: mysql-server-5.5 but it is not going to be installed

I am using ubuntu 14.04 on VirtualBox. I try install mysql-server using command sudo apt-get install mysql-server, i always got error like below:  Some packages could be installed .This may mean that you have  request an impossible  situation or if you are using the unstable distribution that some required packages have not yet been created  or been moved out of Incoming. The following packages have unmet dependencies: mysqsl-server : Depends: mysql-server-5.5 but it is not going to be installed E:Unable to correct problems, you have held broken packages.   and then i try use some command like below :  sudo apt-get update sudo apt-get upgrade sudo apt-get clean sudo apt-get autoclean sudo apt-get purge mysql-server* sudo apt-get install mysql-server   but it still error. Please help me!


What do I need to write device drivers on Ubuntu? Do I need source code for Linux? What else is needed?


Can I remove ε from an inequality because it is arbitrary?

I'm looking at this proof (relating to lower/upper sums and integrals) and near the end it says this: U(f) ≤ U(f,P) < L(f,P) + ε ≤ L(f) + ε And then it says: "Since ε > 0 is arbitrary, we must have U(f) ≤ L(f)". I don't have any trouble understanding the rest of the proof but I don't understand how we get from the inequality above to U(f) ≤ L(f). Can someone explain to me the reason why we can remove ε and get to U(f) ≤ L(f)? I've added a picture of the full proof to make it easier to understand my question.


In C++, does initializing a string but not assigning it to anything result in memory usage?

I'm trying to understand how const char * foo = "hello"; works under the hood. I interpret it as a string is created, and then a pointer points to it in memory.  So, does this line of code:  "hello";  take any memory?


Python: How to optimize a list result by using less lines? This question is already answered using zip


How set more than one paths has to be added to the PATH environment variable and other variable?

I am adding commands to $HOME/.bash_profile file   export PATH=[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin:$PATH  export ANDROID_HOME=/home/harsh/SDK  export PATH=$PATH:$ANDROID_HOME/tools   Now I have to run  source $HOME/.bash_profile when my system boot every time. Is there any other option to permanent set these paths?  Problem: It's annoying to run this commands again and again when my system boot. Is there a way when I start my system and don't need to add this commands again?


How do you connect to multiple databases on a single webpage?

I was wondering  how i can connect to multiple databases on a single PHP webpage. i know how to connecet to a single database  using:  enter code here:                $dbh=mysql_connect($hostname,$username,$password)or die("unable to connect to MYSQL");   However,can i just use multiple "mysql_connect"commands to open the other databases,and how would PHP know what databases i want the informaion pulled from if I do have multiple databases connected


How to defrag ext4 file system on Ubuntu 10.04?

I have an Ubuntu 10.04 Server with ext4 as file system. e2fsprogs is installed, but e4defrag is only packaged since Ubuntu 12.04. How do I defrag the file system or how can I install e4defrag? Maybe there is a backport of e4defrag for Ubuntu 10.04.


Which colors to use besides black & white for colorblind users?

Let's assume we cannot use shapes, textures, or anything else to visually differentiate two elements. We must rely on colors. Which colors, besides black and white, are best to use? We only need to differentiate between two elements.


Hyper-V reports that the hypervisor is not running. How to start the hypervisor?

I've created and run Hyper-V guests on this machine in the past. VT extensions are enabled in the BIOS; no changes made there. I've changed my boot device order recently. How can I ensure that Hyper-V's host hypervisor is started on Windows startup? When attempting to start a VM, the Hyper-V Manager error shows:  An error occurred while attempting to start the selected virtual machine(s). Failed to restore virtual machine state. Virtual machine 'Windows 10 Tech Preview' could not be started because the hypervisor is not running.   The Hyper-V Virtual Machine Management service is set to Automatic.  I've previously run bcdedit /set hypervisorlaunchtype auto as Administrator. No other VM products like VMWare or Virtualbox is installed.


Finite cyclic subgroups of $GL_{2} (\mathbb{Z})$

How could we prove that any element of $GL_2(\mathbb{Z})$ of finite order has order 1, 2, 3, 4, or 6?  I am aware of the proof supplied here at this link: . But I am curious if there are any other proofs.


When following a direct link to an answer, the sticky top bar will cover up the top of it

When I follow a direct link to an answer (a share link, or I click an "answered 1h ago" or "modified 1h ago" link in the active questions list), the sticky top bar will cover up the top of the answer, including the upvote button.  for you to test it yourself.  Here's what I see after following a direct link on one of my sites:        ... then I scroll up by the height of the sticky top bar to see the actual top of the answer:        This isn't even a site-specific thing, since it will happen right here on meta:


Im tired that everytime my dock (i use docky) crash i have to manual reopen it.  There is a way for auto restart docky everytime it crash?  I mean something that can auto reopen the app when it crash...  ps i'm a newby non english on xubuntu


Counter Example of $\cup$ A$_i$ is not compact.

True or false: The union of an arbitrary family of compact subsets is a compact subset.  Well firstly I think for a while if it is true or not, definitely I take the second option and in order to prove that it false I think for the next counter example:  I take $\mathbb{R}$ as the working space with the discrete topology, so I think about the subset of only one element that all of them are compact so as $\mathbb{R}$ is non numerable we can't affirm that the union of all of this subset is compact because is a non numerable union so if we try to obtain a finite union that contains all of the elements it will be impossible.  I'm not sure if it is right or not.


I can't update wine from 1.5.10 to 1.5.11 due to a dpkg lock file

I have tried double checking for updates and updating the ppa via the terminal. The terminal outputs this, at the end.  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?   Any ideas? Thank you.


After exiting blender, texture I was painting shows up black

So I didn't save it, as I didn't know you had to but in this screenshot is what I have. You can see in the UV selector menu thing it shows my texture, highlighted in red.  Now how do I restore it?


How would you prove that $f_n(x) = x^{1/n}$ converges pointwise to $1$ for $x \in (0, \infty)$? It's obvious if you take the limit as $n \to \infty$ but how would you prove it using epsilon?


Given this theorem: For every prime 𝑝 and all integers a, b, if p|ab, then p|a or p|b Prove: Let 𝑥 ∈ ℤ and 𝑝, 𝑞 be distinct primes. Then p|x and q|x if and only if pq|x I have already proven if p|x and q|x then pq|x. Now I need to prove it the other way around, if pq|x then p|x and q|x I have this: We have pq|x which means x = pqn, where n is some integer Where do I go from here?


What's the most efficient way to get experience?

Now that experience does something besides render regions of a server uninhabitable due to  orb lag, what's the most efficient and safe way to get those excellent enchants?  A mob farmer may rank highly, but what about without tons of setup?


Examples of canonical projections that are not epimorphisms and canonical injections that are not

Although in $\mathsf{Set}$, canonical projections from a product are surjective and canonical injections to a coproduct are in fact injections, there seems to be nothing forcing this to be the case elsewhere, and indeed Wikipedia indicates without proof that they needn't be epic/monic. Unfortunately, I'm a rank beginner and have not yet knowingly read about a category less rich in monomorphisms and epimorphisms than $\mathsf{Set}$ (though Aluffi has already introduced a couple examples that are richer in them), so I don't know where to try to find a counterexample. Any hints?  To clarify: I am seeking canonical injections to coproducts that are not monomorphisms and/or canonical projections from products that are not epimorphisms.


When you polymorph into a creature do you retain your proficiencies and class abilities?

We are playing Storm Kings Thunder and our party picked up a Fire Giant Sword.   Can we polymorph our fighter into a Giant Ape in order to wield the sword, and could he benefit from multiattack or battle master maneuvers?  It looks like in the text of polymorph suggests that he may not even be able to wield the sword:     The creature is limited in the actions it can perform by the nature of its new form, and it can't speak, cast Spells, or take any other action that requires hands or Speech.


I'm with problems with ca-certificates. Every site that I try to access ask me for a confirmation of the certification and my update is not working 100% too  $ sudo rm -rf /etc/ssl/certs/* $ sudo update-ca-certificates Updating certificates in /etc/ssl/certs... 152 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d....done. $ sudo apt-get update [...]                                 Err private-ppa.launchpad.net precise/main amd64 Packages                 server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt    CRLfile: none Err private-ppa.launchpad.net precise/main i386 Packages   server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none Ign private-ppa.launchpad.net precise/main Translation-en_US Ign private-ppa.launchpad.net precise/main Translation-en Fetched 1,118 kB in 44s (24.9 kB/s)  E: Some index files failed to download. They have been ignored, or old ones used instead.


javascript add new properties to an object

Suppose I have this object:  let obj1 = { key1: 'value1', key2: 'value2' }   And I have a different object like this:  let obj2 = { key3: 'value3', key4: 'value4' }   Is there a way of adding obj2 properties to obj1 and have this?  {     key1: 'value1',     key2: 'value2',     key3: 'value3',     key4: 'value4' }   I currently have this working but would want to know if there is an easier way:  for (prop in obj2) {         if (obj2.hasOwnProperty(prop)) {           obj1[prop] = obj2[prop];         }       }


When I am using my phone and searching for anything and then press the search button sometimes two loading sprites show sometimes just one I assume there is only many to be one?  App version: 1.0.52


Evaluate to find the sum of an infinite series

$∑_{n=1}^\infty$ $n\over2^{n-1}$  or  1 + $2\over2$ + $3\over4$ + $4\over8$ + $5\over16$ + $\ldots$  How to go about evaluating the above, showing that it sums to 4?


Im currently creating a program that works like a slot machine, the user writes "Spin" and then it generates some random numbers in the form of an array and then prints them off for the user to see.  The problem is i can quite figure out how to print out the array so that it can be used later to find matches. Here's the code so far:  public static int listofNums(int NUM_VALS)  {     NUM_VALS=3;     Random rn=new Random();     int[] list=new int[NUM_VALS];     int i=0;     list[0]=rn.nextInt(10);     list[1]=rn.nextInt(10);     list[2]=rn.nextInt(10);      for(i=0;i<NUM_VALS-1;i++){         System.out.print(list[i]+" ");     } return list[i]; } public static int addPoints(int numMatches){     int score=50;     numMatches=0;     switch (numMatches) {         case 1: numMatches=0;             score=score-1;             System.out.println("Sorry, you lost 1 point.");             break;         case 2: numMatches=2;             score=score+5;             System.out.println("You gained 5 points!");             break;         case 3: numMatches=3;             score=score+20;             System.out.println("You gained 20 points!");         case 4: numMatches=4;             score=score+750;             System.out.println("Jackpot! You gained 750 points!");     }     return score; }         public static void main(String[] args) {     final int NUM_VALS=3;     int[] list=new int[listofNums(3)];     int[] newList;      newList=list;     boolean stop=false;     String command;     Scanner scnr=new Scanner(System.in);     System.out.println("Welcome to high stakes slot!");     System.out.println("Type 'Spin' to spin the wheel, type 'Stop' to see hoe much youve won!");      while(!stop)    {         command=scnr.next();         if (command.equals("Spin"))     {             System.out.println(newList[0]); }   And when i run the program, it prints out something like this:  Welcome to high stakes slot! Type 'Spin' to spin the wheel, type 'Stop' to see hoe much youve won! Spin 0 Spin 0  I don't know what I'm doing wrong, help will be greatly appreciated! Thank you so much.  Update:  After looking over what was given to me to see if this was a duplicate, the difference between my problem and what was said in the other thread is: -Im using random numbers to generate my array, as well as, having to do so by makeing a reference to a method, ie, i cant just put a bracket in the back of the declared array.  Or so i think.  Update:  I have gotten rid of the printed out reference, but now it just prints out 0 when the user "Spins".


xslt, javascript and unescaped html entities

i have a tiny little problem with xslt, js and html entities, eg. within a template:  <script type="text/javascript">     <xsl:value-of select="/some/node"/>     for (var i = 0; i &lt; 5; i++) {         //            ^^^ js error     } </script>  <script type="text/javascript">     <xsl:value-of select="/some/node"/>     for (var i = 0; i < 5; i++) {         //            ^ xslt error     } </script>  <script type="text/javascript">     <xsl:value-of select="/some/node"/>     // <![CDATA[     for (var i = 0; i < 5; i++) {         //            ^ becomes &lt;     }     // ]]> </script>   <script type="text/javascript">     <xsl:value-of select="/some/node"/>     for (var i = 0; i <xsl:value-of disable-output-escaping="yes" select="string('&lt;')"/> 5; i++) {         // works of course     } </script>   does anyone have an idea where my problem could come from? i always thought the xslt processor would leave the content of a <script/> element unescaped when using the html output method ...  i run libxslt2 version 1.1.24 on OSX which was installed using macportsports ...


Do we still need to do feature selection while using Regularization algorithms?

I have one question with respect to need to use feature selection methods (Random forests feature importance value or Univariate feature selection methods etc) before running a statistical learning algorithm.   We know to avoid overfitting we can introduce regularization penalty on the weight vectors.   So if I want to do linear regression, then I could introduce the L2 or L1 or even Elastic net regularization parameters. To get sparse solutions, L1 penalty helps in feature selection.   Then is it still required to do feature selection before Running L1 regularizationn regression such as Lasso?. Technically Lasso is helping me reduce the features by L1 penalty then why is the feature selection needed before running the algo?   I read a research article saying that doing Anova then SVM gives better performance than using SVM alone. Now question is: SVM inherently does regularization using L2 norm. In order to maximise the margin, it is minimising the weight vector norm. So it is doing regularization in it's objective function. Then technically algorithms such as SVM should not be bothered about feature selection methods?. But the report still says doing Univariate Feature selection before normal SVM is more powerful.   Anyone with thoughts?


I want to recover and play again my lost village

I lost my village after the maintenance update. I want to play my previous village, this time, I am playing a new created village that replaced my previous one. Please help me back on my previous enjoyed village.  How can I play again my old village? I want to play again so bad. I hope you can help me return from playing by recovering my old village.


Intuitive explanation of why momentum is the Fourier transform variable of position?

Does anyone have a (semi-)intuitive explanation of why momentum is the Fourier transform variable of position?  (By semi-intuitive I mean, I already have intuition on Fourier transform between time/frequency domains in general, but I don't see why momentum would be the Fourier transform variable of position. E.g. I'd expect it to be a derivative instead.)


I work in Beamer extensively (specifically the Madrid theme). Sometimes, my "title" is quite long. Beamer puts this title at the bottom, but when it's too long it cuts it off. I'd really like to know how to increase the size of the bottom middle rectangular footer.    Here's the code (sorry for all of the packages and commands):  \documentclass[t]{beamer} %Add "mathserif" to script math lettering. "t" places all text to start at the top of each slide \usetheme{Madrid}  %Packages  \usepackage{amsmath} %Math mode \usepackage{amssymb} %Math mode \usepackage{commath} \usepackage{graphicx} %Including pictures \usepackage{color} %Define colours \usepackage{setspace} %Enables double-spacing/variable spacing \usepackage{pgfplots} %Draw graphs \usepackage{upgreek} %Insert theta symbol as unitalicized  \usepackage[version=3]{mhchem} %Chemistry equation mode \ce{} \usepackage[export]{adjustbox} %Place black borders around images \usepackage{scrextend} %Used to change font size \usepackage{caption} %Used to utilize * in caption function \usepackage{subfig} %Used to place figures side-by-side with sub-captions \usepackage{siunitx} %SI Units (+ scientific notation) \usepackage{cancel} \usepackage{fancybox} %\usepackage{enumitem} %Making lists %\usepackage[english]{babel} %Lists with letters  %Erases Beamer Navigation Symbols on the bottom left \setbeamertemplate{navigation symbols}{}  %\setbeamertemplate{footline}{} \captionsetup[subfigure]{labelformat=empty}  %Defined Colours \definecolor{orangered}{RGB}{255,69,0} \definecolor{darkgreen}{RGB}{0,100,0}  \definecolor{firebrick}{RGB}{178, 34, 34} \definecolor{navy}{RGB}{0,0,128} \definecolor{lightsteelblue}{RGB}{176,196,222} \definecolor{steelblue}{RGB}{70,130,180} \definecolor{darkslateblue}{RGB}{72, 61, 139} \definecolor{forestgreen}{RGB}{34, 139, 34} \definecolor{Gold}{RGB}{218,165,32}  %Defined Colour Theme and List Sizing \setbeamercolor{structure}{fg = Gold} \setbeamertemplate{navigation symbols}{}  \setbeamerfont*{itemize/enumerate body}{size=\normalsize} \setbeamerfont*{itemize/enumerate subbody}{parent=itemize/enumerate body} \setbeamerfont*{itemize/enumerate subsubbody}{parent=itemize/enumerate body}  %Opening Title Page \title{Chapter 7 - Absolute Value and Reciprocal Functions} \subtitle{Section 7.3 - Absolute Value Equations} \date{}  \begin{document}     %Slide 1     \maketitle \end{document}


Is there a word for someone who tied a game akin to "winner" and "loser"?

Someone who wins a game is a winner. Someone who loses a game is a loser.  Is there a word for someone who tied / ended a game in a draw?


OOP Coordinates in grid Java wont work. How to program?

I don't get this to work. This is OOP. I am supposed to get the (x,y) coordinates in a grid when moving it up, down, left or right. I need the toString to always update for every move I take. I would prefer using arrow keys in the keyboard, but I don't know how. If someone know that it would be nice for the program. I must be able to - for example - press up, then down, then up without it stopping.     package stateandbehavior;     import java.util.*;     public class Location {          int x;         int y;              public void up() {         boolean run = true;         while (run) {            Scanner tast = new Scanner(System.in);         String tas = tast.nextLine();         if (tas == "W" || tas == "w") {             y-=1;         }else {             run = false;         }         }     }          public void down() {         boolean run = true;         while (run) {         Scanner tast = new Scanner(System.in);         String tas = tast.nextLine();         if(tas == "S" || tas == "s") {             y+=1;         } else {             run = false;         }         }              }          public void right() {         boolean run = true;         while (run) {         Scanner tast = new Scanner(System.in);         String tas = tast.nextLine();         if (tas == "D" || tas == "d") {             x+=1;         }else {             run = false;         }         }     }          public void left() {         boolean run = true;         while(run)         Scanner tast = new Scanner(System.in);         String tas = tast.nextLine();         if(tas == "A" || tas == "a") {             x-=1;         }else {             run = false;         }     }          public int getX() {         return x;     }          public int getY() {         return y;        }          public String toString() {         return "(" + x + ","+ y + ")";     }          public static void main(String[] args) {         Location Loc = new Location();         Loc.up();         Loc.down();         Loc.right();         Loc.left();         Loc.getX();         Loc.getY();         System.out.println(Loc);         } }


I am wondering what ports are used by SQL Server database engine? I need such port number to write configuration scripts to grant access to specific port of the machine installed with SQL Server to make it safe. A related question is whether SQL Server database engine will use one static port number to serve all client requests, or using one port for each request?  BTW: my background is SQL Server 2008 enterprise.  thanks in advance, George


This has happened to me twice now.  I create a world (survival, not hardcore), I play for a week or so, then, one day, when I go to open it, it's gone.  I've went to .minecraft and verified that the worlds are still there and they don't appear to be missing any files.  What's going on and how can I stop this from happening again?  And especially, can I get my worlds back?


If we put the launch time aside, what are the benefits of installing your SQL server (along with your databases) in SSD instead of HDD?


Is there an elegant way to increment the index of 'arr' without x?

I want to improve my Python and I'm curious if there's an elegant way to increment the index of arr in the loop without using integer x in this code:  def predict_one_instance(xSeriesTestVector, xTrainInstances, yTrainCategories, distanceMetric, k):      distances = calc_distances(xSeriesTestVector, xTrainInstances,distanceMetric)     sorted_distances = np.sort(distances)     arr = np.zeros((k,), dtype=int)     x = 0        for el in sorted_distances[:k]:         arr[x] = yTrainCategories.iloc[np.where(distances == el)]         x+=1     return np.bincount(arr).argmax()


Should we sign-then-encrypt, or encrypt-then-sign?

Frequently, we want to send messages that are (a) encrypted, so passive attackers can't discover the plaintext of the message, and (b) signed with a private-key digital signature, so active attackers can't make Alice think that a message came from Bob when it didn't. Is it better to (a) generate the digital signature from the (hashed) plaintext, and then encrypt a file containing both the plaintext message and the digital signature? Or is it better to (b) encrypt the message first, and then generate a digital signature from the (hashed) encrypted file? Or (c) combine encryption and public-key digital signatures in some other way? A closely related earlier question (  ) seems to focus on symmetric-key MAC authentication. As , Do the same issues with (symmetric-key) MAC-then-encrypt apply to (public-key) sign-then-encrypt?


Why arr[0] instanceof Number returns false even the array has numbers

I faced this problem when I learn javascript. I tried the following code:   var arr = [1, 2, 3]; console.log(arr instanceof Array); // true console.log(arr[0] instanceof Number); // false      var arr = [{key: 'val'}, {key1: 'val2'}]; console.log(arr[0] instanceof Object); // true    I was wondering it will log true in console, but it does not come as expected. Please help me to understand this. Thanks in advance.


How to remove applications from start menu that are installed by Wine

I installed some applications, using Wine. They appeared in the start menu I wanted to remove the application, so I removed the folder    it didn't work so I tried by removing the wine folder but it stayed there, every time i launched it. I then went to usr/share/applications but that didn't work either, as it wasn't there.  Is there another way to remove Wine-installed applications?


Do I need an airside visa (or anything else) for transit via Heathrow from South Africa to Ireland?

I am traveling from South Africa on Virgin Atlantic to Heathrow airport where I change plane to Aer Lingus for the final leg if my journey to Dublin, Ireland. My bags are being checked through to the final destination. I will not need to go through immigration. My onward flight departs less than 2 hours after landing in Heathrow.   The purpose of my visit is to visit my son and his wife and family and to help care for twins born 16th January 2019.   I have valid SA passport, travel insurance, proof of foreign exchange, letter of invitation from my son (resident on a work permit in Kilkenny); no visa is required to visit Ireland on SA passport.


GLR Test for 2 samples from exponential distributions

I am trying to solve this complicated Generalised Likelihood Ratio Test problem for 2 samples as part of my independent study course. However, the book that I am using does not talk about 2 samples at all; all the examples provided are 1 sample questions.  The question:      Assume that $X_1, ...,X_m$ is a random sample from $\theta_1e^{-\theta_1x}I_{(0,\infty)}(x)$ and $Y_1, ...,Y_n$ is a random sample from $\theta_2e^{-\theta_2y}I_{(0,\infty)}(y)$. If we assume the samples are independent. What is the GLR for testing   $H_0:\theta_1=\theta_2$  vs. $H_0:\theta_1\ne\theta_2$?   So far I just got to $$\Lambda=\frac{L(\theta,\theta)}{L(\theta_1,\theta_2)}=\frac{\theta^{m+n}\exp[-\theta\sum x_i+\sum y_i]}{\theta_1^m\exp[-\theta_1\sum x_i]\theta_2^n \exp[-\theta_2\sum y_i]}$$  However, I don't know what I should do for the next step. They say it should be an F test but I just can't see it.   I appreciate your time and help!


How to Connect/Disconnect to WiFi Via Terminal

I just have a quick question that I have been researching for a while now... How do you connect/disconnect to a wifi network in ubuntu via terminal? I tried several commands that failed. I have been troubleshooting this for about 55 minutes now, and the question still continues to baffle me.  FYI, I am using wlan0  Thanks Ubuntu :)  P.S. If I can provide any additional info, don't hesitate to ask.


Can I be notified of edits to answers on questions I own?

I asked a question () and got several answers pretty quickly. I tried them and they didn't work. So I left some comments on the answers looking for clarification, and apparently the posters edited their answers – but I wasn't notified. I forgot I hadn't found the answer to my question and just came back to it today wondering why there wasn't any activity, only to find out that I'd been ignoring it.    Note: I didn't find a question on Meta that addresses my issue, I'm sure it exists, though. So, if it does, kindly let me know.


Textarea X/Y caret coordinates - jQuery plugin

I'm looking to get the X/Y coordinates of the caret within a textarea on key down.  I've searched vigorously but without any luck whatsoever, it seems you can get the position, but not the on-screen X/Y coordinates.


How should dual motion sensors be connected?

One supply parallel to connecting two motion sensors. In between lights connected. Lights common for two sensor.    In same time two sensors activated in the sense any problem happens sensor and lights.


PostgreSQL: difference between collations 'C' and 'C.UTF-8'

In PostgreSQL, what is the difference between collations C and C.UTF-8?   Both show up in rows of pg_collation. Is it perhaps the case that C.UTF-8 is the same as C with encoding UTF-8 regardless or what the actual encoding of a database is?


Side lengths of a triangle satisfy $ab+bc+ca=3$. Prove that $3≤a+b+c≤2√3$

The lengths $a,b$ and $c$ are the side lengths of a triangle that satisfy $ab+bc+ca=3$. Prove that $3≤a+b+c≤2√3$  I was able to find the minimum bound through some simple algebra: $a+b+c=\sqrt{a^2+b^2+c^2+6}$ But, $a^2+b^2+c^2≥ab+bc+ca=3$ $\implies a+b+c≥\sqrt{3+6}$ $$3≤a+b+c$$ Alternatively we could use AM GM on $ab+bc+ca$ and then on $a^2+b^2+c^2$ After this I couldn't think of how to use the triangle inequality in conjunction with the given condition $ab+bc+ca=3$ to get an upper bound on the sum, any help would be appreciated, thanks


Is there a NumPy function to return the first index of something in an array?

I know there is a method for a Python list to return the first index of something:  >>> l = [1, 2, 3] >>> l.index(2) 1   Is there something like that for NumPy arrays?


Split everything between two characters, including those (perl)

I would like to use Perl's split functionality to do the following:  example string:   =foo>bar=\foo2>bar2=foo3> ...   Now I tried this:  @Array = split /=.*>/, $string   I'm expecting to get my array filled with "bar", "bar2", ...  Any idea what I'm doing wrong?


Find the orders of $M_3(\mathbb Z_2)$ and $GL_3(\mathbb Z_2)$

$|M_3(\mathbb Z_2)| = 2^{3^2} = 64$  $|GL_3(\mathbb Z_2)| = 64$ minus all singular matrices in $M_3(\mathbb Z_2)$ or all matrices with linearly independent columns.  My question is how do I find all singular matrices or all matrices with linearly independent columns. Please advise.


Is there a way to make a repeating command block not apply its command to server operators?

I am trying to make a radius that players are turned into adventure mode, but when they leave they get turned back into survival, the part I cannot figure out is how to make it so server operators are not affected by this (and/or a list of players too).  These are the commands that I have in 2 separate repeating command blocks:  /gamemode survival @a[distance=30..]  /gamemode adventure @a[distance=..28]


Finding the sum of this series: $1+\frac 12 + \frac 13 + \cdots + \frac 1{50}$

I need to find the sum of this series: $1+\frac 12 + \frac 13 + \cdots + \frac 1{50}$   Please help me find the sum of this series.


Ideas on how to recover data from a screenless/headless Android device?

I have an unrooted Nexus 5—big mistake, I should have rooted it—due to some unfortunate circumstances my phone screen ripped off from the phone leaving the phone functional but “headless.”  I want to scrape off (download) my data and move off things from my phone. I do have backups on but the last backup was taken half a month ago since when I have only been travelling with 2G data on    It clearly has no screen.  The solution I tried.  I have an AirDroid account and using that am able to perform basic phone stuff make calls, read reply to SMS message. With screen mirror there is a possiblity that I can use the phone normally remotely and move my data and be happy. The dead-end: AirMirror requires root.  I tried to root the phone purely via ADB shell but the step will require flashing a templated image, which will destroy all the data on the phone.  The other solution is if I can turn on Wi-Fi via ADB shell, I can copy most of its contents I need via AirDroid. It won’t be feasible enough on mobile data.  Any suggestions?


Cut part of raster with another raster (mask)

I have a raster which I want to cut. A second raster smaller, should be exactly the part where I want to cut the first layer (so I cut the same size as raster 2).  The idea is that raster 2 become the mask for the cut. How can I do this?


If P is a property, then is (not P) a property?

For a proposition, such as:     P: Socrates is a man   Then not P is also a proposition:     Not P: Socrates is not a man   But do the same goes for properties? One can argue in the following way:    red is a property of red flags, or of red apples; but not red is not a property; for no thing instantiates not redness; that is not redness does not cohere in some substrate - here a flag, or apple; even though whiteness, which is an example of not redness, coheres in a white wall.  Q. Is this right?  All this, I think, takes it for granted that properties cohere in some substrate or substance - this is a commitment to a specific ontology; we may choose something else; the obvious choice being a world where all that there is are bundles of properties, and no substrate or substance to which to hang them on; there, existence is also a property - a property which all existing entities have.   Q. Given this ontological commitment; then is not P also a property?


Including a relative path to a class file

I'm trying to set the documentclass type of a certain .tex file to be a class that is in the parent folder. However, I'm not sure how to include the path to the .cls file. I can write   \documentclass[letterpaper,12pt]{../foo}   But that complains that the imported class isn't the same as the provided class (in foo.cls I have \ProvidesClass{foo}. I know that this is just a warning and I could ignore it, or I could write \ProvidesClass{../foo}, but was wondering if there was a cleaner way to do the document class declaration.


Short story of a culture where everyone's greatest wish/ambition is to die a violent death

I read this short story in a collection somewhere in the late 80s or early 90s, but I think it may have been written earlier. In the story, a fairly young guy ends up in a strange community on a different planet. The community is very peaceful and seem on the face of things healthy and pretty ideal, although there seem to be many people dying in accidents. He meets a young woman whom he likes and decides to stop trying to find a way home and instead to work to make everyone's lives better and to stay with them. He does a lot of good, and gets into a relationship with the girl and I think they get married. Eventually, with all the good work he's been doing, people start talking about honouring him with some kind of ceremony. It turns out (although the guy never learns about this) that in this society dieing a violent death is considered the greatest reward possible, and the community has to vote to allow someone to do so. Then the person being is killed in some violent/painful way and if they are highly respected or achieve something amazing, they are ceremonially tortured to death.  A lot of people who aren't good enough for this honour commit suicide by faking an accidental death, because overt suicide is taboo. The woman's father has been working on his own accident for a while, which involves "accidentally" falling in a river and drowning. Just before the ceremony to honour the guy, he sees the other man in the river drowning and apparently yelling for help, and jumps in and saves him. Everyone is angry at him for stealing the old man's death and he doesn't understand what's going on. He gets exiled, and the woman goes with him. The story ends with her thinking how someday he'll redeem himself for stealing her father's death and then she will be able to give him this greatest gift - a violent death.


Why do I have no 'Shader' category when trying to add nodes?

I am a complete beginner. So, I might be dumb - sorry! I made a 3D model. Now, I want to work on its surface - which lead me to materials and shaders. So, I added a material and then opened the Node Editor. I pressed Shift+A to add a shader and I got the following:  There is no Shader in the list. So, could you please tell me how to get it? The Blender version I am using is 2.79b


Hats borked in chat: Hat appears in top-right corner of user image

Possibly related to , I noticed a bit ago that occasionally there is an issue with the hats in chat. Here's a screenshot to demonstrate:    As you can see, @AidanMueller's hat is fine in the top image, and is scrunched into the top-right portion of the image in the bottom large one. In the smaller one towards the middle, it seems fine.  As new messages were sent, the issue apparently is only in that one image, here's a picture of the messages sent afterwards:     A quick note: reloading the page does fix the issue:


If A, B, C, D are non-invertible $n \times n$ matrices, is it true that their $2n \times 2n$ block matrix is non-invertible?

Is it true that   $ \left( \begin{array}{ccc} A & B \\ C & D \\\end{array} \right)$  is non-invertible?  Assume that the matrix is over a field.


What's the most effective way to deal with a big group of sentries?

I'm playing Capture the Flag (on Turbine), and the enemy's team has a group of about five level-3 sentries right outside the door to our base. I've tried being a Soldier, Heavy and Demoman, and destroying them, but all five gun me down before I have the chance. The Scout's essentially useless and he'll be destroyed almost instantly, as will the Pyro and Medic. As a Spy, I am either blown up by grenades or sticky bombs before I even get near the sentries, or, if I'm lucky enough to get to them, as soon as I sap them, another Engineer comes along and removes my sapper (and I obvious can't backstab him as other Sentries will quickly shoot at me).  What is the best thing to do in this situation (in order to destroy lots of sentries), where coming into contact with them is inevitable (What is an ideal class to use, and what is the best strategy)?


How can I check if a reboot is required on Arch Linux?

Is there an equivalent to Debian/Ubuntu's /var/run/reboot-required for Arch Linux to determine if a system restart is required? I'm looking for a comprehensive solution that also accounts for when critical libraries and the kernel are updated and a reboot is required to complete the upgrade. This is my  which only accounts for the kernel: if [[ $(pacman -Q linux | cut -d " " -f 2) > $(uname -r) ]]; then   # reboot... fi


I'm trying to prove this proposition:   That every discrete subgroup of Euclidean space is free Abelian with rank at most n, but I don't know how to approach it, even with the "used facts" section.  Any help please?


Is there a way to subscribe to a question and be notified more frequently than once a day?  I'd like to be notified immediately on any posts to a question.


Cluster analysis on weighted survey data with continuous and categorical variables

I am trying to perform cluster analysis on survey data where each respondent has answered several questions, some of which have categorical answers ("blue" "pink" "green" etc) and some of which have scale answers (rating from 1 to 10 etc).  My problem is that certain age groups were over-sampled and I need to weight the data collected in order to accurately reflect the current population.  Will it make a difference if I do the cluster analysis on the weighted data, and if so, how do I do cluster analysis on the weighted data?  Any advice would be much appreciated!  Thanks Emma


What is the origin of spin of celestial objects?

In an older question from June 2011, , apparently revived by the system, a user is asking about the origin of the rotation of celestial bodies.  The  (with 17 votes) states the following:     When things collapse under their own gravity in space (i.e. clouds of gas and dust), any small amount of asymmetry in the collapse will be enough start it spinning.   And then it goes on saying:     Even if it spins by a tiny amount, as it collapses, angular momentum     conservation will mean it spins more and more quickly.   Is all this really correct?  I could try to ask in a comment to the answer. I actually did. But the author is no longer registered.  Hence I am asking it as a question.  But that is not the end of the story. As I was about to ask my question, I looked for other relevant questions, and there are some. I did not make an exaustive survey, but I did not find one that had satisfactory answers:    (december 2011) has just one accepted answer (0 votes) stating essentially that the solar system has angular momentum because it started from a cloud that had angular momentum. No comment.  (july 2011) is questionning about everything from galaxies to electrons. The answers are of a much higher quality, but while they seem to justify the possiblility of spin and angular momentum (and its conservation), there are not clear on how it appears, at least for celestial bodies.  (june 2013): That was my own very naive first question on this site. It is related but does not directly address spin.   One answer I found is that momentum appear from bodies in relative motion past each other. Nice, but not really an answer: where did they get their relative speed to begin with. Unfortunately the answer is: from the angular momentum of larger structures they belong to (well, it can be more comples). So this is just chicken and egg explanation. But how did it get started?  Note that my question is not a duplicate, since it is primarily whether the above statements are correct, which is not considered in these other questions.  Furthermore, these questions are fairly old, and given that none had received answers that seem to answer the question of the origine of existence of celestial angular momentum (not in a way I can understand anyway), it may be appropriate to attempt restarting the process, with the above discussion to motivate that an answer should explain the physical mechanism that started the existence of spin of celestial bodies.


When the occurrence of a variable is said bound or free in a quantified statement?

I was reading a book on discrete mathematics by k. Rosen.  One place in this book i found that      " When a quantifier is used on the variable x, we say that this occurrence of the variable is bound.  An occurrence of a variable that is not bound by a quantifier or set equal to a particular value  is said to be free"  Again another place it was said that   "The part of a logical expression to which a quantifier is applied is called the scope of this  quantifier. Consequently, a variable is free if it is outside the scope of all quantifiers in the  formula that specifies this variable."  It seems contradictory to me.  Can you clearly explain what is free and bound variable in a quantified statemen. Also tell me what will be the free and bound variables of the statement    $\exists x~(x + y = 1)$ and  explain me with the proper definition of free and bound variable.


Galois group of the splitting field of the polynomial $x^5 - 2$ over $\mathbb Q$

We know that the splitting field of $x^5 - 2 $ over $\mathbb Q$ is $\mathbb Q(2^{1/5}, \rho)$, where $\rho$ is a fifth root of unity. Therefore, $\left[\mathbb Q(2^{1/5} , \rho) : \mathbb Q \right] = 20 $. Let $G$ be the galois group of $\mathbb Q(2^{1/5} , \rho)$.  Then $|G| = 20$.  How to find the Galois group $G$? Can we generalize to the Galois group of the splitting field of $x^p -2$ over $\mathbb Q$?


Calculate the expected value of $Y=e^X$ where $X \sim N(\mu, \sigma^2)$

I got a problem of calculating $E[e^X]$, where X follows a normal distribution $N(\mu, \sigma^2)$ of mean $\mu$ and standard deviation $\sigma$.  I still got no clue how to solve it. Assume $Y=e^X$. Trying to calculate this value directly by substitution $f(x) = \frac{1}{\sqrt{2\pi\sigma^2}}\, e^{\frac{-(x-\mu)^2}{2\sigma^2}}$ then find $g(y)$ of $Y$ is a nightmare (and I don't know how to calculate this integral to be honest).  Another way is to find the inverse function. Assume $Y=\phi(X)$, if $\phi$ is differentiable, monotonic, and have inverse function $X=\psi(Y)$ then $g(y)$ (PDF of random variable $Y$) is as follows: $g(y)=f[\psi(y)]|\psi'(y)|$.  I think we don't need to find PDF of $Y$ explicitly to find $E[Y]$. This seems to be a classic problem. Anyone can help?


I do not see Task/Activity/Event as an option for a Lookup on my custom Lookup on the Case object.  I know Tasks are treated differently than other object but I cannot find any documentation stating that it is impossible.  Can someone confirm that is it not possible or let me know how to do it?


I get double question marks when referring to labels inside figures

I have some charts embedded in figures, and I want to be able to refer to them easily using the "Figure x" notation. I'm doing it like this (in this order):  \documentclass[12pt,letterpaper]{article}  ...  \section*{Results} ...we performed a linear regression to obtain a standard curve  (Figure~\ref{0:stdcurve})....  \pagebreak \section*{Results (Graphs)} \subsection*{Construction of Standard Graph for PNP} \begin{figure}[h]   % Figure 1     \centering     \includegraphics[scale=1]{kinematics-res/graph0-1}     \caption{The standard curve for PNP.}     \label{0:stdcurve} \end{figure}   However, instead of getting the output "...to obtain a standard curve (Figure 1)...", I just get "...to obtain a standard curve (Figure ??)..."  I also noticed that the PDFLaTeX compiler is generating warnings saying that it couldn't find the reference of the name 0:stdcurve. Why am I getting these warnings?


Null pointer exception on checking if App is installed on the device

I'm getting NullPointerException on checking if App is installed on the device, I want to check if the app is install inside setCapabilities() method. The app is installed on the emulator and i am running the below code to check if the App is available or not. If the App is available use APP_PACKAGE and APP_ACTIVITY if not use APP:     public class AndroidDrive extends AppiumBase implements ConnectionHandler {          public static AndroidDriver getAndroidDriver() {             return (AndroidDriver) getDriver();         }           private DesiredCapabilities setCapabilities(Device device) {             DesiredCapabilities capabilities = new DesiredCapabilities();             capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, device.getPlatformName());             capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, device.getDeviceName());             capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, device.getPlatformVersion());              System.out.println(getDriver().isAppInstalled(readConfigProperty("androidPackageName")));             if(getAndroidDriver().isAppInstalled(readConfigProperty("androidPackageName"))){                 capabilities.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, device.getAndroidAppPackage());                 capabilities.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, device.getAndroidAppActivity());             }else{                 capabilities.setCapability(MobileCapabilityType.APP, device.getApp());             }             return capabilities;         }          /**          * Load Android Driver using default device          *          * @return          */         @Override         public AndroidDriver load() {             Device device = JSONReader.getDevice(deviceInfo().get("DEFAULT_ANDROID_DEVICE".toLowerCase()),                     deviceInfo().get("DEFAULT_OS").toLowerCase());             return load(device);         }          /**          * Load Android Driver using device parameter          *          * @param device          * @return          */         public AndroidDriver load(Device device) {             AndroidDriver driver = null;             try {                 if (isRemote()) {                     driver = new AndroidDriver(new URL(readConfigProperty("remoteUrl")), setCapabilities(device));                 } else {                     driver = new AndroidDriver(new URL(readConfigProperty("localUrl")), setCapabilities(device));                 }             } catch (Exception e) {                 throw new RuntimeException(e);             }             return driver;         }      }   The problem is the driver is null.


This is a final exam question in my algorithms class:  $k$ is a taxicab number if $k = a^3+b^3=c^3+d^3$, and $a,b,c,d$ are distinct positive integers. Find all taxicab numbers $k$ such that $a,b,c,d < n$ in $O(n)$ time.  I don't know if the problem had a typo or not, because $O(n^3)$ seems more reasonable. The best I can come up with is $O(n^2 \log n)$, and that's the best anyone I know can come up with.   The $O(n^2 \log n)$ algorithm:    Try all possible $a^3+b^3=k$ pairs, for each $k$, store $(k,1)$ into a binary tree(indexed by $k$) if $(k,i)$ doesn't exist, if $(k,i)$ exists, replace $(k,i)$ with $(k,i+1)$ Transverse the binary tree, output all $(k,i)$ where $i\geq 2$   Are there any faster methods? This should be the best possible method without using any number theoretical result because the program might output $O(n^2)$ taxicab numbers.   Is $O(n)$ even possible? One have to prove there are only $O(n)$ taxicab numbers lesser than $2n^3$ in order to prove there exist a $O(n)$ algorithm.  Edit: The professor admit it was a typo, it should have been $O(n^3)$. I'm happy he made the typo, since the answer Tomer Vromen suggested is amazing.


I am trying to find details of an Uzbekistan Airways flight from Tashkent to London on September 11th 2001. I believe it took off in the morning and landed in the afternoon but I need to know the flight number, departure and arrival times, type of plane, terminal it landed and whether it was delayed. Do you know where I can find this information? Thanks, Toby


Upon the risk of being down voted as no MWE is present, but at the moment just trying to get some pointers. I updated my MiKTeX installation to the newest available version at the moment (MiKTeX-pdfTeX 4.1 (MiKTeX 20.12)) and now I get an error while building my documentation: Appendix D. (../html/examples/group/latex/refman_doc.tex (../html/examples/group/latex//gro up__group1.tex) [243] ! I can't write on file `../html/examples/group/latex//group__group2.aux'. \@include ...mmediate \openout \@partaux "#1.aux"                                                   \immediate \write \@partau... l.3 \include{group__group2}  Please type another output file name ! Emergency stop. \@include ...mmediate \openout \@partaux "#1.aux"                                                   \immediate \write \@partau... l.3 \include{group__group2}  *** (job aborted, file error in nonstop mode)  some small background:  Started normally with pdflatex doxygen_manual.tex in here is the statement: \subinputfrom{../html/examples/group/latex/}{refman_doc} and in this file again: \include{group__group2} as far as I know the disk is not full and the protections of the files and directories are OK as well  It looks like that now an attempt is made to write to the directory ../html/examples/group/latex/ whilst in the past the file was written to the current directory. I already tried -shell-escape and -enable-write18 (as well as --shell-escape and --enable-write18) but to no avail.  Any known changes in respect to writing the aux file? Any hints  edit I asked another question () with the details and MWE but that was closed with the reason that it was a duplicate of this one ... So I'm adding the information now here: In the question  asked about the problems I encountered due to an update of my MiKTeX distribution, but didn't take the time (at that moment) to create a MWE, so it didn't attract much response. I have the directory structure:  main  manual.tex   group  group__group2.tex refman_doc.tex    manual.tex \documentclass{book} \usepackage{import} \usepackage{hyperref}  \begin{document} \subinputfrom{../group}{refman_doc} \end{document}  group__group2.tex \hypertarget{group__group2}{}{The Second Group}  refman_doc.tex {Module Documentation} \include{group__group2}  When running in the directory main the command pdflatex manual.tex I get the error: ... (../group/../group/refman_doc.tex [1{C:/Users/User/AppData/Local/MiKTeX/2.9/pdf tex/config/pdftex.map}] ! I can't write on file `../group//group__group2.aux'. \@include ...mmediate \openout \@partaux "#1.aux"                                                   \immediate \write \@partau... l.2 \include{group__group2}  Please type another output file name:  but in a non interactive mode (the usual way to run. i.e. with \batchmode) one doesn't get an opportunity to specify the file and the generation crashes. As written in the original question adding options like -shell-escape and / or -enable-write18 didn't help.  Is there a solution for this problem?  edit 2 I did some further test. I replaced the \subinputfrom with an \input statement, although this worked for the limited example above it didn't work for my larger codebase as here (again just a limited view) we have in the refman_doc.tex {Module Documentation} \input{group__group1} \include{group__group2}  with the contents of group_group1.tex similar to group__group2.tex and the file is also parallel to group__group2.tex. This results in the error: (manual.out) (manual.out) (../group/refman_doc.tex  ! LaTeX Error: File `group__group1.tex' not found.  Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: tex)  Enter file name: ! Emergency stop. <read *>  l.2 \input{group__group1}  !  ==> Fatal error occurred, no output PDF file produced!


As an undergraduate student, who wants to solidify his mathematical skills, I want to understand what exactly determines if a proof is rigorous.


Inequalities based on arithmetic progression

Let $m_1<m_2<m_3<\cdots <m_{k-1}<m_k$ are positive integers where their reciprocals are in arithmetic progression. Show that $k<m_1+2$


Review option on mobile phone not available?

The other day I was looking at Stack Overflow on my Android phone. All is made very nice and all, but I could not find the Review button/link. Is it being implemented, did I miss it, or it is not available?


I am new to Ubuntu and Linux.  I replaced Windows with Ubuntu 18.04 on my HP laptop, with WiFi chip RTL8723DE. I have already fixed a problem with an error saying "WiFi adapter not found".  I followed  answer and  answer to solve that problem. Now I can interact with WiFi, but after rebooting the PC, even though I can scan and see WiFi networks, when I try to connect, I get the error: activation of network connection failed I am a novice using Ubuntu/Linux and I don't have Windows anymore.  Please help me find a solution or help direct me to resources.  I don't know where to start searching.


How to prove that every infinite subset of a denumerable set is denumerable?

Let $X$ be a denumerable set and $Y$ an infinite subset of $X$.  There are two functions $g$, $h$ such that $g:X \sim \mathbb{N}$(since $X$ is denumerable), $h:Y\to \mathbb{N}$ and $h$ is defined by $h(y)$ = the number of elements in $\{1,2,3,···,g(y)\} \cap g(Y)$.  Then I have to prove that $h$ is bijection. How to prove it?  ($g:X \sim \mathbb{N}$ means that $g:X \to \mathbb{N}$ is bijecion.)


What Should be the Permissions of Apache SSL Directory, Certificate, and Key?

I have my cert.pem and cert.key files in /etc/apache2/ssl folders.  What would be the most secure permissions and ownership of:   /etc/apache2/ssl directory /etc/apache2/ssl/cert.pem file /etc/apache2/ssl/cert.key file    (Ensuring https:// access works of course :).  Thanks,  JP


For every continuous function $f:[0,1]\to[0,1]$ there exists $y\in [0,1]$ such that $f(y)=y$

I want to prove that if we have a continuous function from the closed interval [0,1] to the closed interval [0,1], that there exists a value y in [0,1] such that $f(y)=y$.  I have an idea of a theorem that I want to use: Let f is a continuous real function on the interval [a,b]. If f(a) < f(b) and if c is a number such that f(a)< c < f(b), then there exists a point x in (a,b) such that f(x)=c.  So I know that f(0) < f(1). So according to this theorem, for some number in between 0 and 1, there exists a point in the domain such that f(x)=this number.  But I'm having trouble coming up with the argument