public int[][] updateGame(String[] inarr, int c) {    int[][] userGuess = new int[10][4];    for (int i = 0; i &lt; c; i++) {     for (int j = 0; j &lt;= 3; j++) {       userGuess[i][j] = Integer.parseInt(inarr[j]);         System.out.println("user guess in for loop: " + userGuess[i][j]);        //return userGuess[i][j];     }    }    //System.out.println("user guess in method:"+userGuess);    return userGuess;  }   it only returns the address of array
In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]
Opening PDF in Illustrator breaks up text objects I recently had to convert some PDF files to SVG, and did this by opening the PDF in Illustrator, and saving out to SVG.    The issue was that when Illustrator opened the pdf, many (but not all) text objects would be broken up into different text objects.  For instance, the word "policy" wouldn't be one text object, but rather several text objects, "po", "l", "icy".  There didn't seem to be any rhyme or reason to it.    How can I prevent this from happening? What books are recommended for learning calculus on my own? I recently graduated with a degree in bachelor of science with a focus interactive and multimedia design. I had to opportunity to take 1 C++ course and 1 HTML course. I was also only required to take one math class, introduction to calculus (and it was hardly calculus, it was more of a math class for designers)  Since graduating I have pursued a career in web development. I'm considering going back for a MS in computer science or MS in web technologies.   I feel my math has suffered dramatically as I have always been behind most others on my math studies (middle school through college). I want to learn calculus as I feel it's an integral part of any CS degree.   Does anyone have any recommendations on any great books that I can read through and teach my self a bit of calculus or other advanced math topics?  Thanks for any advice Defining starred versions of commands (* macro) What's the meaning "them" here? I've confused about the word "them" in the middle of the sentence:     They know all about them   Westovers in Idaho.   Could you please tell me what the meaning of "them" here is?     Does it mean "they know about the oils which are made by Westovers in Idaho"?   The full text is here:      Dad had always said he wanted to build a room the size of a cruise ship   but I’d never thought he’d have the money. I looked to Mother for an   explanation but it was Dad who answered. The business was a roaring   success, he explained. Essential oils were popular, and Mother had the best   on the market. “Our oils are so good,” he said, “we’ve started eating into the   profits of the large corporate producers. They know all about them   Westovers in Idaho.”   Educated by Tara Westover How to prevent automatic redirection of 404 errors and "incorrect" URLs? Wordpress has a feature whereby it will automatically redirect your URLs if it percieves them to be written wrongly. Here is an example: I have a page called my-page  If I go to:  www.mysite.com/something/my-page/   it will immediately redirect me to   www.mysite.com/my-page/   as nothing exists at the first URL.   How can I turn this feature off, and instead just get a 404 if incorrect URL's are typed in? Passing Javascript variable to Difference between live and neutral wires In domestic electrical circuits, there are 3 wires - live, earth and neutral. What is the difference between the live and neutral wires?  As there is AC supply, it means that there are no fixed positive and negative terminals. Current rapidly switches direction. Does that not mean that both the live and neutral wires carry the same amount of current, alternatively? Why is the neutral wire called 'neutral'? Strange characters when the output of `ls` is redirected to a file I want to list the components of the current working directory in a text file  ls -1 &gt; textfile   Output looks fine with more.   1010661085645 1010729039145 1010747080245 1010849051345 1010859053445 1011046075845   However when I view this textfile with emacs, several strange characters appear  [0m[01;34m1010661085645[0m [01;34m1010729039145[0m [01;34m1010747080245[0m [01;34m1010849051345[0m [01;34m1010859053445[0m [01;34m1011046075845[0m   Can anyone explain what is going on here? Are  and the  really the same thing?  Not too long ago, Susskind and Bousso uploaded the article "" with the thesis that the many-worlds interpretation and the multiverse of eternal inflation are one and the same thing. The parallel worlds of one are exactly the same thing as the parallel worlds of the other.   First, they claim decoherence can't happen over a complete description of the future light-cone of the measurement. Then, they apply that principle to eternal inflation. Without decoherence, superpositions of nucleating bubbles and metastable vacua can't decohere. According to the anthropic principle, most bubbles have no conscious observers, but an exponentially small minority do. Apply black hole complementarity to causal horizons.  Then, somehow, in a way I can't follow, they combine causal diamond worlds into a global multiverse.  Then they claim decoherence is reversible.  My head is spinning. What are your opinions on this paper? Fibonacci Recurrence Relations Solve the recurrence relation $f(n) = f(n − 1) + f(n − 2)$ with initial conditions $f(0)=1$, $f(1)=2.$   So I understand that it grows exponentially so $f(n) = r^n$ for some fixed $r$.  This means substituting this $r^n = r^n-1 + r^n-2$ which gives the characteristic equation of $r ^ 2 - r - 1 = 0$. I'm not 100% sure where to move on from here. Convert a router to a switch? Bash prompt error when pressing up arrow I've written this nice and colorful prompt for my OS X terminal:   parse_git_branch() {     git branch 2&gt; /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [\1]/' }  export PS1="\e]2;\w\a\e[1;30;1m\][\u@\[\033[0;36m\]\h\e[1;30;1m\]:\[\033[0;35m\]\w\e[1;30;1m\]] \[\033[0;31m\](\t) \[\033[0;33m\]\$(parse_git_branch)\n\[\033[0m\]\e[1;30;1m\]\$\[\e[0m\]"   I source ~/.bash_profile it and it works fine. except when I use the arrow up to navigate the history I get a weird thing happening.   basically the beginning of the source ~/.bash_profile command in the history, becomes part of the prompt. when I ctrl+c or enter it returns to normal, but as soon as I see the history of the source command the prompt changes again.   Here's an example where I've seen the history and then ctrl+u and typed ls:   [user@host:~/Documents] (14:01:40)  [branch] $source ~/.ls   Any clue about this? Proof of the duality of the dominance order on partitions Could anyone provide me with a nice proof that the  $\leq$ on partitions of an integer $n$ satisfies the following: if $\lambda, \tau$ are 2 partitions of $n$, then $\lambda \leq \tau \Longleftrightarrow \tau &#39; \leq \lambda &#39;$, where $\lambda&#39;$ is the conjugate partition of $\lambda$ (i.e. the transpose of the set of 'dots' which $\lambda$ represents).   I feel like there must be a nice clever and concise/intuitive proof of this, but all I can come up with is an ugly brute force approach based on the definition of sums of the components $\lambda_i$. Could anyone suggest a particularly nice way to obtain this result? Many thanks. Does excessive markup affect SEO? Confusion on Derived Sets and the $n$-the Derived Set I want to solve the following exercise 1.3.C. from page 27 of R. Engelking: General Topology.  For every positive integer $n$ the $n$-th derived set $A^{(n)}$ of a subset $A$ of a topological space $X$ is defined inductively by the formulas: $$  A^{(1)} = A^d \quad \textrm{and} \quad A^{(n)} = (A^{(n-1)})^d. $$ (a) Give an example of a set of real numbers that has three consecutive derived sets distinct from each other.  (b) Give an example of a set of real numbers that has infinitely many derived sets distinct from each other.   The definition is $$   A^d := \{ x \in X \mid x \in \overline{A \setminus \{ x \}} \}. $$ I am confused, cause the set $A^d$ ist closed, i.e. $\overline{A^d} = A^d$. And closed means it already contains all its limit points, so how can than $(A^d)^d$ be different from $A^d$? How do I copy to the clipboard in JavaScript? What is the best way to copy text to the clipboard (multi-browser)? I have tried: function copyToClipboard(text) {     if (window.clipboardData) { // Internet Explorer         window.clipboardData.setData(&quot;Text&quot;, text);     } else {         unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege(&quot;UniversalXPConnect&quot;);         const clipboardHelper = Components.classes[&quot;@mozilla.org/widget/clipboardhelper;1&quot;].getService(Components.interfaces.nsIClipboardHelper);         clipboardHelper.copyString(text);     } }  But in Internet Explorer it gives a syntax error. In Firefox, it says unsafeWindow is not defined. A nice trick without using : How do I completly remove XP from my pc. I currently have a dual boot with XP and Windows 7. Since installing Windows 7, I have never used XP. Can I remove it without causing problems with Windows 7? I mean are we certain that they will be able to provide us a huge improvements (in some tasks) compared to clasical computers? Performing test for homogeneity of variance without samples I'd like to perform a test for homogeneity of variance in r, but I don't have samples available to test.    I have the sample mean of each group, the sample deviation of each group, and the sample size of each group(100).  Brand    ybar_i  s_i    n_i --------------------------- LowTar   9.64    .291   100 A        10.22   .478   100 B        10.77   .372   100 C        11.57   .352   100 D        13.59   .469   100   I'm thinking I should use the Levene test from Lawstat package, but that requires samples to test.  Or I think I could use the Fmax test. but that also requires samples. I'm using leaflet to display a map.  I have a control section that I'd like to be open by default, but I can't find a way to do it through the . Is there a way to do this?