Evaluation order of multiple conditions inside "if" clause
Is short-circuiting logical operators mandated? And evaluation order?
Trying to run a Ubuntu server for the first time... But everything is in a terminal. Is there a way to switch to a GUI? What should I do after a suspected compromisation of my system? Does anyone know of a nice (and preferably free) way to integrate Prolog and C#?  Im looking to create a Prolog dll or similar to call from my managed code, and retrieve an answer once all the processing has been complete. Im looking for it to be predominantly one sided (c# calls Prolog).  I have seen  which talks about Prologs real world usage but I was wondering if anyone had either any experience with c# &amp; Prolog? or a nice tutorial/article? How to extract img src, title and alt from html using php? I would like to create a page where all images which reside on my website are listed with title and alternative representation.  I already wrote me a little program to find and load all HTML files, but now I am stuck at how to extract src, title and alt from this HTML:  &lt;img src="/image/fluffybunny.jpg" title="Harvey the bunny" alt="a cute little fluffy bunny" />  I guess this should be done with some regex, but since the order of the tags may vary, and I need all of them, I don't really know how to parse this in an elegant way (I could do it the hard char by char way, but that's painful). Selecting a database in mysql with spaces in its name I want to select my particular database in mysql console, but the problem is that my database name has a space in between and mysql ignores the part after the space. For instance, when i give the command:  use 'student registration'   I get the message:  cannot find database 'student' Compilers and argument order of evaluation in C++ What is the highest obtainable resolution of FREE elevation data in the UK? What does ** (double star/asterisk) and * (star/asterisk) do for parameters? In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2): I'm trying to find the name of a book I had as a kid back in the 80's/90's that was a collection of science fiction short stories and in particular one story in it.  The book: I remember the cover being mostly orange with the face of an alien taking up most of the cover. Scaly looking 'grey' style alien with hooded green eyes. They may have also been a 60's/70's style space ship in the background with a man and woman.  The story: Was set after all human life had ended in a great war and the story followed one of the many autonomous bombers still flying the skies carrying out their missions repeatedly bombing already leveled cities. At least that's how I remember it.  Any help/clues you can give would be much appreciated as I'd love to share these stories with my kid.  Some other stories it had, if any of these can be identified it might help me find the book:   Two guys talking in a room and one give the other a wooden carving of an apple and starts telling him the history of the object and how it's used to hypnotise people who hold it as they can't resist stroking it and it puts them in a catatonic state. A bunch of robots/machines wandering the post-apocalyptic country side, free of their duties to mankind. Their adventure comes to an end when they run into a hermit living in the country and their programming kicks in and they immediately become his servants. A story about first contact with an alien race, the aliens come to earth and land at the coordinates of an air-force base but upon arrival there is confusion as the humans cannot see the aliens and the aliens cannot see the humans. The aliens complain that they've been tricked and that their ship is sinking. The humans think this is strange until they realise the aliens are incredibly small and have landed in a puddle on the airfield. Different dependencies for different build profiles Is it possible to have a different set of dependencies in a maven pom.xml file for different profiles?  e.g.  mvn -P debug mvn -P release   I'd like to pick up a different dependency jar file in one profile that has the same class names and different implementations of the same interfaces. Let $ Y = \{ (1,1),(0,0\} \subset \mathbb A_k^2$. Find the $ \mathbb I(Y)$.   As if $f(x,y) \in \mathbb I(Y)$ then as $f(0,0)=0$ hence constant term of $f$ is zero and as $f(1,1)=0$ therefore sum of the coefficients of $f(x,y)$ is zero. But how can we describe this set properly? Customize equation numbering for Equation environment? I want to manually label equation number ? For example I want to label this equation 3.1 instead of (1) which automatically pops up. Is it also possible in split environment as well or not ?      \begin{equation}     \log \mu_{ijk}= \lambda + \lambda_i ^I + \lambda_j ^J+\lambda_k ^K+\lambda_{ij} ^{IJ}+\lambda_{ik} ^{IK}+\lambda_{jk} ^{JK}+\lambda_{ijk} ^{IJK} \label{eq:3.1}     \end{equation} Which arena do free and crown chests use when determining the cards you will get? What are the options for traveling to the airports in Paris? Paris has 3 airports (Orly, Roissy, Beauvais), what are the options to go to or to come from there?  (There is also Vatry (XCR) but there is very few flights and i see the shuttle system is currently off.) Draw a vertical line over the entries of a column in an array I'd like to draw vertical/horizontal lines over the entries of a column/row in an array. I find the method to draw horizontal lines at . But when I used the same way to draw the vertical lines. It didn't look well. My codes are:  \usepackage{tikz} \usetikzlibrary{calc} \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};} \newcommand{\DrawLine}[3][]{% \begin{tikzpicture}[overlay,remember picture]     \draw [#1] ($(#2)+(0,0.6ex)$) -- ($(#3)+(0,0.6ex)$); \end{tikzpicture}% }%  \begin{displaymath} \left[ \begin{array}{cccc} \tikzmark{11}{15} &amp; 0 &amp; \tikzmark{13}{0} &amp;0\tikzmark{14} \\ 0 &amp; 50 &amp; 20 &amp; 25 \\ 35 &amp; 5 &amp; 0 &amp; 10\\ \tikzmark{41}{0} &amp; 65 &amp; \tikzmark{43}{50} &amp; 65 \end{array} \right]. \DrawLine[black,thick]{11}{14} \DrawLine[black,thick]{11}{41} \DrawLine[black,thick]{13}{43} \end{displaymath}   The result looks like     But the result I want is     Does anyone know how to fix this? Thank you. My PC has 8 Gb of ram. Is there any way to make ubuntu use most of it? I mean rarely drop caches and keep once opened programms in ram longer, preload apps on boot, etc. Does the Divergence Theorem Work on a Surface? The divergence theorem in $\mathbb{R}^3$ says that the integral of the divergence of a vector field over a solid $\Omega$ in $\mathbb{R}^3$ equals the flux through the surface of $\Omega$ denoted by $\partial \Omega$.   My question is that can you use the divergence theorem in $\mathbb{R}^3$ where you're integrating the divergence of a vector field over a surface $S$ in $\mathbb{R}^3$ to get the flux through the edges ($\partial S$) of the surface? So if the surface $S$ is closed in $\mathbb{R}^3$ such as a sphere, then clearly $\partial S = 0$ so the integral of the divergence over this particular $S$ is $0$? Bibtex link word "AND" with different translations in a single bibliography " java.lang.IllegalArgumentException: uri.getScheme() == null! " error using JavaFX to play audio Close Vs Closed and Open Vs. Opened Which board is proper to describe the state of any shop/restaurant?  For instance,     A restaurant with the board Close OR Closed?    A restaurant with the board Open OR Opened?   Well, if I think 'closed' is used when the restaurant is permanently or temporarily closed for more than a day (say for holidays or renovation), what about the conversation mentioned below? It takes -ed even for that day!     "Hey Mike, I forgot my specs at home. Do you see the restaurant there at distance? Is it open?   "Yeah, I do see. But it's closed.   I think open/opened or close/closed here is not a verb. If it isn't, then what is it in those examples?