Splitting of prime ideals in algebraic extensions

I'm reading Algebraic Number Theory by Jurgen Neukirch. I have some problems with some of the exercises in Section 9 of Chapter 1.  They are:  1) If $L / K$ is a Galois extension of algebraic number fields with non-cyclic Galois group, then there are at most finitely many non-split prime ideals of $K$.  2) Let $L / K$ be a finite (not necessarily Galois) extension of algebraic number fields and $N / K$ the normal closure of $L / K$. Show that a prime ideal $p$ of $K$ is totally split in $L$ if and only if it is totally split in $N$.  I have worked on them for a long time but couldn't get any idea of it.   Can you please help? Thank you!


"Seem", "appear", "look" — how to differentiate?

Are there any significant structural or semantic differences between seem, appear and look in the sense of "to give the impression of being or doing something"?        She looks unhappy.   He seems angry.   They appear (to be) contented.   It looks as if it's going to rain again.   It looks like we're going home without a suntan.   It seems as if they're no longer in love.   It seems like she'll never agree to a divorce.    They appear to have run away from home. They cannot be traced.   I seem to have lost my way. Can you help me?   It seems to be some kind of jellyfish. Do not go near it.   They appear not to be at home. Nobody's answering.   They do not appear to be at home. No one's answering.    It seems that I may have made a mistake in believing you did this.   It appears that you may be quite innocent of any crime.   It looks as if/like you won't go to prison after all.   It seems a shame that we can't take Kevin on holiday with us.   It doesn't seem like a good idea to leave him here by himself.   It seems ridiculous that he has to stay here to look after the cat.


I have this command:  for file in file??.txt; do awk -f vypis_z_dcout.awk "$file" > "$file".csv; done   The result is a column of numbers from each file and I want to connect results  from all files in one file like its columns. How to add to this command?   paste <(cat f.csv) <(cat f1.csv) <(cat f2.csv) <(cat f3.csv) <(cat f4.csv) .... insert "$file".csv ... > out.csv   Or how to get a file where in the first column will be file01.csv, in the second file02.csv and so on? Thank you


I'am a newbie in Python, however I'am fondling a code, which is more of encapsulation methods/functions in a class. The IDE underlined my code and gave me the option to make my method static, which I did. Notably they gave me the same output as my normal code.  My Normal Code  class firstClass():     def method1(self):         print "My first method defined in a Class"      def method2(self, somestring):         print "My second method in a Class: " + somestring   def main(c=firstClass()):     c.method1()     c.method2("somestring")   if __name__ == '__main__':     main()   My IDE-Edited code   class firstClass():     @staticmethod  # What is the meaning of this line really?     def method1():         print "My first method defined in a Class"      @staticmethod     def method2(somestring):         print "My second method in a Class" + somestring, "\n"   def main(c=firstClass()):     c.method1()     c.method2("somestring")   if __name__ == '__main__':     main()   I figured out that when IDE-Edited the method to static, it did pass in @staticmethod before my method as well as removed the self argument passed into the method. But I do not understand what a static method is all about in Python. What does it mean to make a method static in Python?


Are SVG image files safe to upload? Why WP defines them as a security risk?

I'd like to upload a map of the USA in a SVG format however I am prevented from doing so because of a 'security risk'.  Any ideas why this is? Is it safe to do so?   Thanks


Mounting a monitor arms clamp on an IKEA desk, what can I use to distribute the load?

I have  which I use for my computer. It currently holds two 27" monitors. The monitors are too low for my eyesight, so I bought  to hold them up and free some space underneath. I was reading a bit about how strong the desk is, and it looks like the desk is likely too weak for the weight to be put on one 5cm x 5cm spot on the desk, due to the wooden panel's structure:  So I need something to distribute the load across a larger surface of the desk. Probably something that's tough enough to actually distribute the load as opposed to something weak that will bend and just pass the load on the spot. I'm not very experienced with DIY projects, any idea what I could use? (I'm in London, UK, if it helps)


I added a png image named MVC Unit 2 Question 1 Graph 1 to the directory, but I am not able to add the image to Latex. I am currently using online Share LaTeX, which I believe is pdflatex.  \documentclass{article} \usepackage[utf8]{inputenc}  \usepackage{natbib} \usepackage{graphicx}  \begin{document} \includegraphics{MVC_Unit_2_Question_1_Graph_1} \end{document}


I have seen many articles about POCO. What is this?


Unable to remove a file which has a name like a command argument

I inadvertently created a file called -r in my home directory. Now I cannot get rid of it:  rm -rf rm: missing operand Try 'rm --help' for more information.   Other attempts:  rm /-/r rm: cannot remove ‘/-/r’: No such file or directory   Another one:  rm \-r rm: missing operand Try 'rm --help' for more information.   Is there a way to remove this file without deleting the whole directory?


Calling ajax within a script called by ajax is not running correctly (PHP)

What I'm doing is basically using 3 files which I describe below    //File1.php $('button.button1').click(function(e){         $.ajax({                  type: "POST",                  url: "file2.php",                   timeout: 180000                 })                 .done(function(data) {                  //load data returned in modal                 })                 .fail(function(msg) {                   //do something                 }); });   Then, my next file load modal code html (header,body and footer) with a button called 'OK'. (The body modal contains a form with the button 'OK')  //file2.php      $('button.ok').click(function(e){               $.ajax({                         type: "POST",                         url: "File3.php",                         contentType:false,                         processData:false,                         cache:false,                         data: formData,                         timeout: 180000                     })                     .done(function(data) {     //do something                     }                      })                     .fail(function(msg) {                         //do something                     });                 });       In my file3.php do bd operations and save the values   So, when executing the program from the first script, the page is automatically returned to the index and the query is not executed in the bd, what is this? That I should return in each file to be executed correctly and why the values are sent through the get method (they are seen in the url) when it is specified that the method is post? HELP  to conclude, i have one button that do an ajax call , load a modal and inside the modal another ajax call is done


bash: syntax error near unexpected token `elif'

The shell script snippet is given below  if [[ $OS == Linux ]] ; then      LINUX_FC=gfortran # #   set 32 or 64 Bits executable #     ARCH=`uname -m`     echo "PROCESSOR IS: $ARCH"     if [ [ $ARCH == x86_64 ] ]  ; then         BITS=SIXTYFOUR;     else         BITS=THIRTYTWO;     fi  elif [[ $OS == Darwin ]] ; then          DARWIN_FC=gfortran;  else     BITS=THIRTYTWO; fi;   Error is   OPERATING SYSTEM IS: Linux : command not found jobcomp1: line 34: syntax error near unexpected token `elif' 'obcomp1: line 34: `elif [ [ $OS == Darwin ] ] ; then


Someone asked in the Math.StackExchange chatroom what a "more refined word for circlejerk" might be. UrbanDictionary defines this (in our desired usage) as:   [...] pompous, self-congratulatory discussion where little to no progress is made.  A group discussion or activity between like-minded individuals that validates mutual biases or goals in a non-confrontational environment.  Sometimes used to describe an internet forum thread where forum members all give each other kudos (Or rep where a rep system is present) for some non-event that has occurred.    I guess it's related to "intellectual masturbation" or "echo chamber" but these don't quite fit the bill.


How can i access others machine terminal through my machine?

is there any command or way to access the other machine terminal into mine to execute commands for other machine that is on the same network.


What is $V_{\alpha\beta}$?  And what is a symmetric,  potential energy matrix?  And why is there a linearized equation like this?


I want to intersect two layers (shapefiles) with QGIS 2.18. For both layers, I tested validity with   QGIS Vector / Vector Tools / Check validity and GRASS v.build.check (with default parameters)   both tests report no errors for both layers, but QGIS Intersection reports invalid geometry for one or more input features.  The two layers may have some boundaries, that should be equal, but may actually have slight differences (unprecise manual digitalisation of one layer) possibly resulting in several very small slices.  What do you recommend me to try?


Trouble with apt-get update and default repositories

I am having problems when I run: sudo apt-get update  I get a few 404 not found errors, as seen in  and the following text:  E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/main/binary-armhf/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/binary-armhf/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/main/binary-armhf/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/main/binary-armhf/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80] E: Some index files failed to download. They have been ignored, or old ones used instead.   I'm not sure what is causing this, I tried changing the update server, and I tried using a VPN to ensure my IP hasn't been blacklisted. Neither of those worked. Anyone know how to fix this? I am using Ubuntu 18.04  I tried , but that didn't fix the problem. Below is my /etc/apt/sources.list:  # deb http://security.ubuntu.com/ubuntu/ bionic-security main deb http://archive.ubuntu.com/ubuntu bionic main universe deb http://security.ubuntu.com/ubuntu/ bionic-security main universe deb http://archive.ubuntu.com/ubuntu bionic-updates main universe   If I comment out everything in /etc/apt/sources.list, then I do not get any errors, but it does not check for Ubuntu updates as seen below:  $ sudo apt-get update Hit:1 http://linux.teamviewer.com/deb stable InRelease Hit:2 http://linux-packages.resilio.com/resilio-sync/deb resilio-sync InRelease Hit:3 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu bionic InRelease         Reading package lists... Done   I also tried leaving 1 line uncommented at a time, to see if any of them would work, but they all caused errors.  I do not believe IPv6 is the issue, as I was able to run ping6:  $ ping6 2001:67c:1560:8001::14 PING 2001:67c:1560:8001::14(2001:67c:1560:8001::14) 56 data bytes 64 bytes from 2001:67c:1560:8001::14: icmp_seq=1 ttl=54 time=90.4 ms 64 bytes from 2001:67c:1560:8001::14: icmp_seq=2 ttl=54 time=89.8 ms 64 bytes from 2001:67c:1560:8001::14: icmp_seq=3 ttl=54 time=86.7 ms 64 bytes from 2001:67c:1560:8001::14: icmp_seq=4 ttl=54 time=86.2 ms 64 bytes from 2001:67c:1560:8001::14: icmp_seq=5 ttl=54 time=95.2 ms   Running dpkg --print-foreign-architectures returned:  i386 armhf   I tried using ports.ubuntu.com by adding deb http://ports.ubuntu.com/ubuntu-ports bionic main to my /etc/apt/sources.list, as shown in , but I still got the same errors.  I am ultimately trying to install a Nextcloud server, but I'm unable to install MariaDB for it, and I think this update issue the cause.


usage of separable and inseparable words

Words like      wheelbarrow   and      nailbrush   are used mingled, the wheel goes with barrow in inseparable form.  On the other hand, words like      tank top   and     high heels   as it sounds written separable.   On what reasons they're written like this? Is there a clear way to distinguish the correct form and making them in writing?


Is there Ubuntu software for architectural drafting

I want to draw plans for domestic buildings and be able to estimate materials and costings. Is there relatively simple CAD software available. I've searched extensively with no success.


Can published papers outweigh average marks when applying to top institutions for MS?

I haven't been paying much attention to my marks during my undergrad (4 year undergrad), they haven't been terrible, but they are decidedly average. However, it looks like I could publish an economics paper this year and my supervisor wants to publish another one with me next year (I am currently in my third year).   So could these publications help with getting into top institution, assuming my marks improve from here on out?


Why is Chromium not updated automatically as Firefox is?

Firefox was automatically updated to version 14 a few days ago through update manager, but Chromium web browser is still stuck in version 18 while Google Chrome is already in version 20. Why does this happen and how can I update my Chromium to a more recent version?


I just bought 2 , but when I check them on CPU-Z, I see they are operating at 1200MHz.  Could someone help to bring them back to 2400MHz?  Thanks


Recently, I stumbled upon this problem, , both here at MSE and somewhere surfing the web. I tried to solve it but don't know how. Although I can't remember where I found it, I doremember the question saying to solve the equation for $x$ rather than to determine whether some sort of solution existed. So by that, I presume that there is a such solution that I am not seeing.  I tried the following: $1^2$ mod $23$, $2^2$ mod $23$, $3^2$ mod $23$, $...$ , $22^2$ mod $23$. Following this procedure did not yield an answer of $49$. Can anyone show me how a solution is determined because it has been over 2 days and it is driving me crazy from my inability to see the solution.


Input two integer separated by space to determine a 2D array dimension

How to determine a 2D-array dimension by input two integers separated by space? My method is  use split function, convert string to integer and determine 2D array. Here is my code, however there is an syntax error.  Thanks  import java.util.Scanner; public class inputtwointeger { private static Scanner input; public static void main(String[] args) { input = new Scanner(System.in); System.out.println("Enter integer separated by spaces: "); String firstInput = input.nextLine(); String [] secondInput = firstInput.split(" "); System.out.println("Numbers"); for(String n: secondInput) {     System.out.print(firstInput+" "+secondInput); } //covert string into integer int row = Integer.parseInt(secondInput[0]); int column = Integer.parseInt(secondInput[1]); // new a 2D array using two integer you input int [][] array = new int[row][column];  }  //generate 2D array element in hand step by step  for (int i = 0; i < row; i++) {          for (int j = 0; j < column; j++) {              array[row][column] = input.nextInt();              System.out.print(Arrays.deepToString(array));              }          System.out.println();         }   }


In , in the first scene, Gerenal Brigham makes it clear that Tom Cruises character 'Cage' is going to be fighting on the front line in the upcoming 'invasion' of Mimic held territories in Europe.  However, as far as I can tell it's never made clear why Cage is going to be sent.  After all, by Cages own admission he is not 'battle trained' and as such he's going to be more hindrance than help when it comes to fighting as can be seen by his first 'tour' when he doesn't even know how to operate the battle suit.  So, is it ever revealed why he's being sent to fight ?  Note: once he realises he's got no apparent choice he rebels and gets demoted to 'private' and is labelled a 'deserter' however, what isn't explained was the original decision...


Unable to deploy change set to production

After the new realease our developer sandbox changed its API version to 52.0 but or production org still at 51.0 . When we try to send our change set to procution org, we keep receving this error message: "This change set requires the "52.0" or later platform version. One or more of the listed organizations is on a version incompatible with this change set. You can only select an organization for upload that is running the required version or later." We checked the API version in everything on the changeset and there is nothing with API version 52.0 Any ideias?


Do Mandalorians truly never remove their helmets?

In episode 3 of The Mandalorian, it is said that Mandalorians never remove their helmets for any reason. Really? Not even to sleep or bathe? Is there any canonical source for this idea? I’m going to assume that the “never” implies “Never removes their helmets in public…” right?  But in flashback scenes to the Mandalorian’s childhood, nobody is really pictured wearing Mandalorian armor let alone helmets. They simply seemed like basic humans who might just be unified by wearing maroon wardrobes all the time.  So what is the deal with this claim? What is the canonical context of the claim?      Looking for in-universe, canonical explanations; not armchair speculation and theories. If none (currently) exist, legends explanation would suffice. Regardless, please provide references and context.


They had almost reached the door when a voice spoke from the chair   nearest them, "I can't believe you're going to do this.”   I guess nearest is at the place of preposition. Can a preposition have the form of superlative?


How to install wine through playonlinux in ubuntu 16.04

I have been trying to install wine but I encountered issues like  The following packages have unmet dependencies:  winehq-stable : Depends: wine-stable (= 3.0.1~xenial) E: Unable to correct problems, you have held broken packages.   and got solutions from  and  but nothing solved it.  So I read somewhere that you can  from. So I installed wine using . However, I am unable to figure out how to install wine from playonlinux.  So I found it from  and ran  sudo apt-get install wine   but I get this error:  The following packages have unmet dependencies:  wine : Depends: wine1.6 E: Unable to correct problems, you have held broken packages.   How to resolve?  UPDATES  -   @Norbert    @ David      The output of the commands is below:  sudo apt-get install playonlinux   ...  sudo apt-get install -f   ...  $ apt-cache policy "$(dpkg -S "$(which wine)" | cut -d : -f 1)" ... N: unable to locate package  $ wine --version ... wine: command not found


Cannot access LAN with WAN address from within my LAN

Ok my title is a little bit convoluted. Allow me to explain.  I have a server in my LAN that listens for HTTP connections at let's say 192.168.1.10:1234. I can access this address from my other computers and everything works as expected.  Now to access this server from the Internet I have forwarded the port 5678  to the port 1234. If I go to a PC outside my house and enter 62.62.62.62:5678 (my ISP address with the forwarded port) in the web browser, I am able to access my server.  If I do the same exactly thing from within my LAN I get a timeout error.  What is wrong here?   (I am newbie in networking so please forgive my ignorance.)


We have a Advent PC that has 2GB of RAM and a 2.20GHz (I can list full specs if needed) 64bit CPU, on Ubuntu's website it says if you have 2GB of RAM or less install the 32bit version; but couldn't we benefit if we installed Ubuntu 64bit? That way the OS could take advantage of the CPUs 64it instruction set. Any answer would be appreciated.


Are songs written for anime openings or endings?

I know that some songs in anime openings or endings come from popular J-Pop singers/albums (such as the Bleach opening Rolling Star by Yui). However, some opening songs seem to show up during the show, such as themes appearing during final battles. Are opening or ending themes generally written specifically for the show or are they taken from popular Japanese songs.


Its been a while I am looking for mechanism of screen capture in MacOS. Even with extensive googling I found no luck with its actual mechanism. Can somebody guide me through some good resources or even better the actual mechanism and implementation of screen capture (with api calls and functioning)? Thanks


I have an entire function $f $, whose restriction to $\mathbb C \setminus \{0\}$ is defined by $$f (z)=\frac {\sin z-z} {z^3}.$$ I must show that it has infinite zeros. Clearly it has order $1$; I think that I should use Hadamard factorization theorem, but I can't see clearly how to proceed. I'd like just a hint to start with, thank you in advance


Leaving undergraduate schools attended off grad applications

Grad applications usually list all undergraduate coursework. Is it necessary to list all schools attended, even ones I did not graduate from?


Survival analysis without observing survival times

I have a cross-sectional dataset in which, for each participant, I know their total exposure time and whether they experienced an event during their exposure time (1/0). However, I do not observe the time at which they experienced the event. So for instance, if I had a participant with 14 months of exposure time who experienced an event, I know they had that event sometime between 0 and 14 months of exposure but I don't know when.  It seems to me that if I had a bunch of participants with a particular exposure time (say, 10 months), then the proportion of those participants who did not have an event would be an estimate of the Kaplan-Meier curve at 10 months of exposure. This seems to suggest that some sort of smoothing estimate (e.g. LOESS smoothing) could estimate a Kaplan-Meier curve from my data -- the data being smoothed here would take x values of the exposure times and y-values of 1 for event-free participants and 0 for participants with events. A clear downside to smoothing is that the estimate is not guaranteed to be monotone.  Are there standard approaches that can be used to estimate a Kaplan-Meier curve with this sort of data?


Kaplan's Advanced Calculus defines the gradient of a function $f:\mathbb{R^n} \rightarrow \mathbb{R}$ as the $1 \times n$ row vector whose entries respectively contain the $n$ partial derivatives of $f$. By this definition then, the gradient is just the Jacobian matrix of the transformation.  We also know that using the Riesz representation theorem, assuming $f$ is differentiable at the point $x$, we can define the gradient as the unique vector $\nabla f$ such that   $$ df(x)(h) = \langle h, \nabla f(x) \rangle, \; h \in \mathbb{R}^n $$  Assuming we ignore the distinction between row vectors and column vectors, the former definition follows easily from the latter. But, row vectors and column vectors are not the same things. So, I have the following questions:   Is the distinction here between row/column vectors important? If (1) is true, then how can we know from the second defintion that the vector in question is a row vector and not a column vector?


When typing a topic of a question, show some search results from google

Now when I want to post some question, I can see already asked on SO questions, listed below, when I type topic on the question form, but what if to show side by side some search results from search providers ?  On my memory, many of questions posted on SO are located on first lines on google. So why not show them too ?


What is up with the source code license on Stack Overflow?

I know this has been asked several times. I've read the responses. I'm still very confused.   What are the legal requirements for using samples from SO in other projects? If there are requirements, how should we go about removing them?  Case in point: a user whose question I answered was concerned about the CC license. I had to email him the solution to remove his fears of licensing. That's stupid, I don't want to give out my email address to work around legal issues.   So can someone at this organization clarify this is the intent?  If so, what is a legally sufficient means of bypassing the license?  One related answer suggested a profile message that source posted would be considered public domain and free of licensing. Is this sufficient?  Regardless of the answer above I'd like to make a recommendation that a 'Public Domain Content' checkbox be added for answers. Since I may pull code from an already public domain source the license does not apply anyway.  UPDATE   actually clears it up a little, my apologies for being a twit and not finding this first.  Most of my confusion comes from  where the basic consensus among answers was to 'consult an attorney' which is IMO counterproductive.    PS: I still think a "License Free" option for posts would be an ideal solution.


How would you solve the diophantine $x^4+y^4=2z^2$

I would like to know any way of solving the diophantine equation $x^4+y^4=2z^2$. Or ideas that seem worth trying out.  By solving I mean fining all solutions and proving there are no more.  Keith Conrad showed how to reduce this equation to a different one which was solved by Fermat in his notes about Fermat descent, other than I have no ideas how to solve it. I tried to do descent on it directly but that seems completely impossible so I am interested in other techniques. Thanks very much.


exchange address book include all AD users

We currently have exchange 2010 setup as a test behind our domino servers. All our users are in Active Directory and have the AD mail attribute set to their email address. I would like to know if there is a way to include all AD users in the address book even if they do not have an exchange account. I have read this post:    about creating separate contacts for the users but I would like to use the current AD users rather than keep a separate list of users. Any Ideas?


Semi-transparent materials are looking fine under viewport render, but are invisible under normal render.  Here are my material nodes:    Here is a difference between viewport render and normal render:


How do we know that some radioactive materials have a half life of millions or even billions of years?

If a radioactive material takes a very long time to decay, how is its half life measured or calculated? Do we have to actually observe the radioactive material for a very long time to extrapolate its half life?


Unexpected Results From Clicking The Unanswered Button

Is it possible that I am not using this feature correctly?  Or perhaps I should be modifying my expectation, but when I click on the 'Unanswered' button I get a list of results that contain perhaps one or two unanswered questions at the top, followed by many more already answered questions.  Another strange thing is that interspersed with the results are random unanswered questions within and around the answered ones, so that we are not only seeing answered questions in with the unanswered ones, but they are not sorted so that the unanswered ones stack up at the top.  Am I the only one to be seeing this?  Am I not using the feature correctly or is there some way that I am supposed to sort the results on my own?


Can a Filipino citizen with US green card exit Shanghai for a layover?

I have a 12 hr layover in Shanghai but I am not sure if I can go around and see some sites in Shanghai. Does anyone know if I am qualified to get the TWOV in Shanghai for 24 hrs?   Tahnks


I do Kirchhoff law then I found I1=232uA, I2=158uA, I3= 0,074uA  now I want to calculate voltage Thevenin (voltage between A and B)?  I do like this 0.000232 * 10000=3.23  but I 3.23 not correct   Can you guide me


Generate all multisets of length k for n symbols

I am trying to generate a list of all multisets of length $k$ in a set with $n$ symbols. For example, if I had the set   $S = {A, B, C}$  I would expect the following output for $k = 2$ and $n = 3$:  $O = {(A,A),(A,B),(A,C),(B,B),(B,C),(C,C)}$  What is the proper way to go about generating this list?


I have a Palestinian Authority passport and a work permit and residence in Turkey. I also have USA and Schengen multiple visas. I have used the Schengen visa several times and it's valid until April 2019. The USA visa is valid until June 2019.  Do I need a visa to enter Georgia?


Does anyone know a good resource that gives a full tutorial on UV unwrapping?

I'm currently amateur-ok at UV unwrapping, but I want to learn how I can straighten UV islands and be able to organize them better, but I haven't found any good resources. Does anyone know a good one?


What's a simple way to recompile the kernel?

I'm interested in compiling a new kernel under Ubuntu 12.04 x86 64 bit.  I found  which is basically a mirror for  and there are a lot of steps (git, etc.) that appear useless to me.  With earlier releases/distros, I used to create a .config file and modify a Makefile if I needed to, then just run make and it's done.  Is there is a simple way to do this under Ubuntu?


Increasing score by improving utilization

I have 3 credit cards almost maxed out at 92% utilization.    If I pay down all my credit cards to utilization totaling 20% is it possible to raise my credit score by 75 points? I am currently at 620.


Null Pointer Exception when getting a value from a Document

all. I'm trying to get a value from a document, that looks like this:  {       "id" : player:(some number)",       "name" : "Martinez, Javi",       "type" : "midfielder",       "jersey_number" : 8,       "position" : "Central defender"     }   I have players in an ArrayList<Document> playersOnPitchHome and want to find one with a particular "jersey_number"  My code (below), however, is giving me a NulPointerException in the row I've highlighted with the //here comment. As far as I understand, the exception is not occuring due to me accessing playersOnPitchHome  The Code:  Document player = playersOnPitchHome.get(0);        int i;        for (i=0; i<playersOnPitchHome.size(); i++) {            player = playersOnPitchHome.get(i);            int numberTemp = (int) player.get("jersey_number"); //here            if (numberTemp == playerNumber) break;            if (i==(playersOnPitchHome.size()-1) && numberTemp != playerNumber) {               throw new Exception ("there is no such player on the pitch");           }      }   Thank you in advance.


I am a blender beginner and after watching some tutorials online I figured I'd give modeling and animation a try. I am trying to make an oil hourglass animation that will move the liquid downwards., I have a physical reference of it. The only issue is that my liquid doesn't seem to want to pass through 2 holes I made on the container mesh, I suspect it's because of the wrong facing normals right outside of it:  I managed to get the liquid to flow inside of the top sphere.  but It won't flow into the rest of the mesh.  Will I have to create a new mesh? Help is appreciated, thank you!


How do I set combobox read-only or user cannot write in a combo box only can select the given items?

I am facing a problem in setting the combo property such that only user can select the values form given items, but I cannot write in the combo box.  How can I do so in C#?


Labels cannot be moved although data-defined settings are active

I'm trying to manually move labels but having some trouble. I'm trying to move the labels while in edit mode. I've added fields for x coordinate (all null), y coordinate (all null), rotation (all =0), and font-size (all =10). This makes the "move label" and "rotate label" buttons active, but when I click on the labels, no box around the label appears and it's impossible to move the label. What am I doing wrong?


On the profile page I can see my activity graph over time.  How can I see the reputation graph including my profile on other sites?


Open links in private browsing (incognito) window automatically in Chrome

Is there a way (except click-right → Open Link in Incognito Window) to make Google Chrome open all links in an incognito window from normal browsing mode?


Conflict between MathTime Pro 2, refcheck and braces in text mode

The following MWE shows the problem:  \documentclass{article} \usepackage{amsmath} \usepackage[lite]{mtpro2} \usepackage{refcheck}  \begin{document} \begin{align}   a & \leq b \end{align} \end{document}   And I get a ! Missing $ inserted.. The problem disappears when refcheck is not used, or when mtpro2 is not used.  Does anyone sees a way to use both packages simultaneously?  Also an input such as  \documentclass{article} \usepackage{amsmath} \usepackage[lite]{mtpro2}  \begin{document} Braces \{in text\} \end{document}   produces the same error.


Debian - Port 80 is blocked, but I don't know by what

I can't make lighttpd listen to port 80.   ~# /etc/init.d/lighttpd start Starting web server: lighttpd2013-03-16 23:15:02: (network.c.379) can't bind to port:  80 Address already in use  failed!   Actually I have apache2 installed on my server, too (listening to port 80) but it is not active.   I used netstat /  netstat -npl but it wasn't helpful  How can I figure out what is using the port?


How to overwrite the SLDC css class class in LWC?

Is it possible to overwrite the SLDC css classes?   I tried changing below :   .slds-input:focus, .slds-input:active{     border-color: rgb(255, 0, 0) !important;     box-shadow: none; }   I wanted to change the border-color to red, but it eventually defaults to blue on the component. rgb(21, 137, 238);  Is there a way to change the border-color property of the css class?


Transparent Texture doesnt come up correctly in texture shading. A glitch?

I have 2 questions:   I am using a texture with a transparent alpha channel. It renders alright, but it displays in the 3D Viewport's texture shading mode all wrong, as you can see below. Is this a glitch or did I do something wrong?        Is there any way I can make the grey area outside the texture a different shader? Everytime I put a UVmap there, thinking nothing would appear on the model, the texture still appears! Is it obligatory to fit everything in that little square?   Any help will be appreciated! Thanks!


App drawer icon gone from Cyanogenmod dock

I have a Samsung Galaxy S2, running the latest CM10.1.  I lost the app drawer icon on my Dock; I must have deleted it. The app drawer icon lets you go to the app list, and the widget list.  How do I get the app drawer icon back? The icon looks like a circle with 6 dots inside it.


Clean algorithm to get Excel column letters from column index

This is trickier than it looks at first blush.  In Excel, columns have letter identifiers:    1st column is "A" 2nd is "B" ...  26th is "Z" 27th is "AA" 28th is "AB" ... "ZY" "ZZ" "AAA" ...   I am looking for the cleanest algorithm (i.e. the most readable) that can turn the column number into the column identifier.  I explicitely don't want a solution that works inside Excel. It needs to run standalone.  I have my solution, but am looking for other approaches.  Here are my (NUnit) test cases. They are correct, to the best of my knowledge.      [TestCase(1, "A")]     [TestCase(26, "Z")]     [TestCase(27, "AA")]     [TestCase(52, "AZ")]     [TestCase(53, "BA")]     [TestCase(702, "ZZ")]     [TestCase(703, "AAA")]     [TestCase(18278, "ZZZ")]     [TestCase(18279, "AAAA")]     [TestCase(475255, "AAAAA")]


Question What is the probability that a ﬁve-card poker hand contains "four of a kind hand"? For More information about poker's four of a kind hand,please refer  My Attempt $\text {Rank of card-: Jack,King,Queen,Ace}$$,9,8,...1$ In four of a kind hand , $4$ cards are of the same rank( and obviously of diiferent type) $\Rightarrow$ Now in a set of $52$ card,we have $13$ ranks of $4$ kind(spade,heart,diamond,club) $\Rightarrow$ four of a kind hand says  $4$ cards are of the same rank. So Among $13$ ranks ,select $1$ of the rank i.e $\binom{13}{1}$, and the remaining last card can be any thing I am not getting how to move forward ,please help me out. Thanks in advance


Android - openFileInput() NullPointerException

I'm trying to generate a code as string in my android application and save it to a text file. When you press a Share button, the code should be read from the text file and be copied to the clipboard.  I guess I'm not understanding something about acivity/context. Of course I read in the documentation about it, but I can't figure out the problem. Hope you guys could help me!  FileSystem.java  package com.niclasjaksch.shoppinglist;  import android.content.Context;  import androidx.appcompat.app.AppCompatActivity;  import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException;  class FileSystem extends AppCompatActivity {      static String filename = "shoppinglist_code.txt";      void Create() {         try {             FileOutputStream fOut = openFileOutput(filename, Context.MODE_PRIVATE);             String str = Utility.randomString(10);             fOut.write(str.getBytes());             fOut.close();         } catch (IOException e) {             e.printStackTrace();         }     }     String Read() {         String result = "";         try {             FileInputStream fin = openFileInput(filename);             int c;             while( (c = fin.read()) != -1){                 result += c;             }             fin.close();         } catch (Exception e) {             System.out.println("An error occurred.");             e.printStackTrace();         }         return result;     }     void Clear() {         try {             File dir = getFilesDir();             File file = new File(dir, filename);             file.delete();         } catch (Exception e) {             System.out.println("An error occurred.");             e.printStackTrace();         }     }  }   Share.java  package com.niclasjaksch.shoppinglist;  import android.content.ClipData;  import androidx.appcompat.app.AppCompatActivity;  class Share extends AppCompatActivity {      android.content.ClipboardManager clipboardManager = null;     FileSystem fs = new FileSystem();      void Share() {         String code = fs.Read();         if(code == "" || code == null) {             fs.Create();             code = fs.Read();         }         ClipData clipData = ClipData.newPlainText("Source Text", code);         clipboardManager.setPrimaryClip(clipData);     } }   MainActivity.java      ...      Share share = new Share();      ...      @Override     public boolean onOptionsItemSelected(@NonNull MenuItem item) {         switch (item.getItemId()) {             case R.id.item_share:                 share.Share();                 return true;             default:                 return super.onOptionsItemSelected(item);         }     }   Getting a NullPointerException in this line:  FileOutputStream fOut = openFileOutput(filename, Context.MODE_PRIVATE);


What explains the current shift from glossy UIs to matte UIs?

I've noticed an interesting phenomenon in the user interfaces of many famous applications, they're moving away from the glossy complex to a more dull and bare minimum design.  Why the sudden change? It also appears that most of these companies have adopted this design around the same time, was that linked to some new study?  Examples:


What kind of number is $2^\sqrt{2}$ ? It is real and obviously is not integer nor rational. Is it real algebraic number?


What are the benefits of a more expensive SSL certificate?

I've been comparing prices of different SSL certificates and found a massive difference in prices between different providers.  If we take  as an example, what would be the advantage of going for the Geotrust certificate for $48.88/year over the RapidSSL $9.95/year option?


Trying to assign a material to a face of a mesh and always this happens. It goes over the selection. All the weird things happen to me. :P


Two-word surname abbreviation with alphabetic style

I am using biblatex for my bibliography, and the style is alphabetic. More precisely, in the preamble I have  \usepackage[babel]{csquotes} \usepackage[maxnames=99,style=alphabetic,backend=bibtex]{biblatex} \addbibresource{bibliography.bib}   In the bibliography I need to include a two word surname. This is what I have in the .bib file  @article{dJ97, author = {de Jong, A. J.}, title = {Families of curves and alterations}, journaltitle = {Annales de l'institut Fourier}, year = {1997}, volume = {47}, number = {2}, pages = {599-621}, }   In this way, the abbreviation produced is [Jon97], and is alphabetized as a surname starting with J. On the other hand, I have always seen this author alphabetized under d (which I guess should be the correct outcome), and the abbreviation including the "d" of "de". After a quick look online, I just found co-authored works of the author cited in a bibliography style as I have, and the abbreviation is "dJ" followed by other capital letters for the other authors. So, in my case, I guess that the right outcome should be something like [dJo97], or [dJon97].  Which one should the right outcome in my case? How do I get it?


Troubleshooting utility or resources for Windows 10 1803 Update BSODs?

After the Windows 10 1803 update, I started seeing random BSODs.  This was not a problem prior to the update. After trying the Windows 10 Troubleshooting tools and going through the recommendations on the forums, I am still getting a BSOD every 5 to 10 minutes.    The commands:  SFC /SCANNOW   DISM /Online /cleanup-image /restore-health  Report no problems.  The Microsoft Bluescreen Troubleshooter finds no issues.  The Bluescreen Viewer from NirSoft points to NTOSKRNL.EXE but I don't see a specific driver that caused the crash.  This seems to indicate that the 1803 updates are not compatible with one or more of the drivers on the machine.  Are there any third-party tools that can be used to determine the drivers?  Also are there any ways to "ghost" the applications and data on the machine to an External Drive so that they may be used on another PC?  This PC has never recovered from the initial 1803 update.  Are there any diagnostic tools or procedures that can detect issues that are not found by the Windows 10 Troubleshooting Utilities?


I have a trigger that plays an animation but when i switch scene and i come back to the original scene, the animation plays again. I want to remember actioned triggers in order to play triggers once per scene. How can I do that?  The GlobalScript  public class GlobalScript : MonoBehaviour  {     public static GlobalScript Instance;     public Animator ani;     void Awake ()           {         if (Instance == null)         {             DontDestroyOnLoad(gameObject);             Instance = this;         }         else if (Instance != this)         {             Destroy (gameObject);         }       } }   The current script (Running every time i load the scene)      public Animator ani;     public AudioClip sound;     public GameObject text;     private int seconds = 2;     //var delay = 2.0; //This implies a delay of 2 seconds.  //  public void SavePlayer(){ //      GlobalScript.Instance.ani= ani; //  }      // Use this for initialization     void Start () {         ani= GlobalScript.Instance.ani;         ani.enabled = false;         text.SetActive (false);     }      void OnTriggerEnter(Collider other){         AudioSource.PlayClipAtPoint (sound, transform.position);         ani.enabled = true;         text.SetActive (true);         Destroy (gameObject);         Destroy (text,3);         //text.SetActive (true);         //StartCoroutine(Die());     }      //And function itself     IEnumerator Die(){         //play your sound         text.SetActive(true);         yield return new WaitForSeconds(2); //waits 3 seconds         Destroy(gameObject); //this will work after 3 seconds.     } }


What is the easiest way to open a foreign Bank Account?

I live in Argentina. Nowadays in my country it is almost impossible to buy foreign currencies as American dollars or Euros.   I was thinking if it is possible to open a foreign Bank Account to be able to save money in i.e. USD.  One of the things I could need is to make wire transfer.  I was seeing some Swiss banks that allow me to open an account, but the minimum is something like 5k CHF (a lot of money for me).  I'm also European citizen, however I'm looking for a way to open the account completely online.


Why do three nucleotides code for one amino acid? Why not 5 nucleotides?

We all know why there are 3-base codons, and why there aren't any 2-base codons. But why is there not a 4-base a 5-base codon?


Why does the jQuery selector not see the newly added element

Simply list "todo". One click add class "done" second click remove items. Adding form to add new items.  If I add new list item by form, jQuery selector $('li') not see this and does not take into account when changing class.    var $listItems = $('li'); var $list = $('ul'); var $form = $('#newItemForm');  // add item $form.on('submit', function(e){       e.preventDefault();   $('ul').prepend('
' + $('input:text').val() + '
'); });  // set item class as 'done' and remove $('li').on('click', function(){          if ($(this).hasClass('active')){                 $(this)         .insertAfter($listItems.last())         .attr('class','done');             }     else if($(this).hasClass('done')){         $(this).remove();             } }); .active {background-color:red; color:#fff;} ul{ -webkit-padding-start: 0px; margin-bottom:15px;} ul li {margin-top:3px; list-style:none; line-height:35px; padding:0px 5px; border: 1px solid #808080; background-color: red;} .done {background-color: green;} body{width:250px; margin:0px auto;}

milk

cabbage

cucumber  bonus

honey

lemon

          <form id="newItemForm">     <input type="text" id="itemDescription" placeholder="Add name..." />     <input type="submit" id="addButton" value="Add" /> </form>


Traveling to USA using the South african refugee travel document

I would like to know, whoever has travelled to the USA using the south african travel document  how did they do it?   What is the process and how will I go about it ?  Please respond . I am afraid of being rejected because they might think I am going there to stay because my document says refugee.


If every compact set is closed, then is the space Hausdorff?

I know that in a Hausdorff space, every compact set is closed.  However, is it true that if every compact set is closed, then the space is necessarily Hausdorff?


was Voldemort's body snakelike before his Resurrection?

I am confused, did Voldemort look like a snake before he died the first time, or like Tom Riddle? the people at the ministry in OotP recognized him, so does that mean he was all disfigured then, or was that the result of the potion that resurrected him? even though this is marked as duplicate, i still want an answer, and the other questions don't fully answer this question (for what i want from it)


I have a 4GB RAM laptop with 500GB hard-disc space and I'm using Ubuntu 18.04 LTS. So, I need to use the android studio a lot and recommended RAM for that is 8GB. My computer crashes a lot lately so really either should buy an 8GB Ram to do the swap partition. I would love to find a solution with no costs!  So my question is this: Should I swap space to double my RAM? Would that be harmful to my computer? Please, guys, be nice!


When I sleep, I don't want to hear any notifications from my phone, unless I get a phone call. In case it's an emergency from a family member, etc.  Is there a way to set it to silent on every app but phone calls easily?


How to search the content of visited pages in Google Chrome?

I tried searching in the Chrome's History (chrome://history/) for a word but it didn't find anything.  Is there an addon to search the content of visited pages?


Are there services that offer to recover data from irreparably water-damaged iPhones?

I have an iPhone 6 which took a dump in a river. Since then, it will not turn on and does not register when connected to a computer, i.e. it is dead for all intents and purposes.  Does anyone know of a company that offers to read the data directly from the iPhone's flash storage or if this is even feasible (considering that damage is likely with the logic board since exchanging first the battery, then the Lightning connector and plugging into external power did not allow booting the device)?  I am aware that such services may be very costly. I was just wondering if there is a market for this kind of problem at all.


How do I find a file with a name which depends on the current date (and a random component)?

I have to check a particular path every day and find the file with a name of the form:  StaticData_Sets_yyyymmdd-232550.txt   The date in the name after the string StaticData_Sets_ is updated every day depending on the system date. The number after the date is random.  How can I find the file for the current date in Unix?


Need help with a grammar question about prepositions

Is “to” in the following examples a preposition, or does it act as part of the verb (to obtain, to sign, to complete)? Many thanks!  ▻ I finally managed to obtain a copy of the report. ▻ Both governments have agreed to sign the treaty. ▻ You're allowed half an hour to complete the test.


My home page in Firefox [v4.0] and Internet Explorer [v9.0.8112.16421, Update Versions RTM (KB982861)] is currently set to Google but when I depress the quick start icon to start up either browser, I am getting the following immediate results:  Unable to connect (In Firefox)     Firefox can't establish a connection to the server at www.google.com.         The site could be temporarily unavailable or too busy. Try again in a few moments.   If you are unable to load any pages, check your computer's network connection.   If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.      Internet Explorer cannot display the webpage     What you can try:      Diagnose Connection Problems      More information      This problem can be caused by a variety of issues, including:         Internet connectivity has been lost.   The website is temporarily unavailable.   The Domain Name Server (DNS) is not reachable.   The Domain Name Server (DNS) does not have a listing for the website's domain.   There might be a typing error in the address.   If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.         For offline users      You can still view subscribed feeds and some recently viewed webpages.      To view subscribed feeds:          Click the Favorites button , click Feeds, and then click the feed you want to view.         To view recently visited webpages (might not work on all pages):          Press Alt, click File, and then click Work Offline.   Click the Favorites button, click History, and then click the page you want to view.      Thankfully, I am able to use one browser that I have installed on my computer (Mathon v3.0.20.5000) to search online for technical assistance in this matter.  I have seen several WinSock error issues mentioned; but, they are pointing to Windows XP and I am using Windows 7 Pro and remain uncertain whether anything identified as a fix for one OS will work in another.  Things I've tried:   HiJackThis Complete scan with Avira AntiVirus Premium.   What am I overlooking?  What should I do to address this problem?


How to activate GRASS GIS 7 plugin in QGIS 2.8?

Apparently, my linux ubuntu setup of QGIS doesn't contain grass gis, although when I initially installed it last week I added grass gis to the command line. Anyway, I typed in once again and installed grass gis 7.0, however while GRASS starts, the plugin QGIS for it doesn't show up. Any ideas?


$n\in N,   a_{n+1} = a_n  (1 - a_n)$ , $0 < a_0 < 1$. Prove that $\lim\limits_{n\to\infty} a_n\cdot n = 1$. I proved that $\lim\limits_{n\to\infty} a_n = 0$ and that $a_n$ is strictly decreasing. I tried Cezaro Stolz but didn't get anywhere. Thanks in advance.


Prove that two lines are perpendicular in isosceles triangle geometrically

We have given isosceles triangle $ABC$ with baseline $AB$. Point $M$ is midpoint of AB. Draw perpendicular line to side $AC$ through $M$ which intersects $AC$ in point $H$. Let $P$ be midpoint of $MH$. Show that lines $BH$ and $CP$ are perpendicular to each other.  I also have "hint": Construct height $BD$ to side $AC$ and look at the triangles $ABD$ and $MCH$.  Analytically there is no problem but I get stuck in geometrical approach to solution.


Returning to UK using C Business Visitor Visa

I have a C-business-visitor visa to the UK (multiple entry visa), that I used to represent my NGO in a conference on November. My visa is still valid. Can I use it again to enter to the UK  to present again my NGO and plan for a training in citizen journalism for young girls in London?  I have a stamp on my visa of the date I entered the UK in.  If yes, what do I have to provide at the airport?


Detect if Windows operating system in C++

How can I detect if the operating system is Windows in C++/C?


Prove that $\sum\limits_{k=1}^n\lfloor n/k\rfloor+\lfloor \sqrt{n} \rfloor$ is even.

Let $n$ be a natural number. Prove that    $\displaystyle \sum_{k=1}^n\lfloor n/k\rfloor+\lfloor \sqrt{n} \rfloor$ is even.   I tried to introduce the fractional part, but it didnt help me. Next, I considered an inequality to create a bound, but that too was in vain. Next I found out that $\lfloor x \rfloor = \lfloor x/2 \rfloor +\lfloor x+1/2 \rfloor$. I applied this, but as all were as a sum, it became hard for me to cancel out and it made my work difficult. Now the next problem is about the square root in the box. I once saw in an example that   $$\lfloor \sqrt{n}+ \sqrt{n+1} \rfloor = \sqrt{4n+1}$$  Now even if this may seem useful, I cannot understand how to remove the $\lfloor \sqrt{n+1} \rfloor $ from the identity. Any help would be helpful!


"On fire" versus "in flames", "on parole" but "in prison"

A house can be 'on fire' or 'in flames'. They can be used interchangeably, but there seems to be a difference of involvement - 'in flames' suggests the house is engulfed by fire, 'on fire' could mean that only part of the house is burning. Maybe the rule is that 'in' indicates a stronger involvement then 'on'. 'On' has a sense of separateness - when a house is 'on fire' you can see the house and the fire as two things. You can put the fire out and the house could remain. 'In flames' suggests that even if you put the fire out, what's left is a very different structure.  Someone 'on parole' is not defined by parole. They have a life and parole is just a part of that. When you're 'in prison', you're not just physically contained, your life is defined by prison.   'I bought a shirt on sale' versus 'I bought a shirt in a sale' stumps me. They seem different but can't quite put my finger on it. The first emphasises the shirt, the second also brings to mind the context of where I bought the shirt.   Is 'on' used when the way you got the shirt is not as important as the shirt itself? And 'in' when the context of buying the shirt is relevant? 'In a sale' brings to mind the jostling and competition between customers looking for cheap shirts.


How do I create a decimal field in Access with Alter Table?

I want to programmatically create a new column in an MS Access table.  I've tried many permutations of ALTER TABLE MyTable Add  MyField DECIMAL (9,4) NULL; and got:      Syntax Error in Field Definition   I can easily create a number field that goes to a Double type, but I want decimal.  I would very strongly prefer to do this in a single ALTER TABLE statement and not have to create a field and then alter it.   I am using Access 2003.


What's the purpose of @ in this c# code?

I have seen a sample C# code that looked like this:  private static string GetCommandLine(Process process) {     string cmd = "";     using (var s = new ManagementObjectSearcher("SELECT CommandLine FROM Win32_Process WHERE ProcessId = " + process.Id))     {         foreach (var @object in s.Get())         {             if (cmd.Length > 0) cmd += " ";             cmd += @object["CommandLine"];         }     }     return cmd; }   What is the purpose of the @ in the loop variable?


Windows 10 upgrade to version 1607 keeps failing

Upgrade to 1607 keeps failing. Any ideas?  0xC1900101 - 0x3000D The installation failed in the FIRST_BOOT phase with an error during MIGRATE_DATA operation.  Help would be appreciated.


How to run a program, redirect its output and display the output on the screen?

doing this in bash script ./Execute_program > MyOutput I get a log file from the output, however this causes the output not to be displayed on the terminal screen. Is there any way to do the same but at the same time the output can be displayed on the screen?


How does one prevent homing missiles from orbiting their targets?

I am developing a 2D space game with no friction, and I am finding it very easy to make a homing missile orbit its target. I am curious about anti-orbiting strategies.  A simple example is a homing missile that simply accelerates directly toward its target. If that target were to move perpendicular to the missile's trajectory then stop, the missile's acceleration toward the target would not be enough to overcome it's own velocity, and the missile could be driven into orbit around the target, as depicted:     In frame 1, the missile is heading straight for its target, no problems. In frame 2, the target has moved to a new position as demonstrated. The missile continues to accelerate directly toward the target (in red), while still moving toward where the target used to be (in black) due to its existing velocity. In frame 3, the missile's velocity continues to carry the missile around the side of the target (black) while the acceleration vector tries desperately to pull the missile toward the target. In frames 4 and beyond, the missile falls into a potentially stable orbit around the target and never reaches its goal. The black arrows indicate a velocity vector while the red lines indicate acceleration vectors at the same moment in time.   Considering that there is no friction in space, there is nothing to slow the velocity of the missile down and collapse the orbit. A possible solution would be to aim "behind" the target, and this would cause the orbit to close, but how is this done from a programming point of view?  How do I make a homing missile reach its target?


I think I am dealing with this issue   I have large data set(10k data points) that slightly diverges from normal, and I get p-value of 0. I am interested in having perhaps a more crude test that tells me if data is extremely divergent from normal, versus looking somewhat normally distributed. I am currently trying Kolmogorov-Smirnoff, and in both cases I just get p-value of 0. Any alternatives?  I also looked at this:   So, taking all this into consideration, is there any kind of test I can perform that distinguishes between data that's roughly normal, and not normally distributed at all?  I am using scipy.


Can anyone help me with the following question.   If $a_{n} \geq 0$ and $\sum a_{n}$ converges then how to prove $\sum \frac{\sqrt{a_{n}}}{n}$ converges.    Any idea where to start. My idea was to try using comparison test since $\sqrt{a_{n}} \leq a_{n}$ but it appears that it wouldn't work if $0 \leq a_{n} <1$.


Unable to run a 32-bit program on 64-bit VM

I compiled a small "hello world" C program on Ubuntu 10.04 32 bit machine. Then I put the executable(a.out) on Ubuntu 12.10(64 bit) VMWare virtual machine and tried to execute it(./a.out). The OS does not identify the file and says 'No such file or directory'. But when I put the same executable on a Ubuntu 12.10(64 bit) running on a 64 bit laptop, it runs fine and I get the desired output. The VM is running on IBM Blade Servers. I wanted to know why the results for a VM?


sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt autoremove . i used this command and seems this error

E: Failed to fetch http://np.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-i386/by-hash/SHA256/06037c30d4089fb5eb7743e3e8b8f0844c499231dcfc81e7e2ed8beb2e170606  Hash Sum mismatch E: Some index files failed to download. They have been ignored, or old ones used instead.


How do I prove the following inequality $\sum_{k=n+1}^{\infty}\frac{1}{k^{2}\log k}\leq\frac{1}{n\log n}$?

I would appreciate some help proving the inequality $$\sum_{k=n+1}^{\infty}\frac{1}{k^{2}\log k}\leq\frac{1}{n\log n}.$$ Thanks in advance!


How to I get Python 2.x and 3.x to co-exist?

I'm new to programming and thought Python would be a good language to learn. Most of the tutorials I found were 2.7 based so I started to learn using that version. I've recently found a tkinter tutorial that I'd like to try out but I'm having a problem. If I run a script it will use Python 2.7 which contains Tkinter and not tkinter.  This problem made me think, how can I get my two versions to co-exist so I can program in both 2.x and 3.x?


I am selling some Adidas sneakers on eBay because they’re a size too big. This will be my first time selling anything on eBay.   The original price is $94 CAD and i’m selling them for $70 excluding shipping.  Today someone just offered to pay for $450 for these shoes. Do you think that’s legit ? I don’t really know how these things work so i’m not sure and I don’t think anyone would pay that much money on simple sneakers. Someone else offered to pay $75 which i am willing to accept.  What should I do?


I've been recently talking with someone in the comments of my answer to his question on Stack Overflow, and he moved the discussion to the chat, for which I had to open my browser. Then I thought: Why don't we have the ability to chat inside the Stack Exchange app? Actually, not a bad thought, though. I also noticed, the "create chat" privilege is not showing up in the app, but in the web interface it does. Would like to see this added by the Developers.


I need a function that can test whether a string has any special characters in it. I'm currently using the following function with no luck:  import re  def no_special_characters(s, pat=re.compile('[@_!#$%^&*()<>?/\|}{~:]')):   if pat.match(s):     print(s + " has special characters")   else:     print(s + " has NO special characters")   I get the following results:  no_special_characters('$@')  # $@ has special characters no_special_characters('a$@') # a$@ has NO special characters no_special_characters('$@a') # $@a has special characters   This doesn't make any sense to me. How can I test for ANY special characters in a string?


I found: "...peanut butter at 4¢ ..."   What the symbol is, and how to write?


i have three equations with number (reference) that i want to left align.  \documentclass[journal]{IEEEtran}  \usepackage{cite}  \usepackage{graphicx}  \usepackage[labelfont=bf, figurename=Figure, font=small]{caption} \usepackage[subrefformat=parens, labelformat=parens, font=small]{subfig} \usepackage{url}  \usepackage{textcomp}  \usepackage{hyperref}  \usepackage{microtype}  \usepackage[dont-mess-around]{fnpct}  \usepackage[misc]{ifsym}  \usepackage[depth=subsubsection]{bookmark}  \usepackage{booktabs}  \usepackage{makecell}  \usepackage{etoolbox}  \usepackage{authblk}  \usepackage{hhline}  \usepackage{multirow}  \usepackage{xparse}  \usepackage{cleveref}   \begin{document} \begin{equation}\label{eq1} x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} \end{equation}  \begin{equation}\label{eq2} \frac{d}{dx}r^n=nx^{n-1} \end{equation}  \begin{equation}\label{eq3} Length=\int_{a}^{b}\sqrt{[f't]^2+[g't]^2}dt \end{equation} \end{document}   By default, the equations are center aligned. How can i make them left aligned? I already tried \begin{flalign}...\end{flalign}, \begin{aligned}...\end{aligned} with [fleqn] it did not work for me. Any help will be highly appretiated.


When a champion holds the red buff he deals some damage to the enemy after he auto attacks him. What type of damage does red buff deals? Magic Damage? Attack Damage? Or none of those?


Floating or vertical results pane in SQL Server Management Studio

I have a multi monitor configuration and would like to be able to have my query editor on one monitor and the results pane on another.  Can this be achieved? Either by having the results pane vertically attached to the query editor instead of horizontally, or by having the results pane float completely separate from the query editor.  I am using SSMS 2008 R2 and can upgrade to 2012 if this is a new feature.  My current workaround is to have 2 SSMS instances open, both with the same .sql file open.   I make changes to one and save it, then switch to the other instance which prompts me to reload the script and I can then execute it with the results pane filling most of the monitor.


A couple of days ago I installed Firefox developer edition using the command line but it seems to have removed my 'standard' Firefox. No matter what I try I cannot get it back, I've followed guides online which say they completely remove Firefox but then when I reinstall it from the software center I'm using the developer edition again.  Is there a way to fix this?  I'd like to have both the standard & developer edition installed ideally.


Trigonometric equations involving $\prod_{r=1}^{n}\cos\left(\frac{x}{2^n}\right)$

It is a well known fact in trigonometry that, for $0 < x < \pi$, we have $\displaystyle \prod_{r=1}^{n}\cos\left(\frac{x}{2^r}\right) = \frac{\sin x}{2^n \sin\left(\frac{x}{2^n}\right)}$. This result proves useful when dealing with limits of certain functions, or summing trigonometric series. I started to wonder if there are any other useful applications of this result. Can anyone suggest any trigonometric equations that this result makes easier to solve? A pretty obvious one is $\frac{1}{8}\csc\left(\frac{x}{8}\right)=\prod_{r=1}^{3}\cos\left(\frac{x}{2^r}\right)$, but I am looking to see if there are more creative examples.


Compare two Set  and return list that does'nt exist in Set2

I am getting the desired result, but I want to avoid the nested FOR in my code. However my attempt failed. This is the best I could do. Can someone please guide me how I can avoid the nested FOR?  // I have two multiselect picklist fields on a Account object: Located_States__c, Supported_States__c // for every record, i want to compare the values in these two fields and  // get a list of values from Located_States__c that do not exist in Supported_States__c //e.g Located_States__c = {'AR'; 'MD'; 'CO'; 'IN'}, Supported_States__c = {'AR'; 'MD'} , //ValuesFromLocatedThatDontExistInSupported: 'CO', 'IN'    List <Account> accList = [Select ID, Name, Located_States__c, Supported_States__c                          FROM Account Where (Located_States__c != NULL || Supported_States__c != NULL)];  set<string> supportedstates =new set<string>();        String  ValuesFromLocatedThatDontExistInSupported = '';  Boolean Start = true;  for(Account acc: accList){      for(string str : acc.Supported_States__c.split(';')){         supportedstates.add(str);     }      for(string str1 : acc.Located_States__c.split(';')){              if(!supportedstates.contains(str1)){                                  if(Start) {                 ValuesFromLocatedThatDontExistInSupported = str1;                                                    Start = false;              } else {                                ValuesFromLocatedThatDontExistInSupported = ValuesFromLocatedThatDontExistInSupported + ';' + str1;                         }                acc.Remaining_State__c = ValuesFromLocatedThatDontExistInSupported;         }     }      }


Chinese Remainder for x= 7 (mod 8), x= 2 (mod 9), x= -1 (mod 5)

So I'm not very good at the chinese remainder theorem, but I think that x being 551 works. But I'm not sure how the negative 1 affects the equation. Also, if x=551 works, then would you multiply 8×9×5=360 and then subtract 360 from 551 to get x= 191 (mod 360)? Any help on this would be great! Thank you!


Do positively charged particles exchange photons?

I learned in  and in  that electrons repel from each other by exchanging photons. This makes sense when it comes to electrons, but what happens when two protons or two positrons repel each other? Do positively charged particles also exchange photons?


I don't understand why they say "One by one, the street lights went out leaving us in total darkness." Why there can't be "...the street lights went off..."? I have looked it up in dictionary; "go out" means "stop shining" while "go off" means "stop working". So why there can't be "went off"? Anyone please help me!


Calculation of an improper integral in the context of complex functions

I am facing the following improper integral: $$\int_0^\infty \frac{x^5\sin x}{(1+x^2)^3}dx.$$  Clearly the expression under the integral is a meromorphic function analytic on the nonnegative part of the real line and on the upper half plane (excluding the real line). I do not know how to proceed. I expect that we need to integrate over some larger path and use some residue formula. However we cannot integrate over a the border of a semicircle in the upper half plane increasing in radius because $\sin x$ becomes large as $\operatorname{Im} x$ becomes large. Moreover I do not see how to get from there to an explicit formula of the integral since through this method we would get the value of $$\int_{-\infty}^\infty \frac{x^5\sin x}{(1+x^2)^3}dx.$$  I do not really understand how I should proceed. I do not need a full answer but a hint (for example over which path to integrate or which formula or theory to use) should be enough.


Are the datum and the ellipsoid the same? What is a Datum?     The Earth is shaped like a flattened sphere. This shape is called an   ellipsoid. A datum is a model of the earth that is used in mapping.   The datum consists of a series of numbers that define the shape and   size of the ellipsoid and it's orientation in space. A datum is chosen   to give the best possible fit to the true shape of the Earth.  in this   article....


I've seen this question before, but none of the solutions are working for me.  I know the steps that are mentioned everywhere to get GUI applications working for WSL 2 on the Windows 10 Pro Insider Preview.   Install XServer on your windows 10 machine (here I used ) Run the XServer Install something in WSL 2 that you want to display (for me it was terminator) Run DISPLAY=:0 terminator -u to get it running.   However, when I do number 4, I get:  Unable to init server: Could not connect: Connection refused Unable to init server: Could not connect: Connection refused You need to run terminator in an X environment. Make sure $DISPLAY is properly set   When I echo $DISPLAY it returns :0 as expected.  When I try to open something simple like xclock I get Error: Can't open display: :0  The X server is definitely running as I set it up and it exists in the Windows 10 system tray.  I've tried many configurations for the X server, and I get the same thing every time.  I've also tried just setting the $DISPLAY in the .bashrc file, with the same results.  I've also tried the solutions proposed , by exporting DISPLAY to localhost:0.0, which the same results (also tried 0.0, :0, and a few others).  I've tried rebooting, uninstalling and reinstalling things, and I get the same results every time.  I'm not sure what to try next.


exactly represent Dirac distribution as derivatives of continuous function

It seems that in Rudin's functional analysis (P168, Thm6.27) that the Dirac distribution $\delta_0$ on $R^1$ can write as $$  \delta_0=f_0+f'_1+f''_2, $$ for $\{f_i\}_{i=0}^2\in C(R^1)$, there $'$ should be understand as derivative of distruibution of course.  My problem is, can we write down $f_i$ exactly?


chown command not working as expected. The command fails even though syntax is right

I have the following file for which i am the owner .   -rw-r-----    1 hhebburs users            40 Oct  9 15:43 failed_xls  but chown is not working .   /home/hhebburs>chown  mwoods failed_xls  chown: failed_xls: Not owner  What am i doing wrong ?   I understand now that i cant give away files .  Now my problem  is I have a whole bunch of files with write permissions on them and i am not the root .   Now i can zip the files but the minute i zip the files i become the owner . . After Zipping i still want the owner to be the one who created the file. and not me . Any way that is feasible ?


Vendors commonly give me sprawling, oversized proxy classes to pass information. Often times to get to the actual content of the message I have to descend into a property like this:  var priceOfEggs = BeingItself.PossibleUniverses.Universe[0].Galaxies.Galaxy[0].Systems.System[0].[...].LocalEconomy[0].PriceOfEggs;   And it turns out that all of these classes inside this spawn of WCF only have one object that holds anything (it creates the illusion that things are well organized, you see).  The problem is any one of these classes could contain a null, and I get an exception.  Defensive coding here is prohibitive. Null checks can lead to deeply nested code. Arrays are twice as bad because I have to check for null and then check to see count > 0. Sometimes I have to foreach through the array.  I can try/catch, but then it's hard to know where it hit the fan in production because it's not in my debugger.  Is there a way I can surface via Trace which class is null?  Is there a way to de-reference to the leaf node of this monstrosity safely without creating a jungle of software verbage?  EDIT: Thanks for whoever put the link above! It is basically the question I couldn't find by googling.


What does Relevance mean exactly as a sort option for a search? What's the criteria behind it? It's an obscure unclear word. I did a search in the help center for it and got zero results back! Is it the number of times my keywords exist in the question? Across the answers as well? ...what?


Transmission line reflection. I would like a non-mathematical explanation

I am a licensed radio amateur, and find bewildering the many different explanations, which range from folksy urban myth to Maxwell-Heaviside Equations, of what happens at the termination of a transmission line or feeder. I realise that they all come to the same thing in the end (or should do, pun perfect), but none of them give me a gut feeling for what is going on.  I like diagrams, so an answer in terms of (graphical) phasors for the currents and voltages at the load would suit me best. How, for instance, does a step pulse down the line cause twice the voltage at an open circuit termination? Similarly for current at a short circuit. And how is the reflected step generated by the inductance and capacitance of the line?  Can anyone help, without getting all mathematical, and not telling any "lies to children"?


How to set vertex weights using Blender's Python API?

Looking at the API docs I found , but It cannot be called in Edit Mode. When I try to call it, I always get:     RuntimeError: VertexGroup.add(): cannot be called while object is in edit mode.   The buttons in the vertex group list use bpy.ops.objects.vertex_group_assign(), but to work with it you have to manipulate selections, this is not nice to do from a script.    Why I try to use VertexGroup.add() in Edit Mode? My script works this way:  Human weight paint a bone, "Arm_1.L", "Arm_1.L" shares vertices with "Arm_2.L" in this case they share half the vertices (4 bone arm rig, trick to have nice deform in certain movements). When script run, all selected vertices that exist in both groups (Arm_1.L and Arm_2.L) will copy the weights of Arm_1.L into Arm_2.L but inverted. This way, I only need to weight paint "Arm_1.L" and "Arm_3.L", the script will fill the weights for "Arm_2.L".  import bpy  # ensure we are in edit mode bpy.ops.object.mode_set(mode="EDIT")  # configurable parameters src_group = "Arm_03.L" dst_group = "Arm_02.L"  obj = bpy.context.edit_object src_group_index = obj.vertex_groups[src_group].index dst_group_index = obj.vertex_groups[dst_group].index  mesh = obj.data sel_verts = [v for v in mesh.vertices if v.select] #sel_verts = mesh.vertices  # SEGFAULT in this line bpy.ops.object.mode_set(mode="OBJECT")  print("Working")  for v in sel_verts:     v1in = False     v2in = False     for g in v.groups:         if g.group == src_group_index:             v1in = True         if g.group == dst_group_index:             v2in = True     if v1in and v2in:         print("True")         obj.vertex_groups[dst_group].add([v.index], 1.0 - obj.vertex_groups[src_group].weight(v.index), 'REPLACE')  print("Finished")


Cannot Add PPA Behind Proxy Ubuntu 14.04

I am unable to add a repository via the command line on Ubuntu 14.04. Apt-get works perfectly fine, and I am able to update the system. I have configured my /etc/apt/apt.config file as follows:  Acquire::http::proxy "http://<username>:<password>@<proxy address>:<port>/";   For example, when trying to add the repository for y-ppa-manager, I receive:  add-apt-repository ppa:webupd8team/y-ppa-manager Cannot add PPA: 'ppa:webupd8team/y-ppa-manager'. Please check that the PPA name or format is correct.   If you need any more info., feel free to ask.


Why the following example prints "0" and what must change for it to print "1" as I expected ?  #include <iostream> struct base {    virtual const int value() const {       return 0;    }    base() {       std::cout << value() << std::endl;    }    virtual ~base() {} };  struct derived : public base {    virtual const int value() const {       return 1;    } };  int main(void) {    derived example; }


Magic [Post Id] formatting should give useful link text for tag wikis/excerpts

Currently, if you try to use the magic Id AS [Post Link]  formatting for a post that is a tag wiki or a tag wiki excerpt (i.e. PostTypeId IN (4, 5)), you get a link that goes to the right place but for which the text is "unknown". You can see this behavior at . It would be nice if these magic links would instead say something like "code-conversion wiki excerpt", if this isn't something that's too difficult to implement.


It seems that Google cuts my page title on search results. Is there a best practice to provide titles?  The page www.currenttime.tv/content/article/27236953.html should have this title: Кто такой 'бог Кузя'? Все что вы хотели знать о задержанном лидере секты.  And here's the title on Google:


Below code is just get bone euler_Angles.  import bpy pb = bpy.data.objects["Armature"].pose.bones["Bone001"] rotate_x = pb.rotation_euler.x rotate_y = pb.rotation_euler.y rotate_z = pb.rotation_euler.z   But this angle show local axis.  And in blender, if bone rotate on global axis, properties shown rotate values as local.  How can i get global axis rotate?


How do you do a deep copy of an object in .NET?

I want a true deep copy. In Java, this was easy, but how do you do it in C#?


In survival analysis, why do we model the hazard function instead of the survival function?

I've been studying the Cox Proportional Hazards model, and this question is glossed over in most texts.  Cox proposed fitting the coefficients of the Hazard function using a partial likelihood method, but why not just fit the coefficients of a parametric Survival function using the maximum likelihood method and a linear model?  In any cases where you have censored data, you could just find the area under the curve. For example, if your estimate is 380 with standard deviation of 80, and a sample is censored >300, then there is an 84% probability for that sample in the likelihood calculation assuming normal error.


HTTPS with or without 301 to keep rankings?

I am about to make a site move to https - my developers are doing this using a server-level rewriter and have said this means that redirects will be done automatically so no 301s are required from our old HTTP versions.   Please could you advise if this is correct advice?  This is a well-established site with quite a lot of backlinks and we obviously do not want to risk a big ranking drop.


Show that the eigenvalues of $T^*T$ and $TT^*$ are the same for a linear operator $T$ on finite dimensional space.

the following question has me stumped: Show that for a linear operator $T$ defined on a finite-dimensional space, the eigenvalues of $T^*T$ and $TT^*$ are the same. Its given in a tutorial chapter on finite-frame theory without proof.


Open file from remote computer on host computer

I'm trying to edit a file from a remote computer connected via ssh. How can I open the remote file on my local computer to edit?


python script automate download SRTM data through looping

i want to download the DEM data SRTM of the world automatically using python script. How is it possible?


I'm running badblocks to check for bad segments on an external drive, and it's been about an hour and it has not yet finished. Now, I need to go and consider cancelling. Is this somehow risky? Should I avoid this?   Clearly, I will need to start again from scratch; I just want to know if this is somehow risky to abort midway.


I ran into this expression in a paper I was reading, and I'm confused about part of the meaning.  Here $u$ and $v$ are two polynomials.  $$u, v \in \mathbb{R}[x]$$  I'm not really familiar with usage of $[x]$ here, but if it means "nearest integer", then isn't this expression equivalent to simply:  $$u, v \in \mathbb{Z}$$


Recently, when writing an email, I used the following phrase:  'I hope this does not cause too big of an issue'  However, in their response, the recipient (an English teacher) said that he was 'not too sure about the grammar of "too big of an issue"' (with no further comment). However,  seems to suggest otherwise. What could he have possibly picked out as incorrect in my usage of the phrase, and is it really significant enough of an issue to remark on in a response?  This question is not a duplicate because I'm asking about whether the phrase itself is correct, not the etymology of it. Further, it's considering the whole phrase (e.g can an issue be 'big', or should it be 'significant'?), and not just that one part.


what does "you have broken package." mean?

when I try to install g++  by  "sudo apt-get install g++" command line gives me the msg "Unable to install....You have broken packages." How can I fix it??? And what does that "broken package" mean??? plz help....


Setting permissions for /var/www/mysite?

After looking around this site, it's been said that it's best practice to use 644 permission for my websites in /var/www.  So I have done chmod 644 /var/www/mysite  I now no longer have access to the mysite folder, permission denied. After asking  it seems that I need to allow my user execute permissions.  I've done this but now feel I am in a bit of a mess.  So could someone please explain the best practice when it comes to setting permissions for /var/www/mysite?  I want myuser to be able to go in there. What sort of access should www-data have? Basically what permissions should I set for this folder and sub folders for each user?


I was reading about the cp command in unix and one of the options is:  cp -f : force copy by removing the destination file if needed  so I wanted to test this to see how it works, I did the following: In some directory as a root I created a file with the name "rootfile": -rw-r--r--. 1 root root    0 Jan  5 20:27 rootfile  then as a normal user called "User" I created another file called "Userfile": -rw-rw-r--. 1 User User    0 Jan  5 20:27 Userfile  now I tried to perform some simple cp of the file "Userfile" to the existing root file named "rootfile" while I logging using the normal user account "User" using the following command:  cp Userfile rootfile  and this what I got :  cp: cannot create regular file `rootfile': Permission denied  This is perfect normal  since I don't have permission to overwrite the existing root file. Now applying the command with "-f" option: cp -f Userfile rootfile  all works fine no errors were reported, now my question is how this is possible if i don't have permission to overwrite the file named "rootfile". Is it maybe because I have permission on the folder containing the file? and how does the -f option really works? Regards


How to factor polynomials of degree larger than $2$?

For instance, how do you factor a polynomial like $x^4+x^2+1$?  Secondly, is there any variation to the technique if it was a larger degree or not of the specific form I specified above?


Java Program doesn't work properly. (Methods Arrays Loops.)

This program always says "ERROR: PIN not correct" even I enter the "CORRECT" PIN,  I used "debugger" (IntelliJ) to see where mistakes are but I saw nothing. Debugger shows me they are same but anyway it shows me that they are not same things. Thanks in advance  public static void main (String args []) {      java.util.Scanner input = new java.util.Scanner (System.in);     int acctNums [] = new int [] {12345 , 67890};     String acctNames [] = new String []{"Mr Isk." , "Other"};     String acctPINs [] = new String [] {"0101" , "9876"};     double acctBalances [] = new double [] {10000.0 , 250.0};     ATM.login(acctNums , acctNames , acctPINs , acctBalances);   }   public static void login (int acctNums [] , String acctNames [] , String acctPINs [] , double acctBalances []) {     java.util.Scanner input = new java.util.Scanner(System.in);     System.out.println("Please enter your account number");     int acctNum = input.nextInt();     int index = 0;     if(findAccount(acctNums , acctNum) == -1) {         System.out.println("ERROR: Account not found");         System.exit(0);     }     else         for(index = 0 ; index<acctNums.length; index++)              if(findAccount(acctNums , acctNum) == index)                 break;     System.out.println("Please enter your PIN");     String PIN = input.next();     if(acctPINs[index] == PIN)         System.out.println("Hello" + acctNames[index] + "What would you like to do today?");      else          System.out.println("ERROR: PIN not correct");         System.exit(0);   }


I found this in a book I used to train myself for the Math Olympics a bunch of years ago:     Prove that $$\cos\frac{\pi}{7}-\cos\frac{2\pi}{7}+\cos\frac{3\pi}{7}=\frac{1}{2} $$   I couldn't solve it then and I can't solve it now. As far as I know, polynomials might be involved somehow since it was in the polynomials section of the book, and it's not suposed to use complex numbers since it's in the section previous to that.  Using the double and triple angle formulaes I got the LHS to:  $$4\cos^3\frac{\pi}{7} -2\cos^2\frac{\pi}{7} - 2\cos\frac{\pi}{7}+1 = \frac{1}{2}$$  Using the sum-to-product formulaes I got to the same result.  And I'm pretty much stuck at this point.


How do I construct an injection from rational numbers $\mathbb{Q}$ to integers $\mathbb{Z}$?  I need to write a proof and I'm not sure how to format it.


How to pass base parameters from an overloaded constructor into the derived class

Main  static void Main(string[] args)     {         string name = "Me";         int height = 130;         double weight = 65.5;         BMI patient1 = new BMI();         BMI patient2 = new BMI(name,height,weight);          Console.WriteLine(patient2.Get_height.ToString() + Environment.NewLine + patient1.Get_height.ToString() );         Console.ReadLine();     }   Base Class   class BMI {      //memberVariables     private string newName;     private int newHeight;     private double newWeight;      //default constructor     public BMI(){}      //overloaded constructor     public BMI(string name, int height, double weight)     {         newName = name;         newHeight = height;         newWeight = weight;     }      //poperties     public string Get_Name     {         get { return newName; }         set { newName = value;}     }      public int Get_height      {         get { return newHeight; }         set { newHeight = value; }      }      public double Get_weight      {         get { return newWeight; }         set { newWeight = value; }     } }   derived class   class Health : BMI {     private int newSize;     public Health(int Size):base()     {         newSize = Size;     } }   How do i pass in the base parameters from the overloaded constructor in the BMI base class into the Derived Class?  Any time i try to pass them into the base parameters i get invalid expression error. Or do i just have to pass them into a Health object in the main with a ? eg  class Health : BMI {     private int newSize;       public Health(int Size, string Name, int Height, double Weight)     {         newSize = Size;         base.Get_Name = Name         base.Get_weight = Weight;         base.Get_height = Height;     } }


Proof of volume of spheres through sum of sections of a sphere

I know that by integrating the surface area of a sphere we can get the formula of its volume.  Similarly, I wanted to find about other ways of doing this. So, I thought what if we divide the sphere into infinite circles or sections of the sphere and the add their areas for the volume and their perimeter for the surface area.  Problem is I am not able to do this. I tried but didn't work for me. I just knew the above logic but didn't know how to implement it.  So, I would like you to guide me on how I can do this and not just give a direct solution. Also, I would like to know about other ways for getting these results.   P.S.- if you are just giving me the answer can you explain it a bit. My calculus is not very strong. I know basic rules but I don't know how to set up the equations and I think that's where I am weak. How to implement this kind of logic.


Probability Proof $ \mathbb{P}\left(A_{1} \cup A_{2} \cup A_{3}\right) = ... $

How would I go about proving this statement: $\mathbb{P}\left(A_{1} \cup A_{2} \cup A_{3}\right)=\left(\sum_{i=1}^{3} \mathbb{P}\left(A_{i}\right)\right)-\mathbb{P}\left(A_{1} \cap A_{2}\right)-\mathbb{P}\left(A_{1} \cap A_{3}\right)-\mathbb{P}\left(A_{2} \cap A_{3}\right)+\mathbb{P}\left(A_{1} \cap A_{2} \cap A_{3}\right)$   The probability space is $(\Omega,\mathbb{P})$ and for the upper equation applies $A_{i} \subseteq \Omega, i=1,2,3$  My idea is to reshape the LHS:  So we have  (i) $\left(\sum_{i=1}^{3} \mathbb{P}\left(A_{i}\right)\right)-\mathbb{P}\left(A_{1} \cap A_{2}\right)-\mathbb{P}\left(A_{1} \cap A_{3}\right)-\mathbb{P}\left(A_{2} \cap A_{3}\right)+\mathbb{P}\left(A_{1} \cap A_{2} \cap A_{3}\right)$   with   (ii) $\left(\sum_{i=1}^{3} \mathbb{P}\left(A_{i}\right)\right) = \mathbb{P}(A_{1}) \cup \mathbb{P}(A_{2}) \cup \mathbb{P}(A_{3}) $  (iii) $ \mathbb{P}(A_{1}) = \mathbb{P}\left(A_{1} \setminus A_{2}\right)  + \mathbb{P}\left(A_{1} \cap A_{2}\right)   <=>  -\mathbb{P}\left(A_{1} \cap A_{2}\right) = \mathbb{P}\left(A_{1} \setminus A_{2}\right) - \mathbb{P}(A_{1})$  same for $\mathbb{P}(A_{2})$ and  $\mathbb{P}(A_{3})$  Now we combine (i), (ii) and we get:  (iV) $\mathbb{P}(A_{1}) \cup \mathbb{P}(A_{2}) \cup \mathbb{P}(A_{3})-\mathbb{P}\left(A_{1} \cap A_{2}\right)-\mathbb{P}\left(A_{1} \cap A_{3}\right)-\mathbb{P}\left(A_{2} \cap A_{3}\right)+\mathbb{P}\left(A_{1} \cap A_{2} \cap A_{3}\right)$   Now we combine (iV), (iii) and we get:  (V) $\mathbb{P}(A_{1}) \cup \mathbb{P}(A_{2}) \cup \mathbb{P}(A_{3})+ \mathbb{P}\left(A_{1} \setminus A_{2}\right) - \mathbb{P}(A_{1})+ \mathbb{P}\left(A_{3} \setminus A_{1}\right) - \mathbb{P}(A_{3})+ \mathbb{P}\left(A_{2} \setminus A_{3}\right) - \mathbb{P}(A_{2})+\mathbb{P}\left(A_{1} \cap A_{2} \cap A_{3}\right) =  \mathbb{P}\left(A_{1} \setminus A_{2}\right) + \mathbb{P}\left(A_{3} \setminus A_{1}\right) + \mathbb{P}\left(A_{2} \setminus A_{3}\right) +\mathbb{P}\left(A_{1} \cap A_{2} \cap A_{3}\right)$  Now we use this equation:  (Vi) $\mathbb{P}(A \cap B)=\mathbb{P}(A \backslash B)+\mathbb{P}(B \backslash A)+\mathbb{P}(A \cap B)$  And finally we use (VI) on (V)  $\mathbb{P}\left(A_{1} \setminus A_{2}\right) + \mathbb{P}\left(A_{3} \setminus A_{1}\right) + \mathbb{P}\left(A_{2} \setminus A_{3}\right) +\mathbb{P}\left(A_{1} \cap A_{2} \cap A_{3}\right) = \mathbb{P}\left(A_{1} \cup A_{2} \cup A_{3}\right)$  Could this work? If yes i will get drunk today :)


How to achieve "spherical" mapping in procedural materials?

What I have:  What I would want (sorry for a terrible sketch):  How to convert object/generated coordinates in such way?


Convert any number to corresponding word

This is a wild one: can anyone write a code that converts a number into the corresponding word? e.g.:  4 -> 'four' 31 -> 'thirty-one'   and so on. Obviously, it is not enough to build an array in which you can store the numbers and the word associated with it and then just print instead of the number the stored word. What complicates matters more, are numbers like 11 ('eleven'). I intend to use it for numbering equations. So, anybody up to it?


What happens when a Wizard loses Intelligence after preparing his spells?

A Wizard prepares a number of spells equal to his Wizard level + his Intelligence modifier.  But what happens if he loses Intelligence (the most obvious way I can think of is unattuning to a Headband of intellect and having a base Intelligence score of less than 18) after preparing his spells? Does he...   Lose access to the first [INT mod lost] spells he prepared? Lose access to the last [INT mod lost] spells he prepared? Randomly lose access to [INT mod lost] of the spells he prepared? Keep access to all his prepared spells (but will be able to prepare fewer spells after his next long rest, unless he regains the lost intelligence)?


How to evaluate the limit $\lim_{x\to 0} \frac{1-\cos(4x)}{\sin^2(7x)}$

I am lost in trying to figure out how to evaluate the $$\lim_{x\to 0} \frac{1-\cos(4x)}{\sin^2(7x)}.$$  So far, I have tried the following:  Multiply the numerator and denominator by the numerator's conjugate $1+\cos(4x)$, which gives $\frac{\sin^2(4x)}{(\sin^2(7x))(1+\cos(4x))}$. However, I am not sure what to do after this step.   Could anyone please help point me in the right direction as to what I am supposed to do next?  All help is appreciated.


How to use a single JFrame and display Multiple JPanels based on a Action Listener?

Im building a math testing program for class. A user enters a username, the number of problems, and the number of digits. The program spits out a problem and the user answers in a textfield on that page.   Is there a way to make a default page that loads different JPanels based on a button action? Additionaly, Can you store Jpanels in an arrayList and store the inputs?  ArrayList <JPanel> arrList = new ArrayList<>();  for(int i = 0; actionListener == true ; i++){      default_JFrame().add(arrList.get(i)); }   Are there any general best practices for Java Swing?


Command Solid State Relay using NPN transistor 2N2222

I'm trying to command a Solid State Relay with the HV1 pin, I can't connect it directly(HV1 to CH1) due to the fact that the impedance on that pin is too low and I only obtain 2.8V when connected.  So, I'm trying to use an NPN transistor(Q1). However, being inexperienced with tranistors I'm not sure that my schematic is correct(probably not).  Can you give me some hints on how to choose the resistor's value, or what should I change to make it work? Thank you!  This question comes after this question () (The "Switch" is actually the SSR)  CH1 is the command pin of the SSR        – Schematic created using


Consider this example:  \documentclass{report} \usepackage{lipsum} \begin{document} \begin{tabular}{lll}   A & B & \lipsum[1][1-3] \end{tabular} \end{document}   In the output:   the last column goes out of the bounds of the page. I could constrain the last column by using\begin{tabular}{llp{3cm}}. However, it would be more convenient to make the table span textwidth automatically. How to do it?


I have come across numerous questions where I am given the picture such as the above one been asked "how many rectangles are there?". I have even come across some slightly different images that instead of rectangles you are supposed to find the number of triangles. Well, I was thinking whether there is any formula or strategy that is used to solve these problems without having to manually count every shape.  Help would be appreciated.  Thank you :)


The pagination at the bottom of the users pages uses links that have all the parameter delimiters (&) escaped to &amp;.  The  page for example, links to https://stackoverflow.com/users?page=2&amp;tab=reputation&amp;filter=all instead of to https://stackoverflow.com/users?page=2&tab=reputation&filter=all. Because of this the weekly rank, page two, is shown instead.  This is not limited to just the user pages; it appears that all pagination links are affected.    The same problem can be seen with search result pagination, this  renders the link to page 2 as https://stackoverflow.com/search?page=2&amp;tab=relevance&amp;q=python%20list%20comprehension. The second page returns no results because of this. The  tag page pagination links to https://stackoverflow.com/questions/tagged/python?page=2&amp;sort=newest&amp;pagesize=50. Page two is returned but any sorting or page size parameters are lost. Because the site uses cookies for the sort and pagesize parameters this problem is less severe. For 10k+ users, you can filter the review queue history page to show only your own reviews; when you switch that on the pagination links there are broken as well: https://stackoverflow.com/review/close/own/history?page=2&amp;userid=100297 for the close review history page, page two, filtered on my own reviews.   The footer software revision is rev 2013.8.30.981 and this problem appears to be browser independent.


what is [1:] using len function to find length?

In this code:  word='pardis' print(len(word[1:]))   the output is 5. I also try this code for some other words and I find out that the output is length of word minus 1. My question is what is [1:] meaning and what it does? I am unfamiliar with it. I guess It is the reason that output is length minus 1


Pros and Cons for having same form for login, register and forgotten password

I have notice some sites have the same form for login, register and forgotten password.  Below the form you have 3 buttons    i forgot my password register log me in   What are the pros and cons on using this approach and which version would you go for.


So, I'm working creating a lamp... yes, newbie here.  After modeling for a bit, I noticed that my point of origin was no longer the center of my object:    How to I reset an object origin point to the center of it's geometry?