JAVA: Having trouble printing Array
What's the simplest way to print a Java array?
What are the technical obstacles that doesn't allow OSX to be installed in a PC? Can you choose which version of a game to play on Steam? Satisfying explanation of Aristotle's Wheel Paradox. The paradox:    We have a circle and there is another circle with smaller radius. They are co-centeric.  If circle make full turn without sliding, both smaller and bigger circle make full turn too. If we assume that the passed road is equal to the circumference of circles. We have got smaller circle's radius is equal to bigger one's.  Unsatisfying Solutions I found:    "Do not assume that smaller circle's circumference is equal to passed road since the surface that contacts to the ground is bigger one. " // Okey but it does not explain the paradox, it explains just what is the wrong assumption (even does not explain why it is a wrong assumption.) It is undeniable that every point on both smaller and bigger circle will contact exactly one and only one point on their path. Therefore we can think that this is a bijective maps and smaller circle is isomorphic to bigger one. (Okey but ....)   Question: What is the true answer? What is wrong with the definition of circumference of a circle and relationship with its taken path. 2015 13" MacBook Pro Trackpad and Keyboard stop working Calculate $E(Y)$ and $Var(Y)$ given the random variable which is exponentially distributed The random variable $X$ is exponentially distributed with parameter $\lambda = \dfrac{1}{2}$. Also, define $Y = -2X + 1$. Calculate $E(Y)$ and $Var(Y)$.  So we have   $$f_X(x) = \dfrac{1}{2} e^{-\dfrac{1}{2}x} $$  if $x\ge0$ and $0$ otherwise.  But how to calculate $E(Y)$ and $Var(Y)$ ? External Styles in JasperReports I'm working on a system that includes a large number of reports, generated using . One of the newer features is that you can define styles for reports.  From the available docs I believe there is some way to have an external file defining styles to use, and you can reference that in your jasper reports. This allows a single style to be used by multiple reports.  I can't find any concrete information on whether this is an actual feature, and if it is, how to use it. Does anyone know if it is possible to have external styles for jasper reports, and if so, how to do it? CPU clock speed versus CPU core count - higher GHz, or more cores for SQL Server? We are beginning to provision a set of physical servers for a virtual cluster of SQL Server 2016 nodes within VMware. We will be utilizing Enterprise Edition licenses.  We plan on setting up 6 nodes, but there is a bit of a debate on what the ideal way to provision the physical servers with regards to CPU clock speed versus CPU core count.  I know this is largely dependent on transaction volume and number of databases stored among other software-specific factors, but is there a general rule of thumb that is advised?  For instance, is a dual 8-core, 3.2 GHz physical server (16 cores) more preferential to a dual 16-core, 2.6 GHz server (32 cores)?  Has anyone come across a white paper that further delves into this type of topic? Even/Odd Binomial Coefficients I was wondering if there's a nice general solution for the following problem:  How many numbers in the $n^\text{th}$ row of Pascal's triangle are even? How many are odd? What software is focused on reviewing and organizing images? Why couldn't Harry see Thestrals at the end of Goblet of Fire after the senseless and shocking death of Cedric Diggory?   At the end of Goblet of Fire, the carriages still appeared horseless to Harry:     Hermione turned away, smiling at the horseless carriages which were now trundling towards them up the drive, as Krum, looking surprised, but gratified, signed a fragment of   parchment for Ron.   Goblet of Fire - Page 629 - British Hardcover - Adult Edition   At the beginning of Order of the Phoenix, Harry sees the Thestrals for the first time:     Here stood the hundred or so horseless stagecoaches that always took the students above first year up to the castle. Harry glanced quickly at them, turned away to keep a lookout for Ron and Hermione, then did a double-take.   The coaches were no longer horseless. There were creatures standing between the carriage shafts.   Order of the Phoenix - Page 178 - British Hardcover - Adult Edition   We know that only those who have seen death can see Thestrals:     ‘Don’ worry, it won’ hurt yeh,’ said Hagrid patiently. ‘Righ’, now, who can tell me why some o’ yeh can see ’em an’ some can’t?’   Hermione raised her hand.   ‘Go on then,’ said Hagrid, beaming at her.   ‘The only people who can see Thestrals,’ she said, ‘are people who have seen death.’   ‘Tha’s exactly right,’ said Hagrid solemnly [...]   Order of the Phoenix - Page 394 - British Hardcover - Adult Edition   A month went by between Cedric's death and the end of the spring term -- is this enough time for Harry to have truly internalized Cedric's death? Goblet of Fire indicates that Harry was in shock following Cedric's murder, but was able to relate the story of Cedric's death to Mr. and Mrs. Diggory.     When he looked back, even a month later, Harry found he had few memories of the following days. It was as though he had been through too much to take in any more. The recollections he did have were very painful. The worst, perhaps, was the meeting with the Diggorys that took place the following morning.   [...]   ‘He suffered very little, then,’ she said, when Harry had told her how Cedric had died.'   Goblet of Fire - Page 621 - British Hardcover - Adult Edition   So, then, why couldn't Harry see Thestrals at the end of Goblet of Fire? The problems that appear in difficult math competitions such as the IMO or the Putnam exam are usually very difficult and require some ingenuity to solve. They also usually don't look like they can be solved by simply knowing more advanced theory and the such.  How do people typically come up with these problems? Do they arise naturally from advanced mathematics (the somewhat infamous 'grasshopper problem' from the 2009 IMO comes to mind - to my not exactly knowledgeable mind this problem looks like it popped out of basically nowhere)? What is the perspective that mathematicians take when seemingly "inventing" these problems with no theoretical motivation to them whatsoever? Does the 90 days VWP rule expire if you travel from the US to Canada? I'm on a New Zealand passport.  From most US Embassy webpages:     The Visa Waiver Program (VWP) enables nationals of certain countries,   including Australia, New Zealand, and the U.K., to travel to the   United States for tourism or business for stays of 90 days or less   without obtaining a visa, if certain requirements are met. Under the   VWP, time spent in Canada, Mexico, and adjacent islands counts towards   the maximum of 90 days stay allowed under the program.   I'll be there on a 1-year working holiday visa starting when I arrive in Vancouver. I'm spending 3 days in Hawaii en route to Vancouver. This seems to imply that 90 days after landing in Hawaii, my time will be up and I won't be able to get back into the US, as my living in Canada will not reset the clock. What if after this time I want to say, pop across the border to Seattle? How can I restart the 90 days, without having to resort to say, flying to Japan and back just to reset it? Why doesn't Neo teleport at random? Let $f \in L^1(\mathbb{R})$, for $a\in \mathbb{R}$ let $f_a(x)=f(x-a)$, prove that: $$\lim_{a\rightarrow 0}\|f_a -f \|_1=0$$  I know that there exists $g\in C(\mathbb{R})$ s.t $\|f-g\|_1 \leq \epsilon$, this is also true for $f_a$ and $g_a$.  Now I have the next estimation:  \begin{align*} \|f_a-f\|_1 &amp;= \int_{\mathbb{R}} |f(x)-f(x-a)| dx \\ &amp;= \int |f(x)-g(x)+g(x)-g(x-a)+g(x-a)-f(x-a)| \\ &amp;\leq \|f-g\|_1 + \|f_a-g_a\|_1 + \int |g(x)-g(x-a)| \end{align*} my question is: I can argue that $\lim_{a\to0} \int |g(x)-g(x-a)| = \lim_{a\to0} \lim_{T\to\infty} |g(x_0)-g(x_0-a)| 2T$, now I think that I can change the order of the limits here, but I am not sure why?  P.s $x_0$ is some point in $[-T,T]$, and the above is valid from the intermediate integral theorem for continuous functions, right?  Thanks. In the Monster Manual, gargoyles, golems, helmed horrors, and xorns all enjoy either immunity or resistance to:     bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't adamantine   Is it actually possible to obtain a nonmagical adamantine weapon?   Although the Dungeon Master's Guide describes adamantine armor (p.150) and Daern's instant fortress (p.160) as being made of this metal, and provides an AC for destructible adamantine objects (p.246), there's no mention of adamantine weapons. The creation spell (PH p.229) can produce an adamantine weapon that lasts for a single minute. The true polymorph spell (PH p.283) can't turn a regular weapon into adamantine, but it might be able to  for an hour. The only way to obtain a (somewhat) permanent adamantine weapon in the game seems to be to loot one from drow elves (MM p.127). A PC (perhaps even a drow) with proficiency in smith's tools could presumably craft a nonmagical adamantine sword during downtime at 5gp per day (PH p.187), except that unlike silvered weapons, there's no pricing for adamantine.   It's seeming like mugging an NPC drow is the only by-the-book way to tool up against gargoyles. Synonym for "Fellow Sufferers"? How do I uninstall Windows 8 and install Windows 7? I have a friend, who just got a new Toshiba Satellite C series with Windows 8. I tried to uninstall Windows 8 and install Windows 7 but was unable to do so.  I did everything I could:   Boot disk - would not load (error message Media -- Fail) Boot USB - would not load (error message Media -- Fail) Loading Windows 7 disk from system, fails with different errors   Does anybody know what I can do in order to install Windows 7? E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages I am stuck with the following problem.     Prove that $$\limsup_{n \to \infty} (a_n+b_n) \le \limsup_{n \to \infty} a_n + \limsup_{n \to \infty} b_n$$   I was thinking of using the triangle inequality saying $$|a_n + b_n| \le |a_n| + |b_n|$$ but the problem is not about absolute values of the sequence.  Intuitively it's clear that this is true because $a_n$ and $b_n$ can "reduce each others magnitude" if they have opposite signs, but I cannot express that algebraically...  Can someone help me out ? Upgrade High-Trust Addin/App from 2013 to 2016 I have a SharePoint 2013 environment with several High-Trust Addins. This must now be upgraded to SharePoint 2016.  My Questions:   I was unable to find any documentation on the required steps. Links are welcome. Do i have to migrate App-Management Service and Subscription Settings Service?  don't even mention them.   say yes, but linked background is no longer available.  , i had to create a New-SPTrustedSecurityTokenIssuer. In this step, a RegisteredIssuerName had to be specified. This IssuerName consists of the Realm and the .   I think IssuerID can and should be migrated to SharePoint 2016, as it it also defined inside the High-Trust app. What about the Realm? This is by default the same value as FarmID. If i migrate this value, i have to change the Realm in SharePoint 2016. Or should i create the TST with a new Realm and existing IssuerID?