Why are letters overlapping in the terminal?

I installed Oneiric as a guest OS in VirtualBox using the Mini CD. I installed the ubuntu-desktop package and everything seems to work fine - well, except for a font issue with the terminal:    As you can see, some of the letters overlap and it's difficult to read. I checked the settings and it the checkbox "Use the system fixed width font" is checked with "Monospace | 12" selected underneath it.    Edit: running the commands mentioned in the comments:  $ fc-match "Monospace" DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" $ gconftool --get /desktop/gnome/interface/monospace_font_name Monospace 10 $ debsums ttf-dejavu-core /usr/share/doc/ttf-dejavu-core/AUTHORS                                        OK /usr/share/doc/ttf-dejavu-core/BUGS                                           OK /usr/share/doc/ttf-dejavu-core/NEWS.gz                                        OK /usr/share/doc/ttf-dejavu-core/README                                         OK /usr/share/doc/ttf-dejavu-core/changelog.Debian.gz                            OK /usr/share/doc/ttf-dejavu-core/copyright                                      OK /usr/share/doc/ttf-dejavu-core/langcover.txt.gz                               OK /usr/share/doc/ttf-dejavu-core/status.txt.gz                                  OK /usr/share/doc/ttf-dejavu-core/unicover.txt.gz                                OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf                      OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf                           OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf                  OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf                       OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf                     OK /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf                          OK


Triangle formed by positive integral powers of sides of scalene triangle

If $a  \geq b \geq c>0$ be real numbers such that $\forall n \in N$, there exists triangles of side lengths $a^n,b^n,c^n$.Then prove that those triangles must be Isosceles. I am not sure how to prove this, but what i understood from the question is, Given a scalene triangle its impossible that $\forall n \in N$ the sides $a^n,b^n,c^n$ also forms scalene triangle. First of all, i considered to eliminate Scalene Right triangles, since if $a>b>c$ forms a right scalene triangle we have $a^2+b^2=c^2$ and hence triangle inequality will not be satisfied for $a^2,b^2,c^2$ and hence they wont form a triangle at all. Also its impossible to form a triangle with squares of sides of Isosceles triangle with sides $a,a,c$ with $c \geq \sqrt{2}a$. But for Non right angled scalene triangles i am not sure to find $n \in N$ such that $a^n,b^n,c^n$ does not form a triangle.


I am planning to use this UART-to-RS485 module :-  . This module is bidirectional and uses a single pair of differential signal to transmit/receive data. My question is how is the chip deciding whether it has to transmit data from TXD to A+ B- or from A+ B- to RXD?. Shouldn't there be 2 pair of differential signals, one pair for TX and the other pair for RX? What is happening in this module??


XeLaTeX + polyglossia + Russian or Greek = page number in italics

Consider the following example:       \documentclass{article}  \usepackage{polyglossia} \setdefaultlanguage{russian} \setmainfont{CMU Serif}  \begin{document}      \itshape Text.  \end{document}   Compiling with XeLaTeX, surprisingly, you get in italics not only Text, but also the page number 1. The same for \setdefaultlanguage{greek}, but with \setdefaultlanguage{english} everything is ok (just like in ).  I know how to fix it, just use braces: { \itshape Text. }.  Now consider the following related example with amsthm:       \documentclass{article}  \usepackage{polyglossia} \setdefaultlanguage{russian} \setmainfont{CMU Serif}  \usepackage{amsthm} \newtheorem{theorem}{Theorem}  \begin{document}      Text.      \vspace{52em}      Text.      \begin{theorem}         Text.     \end{theorem}  \end{document}   Again you get the page number in italics:  Why is there such a problem and is there any workaround?


We all have them.  Experiences we will never forget.  Fond moments we will forever cherish.  But I was surprised I could not think of any word to describe such a valuable thing.  Is there any word that means a precious memory?


How to do ls with a wildcard and see the directory name

I have a directory called selenium_IDE  if I do   ls sel*    I get to see directories that are in it, e.g.  $ ls sel* HAPPY              HAPPY_PLUS_OPTIONS SAD                SAD_PLUS_OPTIONS   but not the directory itself, i.e. selenium_IDE/  I tried using -d1 (depth 1) which has worked for me in the past on some system.  It does work in that it shows the selenium_IDE directory but also shows a error  here on OSX  $ ls sel* -d1 ls: -d1: No such file or directory selenium_IDE: HAPPY              HAPPY_PLUS_OPTIONS SAD                SAD_PLUS_OPTIONS


probability that 5 square lie along a diagonal line (modified)

This is a modified version of the question  and asked based on the clarifications obtained .   If 5 squares are chosen at random from a chess board, what is the probability that they lie on a diagonal line (squares can overlap and all 204 possible squares shall be considered)  Note: Assume squares lie on a single diagonal line if their diagonals are parallel and overlapping. for example, squares such as the ones given in the image are in the same diagonal .


Skip "Sign in to your Microsoft account" (Windows 8.1 Setup)

I have an RT tablet and updated it to Windows 8.1. The update basically performs the new PC setup.  I can't get past the "Sign into your Microsoft Account". Clicking "Next" does not allow me to proceed (and prompts me for an email address).  Clicking "Don't have an account" does nothing because its not linked.  The other two options are "Create an account" a "Privacy statement". I don't want to create an account, and I'm not interested in their perverted terms of service for an account.  In Windows 8.0, we were given the option to use local authentication.  It also appears Windows 8.1 is willing to re-use my Wifi connection information for the online account, but it refuses to reuse my existing local account.  How do I bypass this feature?


After extensive research into the subject I have reached a brick wall.  All I want to do is add a collection of .wav files into a byte array, one after another, and output them all into one complete newly created .wav file. I extract all the .wav data into a byte array, skipping the .wav header and going straight for the data, then when it comes to writing it to the newly created .wav file I get an error like:  Error1: javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream Error2: could not get audio input stream from input stream  The code is:      try     {     String path = "*********";     String path2 = path + "newFile.wav";      File filePath = new File(path);     File NewfilePath = new File(path2);      String [] folderContent = filePath.list();      int FileSize =  0;      for(int i = 0; i < folderContent.length; i++)         {             RandomAccessFile raf = new RandomAccessFile(path + folderContent[i], "r");             FileSize = FileSize + (int)raf.length();          }      byte[] FileBytes = new byte[FileSize];      for(int i = 0; i < folderContent.length; i++)         {             RandomAccessFile raf = new RandomAccessFile(path + folderContent[i], "r");             raf.skipBytes(44);             raf.read(FileBytes);             raf.close();          }      boolean success = NewfilePath.createNewFile();      InputStream byteArray = new ByteArrayInputStream(FileBytes);      AudioInputStream ais = AudioSystem.getAudioInputStream(byteArray);      AudioSystem.write(ais, Type.WAVE, NewfilePath);      }


I cut open a purple cabbage and there are some strange sort of greyish, slightly yellowish sprout-like masses inside. Is this normal? I saw another  but my 'masses' look more...moldy, I guess? Is it immature flower shoots as the other post says?  Is it safe to eat this cabbage? Thank you in advance


This is the error message I get:  An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: E:Encountered a section with no Package: header,  E:Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_main_i18n_Translation-en, E:The package lists or status file could not be parsed or opened.   How do I force the upgrade to latest package?  I am at 12.04 LTS and want to go to 14.04.1 LTS.  The error message only allows me to close & when doing so closes all of the updater.  from my past recollection there is a file I need to delete.  I can not recall which one.  This machine being used to allow guest to access the internet so there is no risk of data loss.


I understand how the sum of the bottom row of Pascal's triangle is equal to $2^n$, but how is this formula equal to zero?  Shouldn't it be 1?  $\binom{n}{0}-\binom{n}{1}+\binom{n}{2}+...+(-1)^{n}\binom{n}{n} = 0$


So I just recently started with Blender 2.8. I'm working on a model and had a place where I needed to have a cylinder blend into a curved surface. I use booleans to merge the two meshes, and created a bevel where they intersected. However as you can see, I'm not getting some bizarre shading on the curved surface:    Here is the wireframe:    I do have a Weighted Normal modifier already applied. If I switch to flat shading, the artifacts disappear, however I need the surface to appear smooth. If at all possible I'm trying to avoid adding extra edges and geometry.  Autosmoothing is turned on, and an Edge Split modifier will not work for this application. It's occurring on a curved surface, so setting it to flat shading will also not work.  A sample of the problem area is here:


This question is from my assignment in complex analysis and I was unable to solve it.  Prove that tanz doesn't assume the value i, -i. Does this contradict Picard's Theorem.  Attempt- tanz = $ i \frac{e^{iz} -e^{-iz}} { e^{iz}+ e^{-iz}}$  => $e^{iz}=i$ and z=π/2 and z=-π/2 is not in domain. But how does it tells which values will never be attained?  So, how to deduce it? I think picard theorem is not violated as tanz is not entire, due to cosz being in denominator. Am I right?


Can gravity be interpreted as the acceleration of spacetime towards an object?

Greetings StackExchange!  We were having a conversation with a peer about stupid ways of interpreting theories. We would go to and fro with an interpretations, but we would always find a way to disprove them. There was one, however, that we couldn't refute:  Gravity on a plane in a bidimensional space can be interpreted as the acceleration of spacetime towards an object.   We tried to invalidate in saying that the inertial mass and gravitational mass would be different, thus violating GR, but after some thought this couldn't be. The gravitational mass would accelerate spacetime towards it. If that object we were to be pushed, the pulling of spacetime would make it difficult for it to move.   We know for a fact this can't be true, and we would greatly appreciate any refutation of this thought. I can clarify if needed, or do a sketch. I apologise in advance as I'm not a native speaker.


Seeking German Naval records for Reinhard Flohr

Reinhard Flohrwas born in Borkum, Germany in 1901 and served on a German sub tender, until being interred in Sweden, and then escaped to return to Germany.


Don't grey out negative answers on Meta sites

I'm not suggesting to apply this on main sites (-3 score), as wrong answers or with bad advice/bad code (etc) are beneficial being less visible (greyed out).    However, Metas are different beasts to their main sites, and there's some leniency towards Meta answers.   Meta Answers:     Don't need to strictly answer the question Are often discussion points, adding alternative or additional suggestions or ideas Are often not "right or wrong", they're opinions, and votes on them are just X people agree or disagree   So on Meta sites (maybe not all of them), the answers with a negative score being greyed is not necessarily a good thing, as they're still potentially viable discussion points, showing what people think.      Example:     I'm happy to leave it as the question is about usage of a specific tag, and the downvotes show a general consensus that people disagree with a certain side of the argument. However, it's almost pointless me doing so when it's barely visible.    We can see it's (currently) -8 and most people "disagree", and it's at the bottom of all other answers.    An example showing we're losing visibility on a good discussion point:     While that answer has a -38 score it also has +44 votes - on Meta specifically I don't think it's logical/useful having that answer less visible.      There may be some Meta sites where this wouldn't be preferred - but on MSO and MSE (at least) I think it would be worthwhile.    Do you think it would be welcomed to not grey out -8 negatively voted answers on at least some Meta sites, to allow them to be seen as part of the discussions?


Please help me with this Abstract Algebra question

I do not know where to start from this. All I know is a & n are relatively prime so a has an inverse mod n and a belong to Zn. How can I make a connection from this fact to where it said $a^{|u(n)|}$ ? Any thought on this please? Prove: if gcd(a,n) = 1 then $a^{|u(n)|}$(mod n) = 1 (mod n) Prove: if $a^{|u(n)|}$(mod n) = 1 (mod n) then gcd(a,n) = 1 Recall: |u(n)| is the order of the group of units modulo n. This is an if and only if statement so I need to prove both ways. Please help me on how to get start on this?


Is it possible to observe interference from 2 independent optical lasers?

It seems that if the coherence length of a laser is big enough, it is possible to observe a (moving) interference picture by combining them. Is it true? How fast should photo-detectors be for observing of the interference of beams from two of the "best available" lasers? What is the coherence length of the best-available laser? More specifically, does there exist any (optical single-wavelength) laser with coherence length exceeding 500 meters?


If $A$ is an ideal of $R$, show that $R/A$ is commutative if and only if $rs - sr \in A$ for all $r, s\in R$.

How do I approach this question?   We know that $A$ is an ideal of $R$ and $r-s \in A$ where $r, s \in A$. Now, where do I go from here?


Closed as a duplicate, but the duplicate list is empty?

Obligatory: This is not a duplicate of , which is concerning the much older duplicate closure process.  Have a gander at . Notice anything weird?  The Community♦ user was invoked by the question asker to self-close as a duplicate (presumably of the comment below, which links to ), but the list of duplicates is entirely empty. So it would seem the question asker was able to close their own question as a duplicate of... nothing?  Screenshot, in case the post is altered later:    Any idea what happened here?


Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin

I have six directories with command files. These are /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin and /usr/local/sbin.  What are the differences between these? If I'm writing my own scripts, where should I add them?    Related:


"Linked" questions shows a link from a deleted answer

I recently answered .  contained a link to . Once this linked question was detected in my answer, the "Linked Questions" sidebar showed this question - as expected.  Soon enough I understand my answer was incorrect so I deleted it. However, the link appearing at the "Linked Questions" side bar was not removed, despite the fact that the answer that created this link in the first place was removed.  I believe this is a bug: if an answer (or a comment at that) linking to another SO post is removed, that link should no longer be reflected in the "Linked questions" sidebar.


If $X,Y$ are random variables, what is the name of the term $E(XY)$? (which if we subtract $E(X)E(Y)$ gives the covariance)


Minimum mean squared error of an estimator of the variance of the normal distribution

I am trying to find the estimator of the variance $\sigma^2$ of a normal distribution with the minimum mean square error. From reading up, I know the unbiased estimator of the variance of a Guassian is  $\frac{1}{n-1}\sum_{i=1}^{n}(X_i - \bar{X})^2$ and that the estimator I am looking for is a scaled version of this unbiased estimator. The question is from a problem sheet from the last academic year.  The specific question is:     Let $X_1, \dots, X_n$ be a simple random sample from a normal distribution with unknown mean $\mu$ and variance $\sigma^2$. Consider estimators of $\sigma^2$ of the form $k \sum_{i=1}^{n}(X_i - \bar{X})^2$ and find the value of $k$ that minimises the mean square error. What is the efficiency of the usual unbiased estimator relative to this estimator, if the relative efficiency is defined as the ratio of the mean squared error?   For the first part, I think I am meant to rewrite the MSE of the estimator as an expectation and then take derivatives with respect to $k$. This is what I have so far:  $$ \begin{align} MSE(\hat{\theta}) &= \mathbb{E} \left[ (\hat{\theta} - \theta)^2 \right] \\ &= \mathbb{E} \left[ \left(k \frac{1}{n-1} \sum_{i=1}^{n}(X_i - \bar{X})^2 - \sigma^2 \right)^2 \right] \\ &= \mathbb{E} \left[ \left(k \frac{1}{n-1} \sum_{i=1}^{n}(X_i - \bar{X} )^2 \right)^2 - 2 \left( k \frac{1}{n-1} \sum_{i=1}^{n}(X_i - \bar{X})^2 \right) \sigma^2 + \sigma^4 \right]  \end{align} $$  But however else I continue from here, I can't find a way that gets me to $ k = \frac{1}{n + 1}$, which the Wikipedia article linked to below suggests is the answer.  For the second part, I think I can use the MSE of the unbiased estimator given in the Wikipedia article to find the efficiency, although it would be really helpful to see the steps that one takes to calculate this MSE, as in the article it is just stated.  My question is linked to , although less advanced.   The   linked to in the question above is also relevant, although there they also calculate $ \mathbb{E} [S^4_{n-1}]$, which I'm not sure about.


How can I use Windows 7 Ad-Hoc wireless networks for computer gaming LANs?

We intend to play Terraria 1.3 without having any routers or modems.. I've been told that we can make an Ad-Hoc Network to play, and so we did, we both connected to one, but it didn't work for us, as my friend wasn't sure what IP to join.  We also have an impractically long ethernet cable that we can plug into both computers, but that didn't seem to do anything...


Are all of the following statements equivalent? (vectors and matrices)

I know there's a theorem in linear algebra that has a list of statements that are equivalent, as follows:   $\det(A) \ne 0$ $Ax = 0$ has only the trivial solution $Ax = b$ is consistent for every matrix $b$ $Ax = b$ has exactly one solution for every $n \times 1$ matrix $b$   (and several other which I do not need for the question that I'd like to ask).  So we've been learning about linear independence, span and bases, and I was wondering the following:  Is statement 2 the same as saying a set of vectors are linearly independent?  Is statement 3 the same as saying the set of vectors span a vector space? (Meaning that every single vector $b$ in the vector space can be made from some combination of $Ax$, where $A$ would represent that vectors and $x$ would be all of the scalar multiples of the vectors?  Is statement 4 the same as saying the set of vectors is a basis? (since that one solution must be the trivial solution, it must be linearly independent, and since it is consistent for every $b$, it spans the vector space?)  It seems pretty obvious that it's all related to each other, but I'm just wondering if they're all exactly the same.


How to uninstall ssh-keygen utility safely?

I am being tasked to remove ssh-keygen from Ubuntu servers and I don't want to break the computer. Can you please help, how to uninstall ssh-keygen utility safely? Thanks


General expression for determinant of a block-diagonal matrix


I can't execute 'xset' program. How to install it on Ubuntu 16.04 server?   juldou@ubuntu-asus-server:~$ xset dpms force off -bash: xset: command not found


What is the difference ( import React from "react"; ) vs ( import React from 'react'; )

What is the difference between ' and " relative to imports:  import React from "react"; and import React from 'react'; will it make difference?


What does the vm.swappiness parameter really control?

Per the kernel documentation:  This control is used to define how aggressive the kernel will swap memory pages.  Higher values will increase aggressiveness, lower values decrease the amount of swap.   However this is kind of vague. I'm trying to figure out exactly what the parameter ultimately controls. I know it adjusts how aggressively the kernel tries to swap out pages, but what decision making process in the kernel code does it affect?  Does it adjust how long ago a page must have been accessed before the kernel swaps it out? If so what does the default value of 60 represent? And how much is changed by a increment/decrement of 1 (a formula would be nice)? Or does it swap out pages based on their access frequency? Or something else?


How to repair a malfunctioning button on a PS3 Dualshock controller?

The X button stopped working on one of my PS3 controllers. It's hardly through abuse, the controller isn't a year old and I don't play a lot.  The button doesn't stick, it presses like the others, only the system isn't aware that I'm using it. I tried resetting it with the tiny reset button in the back, to no avail.  What can I do?


String s1 = "learn"; String s1 = s1+"Java";   now s1 is pointing to "learnJava" string right ?  String s2 = "learnJava";   if(s1 == s2) is false. WHY ?  s2 should point to same "learnJava" as its already present in StringConstantPool(s1).


I am flying on September 2 from Rome, Italy to Orlando, Florida through Frankfurt, Germany. Both flights are on Lufthansa. How much transfer time do I need?


As I know,  (not only "it"). Also, if a person's gender is unknown, . Is it possible to use "they" when we talk about a specific animal and in what context?


How do I get the icons back on the taskbar in windows 8.1?

I had a programme on my taskbar and it had an icon.  Sometime later I changed the executable and/or moved it, but now the icon is gone from the taskbar.  The application still runs.  If I unpin it and execute the programme, it does show the correct icon on the taskbar:    But as soon as I pin it, I get this:    So it looks like it's trying to get the icon from a place that doesn't exist.  Ideas as to how to refresh this icon?


Why are the bodies of my dead dwellers disappearing in Fallout Shelter?

I was wondering why some of my dead dwellers have disappeared?   It wasn't all of them, and it wasn't necessarily the ones that had been dead the longest.


I'm using Ubuntu 17.10 and the new default GNOME theme is not installed.  Is there an option to be set?  I ran this command:  sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && do-release-upgrade   My system still has the old unity theme, and I want the new one.    Solved  After the installation you should be able to select the GNOME desktop on the login screen.  ref:


Which of the numbers $1, 2^{1/2}, 3^{1/3}, 4^{1/4}, 5^{1/5}, 6^{1/6} , 7^{1/7}$ is largest, and how to find out without calculator?

$1, 2^{1/2}, 3^{1/3}, 4^{1/4}, 5^{1/5}, 6^{1/6} , 7^{1/7}$. I got this question in an Application of Derivatives test. I think log might be used here to compare the values, but even then the values are very close to each other and differ by less than 0.02, which makes it difficult to get some specific answer to this question. How to solve this by a definite method?


Do you lose any more equational identities when you go past sedenions?

Every Cayley-Dickson algebra can be viewed as a $(+,-,*,0,1)$ algebra. The reals and the complexes share the same equational identities. The quaternions have a subset of the equational identities, because they lose commutativity of multiplication. The octonions lose associativity, and the sedenions lose even more. Is the sedenions truly the last stop. Do all further Cayley-Dickson algebras have the same equational identities in that signature as the sedenions. This question is different from the tagged question, because I didn't see an answer for whether there are any equational identities that the sedenions have that any higher Cayley-Dickson algebras don't. I know that the sedenions are a power associative algebra.


I'm using the newest version of xgboost package in python 2.7 and based on my problem, I'm going to change xgboost cost function to use my own defined cost function. Couple of questions:  In which part of the xgboost package should I find and change the cost function? After changing the cost function, how can I add the updated code to the xgboost package to use the new training function instead of xgboost's pre-defined function?


I'm trying to run a function inside a thread, and use the data afterwards. The obvious problem is that the main thread isn't waiting (If that's what happens) Though a pretty simple question, searching the internet didn't provide me any solution unfortunately. Any advice how to implement it properly? Thread:             MainActivity.this.runOnUiThread(new Runnable() { // A new thread to get the currencies                 @Override                 public void run() {                     jsonConversion(mMessage);                 }  Function:     public void jsonConversion(String mMessage) {     try {          JSONObject srcJson = new JSONObject(mMessage); // 2 objects, rates and base         rates = srcJson.getJSONObject("rates"); // Currencies map         baseCurrency = srcJson.getString("base"); // Base currency         lastUpdate = srcJson.getString("date"); // Last update       } catch (JSONException e) {         e.printStackTrace();     } }


New camera body or new lenses? (Have canon 350d)

So I borrow this camera from my mom who likes photography, but doesnt use it anymore. Its a Canon 350d.  I've just started photography and quickly realise that i cannot crop that much without sacraficing much image quality.   The lenses I have is:  Kit lens 18-55mm Zoom lens 80-200mm ()  I'm planning on eiter buying a new body. Or use the money to buy a new lens, like a 50mm prime or a 300mm zoom lens. I also dont think my camera can whitstand weather that much. This is bad since I live in the arctic region with snow most of the year. So what do you think?


I am currently building out an application that will contain many users, two roles and two groups. Logically we want users to be able to be administrators of other users within the two groups.   User Table    UserID         varchar    PK DisplayName Email Role           int        FK `role`.`RoleID`  DATA [jschmo,Joe Schmo,joe@schmo.com,1]   Role Table    RoleID         int        PK     AI RoleName       varchar  DATA [1=Master,2=Admin,3=User]   Group Table    GroupID        int        PK     AI GroupName  DATA [1=Marketing,2=Infrastructure]   A user could potentially be an admin of both groups. I don't see the option to multi-select foreign keys but as I understand it, having a comma-delimited list in a column is a bad idea and I should use multiple records but I don't like the idea of having multiple records for each user.  Q: How would I keep track of which groups a user is an admin of?


Remove the useless 15-character requirement for comments

A comment saying something short like "I did." or "It is." in response to another comment is perfectly legitimate. What's the point in requiring users to fill it up with pointless "..." or other characters?


How to solve this complex equation for the modulus of z?

The question is as follows:     All the roots of the equation $11z^{10}+10iz^9+10iz-11=0$ lie:   $\qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad \qquad (i=\sqrt{-1})$   (a) inside $|z|=1$   (b) on $|z|=1$   (c) outside $|z|=1$   (d) can't say   The answer is (b). I tried factorizing it, but to no avail. Also, it doesn't appear to me that taking modulus would help. How to approach this problem?


Get session parameter throws null pointer exception

I need a method which must check if the session has a specific attribute or not. The problem is that when I want to check if the session has the attribute I get a null pointer exception. I think that I get this error because the session object is not initialized properly. I need this method because I want to render the page base on this attribute (if the user  is logged in he must to show the button logout and  vice versa). What I am doing wrong in my code?  import javax.annotation.PostConstruct; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession;  public class SessionTest extends HttpServlet{     HttpSession session;       @PostConstruct     public void init(HttpServletRequest request) {         session = request.getSession(true);         session.setAttribute("user", "username");     }      public boolean getParamer(String user) {         return session.getAttribute(user) == null;     }      public static void main(String[] args) {         System.out.println(new SessionTest().getParamer("user"));     }   }


Pausing a long running program in the terminal?

Is there a keyboard key combination that I can use to pause a program running in the terminal? In case it matters, I don't intend to run anything else inside that terminal while the program is paused. I just want to pause the program execution, and resume it later. How can I do this?


How do I add inline JavaScript to the footer?

I want to add third-party JavaScript code at bottom of the every page. I build an module and I am able to add the JavaScript on the head tag, instead of footer.  I am using the following code.  function ur_optin_monster_preprocess_html(&$variables) {   $config = \Drupal::config('ur_form.admin_settings');   $variables['#attached']['html_head'][] = [     [       '#tag' => 'script',       '#value' => $config->get('my_js'),       '#weight' => 400,      ],     'ur_form_js',   ]; }   I also tried changing 'html_head' to 'html_scripts', but it doesn't help. I tried with the batrik.theme file, but it gives the following error.     Error: Call to undefined function drupal_add_js() in bartik_preprocess_html() (line 95 of core/themes/bartik/bartik.theme).    function bartik_preprocess_html(&$variables) {   $config = \Drupal::config('ur_form.admin_settings');   if ($config->get('my_js')) {      drupal_add_js($config->get('my_js'), array('scope'=>'footer'));   } }   Can you suggest me the correct way to add JavaScript code at the footer of every page?


I have Microsoft Windows 7 Professional installed on my laptop (HP Pavilion G4 Notebook PC).   Since a couple of weeks my laptop is not shutting down properly. When I click on the shut down button the logging off screen appears then the shutting down screen appears, but after that nothing happens.   I mean the shutting down screen is present all the time and the system does not shut down. The circle next to the shutting down keeps on rotating. I have left it for hours but still nothing happens. Eventually I have to shut it down by pressing the power button for some seconds. But the next time when I start the system, the windows starts normally.    I have tried to find solution for it. Mostly the solution that I found was to check/uncheck the 'Allow computer to turn of this device to save power' in the power management tab of some driver in device manager but nothing seems to work for me.  Could anyone please help me with my problem?


I can't boot into Ubuntu after the Windows10 Creator's Update. It always boots into Windows

First of all I followed the advice given in the links:    Just like they asked I repaired the grub using an ubuntu live disk  and boot repair. And I uploaded the log to   And for some weird reason it got deleted.    If I reinstalled Ubuntu, that would technically repair the boot right?  UPDATE: Reinstalling 17.04 doesn't work, it still loads into Windows.


Is there an equation $f(k,m,n)=n$ where $n$ is the number of applications of the Ackermann function needed?

Using the definition of the Ackermann function on , (sidenote, great paper): $$  \alpha(k,m,n) = \begin{cases} m+n,  & k=1 \\ m, & n=1 \\ \alpha(k-1,m,\alpha(k,m,n-1)),& \text{otherwise} \end{cases} $$  Is there some function $f$ such that $f(k,m,n)$ returns the number of times $\alpha$ is used to calculate $\alpha(k,m,n)$?  Some trivial values would be $f(1,m,n)=f(k,m,1)=1$, and $f(2,2,2)=2$, found manually by counting the number of $\alpha$s in the expanded form of $\alpha$.  Note: There is neither a tag for "ackermann-function" or "recursion", I lack the privilege to create these but I feel they would have some limited use.


How to convert unsigned hex values to corresponding unicode characters which should be written to file using c++

I need to convert  unsigned hex values to corresponding unicode characters which  should be written to file using c++  so far I have tried this  unsigned short array[2]={0x20ac,0x20ab};   this should be converted to corresponding character in a file using c++


Ubuntu crashed while upgrading to latest version

I was trying to upgrade Ubuntu to the newest version. But it was not successful and now I'm unable to login. The Login page is not coming up.    Kindly advise me how to overcome this issue.


Integrating $I=\int_0^1 \ln x \space\cdot\ln(1-x)\space dx$

While I was practicing calculus today ,I was held up by this guy. $$I=\int_0^1 \ln x \space\cdot\ln(1-x)\space dx$$ I have no idea where to start , I think $$\lim_{x\to \infty}\space \sum_{r=1}^n\frac{1}{r^2}\space= \frac{\pi^2}{6}$$ might be helpful . Any suggestion are appreciated . Cheers!


Following on from my question on the , even if it's illegal people will still try, so:  What technical mechanisms can be employed to prevent or at least disincentivise screen scraping?  Oh and just for grins and to make life difficult, it may well be nice to retain access for search engines. I may well be playing devil's advocate here but there is a serious underlying point.


In the Harry Potter universe, Is it possible to cast one spell whilst saying the incantation of a different spell?

Imagine a wizard trainee, who is told that the word "expelliarmus" is in fact the "avada kedavra" spell. Would he actually cast "avada kedavra" or "expelliarmus".  In other words can you think of one spell, think another and actually cast the thought spell instead of the spoken one.   This would be a major advantage, if you can do it and I wonder why everyone prefers the unspoken one.  EDIT: to be clear i dont ask for two spells at the same time, but casting another spell than you have spoken.


An equivalence relation iff G≈H, where G and H are groups

Problem : Let $S$ be the relation G~H iff G is isomorphic to H.   Show reflexive, transitivity and symmetric.  First show G is automorphism, which will imply G~G. So the identity mapping gives us this automorphism.  So G~G. My question is, is this the right process for showing reflexiveness?  Now we show symmetry. Assume G is isomorphic to H. Thus there exists a mapping $\phi:G ->H$.  We must show H is isomorphic to G. Since $\phi$ is this mapping, consider $\phi^{-1}.$ This is a bijection since $\phi$ is a bijection. How do I show it is homomorphic?  Finally show its transitive. This I have done in a previous problem.  This is different than the duplicate as suggested because previously I had done it incorrectly. I know now I must do it this way.


I would like to apply for a 10-year UK tourist visa. Current visa status: H-1B (US Work visa). UK visa history: Been granted three separatesix-month tourist visas in the last eight years (2008, 2012, 2014).  Reason for longer term visa: I end up visiting (and plan to visit in the future) the UK mainly for sporting events and catching up with friends. I plan to watch the 2017 Champions Trophy (cricket) and the 2019 Cricket World Cup.  Since I don't really have a work/family related reason, should I even bother applying?  It's going to cost me $1,100. I don't want to throw that away if there's no chance of getting it.


How to sum this series to infinity: $\sum_{n=0}^{\infty} \frac1{2^{2^n}}$

How to sum the series:  $$\sum _{ n=0 }^{ n=\infty  }{ \frac { 1 }{ { 2 }^{ { 2 }^{ n } } }  }$$   PS: Just a hint would suffice.


calculate exponential moving average in python

I have a range of dates and a measurement on each of those dates.  I'd like to calculate an exponential moving average for each of the dates.  Does anybody know how to do this?  I'm new to python.  It doesn't appear that averages are built into the standard python library, which strikes me as a little odd.  Maybe I'm not looking in the right place.  So, given the following code, how could I calculate the moving weighted average of IQ points for calendar dates?  from datetime import date days = [date(2008,1,1), date(2008,1,2), date(2008,1,7)] IQ = [110, 105, 90]   (there's probably a better way to structure the data, any advice would be appreciated)


How can I prevent someone from resetting my password with a Live CD?

Recently one of my friends came over to my place, within 15 minutes he hacked my account using a Live CD and reset the password in front of me. I was baffled to see such a thing. Please guide me to prevent such a future attempt using a Live CD.


A question was posted on site X, but it looks like it might be suitable on site Y.  How should moderators and close-voters decide whether to migrate it to site Y?  What criteria should be used?  This was a subject of a lengthy discussion among multiple site mods, and it became clear there is a broad range of opinions about this subject and apparently no definitive reference outlining an approach.  So, this is an attempt to create a reference question, in hopes that it generates answers that help outline possible ways to think about this.


When do set and legendary items start dropping?

I am almost finished with normal mode in Diablo 3 and I have yet to encounter a single set or legendary item. In Diablo 2, I started finding items like this right away that were appropriate for my current level.   Is there a certain time when they begin to appear (like in nightmare as opposed to normal)?


How do I build Bitcoin from source on Ubuntu 14.04

(Using Autotools) I have downloaded the Bitcoin source from "Bitcoin Core Version 0.9.1" When I input the following command ./autogen.sh it produces the following warning:  includes' is the old name for 'am_cppflags' (or '*_cppflags').    When I attempt ./configure I get the following error message:   configure: error: found berkley DB other than 4.8, required for  portable wallets ( --with-incompatible-bdb to ignore).    And lastly, when I input make I get the output of:   make: * No targets specified and no makefile found. Stop.


I have  in play, does that stop creatures from using embalm or eternalize?


My girlfriend wants $1500 to prove she can look after herself when she arrives in Australia

My girlfriend wants $1500 to prove to customs that she had money to look after herself when she arrives in Australia. True or false. I'm questioning it. I do believe it's for real. She seems very genuine.


Show number of items to review in the main menu

I'd find it useful if the number of items to review (say, the total number that your permissions allow) could display in the main menu bar next to the review link, similar to  how your reputation and number of badges show up net to your profile link.  The reason I ask is because it is a little annoying to keep checking, only to find that there are zero items to review.  But I do understand if the volatility makes it infeasible to keep it on every page (those posts that are there always go so quickly!).  I think I've seen this in the new top-bar - ?


How do I remove Ubuntu from a dual-boot Windows 7 laptop?

I'm new to Ubuntu and liked it a lot! However after testing it on my old crappy laptop I now want to remove it. I've looked at tutorials on how to uninstall and it says to start by deleting the Linux partition of the hard drive.   However after opening Computer management, I cannot locate my Linux partition. Same as when I go to System Configuration and click on the "boot" tab, my computer does not list any operating system other than Windows 7. Any way around this or perhaps a different way to uninstall?


Viewing Predictive Intelligence Collect Data

We've implemented the Collect tracking code (not to be confused with Web Collect) accessible from Analytics Builder menu > Web & Mobile Analytics app > Configure Data Source (cog icon). Refer to screenshot below.  This works well; if we add this tracking code to a web page and view the web page, we immediately see the web page visit on the location tile (on the Web & Mobile Analytics Dashboard). I see that this feature operates similar to Google Analytics in that:  Predictive Intelligence monitors the behavior of your website traffic via a JavaScript installation. We collect page views, which will potentially give you:  Browser Type User Location Session Time and Length Page URL Page Title Referring Site   The question I have is, where is this data actually stored? We can see the data in chart format on the Web & Mobile Analytics Dashboard, but I can't figure out where to view and download this data.


What is this white stuff inside this circuit board?

I'm having problem getting any output from this universal adapter for my older laptop, so I opened it up to see this rubber-like white substance inside, on top of the big 68uF 400V capacitor.  A closeup:   If it is glue, why would they use it? It fits well without it, with the leads of that capacitor bent as they are.


Why multiplication of matrix is not done in the same way as matrix addition (i.e. adding corresponding entries)? I know it is related to linear transformation, but by reading book I'm unable to visualize it.


Why do you lose reputation for downvoting answers?

It is incredibly rare that I downvote on this or any other community site. I would rather just ignore the item. However, occasionally some very bad advice is given that is worthy of a downvote. Why should this adversely affect the reputation of the person who downvotes?


Evaluating the integral $\int_0^\infty \frac{\ln(x)}{e^x+1}$

I'm interested in evaluating the integral of   $$ \int_0^\infty \frac{\ln(x)}{e^x+1}\ $$  TLDR: How do you evaluate $ \eta'(1) $?  I found and adapted this integral from , unfortunately, they didn't fully evaluate the integral and I'm interested in the result.  This question is similar to , but my question goes more in-depth on the way that I tried to evaluate this integral.  This was solved by @J.G. in the answers, and by @Zacky in the comments.  I'll run through what I did and what the video did to evaluate the integral  $$ I =\int_0^\infty \frac{\ln(x)}{e^x+1}$$  Multiplying by $ \frac{e^{-x}}{e^{-x}}\ $ results in  $$ = \int_0^\infty\frac{e^{-x}\ln(x)}{e^{-x}+1} $$  Expanding the denominator into a geometric sum results in  $$ = \int_0^\infty\ e^{-x}\ln(x)\sum_{k\ge0}{-e^{-x^k}} $$  Interchanging our signs of integration of summation and simplifying results in  $$ \sum_{k \ge 0}(-1)^k \int_0^\infty\ e^{-x(k+1)}\ln(x) $$  Substituting $ x(k+1) = t $ and $ dx = \frac{dt}{k+1} $ results in  $$ \sum_{k \ge 0} (-1)^k \int_0^\infty e^{-t}\ln(\frac t{k+1})\frac{dt}{k+1} $$  Expanded and simplified you get  $$ \sum_{k \ge 0} \frac{(-1)^k}{k+1} (\int_0^\infty \ln(t)e^{-t}dt - \ln(k+1)\int_0^\infty e^{-t}dt) $$  Once again simplified we can see that our first integral is the $ \mathcal L\{\ln(t)\} $ at $s = 1$ and our second integral is $\Gamma(1)$ in total this results in.  Where $ \mathcal L $ is the Laplace transform and $\Gamma$ is the Gamma function.  $$ \sum_{k \ge 0} \frac{(-1)^k}{k+1}(\mathcal L\{\ln(t)\}-\ln(k+1)\Gamma(1)) $$  This then simplifies to  $$ \sum_{k \ge 0} \frac{(-1)^k}{k+1}(-\gamma-\ln(k+1)) $$  With $ \gamma $ being the euler-mascheroni constant  Increasing our lower bound on our summation we get  $$ \sum_{k \ge 1} \frac{(-1)^{k-1}}k(-\gamma-\ln(k)) $$  Realizing that the Dirichlet Eta function is defined as  $$ \eta(s) = \sum_{k \ge 1} \frac{(-1)^{k-1}}{k^s} $$  We can then see that our equation is   $$ \eta(1)(-\gamma-\ln(k)) $$  Knowing that $ \eta(1) = \ln(2) $ we can then distribute our eta to get  $$ -\gamma\ln(2)-\ln(k)\eta(1) $$  Which is   $$ -\gamma\ln(2) - \sum_{k \ge 1} \frac{(-1)^{k-1}}k\ln(k) $$  Taking the derivative of the eta function we can see that this is  $$ -\gamma\ln(2)+\eta'(1) $$  According to  $ \eta'(1) $ is equal to $ \gamma\ln(2)-\frac{\ln(2)^2}2$  Meaning that our integral $I$ will evaluate to  $$ I = -\frac{\ln(2)^2}2$$  But how can we evaluate $ \eta'(1) $ without encountering the pole at $s = 1$ of the Zeta function?  Are there any other interesting ways to evaluate this integral not using the eta function?  Thank you for your time and patience!


Tikz - Create Macro which draws a shape around 3 nodes

I am trying to create a macro which gets 3 nodes as input and then draws some kind of ellipse (a hyperedge) around these 3 nodes. This is how I currently draw the edges, but I would like to automate the process.  \documentclass[tikz]{standalone} \usetikzlibrary{topaths,calc,patterns}  \begin{document} \begin{tikzpicture} \def \r {1.2cm} \def \n {8} \def \vxsize {0.2cm}   \pgfdeclarelayer{bg}    % declare background layer \pgfsetlayers{bg,main}  % set the order of the layers (main is the standard layer)  \foreach \i in {1,...,\n} {     \pgfmathsetmacro\angle{(\i -1)*360/\n}     \node[draw=black,fill=black!50, circle, minimum width = \vxsize, inner sep=0cm] (u\i) at (\angle:\r) {}; }  \node (v) at (270:\r+0.5cm) {loose cycle};  \begin{pgfonlayer}{bg} \begin{scope}[fill opacity=0.5] \foreach \i in {2,4,...,\n} {     \pgfmathsetmacro\anglea{(\i -1)*360/\n - 8}     \pgfmathsetmacro\angleb{(\i)*360/\n}     \pgfmathsetmacro\anglec{(\i +1)*360/\n + 8}     \filldraw[fill=red, draw=black, thick] (\anglea:\r)      to[out = \anglea, in = \angleb + 270] (\angleb:1.27*\r)      to[out = 90 + \angleb, in = \anglec] (\anglec:\r)     to[out = 180 + \anglec, in =90+ \angleb] (\angleb:0.73*\r)     to[out = 270 + \angleb, in = 180+\anglea] (\anglea:\r); } \end{scope} \end{pgfonlayer} \end{tikzpicture} \end{document}     My basic approach is as follows:  \newcommonad{\hyperedge}[3]{% \coordinate (P1) at (#1); \coordinate (P2) at (#2); \coordinate (P3) at (#3); \begin{scope}[shift = (P2)] **Get x and y coordinates of (P1)-(P2) and (P3)-(P2)** [draw the edge] \end{scope}  }  \node (v1) at (0,3); \node (v2) at (1,2); \node (v3) at (3,2); \hyperedge{v1}{v2}{v3}   Is there a simple way to get the x and y coordinates in line 6 so that they are stored in variables x_1, y_1, x_3, y_3? Once I have this, I should be able to draw the shape (I hope).  Many thanks!


Calculating charges from electric field diagram

In the figure given, we are given that $q_1=1 \ \mu \mathrm C$, and we have to approximate the value of $q_2$. My attempt: As the field lines are going from $q_1$ to $q_2$ then this implies that $q_2$ would have opposite charge. But after this I don't know how to proceed further.


Set-theoretical definition of function evaluation

I am familiar with the set-theoretical definition of functions.   A function $f : A \rightarrow B$ from a set $A$ to a set $B$ is a subset $f \subseteq A \times B$ of the Cartesian product $A \times B$ such that the following conditions hold:   $\forall a \in A : \exists b \in B : (a,b) \in f$ $\forall a \in A : \forall b, b' \in B : (a,b), (a,b') \in f \rightarrow b=b'$   Is there a purely set-theoretical definition of the function evaluation $f(a)$ for every $a \in A$? I get as far as defining  $f(a) = \{ b \in B : (a,b) \in f \}$ but that defines rather the set of values of a multi-valued function.


English possessive for a name that ends in an apostrophe (in this case, in transliterated Ukrainian)?

I am an editor editing a book review, and I'm not sure how to deal with this:    Serhii Bilokin’’s book    The author has chosen to transliterate with the apostrophe at the end of the name, but it looks very odd with the English possessive tacked on at the end. I know that  the the apostrophe in Ukrainian language/names changes the pronunciation of the surrounding letters, but that's about it, so I'm not sure how integral the apostrophe is to the name. (I've seen it transliterated with and without, so I assume there are multiple right ways, but I'd prefer to respect the author's choices.) I'm having a terrible time trying to find precedents to base my decisions on here. I assume the issue is extra-grammatical. Any insight is appreciated! This type of thing fascinates me, but it's also very confusing.


I am trying to run a Window software (.exe) but I couldn't figure it out. Please someone help me I would greatly appreciate your help.  I am trying to run this Window software on Ubuntu 16.04.  Link:     Thank you!


I am new to Blender so forgive me if I am missing something obvious, but here is my problem : everytime I try to render a scene with Cycles and GPU Compute, it crashes after a few seconds, even with the default General new scene (just a cube). I usually get an error message like this one : Error: CUDA error: Hardware stack error in cuCtxSynchronize(), line 1862  Or this one : Error: CUDA error: illegal address in cuCtxSynchronize(), line 1862  I am running on Windows 10 with :  Nvidia GeForce GTX 1050 (latest driver v446.14) Intel(R) Core(TM) i5-7300HQ CPU @ 2.50Ghz 8 GB RAM  I tried to reinstall Blender (using v2.83), reinstall my graphic card driver, but nothing does the job so far. Any suggestions ?


How did Harry Potter survive against the Dementors at the lake

Movie: Harry Potter And The Prisoner Of Azkaban  When the lake turns to ice Dementors appear. As we all see, Harry Potter used the spell "Expecto Patronum" It held off against 2 Dementors then it turned off.  Harry still survives though, how? Because future Harry saved him. But this is what I don't understand  How did Harry save himself? He would have needed to survive without the help of himself or else he would have died.  Think about it:  Harry dies = No time travel  Harry survives = No time travel because there wouldn't be a reason, UNLESS:  Harry survives because future him did not die. But this does not make sense. Harry was about to die so his future self would never have existed, so why did the Future Harry exist to save himself?  Can someone explain this nonsense to me please? Harry's future self shouldn't have existed in the first place, because Harry SHOULD have died


How can I determine the model year of my GT Talera bike? The serial number starts out as CM17F5


Is raid 5 suitable for a mysql installation?  Let me explain my application further. My application is a socket programming which will connect with gps device to receive gps string and there after do a further processing. The socket programming will be in another server and db in another server. So during the further processing is where it will query from the db. So here I guess there will lots of i/o rite. Minimally during the further processing there will be minimum of 5 select and the insert will be minimum 1 but at times it can be even minimum 4 or more and also a number of updates. Hope I am clearer now.


Why 0 mean is desirable for data in neural networks?

It is suggested to normalize data as 0 mean and 1 variance. Also, TanH considered better than Sigmoid activation function as it has 0 mean. Why 0 mean is important?


Where can I ask about fringe API recommendations?

I am wondering where I would ask this kind of question (just an example)     What service can do reverse-phonenumber searches for Germany?   The answers would be based on opinions, but would help me with my programming task. I assume this would be closed as such on SO. Because at the least, no code generally makes it a bad question.  Where would be the best place for this type of question instead? If I don't live in Germany, I won't know much about any state-run services, or anything else that isn't marketed much in foreign countries.


Should we have a policy about "too much downvoting"?

We've never had an explicit policy around downvoting -- users are free to, if they like, cast all their votes as downvotes. Whether this behavior is desirable or not is another matter.   Now, we do discourage downvoting by making downvotes cost -1 rep to the casting voter. But, there's nothing in our policy that says continual downvoting is bad or wrong or inappropriate.  However, my thoughts on this are changing. I no longer think it is community friendly behavior to cast an extreme number of downvotes, and I am considering an explicit policy forbidding it.  Some data points (as of today):  Total SO upvotes cast: 45,555,530  Total downvotes cast: 365,192  users with more than 100 downvotes cast: 596  users with > 100 downvotes and the lowest ratio of upvotes to downvotes:           |           |         | up:down user id | downvotes | upvotes |  ratio --------+-----------+---------+---------  187712 |       201 |      37 |    0.18    2525 |       580 |     149 |    0.25  136829 |       137 |      43 |    0.31   55943 |       438 |     140 |    0.31   19405 |       236 |      94 |    0.39    5640 |      3299 |    1337 |    0.40  180659 |       126 |      66 |    0.52   78613 |       348 |     198 |    0.56   39892 |       181 |     109 |    0.60     432 |       310 |     197 |    0.63  238704 |       198 |     132 |    0.66   12643 |       170 |     116 |    0.68   18256 |       219 |     152 |    0.69  122428 |       167 |     118 |    0.70  118854 |       120 |      86 |    0.71  105662 |       273 |     201 |    0.73  187690 |       135 |     101 |    0.74    1782 |       573 |     430 |    0.75   (this is a complete list, there are no more below this threshold.)  Based on this data I am leaning towards enforcing a "no more downvotes may be cast" if    You have at least (n) votes cast total Your upvote to downvote ratio is lower than ~ 0.5


I'd be tempted to call nipples in men vestigial, but that suggests they have no modern function. They do have a function, of course, but only in women. So why do men (and all male mammals) have them?


Regular expression to match common SQL syntax?

I was writing some Unit tests last week for a piece of code that generated some SQL statements.  I was trying to figure out a regex to match SELECT, INSERT and UPDATE syntax so I could verify that my methods were generating valid SQL, and after 3-4 hours of searching and messing around with various regex editors I gave up.  I managed to get partial matches but because a section in quotes can contain any characters it quickly expands to match the whole statement.  Any help would be appreciated, I'm not very good with regular expressions but I'd like to learn more about them.  By the way it's C# RegEx that I'm after.  Clarification  I don't want to need access to a database as this is part of a Unit test and I don't wan't to have to maintain a database to test my code. which may live longer than the project.


I'm looking for source which simply described how can choose right power supply, for example it possible to use one power supply with same voltage and higher amperage insted using sevseral power supply with lower amperage? If it is not possible explain for what and if its possible under which conditions it is possible


What are the different CD's & DVD's for?

I'm planning to install Debian on my home server. It will be running some services like Teamspeak 3, gaming servers, Samba, etc... No business services like DHCP, DNS, ... needed.  So as this is my first time installing Debian I found this site where you can download dvd's and cd's for installation (amd64):   Now I see there are a whole bunch of different CD's and DVD's. I know that only the first DVD / CD is required for basic / core installation and that the others contain additional optional features.  What I am searching for now is something like a list, which DVD / CD contains what. I could not find anything on this topic in the internet.


"Can't connect to local MySQL server through" socket error

I install mysql and try start  /usr/local/mysql/bin# ./mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) /usr/local/mysql/bin#   Any Idea?


I need to return correct ISO 8601 date format for my country (Poland, Warsaw). It should be UTC+1.   I use function get_the_date() with argument "c". On General Settings in field Timezone I chosen "Warsaw", but when I am using <time datetime="<?php echo get_the_time('c') ?>"><?php echo get_the_date() ?></time> it return e.g.: <time datetime="2015-12-14T22:00:52+00:00">December 14, 2015</time>.   It always return "+00:00", nevermind which timezone I use. It should be +01:00 for Poland (Warsaw timezone).  Where I made a mistake? Please, help!


Why did Odin leave the Tesseract on Earth?

While I was searching for information about the Tesseract for , I read something I forgot about the  movie in the :     During World War II, Johann Schmidt captures the cube in Tønsberg, Norway, claiming that it is "the jewel of Odin's treasure room".    Why did Odin leave something as powerful as the Tesseract, one of the most powerful artifacts in the universe, in a relatively unprotected treasure room in a remote world like Earth? Why didn't he take it back to Asgard where he could keep an eye on it?


I tried downloading Ubuntu 14.04 onto my old windows vista laptop. The installation went fine, but when i loaded it up for the first time I got to this screen:  Ubuntu 14.04.2 LTS Linux tty1  Linux login:  password:  I can put in the login just fine, but when I click enter and attempt to input a password no matter which keys I press, nothing appears under password. By continually clicking enter I get this:  Login incorrect  Linux login:  password:  And the process continues on and on, making me unable to complete the first time boot up! I tried changing my password in the grub terminal, but it didn't do anything in the long run. Please help! I want to be able to use Ubuntu Desktop but I can't with this mysterious discrepancy!


HTML5: Why a script tag needs to be placed at the end of body tag instead at the beginning of the body tag?

While writing a html , some sites recommend to write the script at the end of the BODY tag instead of writing at the beginning of BODY tag and i read this will increase the performance of page refresh , But How does this helping when html page is rendered only after DOM parses all the tags ?


Expected waiting time at traffic signals

I came across the problem below:  Calvin has to cross several signals when he walks from his home to school. Each of these signals operate independently. They alternate every 80 seconds between green light and red light.At each signal, there is a counter display that tells him how long it will be before the current signal light changes. Calvin has a magic wand which lets him turn a signal from red to green instantaneously. However, this wand comes with limited battery life, so he can use it only for a specified number of times.  a. If the total number of signals is 2 and Calvin can use his magic wand only once, then what is the expected waiting time at the signals when Calvin optimally walks from his home to school?  b. What if the number of signals is 3 and Calvin can use his magic wand only once?  I found that it was asked before  but I am not able to understand the accepted answer. The accepted answer states that it takes 40 seconds for the lights to change from Red to Green and from Green to Red.  But should it not be 80 seconds as stated in the question?


Questions about capitalizing words in titles

I've got quite a few questions about capitalizing words in titles. I don't know if it's proper to include many questions in one topic, but I couldn't find anything of the sort when I gave the rules a glance. I've been studying how words work in titles and I'd like to think I know most things, but there are a few cases that I can't wrap my head around, as I can't find any specific information on them myself.  EDIT: I've trimmed the amount of questions down from seven to three after checking out some suggestions. The suspected duplicate article helped me out a great bit, and the title case converter was a great help. However, I haven't found a straightforward explanation to any of these remaining questions:   Should the word "the" be capitalized after certain symbols, mainly the ampersand (&)? I haven't been able to find a clear answer to this, I've mostly left "the" without capitalization but for example, writing "KC & the Sunshine Band" looks a bit off to me, so I'm wondering if this is an exception case. How do you capitalize words before and after commas? For example, if there was a title called "Come on, Let's Travel", should the "on" be capitalized in this case, or would it be considered the last word of a phrase? And in another case, there's a track with the title of "You, on the Dance Floor". Should the "on" be capitalized after a comma, or is it still left uncapitalized? How do you capitalize hyphenated words? This has been an absolute mystery to me and I can't seem to find many rules on how to capitalize hypnehated words and I can't figure out how they work; sometimes it seems you need to capitalize both parts of the word and sometimes it isn't so.


Show that, for every metric $d$, the metrics $d/(1+d)$ and $\min\{1,d\}$ are equivalent

The actual problem looks like-     Let, $(X,d)$ be a metric space where $X\ne\emptyset$. Define $d_1$ and   $d_2$ on $X\times X$ by $d_1(x,y)=\frac{d(x,y)}{1+d(x,y)}$,   $d_2(x,y)=\min\{1, d(x,y)\}\quad\forall(x,y)\in X\times X.$(It is easy   to verify $d_1,d_2$ are two metrics on $X$.) Show that, $d_1, d_2$ are   equivalent metrics on $X$.   Firstly, I'll use the standard theorem to prove two metrics on a non-empty set are equivalent- Two metrics $d_1$ and $d_2$ on a non-empty set $X$ are equivalent if and only if for each $x\in X$ and each open ball $B_{d_i} (x,r)$ in $(X,d_i)$(for some $r>0$), there is an $s>0$ such that $B_{d_j} (x,s)\subseteq B_{d_i} (x,r)$, for $i, j=1,2$ and $i\ne j$. Now, to solve the problem, I break it into to parts- If I can show that both of $d_1,d_2$ are equivalent with the metric $d$, then we are done. I'm able to show $d$ and $d_2$ are equivalent in the following way- Let, $x\in X$ and $B_{d_2} (x,r)$ be an open ball in $(X, d_2)$ for some $r>0$. Then $B_{d} (x,r)\subseteq B_{d_2} (x,r)$. Again, if we take an open ball $B_{d} (x,t)$ in $(X,d)$ for some $t>0$. Then $B_{d_2} (x,s)\subseteq B_{d} (x,t)$, where $s=\min \{1,t\}$.  But how to show $d_1$ and $d$ are equivalent metrics in $X$? Can anyone assist me to prove $d_1$ and $d$ are equivalent metrics on $X$? Thanks for your help in advance.


How do I loop through only directories in bash?

I have a folder with some directories and some files (some are hidden, beginning with dot). for d in *; do  echo $d done  will loop through all files and directories, but I want to loop only through directories. How do I do that?


Why will data from a black hole solve the gravity problem?

In Interstellar, the team hopes that data collected from the inside of a black hole will solve “the gravity problem” (presumably the question of how to get a massive space station to escape the Earth’s atmosphere, explained in more detail ).  Two related questions on this:   How can “data” alone solve this scientific problem? Is it that they have too many possibilities to manually test, and their question is just “which is the right one?” Are there any real-world historical examples of good data leading to a breakthrough on achieving what was previously thought to be impossible? Why does the data have to come from a black hole? Isn’t this counter-intuitive, because a black hole is the one place where gravity doesn’t behave as it does on Earth, which is where the problem applies?


/give an enchanted sword results in 'Component was not an object' error in Bedrock/Pocket Edition?

I'm attempting to give a player an enchanted sword using the following command: /give @p diamond_sword 1 0 {"ench":[{"id":5,"lvl":1}]}  Why do I see this error? This copied from example for Bedrock Edition, but not working.


I downloaded a template from .   You can see the template from this link   The problem is that the reference colour in this template is not blue, can you help me to change it to blue. I did several attempts but all of them did not work.  Here is the code that may help for solving:  \listfiles \documentclass[%  reprint,% %secnumarabic,%  amssymb, amsmath,%  aip,cha,% %groupedaddress,% %frontmatterverbose, ]{revtex4-1} \usepackage{float} \usepackage{docs}% \usepackage{bm}% \usepackage[colorlinks=true,linkcolor=blue]{hyperref}% \usepackage{graphicx} %\nofiles \expandafter\ifx\csname package@font\endcsname\relax\else  \expandafter\expandafter  \expandafter\usepackage  \expandafter\expandafter  \expandafter{\csname package@font\endcsname}% \fi \hyphenation{title} \pagestyle{empty} \begin{document}


I am not sure if this comment about a suggestion on stackoverflow should be written here, but I do think so.   I would recommend, if this is possible, when downvoting a question, to be mandatory for the downvoter, to write the reason why he/she downvoted. I think this should be much more helpful for the OP to understand better what he did wrong, in order to fix it, if he does not want to get more downvotes. Downvoting itself, does not help the OP much, nor the people that might have a similar programming problem.  Please write what do you think guys. I know that most of you will disagree with me, but I find that giving feedback when downvoting is more useful for all of us.


Proof of Existence of Algebraic Closure: Too simple to be true?

Having read the classical proof of the existence of an Algebraic Closure (originally due to Artin), I wondered what is wrong with the following simplification (it must be wrong, otherwise why would we bother with the extra complications in Artin's proof?):  Theorem: Let $K$ be a field, then $K$ has an algebraic closure $\bar{K}$ (i.e an algebraic extension that is algebraically closed).   "Proof": Define $A=\{ F \supset K | F \text{ is an algebraic extension of } K\}$ and inherit this with the usual partial order of inclusion. One can check that Zorn's lemma applies (union of a nested chain of algebraic extensions is itself algebraic). Thus take $\overline{K}$ to be a maximal element. It must be algebraically closed for otherwise there is an irreducible polynomial with root in some strictly bigger field.  $\blacksquare$  Now here is what I suspect is false about this proof: The definition of $A$ smells like your usual set theory paradoxes like Russell's paradox. In fact one could just as well use the same technique to prove that there exists a "largest set" which of course there does not. I am however under the impression that "most" working mathematicians ignore set theory foundations and just "do" mathematics, so is there a safe way of doing this (i.e: do "concrete everyday mathematics" by avoiding set theory) without getting burnt?


Webmin - Setting up multiple virtual hosts - Subdomains

Can someone please help me in using WEBMIN to setup virtual hosts.   My current domain www.MYDOMAINLOLFAKE.com currently functions.   Settings are as follows -  Apache - Handles the name-based server www.MYDOMAINLOLFAKE.com on all addresses Address Any Port 80 Server Name www.MYDOMAINLOLFAKE.com Document Root /var/www/html  BIND DNS Server - Master Zone MYDOMAINLOLFAKE.com ns1.mydomainlolfake.com IPHERE - works ns2.mydomainlolfake.com IPHERE - works mydomainlolfake.com IPHERE - works www.mydomainlolfake.com IPHERE -works mail.mydomainlolfake.com IPHERE - works ftp.mydomainlolfake.com IPHERE - works  What I need - something.mydomainlolfake.com -- CANT GET THIS TO WORK  What I tried - Create new virtual host Handles the name-based server something.mydomainlolfake.com on something.mydomainlolfake.com Address Any Port 81 Document Root: /var/www/vhosts/something  What happens -  I create the new VHOST and then ALL address try to go to that new Document root. I need different addresses to go to their respective folders. Can someone please give me better instructions on how to set that up using webmin?  TLDR# How do I make a something.mydomainlolfake.com subdomain work in webmin on my CENTOS 6 web server?


So far I have been told what the problem was but have been provided with no way of fixing it.  My computer is able to install updates, but when I hit check under the update menu it tells me to check my internet connection and gives me this error,      W:Failed to fetch http://ppa.launchpad.net/ubun-tor/ppa/ubuntu/dists/precise/main/source/Sources  404  Not Found W:Failed to fetch http://ppa.launchpad.net/ubun-tor/ppa/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found E:Some index files failed to download. They have been ignored, or old ones used instead.   Anybody know a fix for this?  Is no one going to answer my comment down below?


I'm trying to solve $\int{\sin^3(x)\cos^2(x)}dx$.  I got $-\frac{1}{2}\cos(x)+C$, but the memo says $\frac{1}{5}\cos^5(x)-\frac{1}{3}\cos^3(x)+C$  This is my working:    Your help is appreciated!


I have a site hosted at Brinkster and all keywords are there, but I still can't get it to show up in a Google search.   I thought if I searched for it by domain name, it would show up in the Google search results.  Can anyone explain why it's not showing up?


How many users does Stack Overflow currently have?

This gives an idea from 2008. I'm curious to see how many orders of magnitude it's changed since:


Change how questions marked as duplicates by the asker are represented

Situation: when a user self-marks their post as a duplicate, it shows as closed by "community" rather than the original poster.  Problems: this is not clear at all to most users of SE what has happened. It looks like the question was "mod closed" as a duplicate against the asker's wishes.    Suggestion: instead of the community user "closing" the post, have the final close user be the asker (or make it "Community & Asker"). This will help clear up confusion and streamline the process for understanding what happens.


Why is the e in the LHS equals to cos + isin in the RHS?

In the Method 1 and 2 how is the $e$ in the LHS equal to the RHS?  In the junior classes I was just given to learn that $cos(\frac{π}{2}±\theta)=\mp sin\theta$ but we never proved it.  I have no idea how the e got there in the first statement of the proof.  Can anyone prove the first statement of the proof of Method 1 and 2?  Any help would be appreciated.


How can undo commit on SVN with revision number?

I have committed the code but i want to undo that commit, i have revision and branch number as well, i am unable to undo.  My clientis tortoise SVN, committed from IntelliJ Idea. Please help.


Why do they use elliptic curve instead of circle or other simpler curves?

I am curious why people use elliptic curve in cryptography. I know the main requirement is , but elliptic curve is not the only curve with such property. Some of curves seem to be even simpler.  As an example, we can consider a circle given by the equation:  $$ x^2 + y^2 = 1 (mod p) $$  where $ x, y $ in $ Z_{p} $, $ p $ is prime. And the rule for addition is:  $$ (x_1, y_1) + (x_2, y_2) = (x_1 x_2 - y_1 y_2, x_1 y_2 + x_2 y_1) $$  that can be also written as:  $$ P_1 = (x_1, y_1) $$ $$ P_2 = (x_2, y_2) $$ $$ P_{1+2} = P_1 + P_2 = (x_{1+2}, y_{1+2}) $$ $$ x_{1+2} = x_1 x_2 - y_1 y_2 $$ $$ y_{1+2} = x_1 y_2 + x_2 y_1 $$  I think the circle has some benefits towards elliptic curve:   Easier to understand and to interpret. Better performance, because we have fewer operations in the addition rule. Easier to research for "good" primes $ p $ in cryptography tasks, because the number of points on the circle can be calculated much easier than using .   As far as I know, the presence of DLP is an unprovable fact. So we can only prove that there is no DLP, and if we haven't found this prove we can think that there is DLP. I have made a research and haven't found that there is no DLP for the circle, that makes me think it is a good curve to use in cryptography.  On the other hand, it is obvious that circle looks simpler than elliptic curve, that makes me think people tried to use circle in cryptography but left this idea because of something. Does anybody have some thoughts about why people don't use circle? Or perhaps, is there some literature about it?


When LASSO selects only parts of a categorical variable?

I want to use LASSO to construct a model and then run a logistic regression on the variables LASSO selects. However, LASSO selects only parts of some categorical variables that I put into it.  Does that mean I should dichotomize the categorical variables and only use those that LASSO selected or should I include the entire categorical variable in my regression model?


Did the form of address of female officers and crew of Startrek change over the years?

This question is prompted by the latest of a long series of questions on English Language and Usage about gender neutral terms in English.    I seem to remember that Captain Janeway was called "Sir", but I have a broader question than about that particular point: did Startrek change over the years, from the first TGO episodes filmed to the recent films about the alternate universe, in how women officers were addressed when their rank was not the means of address?  (Female officers certainly changed in how they were dressed!)


I want to prove The Cauchy-Schwarz inequality $\left(\sum_{i=1}^n x_iy_{i}\right)^2 \le \sum_{i=1}^n x_i^2 \sum_{i=1}^n y_{i}^2$

I have tried to prove it by induction but i couldn't make it.


finite dimention subspaces of infinite dimention hilbert space are closed?

Let H is a hilbert space of infinite dimention,  and $ V \subset H $ of finite dimention, can we show that V is closed?   I know if H is of finite dimention, then V is closed, but what if H is infinite dimention?


Say I have an array, and I need to print out the info in that array with a certain character in between each string in the array. How would I go about this? I'll provide an example.  Print out array with info seperated by a " | " without hardcoding it ex: yes|no|maybe etc...  public class Responses {    public static void main(String[] args)        String[] response = {"yes", "no", "maybe", "perhaps"};   The only way I could think of was hard coding it, but I am not allowed to hard code it so that in the event you take out or add something to the array, it will automatically print out that info as well  EDIT: This is not the same as simply printing an array. It is printing the array with the addition of a character between each string


Why is the space between words in my source code listing so big?

I used the following code to list my java code, but the it looks like there's too much space between words. What can I do?  % source code listing \usepackage{listings} \usepackage{color} \usepackage{xcolor}  \usepackage{caption}  % citation style \usepackage{apacite} \DeclareCaptionFont{white}{\color{white}} \DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}  \begin{document} \begin{lstlisting}[label=some-code,caption=bind to service call] bindService(new Intent(this, Recognizer.class), recConnection, Context.BIND_AUTO_CREATE); \end{lstlisting} \end{document}   The snapshot of what I got. The code not completely shown, and space too wide, in function bindService.


As you can see my Steam profile says I'm level 20:    What exactly do levels do? Do they provide any sort of benefits? I've noticed the following as well:    Some of the other users  have different colored circles around their levels. Do they get additional benefits that other lower levels don't get?


What accounts for disk space discrepancy in Finder vs About This Mac?

I've got a Macbook Pro with 500 GB , well, 499.96 GB, with Catalina 10.15.7 on a 2020 machine. I used About This Mac and it said I had 461.27 out of 499.96 GB in System Report, but in Finder it says I've got 465.65 GB left (partially due to Spotlight turned off for everything apart from system folders so App Store updates can be applied). I've not disabled Spotlight on Macintosh HD since App Store can't update system apps like Pages etc. if it's disabled entirely, am I right? What's causing this discrepancy? I noticed after upgrading Catalina it went from 461.36 to 466 GB straight after the security update (001 I think it was), and now 465.65 GB. Would be interested to understand since I've done some light Google-ing but am not sure.


Im trying to perform some time series analysis on 2015 and 2016 monthly recorded data to see what method is best for forecasting 2016 monthly values for the remainder of the year. The data has an annual cycle and I already have values for the first 9 months out of 2016. Using Winter's method, I forecasted values for the first 9 months of 2016 and summed up the absolute differences between these forecasted values and the actual 2016 values I already had. From there I calculated the 2016 monthly forecasted value to be off from the 2016 monthly actual value by a 12% average. I then tried a second method where I summed up the absolute differences between the 2015 actual monthly average 2016 actual monthly value. Long story short this elementary method resulted in predictions being off by an average of 6%. My question is how is the Winters error percentage so much higher than using a straghtforward average method. I should also note the MAPE predicted in Minitab using Winters for fitted 2015 monthly data was 2%. Can anyone make sense of all this for me?


I want to plastic type gloss and reflection of light on it. Please help to add those effect.


Last night I was updating my Ubuntu 10.04 to either 11.04 or 12.04 (I'm not entirely sure which one it was, but I think it was 11.04) and I left it overnight to finish. When I came down in the morning, I noticed that the computer hadn't barely begun installing the updates! The update thing said that my computer was on the installation step, but it was still preparing the libc bin (or whatever its called) . It's like the first part of the step installing the upgrades. So, I stupidly restarted the computer, and when it rebooted, I got five options on a purple screen:  Ubuntu, with Linux 3.0.0-28-generic Ubuntu, with Linux 3.0.0-28-generic (recovery mode) Previous Linux versions Memory test (memtest86+) Memory test (memtest86+, serial console 115200)   Long story short, not matter which way I enter Ubuntu to try and reinstall the updates using the root thing (it's like terminal) after I enter sudo apt-get update it basically said it failed to fetch every url link, and it then says:  W: Some index files have failed to download. They have been ignored, or old ones used instead. W: Not using locking for read only lock file /var/lib/dpkg/lock E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.   So, I entered sudo dpkg --configure -a, and it says:  dpkg: error: unable to access dpkg status area: Read-only file system"   I'm left like wtf, and I really just some guidance here. I just got this laptop, and I can not afford a new one if I broke this one.


FIind the area of the part of the cylinder $x^2+y^2=2ay$ that lies inside the sphere $x^2+y^2+z^2=4a^2$  The intersection of the cylinder with the sphere gives us the shape $2ay+z^2=4a^2$. So if I were to find the surface area of this shape I am done. However it is almost impossible to express the surface area element since I get a $0$ in the denominator.  Can somebody help me by using the suggested approach (calculate the surface area of $2ay+z^2=4a^2$ to get the answer or explain why that method is not possible?


So here is my situation. I am already using Ubuntu 20.04(primary) and Windows 10(only for school). Both systems are installed on separate drives in UEFI mode. To be honest I very rarely use Windows and the only reason I am using it is because some of the programs I use for school(and I don't mean MS Office) don't exist in Linux version. Also, one of the reasons I am asking this question is that I watched some videos about dual booting and many of them don't consider this as dual booting (having every OS on separate drive) so I am little bit confused about that. The main reason I am asking this question is because I am planning on getting a new PC and I want to play some games from time to time(that's why I want Windows 10 as secondary OS) so I don't know should I go with dual booting(separate drives) or virtualization. I know this questions has been asked (and answered) many times but I am new to the whole Linux world so I would appreciate if someone could in detail explain me what is better and why. Also, if for some reason you need more info about my current dual boot setup feel free to ask me.


C++ Unresolved external symbol with Class templates

Here's a simple example of using class templates in C++. This code works.  #include <iostream>  using namespace std;  template <class T> class Test { public:    Test();    void print(); private:     int i; };  template <class T> Test<T>::Test() {     i=1;     cout<<"New instance"<<endl; }  template <class T> void Test<T>::print() {     cout<<"Test"<<endl; }  int main() {     Test<int> i;     i.print();     return 0; }   So when I separate this code in 3 files: main.cpp, Test.h, Test.cpp:  //Test.h #include <iostream>  using namespace std;  template <class T> class Test { public:    Test();    void print(); private:     int i; };  //Test.cpp #include "Test.h"  template <class T> Test<T>::Test() {     i=1;     cout<<"New instance"<<endl; }  template <class T> void Test<T>::print() {     cout<<"Test"<<endl; }  //main.cpp #include "Test.h"  using namespace std;  int main() {     Test<int> i;     i.print();     return 0; }   I get an errors:  1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Test<int>::print(void)" (?print@?$Test@H@@QAEXXZ) referenced in function _main 1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall Test<int>::Test<int>(void)" (??0?$Test@H@@QAE@XZ) referenced in function _mai 1>C:\Programming\C++\stuff\templass\Debug\templass.exe : fatal error LNK1120: 2 unresolved externals   I use Microsoft Visual C++ 2010 Express. So I searched a lot about unresolved external symbol but didn't find anymore for this case. So what's my mistake?


jQuery & SP2010 : Upload document to library using jQuery?

I built a custom form that saves the data to multiple lists with on click; it works pretty well for its intended use (keeping the data related). Thing is I am totally new at jQuery and SPServices, but am learning.   I would like to know if SPService/jQuery will allow me to use the aspx control to upload a single document to a library? I have seen plugins out there for multiple file uploads so I assume this is possible, but all of these seem way to much for what I am trying to do, and I would like to learn how to do it.  Does anyone know if this is possible? Could provide simple example or explanation or reference?  Appreciate it as always!


How to make the function of the planes from the lorenz attractor

How can I make the equation for the planes of the wings of the lorenzattractor,  I know that the critical point should be used.  But I don't know how I should make this plane, the figure shows in yellow which plane I want.


Is it possible to unwrap materials made in Vertex Paint?

I painted an group of objects in Blender using the Vertex Paint and was wondering if it would be possible to unwrap the mutliple materials(when the objects are joined together using Ctrl+J)? Do I have to paint it all over again?


Log in fails and returns to log in screen

I am running a very nearly fresh Gnome version of 12.10, with no particular tweaks or customisation. I performed an upgrade yesterday using  sudo apt-get update; sudo apt-get upgrade   which completed successfully. After rebooting, I find that I am no longer able to log in - entering my (correct) password brings up a black terminal for a couple of seconds as usual and then returns me to the login screen. So far:   The guest account can log in fine I can log in to a terminal via  Ctrl+Alt+1 etc Deleting all my gnome profile entries (.gnome, .gnome2, .gconf, etc) does not help A new empty user (created using $ sudo adduser newguy; sudo passwd newguy) has the same problem /var/log/syslog has some odd messages including  gdm-simple-slave[1219]: WARNING: Child process -1838 was already dead  WARNING: Failed to give slave programs access to the display. Trying to proceed I installed kde-standard and had the same problem, so it is not a Gnome issue Running startx from the terminal available through Ctrl+Alt+1 brings me to a working desktop. If this is allowed to go to screen-saver or is locked, I am unable to wake it (I get an "Authentication Error" message below the password entry field). Opening a terminal in a guest session, running su - myusername and entering my password and gives the error setgid: Operation not permitted   I surmise that something about the Ubuntu login is broken, at least on my system.   Any suggestions will be most gratefully received...


I have a model of an iMac here. I put a screenshot of our geriatric care software on it. Unfortunately, the render result looks very "washed out". Little colors and little contrast. It feels like I've tried all the settings, but I can't get any better results. It seems to be due to the "scene environment". Could someone put me on the right horse here? Original screenshot:  Rendered screenshot:  Blender-File:  Many Thanks! George


Answers and questions allow both upvoting and downvoting - comments, however, only allow upvoting.  I think it would be useful to allow downvoting of comments for two reasons:   First, if you accidentally upvoted a comment you didn't intend to Second, if you strongly believe that a comment is , misleading, incorrect or off topic


How to extract extension from a file upload in PHP?

I have a module where there is a file upload which accepts any file but it should only process csv files. If there is someother file then it should say invalid file.  I have written a code but even when I upload a CSV file it doesnt recognise it as a CSV file. My code is   if($_FILES['file']['type'] != "application/vnd.ms-excel"){    die("This is not a CSV file."); }


How to show that if $\int_a^bf(x)p(x)dx=0$ for continuous $f$ and polynomial $p$, $f$ is identically is zero?

Suppose $f$ is continuous on $[a,b]$ and $\int_a^bf(x)p(x)dx=0$ for every polynomial $p$ with $p(a)=0=p(b)$.   Show that $f$ is identically is zero?  This question is different than   Because we have assumption on the end points of $p$.


Real life examples of difference between independence and correlation

It is well known that independence of random variables implies zero correlation but zero correlation need not imply independence.  I came across plenty of mathematical examples demonstrating dependence despite zero correlation. Are there any real life examples to support this fact?


Indesign-exported PDF selecting text in wrong order?

Edit: Someone else recently posted about something similar, but there were no solutions. I posted this because I cannot yet comment or upvote that other thread, and want to give more context to the issue!  I made a 2-column resume in Indesign, with different text frames for each different title/heading/collection of bullet points. When I highlight or select the text on the Adobe PDF I've exported (no changes in settings), it selects everything out of order.   I blurred out the text bc it's not necessary, but in the picture below I clicked & dragged over just the red highlighted part, and it highlighted those other parts, too. That's the problem I'm having.    Copy & pasting the whole document to a Google Doc causes everything to be out of order, as well.  Currently, the PDF has the following:   Text threading  Putting each text layer in order of desired highlighting order (top to bottom, left to right) Grouping text by layer per column   I found a couple other people with a similar problem, but no solution was found. Not sure if anyone knows how to fix this or has experienced this same thing.  Thank you!


The native OSX dictionary () does not work for the Hebrew language.  The example below shows its reluctance to interpret the word פרסומת, a valid Hebrew word.  Any ideas how to add extra languages to the dictionary?


Adding form placeholders to text input fields

Is there a way to convert a regular form and add placeholders with a module, or should this be done with a form template or with jQuery?


I am currently learning German on Duolingo and one of the phrases for translation is "There is oil on the shirts" which in German comes out as "Oil is on the shirts" which works just as well in English. The addition of "there" in the English phrase reminds me of "do" support in questions: "Does he eat?" vs "He eats?" or "Eats he?" in some other languages.  What is the name of the grammatical feature using "there"?


Although I understand that both "Perry and he" and "He and Perry" mean the same thing, which is more grammatically correct and why?


Why does Stack Overflow use two trackers unlike other Stack Exchange sites and for what purposes?

I recently installed a browser extension to detect trackers on a webpage.   According to that extension, Stack Overflow uses two trackers:   Comscore Beacon Quantserve Tracker   While other Stack Exchange sites (I have checked MSE, History, SFF, Arqade and Politics) use just Comscore Beacon.  Why does Stack Overflow need two trackers? What kind of browsing activities do they track on SE sites?


confusion in words of differents verbs, how to make their present participle forms

What's the method of making the "ing form" of different verbs, in some verbs we double the last letter of that verb e.g: sit becomes sitting, dig becomes digging, and in some verbs we do not need to double the last letter of that verb e.g: go becomes going, read becomes reading. How should we know in which verb we double the last letter?


Do dnf updates conflicts with gnome software center updates?

I'm using fedora 25 gnome latest update. My dnf repo list is  fedora-cisco-openh264.repo  rpmfusion-free-updates.repo fedora.repo                 rpmfusion-free-updates-testing.repo fedora-spotify.repo         rpmfusion-nonfree-rawhide.repo fedora-updates.repo         rpmfusion-nonfree.repo google-chrome.repo          rpmfusion-nonfree-updates.repo rpmfusion-free.repo         rpmfusion-nonfree-updates-testing.repo   Yesterday I updated my system using dnf. Today gnome software center notified me that 19 packages need to be updated. I tried to update using dnf because I hate updating using the software center since it requires restart but couldn't find any update using dnf update.  So I updated fedora using gnome software center, it installed a buggy gdm version, couldn't log in, had to use tty to login, then startx.  I do sudo dnf distro-sync then dnf deletes and downgrades all updates that gnome software center had installed, I reboot and everything works.  Gnome software center is a mastery to me, not the fist time I ask about it on this site. Is it trustworthy? Do its repos conflict with dnf?


Is there a clear set of conditions under which lasso, ridge, or elastic net solution paths are monotone?

The question  demonstrates solution paths for the lasso estimator that are not monotonic. That is, some of the cofficients grow in absolute value before they shrink.  I've applied these models to several different kinds of data sets and never seen this behavior "in the wild," and until today had assumed that they were always monotonic.  Is there a clear set of conditions under which the solution paths are guaranteed to be monotone? Does it affect the interpretation of the results if the paths change direction?


Can you make a bonus-action attack from Two-Weapon Fighting before you take your action?

The rules on  state:     When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand.   However, the description of  states:     You choose when to take a bonus action during your turn, unless the bonus action’s timing is specified   So, can you attack with your bonus action first?


Is kinetic energy a relative quantity? Will it make inconsistent equations when applying it to the conservation of energy equations?

If the velocity is a relative quantity, will it make inconsistent equations when applying it to the conservation of energy equations?  For example:  In the train moving at $V$ relative to ground, there is an object moving at $v$ relative to the frame in the same direction the frame moves. Observer on the ground calculates the object kinetic energy as $\frac{1}{2}m(v+V)^2$. However, another observer on the frame calculates the energy as $\frac{1}{2}mv^2$. When each of these equations is plugged into the conservation of energy, they will result in 2 distinct results (I think).


How to bond two different internet connections

I have two internet connection, each with 4mbps bandwidth. I want to join/merge both of them to get 8mbps speed, both routers have WLAN and LAN capability.    How to Double my speed using two routers? Can I bond two connections in Windows and double my internet connection speed? Any download manager that accepts two internet connection to download?


Optimizing bitset performance for counting number of set bits for a range of values

I've got the following piece of code that takes in 2 integer values which set my range [left, right]. I am converting the integers into their binary representation and then counting the number of bits set via std::count. My method works, however I am facing a performance issue. Its taking too long to complete so ideally I want to do this under 12000 ms, which I am over currently. Any ideas on how I can optimize this operation or do I have to approach this a different way without using std::bitset?  Edit: I dont know what the integer values are, but I do know that they are no larger than 64-bits.  long long countOnes ( int left, int right ) {   long long oneCount = 0;   for(int i = left; i <= right; i++)   {     std::bitset<64> b1 (i);     oneCount += b1.count();   }      return oneCount; }


How can I update iPad 1 from iOS 5.1.1 to iOS 7.1?  I tried checking for updates but I get a message "your software is up to date".


How to share a printer (or any usb devices) to two or more computers?

I want to share a printer to two computers sitting next to each other. Now I plug in the USB printer cable when one wants to print. Is there a cheap and better solution which allows two computers to access this printer (maybe not at the same time)?  I know that I can buy a new router with print-server capability but I already have a working wireless router-modem. My friend told me too that I can just plug the printer in one machine and share it over network, but then I have to boot that PC up before the other can access the printer. That's a little bit inconvenient to me.  Then I came up with this solution by myself. A normal USB hub has one plug and many receptacles. Instead I want the exact reverse, (at least) one receptacle for my printer and many plugs for many computers, but I have found none of such thing in any stores. Have you seen one?  Can you think of other solutions? Thanks.


What role is the word "apple" playing in the sentence "I ate the apple pie." Is apple an adjective? Or are apple and pie treated together as one noun. Is this true of all words used like this? Can "foot" be used as an adjective if I refer to someone as "that foot guy?" Thanks!


Here is the theorem that way it was given to me...     Show that the highest power of a prime $p$ dividing the binomial coefficient   ${n\choose m}$ equals the number of carries when $m$ is added to $n-m$, [EDIT] *in base $p$.   How do you go about proving this? I looked around and it seems the proof requires Legendre's formula but I'm not familiar with it. I'm not good with binomial coefficients and identities to begin with and I was given an example of this using binary code but I don't have any experience with that so I'm still lost.   If this is a duplicate question than I apologize in advance.


Prove that if every linear operator which commutes with $T$ is a polynomial in $T$, then $T$ admits a cyclic vector $v$ in $V$ (finite dimensional).

Let $T:V→V$ be a linear map over a finite dimensional vector space V with $dim$ $V=n$.  Prove that if every linear operator which commutes with $T$ is a polynomial in $T$, then T has a cyclic vector $v$ in $V$.  Let $S$ = the set of all polynomials in $T$. Then $S=C(T)$ as every polynomial in $T$ commutes with $T$ and we are told the converse is also true.  Suppose we do not have a cyclic vector $v$ i.e the set $A$ = {$v,Tv,...,T^{n−1}v$} is not a basis for V. Then $A$ is either linearly dependent, or it does not span $V$.  Suppose A is linearly dependent but it spans V. Then we can get rid of one element in A and have a spanning set of size $< n$ which is impossible.  Suppose A is linearly independent and it does not span $V$. This is impossible as $dim$ $V =n$.  Suppose $A$ is linearly dependent and does not span V. Now in order to arrive at a contradiction, I need to somehow construct a linear operator which commutes with $A$ and is not a polynomial in $T$.  Any help would be great.  Edit: The question really has not been answered in the other link. The answer only refers to a different website in which the text is incredibly difficult to read. Having another answer on stackexchange in clear text would make it much more accessible for the average reader.


A Term for a writer producing a lot content

This might be a very straightforward question. I am looking for a word to describe an author who is going through a very creating phase and is churning out a lot of work. I am unable to recollect a very commonly used adjective for this. Usage might look like:      From 1905 to 1908 he published several short stories and novels. He was a very _______ writer during that time.