Right border of input field when suggesting closing a question as a duplicate isn't visible:        Tested on Windows 7 for Firefox 64.0.2 and Chrome 71.0.3578.98

When close a question as duplicate, in the duplicate search bar, the border right is not visible.  Screenshot for reference:        GIF for the same:        System configurations: OS: Windows 10 Pro Google Chrome Version 69.0.3497.100 (Official Build) (64-bit) Mozilla Firefox 62.0.3 (64-bit) Zoom 100%


The first DIV works, but then when new DIV rows are added, they don't get triggered. I suspect this has to do with event handler not binding with dynamically added elements, but how should I fix this, Thanks!:        // This adds more Education input     $(document).ready(function(){          $("#addLanguage").click(function(){             $("#LanguagesSection").append("
LANGUAGE: <input name=\"Languages[]\">SPEAK <input type=\"checkbox\" class=\"LanguageLevel\" name=\"LSpeak[]\" value=\"Speak\"> READ <input type=\"checkbox\" class=\"LanguageLevel\" name=\"LRead[]\" value=\"Read\"> WRITE <input type=\"checkbox\" class=\"LanguageLevel\" name=\"LWrite[]\" value=\"Write\"> FLUENT <input type=\"checkbox\" class=\"LanguageLevel\" name=\"LFluent[]\" value=\"Fluent\"><input name=\"LanguageLevels\" class=\"LanguageLevels\" size=\"37\" placeholder=\"<--Please Choose one of the four\" readonly value=\"level: \">Remove
");         });                  $("#LanguagesSection").on("click", ".removeLanguage", function(e){             e.preventDefault();             $(this).parent().remove();         });                   // Work in Metro Area Checkboxes         $("input.LanguageLevel").on('change', function() {             var $row = $(this).closest('.LanguagesTable');             var $input = $('.LanguageLevels', $row);             $input.val(this.value + " " + this.checked);          });     });

     LANGUAGE: <input name="Languages[]"> SPEAK <input type="checkbox" class="LanguageLevel" name="LSpeak[]" value="Speak"> READ <input type="checkbox" class="LanguageLevel" name="LRead[]" value="Read"> WRITE <input type="checkbox" class="LanguageLevel" name="LWrite[]" value="Write"> FLUENT <input type="checkbox" class="LanguageLevel" name="LFluent[]" value="Fluent">         <input name="LanguageLevels" class="LanguageLevels" size="37" placeholder="<--Please Choose one of the four" readonly value="level: ">

 <input type="button" id="addLanguage" value="Add Language">

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Let $p$ be prime and let $\zeta_p$ be a primitive $p$th root of unity. Consider the quadratic subfield of $\mathbb{Q}(\zeta_p)$. For instance, for $p=5$ we get the quadratic subfield to be $\mathbb{Q}(\sqrt5)$ obtained by the relation between the golden ratio and $\cos(2\pi/5)$ (the minimal polynomial of the golden ratio $\phi$ is $x^2-x-1$ and so the extension is quadratic).   Also $\cos(\pi/5)=\phi/2\implies \cos(2\pi/5)=\phi^2/2-1$ by double angle identity.      Is it true that in general the quadratic extension is $\mathbb{Q}(\sqrt{\pm p})$ where $\pm$ depends on whether $p$ is $1$ or $-1$ $\pmod 4$?    Please prove or disprove.

I want to prove the assertion:      The unique quadratic subfield of $\mathbb{Q}(\zeta_p)$ is $\mathbb{Q}(\sqrt{p})$ when $p \equiv 1 \pmod{4}$, respectively $\mathbb{Q}(\sqrt{-p})$ when $p \equiv 3 \pmod{4}$.   My first attempt is this. In $\mathbb{Z}[\zeta_p]$, $1-\zeta_p$ is prime and $$ p = \epsilon^{-1} (1-\zeta_p)^{p-1} $$ where $\epsilon$ is a unit.  Since $p$ is an odd prime, $(p-1)/2$ is an integer and  $$ \sqrt{\epsilon p } = (1-\zeta_p)^{(p-1)/2} $$ makes sense and belongs to $\mathbb{Z}[\zeta_p]$.    How do I deal with the $\epsilon$ under the square root?  I guess the condition on the congruence class of $p$ comes from that.  Is this even the right way to proceed?  Uniqueness is not clear to me either.  I thought about looking at the valuation $v_p$ on $\mathbb{Q}$, extending it to two possible quadratic extensions beneath $\mathbb{Q}(\zeta_p)$, then seeing how those have to extend to common valuations on $\mathbb{Q}(\zeta_p)$, but I didn't see how to make it work.  I would appreciate some help.


I'm running a 5th ed campaign that's getting close to finishing out a big story arc where the PCs are hunting down a vampire lord trying to take over the city they're based in. The group should be level 15 once they get into the big showdown with the vampire.  My players are pretty clever and I'm hoping to present them with a challenging fight to make the Big Bad in question memorable. But I'm concerned that the base vampire stats won't be a huge challenge. I'm designing the encounter to make for some fun along the way, but I'm hoping to make the vampire himself stand out. Storyline wise, he's one of the most powerful vampires in the campaign world, so I hope to make him seem special.  Toward that end, I've rolled up a level 15 elf sorcerer and given him the vampire powers on top of his stats. I can't get a sense if this is too much or too little, though, and I was hoping someone can give some insight on this, particularly if you've tried this approach yourself, with Fifth Edition.   Also, I may be blind; if there's a place in the DMG that talks about this particularly, I've missed it (and my DMG is currently in a box because I just moved).

I can't seem to find information in the Monster Manual for how to design an opponent with class levels of an appropriate challenge for my 7th-level party. Perhaps this appears in the DMG? I want to make a human assassin entirely using class levels, rather than using the premade assassin in the back of the book. What is the CR/XP vs. character level relationship for creating opponents in 5e?


I am trying to combine two packages in to a new command. The problem I have come across is when trying to add an optional parameter.   I want to be able to have 2 parameters with the second parameter being invoked if I use it but otherwise LaTeX should just use the first one.   I think I need something in "[???]" below but I don't know what.   \usepackage{mhchem}  \usepackage{chemnum} \newcommand{\cecount}[2][???]{\ce{#2} (\cmpd{#1})}  \begin{document}  Reaction of compounds \ce{H2} and \ce{O2} makes \cecount[AAA]{H2O}.   Another compound is \cecount{X}. Reaction of compounds Na and Cl makes \cecount[B]{NaCl}.  Compound \refcmpd{AAA} dissolves compound \refcmpd{B}. But I can also refer to \refcmpd{X}  \end{document}   This gives me an error of (??) when trying to use the \refcmpd{X} command.

I am trying to define a command that takes two arguments, where one is optional. If the optional argument isn't given I would like the compulsory argument to be used for the optional argument.  For example:  \necommand{\foo}[2][#2]{#1 foo(#2)}   which would return:  IN: \foo[hello]{hi}      OUT: hello foo(hi) IN: \foo{hi}             OUT: hi foo(hi)   Ideally it would be nice to keep it simple and use standard LaTeX with no packages. Thanks in advance!


I have to to a calculator that adds, subtract, multiply and divide the numbers one by one to a stack, and at the end it will show the result of all operations. Example.  Input:10 Input:+ Input:10 Input:= Output: 10+10=20  I tried to do it by manually pushing the numbers and operators, and it worked fine, for adding and subtracting only. (here is the code).   public static void main(String[] args) {     Stack<String> stack = new Stack();     stack.push("10");     stack.push("+");     stack.push("10");     stack.push("-");     stack.push("20");     stack.push("+");     stack.push("1");     stack.push("=");     int result=0;     int i;     int result=0;     for(i=0;i<stack.size();i++){         if (stack.elementAt(i)== "+"){            //does get in   I checked in the second code that the stack is similar to the one on the first code, and it is similar. For some reason, it doesn't want to go through the  if statement, even though it is equal to "+" or "-".  Stack<String> stack = new Stack();     Scanner sc = new Scanner(System.in);     while(sc.hasNext()){         String s1 = sc.next();         stack.push(s1);         if(s1.equals("=")) {             break;         }     }     int i;     int result=0;     for(i=0;i<stack.size();i++){         System.out.print(stack.elementAt(i));     }     for(i=0;i<stack.size();i++){         if (stack.elementAt(i)=="+"){         //doesn't get in

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


@FXML private TableColumn<Backup, Image>columnSucces;   columnSuccess.setCellValueFactory(new PropertyValueFactory<Backup, Image>("image")); columnSucces.setCellFactory(new Callback<TableColumn<Backup, Image>, TableCell<Backup,Image>>(){                  @Override                 public TableCell<Backup, Image> call(TableColumn<Backup, Image> arg0) {                      final ImageView imageview = new ImageView();                         imageview.setFitHeight(50);                         imageview.setFitWidth(50);                          //Set up the Table                         TableCell<Backup, Image> cell = new TableCell<Backup, Image>() {                             public void updateItem(Backup item, boolean empty) {                                 if (item != null) {                                     imageview.setImage(new Image("x-mark-small.png"));                                 }                                                }                         };                  cell.setGraphic(imageView);                 return cell;             }             });   I got nullpointerexception error when i am trying to add an image into a column for a table view. I cant understand where is my problem.  @edit. I have solved nullpointerexception, but now my image does not appear in the table column. I received an warning that my updateItem method is never used.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I've some elementary set theory problem that I came across with:  Let $S\subseteq\mathbb{R}$ be infinite set, and let $A=\{B\subseteq S: |B|<\infty \}$. I'm interested in showing that cardinality of set $A$ is equals to cardinality of $S$, i.e $|A|=|S|$.  I thought using Cantor–Bernstein–Schroeder theorem in some way.

Let $X$ be an infinite set of cardinality $|X|$, and let $S$ be the set of all finite subests of $X$. How can we show that Card($S$)$=|X|$? Can anyone help, please?


I have a critical problem here, i have a 8GB USB 2.0 flash drive wich i tried to format it, filling it with zero but the operation was too long and when the progress bar was in 1% I cancelled the operation now my laptop cannot recognize the device and the USB LED just light up without blinking. Please help me

I have a MicroSD card in a USB adapter (which plugs into a USB port on my machine, and acts like a USB flash drive). I was using Unetbootin to make this a bootable USB flash drive with Kubuntu. But I needed to cancel while it was working. So I killed the Unetbootin process from the console.  Since then, I can't format the MicroSD or delete the folder that Kubuntu made. I have also tried mkdosfs, with no success. I can't mount the drive anymore either? What can I do to make this drive usable again?  Trying to create a new partition table in GParted, as described in Eliah Kagan's answer, does not work. It fails with the error message "imposible crear tabla de particiones" ("unable to create a partition table").


I am not sure my i am getting NullPointerException exception i am new to java can anybody please help on this.     Code i am using for this -    import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.Collections; import java.util.HashSet;  public class sortNumberOfFile {     public static void main(String[] args) throws IOException,             InterruptedException {         HashSet<String> hs = null;         String perLine;         String filename = "C:\\Users\\dummy\\Downloads\\ip.txt";         BufferedReader br = new BufferedReader(new FileReader(filename));          while ((perLine = br.readLine()) != null) {             System.out.println("whole line : " + perLine);              String[] eachLine = perLine.split(",");             System.out.println("custom element " + eachLine[0] + " "                     + eachLine[2] + " count " + eachLine.length);              for (String str : eachLine) {                 System.out.println("Adding "+str);                 //Thread.sleep(2000);                 hs.add(str);             }  //          Collections.addAll(hs, eachLine);             System.out.println(hs);          }     }  }   Console Output i am getting -   whole line : 1,2,32,4,5,234,6,12,3,67,3421,123,2,2,34,5,4 custom element 1 32 count 17 Adding 1 Exception in thread "main" java.lang.NullPointerException     at org.gour.indrajeet.practice.sortNumberOfFile.main(sortNumberOfFile.java:27)


Let B be a nilpotent n×n matrix with complex entries. Set A = B- I.  Find the determinant of A.  Please someone give a hint..

Let $B$ be a given nilpotent $n\times n$ matrix with complex entries. Let $A = B-I$   find out $\det(A)$. What if B is orthogonal or skew symmetric matrix? Then can we say anything about its trace and determinant?


Using Ubuntu 11.04.. Updated gimp 2.6 to gimp 2.7. But have problem in installig gimp-plugin-registry  rajesh@rajesh-System-Product-Name:~$ sudo apt-get install gimp-plugin-registry -y  [sudo] password for rajesh:   Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies.  gimp-plugin-registry : Depends: gimp (<= 2.7) but 2.7.3-2011052002~nn is to be installed E: Broken packages

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


Prove, that $ \Bbb Q [ \sqrt{2} + \sqrt{3} ] = \Bbb Q [  \sqrt{2} , \sqrt{3} ]  $  I don't know the definition of  $\Bbb Q [  \sqrt{2} , \sqrt{3} ]$, can anyone help me with this?

Is $\mathbf{Q}(\sqrt{2}, \sqrt{3}) = \mathbf{Q}(\sqrt{2}+\sqrt{3})$ ?    $$\mathbf{Q}(\sqrt{2},\sqrt{3})=\{a+b\sqrt{2}+c\sqrt{3}+d\sqrt{6} \mid a,b,c,d\in\mathbf{Q}\}$$   $$\mathbf{Q}(\sqrt{2}+\sqrt{3}) = \lbrace a+b(\sqrt{2}+\sqrt{3}) \mid a,b \in \mathbf{Q} \rbrace  $$  So if an element is in $\mathbf Q(\sqrt{2},\sqrt{3})$, then it is in $\mathbf{Q}(\sqrt{2}+\sqrt{3})$, because $\sqrt{6} = \sqrt{2}\sqrt{3}$.  How to conclude from there?


Is there a word or phrase to express the concept of an action having the opposite effect of the expected outcome?  For example, a drug taken to cure headaches that actually causes headaches, or an advertising campaign designed to deter smoking that leads to an increase in smoking.

Is there a word in English connected to a process resulting in not just an unexpected outcome, but the direct opposite of its intended effect? Like feeling more tired after waking up? Or feeling dirtier after washing your hands (because the bathroom isn't clean)?  Example Sentence:     "I got 8 hours of sleep but I'm more tired than when I went to sleep.   That's so _____."


I have presented fire extinguishers to be tagged to a Florida Fire company.  They indicated that the devices are old and need a 6 year maintenance inspection.  What exactly is tested?

I am just curious: the obvious is that the  pressure mass   can be inspected /measured to ensure that the device has not been discharged. Is there anything else that is measured \ checked?


I see this expression "He listens to me play the flute". Is it correct ? And what about ""He listens to me playing the flute". What is the current form of this expression. I didn't find the answer either in dictionaries or grammar books. Thank you.

Some verbs are followed by ing, e.g. I enjoy swimming. We can't say I enjoy to swim. Likewise, some verbs are followed by to, e.g. I decided to make a plan.   Which particular verbs are followed by ing and to? Can you please provide a list for that?  Moreover, which verbs can be followed by both without having the meaning changed?


I recently learned about The polynomial $p(n)=n^2-n+41$, and how for $1\le n\le40, n\in\mathbb Z$, $p(n)$ is prime. I understand that primes are very difficult to find, so from that I can conclude that we haven't found a polynomial $q(m)$ where $m\in\mathbb N$ with no upper bound is prime, but is it proven that no such polynomial exists?

There does not exist a polynomial $p(x)$ with integer coefficients which gives a prime number $\forall x\in \mathbb{Z}$    My attempt:    I defined a polynomial as $p(x)=a_0(x-a_1)(x-a_2)\ldots(x-a_n)$. So, whenever $x$ takes an integer value, the polynomial cannot generate a prime number unless the polynomial is a linear one. But I have serious doubts about this solution, suppose any factor is of the form $(x^2+x+1)$ which cannot be factorised into linear factors with integer coefficients. Please help. Thank you.


okay so,  [browser] ==> makes AJAX call to webserver running php  i have the following php code,  <?php    //Process Ajax request   //return success code to browser    //continue with other php code  ?>   How exactly can i achieve the second part i.e "return success code to browser"? and continue with processing php code.

I'm attempting to do an AJAX call (via JQuery) that will initiate a fairly long process. I'd like the script to simply send a response indicating that the process has started, but JQuery won't return the response until the PHP script is done running.  I've tried this with a "close" header (below), and also with output buffering; neither seems to work. Any guesses? or is this something I need to do in JQuery?  <?php  echo( "We'll email you as soon as this is done." );  header( "Connection: Close" );  // do some stuff that will take a while  mail( 'dude@thatplace.com', "okay I'm done", 'Yup, all done.' );  ?>


I am loading a user via  in my themename.theme. Now I would like to view some of the fields in my template. But how to get/render the fields?  I can use  to render the whole user. But I would like to access only some fields and make them available in the template.

node_load((int) $nid) loads a fully-populated node entity. $node->title->value gets the title, but how do I access field values in Drupal 8?


I bought a mid-2014 MBP Retina (activated on 30/09/2014) from a friend and did a re-installation of Mavericks, then upgraded to Yosemite right after the re-installation (without associating the mac to my Apple account. I only did that after upgrading to Yosemite.)  Now I realise that I cannot get the iWork and iLife apps for free (I should have associated the mac to my Apple account and use it to get iWork and iLife before upgrading, right?).  Is there anyway to get that apps without re-install everything ?  Thank you in advance for your help.

Everything that I have read says that iWorks/ iMovie etc should be free for Mac users after 1 September 2013.   I already bought Pages but want Numbers and iMovie. My MacBook Pro with retina is early 2015 and I am being charged.    Why is this please?


I am working on a model and facing some problems. The problem is that some of the triangles have different color and i want to make it same color as the whole model is. In the image you will see that some of triangles are in light red color and the remaining model is in dark red color, so how can i change that light red color to dark red color, one material is applied on that mesh.

I was following  on creating a watch and noticed that when I rendered the watch, some pieces were messed up.  I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture:    Other examples:     I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it?


I am writing a RBM and I have a doubt. Searching on the Internet, I found that the pseudo log-likelihood is often computed during training. The code I found is something like the following one. def pseudo_LL(v):     ind = (np.arange(v.shape[0]), self.random_state.randint(0, self.n_v, v.shape[0]))     v_ = v.copy()     v_[ind] = 1 - v[ind]     fe = self.free_energy(v)     fe_ = self.free_energy(v_)     return log_logistic(fe_ - fe)  To be honest, I don't understand why changing random indices' value and comparing the log-logistic of the difference between the original sample energy and the "noisy" one gives the pseudo log-likelihood. Can someone explain it to me? Thank you.

According to scikit-learn's documentation given , the pseudo likelihood is calculated by;  Computing the free energy on X, then on a randomly corrupted version of X, and returns the log of the logistic function of the difference.  I'm trying to understand why is pseudo likelihood implemented like this. What was the motivation?


In the following sentence, although a gerund would be preferred, is the usage of "to spend" correct?  "Do you really think it's worth it to spend hundreds of pounds on video games?"

I am pretty much sure that for native speakers the issue I am going to bring up might look as an uncalled question as they can easily figure out which form of a verbal part of speech should be used, be it a gerund, an infinitive, or a bare infinitive. However, it can be pretty much misleading for a foreigner because the same construction works differently with different words and I don’t see a logical explanation. For example:  The purpose of this article is to analyze the issue…  My hobby is reading. One may assume, and many foreigners really come to this conclusion, that it’s OK to switch the “gerund” and “infinitive” as the meaning will stay the same, that is:  The purpose of this article is analyzing the issue… (same as 1 above)  My hobby is to read. (same as 2 above)   However, as I was told, this assumption is erroneous. Another example: His task was watching after them. (not good) His task was to watch after them. Is there any principle which governs the choice of the right form in such cases?


On gaining extra review privileges I wanted to know the rules for reviewing. There is no link from the review privilege descriptions. After some searching I found . It would be good if the privilege descriptions had links to that question or a better one.  As I review suggested edits I see several trivial changes (eg spelling where the meaning is obvious, white space, adding or altering quote marks, changing a URL in the text to Hyperlink) and I wonder whether I should approve them or not.  Having chosen a response then how do I find out how my response affected the outcome of a review? How do I learn whether my response was correct or at least matched the majority of other responses?

About reviewing The review queues contain posts that possibly need further action from the community, like improvement, closure or deletion. By presenting those posts for peer-review, the system aims for higher quality content. Some user actions, such as suggesting an edit, casting a flag, close vote or reopen vote, or posting for the first time, can trigger the inclusion of a post on a review queue. There are also posts included on the queues algorithmically, such as the contents of Late Answers and Low Quality Posts. General guidelines  Always read the full post you are reviewing. Don't rush. Take the necessary time to read the post carefully. If you don't care about a post, just click Skip or Not sure. When you need more context, open the post link to see the question and all answers. Most posts coming up for review can be improved. Use the Edit option, and edit thoroughly. If you're unsure how to review a post (perhaps it's outside your areas of expertise), skip it. Someone who understands it better will review it later.  Guidelines for specific review queues         (Stack Overflow only)


Is there a smart precise way to determine LCM of  $C(n,1) , C(n,2) , C(n,3) ,\ldots, C(n,k)$ :  Here $C(n,k)$ denotes no. of combinations of n objects taken k at a time.

The identity  $\displaystyle (n+1) \text{lcm} \left( {n \choose 0}, {n \choose 1}, ... {n \choose n} \right) = \text{lcm}(1, 2, ... n+1)$  is probably not well-known.  The only way I know how to prove it is by using  that the power of $p$ dividing ${a+b \choose a}$ is the number of carries needed to add $a$ and $b$ in base $p$.  Is there a more direct proof, e.g., by showing that each side divides the other?


I need some help calculating the solution for the following equation:  $ 4^{217} = x \text{ (mod 391)} $  Using power rules ($4^{217} = 2^{434}$) and Eulers theorem ($\phi(391) = 352$) I was able to reduce the term to:  $ 2^{82} = x \text{ (mod 391)} $  This is where my search for a solution comes to a halt. I have been able to further reduce this term to  $ (3^6 * (31^2)^3 * 2^4) = x \text { mod (391)} $  but that is where I got stuck, because I feel like there should be a far more elegant way than the brute force attempt I took from $2^{82}$.  What other tricks can I use to find the correct solution for this equation?

How do I efficiently compute $a^b\bmod c$:  When $b$ is huge, for instance $5^{844325}\bmod 21$? When $b$ is less than $c$ but it would still be a lot of work to multiply $a$ by itself $b$ times, for instance $5^{69}\bmod 101$? When $(a,c)\ne1$, for instance $6^{103}\bmod 14$?  Are there any other tricks for evaluating exponents in modular arithmetic?  This is being asked in an effort to cut down on duplicates, see  and .


I've been trying to convert a Client/Server model I made in Java using sockets to SSL. After generating my PKCS12 file containing the server's root and intermediate files, I used System.setProperty to change the trust and keystores in the client and server files to the PKCS file. I'm not really sure if that's what your meant to do. I also made the changes to my sockets, using an SSLSocketFactory to create the necessary sockets.  Here is the Code Below. Client:  `public class Client  {     private SSLSocket client_socket;     private DataOutputStream output_stream;     private FileReader reader;     private BufferedReader buffer_reader; public Client(String address, int port) {     System.setProperty("javax.net.ssl.keyStore", "wa.p12");     System.setProperty("javax.net.ssl.keyStorePassword", "namihana");     System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");     System.setProperty("javax.net.ssl.trustStore", "wa.p12");     System.setProperty("javax.net.ssl.trustStorePassword", "namihana");     System.setProperty("javax.net.ssl.TrustStoreType", "PKCS12"); //  System.setProperty("javax.net.ssl.trustStoreType", "PKCS12");     Security.addProvider(new Provider());      try     {     SSLSocketFactory ssf =  (SSLSocketFactory) SSLSocketFactory.getDefault();     client_socket = (SSLSocket) ssf.createSocket("127.0.0.1", 8072);     client_socket.startHandshake();   public class Server {     public Socket socket_2;     public SSLServerSocket server_socket;     public InputStreamReader input_stream;     private BufferedReader buffer_reader;     private DataOutputStream output_sender;     private PrintWriter output_writer;      private boolean result;     private char[] multichoice_answers;   Server:  public Server(int port)         {             System.setProperty("javax.net.ssl.keyStore", "wa.p12");             System.setProperty("javax.net.ssl.keyStorePassword", "namihana");             System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");             System.setProperty("javax.net.ssl.trustStore", "wa.p12");             System.setProperty("javax.net.ssl.trustStorePassword", "namihana");             System.setProperty("javax.net.ssl.TrustStoreType", "PKCS12");              multichoice_answers = new char[30];              multichoice_answers[0] = 'A';              multichoice_answers[1] = 'A';              multichoice_answers[2] = 'D';               multichoice_answers[3] = 'C';              multichoice_answers[4] = 'C';              multichoice_answers[5] = 'C';              multichoice_answers[6] = 'D';              multichoice_answers[7] = 'B';              multichoice_answers[8] = 'D';              multichoice_answers[9] = 'B';              multichoice_answers[10] = 'C';              multichoice_answers[11] = 'D';              multichoice_answers[12] = 'A';              multichoice_answers[13] = 'D';              multichoice_answers[14] = 'C';              try         {             SSLServerSocketFactory ssf =  (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();             SSLServerSocket server_socket =  (SSLServerSocket) ssf.createServerSocket(port);              System.out.println("Server_socket made");             Security.addProvider(new Provider());              //server_socket.setSoTimeout(100000);          }         catch(Exception e)         {             e.printStackTrace();         }      }       public void receive()     {         try         {              System.out.println("Server connected2");                 socket_2 =   server_socket.accept();

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I'm trying to understand how \pgfmathanglebetweenpoints works. Why here it turns out that X = 243.57? Thanks.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}  \pgfmathanglebetweenpoints{\pgfpoint{0cm}{1cm}}{\pgfpoint{-1cm}{-1cm}} \edef\angleX{\pgfmathresult} \node at (3,0) {X=\angleX}; \end{tikzpicture} \end{document}

I have the following code and I expect the resulting angle to be 135 degrees but whatevet I try, I get 90.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}  \coordinate (A) at (1,0); \coordinate (B) at (-1,1);  \pgfmathanglebetweenpoints{A}{B} \edef\angleAB{\pgfmathresult} \node at (0,0) {\angleAB};  \end{tikzpicture} \end{document}   I also tried the following command without knowing what it means, it also prints 90 except one case. The only working case is when A=(1,0) and B=(-1,0), which it prints 180.  \pgfmathanglebetweenpoints{\pgfpointanchor{A}{center}}{\pgfpointanchor{B}{center}}   Why is that? Couldn't find any reference document for "pgfmathanglebetweenpoints" by the way, that's why I am asking here.  EDIT: B is corrected from (-1,-1) to (-1,1)


Can I reuse Greek marinade that I used on precooked ribs ?

I made precooked frozen meatballs in the crockpot with jelly and honey BBQ sauce. It was really yummy and was wondering if the sauce that's leftover would be ok to marinate some ribs in?


I know people rarely bother to document their stuff these days, but I'm still hopeful.

I just installed Kubuntu 15.04 and I can't find a single place with systematic description of all available desktop configuration settings. For example, I was setting Screen Locking Timeouts and I found by experiment that setting Lock screen after to 0 is the way to disable it. Another example is Edit application-specific settings: what is the difference between Apply initially and Remember options? Is there a single piece of documentation explaining these issues?


The errors aren't creating any problem in my desired output, but what does it mean?  How can I fix it?    I will share my tex file if needed.

This question led to a new package:      I wish to typeset some relatively long URLs in a piece of text, and when I use \url{..}, the resulting text does not respect the margin boundaries that govern the main text body, instead going all the way to the edge of the paper before wrapping around.   For reference, my preamble looks like this:  \documentclass[12pt]{article} \usepackage{mathptmx} \usepackage{fullpage} \usepackage[pdftex]{hyperref}   and example of the url I'm including is:  \begin{itemize} \item Some text  \url{very-long-url} ... \end{itemize}   I'm compiling using pdflatex, although I doubt this makes a difference.


I'm pretty new to Angular, but a recent problem I debugged in my application went as follows:  Say I'm attaching a new directive to an existing module defined in another .js file. When I use the following syntax:  angular .module('myApp') .directive('ratingStars', ratingStars) ;  var ratingStars = function(){   return {     restrict: 'EA',     scope: {thisRating : '=rating'},     templateUrl: '/my.template.html'   }; };   I would get an error, along the lines of "Argument 'fn' is not a function, got undefined".  However, I could fix the code using the following (note the use of function directly rather than assigning to a var).  angular .module('myApp') .directive('ratingStars', ratingStars) ;  function ratingStars(){   return {     restrict: 'EA',     scope: {thisRating : '=rating'},     templateUrl: '/my.template.html'   }; }      What is the logical difference between taking my function and assigning to a var, rather than defining the function outright?    Is some sort of variable hoisting going on? Is my var only local to that one file?   Thanks much.

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


In the Wizarding World, there are people like Madame Pomfrey and the staff of St. Mungo's who are devoted to the art of magical healing.   There doesn't seem to be a class at Hogwarts for it, and the brief amount that is taught in class (e.g. Slughorn's Potions class where they made an antidote) doesn't seem to be enough training for a career.  So how do they learn magical healing?

Or is it just 'further education' i.e. Hogwarts, Durmstrung, Beaux-batons? Are there wizarding universities?


I need to do some work, I know the command  \begin{cases} do this symbol "{" at the beggining of the operation, but now I need the other one, "}" that symbol, at the end of the operation. How can I do that? I want this:  And I know how to do this:  Thanks!

How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They are a set of steps in an algorithm which I want to consider as an item.)  The following puts the brace on the left. All I need to do is to flip it to the right.  \begin{align} \begin{cases} a&=bbb\\ c&=ddddddd\\ e&=ffffffffff \end{cases} \end{align}   Thanks for any help with this!


I'm struggling to understand why following does not work as expected in bash:  $ myvar='"some stuff"' $ echo $myvar "some stuff" $ cd $myvar bash: cd: "some: No such file or directory   I know the canonical way is to ():  $ myvar="some stuff" $ echo $myvar some stuff $ cd "$myvar"   But e.g. here  answer by Alex for macOS advices to escape quotations, which I also tried and it's the same as putting double quotations inside single ones in my case. Why in one case cd gets two parameters and in other two from as I see it same "some stuff"?

(Note:  after some more research I have a partial answer, but I don't like having to write the actual commands against that variable differently depending on embedded spaces or not.  I'll accept better suggestions).  I like to store various work variables in bash as I am working on something.  This avoids having to type it up every time and also helps when you come back to work on it some time later (stick the assignment in a localprofile.sh file and source that later...).  I'd like to store a directory name with spaces in it.  I know how to do deal with spaces in file/directory names interactively, using either quoting or \-based escaping:  $ ls -1 /Users/myuser/Library/Application\ Support/ | tail -5 iTerm2 icdd org.videolan.vlc pip videosubscriptionsd   or  $ ls -1 "/Users/myuser/Library/Application Support/" | tail -5 iTerm2 icdd org.videolan.vlc pip videosubscriptionsd   Now I'd like to assign that directory to a bash $dn variable and that's not working so well.  Here are some various tries.  On purpose I stayed away from ~-based shell extension.  dn='/Users/myuser/Library/Application Support/' echo '' echo '' echo $dn ls -1 $dn  dn='"/Users/myuser/Library/Application Support/"' echo '' echo '' echo $dn ls -1 $dn  dn=/Users/myuser/Library/Application\ Support/ echo '' echo '' echo $dn ls -1 $dn  dn="/Users/myuser/Library/Application\ Support/" echo '' echo '' echo $dn ls -1 $dn   each one of these shows a variation on ls: /Users/myuser/Library/Application\: No such file or directory


I'm trying to list the latest destination (MAX departure time) for each train in a table, :  Train    Dest      Time 1        HK        10:00 1        SH        12:00 1        SZ        14:00 2        HK        13:00 2        SH        09:00 2        SZ        07:00   The desired result should be:  Train    Dest      Time 1        SZ        14:00 2        HK        13:00   I have tried using  SELECT Train, Dest, MAX(Time) FROM TrainTable GROUP BY Train   by I got a "ora-00979 not a GROUP BY expression" error saying that I must include 'Dest' in my group by statement. But surely that's not what I want...  Is it possible to do it in one line of SQL?

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


When we study linear mapping in the chapter of vector space,  we see that if V and W be vector spaces over the same fields then $T:V\rightarrow W$ is a linear mapping provided it satisfies $ T(a\alpha + \beta)= aT(\alpha)+T(\beta) \forall \alpha, \beta \in V, a\in F$  Now let $V$ be a vector space over the field $F$ and $W$ is a vector space over another field $E$ where $F\neq E$.  My question is,  what problem may arise if we try to define any linear mapping between these two?   The motivation behind this problem was to show there is no linear mapping from $\mathbb{R}(\mathbb{R})$ to $ \mathbb{R}(\mathbb{Q})$  however i am not getting any rigorous path to show this. What i was thinking can we get any kind of contradiction by any way?

I'm in a matrix theory class, and today we started talking about linear transformations. My professor noted that the range and domain of a linear transformation must be vector spaces over the same field. This made sense to me at first because of the fields are different, then something like $T(cx)=cT(x)$ doesn't make any sense when c is only in one of the vector spaces.   But then I thought that maybe some fields might be compatible, like for example, $\mathbb{Z}_5$ and $\mathbb{Z}_7$  Are there any linear transformations for two spaces over different fields? or Are there functions that have all the same properties as linear transformations except that the spaces involved use different fields?  If the answer is no, can you prove it?


Over the last year, I have needed to reinstall my 2016 Outlook account on my Macbook air multiple times and sometimes needed to do a repair on the indexing (more than a dozen times). It is constantly losing the search function.  I have macOS Mojave 10.14.6, and always upgrade OS and Outlook software when prompted. The problem seems to happen when there has been an update of macOS or of Outlook, but also just out of the blue for no apparent reason. I have spent multiple hours each time to resolve this.   I last reinstalled my Outlook account a week ago, and already the indexing has been scrambled. It is not that no emails are found on a search, but just some of them and in no predictable way.   From reading other postings, I am at a complete loss to understand how and why this problem has remained unfixed for so long by two of the world's largest companies to the detriment of Apple users. Is this really a highly complex problem? How can this be finally and comprehensively addressed?

Microsoft Outlook for Mac (version 16.21) is frequently unable to find email messages using the search feature, even in the case of emails that were sent relatively recently. I presume that the search index is broken.   available , and I have even installed a Mac-specific tool called "", but this doesn't ameliorate the problem.  Are any other solutions available?  Edit: There is little else to say (to increase the detail of this question), save that the emails that aren't found are seemingly at random, and are not found on subsequent searches either. I have not limited my search results in any way.


My system has libgmp.so.10.2.0 while  says current version is 6.1.2.  Is this specific to GMP? Would having libgmp.so.42.0.0 be OK?  Debian adds another number "2" to the mix (ignoring patches).  libgmp10:amd64  2:6.0.0+dfsg-6

I'm aware that shared objects under Linux use "so numbers", namely that different versions of a shared object are given different extensions, for example:   example.so.1 example.so.2   I understand the idea is to have two distinct files such that two versions of a library can exist on a system (as opposed to "DLL Hell" on Windows). I'd like to know how this works in practice? Often, I see that example.so is in fact a symbolic link to example.so.2 where .2 is the latest version. How then does an application depending on an older version of example.so identify it correctly? Are there any rules as to what numbers one must use? Or is this simply convention? Is it the case that, unlike in Windows where software binaries are transferred between systems, if a system has a newer version of a shared object it is linked to the older version automatically when compiling from source?  I suspect this is related to ldconfig but I'm not sure how.


import java.util.Scanner;  public class Info {           public static void main(String[] args){          Scanner input = new Scanner(System.in);          int n1,n2;                  System.out.print("Enter n1: ");         n1 = input.nextInt();                  System.out.print("Enter n2: ");         n2 = input.nextInt();                  System.out.println(sumTotal(n1,n2));              }          public static int sumTotal(int n1sum, int n2sum) { // *why static includes here*         return n1sum+n2sum;              } }  I don't understand why do I need to put static in here? Some other codes with return statement doesn't need static, like this one. So why? public class FirstProgram {      public static void main(String[] args)     {            Scanner userInput = new Scanner(System.in); // for scanning              int age;                  System.out.println("Enter your age");         age = userInput.nextInt();           var a = new FirstProgram();          a.userAge(age);                               }          public int userAge(int age1)      {                                     if ( age1 < 18 )                                                   {             System.out.println("You are a YOUNG!");         }                  else if (age1 > 18 && age1 <=25)         {             System.out.println("Young adult! ");         }          else         {             System.out.println("Wise!");          }         return age1;         } }

The very common beginner mistake is when you try to use a class property "statically" without making an instance of that class. It leaves you with the mentioned error message:     You can either make the non static method static or make an instance of that class to use its properties.   Why? I am not asking for solutions. I would be grateful to know what is the reason behind it. The very core reason!  private java.util.List<String> someMethod(){     /* Some Code */     return someList;             }  public static void main(String[] strArgs){                // The following statement causes the error. You know why..     java.util.List<String> someList = someMethod();          }


The problem is stated as:  Let $f$ denote the density function of the random variable $X$. $X$ has a symmetric distribution around $a$, in other words, $f(a+h) = f(a-h)$. Prove that $E(X) = a$, provided it exists.  I understand from the general concept that because $X$ is symmetric, the mean--or $E(X)$--should be at $a$, but I am not sure what axioms to use to prove this.

I am trying to show that the central moment of a symmetric distribution:     $${\bf f}_x{\bf (a+x)} = {\bf f}_x{\bf(a-x)}$$ is zero for odd numbers. So for instance the third central moment $${\bf E[(X-u)^3] = 0}.$$ I started by trying to show that $${\bf E[(X-u)^3] = E[X^3] -3uE[X^2] + 3u^2E[X] - u^3}.$$ I am not sure where to go from here, any suggestions? Is there a better way to go about proving this?


According to , pools are used when the number of "instances" of an object fluctuates. However, StarWarrior (the Artemis example) uses a pool for the player (of which there is always only one) and no pool for the enemies (which fluctuate and which more exist).  So what is the deal with pools?  Specifically:   What are pools? Why are pools? Where are pools? What is the difference between AddComponentFromPool and AddComponent (from Artemis)? What is the difference between extending IComponent and ComponentPoolable (from Artemis)?

I've been studying opengl es and an example I saw was using a "Pool" class to keep track of touch and keyboard events.  Could someone please explain how and why a pool class is needed. From what I was reading it had something to do with garbage collection and limiting the number of input classes that are made.   This all seems a little abstract to me, so if someone could please explain what is going on, I'd appreciate it, I'll pasted some code here:      public Pool(PoolObjectFactory < T > factory, int maxSize) {                     this.factory = factory;                  this.maxSize = maxSize;                  this.freeObjects = new ArrayList < T > (maxSize);          }                 public T newObject() {                 T object = null ;                 if (freeObjects.isEmpty())                         object = factory.createObject();                 else                          object = freeObjects.remove(freeObjects.size() - 1);                     return object;          }       public void free(T object) {                  if (freeObjects.size() < maxSize)                          freeObjects.add(object);          }      PoolObjectFactory <TouchEvent> factory = new PoolObjectFactory <TouchEvent> () {           @Override          public TouchEvent createObject() {                   return new TouchEvent();          }       Pool <TouchEvent> touchEventPool = new Pool <TouchEvent> (factory, 50);      TouchEvent touchEvent = touchEventPool.newObject();      . . . do something here . . .      touchEventPool.free(touchEvent);   Thanks!


Assumptions.  $D$ is the open unit disk $\{z\in \mathbb C : |z|<1\}$. $f$ is holomorphic in $D$. $f(0)=1/2$. $\sup \{ |f(z)| : z \in D \} =1$.  Question. $f(z)\ne 0$ if $|z|<1/2$? Usually I rely on Rouché's theorem to count the number of zero of a holomorphic function. But in this case I don't see how to apply the theorem. I tried to find a holomorphic function $g$ in $D$ such that $$ \text{If $|z|<\frac{1}{2}$, then $g(z)\ne 0$.} $$ and at the same time $$  \text{ $|f(z)-g(z)|<|g(z)|$ if $|z|=\frac{1}{2}$. }  $$ But it was not successful because I don't know much about $f$. Maybe this is not the way. Is there any way to apply Rouché's theorem? Thanks for any answer, no matter Rouché's theorem is used or not.

Suppose $f(z)$ is an analytic function defined on $|z|<1$ such that $\sup_{|z|<1} |f(z)|=1$ and $|f(0)|=\frac{1}{2}$. How can I show that $f$ has no zeros in $|z|<\frac{1}{2}$? The only theorem I know about zeros of analytic functions is Rouche's theorem, but I can't see how to apply it in this case. Any hints?


I thought I saw this question answered before but I'm just not seeing it now. If I can't access the file itself I know I can get a screenshot and crop out a little bit but I'd like the whole image if it is possible.   I looked in Photos but didn't see it, and I looked a bit in the wallpaper preferences and didn't notice anything that would help.   I'm looking at a friend's iPad with iOS 7 and I'd like to get this wallpaper image before updating.

I have a photo set as my current iPhone wallpaper, which I would like to save.  I have forgotten where I stored this file on my computer originally, so I can't easily go back to place it back on my phone. It has since been deleted from my camera roll.  Is there any way to export the photo that is currently set as the wallpaper, so that I can change the wallpaper to something else, but save the other one?


Here is my example:  import java.util.ArrayList; import java.util.stream.IntStream;   public class Example {       public static void main( String[] args )  {           ArrayList<Integer> list = new ArrayList<>();          list.add(0);list.add(1);list.add(2);           SomeObject  a = IntStream.range(0,list.size())                   .filter(i->list.get(i)==3 || list.get(i)==4)                   .mapToObj(i->new SomeObject(i,list.get(i)))                   .findFirst()                   .orElse(null);          System.out.println(a);    } }  class SomeObject{     int index;     int value;     SomeObject(int index,int value){             this.index=index;             this.value=value;     }      @Override     public String toString() {         return this.index+" "+this.value;     } }   Why when we are calling System.out.println(a); we don't get a NullPointerException?  As the orElse(null) returns an object pointing to null. If not what is the difference between the null in the orElse method and an object pointing to null?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I need a word, phrase, expression, metaphor etc for when lots of "insignificant" incidents or mistakes etc add up to make something major but by the time you realize it's major it's too late.

I would use rope-a-dope, but it's got connotations of pretending to lose that I don't need. I'm trying to describe the behavior of someone who sends twenty detailed emails a day about various projects, and the recipient of his emails has finally gotten tired of trying to parse them, so the recipient just agrees to whatever he proposes. I'd like an expression that evokes both outward earnestness and hidden creepiness, like Uriah Heep, Dickens's "Humble servant" with veiled ambition, who overdoes it with professions of humility until he's in power. Water torture would work, but comes too close to a more racist expression that I'm not comfortable with.


My original laptop charger was output 20V 3.25A.  Now I have a charger with output 20V 6.75A.  Can I use it?  (The real data: Can I charge Lenovo Yoga 11s with Lenovo IdeaPad 15?)

I have two laptops (same manufacture), with the same type of power connector.  However, the power supplies/transformers are slightly different.    The output on the first laptop's power supply is 15.6 V at 8.0 A. The output on the second laptop's power supply is 15.6 V at 5 A.  Clearly the voltages are the same, but the currents are different. I assume the second laptop's power supply can not be used on the first, because it can't supply enough power to the laptop.   However, can the first laptop's power supply be safely used on the second laptop?


Where are the start screen backgrounds located in Windows 8.1 ? They used to be in imageres.dll on Windows 8. But now that Windows 8.1 has animated backgrounds, I can't seem to find them anywhere.

In Windows 8, the start screen backgrounds used to be in the imageres.dll file, but as of 8.1 they're not. Does anyone know where the start screen backgrounds are housed in Windows 8.1?   If not, is someone using Windows 8 willing to share a png with me?


I am an amateur caramel maker!  I have made caramels for years, but recently my caramels have started turning really hard.  I have a new pot, and I think it holds the heat for too long, as the thermometer continues to rise even after I have removed it from the heat.  This is a stainless steel pot with a thick copper bottom.  What would be the best kind of pan to use?  I am on a tight budget, so copper is out of the question.

Is there any noticeable difference in taste and texture when making caramel on a non-stick pan versus a normal pan? I have seen a few cooks making caramel on a stainless steel saucepan and others on black frying pans most probably non-stick. But, is there a difference?   Surely, the most annoying thing is cleaning up the mess of caramel afterwards, any fast tips?


I happened to look upon a section of Yakov Perelman's Physics for Entertainment, part I, the author was discussing the relation with distance from centre of earth, and the attraction. When $d>r_{earth}$, his arguement matches with my intuition, that attraction decreases. The case is baffling when $d < r_{earth}$ - he argues that the weight would be still less than one on the surface, as there would be attraction from all sides. He writes:  This is because now he earth's attracting forces no longer act just on one side of body, but all around it. (The picture) shows you the weight in the well; it's pulled down by the forces below it and simultaneously up by the forces above it.  And provides this picture:    I am not sure about this, (I made some crappy (possibly wrong) thought experiments; and the results were contrary to this); Is Perelman right here ? What is the "Upward attraction"s ?

Would the effect of gravity on me change if I were to dig a very deep hole and stand in it? If so, how would it change? Am I more likely to be pulled downwards, or pulled towards the edges of the hole? If there would be no change, why not?


Will the old config file affect Ubuntu 18.10 in the bad way? Such as the themes, etc.

Recently I installed Ubuntu 12.10 x64 Server Edition on my PC. Unfortunately, I attempted to install a lightweight desktop but due to the fact that I have an old graphics card, the PC does not perform so well. I am thinking of re-installing an Ubuntu version but I do not want to lose the contents in my home folder. Is there any way to do that with a Live CD?


In the beginning of mathematics, Number system was restricted to only integers.  then solutions of equations like $2x=5$ Needed us to extend it to rationals.  then solution of $x^2=\frac{1}{2}$ needed us to extend it to irrational.  Then solutions of $x^2=-1$ needed us to extend it too complex as well.    So considering this analogy solution of $f(x)=a,a \in A$ may not belong to A necessarily, Thus can we not say that numbers beyond complex numbers may exist.       ie. If $f(x)=z,z \in C$ but $x \notin C$     Is there any fundamental theorem which restricts this extension, Are there any clues of this extension, Please discuss and help.

I've been teaching my 10yo son some (for me, anyway) pretty advanced mathematics recently and he stumped me with a question. The background is this.  In the domain of natural numbers, addition and multiplication always generate natural numbers, staying in the same domain.  However subtraction of a large number from a smaller one needs to "escape" into the domain of integers, and division may result in escape to the real domain (like 3 / 5 -> 0.6).  It was a simple step from there to taking the square root of a negative number, hence requiring the escape into the complex domain, such as 4+7i.  He quite easily picked up that each of these domains was a superset of another, natural -> integer -> real -> complex.  However, he then asked if an operation on a complex number would require yet another escape, a question I had to investigate. Now, it turns out that the square root of a complex number is simply another complex number along the lines of mathematical distribution: (a+bi)2 -> a2 + 2abi - b2, from memory.  But I'm wondering if there are other mathematical operations performed on complex numbers (or any of its subset domains) that can't be represented within the complex domain.  Apologies if I've used the wrong terms, it's been about 30 years since I did University level math.


I'm still learning to code so if there are some issues, please tell me! This is for a school essay.  I'm writing a code that asks some information about a game: game name, the devs behind it, the publisher, and its cost.  The essay has multiple different tasks, like: make a program that uses get set, arrays, methods, or and so on. I made it all into a program, and I got stuck with the error     CS0120 An object reference is required for the non-static field, method, or property 'Program.gameInfoArray'      The code:  class Program {     //the class array that stores the games     public gameInfo[] gameInfoArray = new gameInfo[10];      static void Main(string[] args)     {           bool done = false;         // this is where i get the issue          for (int i = 0; i >= gameInfoArray.Length || done == false; i++)         {             //asks what the game is called             Console.WriteLine("What is the game called:");             string gameName = Console.ReadLine();              //asks who the devolopers are             Console.WriteLine("Who where the devolopers behind the game:");             string devoloper = Console.ReadLine();              //asks who published the game             Console.WriteLine("Who released the game:");             string publisher = Console.ReadLine();              //ask how much the game costs             Console.WriteLine("How much does the game cost:");             string cost = Console.ReadLine();              //inputs the information in to the class array, this is also where i get the issue              gameInfoArray[i].gameInformationGrabber(gameName, devoloper, publisher, cost);              //asks if the              Console.WriteLine("are there any more games? Y/N");             while(true)             {                 ConsoleKeyInfo yesOrNo = Console.ReadKey();                 if ((yesOrNo.KeyChar == 'Y') || (yesOrNo.KeyChar == 'y'))                 {                     done = true;                     break;                 }                 else if ((yesOrNo.KeyChar == 'N') || (yesOrNo.KeyChar == 'n'))                 {                     break;                 }              }         }      } }   The script:  class gameInfo {     private string gameName;     private string devoloper;     private string publisher;     private string cost;      public void gameInformationGrabber(string game, string dev, string publisher, string cost)     {         theGameName = game;         theDevs = dev;         thePublisher = publisher;         theCost = cost;      }     public string theGameName     {         get { return gameName; }         set { gameName = value; }     }      public string theDevs     {         get { return devoloper; }         set { devoloper = value; }     }      public string thePublisher     {         get { return publisher; }         set { publisher = value; }      }     public string theCost     {         get { return cost; }         set { cost = value; }      }  }   Thanks a ton in advance. Sorry if I messed up big time somewhere in the code.

Consider:  namespace WindowsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }          private void button1_Click(object sender, EventArgs e)         {             //int[] val = { 0, 0};             int val;             if (textBox1.Text == "")             {                 MessageBox.Show("Input any no");             }             else             {                 val = Convert.ToInt32(textBox1.Text);                 Thread ot1 = new Thread(new ParameterizedThreadStart(SumData));                 ot1.Start(val);             }         }          private static void ReadData(object state)         {             System.Windows.Forms.Application.Run();         }          void setTextboxText(int result)         {             if (this.InvokeRequired)             {                 this.Invoke(new IntDelegate(SetTextboxTextSafe), new object[] { result });             }             else             {                 SetTextboxTextSafe(result);             }         }          void SetTextboxTextSafe(int result)         {             label1.Text = result.ToString();         }          private static void SumData(object state)         {             int result;             //int[] icount = (int[])state;             int icount = (int)state;              for (int i = icount; i > 0; i--)             {                 result += i;                 System.Threading.Thread.Sleep(1000);             }             setTextboxText(result);         }          delegate void IntDelegate(int result);          private void button2_Click(object sender, EventArgs e)         {             Application.Exit();         }     } }   Why is this error occurring?     An object reference is required for the nonstatic field, method, or property 'WindowsApplication1.Form1.setTextboxText(int)


I was just searching for a programming solution via duckduckgo and by clicking one of the top results I ended up on stackoverflowhot.com. This website is an exact copy of Stackoverflow.com and only when I could not upvote an answer, I noticed that it is not the original SO website.  I think this is potentially dangerous. While I did not encounter any atempt to trick me into entering my password or install malware, I assume the intentions of the site owners are not good. Also I guess they are infringing on the copyright of SO and SO users.  So besides from raising awareness of this page, my question is:  Is there any way to report this (besides reporting it as spam on duckduckgo)? Does Stackexchange Inc. have any policy on encountering such clickjacking sites?

of Stack Overflow, all content posted on Stack Exchange sites by their users (i.e. you wonderful people) has been provided to the whole universe under . For my fellow non-lawyers, that license basically means:   Anyone can use any Stack Exchange posts at any time without having to ask for permission Making money off of the copied content is permitted You don't even have to copy stuff from here verbatim; you can just use it as a starting point and make whatever edits you want There are just two rules you have to follow:   You have to provide . Simple links to the original post and author info are just fine. You have to  and allow other people to use your content, as long as they follow these very same rules. How meta!    (If you ever forget any of that, and want to refresh your memory, the license info is linked to in the footer of every page.)  There are, in fact, a lot of people who republish varying amounts of our content for assorted reasons. Unfortunately, there are some Stack Content Republishers Attributing Poorly and/or Excelling at Ranking (SCRAPERs, for short).  In this context, "attributing poorly" means any use that doesn't follow our attribution rules or make any other reasonable attempt at give credit. This can get pretty egregious; I've seen SCRAPERs that not only don't link back to SE originals, but also use fake author info and post dates to make it harder to find originals. By "excelling at ranking," I'm referring to copycat sites that end up higher in Google results than the original SE sites do for the same content. That's not necessarily wrong, but in some cases, it indicates inappropriate SEO hackery.  So, the question is: what can you do if you spot a SCRAPER?


I can't install gnome-shell on Ubuntu 17.04. What am I missing?  » sudo apt install gnome-shell                                                                                Reading package lists... Done Building dependency tree        Reading state information... Done Package gnome-shell is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'gnome-shell' has no installation candidate

I tried to install gnome-shell on Ubuntu 16.04 and when configuring I choose gdm as my default desktop but after I reboot I didn't see the login screen , only the black screen with Ubuntu  logo and the red dots, so I have reinstall Ubuntu again.  My question How can I install gnome-shell on Ubuntu 16.04?


I am trying to create a game where different potion effects are applied to a player depending on what armor the player is wearing (all of the armor is leather, but named and dyed). I know all of the ins and outs of it (test for a player wearing the gear sends out a signal which applies an effect), but how do I apply the affect to that player wearing the gear. Using @p or @a to specify wont work with multiple people as it will specify everyone or anyone.

In  video, he uses a command block to give him jump boost while he is wearing his Boots of Leaping.  I am trying to imitate this for a multiplayer map I am making. Wearing golden boots called "Stealth Boots" is supposed to give that player invisibility. I am using this command:  /effect @a[Inventory:[{Slot:100b,tag:{display:{Name:"Stealth Boots"}}}]] 14 30000 200  I do know that in the video he is using a /testfor command, but since I'm making a multiplayer map in order to use this technique I'd have to define a scoreboard variable for each player - and even then, the players would be finite. Thus, I want to be able to use the command DIRECTLY.  When I use that command, it either says "That player cannot be found" or "The entity UUID provided is in an invalid format" - the former of which I'm familiar with; the later I've barely ever seen before.  So, my method doesn't seem to work - how do I fix it?


I've tried different types of metering for the same object shoot. But couldn't understand the metering exactly.  Please explain the concept of metering in detail

What are Multi-Zone/Matrix metering, Center-Weighted metering, and Spot metering? What about Partial?  Is there a good rule of thumb, or a few pointers, on when best to use each exposure metering mode?


So when I want to use a command block without other people seeing the feedback in chat I don’t know how to do it.

I am making a server, and I put a comparitor clock down to constantly have clear weather. How do I silence the commands?


import java.util.Scanner;     class Lev {                                          //main class   public static void main(String args[]){     Scanner read = new Scanner(System.in);        Calculator obj1 = new Calculator();     Per obj2 = new Per();     String des;     System.out.print("Enter your choice= ");     des = read.nextLine();      if(des=="calc" || des=="calculator"){          obj1.calcultr();         }      if(des=="per" || des=="percentage")     {          obj2.percentage();       }      else     {         System.out.println("Argument not understood");      }       read.close();     }   }              //main class ends     import java.util.Scanner;                       //2nd class  public class Calculator {   Scanner inp = new Scanner(System.in);  public void calcultr(){      double num1,num2,strge = 0;     char q;     System.out.println("Enter 2 numbers to continue");     System.out.print("Num1= ");     num1 = inp.nextDouble();     System.out.print("Num2= ");     num2 = inp.nextDouble();     System.out.print("Enter what do you want to do= ");     q = inp.next().charAt(0);           if(q=='+'){              strge = num1+num2;             System.out.print("Result= " + strge);         };          if(q=='-'){              strge = num1 - num2;             System.out.print("Result= " + strge);         }          if(q=='*'){              strge = num1 * num2;             System.out.print("Result= " + strge);         }          if(q=='/')         {              strge = num1/num2;             System.out.print("Result= " + strge);         }      }   }    import java.util.Scanner;               //3rd class    public class Per {  Scanner inp = new Scanner(System.in);  public void percentage(){      double numa,from,per;      System.out.println("Enter total number attained= ");     System.out.print("Number Attained= ");     numa = inp.nextDouble();     System.out.print("Enter total marks from which marks attained= ");     from = inp.nextDouble();     per = (numa/from)*100;     System.out.print("Percentage Achieved= " + per);  }  }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Consider the following zsh function function foobar() {     local foo=$(fzf) && echo "$foo-bar" }  if instead of selecting one of the results of the fzf command I exit fzf without selecting anything, the second command is executed anyway and I get -bar  on stdout. If instead I assign the variable without the local attribute the second command is only executed if I select something from fzf, which is what I want. Since assigning variables with the local attribute in functions is preferable to not doing that, how can I fix that behaviour?

This is zsh -f:  Fereidoons-MacBook-Pro% local a=$(jaja) && echo bad zsh: command not found: jaja bad Fereidoons-MacBook-Pro% a=$(jaja) && echo bad zsh: command not found: jaja Fereidoons-MacBook-Pro%   Why is local messing up error handling?


I recently got to work on a problem of forecasting five years of data. But I only had five data point from previous years i.e. yearly data (frequency = 1). The data is heteroskedastic. For example, [574,1346,2051,6700,40].   What would be a best model to estimate the next five years? On my research , a linear regression is out of the picture because we need homoskedastic data. An ARIMA model will fail because it doesn't have enough data.  Note: That is all the data we have.  Any suggestions?  Thanks,  Prerit

I have a question related to modeling short time-series. It is not a question , but how. What method would you recommend for modeling (very) short time-series (say of length $T \leq 20$)? By "best" I mean here the most robust one, that is the least prone to errors due the fact of limited numbers of observations. With short series single observations could influence the forecast, so the method should provide a cautious estimate of errors and possible variability connected to the forecast. I am generally interested in univariate time-series but it would be also interesting to know about other methods.


I am using below function having a query to retrieve data from firebase     DatabaseReference rootRef;  @Override protected void onCreateonCreate(){  rootRef = FirebaseDatabase.getInstance().getReference();         getDriverStatus(); }       public void getDriverStatus(){             query = rootRef.child("Drivers").orderByChild("email");             ValueEventListener valueEventListener = new ValueEventListener() {                 @Override                 public void onDataChange(DataSnapshot dataSnapshot) {                     for(DataSnapshot ds : dataSnapshot.getChildren()) {                          Log.d("Firebase","Searching driver..."); //works correctly   String phone = ds.child("mobile").getValue(String.class);                         Log.d("Firebase",phone); //phone=null                          if(phone.equalsIgnoreCase("1234")) //Exception + App crash here {                             Log.d("Firebase","Driver found");                             status=ds.child("status").getValue(String.class);                             break;                         }                      }                 } @Override     public void onCancelled(@NonNull DatabaseError databaseError) {         Log.d("Firebase", databaseError.getMessage());     } }; query.addListenerForSingleValueEvent(valueEventListener);   }  Following is what my test looks like:    Basically i want to get a Driver data with mobile no: say "1234". But my app crashes at the point                      if(phone.equalsIgnoreCase("1234")) and gives me the following error:   java.lang.NullPointerException: String.equalsIgnoreCase on a null object reference   Can any body tell me what is wrong with the code. Thanks in advance...!

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


A lot of times I'll hear a politician or see a  where they clearly think the meaning of one or more words they use is something other than the real meaning. Is there a term for this type of "near miss?"

What is the term for incorrectly injecting the wrong word into conversation because of a mental flaw that pulls a word that is alliterative or related? An example that got me searching for the term:      A well trained bicycle mechanic will be able to judge the correct temperature of spokes by ear.    What I meant was tension of course. In this case I was able to recognize that the wrong word was used, leading to a tip-of-the-tongue syndrome thing where I attempted to come up with the correct word.   I guess the word or term I'm looking for is the term that would best describe an unconscious substitution of a word into normal conversation that could fall into the domain of tip-of-the-tongue syndrome, and whatever the related transactional memory defects are that cause it.


I was working in the Eevee renderer and when I switched over onto cycles I noticed that all the settings tabs that would have been under 'scene' were gone. Not only this but I couldn't change the material settings for any object which I usually would have done in the materials sidebar. I am able to use the materials side-bar when in Eevee. The only way I can change the materials is by doing it in the shader editor. This is really odd and hasn't happened to me before, so I was wondering if anyone has come across the problem before and has any idea of how to fix this predicament I am in. Below are some images that illustrate the problem I am having.    Many thanks!

so I'm working on a little bathroom scene and wanted to make a clay render. I started looking for the material override which I kinda knew where it was and on the way I switched my render engine accidently to workbench instead of cycles. Switched to cycles all my seetings on the render tab are missing except color management and free style. Hows that? I restarted blender multiple times and tried some other stuff but nothing changed a thing, and I'd rather avoid a new installation


According to my understanding CRTP(Curiously Recurring Template Pattern) is used when a class is derived from a specialization of a templated-base class. So the base class can access the functionality of derived class then delegate to derived class after casting the Parameter to a derived class. Here is an example:  #include <iostream> using namespace std;   template< class T>  class Shape2D{     public:         Shape2D(double, double);         virtual ~Shape2D();          void SetDims(double dim1, double dim2) {             static_cast<T*>(this)->SetDims(dim1, dim2);         }          double GetDim1() const;         double GetDim2() const;         double GetSurface()const;         double GetPerim()const; };  template<class T> Shape2D<T>::Shape2D(double dim1, double dim2) {     static_cast<T*>(this)->SetDims(dim1, dim2); }  template<class T> Shape2D<T>::~Shape2D() {  }   template<class T> double Shape2D<T>::GetSurface()const {     return static_cast<const T*>(this)->GetSurface(); }  template<class T> double Shape2D<T>::GetDim1()const {     return static_cast<const T*>(this)->GetDim1(); }  template<class T> double Shape2D<T>::GetDim2()const {     return static_cast<const T*>(this)->GetDim2(); }  template<class T> double Shape2D<T>::GetPerim()const {     return static_cast<const T*>(this)->GetPerim(); }  class Rectangle : public Shape2D<class Rectangle> {     public:         Rectangle(double, double);          void SetDims(double, double);          double GetDim1() const;         double GetDim2() const;         double GetSurface()const;         double GetPerim()const;          private:             double itsLength, itsWidth; };  Rectangle::Rectangle(double len, double wid) :     itsLength(len), itsWidth(wid), Shape2D<Rectangle>(len, wid) {  }  void Rectangle::SetDims(double len, double wid) {     itsLength = len;     itsWidth = wid; }  double Rectangle::GetDim1()const{     return itsLength; }  double Rectangle::GetDim2()const {     return itsWidth; }  double Rectangle::GetSurface()const {     return itsLength * itsWidth; }  double Rectangle::GetPerim()const {     return ((itsLength * 2) + (itsWidth * 2)); }  int main() {      class Rectangle rct(7, 5);     cout << rct.GetSurface() << endl;     cout << rct.GetPerim() << endl;      cout << endl;      Shape2D<class Rectangle>* pSh2DRect =          new Shape2D<class Rectangle>(7, 5);     cout << "Surface: " << pSh2DRect->GetSurface() << endl;     cout << "Perimeter: " << pSh2DRect->GetPerim() << endl;      delete pSh2DRect;       cout << endl;     std::cin.get(); }    I can't see any benefit above because I can achieve it without CRTP. I want a helpful example to clear my doubts about Static Polymorphism. What if a derived class doesn't inherit from a specialization where this derived class is not the parameter of the template base class?? eg:  class Parallelogram : public Shape2D<Rectangle>{      public:         //... };    As you can see Parallelogram normally inherit from Shape2D<Parallelogram> not Rectangle. Is it a Undefined Behavior?

What are some practical uses for the ""?  The "" example commonly shown just isn't a convincing example to me.


I've been looking for a Stack Exchange site for digital logic for a long time. Is there anywhere I can find one?   The Electronics Stack Exchange site seems a bit broad, and the retrocomputing Stack Exchange site is more concerned with other things like microprogramming and microprocessors. Are there any Stack Exchange sites tailored to logic gates?

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


I’m currently in Germany wonder why so many websites ignore my locale settings (in OS and browser) and are instead showing me content in German? Is it possible to turn this off? My locale is en-US.  Example:   Open browser google.com => Enter I get redirected to google.de

A lot of people are annoyed (including me) when a browser/search engine detects the regional settings. If I am in Romania, it redirect the search engine to google.ro and sets the language to RO. I know how to modify the language, and I can search using www.google.com/webhp, but I don't want to do this every day, i was hoping that there is a setting or an addon to disable the detection


I just installed Ubuntu 16.10, and I am not able to add VPN connections from the network menu. Here is a screen shot:    As you can see the sub menu "Add a VPN connection" is greyed out. This was no problem in Ubuntu 16.04.

I'm trying to add a  to my network, but the option is greyed out.  Screenshot of the greyed-out indicator   I installed network-manager-openvpn but still no luck. Editing my connection does not show any VPN settings or tabs.  I'd appreciate it if anyone could point me in the right direction!  EDIT: In case anyone else has this issue, the wording "Add A VPN Connection" is super misleading as it's telling you that you need to add a VPN connection, not that you are supposed to click to add one from there.  So select Edit Connections, Add, and then select your VPN from there.


There didn't seem to be anything relevant in about:config.

I often select something I want to google with the mouse (no [ctrl-c], I'm on X11/Linux), so I can paste it into the search engine box in firefox. However, there's usually already something in there from a previous search, so I can't just paste it. This sits in my way all the time, so here's my question:  Is there a way to clear the search form as soon as I hit [enter]? So it'll be empty for the next time I search for something?  On Linux, I find that the [ctrl-c] ... [ctrl-v] should not be neccessary in that case, as it forces me to move the hand back to the keyboard (i'm left-handed).  This would also be helpful in cases I did google something that I don't want others to see. It's easy to forget that your last search is still up there, despite you closed the tab already.


I did this inequality with Holder Inequality in this way \begin{align*}&\left(\sum \limits_{cyc}{\frac{a^3}{(a+b)(a+c)}}\right) \left(\sum \limits_{cyc} (a+b)\right)\left(\sum \limits_{cyc}(a+c)\right)\geq (a+b+c)^3\\ \implies &\sum \limits_{cyc}\frac{a^3}{(a+b)(a+c)} \geq  \frac{a+b+c}{4} \end{align*}  Though i did this but it seems to me that it can be done in elementary way. But i can't find that way.   Can you please do this inequality in elementary way?  Edit: Please use only AM-Gm and Cauchy-Schwarz(Would be great if you don't use Cauchy-Schwarz)

For positive real numbers $a,b,c$ prove that $$ \sum{\frac{a^3}{(a+b)(a+c)}} \geq \frac{a+b+c}{4}$$  Source: high school olympiad inequality  I didn't succeed in any way, I am quite sure it will be done with multiple AG inequalities


We are in the process of migrating our on-premises sql server to Azure and I am having trouble with the IO performance.  I have created a new D14 instance and attached 16 virtual disks at 100GB in size each. I have created a storage pool in Windows 2012 and subsequently created a volume. When I run crystal disk mark, I am seeing very slow speeds and low IOPS. What am I doing wrong? 28mb/s is not going to cut it for our SQL server.   How can I get those value up. Everything I read seems to tell me that this is possible, but I'm not sure what I am missing.

We have a SQL server hosted on an Azure VM.  One of our applications is very read\write intensive on the database and we're seeing poor disk performance.  Disk queue lengths of 10 or greater.   I've been trying to find a way to increase disk performance.  I found a technet video  that mentions a disk quota and spanning 4 storage accounts increases disk i/o.  Can anyone confirm this disk limiter or recommend this spanning technique?


I read this in a grammar book recently but I can't recall what the specific term (if any) is called for something like:     He was 18 years old.   I don't remember if it is the same example, but the idea is generally similar. The text is written in past tense, so the example above should also be written in past tense. However, since he is currently 18 years old, not formerly 18 years old, the grammar book stated that it should be written as:     He is 18 years old.   Even though the text is written in past tense. Again, the example might be incorrect and my recollection might be a bit off, but the general idea is there.

I have a basic grammar question about the past tense. If I met a guy yesterday, which tense should I use about his name today?  For example,     "Yesterday I met a guy, his name is/was John."


I am trying to restructure our website that is focus on Healthcare and could you please help me which of these two decisions for URL is better for SEO ?  we present best providers for any healthcare procedures in each city and country. here is an example of rhinoplasty procedure in turkey:  www.mywebsite.com/en/rhinoplasty/turkey  www.mywebsite.com/en/rhinoplasty/rhinoplasty-turkey  1-is it necessary to write exact focus keyword in last folder of URL?  In this example, rhinoplasty is our pillar page, so it has so many cluster contents that link back to it, such as this procedures in each countries, ...  2-Is it necessary to put our main pillar pages in top level of URL?  can we locate all pillar pages related to cosmetic surgeries inside cosmetic-surgery folder?   Pillarpage: www.mywebsite.com/en/cosmetic-surgery/rhinoplasty   www.mywebsite.com/en/cosmetic-surgery/rhinoplasty-turkey

My sister wants to launch a celebrity website, which will have information such as age, height, weight etc. Suppose the website is example.com:   www.example.com/demi-lavato → This sounds crisp and short www.example.com/demi-lavato-age-weight-height-affairs-etc →  this is the alternative   Which one is better? Does one of the above give more SEO mileage than the other?


Ok, so I'm new to git. I've just created a project, initialized it as a repository and linked it to bitbucket. I'm using NetBeans, and whenever I create a project with NB, it includes a directory called nbproject. I added the directory to .gitignore but the thing is, when a collaborator clones the repo, NB doesn't recognize it as a project because of the missing nbproject folder. Now, this folder, because is specific to each developer, shouldn't have changes tracked. Even when I tried to clone the repo from my laptop I couldn't open the project (I had to copy the nbproject folder from another project into the cloned repo and this is a waste of time). How can I initially push a directory so everybody can open the project without problems but then not track its changes? Sorry for my english. Also, if you could recommend a book, course, tutorial or any resource to learn git, that would be really helpful, thanks. EDIT: I also read that if i write to .gitignore myfolder/ then it will ignore all folders with that name at any level. What if i want a specific myfolder folder to be ignored?

How can I add an empty directory (that contains no files) to a Git repository?


There is a finite series:  \begin{equation}    \mathscr{S} = \sum_{n=0}^{m} {m \choose n}(m-2n)^2 \end{equation}  If I divide $\mathscr{S}$ by $2^{m}$ I get m. Could anyone explain it to me?

I would appreciate if somebody could help me with the following problem  Q: Seeking a combinatorial proof $(\binom{n}{k}=\frac{n!}{k! (n-k)!} )$  $$\sum _{k=0}^n (n-2 k)^2 \binom{n}{k}=n\times  2^n$$


In my native language, and most Indian languages that I know, there is a way to ask for "whichth", but I don't seem to have found anything similar in English. Let me explain below.  What question would you need to ask to obtain the following answers?        In terms of geographical area, Australia is the sixth largest country.   John is his father's third son.   Mars is the fourth planet in the solar system.       The only way I can think of is use of roundabout legalese-like sentence structure, which makes it sound laughable. For example:        If countries are arranged in order of their geographical area, then at what number is Australia?   Among the sons of John's father, if you arrange them in the order of birth, then at what number does John appear?   At what position is Mars in the solar system, in terms of distance from the Sun?      If there is such a word as "whichth", one could ask, for example:        Australia is "whichth" largest country in terms of geographical area?

How to ask the position(?) of a president (like 10th) of a country, correctly?


I have an API I call to get a certain DateTime, the response I get however is a string and I don't know how to make the string into a DateTime. The string I get back is this "1388064600", I know it should represent "26/12/13 - Thursday 2:30PM CEST".   How can I convert this string into a DateTime object? Is this some known format?

There is this example code, but then it starts talking about millisecond / nanosecond problems.  The same question is on MSDN, .  This is what I've got so far:  public Double CreatedEpoch {   get   {     DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, 0).ToLocalTime();     TimeSpan span = (this.Created.ToLocalTime() - epoch);     return span.TotalSeconds;   }   set   {     DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, 0).ToLocalTime();     this.Created = epoch.AddSeconds(value);   } }


I understand how to use delimiters in php's preg_match(), just not why I have to use them.

Why do PHP regexes have the surrounding delimiters? It seems like it would be more clear if any pattern modifiers were passed in as a parameter to whatever function was being used.


One can iterate through a SortedMap by using the iterator from myMap.entrySet().iterator(). But does this iterator preserve the ordering of the sorted map object ?  The SortedMap interface does not have its own methods to iterate through the entries. What is the standard way to iterate ordered through the entries?

If I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it,  what is the most efficient way of going through the map?  Will the ordering of elements depend on the specific map implementation that I have for the interface?


I haven't used blender in a while and the last time I did this wasn't a problem but for some reason, it looks like the background is "blending?" with the mesh. This only happens in Eevee, cycles work just fine. The mesh is completely invisible in the viewport shading mode too. I tried resetting the settings and reinstalling blender but that doesn't work, it might be something wrong with my computer.  This is how it looks in rendered view, I moved the camera around a bit and the background color started "blending" with the mesh  This is how it looks in the Viewport Shading mode, the mesh would be completely invisble if i turned off the overlay.

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


From :     In order to reflect normal usage, addition, subtraction,   multiplication, and division operators are usually left-associative   while an exponentiation operator (if present) is right-associative   For example, we evaluate $2^{2^2}$ as $2^4$ rather than $4^2$. All other operations besides exponentiation, tetration, etc. are inherently left associative. Is there any reason why it's different for exponents?

Does $x^{y^z}$ equal $x^{(y^z)}$? If so, why?   Why not simply apply the order of the operation from left to right? Meaning $x^{y^z}$ equals $(x^y)^z$?  I always get confused with this and I don't understand the underlying rule. Any help would be appreciated!


I want to show a message via drupal_set_message() after logout and redirects to page.  Code:  /*  * Implements hook_user_logout().  */ function example_user_logout($account){   $login_message = 'You have been redirected';   drupal_set_message(t($login_message));   $login_redirect = '/mypage';   example_redirect($login_redirect); }  /**  * Redirect path for logout.  */ function example_redirect($path) {   $response = new RedirectResponse($path);   $response->send();   exit; }   Tried commenting exit also, but still no luck. Any help would be appreciable.

I'd like to show a message via drupal_set_message() after redirecting users from user/logout?destination=user.  I tested this code but it doesn't work.  if ($find) {    drupal_set_message(t('This entry is ignored.'), 'error');    $form_state['redirect'] = array(     'user/logout',     array('query' => array('destination' => 'user')),   );    drupal_redirect_form($form_state); }   How do I display a message after redirecting user from the logout page?


Is there any way to execute a program and have it directly insert it's stdout in to the tex stream without having to output to a temp file and then input that file? [I've tried some of the code in the link but it does not work, specifically the 2019 update code).  If not, is there an easy way to generate a random file name that won't collide and then input it and delete it? Ideally though this is not the method I'd like.  I can use the write18 method and input but it is not desirable.

Say I want to call some external program using \write18, which returns some text to the command line. Can I get that text from inside TeX?  As an example  > inkscape -V   returns the version of the inkscape installation, in my case  Inkscape 0.92.4 (5da689c313, 2019-01-14)   How can I retrieve this information using TeX?  (Note: I am running TeX on Windows, but would like the solution to be system independent.)


I use XeLaTeX to compile my documents. Now, I want to typeset diacritics both in the main document text and the bibliography. The problem is that LaTeX simply leaves out every character with a diacritic in the bibliography. Below, you find a minimal example of my problem.  Any help appreciated!  \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[german]{babel} \usepackage[authordate,backend=biber]{biblatex-chicago} \bibliography{Literature} \begin{document} S\={a}\d{m}khya \autocite{bibentry}.  \printbibliography \end{document}   My Literature.bib:  @incollection{bibentry, author = {Keith Boone}, editor = {Milton Malone {\"{u}}{\"{a}}}, title = {S{\={a}}{\d{m}}khya}, year = {2020} }

Biblatex works fine with pdflatex, but when compiling with Xelatex, suddenly accents disappear.  MWE:  \documentclass{article}  \usepackage[ backend=biber, style=alphabetic, citestyle=authoryear  ]{biblatex}  \usepackage{filecontents} \begin{filecontents*}{temp.bib}     @article{Beck_Johnson_2013,         title               ={The Effect of Temperature on \textit{{Anopheles}} Mosquito Population},         author              ={Bj{\' o}rnstad, Ottar N.},         year                ={2013},         journaltitle        ={PLOS ONE}     } \end{filecontents*}  \addbibresource{temp.bib}  \begin{document}  \cite{Beck_Johnson_2013}  \printbibliography \end{document}   With Xelatex:   With Pdflatex:


Let $X_n$ be i.i.d. sequence of random variables and $p\in(0,2)$.   \begin{equation} \lim_{n\to\infty} \frac{1}{n^{1/p}}\sum_{k=1}^n X_k \label{limit}\tag{1} \end{equation}   exists and finite with probability one, if and only if $E|X|^p<\infty$ and either $p\leq 1$ or $EX_k=0$.    Small Step If (\ref{limit}) exists finite, and $p>1$,  \begin{equation} \lim_{n\to\infty} \frac{n}{n^{1/p}}\frac{1}{n}\sum_{k=1}^n X_k \end{equation} since $n^{1-1/p}\to\infty$, $\frac{1}{n}\sum X_k\to 0=EX_k$.  Question I am not sure what is the relation between (\ref{limit}) and $E|X|^p$. I tried to use the fact that $n^{-1}\sum |X_k|^p \to E|X|^p$ however couldn't bound it. Statement suggests that if $p\leq 1$, $E|X|^p<\infty$ iff (\ref{limit}) exists immediately hence I expect it to be rather straightforward. I appreciate if one can advise a path for it.

Let $p \in (0,2)$ and let $\xi_n, n \geq 1$, be iid random variables. Show that the following two conditions are equivalent:   With probability one, the limit $$ \lim_{n \rightarrow \infty} \frac{1}{n^{1/p}} \sum_{k=1}^n \xi_k$$ exists and is finite. $\mathbb{E}\lvert \xi_i \rvert^p < \infty$ AND either $\mathbb{E} \xi = 0$ or $p \leq 1$.   I have tried using Holder's inequality but didn't really get anywhere. I don't really have any idea how to approach the problem for either direction...