Android studio was working fine. But after I upgrade ubuntu 17.04 to 17.10 and then try to start android studio I got the following error .   sudo ./android-studio/bin/studio.sh  [sudo] password for user:  Invalid MIT-MAGIC-COOKIE-1 key Start Failed: Internal Error. Failed to initialize graphics environment  java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.     at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)     at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)     at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)     at java.security.AccessController.doPrivileged(Native Method)     at sun.awt.X11GraphicsEnvironment.&lt;clinit&gt;(X11GraphicsEnvironment.java:74)     at java.lang.Class.forName0(Native Method)     at java.lang.Class.forName(Class.java:264)     at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)     at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)     at sun.awt.X11.XToolkit.&lt;clinit&gt;(XToolkit.java:126)     at java.lang.Class.forName0(Native Method)     at java.lang.Class.forName(Class.java:264)     at java.awt.Toolkit$2.run(Toolkit.java:860)     at java.awt.Toolkit$2.run(Toolkit.java:855)     at java.security.AccessController.doPrivileged(Native Method)     at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)     at java.awt.Toolkit.getEventQueue(Toolkit.java:1734)     at java.awt.EventQueue.isDispatchThread(EventQueue.java:1043)     at javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1361)     at javax.swing.text.StyleContext.reclaim(StyleContext.java:454)     at javax.swing.text.StyleContext.addAttribute(StyleContext.java:311)     at javax.swing.text.html.StyleSheet.addAttribute(StyleSheet.java:578)     at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:1501)     at javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:1312)     at javax.swing.text.StyleContext$NamedStyle.&lt;init&gt;(StyleContext.java:1259)     at javax.swing.text.StyleContext.addStyle(StyleContext.java:107)     at javax.swing.text.StyleContext.&lt;init&gt;(StyleContext.java:87)     at javax.swing.text.html.StyleSheet.&lt;init&gt;(StyleSheet.java:166)     at javax.swing.text.html.HTMLEditorKit.getStyleSheet(HTMLEditorKit.java:391)     at com.intellij.util.ui.UIUtil.&lt;clinit&gt;(UIUtil.java:102)     at com.intellij.ide.plugins.PluginManager.start(PluginManager.java:73)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.intellij.ide.Bootstrap.main(Bootstrap.java:39)     at com.intellij.idea.Main.main(Main.java:119)
I installed Ubuntu 17.10. Now I am having trouble with gksu:  $ gksu -dg synaptic No ask_pass set, using default! xauth: /tmp/libgksu-HgUjgQ/.Xauthority STARTUP_ID: gksu/synaptic/8760-0-alex-XPS-15-9530_TIME4974977 cmd[0]: /usr/bin/sudo cmd[1]: -H cmd[2]: -S cmd[3]: -p cmd[4]: GNOME_SUDO_PASS cmd[5]: -u cmd[6]: root cmd[7]: -- cmd[8]: synaptic buffer: -GNOME_SUDO_PASS- brute force GNOME_SUDO_PASS ended... Yeah, we're in... Unable to init server: Could not connect: Connection refused (synaptic:8767): Gtk-WARNING **: cannot open display: :1 xauth: /tmp/libgksu-HgUjgQ/.Xauthority xauth_env: (null) dir: /tmp/libgksu-HgUjgQ   If I don't use -g, the password dialog is disabled. So looks like a problem with creating a tty for root.  Any advice?
Prove : $p$(n│even number of ODD parts)=$p$(n│distinct parts ,number of ODD parts is even ) My friend installed Windows 7 on his computer (upgrading from XP).  He wasn't sure if his processor supported x64 or not, so he installed the x86 version, just to be on the safe side.  After I looked it up, it turns out his processor does support x64, and now we want to upgrade.  The question is: is it possible to upgrade without completely re-installing the OS?  Can I? Or do I have to format the C: partition again? I realise it's unlikely that posting the file would cause a problem. However, since I know nothing about what a what's in a minidump file I thought I should check. How to show that $\int_{0}^{\pi}{\sin^5 x\over 1+\cos^3 x}\mathrm dx=\ln 3?$ Given the integral $(1)$     $$\int_{0}^{\pi}{\sin^5 x\over 1+\cos^3 x}\mathrm dx=\ln 3\tag1$$   This integral seems to be quite tough, I can't even know where to start. I have try substitution $u=1+\cos^3 x$ and $u=\cos^3 x$, can seem to remove the x variables.  We have the following identities   $$\sin^5a={5\over 8}\sin a-{5\over 16}\sin 3a+{1\over 16}\sin 5a\tag2$$  $$\cos^3 a={3\over 4}\cos a+{1\over 4}\cos 3a\tag3$$  We may write $(1)$ as  $$\int_{0}^{\pi}{\sin x(1-\cos^2 x)^2\over 1+\cos x(1-\sin ^2 x)}\mathrm dx\tag4$$  $u=1-\sin^2 x\implies \mathrm du=-2\sin x\cos x\mathrm dx$ then $(4)$ becomes  $${1\over 2}\int_{0}^{1}{(1-u)^2\over \sqrt{u}+u^2}\mathrm du\tag5$$  $u=v^2\implies du=2vdv$ then $(5)$ becomes  $$\int_{0}^{1}{(1-v^2)^2\over v+v^4}\cdot{v\mathrm dv}\tag6$$ Simplify to  $$\int_{0}^{1}{(1-v)(1-v^2)\over 1-v+v^2}\mathrm dv\tag7$$  I guess using partial decomposition of fraction and integrate term by term, seem lengthy process  How else can we prove $(1)$? The "Hurry up, it's raid night" achievement in Starcraft 2 involves "beating Wings of Liberty, on normal, in 8 hours or less."  Is there a recommended mission path to take? Which mission should I take for the branching paths? Does it count time spent on the Hyperion in between missions, or is it exclusively time elapsed on missions. Does replaying a mission affect the time? General tips / hints from those who've unlocked the achievement?  Edit: Just got this achievement tonight, finally! The answer was perfect. $S_3$ permutes the elements of $\mathbb{R}^3$, show that $\sigma (x_1, x_2, x_3) = ( x_{\sigma^{-1}(1)}, x_{\sigma^{-1}(2)}, x_{\sigma^{-1}(3)})$. I am trying to show that how the binary expansion of a given positive integer is unique.  According to this link, , All I see is that I can recopy theorem 3-1's proof?  Is this polished enough of an argument. Thanks Which metric to use to evaluate highly imbalance classification model performance I have to do classification model to predict the possibilities of person getting cancer based on certain attributes. The data is highly imbalanced. As per client requirement I have to report model performance based on any one of these 4 metrics AUC_Weighted normalized root mean square log loss Accuracy  Can you suggest me which one should I use? What is the ideal way to handle data pins D+ and D- on a USB power adapter to be compatible with fast charging on devices? If I multiclass into 2 or more spellcasting classes, how do I determine my known/prepared spells? If I multiclass into 2 or more classes/subclasses that can cast spells, how do I determine what spells I know or can prepare?  For instance, if I am playing a multiclassed character with 1 level in warlock, 2 levels in bard, and 3 levels in paladin, how do I determine which spells I know/have prepared?    Related: I'm using the package braket for my physics notes, and this speeds things up a great deal but I'm constantly writing \ket{\psi} or \bra{\psi}, and because this specific pair of bra and ket appears so often, this gets repetitive and I would like a macro to speed this up.  However since the braket package works only in math mode, my attempt \newcommand{\ketp}{$\ket{\psi}}$ work when I'm writing in text mode, but when I'm writing in mathmode it breaks (unsurprisingly).  Is there any way I can get this command to work in both mathmode and textmode without having to define two different macros, one for each?    Thanks in advance for any help.  P.S. I'm certain this is a very simple question but I could find little to no explanation of this feature. This is a comic book I read no later than 1993 (so is pre-1993).  And probably after 1988 though I can't be certain.  The protagonist is a huge barbarian with an axe, who seems like an old man, who is defending a series of gigantic walls against an invading army, apparently single-handedly. They keep having to fall back to inner walls. He has to get a massage at one point (not that kind of comic btw).  It's not a super-hero or funny comic, it's more of a serious graphic novel.  That's about it, sorry it's so vague. For an infinite line charge, $E$ falls off with $1/r$; for an infinite sheet of charge it's independent of r! The infinitesimal contributions to $E$ fall off with $1/r^2$, so why doesn't the total $E$ fall off the same way for the infinite line and sheet charges? Network simplex method, leaving and entering variables Why does Microsoft Windows' performance appear to degrade over time? Windows XP/2003 and earlier (can't attest to Windows Vista, but I suspect it's the same) all appear to become more sluggish over time as applications are installed and uninstalled.  This is not a scientifically tested observation, but more of a learned-through-experience piece of wisdom.  (I've always suspected the registry as being behind the issue.)  Is there any concrete evidence of this degradation occurring, or it just an invalid perception of mine? If a graph with $n$ vertices and $n$ edges there must a cycle? SSH tunnelling with multiple dynamic port forwardings I am trying to monitor multiple JVMs running on different servers through an ssh tunnel.  Thanks to one of the UNIX gurus here, I have managed to get this running for a single server by:   Run jstatd on the target server Set up Visual VM to use 9696 as its socks proxy port. On my local PC, run:  ssh -L 2222:server1:22 bastion-host  On my local PC, run:  ssh -o port=2222 -D 9696 -L 1099:localhost:1099 localhost    This does the trick. Now when I try and tunnel to a second server I try:   On my local PC, run:  ssh -L 3333:server2:22 bastion-host  On my local PC, run:  ssh -o port=3333 -D 9696 -L 2099:localhost:1099 localhost    However, the last step complains with:  bind: Address already in use channel_setup_fwd_listener: cannot listen to port: 9696   Has anyone managed to do something similar?  Update:  The reason this is so complex is that jstatd is an RMI server application:    As with RMI applications, these register with an rmiregistry. Using rmi through a firewall requires me to use SOCKS as described here:    Unfortunately, visualvm only lets me set the SOCKS proxy port once, and the -D option won't allow me to forward the same local port to both servers... Call Servlet and invoke Java code from JavaScript along with parameters Can the Universe be deterministic and still allow free will? I am used to Turbo C++ and I am new to Ubuntu.  I really need Turbo C++ to get started.  Can somebody please help me to install Turbo C++ on Ubuntu.