Representation of Array program in java
What's the simplest way to print a Java array?
I just did a clean installation of Ubuntu 18.04.1 on a tablet which was previously running Ubuntu 17.10. Back then just after the installation the screen was rotated, but I was able to get it to work (I think it was running on Wayland).  Now with 18.04.1 the situation is similar: when Ubuntu first boots the login screen is upside-down, but that's not a problem. This time, after login, the screen is correctly oriented but the mouse cursor is upside down and mouse movements are inverted with respect to both axes. The problem is that when I try to click on something the click is registered on the position on the other side of the screen (symmetrically with respect to the center).   It almost seems like the screen (desktop, application, etc.) is correctly displayed, with also the mouse positioned correctly and moving as it should, but then the mouse cursor which is shown to the user is inverted, like if the screen had been inverted just before drawing the cursor.  I already tried the answers I could find, but none worked for me. Anyone have an idea of what's going on?  Thanks Why did Hogwarts Library carry a book containing information on horcruxes if it was a banned subject? "Mornings came and cast a blinding sunlight over everything, and he felt like nothing worthwhile could be accomplished."  For some reason, I feel like "a blinding light" is ok, but if its sunlight, then I should drop the "a" and write "cast blinding sunlight", but I'm not sure why I feel this way.   Can anyone offer some enlightenment?  edit - alternate phrasing, closer to being a literal translation: "Mornings came without warning, flooding the day with a strong sun, and he felt like nothing worthwhile could be accomplished."   I would still like an answer to the technical question of whether I should drop the "a", but would also appreciate knowing if anyone thinks option #2 is a better choice. Understanding the -exec option of `find` As most of you know, in the Microsoft Store, there are . This means that on Windows I can emulate Ubuntu and have the Ubuntu command line directly on Windows.  The question is very easy: what can’t I do from the Ubuntu command line emulated in Windows that I can do on a proper Linux-based Ubuntu? Is it useful to download this Ubuntu application, install it, and work just with it instead of the real OS? Is it possible to install all the development libraries? Can I write (or not) device drivers? In other words: what are the limits?  What features of Ubuntu Linux-based are missing from Ubuntu-on-Windows?  New answers are welcome: I know that every software is always changing by improving characteristics and features! Skynet - were AI's actions evidence of Intelligence? Low budget alien movie about the Earth being cooked I’m looking for an alien movie I watched years ago, mid to late 2000’s about the Earth being cooked or heated up by aliens. The poster is a reflection of the Earth heating up with an orange glow on an aliens eye. It was a low budget movie and I think the one I watched was pirated from China. Again low budget, bad quality and the name could’ve been something worthy he word scorch or something like that. The alien in the movie had legs with knees that went inwards and it had red eyes. Create backup iPhone with forgotten encryption password I'm trying to make a backup from my iPhone, however it's set to be password protected. I do not know the password, as I've never set one. I've tried all the passwords I know, which I've ever used to make sure I didn't set it.  I've also tried the default 0000 and 1234 codes.   I want to uncheck the encryption checkbox in iTunes, but it requires me to type a password. What else can I try?  I have no problems in removing all backups and start from the scratch somehow, however - I do not want to restore my phone as new and remove all those settings. Is there a symbol that looks like the element sign $\in $ but instead of being curved, looks more like a less than sign $&lt; $? I have trawled through hundreds of symbols and tried detexify. Where can I rent a decent mountain bike in Zürich? I am going for a 4 day trip in Zürich and I would like to bike quite a lot. Though biking is quite advertised, I failed to find a decent bike rental shop in the city. Would highly appreciate some tips! Looks like there is something wrong with reputation calculation:        +2*5 -6*2 = -2...   why there is +6 in reputation popup?  As @Catija said in comment calculation is OK in the profile:        Perhaps the issue is in the top-bar. Let $p$ be prime and $(\frac{-3}p)=1$. Prove that $p$ is of the form $p=a^2+3b^2$ Let $p$ be prime and $(\frac{-3}p)=1$, where $(\frac{-3}p)$ is Legendre symbol. Prove that $p$ is of the form $p=a^2+3b^2$.   My progress:  $(\frac{-3}p)=1 \Rightarrow$ $(\frac{-3}p)=(\frac{-1}p)(\frac{3}p)=(-1)^{\frac{p-1}2}(-1)^{\lfloor\frac{p+1}6\rfloor}=1 \Rightarrow$ $\frac{p-1}2+\lfloor\frac{p+1}6\rfloor=2k$  I'm stuck here. This is probably not the way to prove that.  Also tried this way:  $(\frac{-3}p)=1$, thus $-3\equiv x^2\pmod{p} \Rightarrow$ $p|x^2+3 \Rightarrow$ $x^2+3=p\cdot k$ stuck here too.  Any help would be appreciated. Is there a contraction for "I was"?    There are contractions for "I am" (I'm), "I will" (I'll), "I have" (I've), "I would" (I'd), and yet the simple past tense seems conspicuously missing. Why is that? Does that reasoning apply to "I did" and "I had" as well? Polynomial contrasts for regression I cannot understand the usage of polynomial contrasts in regression fitting. In particular, I am referring to an encoding used by R in order to express an interval variable (ordinal variable with equally spaced levels), described at .  In the example of , if I understood correctly, R fits a model for an interval variable, returning some coefficients which weights its linear, quadratic, or cubic trend. Hence, the fitted model should be:  $${\rm write} = 52.7870 + 14.2587X - 0.9680X^2 - 0.1554X^3,$$  where $X$ should take values $1$, $2$, $3$, or $4$ according to the different level of the interval variable.  Is this correct? And, if so, what was the purpose of polynomial contrasts? How is well-ordering in real line possible?  I know that the axiom of choice provides possible well-ordering, but intuitively, this does not seem to make sense.  How can you compare 1.111111.... and 1.111111... when we can never know the full digits of each number? I want to resize the Unity launcher. Is that possible? High-end compact camera with swivel screen and running on AA batteries I'm looking for a new compact camera that:   has a  is small enough to be mountable on a  and, runs on AA batteries. good flexibility   Requirement (3) stems from the fact that I may be hiking in the wild for weeks on an end, with no opportunity to change a Lithium-Ion battery. If another solution permits me to take thousands rather than hundreds photographs on full charge, I may consider that as well.  Additionally, it would be nice (but not essential) to have:   the ability to handle high dynamic range a viewfinder physical buttons — I live in a cold climate, and don't like to use touch-screens   The upper price range for compact models is still good for me, and I don't mind a pricerange of €400–€800 (but I don't mind cheaper either, if still of good quality).  I've been the happy user of several models in the , but now my PowerShot A650 IS has died. Starting from , it seems requirement (3) kills of many cameras: the , (might also fail (2)), the , the , the ... Although enough models meet requirements (1), (2), and (4), as well as the (non-essential) additional features I listed, it seems in the past 5 years, cameras have moved away from using AA batteries. What camera models still exist that meet my requirements?    Last photograph taken with my Canon PowerShot A650 IS, taking on Christmas Day 2012 in the Caldera de Taburiente, La Palma, Canary Islands, Spain. A friend wants to use my account for a wire transfer. Is this a scam or is it legitimate? I have a friend since July online and Exxon owe him for a balance on a 2014 contract off the shores of Liverpool. He is presently in the Gulf of Mexico completing a contract that last for one year. During that year he cannot get off the boat there fore he cannot receive the money.  Exxon has notified him that his check has been deposited in Samba Bank in London. If he doesn’t receive his money within two weeks it goes back to Exxon and he said that there I not telling nohow long before he will receive the money again. He said that with him being off shore that he needs me to be his beneficiary to receive the money for him. He wants me to keep the money in my account and when he gets off the boat in 6 weeks he is relocating to where I live.  I am to buy a house before he gets here and then he wants us to start a business together. He talked with me for quite a while before he told me how much he makes. He knows I do not have any money to mention. I have stock in a formal shop but not any money.  He said if this money had not come in when it did he would have had to postpone his plan until he gets paid what Shell Oil owes him for this contract that he will finish October 15th. He said he had given enough of his life to the gas and oil industry and is not going to sign another contract.  What do you think about the safety of this? How do I find out which process is eating up my bandwidth? I think I'm being the victim of a bug here. Sometimes while I'm working (I still don't know why), my network traffic goes up to 200 KB/s and stays that way, even tough I'm not doing anything internet-related.   This sometimes happens to me with the CPU usage. When it does, I just run a top command to find out which process is responsible and then kill it. Problem is: I have no way of knowing which process is responsible for my high network usage. Both the resource monitor and the top command only tell me my total network usage, neither of them tells me process specific network info.  I've found questions here about monitoring total bandwidth usage, but, as I mentioned, that's not what I need. Is there another command I can use to find out which process is getting out of hand?  The command iftop gives results that disagree entirely with the information reported by System Monitor. While the latter claims there's high network traffic, the former claims there's barely 1 KB/s.  I've already tried killing all the obvious ones (Firefox, update-manager, Pidgin, etc) with no luck. So far, restarting the machine is the only way I found of getting rid of the issue. Creating Layer in GeoServer using REST As part of a possible solution to   I want create a layer in GeoServer via REST that supplies a SQL statement along with a userid. I think i would  and publish it. I need to do this all in REST. Does anyone have any code examples?