Optimization of A* in Python
Possible A* Optimizations
Geoserver ecw plugin problem I am trying to publish some ecw files with geoserver 2.7.2 on ubuntu 15.04 x64. I downloaded gdal plugin, gdal_data and native libraries for image-io 1.1.11 and set environment variables; GDAL_DATA, LD_LIBRARY_PATH.  I can see new store types when adding new one (ECW, EHdr, JP2ECW etc.). But when I try to save an ECW store with a valid ecw file which I tested with ArcMap, geoserver crashes with this error:    terminate called after throwing an instance of 'std::length_error'   what():  basic_string::_S_create Aborted (core dumped)  Do you have any idea about this problem? How do I programmatically determine operating system in Java? Proof: $\|X\|_2\leq \sqrt{n}\|X\|_\infty$ (Euclidean Norm)  Proof that $\|X\|_2\leq \sqrt{n}\|X\|_\infty$, if $x \in \mathbb{R^n}$.   With that, proof $\|X\|_\infty \to 0 \implies \|X\|_2\to 0$  I'm stuck:  $\|X\|_2= \sqrt{x^2_1+x^2_2+...+x^2_n}\leq\sqrt{n}\sqrt{x^2_1+x^2_2+...+x^2_n}$  I don't know how to use the fact: $\|X\|_\infty=\max(|x_1|,|x_2|,...,|x_n|)$ Good evening! I'm studing something about finite fields and I didn't find anything that can answer my question.  I have a finite field $\mathbf{F}_q$ and the equation to solve is $x^n=a$. Which are the condition to resolve this equation? For which values of $q, n, a$ there exist a solution?  I will be very happy if anyone can answer this question, possibly with a reference of a book (or an article) that explai this with more details.  Thank in advance to everyone who can answer this one, I really need to understand this. Is $\sum\limits_{n=1}^{\infty}\frac{n!}{n^n}$ convergent? I installed Windows 7 in a 3-year-old machine. It installed successfully, took all drivers and running great, but every 5-6 minutes it freezes for a few seconds... 30 seconds to 1 minute, and then it comes back alive.  I checked Event Viewer, but nothing matched the frozen timeline.  I would appreciate any help on how to detect what is causing it, service or hardware.  After it comes alive, everything runs normal. I did run Task Manager and checked CPU usage, at the time it freezes just before and after that no task took more CPU or memory. It was like an idle machine.  There aren't any external USB drives or devices. It is an on-board Intel desktop board with SATA HDD, and the SATA HDD is running in absolute good mode. I've grown quite fond of HTTP reverse proxies in our development environment and found the DNS based virtual host reverse proxy quite useful. Having only one port (and the standard one) open on the firewall makes it much easier for management.  I'd like to find something similar to do SSH connections but haven't had much luck. I'd prefer not to simply use SSH tunneling since that requires opening port ranges other than the standard. Is there anything out there that can do this?  Could HAProxy do this? How to logout an user from the connected app? NOTE: I am not interested in calling /secur/logout.jsp since it ends all the active salesforce sessions.  I am developing a web application that is registered on salesforce as a connected app, so I am using salesforce credentials to authorize the user.  Application is developed in REST API and the communication with salesforce is happening in restful manner.   Auth url:   Authorization:  Method 1: If there is no salesforce session active, The user is taken to salesforce login page, where he enters his salesforce details to be authorized and after which he is taken to home page of my web application.  Method 2: If there is already a salesforce session active in another tab, the user is directly authorized and is taken to home page of my web application.  Now I am trying to implement logout button for my application, such that the following scenarios are covered,  Scene 1: The user is authorized using method1, and the user press the logout. Upon trying to logback the user is prompted for credentials.  Scene 2:  The user is authorized using method2, and the user should use logout to logout of the web application (not from active sessions). Upon login, the user should be again able to login using method2.  Can someone help me on how to implement the logout button such that it covers scenario 1 &amp; 2.  Thanks in advance. \begin{eqnarray*} M&amp;=&amp; \max{\left \{a,b,\frac{a+b}{2},\right}\\ &amp;&amp; a+b,a+b/2\Bigg\} \end{eqnarray*} The vertices of an equilateral triangle are shrinking towards each other Story featuring smart people sent on a space mission to nowhere The story in question featured, as the vague title suggests, a "space mission" that is really a cover for forcing a bunch of really smart people to be in close proximity to each other for long enough that they can truly evolve their collective intelligence. I recall them developing new maths and, e..g, "farseeing" and eventually figuring out that while there was no planet at the end of their journey as they were told, they were able to construct one for themselves. Equivalent definitions for simple connectivity I would like to connect a USB Mouse, Keyboard or Storage Device to my Nexus 4. So far I know, for this USB OTG must be supported. Unfortunately I can not find any actual information about this.  Does anybody know whether USB OTG is supported by Ubuntu-Touch? If yes, does anybody know if it would work with a Nexus 4 device? A set with a finite integral of measure zero? Let $f : U \to V$ and $g : V \to W$ be linear transformations on the vector spaces $U$, $V$, and $W$. Supposedly,  $$ \dim(\ker(g \circ f)) = \dim(\ker(f)) + \dim(\ker(g) \cap \operatorname{im}(f)). $$  How might I go about proving that?    (Attempt:) The $\dim(\ker(g)\cap\operatorname{im}(f))$ term suggests to me that I should define a vector space $V' = \ker(g) + \operatorname{im}(f)$ to invoke the theorem that  $$ \dim(V') = \dim(\ker(g)) + \dim(\operatorname{im}(f)) - \dim(\ker(g) \cap \operatorname{im}(f)), $$  but I don't really see where to go from there. At some point, the filesystem on my digital audio player has become read-only. I cannot copy files into it or remove files on it.  Are there some possible reasons for the player's file system to change permissions in this way?  I tried using chmod:  $ sudo chmod a+rw SGTL\ MSCN/  chmod: changing permissions of `SGTL MSCN/': Read-only file system   SGTL MSCN is the mount point of the digital audio player.  What else can I try to make it writeable? I am running Ubuntu Gnome 16.10 (64bit). Gnome-shell version 3.20.4.   When I start my computer, I eventually see GDM3 offering a login prompt, as expected.   After I login, my monitors flash a little (like they're unplugged and then replugged in), and then I am brought to the gnome 3 desktop.   However, if I hit  CTRL + ALT + F1, I am brought back to GDM3, offering a login prompt.   If I then hit CTRL + ALT + F2,  I am brought back to my Gnome 3 desktop.  So it seems like GDM3 continues to run in TTY1 while the desktop runs in TTY2.   Questions   Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.  Am I using more graphical resources by having things setup this way? Is there a way to have GDM3 pass off the display to Gnome Desktop after I login? Is there any advantage do doing #3? Prove $\gcd(a+b,a^2+b^2)$ is $1$ or $2$ if $\gcd(a,b) = 1$ Assuming that $\gcd(a,b) = 1$, prove that $\gcd(a+b,a^2+b^2) = 1$ or $2$.   I tried this problem and ended up with $$d\mid 2a^2,\quad d\mid 2b^2$$ where $d = \gcd(a+b,a^2+b^2)$, but then I am stuck; by these two conclusions how can I conclude $d=1$ or $2$?  And also is there any other way of proving this result? How do I write a URL in Markdown on Stack Exchange? What is Interface method in salesforce