How can I configure postgresql to use multiple cores in a single machine , is it automatically uses it ?
In recent versions of PostgreSQL (as of Dec 2013), can we share a query between two or more cores to get a performance boost? Or should we get faster cores?
Why isn't my Minecraft LAN server working? My LAN server won't let my cousin join me or me join my cousin. It won't show up on the multiplayer screen - it keeps saying "scanning for LAN servers" but it never finds it. I am at his house and we use different computers but it won't connect. How can I fix this? How to cite sources written in a different language than English? Assume one wants to cite a paper written in a different language than the article citing said paper (e.g., ones own article is written in English, but the source is French).   How to properly handle citation in such a case?  Do I cite the original (French) title or a translated title? If I use a translated title, people might have a hard time to find the source; if the original (French) title is cited, people might have a hard time understanding it. How are digital movies sent to a movie theater? For many years, movies were stored on rolls of film that were physically mailed to theaters. Now, most theaters project their movies digitally. But how are these digital movies sent to the theater?   Do they mail a hard drive to the theater? Do they give the theater a username and password to a super secret website where they can download it? How does it get there? When i tried to install PIP for python3 in Ubuntu 18.04.2 LTS  Command I used:   root@DESKTOP-0BEE3OD:/mnt/c# apt install python3-pip  E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2&gt;/dev/null || true: Success   I am not able to fix this error. Honey changing into unusable, hardened clump How do you get a Media Type (MIME type) from a file using Java?  So far I've tried JMimeMagic &amp; Mime-Util. The first gave me memory exceptions, the second doesn't close its streams properly. How would you probe the file to determine its actual type (not merely based on the extension)? Are there any differences between insmod and modprobe? How to remove film from stainless steel pan I have an unsightly film around my stainless pan as shown here:    What is causing this to happen?  And how can I remove the film? I have soaked it in soapy water, scraped it with a plastic scraper, and run it in the dishwasher several times, but I can't seem to get rid of the film.   UPDATE: the pan is an All-Clad stainless, fully-clad frypan: What's the difference between \usepackage{ngerman} and \usepackage[ngerman]{babel} Check if element found in array c++ Has there ever been a warp / non-warp collision? Like something going at warp hits a planet, star, another ship, moon, satellite, alien, tribble, etc.... Basically, can stuff in subspace (warped stuff) hit stuff in real space (not warp)?  Star Trek: The Voyage Home shows us clearly that entering warp speed within Earth's atmosphere has no adverse consequences for the starship or the environment.  HMS Bounty went through miles of atmosphere, dust, birds, and clouds and nothing entered  to hit her. Enterprise did this again by dropping out of warp in Titan's atmosphere.  which explains some tech used, but now we have to ask if there is even a hazard of collision at warp. Has there ever been a collision in the franchise - any normal object being hit at warp speed? (This obviously doesn't include things traveling at warp together, like photon torpedoes from one ship to another).  Closest example I found: In  Enterprise attempts warp before balancing their warp drives and creates a wormhole instead. They nearly collide with an asteroid which was already inside the wormhole, but neither the ship not the asteroid were traveling at warp.  Compressing Space Real-world (non-canon) attempts to explain ST warp technology rely on compressing space itself in front of the vessel. The image sequence below from Star Trek: Into Darkness (canon) shows Enterprise warping past the USS Vengeance and confirms that Enterprise actually gets smaller (or compresses the space around it). The light on Vengeance shows that at the instant the two ships are side-by-side Enterprise looks like a toy beside it. (Large image needed for detail - sorry):    Thus objects at warp occupy less real space - possibly none at - because , which according to Memory-Alpha is implied to be the medium which FTL travel happens. Normally subspace and real space do not interact. When they do it is called a .  Also, objects inside the warp bubble are not moved by the warp drive:     The observer(spaceship) is still immersed in the interior of the warp bubble and this bubble is carried   out by the spacetime ”stream” at faster than light velocities with the observer at the rest with respect to   its local neighborhoods  (p. 25)   It is my belief that to be consistent with warp bubble physics derived from the Einstein Field Equations in general relativity, the ST interpretation of warp speed travel should not allow collisions between n-space objects and objects within a warp bubble and remove the phenomenon from any plotlines such that warp travel is intrinsically safe for the traveller, but possibly greatly impactful for the normal world outside.  But has it happened?  Points of clarification raised by comments  Deflector Shields: Yes, ships have them. Gene Roddenberry envisioned Navigational Shields which would deflect anything in front of the ship, from a single hydrogen atom to an asteroid (see his notes below).    It's important to note that much of what he had in this guide was changed in final production. In fact, based on this guide we could write an entire episode on a simple deflector sabotage resulting in them hitting a hydrogen atom. Real science calculations tell us that even hitting a photon of light would release incalculable energy.  These notes very much explain the many questions asking why ships don't go to warp inside a solar system. Solar systems are FULL of particles and debris, which would require a great deal of energy to deflect. Interstellar space simply draws less power because the shields work less. What does the 'rc' in `.bashrc`, etc. mean? Well, this is embarrassing. I feel like I just realised I don't know a loyal colleague's name after working with them for 10 years. "Hey, er... *cough!*, thanks for that great job you did on setting my aliases this morning..."  What do the letters rc signify in .bashrc, .kshrc, etc.?  If you know, please cite sources.  Even if you don't know, I'd also welcome unfounded assumptions, suggestions or alternatives if they're marked as such. How did Anakin Skywalker survive Order Sixty Six? . When activated, troopers would immediately perceive Jedi as a threat and kill them.  Since Anakin was a Jedi until around the time of the Order, how did the troopers know not to kill Anakin? This is what I would like to do:  morekeywords={SENÃO, ENTÃO, FAÇA, ATÉ, ENQUANTO, PARA, SE, DECLARA, DECLARE, E, OU, FIM_ENQUANTO, FIM_PARA}   I'm defining a new language, and I would like to use natural language words as keywords.  The problem is with keywords: SENÃO, ENTÃO, FAÇA, ATÉ.  I have solved the first problem, in showing special chars with:   The alsoletter here, doesn't work for me, I got an error when using it: alsoletter={Ç,É,Ã}.  test.tex  \documentclass{article}  \usepackage[brazilian]{babel} \usepackage[T1]{fontenc}  \usepackage[utf8]{inputenc} \usepackage{listingsutf8}  \usepackage{listings}  \lstset{%         inputencoding=utf8,         extendedchars=true,         literate=%         {é}{{\'{e}}}1         {è}{{\`{e}}}1         {ê}{{\^{e}}}1         {ë}{{\¨{e}}}1         {É}{{\'{E}}}1         {Ê}{{\^{E}}}1         {û}{{\^{u}}}1         {ù}{{\`{u}}}1         {â}{{\^{a}}}1         {à}{{\`{a}}}1         {á}{{\'{a}}}1         {ã}{{\~{a}}}1         {Á}{{\'{A}}}1         {Â}{{\^{A}}}1         {Ã}{{\~{A}}}1         {ç}{{\c{c}}}1         {Ç}{{\c{C}}}1         {õ}{{\~{o}}}1         {ó}{{\'{o}}}1         {ô}{{\^{o}}}1         {Õ}{{\~{O}}}1         {Ó}{{\'{O}}}1         {Ô}{{\^{O}}}1         {î}{{\^{i}}}1         {Î}{{\^{I}}}1         {í}{{\'{i}}}1         {Í}{{\~{Í}}}1 }  \lstdefinelanguage{pseudo} { extendedchars=true, alsoletter={_}, morekeywords={ENQUANTO,PARA,SE,SEN\~{A}O,ENTÃO,ATÉ,FA\c{C}A,DECLARA,DECLARE,E,OU,FIM_ENQUANTO,FIM_PARA,FAÇA}, ndkeywords={NUMERO,TEXTO,LEIA,ESCREVA}, sensitive=true, morecomment=[l]{//}, morecomment=[s]{/*}{*/}, morestring=[b]" }  \begin{document} \lstinputlisting[language=pseudo]{foo.pseudo} \end{document}   foo.pseudo  ENQUANTO nota != -1 FAÇA // Comment example  LEIA nota  SE nota &gt;= 7 ENTÃO    ESCREVA "Aprovado"  SENÃO    ESCREVA "Reprovado"    TEST "Algo mais" /* mais  comentário */  FIM_ENQUANTO    I have seen: I am intermediate in PHP. To polish my skills I start learning Drupal 7. While learning Drupal architecture concepts, the terms hooks and bootstrapping puzzled me a lot. I read the "Pro Drupal development" book, and some documentation on drupal.org, but it is so advanced for me to learn how hooks work in Drupal to display the web page.  Can anyone tell me what hooks are in simple words? Why is there such variation in PhD length internationally? I'm an undergrad in Australia, and at this stage I want to go on to do further study in maths (or maybe physics/CS, still have a few years till then).  Should I do so, I imagine that I will want to complete a PhD overseas. Possibly at a university in the US or maybe Oxbridge in the UK.  In Australia, PhDs typically take 3 or 4 years, and I would be eligible to go straight into a PhD upon completion of my undergraduate degree (it is research focused and includes an honours year, see ).  But, much of what I have found for overseas institutions has been in the range of 5-7 years, or maybe a 3-4 year PhD with a few years doing a master's degree beforehand.  Does this indicate that the level of rigour and amount of work produced is significantly different for various PhD programs, or is it the case that some programs are more relaxed and simply spread the same amount of work over a longer period of time? A student prepares for an exam by studying a list of 12 problems. She can solve 9 of them. For the exam, the instructor selects 7 problems at random from the 12 on the list given to the students. What is the probability that the student can solve 5 of the 7 problems on the exam?  I am really confused by this problem. My first initial thought was to do:  (5 chose 7)(7 chose 0)/ (12 chose 7)  I am not 100% sure about this though. Command to run an application with Administrator privileges, but NOT AS administrator (prompt with UAC) How do I choose between "as to", "on", "of", and "about"? Opening files from version 2.8 in 2.79