I'm new to financial markets and how they work is still fuzzy, so bear with me. This question actually has multiple questions :( ... and a bit of a story.  I was watching a YouTube video on the history of stock markets and happened to mention the 1920 crash. Apparently the cause of the crash was due to the reason that investors were panicking and thus selling. I didn't think too much on it until my brother mentioned in a discussion that investors selling meant there was a counter party buying.   Since then I have been trying to reason as to when "investors starts to panic and thus start selling".   My guess is that if buying and selling have low volatility or the share prices are fluctuating up and down predictably or is going long then things are grand. But investors start to panic and sell when shares drop below a certain threshold. Maybe prices drop by 5-10%? I dunno..  But then if investors are now going mad in fear and selling like crazy, who buys this bad stocks?   The answer I could come up with are short sellers. So, I'm guessing that short sellers make up the counter party that panicked investors sell their shares to.. otherwise who in their right mind would buy a falling stock?  So the short seller makes a tidy profit and returns the shares to the broker. The broker loses the bet, what does the broker do with these worthless stocks?  Can't sell to other investors unless they think the stocks will go long. But let's assume no one thinks the stock will go long anytime soon or that day.  Maybe they can sell to other short sellers?  If so, what happens when short sellers "run out"? I'm getting a headache thinking about it.


I don't know why the lines won't print in the while loop. I can't exit either. Please help. The program runs but nothing inside the while loop will print.   public class RomanNumeralHelper {      /**      * (Insert a brief description that describes the purpose of this method)      *      * @param args      */     public static void main(String[] args) {         Scanner in = new Scanner(System.in);         String myRoman;         String upperRoman;          System.out.print("Enter a roman numeral [Q | q to quit]: ");         myRoman = in.next();         upperRoman = myRoman.toUpperCase();          while (upperRoman != "Q") {             if (upperRoman == "I") {                 System.out.println(">> 1");             } else if (upperRoman == "II") {                 System.out.println(">> 2");             } else if (upperRoman == "III") {                 System.out.println(">> 3");             } else if (upperRoman == "IV") {                 System.out.println(">> 4");             } else if (upperRoman == "V") {                 System.out.println(">> 5");             }              System.out.print("Enter a roman numeral [Q | q to quit]: ");             myRoman = in.next();             upperRoman = myRoman.toUpperCase();         }          System.out.println("Good Bye!");          // (5) Closes the in object to avoid a resource leak.         in.close();     } }


To what extent can we call a Geometric Distribution a Geometric Density

In some papers, for example in  by Klotz, a Geometric Distribution is called a Geometric Density.  For me, this claim looks erroneous, however Klotz is a serious statistician and a professor in the field.  My question is, to what extend is it legitimate to call a Geometric Distribution a Geometric Density?


Assessing group differences on multiple outcomes

I have one independent variable with two levels: Gender (Male and Female), and dependent variables will be composed of three test scores: Impulsivity, Assertiveness, and Social Desirability.  My research question is to know the difference between males and females on all three test scores.  I'm confused about the kind of analysis I should use, and whether or not I've actually labelled the dependent and independent variables correctly? Should I be using a MANOVA?


Is it possible to find Dittos by catching some rare Pokémon?

Sometimes I am thinking if I encounter a Dragonite or Lapras, will it turn into a Ditto?  It is requiring the possibility to catch dittos from rare Pokémon.  Hope no Dittos from those rare Pokémon.


$f: \Omega \rightarrow \Omega$ holomorphic, $f(0) = 0$, $f'(0) = 1$ implies $f(z) = z$

Let $\Omega$ be a bounded connected open subset of $\mathbb{C}$ containing $0$. Let $f: \Omega \rightarrow \Omega$ be holomorphic and $f(0) = 0$, $f'(0) = 1$. The problem I am working on is to show that $f(z) = z$.  If $\Omega = \mathbb{D}$, then this follows from the Schwarz Lemma. I also know of a solution () which involves looking at the power series coefficients of $f^n := f\circ f \circ f \circ \cdots \circ f$ ($n$ times) and using the Cauchy estimates, but is there a different way of doing this problem that doesn't involve taking the $k$th derivative of $f^n$?


Determine a basis of the image and ther kernel of $g$ .

$g : \mathcal{M}_2 (\mathbb{R}) \rightarrow \mathbb{R}$  $ A \rightarrow g(A) = \operatorname{tr}(A)$    Determine the basis of $\ker g$ Determine the basis of $\operatorname{im} g $ Determine the matrix $M (g, \mathcal{B'}, \mathcal{B''})$ with respect to the standard canonical basis $\mathcal{B'}$ and $\mathcal{B''}$ of $\mathbb{R}$ and $\mathcal{M}_2(\mathbb{R})$ respectively.       1. $ A = \begin{pmatrix} a & b \\ c & d  \end{pmatrix} \in \ker g \iff \operatorname{tr}(A) = a + d = 0 \iff a = -d $  and , $A = \begin{pmatrix} a & b \\ c & -a \end{pmatrix} = a\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} + bE_{12} + cE_{21} $.  A basis of $\ker g$ is $(\begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, E_{12}, E_{21})$.  2. $\operatorname{Im}g = \operatorname{Vect}\left\langle g \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, g(E_{12}), g(E_{21})\right\rangle = \operatorname{Vect} \langle 0,0,0\rangle = \operatorname{Vect}\langle 0\rangle$   A basis of $\operatorname{im}g $ is $(0)$.   3. $M (g, \mathcal{B'}, \mathcal{B''}) = \begin{pmatrix} 1 & 0 & 0 & 1  \end{pmatrix}$   Are my answered correct?


I'm having a big problem with the bezier curves in Blender. Im trying to fill up the curves, but i can't. I have already saw some videos from youtube, telling that I have to clic on the 2D button.    But when i clic on the 2D button, this is what it happens.    I will really appreciate any help.  Thank you very much.


Can we ascertain that there exists an epimorphism $G\rightarrow H$?

Let $G,H$ be finite groups. Suppose we have an epimorphism $$G\times G\rightarrow H\times H$$  Can we find an epimorphism $G\rightarrow H$?


Why don't I get the option of upgrading to 20.04

I'm on 19.10. It has been days since 20.04 came out, how long before  those on 19.10 get offered to upgrade???


Norm of the Resolvent of a Self-Adjoint Operator

Let $\mathcal H$ be a Hilbert space and $\mathcal L$ is a self- adjoint operator with a discrete spectrum $\{\lambda_{j}\}$.  I read that it is well known that for, $\lambda \notin \sigma(\mathcal L)$,  $$\left|(L- \lambda I)^{-1}\right| \leq \sup_{j}\frac{1}{|\lambda - \lambda_{j}|}.$$  How to show this well-known result?


I want to read ULS logs for my sharepoint online server.   Is there any standard way of doing it ?


How do RAM and processor speed affect overall performance on Android?

Since Android can be installed on wide range of devices, I'm wondering how important RAM and the CPU speed are to the performance of a device.  There are always tradeoffs when something is increased and another one decreased!  Is more RAM or a faster processor better for general browsing and less mulititasking?  What if I'm interested in gaming or doing lots of things at once?  Will more RAM make up for a slower processor or vice-versa?


Are there verbs that are always reflexive besides "perjure"?

On a recent newscast on CNN, an analyst said,     Trump's lawyers want to avoid questions that might challenge his recollection and lead him to perjure himself.   Hearing this got me to thinking about the nature of the word perjure in that it can only be applied to oneself.  Someone else can't perjure you, you can only perjure yourself.  I wondered if there was a term for this, and in searching on Google I found this Wikipedia page on , and it actually uses "perjure" as an example.  But the wording is a little confusing and implies that many verbs can function as reflexive verbs but they are not always used this way.  On the other hand, "perjure" as used in the Wikipedia example seems to be a case where it is always reflexive.     In grammar, a reflexive verb is, loosely, a verb whose direct object is the same as its subject, for example, "I wash myself". More generally, a reflexive verb has the same semantic agent and patient (typically represented syntactically by the subject and the direct object). For example, the English verb to perjure is reflexive since one can only perjure oneself.   Is there a term for verbs that are limited or mostly limited to reflexive use, such as perjure?  Are there other words, or a whole category of words, that can only be used this way?


In SQL Server is a FAST_FORWARD cursor DYNAMIC by default?

I've been reading the  Books Online article.  It states:     FAST_FORWARD:    Specifies a FORWARD_ONLY, READ_ONLY cursor with performance optimizations enabled.   and      FORWARD_ONLY:   Specifies that the cursor can only be scrolled from the first to the last row. FETCH NEXT is the only supported fetch option. If FORWARD_ONLY is specified without the STATIC, KEYSET, or DYNAMIC keywords, the cursor operates as a DYNAMIC cursor.    Does this mean that a FAST_FORWARD cursor is a DYNAMIC cursor by default, unless I also specify that it's STATIC?


I have a SQL Server 2008 instance which I want to use to import data from an Oracle server.  I have set up a linked server that works correctly when running simple queries like SELECT * FROM table. However, if I declare a variable or loop through the rows in a table or anything else inside the OPENQUERY, I get errors.  Is it possible to do this using OPENQUERY? Do I need additional permissions?


How to find messages where I'm the only recipient?

I receive emails from a bunch of different mailing lists- how do I find emails that are sent only to me? I tried searching "Deliveredto: example@gmail.com" but it didn't bring up every email and also brought up a bunch that I sent.   I work in the media so I receive about 800 emails a day and unfortunately I can't unsubscribe from the lists.


Automatically reloading layer when source is changed

I have a ol.layer.Vector that regularily changes its source. How do I perform a reload of the source everytime I change it?


Steam error: failed to load drivers swrast

Updated the question as there is no solution till now and now i am using 17.04   athul@black-box:~/Downloads$ steam Running Steam on ubuntu 17.04 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(1490228413) libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast  athul@black-box:~/Downloads$ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/nvidia-340/:/usr/lib/nvidia-340/" steam Running Steam on ubuntu 17.04 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(1490228413) libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast   Second Method used to work for a while though early before update.


How to remove punctuation from a string/list

This is the code I have at the moment:  UserSentence = input('Enter your chosen sentence: ') UserSentence = UserSentence.split() print(UserSentence)   say the UserSentence was 'life is short, stunt it', how would I remove the comma after .split()? if possible.


Prove that $g \in o(f)$ implies $f + g \in \Theta(f)$.  I'm pretty stuck on this one. I know that there is a constant $c_2$ such that $f \le c_2  (f+g)$, but I'm not sure how to prove that there exists a constant $c_1$ such that $c_1  (f+g) \le f$. If I can prove that then I can say that $f + g \in \Theta(f)$. Anyone have some suggestions?


Suppose $A B$ are all $n\times n$ matrix. Prove:$A B$ and $B A$ has the same characteristic polynomial.   If A is invertible     \begin{align}P(A B)=|\lambda  E-A B|=\left|\lambda  A\cdot A^{-1}-A B\right|=\left|A\left(\lambda  A^{-1}-B\right)\right|=\left|A\left\|\text{$\lambda $A}^{-1}-B\right.\right|\end{align}  \begin{align}P(B A)=|\lambda  E-B A|=\left|\lambda  A^{-1}\cdot A-B A\right|=\left|\left(\lambda  A^{-1}-B\right)A\right|=\left|\left.\text{$\lambda $A}^{-1}-B\right\|A\right|\end{align}     Is it true?    If A is not invertible     How to prove?  Edit:  I found a proof by Block Matrix Multiplication, it's more straightforward, is it right?  \begin{align}\left( \begin{array}{cc}  E & 0 \\  -A & E \\ \end{array} \right).\left( \begin{array}{cc}  \lambda  E & B \\  \lambda  A & \lambda  E \\ \end{array} \right)=\left( \begin{array}{cc}  \lambda  E & B \\  0 & \lambda  E-A B \\ \end{array} \right)\end{align}  \begin{align}\left( \begin{array}{cc}  \lambda  E & B \\  \lambda  A & \lambda  E \\ \end{array} \right).\left( \begin{array}{cc}  E & 0 \\  -A & E \\ \end{array} \right)=\left( \begin{array}{cc}  \lambda  E-B A & B \\  0 & \lambda  E \\ \end{array} \right)\end{align}  Another proof is by  determinant theorem which uses LU block decomposition.


I have a troubles with linq.  I need to get from this:  +---------+---------+-------+ | Package | WorkDay | Hours | +---------+---------+-------+ | Pack1   | 03/01   |     8 | | Pack1   | 03/01   |     7 | | Pack1   | 03/02   |     6 | | Pack2   | 03/02   |     4 | +---------+---------+-------+   to this:  +-------+-------+-------+ |       | 03/01 | 03/02 | +-------+-------+-------+ | Pack1 |    15 |     6 | | Pack2 |     0 |     4 | +-------+-------+-------+   where cell value is the SUM of Hours for that Package for that WorkDay.  This code DOES work, but it produces wrong table layout:          var query = Time             .GroupBy(t => new { t.PackageId, t.WorkDay })             .Select(t => new             {                 Package = t.FirstOrDefault().Package,                 WorkDay = t.FirstOrDefault().WorkDay,                 Hours = t.Sum(x => x.Hours)             });   Maybe there is a way to transpose query results? Im not sure how to achieve my goal in elegant way. Could somebody help me please?


I am reading a book "Beginning Algorithms" by Simon Harris and James Ross.  In the early pages, there is a section on Understanding Big-O Notation. I read this section, and re-read this section maybe about a dozen times. I still am not able to wrap my head around a couple of things. I appreciate any help to get rid of my confusion.  The author / authors state "The precise number of operations is not actually that important. The complexity of an algorithm is usually defined in terms of the order of magnitude of the number of operations required to perform a function, denoted by a capital O for order of followed by an expression representing some growth relative to the size of the problem denoted by the letter N."  This really made my head hurt, and unfortunately, everything else following this paragraph made no sense to me because this paragraph is supposed to lay the foundation for the next reading.  The book does not define "order of magnitude." I googled this and the results just told me that order of magnitude are defined in powers of 10. But what does that even mean? Do you take the number of operations and define that number in a power of 10, and that equals the complexity? Also, what is considered the "size of the problem?" Is the size of the problem the number of operations? Or is the size of the problem the "order of magnitude of the number of operations required to perform a function."  Any practical examples and a proper explanation of this would really help.  Thanks!


Angle of electric field lines leaving a postive charge and entering a negative charge in dipole

A positive and negative charge are some distance d away from each other (Electric dipole configuration) Consider the electric field lines in between them. That is, there is a straight line electric field vector that points from (+) to (-) along the d direction. There is also an arbitrary electric field line exiting the (+) charge by some angle alpha with respect to the d direction and it enters the (-) charge by some angle beta with respect to the d direction. Assume alpha does not equal beta. What are the angles?  This was a question posed by my professor to think about. At first I thought the angles would be equal so I didn't really understand his question. I think the case that they would be equal would be when the positive charge magnitude is equal to the negative charge magnitude (I may be wrong). He did not tell us what the magnitude of the (+) and (-) charges so I think this may be the main point. Would there be a way to calculate the angle? Maybe a ratio? This is mainly for my own curiosity any insight would be appreciated!


Is there a set $A$ such that power set of $A $ has a bijection with $\mathbb{N}$?

Has this statement any relation with continuum hypothesis ?


I have two questions related to the PCA:   Is the higher weight assigned to the variable which not necessarily have higher variation but are more representative of the variation of other variables? (i.e. the PCA aims to catch the common variation) Since the input of PCA is just the correlation matrix, which is not affected by the scale, is standardization required by PCA?   Below is a toy dataset I've created to help in explaining my doubts. Please correct me if there is anything incorrect. Thanks so much!  set.seed(99) a = sample(1:1000,300,replace=TRUE) b = sample(1:1000,300)  #standardize a and b a_t = (a-mean(a))/sd(a) b_t = (b-mean(b))/sd(b)   sd(a) sd(b) #the variation of the two variables are different   x=as.matrix(cbind(a,b)) xcor = cor(x)  xcor   x_t=as.matrix(cbind(a_t,b_t)) xcor_t = cor(x_t)  xcor_t #the correlation matrix is not affected by the standardization   # Eigen decomposition  out = eigen(xcor)   va = out$values   ve = out$vectors         ve #the two variables are assigned the same weight (absolute value)   # Eigen decomposition  out_t = eigen(xcor_t)   va_t = out_t$values   ve_t = out_t$vectors     ve #the standardized variables share the same eigenvector are the unstandardized variables ```


difference between C++ constructor and java Constructor

In C++ , if we create our own constructor then we need to require to deallocate the memory of the object created during construction call.(Correct me if i am wrong)  i want to know about JAVA constructor call. for java also do we require to deallocate memory of the object created or it will deallocate by their own if the object is not in use


If n is an integer with n>1, then n has a prime factor. How do you do this using strong induction??

If $n$ is an integer with $n>1$, then $n$ has a prime factor. How do you do this using strong induction??


$\operatorname{span}\{AB-BA : A, B \in M_n(\Bbb R)\}$ is the set of all matrices with trace $0$

Let $W$ be the space $$\operatorname{span}\{AB-BA\} ,$$ where A and B are square matrices, and let $H$ be the space of all square matrices of trace $0$. Then prove that $W=H$.   The fact that $W$ is a subset of $H$ is fairly easy to prove. I could prove the converse.


How do you get rid of page numbers on \part pages?

I am writing a book of puzzles in LaTeX, using the book class. The \thispagestyle{empty} command has successfully removed page numbers on all the \chapter pages, but so far no combination of \newpage and \thispagestyle{empty} before and/or after a \part command has been able to remove the page number at the center of the bottom of the \part page.  \newpage \tableofcontents \thispagestyle{empty} \newpage \thispagestyle{empty} \newpage \thispagestyle{empty} \part{} \thispagestyle{empty} \chapter{} \thispagestyle{empty}   The code above produces a table of contents page, then a blank page, then a \part page, then a blank page, then a \chapter page. There are no page numbers except on the \part page, and it appears to be incredibly reluctant to disappear, as you can see from the number of empty page commands surrounding the \part command!  Any help is appreciated.  Thank you.


How to handle personal information posted by a user on Stack Overflow?

I just witnessed a question from someone on Stack Overflow that, for some unknown reason, posted what appeared to be an array containing usernames, encrypted passwords, email addresses, phone numbers, , etc., asking for help handling the array. Fortunately, the author removed the question, but not before dozens or hundreds of users saw this question and perhaps got indexed by search engines.  Besides flagging this question, are there any steps for Stack Exchange users to pursue in such a situation? If I were a client of this person, I'd want someone to tell me that they are incompetent and leaked some of my information.  Edit: Thanks for the responses.  While I viewed the duplicate question, I feel these answers and comments are more appropriate, especially given the website changes over the past year.  It was more a question of what can I do than what should I do.  The answers and comments here also gave me some insight over attitudes of this kind of situation in an ethical and legal light.


Can't enable Windows file compression on removable drive?

I have a USB drive formatted with NTFS. I would like to use "compress contents to save disk space" option, although it is greyed out.    It works fine on the C: drive. Any suggestions?


Indicate that a post has been edited since being flagged

In , can we indicate alongside each flag in the mod dashboard if the post that was flagged has been edited or not? Something like a simple  N x Edits since flagging.   This way, moderators will be reminded that they might have to check the revision history to grok the reason for the flag. Note that this is different from , which requested that the moderators be shown the original version of the post. The response has been overwhelmingly negative, and rightly so.   My request would merely require a simple check to see if any edits have been made since the flag was raised and a short notice. The view that the moderators get should still be the current version.


I'm trying to make a list of figures but am having some problems with the captioning.   Some pictures have long names since I explain some things in the caption, but I don't want this to show in the list of figures. How can I change it?   Attached a picture of how it looks right now. I want it only to read "2.6 Proportional control" as an example.


A $n \times n$ square is made of square tiles of dimensions $1\times1$. A mouse can leap along the diagonal or along the  side of square tiles. In how many ways can the mouse reach the right lower corner vertex of the square from the lower left corner vertex of the square leaping exactly  $n$ times?  In one of my exam, I encountered a particular version of this problem with $n=5$. With a semi-brute force (case counting) kind of approach I derived the answer as $21$. How to derive the general solution for any $n \in \mathbb{N}$ ?


What are the default layout settings in gnome-terminal?

I want to replace gnome-terminal fully by lxterminal. I've started by changing the default terminal emulator. So I ran sudo update-alternatives --config x-terminal-emulator, and chose lxterminal. After that, I ran dconf-editor and went to org - gnome - desktop - applications - terminal and changed gnome-terminal to lxterminal and removed the -x in the exec arg part.  The only problem though, is that by default, lxterminal doesn't look like gnome-terminal. What are gnome-terminal's default layout settings? I'm especially looking for the hexadecimal colour codes for both text and background.


ifconfig : Command 'ifconfig' is available in '/sbin/ifconfig'

My question is related to another open . My  echo $PATH gives me an output which is like   /home/sahil/.rvm/gems/ruby-1.9.3-p125/bin:/home/sahil/.rvm/gems/ruby-1.9.3-p125@global/bin:/home/sahil/.rvm/rubies/ruby-1.9.3-p125/bin:/home/sahil/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/home/sahil/.rvm/bin{}:/home/android-sdks/{}:/home/android-sdks/platform-tools/{}:/home/android-sdks/tools/{}:/home/sahil/android-sdks/tools{}:/home/sahil/android-sdks/tools:/home/sahil/android-sdks/platform-tools/   But running   ifconfig    gives me an output like  Command 'ifconfig' is available in '/sbin/ifconfig' The command could not be located because '/sbin' is not included in the PATH environment variable. This is most likely caused by the lack of administrative privileges associated with your user account. ifconfig: command not found   after running command like given in other question  export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"   it runs ifconfig but blocks other commands of ruby rails or rvm.  Seeking help how to resolve this. Also why this happens?


I encountered this particular combinatorial identity :$$\begin{align}&1\dbinom{n-1}{r-1}+2\dbinom{n-2}{r-1}+\cdots+(n+1-r)\dbinom{r-1}{r-1}\\=&\dbinom{n}{r}+\dbinom{n-1}{r}+\cdots+\dbinom{r}{r}\\=& \dbinom{n+1}{r+1}\end{align}$$How does one figure it out?


Can void method be defined using dot notation?

I've just started learning Java and I am stuck at this MCQ:  Assume class Temp is defined as belowand the statment Temp a= new temp() is successfully executed Which of the statement is illegal in Java?  class Temp {  public static int i;  public void method1() { }  public static void method2() { } }   A. System.out.println(i);  B. Temp.method1();  C. a.method1();  D. Temp.method2();  The answer is B, but I can't understand why. Is it because a void method cannot be defined using the dot notation unless it's static?


Access variables set inside command substitutions

I wrote a simple script   #!/bin/bash -x  selentry=`ls -l / | sort ; ts=${PIPESTATUS[0]}`  echo $ts   but $ts show nothing. How I can display $ts variable, or how I can get exit status code from command in variable?  selentry=`ls -l / | sort`


$S=\left \{(x,sin(\frac{1}{x} )) ;0<x\leq 1\right \}$  I know that $\bar{S}=(\left \{  0\right \}\times[-1 ,1])\cup     S$  How could I prove it ?


I've setup a very specific function and it works well but I'd like to make the parameters optional but I can't get a handle on the regex bit:  add_rewrite_rule('whats-on/([^/]+)/([^/]+)/([^/]+)/?$', 'index.php?page_id=71&event_year=$matches[1]&event_month=$matches[2]&event_day=$matches[3]','top');   /whats-on/2012/01/25 I'll show all events on this date.  /whats-on/2012/01 goes to 404 but I'd like the parameter to be optional so I can show all January dates and the same for /whats-on/2012 all dates in year 2012  Any help will gratefully received - thanks


Altering layer's CRS to correct Layer Misalignment in QGIS

I've got a vector layer in my project which isn't aligned with the rest of the project (see attached JPEG).  These are work files so I'm not sure when they were created or how they might have been messed with since they were created.  We moved from ArcGIS to QGIS a couple of years ago.  The infilled blue vector layer is the one I need to move, slightly north and east, so that it correlates to the blue line (also a vector).  All layers (and the project) are currently in EPSG:27700 - OSGB 1936.   If I need to create a new CRS based on OSGB 1936 and give it some new parameters, then how would I go about this?  Further information:  This is on Exmoor in SW England, and the data is uniformly almost exactly 8m out to the SW point to point - i.e I need to shift it 8m NE.


Is signing a message just encrypting it with private key?

I have a simple question,  When I sign a message (in RSA) does the program encrypt the text with my private key?  Because I can decrypt it with my public key.  Yes or no. Is signing a message just encrypting with private key?


Scilab cannot create Java Main-Class on Ubuntu 17.10

First of all, I am sorry for asking this queston in askubuntu rather than in sciab community. But I need a fast solution and the sciab community can take a few days to answer a question.  I have a problem after installing scilab 5.5.2 on ubuntu 17.10. It says    I tried to delete SCIHOME like many other suggest, but itu did not work. Can anyone help me? Thank you


How to apply a displacement modifier to one area of an object from an image?

Say I have a trapezoidal prism (a six-sided object with 4 trapezoidal faces and a rectangular top and bottom) like this one .    I need to apply a displacement modifier to one trapezoidal face using an image containing the texture/normals, such as .    In other words, I need to take an image that is the same shape as the face and use it to create the actual 3D texture using a displacement modifier (the resulting object will be 3D printed).  I know how to do this on a simple plane/surface, but I'm running into trouble in this scenario.  The main problems seem to be:   How do I apply the displacement modifier to only one selected face, without affecting the rest of the object, and When I apply the image, how do I force the image to fit correctly onto the surface, as they have the same proportions but may not be the same size?   Edit: This has been flagged as a possible duplicate of .  I did see that question before posting mine, but it did not help me.  It does not cover how to apply displacement modifiers to only one face without altering the object, and does not touch upon the second part of my question at all.


The images in my paper are in EPS format. If I execute pdflatex to get a PDF version of my paper, the figures won't appear. I have to typeset using the latex command, and then convert the DVI file to PDF using dvipdf.   Why doesn't pdflatex support EPS figures?


Transforming variables for multiple regression in R

I am trying to perform a multiple regression in R. However, my dependent variable has the following plot:    Here is a scatterplot matrix with all my variables (WAR is the dependent variable):    I know that I need to perform a transformation on this variable (and possibly the independent variables?) but I am not sure of the exact transformation required. Can someone point me in the right direction? I am happy to provide any additional information about the relationship between the independent and dependent variables.  The diagnostic graphics from my regression look as follows:    EDIT  After transforming the dependent and independent variables using Yeo-Johnson transformations, the diagnostic plots look like this:    If I use a GLM with a log-link, the diagnostic graphics are:


With the patch 2.0.1, you no longer can improve your MF with Paragon Level or Nephalem Valor buff.  So is there a way to improve that stats without raising the difficulty level or playing in coop ?


Please consider the following four sentences.  1 - He finished school  2 - He has finished school  3 - He had finished school  4 - He did finish school  Do all of these sentences mean the same or not? If there are any differences, could you explain?  I'm not asking which one is more appropriate to express that someone completed his last school year. Instead, I'm just using these sentences as examples in order to understand the correct usage of each past tense form in English. Thank you.  Edit: Not a duplicate. My question considers specific past tense forms, while the suggested question deals with other unrelated tenses and aspects.


Book connecting flight, but only board at second airport?

I'm looking to book flights from) Philadelphia (PHL) to Detroit (DTW). Direct flights are quite expensive. I noticed, in expanding a search to surrounding airports, that I can book from Allentown (ABE) to Detroit for far less, and the connection is through Philadelphia.  Can I book this flight but board in Philadelphia? I'll be traveling with carry-on luggage only, so on the return, it's obviously no problem. But would I be allowed through security and on to the plane in PHL with out having flown from Allentown?


How best can I discover what is up with my electrical bill?

This might be subjective, I don't know. However, it's a serious problem for me. My electrical bill is outrageous. It's three times as large as my next-door neighbor, and four or five times the size of my neighbor's across the street. It's worse in the summer (I live in central TX), but I've had the air conditioner inspected, and while the house is right at the maximum capacity for our unit, the unit should still be able to take care of the load. That also doesn't explain why our winter bills are larger than the comparables.  What I would like to do is check the amount of current drawn by each running appliance and calculate where all my money is going. I just don't know how to go about doing this.


How to avoid the blackening fruits once they are cut?

Apples and bananas start to blacken and sour in taste soon after cutting, which spoils the presentation of dish, especially in fruit salads. How can I avoid this?  Also, does browning impact nutritional value?


Is "thinks I" in Melville's Moby-Dick used in the sense of "thought I"?

The following is just one of the examples of thinks I being used by Melville:  When, at last, his mind seemed made up touching the character of his bedfellow, and he became, as it were, reconciled to the fact; he jumped out upon the floor, and by certain signs and sounds gave me to understand that, if it pleased me, he would dress first and then leave me to dress afterwards, leaving the whole apartment to myself. Thinks I, Queequeg, under the circumstances, this is a very civilized overture; but, the truth is, these savages have an innate sense of delicacy, say what you will; it is marvellous how essentially polite they are.  Thinks I occurs thirteen times, whereas thought I occurs thirty seven times in  Methinks the phrase is used by Melville in the meaning of thought I. What puts me in doubt, though, is the lack of definitions of such meaning in dictionaries and the lack of any discussion in the Web, e.g. at ESE. I intend to edit  as soon as I learn from you all..


Gaussian and Mean Curvatures for a Ruled Surface

We are asked to prove the following theorem found in page 88 of Differential Geometry: Curves, Surfaces, Manifolds by Wolfgang Kühnel.  Using standard parameters, calculate the Gaussian curvature and the mean curvature of a ruled surface as follows:  $K = -\dfrac {{\lambda}^2} {{{\lambda}^2 +v^2}^2}$   and   $H = -\dfrac {1} {2({\lambda}^2 +v^2)^{3/2}} (Jv^2 + \lambda' v + \lambda (\lambda J + F))$    In standard parameters, a ruled surface is $f(u,v) = c(u) + v X(u)$ and $||X|| = ||X'|| = 1$ and $\langle c', X' \rangle = 0$.  Thus, using standard parameters, a ruled surface is, up to Euclidean motions, uniquely determined by the following quantities:  $F = \langle c', X\rangle$  $\lambda = \langle c' \times X, X' \rangle = \det (c', X, X')$  $J = \langle X'', X \times X' \rangle = \det (X, X', X'')$  Also, the first fundamental form is given as follows:  $I = \begin {pmatrix} \langle c',c' \rangle + v^2 & \langle c', X \rangle \\ \langle c', X \rangle & 1 \end {pmatrix} = \begin {pmatrix} F^2 + {\lambda}^2  + v^2 & F \\ F & 1 \end {pmatrix}$ with $\det (I) = \lambda^2 + v^2$.  So far, I have that  $f_u (u,v)  = c' + vX'$  and  $f_v (u,v) = X$  But I don't know how to proceed from there to get the first fundamental form, the normal vector, and the second fundamental form.


How can I install the Social-Engineering Toolkit (SET)?

There is this software (SET) from Backtack 5 source that I found out about. But I don't know how to install this thing. Could somebody help me?  Here the link:


why we need various encoding for Unicode

Since an Unicode character is U+XXXX(in hex), so it only needs two bytes, then why we come up with various of different encoding scheme like UTF-8 which takes from one to four bytes? Can't we just map the each Unicode character into binary data of two bytes, why we ever need four bytes to encode?


What qualifies as a quantum theory and why are we seeking a quantum theory of gravity?

When can a theory be called a quantum theory? Does it have to do with the existence of certain quantities which take discrete values (they increase in quanta)? Or does it have to do with the existence of non-commuting operators?  If yes, then classical mechanics qualifies as a quantum theory. To get standing waves on a string, one can have DISCRETE wavelengths and finite rotations about x and y-axes are NON-COMMUTING.  Also, why are we seeking a quantum theory of gravity?


How to use equal sign inside class option with pgfopts

I've created a custom class with key-value options using pgfopts. So far this is working fine. Now I would like to create a key which can take a random string including equal sign and comma.  The below example will illustrate my needs.  \begin{filecontents}{\jobname.cls}     \ProvidesClass{\jobname}[2018-11-20 v1.0 SE Test package]     \RequirePackage{pgfopts}     \pgfkeys{         testproj/.cd,         mystuff/.store in = \myValue,         mystuff = {} % <-- Set default to empty     }     \ProcessPgfOptions{/testproj}     \LoadClass[\myValue]{article}     \endinput \end{filecontents} % ------------------ \documentclass[mystuff = {hello=SE,test=1}]{\jobname} %\pgfkeys{/testproj/mystuff = {hello=SE}} % <-- working as aspected \begin{document}     myValue: \myValue \end{document}   The key mystuff should take any string and should be passed as class option. The problem is that mystuff will only take "hello" as argument instead of the whole content inside the parenthesis "hello=SE,test=1".  How can I manage to pass a random string as class option including a equal sign and a comma using pgfopts?


What to do with bounty on question which is no longer relevant?

I asked a question a couple of days ago. I didn't receive any answers to the question, save for a few comments.  Once the bounty period was up I placed a bounty on the question as the concern at the time was rather urgent.  I got some answers to question eventually -- as I had expected. But requirements have changed since then and the content of the question has no longer become relevant.  What can or should I do with this question? Should I award the bounty anyway, regardless of whether the question still has it's relevance?


How to remove images from showing in a post with the_content()?

Trying to learn more about creating my own themes and not using any plugins I wanted an ability to display all the images in a post excluding the thumbnail in my single-foobar.php file and I can do that with:  <?php if ( have_posts() ) : while ( have_posts() ) : the_post();      $thumb_ID = get_post_thumbnail_id( $post->ID );  $args = array(    'post_type' => 'attachment',    'numberposts' => -1,    'post_status' => null,    'post_parent' => $post->ID,    'exclude' => $thumb_ID   );  $attachments = get_posts( $args );  if ( $attachments ) {     foreach ( $attachments as $attachment ) {        echo '
';        $image_res = wp_get_attachment_image( $attachment->ID, ' img-responsive' );        echo $image_res;        echo '
';       }  }  else { ?>      No pictures loaded at this time  <?php } endwhile; endif; ?>   However, when I apply my static HTML and then try to call get_the_content() with:  <?php  $content = get_the_content(); $content = preg_replace("/]+\>/i", "(image) ", $content);           $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; ?>   it removes the images but leaves a (image) in the post with spaces then displays the remaining text. I did find a similar  but it suggests using get_the_content() but that strips all the styling from the post.  So my question is how can I strip images from the_content()?  I did find "" from my searches but that still uses the get_the_content() approach.


Variations of earth's magnetic field strength

Is it true that on average, people who grow up in a geographical location of the earth where the magnetic field strength is stronger than other geographical locations, develop more to their genetic potential and experience less degenerative medical problems and less cases of cancer compared to people who grow up in geographical locations where the earth's magnetic field is weaker (less)?  Is it true that during ancient times, intelligent beings used the placing of stones in various locations of some countries such as Scotland, England, Ireland, Egypt, America, or South America, to mark various locations where the Earth's magnetic field lines were the strongest in their particular location and / or, in different locations? This is a question pertaining to the physics of molecular biology and Earth's magnetic lay lines.  In general (on average), is there a stronger magnetic field of the earth in geographical locations that are below sea level, compared to Earth's geographical locations above sea level?


Dividing polygon into specific sizes using ArcGIS Desktop?

I have several thousand irregularly shaped polygons in a shapefile. I want to be able to split each polygon into three areas, and to specify what the size of those areas (they sum to the previous total area). It does not matter what the sub-polygon shape is, as this is for visualization purposes.  How can I go about doing this? Is there a standard algorithm that exists that I can use?    One approach I considered was to get all the points that make up the polygon. Then, I would join two randomly together using a straight line, split the polygon, then check if the area was within a satisfactory tolerance. If it was too small, I would change the point in one direction; if it was too large, I would change to a point in the opposite direction.


Testing Cointegration at level or with first differences?

I have a question regarding testing for cointegration.  The situation is a follows: I have two time series that are both stationary at level when I consider "constant and trend". They are otherwise not stationary. The first differences are all stationary.  With regard to Cointegration testing: Do we test cointegration (Johansen) at level or at first differences? If we test with the level data, is it okay to model with a trend?


"He put on the shelf a box" -- can this be considered correct?

Of course it would be preferable to say, "He put a box on the shelf," but is it incorrect to say "He put on the shelf a box?"   This sentence was an item on a test for people with aphasia. The target sentence is "He put the box on the shelf." Inversions are acceptable if they're correct. An easier example is "She is giving the boy a present" for "She is giving a present to the boy."


Has the abc conjuncture been proved by Shinichi Mochizuki?

I'd like to know is his proof was reviewed, and what exactly happened.


Can a dummy variable only take the values 1 or 0

Is it possible for dummy variables in a regression model to take on any value. I added a variable to my model with two variables (one dependent and one independent) and called it a dummy variable that can take on any Integer value > 0. This value also give me some information about my observations. But i was told i cannot call it a dummy variable as it is does not take on a binary value.  I did read some articles and got some definitions, but i can't seem to find an example of a dummy variable that can take on any value. I just want to confirm that a dummy variable can only be binary.


Why cannot I get a live-USB to use a partition for persistence?

I have installed Ubuntu 14.04.3 to a 16GB pendrive so as to obtain a Live OS that stores persistent data on an ext4 partition. I followed the instructions on various tutorials and answers, recently on this:   Everything works fine except persistence.  This is what I did:   Boot from a live Ubuntu on USB (here: USB2) without a persistent file. Insert another USB (here: USB1), open gparted, unmount and delete all partitions. Select "unallocated" and create two partitions: sdc1: 1 - 2170 - auto - MiB // Primary Partition - fat32 - OS sdc2: 0 - auto - 0 - MiB // Primary Partition - ext4 - casper-rw Extract USB1 and then insert it in a Windows machine. Install Ubuntu on OS using "UNETBOOTIN" (but I've also used "Universal USB Installer", no difference later on) and set a 10 MiB persistent file. Delete casper-rw under Windows (but I've also done it under Ubuntu). Boot Ubuntu from USB2, insert USB1, open GParted and Right Click on the fat32 partition (OS 2.10 GiB), select Manage Flags and check "Boot" and "lba" ("Boot" is already checked; checking "lba" does not seem to change the situation later on). The "casper-rw" is now larger than 4GB (12.81 GiB), but persistence does not work. Modify the file "txt.cfg" as reported here below.   But even so persistence does not work. Can someone help? Many thanks in advance.  default live  label live    menu label ^Try Ubuntu without installing    kernel /casper/vmlinuz.efi    append  file=/cdrom/preseed/ubuntu.seed boot=casper cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid initrd=/casper/initrd.lz quiet splash --  label live-install    menu label ^Install Ubuntu    kernel /casper/vmlinuz.efi    append  file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid initrd=/casper/initrd.lz quiet splash --  label check    menu label ^Check disc for defects    kernel /casper/vmlinuz.efi    append  boot=casper integrity-check cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid initrd=/casper/initrd.lz quiet splash --  label memtest    menu label Test ^memory    kernel /install/mt86plus  label hd    menu label ^Boot from first hard disk    localboot 0x80


I need to make podcast,I have audacity and made a few but I am having problem converting it into a mp3 and storing it


Prove that for any $0\lt r\lt n$ we have $$\binom nr=\binom{n-1}{r-1}+\binom{n-1}r.$$  How do prove this and what step do i take in order for it to be true?


Automatically show which tags were edited in revision history

I’ve developed the habit of using the revision summary to indicate which changes I’ve made to the tags while retagging a question.  For instance, if the question originally had tags   and it should be  instead, I write the following in the revision summary:     Edited tags: -cocoa, -touch, +cocoa-touch   which I find useful (and potentially educational) for the OP and other editors.  On the other hand, when an editor doesn’t type a revision summary, Stack Overflow shows     User (timestamp) edited tags   with no indication of the difference between previous tags and the tags set by that edit.  Since there’s a limit on the number of tags, this difference would easily fit in the revision history list of that question. Could this be automatic in case the editor doesn’t fill the revision summary? Is it worth it?


No WiFi ubuntu 16.04 LTS won't connect to any network!

I had always this problem when the notebook was suspended. But normally with a reboot everything goes right, but not now! Can someone help me?  After done lspci -nnk | grep Net -A2  02:00.0 Network controller [0280]: Qualcomm Atheros AR9485 Wireless Network Adapter [168c:0032] (rev 01)     Subsystem: Lite-On Communications Inc AR9485 Wireless Network Adapter [11ad:6627]     Kernel driver in use: ath9k     Kernel modules: ath9k


I have a small condiment business, where I make a sauce that uses Mayo as a base. I would like to make the base myself so my product can have a long shelf life unopened like commercial ones, and then the reduced one refrigerated. I need help with a method to do this or if someone could suggest another base that I could use, similar in taste that’s easier to make and preserve. Please, I really need this help.


I'm trying to create users by importing their data from a .csv file by using a bash script. I know basics for bash but I'm getting confused using loops to create this script. The template for the .csv is the following:  Surname,Name,Username,Department,Password


In the last months I was searching for a subject for my bachelor thesis. I came up with an idea for a new cipher concept that works by combining already known techniques in a (hopefully) new way.  So I talked to our professor for cryptography. Although she could not find any obvious weaknesses she mentioned that the review of a cipher is an ongoing and protracted process and therefore not suited as a subject for a bachelor thesis.   Is there a way to publish the concept to get some reviews? What could one do to prevent the idea from falling into oblivion somewhere on my hard drive?   Update  I totally understood her reasons why this subject is not suitable. The question was more about the possible ways I could evolve, publish or analyze the idea (independently from my thesis). Sorry for the confusion this might have caused.


Should objects added in edit mode be merged together or can they exist as separate objects?

Are unlinked mesh islands of the same object considered bad modeling? And, when should I merge meshes and when should I keep them separate?


No sound (speakers/jack) + microphone's dead after spilling water

Sadly, yesterday I've spilled some water on my MacBook Pro (El Capitan). Before you yell at me - it was closed, turned off and it wasn't a lot of water, the laptop was wet only on the top and under - not inside.  Today I've turned him on. At first battery wasn't recharging for some reason, but SMC reset fixed the problem.  At the first booting speaker was like talking to me, hard to explain but it was weird. Also only right speaker was "talking", despite the fact that only left side of the laptop was watered. Then there was no sound at all, not from the speakers, nor from the headphones. Also microphone's not working. USB ports are okay. The water was spilled from the left side of the laptop. I know this is hardware issue, and something's broken, but I want to be 100% sure. No it's not muted. I've also tried NVRAM reset a few times, but it doesn't fix the problem :(  There might be one factor, before spilling, my laptop "died" for the first time (battery energy ran off), but I doubt it's the case. (but hey, every info matters, right?)  It wouldn't be weird for me, if only left speaker wouldn't work, but built-in microphone not working is kinda weird in this case, isn't it?  I just want to ask you guys, what else can I check, before I'll be 100% sure it's dead inside?  I've plugged in external microphone - it's not working too.


How to reset root password of fedora 20 ...please answer in step wise

How to reset root password of fedora 20  Please explain it stepwise because I am having difficulties


What is Stack Exchange's position on stackanswers.net (Askru)

seems like a shameless copy of Stack Overflow. I could not find any good information about the site and it looks to be everything but legitimate. Is the Stack Exchange team aware of this site and allowing it to copy site content?  Or perhaps is there nothing one can do about such sites?


Is there a way to retract a comment flag ?  Just did one thinking it was disguised advertising before realizing my mistake.


On the persistence of links upon deletion of answers

Suppose that I answer a question. In my answer, I link to another question or answer on the same Stack Exchange site. Then, I delete my answer. It seems that, even upon deletion of the answer, the linked question or answer still shows up on the Linked sidebar. If this is indeed correct, is this desirable?


How to select a drop-down menu value with Selenium using Python?

I need to select an element from a drop-down menu. <div class="selectric">     <select>         <option value="10">View 10</option>         <option value="50">View 50</option>         <option value="100">View 100</option>         <option value="1000">View All</option>     </select> </div>  First I have to click on it. I do this: select = Select(driver.find_element_by_xpath('//*[@id="root"]/div/div[2]/div/div[4]/div/div/div/div[2]/div[1]/div[1]/div[2]/div/div[1]/div/div/select'))  select.select_by_visible_text('View All') select.select_by_value('10000')  I tried to do it but it did not work


Difference between feature to raster and polygon to raster

(I'm using Arc 10.1)  I'm trying to rasterize a data set. I have a shapefile with geographic coordinates (GCS_GDA_1994) which I want to convert to a raster with 100m grid cells. So I need to project into a projected SRS - I used GDA_1994_South_Australia_Lambert but I don't think it matter which one for my question. So I did that, and afterwards I tried to use 'Polygon to raster' to convert to a raster. However, in the input field 'Cellsize' I get by default a very small value (0.0002 or so) - reading the help file, this makes me thing it is because it is still using degrees as the unit there. And indeed when I put in 100 there (for 100 meters), I get one big cell; it is using the wrong unit. When I check 'linear unit' under the layer properties, it does say 'Meter' however.  So then I tried Feature to Raster and lo and behold, I get a default suggestion in the correct order of magnitude and putting in 100 manually gives me a 100m raster.  Now, Polygon to raster has more options that control how the value of the cell is calculated, and I need that. So my question is: what is the difference between these two tools that makes one use a different unit than the other, and how can I make 'Polygon to raster' use meters?


I need a short formula to calculate the original price. e.g A fridge cost £ 200 after 50% reduction. Calculate the original price


So I want to subdivide this wall but whenever I try to subdivide this face the edge I have marked gets subdived for some reason.How can I fix this?


While surfing on YouTube, I stumbled into this  which gave me a new insight about the well-known series  $$ \frac{\pi}{4} = 1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7}+ \ldots $$ The idea shown there consists of counting (in a very clever way) how many points of the 2d integer lattice lie on a generic circumference of radius $\sqrt{r}, r \in \mathbb{N}$, centered at the origin. Then, we name $N(R)$ the number of points of this kind that lie inside the circumference of radius $\sqrt{R}$: as $R$ grows, we can think of $N(R)$ as a fairly good approximation of the area $\pi R$ of the circle, since each of the $N(R)$ points can be thought as the center of a square of area $1$. From the equality $\pi R = N(R)$ we get the series above.  I was fairly amazed by the way this result was obtained, and I started wondering: what if we used the hexagonal lattice (I mean $\mathbb{Z} \times \zeta_3\mathbb{Z}$, where $\zeta_3$ is a non-trivial third root of unity) instead of the integer lattice? Will I get another series to approximate $\pi$?  After some work, following the same kind of argument, I came to this formula: $$ \frac{\pi}{3} = \sqrt{3} \left (1 - \frac{1}{2} + \frac{1}{4} - \frac{1}{5} + \frac{1}{7} - \frac{1}{8} + \ldots \right )  $$ or equivalently  $$ \frac{\pi}{3} = \sum_{k=0}^\infty \frac{\sqrt{3}}{9k^2+9k+2} $$ I have some questions:   Can anyone give me a proof of this result which does not follow the argument I sketched above? I checked by doing some simple calculations (I also asked Wolfram) and the result seems to hold, but I'd like to be 100% sure...  The $\frac{\pi}{4}$ formula relates to the expansion of $\arctan(x)$, but I couldn't find any straightforward connection between the $\frac{\pi}{3}$ formula and $\arctan(x)$. I actually couldn't find any connection to the "pi facts" I know or I was able to find. Do anybody know anything that can explain "easily" what's happening here?   Thanks in advance!


Classical action as $S$-matrix generating functional at the tree-level

I have seen repeated statements that the $S$-matrix generating functional at the tree-level is the same as the action calculated on the classical solutions of the equation of motion corresponding to this action. But I don't understand this statement. At least then, that the $S$-matrix generating functional takes into account the law of conservation of momentum. Is it possible to somehow rigorously prove this statement? References:  "Introduction to functional methods" Faddeev.  formula (9)


HashMap - not returning correct value for equal keys

I'm playing around with HashMaps in Java and I've stumbled upon something that I can't make sense of. I can't seem to find a duplicate of my issue on here either.  I'm trying to create a Map that has a VertexPair key and an Integer value. The VertexPair is simply a container for 2 Vertex objects. When I create 2 VertexPairs that have the same hash code and are equal (verified by .equals()), they do not return the same value from my map.   Here is my code:  HashMap<VertexPair, Integer> edges = new HashMap<VertexPair, Integer>();  Vertex a = new Vertex("A"); Vertex b = new Vertex("B");  VertexPair p = new VertexPair(a, b); VertexPair m = new VertexPair(a, b); VertexPair n = new VertexPair(b, a); VertexPair check = new VertexPair(a, new Vertex("C"));  System.out.println(p.equals(m)); System.out.println(p.equals(n)); System.out.println(m.equals(n)); //just to be sure equals is working System.out.println(p.equals(check));  System.out.println(m.hashCode()); System.out.println(n.hashCode()); System.out.println(p.hashCode()); //just to be sure hashCode is working System.out.println(check.hashCode());  edges.put(p, 10);  System.out.println(edges.get(p)); System.out.println(edges.get(m)); System.out.println(edges.get(n));   And it's output:  true true true false 1757285723 1757285723 1757285723 -425440240 10 null null   Here is the VertexPair class as requested:  public final class VertexPair {      private HashSet<Vertex> set;      public VertexPair(Vertex a, Vertex b) {         if(a==null || b==null)             throw new NullPointerException("Vertexes must not be null");         set = new HashSet<Vertex>();         set.add(a);         set.add(b);     }      public HashSet<Vertex> getVertexes() {         return set;     }             @Override     public int hashCode() {         return set.hashCode();     }      public boolean equals(VertexPair p) {         if(!(p instanceof VertexPair))             return false;         if(p==this)             return true;         return set.equals(p.getVertexes());      }   }   Can someone please explain to me what's going on? I must be misunderstanding something crucial about HashMaps. Thanks in advance :)


I have an application foobar for which someone has written a patch to add a feature I like.  How can I use the patch?


Why do people not upvote, or accept answers that worked for them?

I am regular Stack Exchange user, especially at Stack Overflow.  One of the things I really dislike about new and sometimes veteran users is that:   Either they do not accept an answer that works for them, Or they accept the answer but do not vote it up   I mean they can really both accept the answer and vote it up but somehow they wouldn't =(.  How many of you feel the same way?


Is there any way, we can filter FeedItems by Community in SOQL? Currently, it doesn't support filtering by NetworkScope


Saving Java program to a runnable format

I have finished making my Java program with a Swing GUI in NetBeans and have built, cleaned and run it error free. However, now I am looking to save it as a runnable format, I seem to be missing the trick. I have spent hours searching and have tried the following aside from all of the dead ends or years old questions that as since not applicable:  Opened the program in Eclipse and exported a runnable .jar file Run "Build and Clean" in NetBeans to generate the "snapshot" .jar file I have tried running both of these .jar files from both command line and elevated command line with varying errors.  I have a feeling it has to do with my pom.xml file, but as I said I cannot find anything or I am missing the point entirely. This is my pom.xml file: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">     <modelVersion>4.0.0</modelVersion>     <groupId>com.OETrackerV0</groupId>     <artifactId>OETrackerV0</artifactId>     <version>1.0-SNAPSHOT</version>     <packaging>jar</packaging>     <dependencies>         <dependency>             <groupId>org.apache.poi</groupId>             <artifactId>poi</artifactId>             <version>5.0.0</version>             <type>jar</type>         </dependency>         <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->         <dependency>             <groupId>org.apache.poi</groupId>             <artifactId>poi-ooxml</artifactId>             <version>5.0.0</version>         </dependency>         <dependency>             <groupId>com.formdev</groupId>             <artifactId>flatlaf</artifactId>             <version>1.1</version>             <type>jar</type>         </dependency>     </dependencies>     <build>         <plugins>             <plugin>                 <!-- Build an executable JAR -->                 <groupId>org.apache.maven.plugins</groupId>                 <artifactId>maven-jar-plugin</artifactId>                 <version>3.1.0</version>                 <configuration>                     <archive>                         <manifest>                             <addClasspath>true</addClasspath>                             <classpathPrefix>lib/</classpathPrefix>                             <mainClass>frameOne</mainClass>                         </manifest>                     </archive>                 </configuration>             </plugin>         </plugins>     </build>     <properties>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>         <maven.compiler.source>15</maven.compiler.source>         <maven.compiler.target>15</maven.compiler.target>     </properties> </project>  I'm happy to edit and post the rest of the code if necessary, it is also on my GitHub here:


How to receive a regular email listing all Twitter mentions of a specific word or keyword?

Searching Twitter for mentions of a word or multiple words can be a chore. Is there something that can be set up in Twitter that will email me a digest of search terms?   Or do I have to look for some kind of third-party service that provides daily or weekly emails featuring all mentions of a specific word or hashtag?


I have an array of [1,2,3]  I want to make all the possible combinations using all elements of the array:  Result:  [[1], [2], [3]] [[1,2], [3]] [[1], [2,3]] [[1,3], [2]] [[1,2,3]]


Interesting piece of math for high school students?

I'm giving an hour long lecture to high school math students with a fairly high aptitude in math. I want to present something a little advanced for them (undergrad level) that they have to struggle with. So I want to be able to present a fact and prove it, or present an interesting theory in a single standalone hour long lecture. Any ideas as to what I should speak on?


How can I capture KeyDown event on a WPF Page or UserControl object?

I have a Page with a UserControl on it.  If the user presses Esc while anywhere on Page I want to handle.  I thought this would be as easy as hooking up the PreviewKeyDown event, testing for the Esc key, and then handling it.  However, when I placed I breakpoint in the event handler I found it was never getting called.  I thought perhaps the UserControl might be getting hit, so I tried PreviewKeyDown there... same result.  Does anyone know the proper place to test for a KeyDown or PreviewKeyDown on a Page object?


How can I display keystrokes while recording my screen?

I'm trying to record a video tutorial about using Keyboard Shortcuts. To do this, I want to record my screen while also visually displaying my keyboard inputs.    I've been able to find OBS options for "Capture mouse cursor" and "Inverse cursor on click", but I haven't been able to find anything related to displaying keystrokes.    I've considered using , but it doesn't seem to have an option for visually displaying keyboard input. (It also isn't available for Windows 7, which is what my main laptop is using.)  How can I visually display keystrokes while recording my computer screen?


Proof that Pi is constant (the same for all circles), without using limits

Is there a proof that the ratio of a circle's diameter and the circumference is the same for all circles, that doesn't involve some kind of limiting process, e.g. a direct geometrical proof?


PHP - Can you use prepared statements with a * and ORDER BY?

Can you use prepared statements with a * and ORDER BY?  Because I can't figure out how to do it. I've been trying for awhile now. I've looked at a few other threads but haven't found out how. If not, how could I go about getting a mysqli query like this and prevent sql-injection?  Would appreciate any ideas or critiques.  Thanks, Matt  <?php     require ($_SERVER['DOCUMENT_ROOT'].'/db-connect.php');     $conn = new mysqli($servername, $username, $password, $dbname);     if ($conn->connect_error) {                     die("Connection failed: " . $conn->connect_error);     }      if ($stmt = $conn->prepare("SELECT * FROM websites ORDER BY ? DESC LIMIT 1")){     $id = 'id';      $stmt->bind_param('s',$id);      $stmt->execute();      $stmt->store_result();      $result = $stmt->get_result();      $row = $result->fetch_assoc();      echo $row['title'];       $stmt->free_result();      $stmt->close();      }  $conn->close();  ?>


In US legal practice, we often refer to numbered items:  Interrogatory No. 1, Request for Admission No. 3, U.S. Patent No. 5,555,555.  What part of the item should be pluralized?  That is, should one write "Questions No. 1, 2, and 3" or "Question Nos. 1, 2, and 3?"  My preference is the former, because it is the questions that are of interest, not the numbers.  One can imagine a scenario in which the numbers are of interest.  E.g., "The question numbers 1 and 2 are written in arabic format, but question numbers 3 and 4 are written as roman numerals."  But in the usual case, what the author is concerned about is the item, not the number: "Questions number 1-4 have concise answers, but questions number 5-6 may be rhetorical."  I acknowledge that the issue can be avoided by simply omitting "number(s)" and writing "Questions 1-4" or "Patents 5,555,555 and 5,555,556."  But where's the fun in that?  Does anyone have a compelling or definitive answer?


What comand should I use to fork used in math

When doing practical math, you often fork your calculation due to some conditions, eg. when doing equations with absolute value. There is a symbol for this, and I wonder if mathJax can render this one or not. And if it can, I'd like to know the command.  Here is an image of what I mean:


salesforce translations - referencing quote status picklist in aura component via $Label

We have added custom quote status picklist values and translated them. I can see the german equivalent of these in Translation Workbench > Translate. How can I refer them in the .cmp file? If it is a label, I am referencing as - {!$Label.c.LBL_XXXXX}, how do I reference a picklist value as I don't see them under custom labels? Right now, I reference for a quote as -  {!v.quote.Status}, but obviously will only get the english equivalent. Please advise.


Prove that for all $x$, $x \ne P(x)$, where $P(x)$ is the power set of $x$   My idea to solve this:  Let's suppose that there exists a set which is in the same time its own power set. Then, by the axiom of extentionality: $x \in P(x) \iff x \in x $.  We know from definition of the power set that $x \in P(x) $, which entails that $x \in x$, which is a contradiction (Russel).  Is it a correct way to solve this problem? If so, is it possible to solve this without using the axiom of regularity?


Is $f(x)=\ln(x)$ uniformly continuous on $(1,+\infty)$? If so, how to show it?  I know how to show that it is not uniformly continuous on $(0,1)$, by taking $x=\frac{1}{\exp(n)}$ and $y = \frac{1}{\exp(n+1)}$.  Also, on which interval does $\ln(x)$ satisfy the Lipschitz condition?


Pokemon Go: Power up a low CP Venusaur or wait to evolve a high CP Bulbasaur?

I woke up very early in the morning today to try and be more productive, and when I checked my phone there was a Venusaur nearby! I didn't hesitate to go outside and find him. I was a little disappointed when I did. He had 32 CP (sigh).   I have 4 more Bulbasaurs, my strongest with a 299 CP. Is powering up my Venusaur or waiting to find more Bulbasaurs to evolve the strongest one the ideal choice?   (I'm having a hard time finding Bulbasaurs) :/ By the way, I'm level 13


Proving $\int_\mathbb R\frac{\sin(x)}{x}dx = \pi$ using the residue theorem

I've been searching the web for a way to prove that $\int^{\infty}_{-\infty}{\sin(x)/x} = \pi$ with complex analysis, because I have a problem of consistency.  I found two, carried in the following link : . But then I wanted to find it by using the fact that :  $\sin(x)/x = \text{Im}(e^{ix}/x)$  To do so, I shifted the integration by $-i$ in the complex plane, showing that the integral on $[-\infty , \infty]$ is equal to the one on $[-\infty -i, \infty -i]$, since the integrand vanish on the vertical borders of the rectangle when we tend to infinity. I did this to get rid of the pole on the contour of integration.  Then, by using the residues theorem on the contour $C_1 : z = y-i, y \in [-R,R]$ and $C_2 : z = Re^{it}-i, t \in [0,\pi]$. Given the integral on $C_2$ vanishes, we have then that :  $\int^{\infty}_{-\infty}{\sin(x)/x} = \text{Im}(\int^{\infty}_{-\infty}{e^{ix}/x}) = \text{Im}(2\pi i\,\text{Res}(e^{iz}/z, 0)) = 2 \pi$  Which gives me the answer with a factor of $2$. I don't understand were did I go wrong ? I think it has something to do with the fact that I take the imaginary part of the integral, but I don't really know... Can someone spot my mistake ?  If needed, I can provide further detail on my calculations.


Why can we act like functions are totally ordered by their orders?

For simplicity, consider only functions from $\Bbb N$ to $\Bbb R^{>0}$. Let $f\preceq g$ if there is an $A>0$ such that for all sufficiently large $n$, $f(n)\le A g(n)$. We normally would write this $f\in O(g)$, but I want to emphasize the order properties in this post.  This is a preorder on the space of functions, so we can quotient out by the equivalence class $f\sim g\iff (f\preceq g)\land (f\succeq g)$ to get a partial order. It is also a lattice, with $f\lor g\sim \max(f,g)\sim f+g$. It even has an abelian group structure (multiplication of functions) that respects the order, with $f\preceq g\iff f/g\preceq 1$.  But it is not a total order; any function both unbounded above and below, such as $f(n)=\begin{cases}n&n\mbox{ even}\\1/n&n\mbox{ odd}\end{cases}$, is incomparable to $1$. In fact, this kind of "oscillation" between different orders is necessary for incomparability to occur, although it may still occur in monotonic functions, simply by multiplying by a sufficiently fast-growing function, such as $n^{2n}$ (that is, $n^{2n}$ is incomparable with $n^{2n}f(n)$ even though $n^{2n}f(n)$ is monotonic).  My question is, why is it that we can basically ignore this fact completely when discussing orders of common functions? Given an arbitrary function, we seem to have some method for choosing "simpler" functions which are drawn from some chain $S$. So for example the function $f(n)$ above would generally only be compared as $1/n\preceq f\preceq n$, where $1/n$ and $n$ are members of this $S$.  But what is $S$? Desirable properties for $S$:   $S$ is a chain, i.e. $f\preceq g$ or $f\succeq g$ when $f,g\in S$ $n\in S$ $S$ is a subgroup and a sublattice, i.e. $f,g\in S\implies f/g,f+g\in S$ $S$ is closed under $\log$ $S$ is closed under $\exp$ (note: $\exp$ is not well-defined on equivalence classes)   Does such an $S$ satisfying the properties actually exist? The toughest restriction is (5); most of the others play well with the total order constraint. I think this covers all the functions I have seen in an asymptotic expression, not counting multivariate expressions like $O(mn)$ or composite expressions like $e^{n^2+O(n)}$. Exceptions include $\log^*(n)$ and fast growing functions like the Ackermann function.


Ubuntu store always not loading in ubuntu 20.04, why is that?

I recently installed Ubuntu 20.04 in 'Dual boot mode' alongside W10. Internet connectivity is working as usual/expected within browser and terminal while browsing as well as downloading or upgrading packages, with exception to 'Ubuntu Software' store from the day of installation it is not working as expected! Update: I am using a VPN connection in my machine, does it have any relation with this? Any comments/suggestions please? It always shows a loading scree(black screen with 3 dots) i guess,  After many hours also, it shows the same. If I tried to search for any particular app, at times only it shows the result most of the time it shows only the spinner icon


A word similar to "Donate" but more freely provided to

Are there any other words similar to these words:  Award, Bestow, Donate, Grant, Give, Provide, Tax  ...that give a meaning of:  I freely give to you a portion what I have acquired or earned, without hesitation or expectation of anything in return. You are owed this, without question. There is no emotion involved with this transaction. It just is what it is.  For example: as a member of the Thief's Guild, 20% of everything you acquire will be ______ to the Guild.  Bestowed and Granted are very close...  Any other ideas?


What might I use to show that an entire function with positive real parts is constant?

So the question asks me to prove that an entire function with positive real parts is constant, and I was thinking that this might somehow be related to showing an entire bounded function is constant (Liouville's theorem), but are there any other theorems that might help me prove this fact?


Can users of a suitable reputation be allowed to add short comments

At a suitable reputation level, please could users be allowed to post short comments?  By suitable level I'm thinking of 7,500 reputation, and by short I mean 8 to 10.  At 7,500 rep, there hasn't been a privilege for a while, and there won't be for a while. On top of that, at that level users will know what is appropriate in a comment and what isn't.  Sometimes (not often) I find myself needing to post a short comment, and I end up adding ...... to it. Not only does it look unprofessional, it can confuse new users as to what the dots are there for.  I suggest 8 to 10 letters, because "Thank you" is 9 characters. I know that comments aren't meant to stick around, but sometimes it doesn't hurt to thank someone who edited in what you suggested - or tell someone that you've edited their suggestion in.


How to make a redstone signal last longer

I want to create a big facility in my minecraft world for storage purposes etc, and i want to make doors that can be opened with a button. But it usually will close in front of my face or last a short time not enough for my friends and me to go through. Is it possible to make a button that would open the doors for maybe 10 seconds? And after the time runs out they would simply close behind us. If the above isn't possible, maybe it's possible to make doors that would open when the player walks close to them, and stay opened until there's no player in sight of the door. Maybe it's possible to do with command blocks OR either mods. If there's a mod for this on 1.16.4 could someone link it here?


Can I begin a turn when there is only 1 card remaining in the player deck?

If my role (let's say the Scientist) has 4 cards of the same color but was not able to get to a research station.  And, let's say a different player (the Operations guy) lands on the same city as the Scientist and in his last action he builds a research facility in that city. The Scientist is now in the city with the research facility, but just as it is now the Scientist's turn, there is only 1 card remaining in the player deck.  Did the team run out of time?  Technically, as the player's turn begins with actions, the Scientist can cure the last disease before having to draw the 2 cards which would result in the game ending--except that the cure had been placed on the board ending the game in a win.  So, can a turn begin when there is only 1 card in the player deck, or must there be 2?


Find the IP address of a VMware ESXi host

I have an IP address of a Guest virtual machine running on an VMware ESXi host. I don't know the IP address of this VMware host.  How can I find the IP address of this VMware host?    I have  software installed on my system.  I can ping the IP of the guest machine and it replies. Thanks.


How to install pip for Python 3.6 on Ubuntu 16.10?

I'd like to start by pointing out that this question may seem like a duplicate, but it isn't. All the questions I saw here on Ask Ubuntu were regarding pip for Python 3 and I'm talking about Python 3.6. The steps used back then don't work for Python 3.6.   I got a clear Ubuntu 16.10 image from the . Run apt-get update Run apt-get install python3.6 Run apt-get install python3-pip Run pip3 install requests bs4 Run python3.6 script.py   Got ModuleNotFoundError below:   Traceback (most recent call last):     File "script.py", line 6, in <module>      import requests  ModuleNotFoundError: No module named 'requests'   Python's and pip's I have in the machine:  python3 python3.5 python3.5m python3.6 python3m python3-config python3.5-config python3.5m-config python3.6m python3m-config    pip pip3 pip3.5


Unable to start midnight commander under Ubuntu. It's a server, where I was using it for a lont time always. Today I logged in and found mc hangs on start.  dims@sagittarius-a:~$ mc   and nothing happens.  Reinstall didn't help.  Removing config  rm -rf .config/mc   didn't help.  Removing global config  sudo rm /etc/mc   and reinstall causes  dims@sagittarius-a:/etc$ mc sfs_init(): Warning: file /etc/mc/sfs.ini not found   i.e. didn't help and config files didn't restored dusring install by some reason.  What else can be tried?  UPDATE  Wow! It just loads long! No less than 60-100 seconds. It appeared while I was writing this. So the question persists: what does it do so long? Calculating mass of proton? How to wean it from this habit?  UPDATE 2  Reinstalling MC doesn't help.  UPDATE 3  Recently I configured my globally the domain name, which I am using as default in my LAN. Now, the commands like  dims@sagittarius-a:~$ host anything anything.MYDOMAIN is an alias for MYDOMAIN. MYDOMAIN has address GLOBAL_IP_OF_MY_SITE_1 MYDOMAIN has address GLOBAL_IP_OF_MY_SITE_2   I , that MC does some DNS lookup on startup and it can slow the process. I would like to understand, what is happening to make my own correct configuration, because answers in that question are incomplete.


Proving $(\alpha + \beta)^{p^n} = \alpha^{p^n} + \beta^{p^n}$ in a finite field

Prove that if $F$ is a field with $p^n$ elements and $\alpha,\beta \in F$, then   $$(\alpha + \beta)^{p^n} = \alpha^{p^n} + \beta^{p^n}$$   From Newton identity, we have that $$(a + b)^n = \sum_{i = 0}^n \binom ni a^i b^{n - i}$$ However, I'm already stuck because in a finite field we cannot necessarily compute the binomial, since we may divide by zero. How do I get around this?  Furthermore, since $F$ has characteristic $p$, isn't it $p^n = 0$? How does it make sense in the first place? I'm a bit confused.


$x^{p-1} + ... + x^2 + x + 1$ is irreducible using Eisenstein's criterion?

Eisenstein's criterion says that for a prime $p$ if the following conditions are satisfied for a primitive polynomial, $f(x)$, then that polynomial is irreducible in $\mathbb{Z}[x]$  $p \mid a_0, a_0, ..., a_{n-1}$   $p \not\mid a_n$  $p^2 \not\mid a_0^2$  Now I am almost certain I read somewhere that this lemma can be used to prove that the polynomial $x^{p-1} + x^{p-2} + ... + x^2 + x + 1$ is irreducible.  All coefficients are $1$ though and we have have an awkward amount of terms, $p - 1$ terms as opposed to $p$ terms - so how can Eisenstein's criterion be applied here?


\LTleft, \LTright, and \scriptsize not working with revtex4

I have the follwing table:     \documentclass[a4paper,preprint,aps,                    unsortedaddress]{revtex4}     \usepackage[top=2.5cm,bottom=2.5cm,                 left=3.5cm,right=2.5cm]{geometry}     \usepackage{longtable,array,booktabs}      \ifdefined\mc        \renewcommand{\mc}{\multicolumn}     \else        \newcommand{\mc}{\multicolumn}     \fi      \begin{document}           \setlength\LTleft{-3.0cm}         \setlength\LTright{-2.0cm}          \scriptsize      \begin{longtable}{ l r @{--} p{1.3cm} >{\centering}p{2.6cm}                         *{5}{p{1.25cm}} p{2.1cm} p{0.7cm} }                    %% headers and footers      \caption{Table} \\      \hline\hline     \endfirsthead      \mc{10}{c}{\tablename\ \thetable\ -- \emph{Continued from previous page}} \\      \hline     aaaaaaaaaaaaaaaaaaaaaaaa & \mc{2}{c}{bbb--ccc} & ddd & eee & fff & ggg & hhh & iii & jjj \\     \hline     \endhead      \hline     \mc{10}{r}{\emph{Continued on next page}} \\     \endfoot      \hline\hline     \endlastfoot      %% body of table          aaaaaaaaaaaaaaaaaaaaaaaa & \mc{2}{c}{bbb--ccc} & ddd & eee & fff & ggg & hhh & iii & jjj \\     aaaaaaaaaaaaaaaaaaaaaaaa & bbb & ccc & ddd & eee & fff & ggg & hhh & iii & jjj \\     aaaaaaaaaaaaaaaaaaaaaaaa & bbb & ccc & ddd & eee & fff & ggg & hhh & iii & jjj \\     aaaaaaaaaaaaaaaaaaaaaaaa & bbb & ccc & ddd & eee & fff & ggg & hhh & iii & jjj \\      \end{longtable}     \end{document}   around which I would like to reduce the left and right margin to 0.5 cm using \setlength\LTleft{-3.0cm} and \setlength\LTright{-2.0cm}. Furthermore, I have to apply \scriptsize for the table. However, none of these commands are working with revtex4. Could you please provide a solution to this problem?


$\lim_{x\to c}f'(x)=L$ implies $f'(c)=L$

Let $f:[a,b]\to\mathbb{R}$ be differentiable on $[a,b]$ and let $c \in(a,b)$. Suppose that $\lim_{x\to c}f'(x)=L$ some $L \in\mathbb{R}$. Without using L'Hospital's Rule, prove that $f'(c)=L$. Hint: Use the Mean Value Theorem and the e-d definition of f'(c).  Any leads would be much appreaciated. Thanks.


Clipping raster with vector boundaries using QGIS

In QGIS I would like to clip a raster precipitation layer using an admin boundary layer that is vector data. However the Geoprocessing tools seem to be usable only for vector data. How can I clip this precipitation layer?


error "grub-mkconfig: You must run this as root"

I am running Ubuntu 16. I got this error every time I try to run the update-grub command.


Air travel using foreign passport with maiden name

My wife recently got her Green Card and we would like to travel from the United States to Thailand and back in a few months.  Her Thai Passport has her maiden name and her Green Card has her married name.  Is that a problem or not? What documentation would she need to enter Thailand, and then to reenter the United States? Would traveling with our marriage certificate be sufficient?  Should plane tickets be purchased under her maiden name or her married name?  Any information, relevant links, or directions would be appreciated.


Problem from Plane Trigonometry (S.L. Loney)

Q. A square tower stands upon a horizontal plane. From a point in this plane, from which three of its upper corners are visible, their angular elevations are respectively are 45 ∘ ,60 ∘ , and 45 ∘. Show that the height of the tower is to the breadth of one of its sides as  √6 ( √5 + 1) to 4. I am not able to imagine the diagram of the situation. Moreover, isn't it that the ratio of height of a square to its breadth is the same as ratio of diagonal to its side i.e. √2/1


I'm a really newbie in Drupal world. I use Plone since 2004 but now I've to learn also Drupal for various reasons.  I'm reading books and tutorials, using this CMS as power user and many more.  Now it's time to go deep and the first thing goal is: theming from scratch. I've notice that PhpTemplate it's not exactly a clean pagetemplate system (for my point of view), while Twig seems very interesting, but I don't understand if Twig could be clearly used in Drupal7 or not.


Why is the factorial of zero, one. What is the mathematical proof behind it?


show that if $f$ is uniformly differentiable then prove that $f'$ is continuous

How would I go about showing that if $f$ is uniformly differentiable then $f'$ is continuous.  my attempt: A differentiable function $f:[a,b]\to \Bbb R$ is said to be uniformly differentiable on $[a,b]$ if $\forall \epsilon>0 \exists \delta>0:\forall x,y\in[a,b]$ we have $$0<|x-y|<\delta\implies |\frac{f(x)-f(y)}{x-y}-f'(y)|<\epsilon$$  I don't know where to go from here, any help would be highly appreciated.


How would you evaluate the following limit as n goes to infinity?  $$\lim \frac {1}{(1+\frac {1}{n})^n}$$  I would of thought that this would evaluated to be,  $$\lim \frac {1}{(1)^n} = 0 $$  However the correct answer is $$\frac{1}{e}$$


I have installed Ubuntu 14.04 LTS . During installation on my Windows PC using VMWARE Player, it asked a username and I provided one. But now after successful installation, I also want to login as the root user. But unfortunately I don't know how to retrieve the root password or change it.  How can I log in as the root user?


What should be the output of the Java code and why?

In Java, non-primitive data types are passed by reference. So, this means whatever change is made to that object will be global. In the code below, a Test object is passed to a static function changeValue() to change the value of its attribute. So, from my knowledge the object is passed by reference, so the output should be:  test1 : Fuzzy   test2 : Billboard  But, the output is:  test1 : Fuzzy   test2 : Wuzzy  What am I missing here? class Test {         private String value; // instance variable          public void setValue(String value) { // setter function         this.value = value;     }          public String getValue() { // getter function         return value;     }          public static void changeValue(Test test, String value) { //Function to change the value of an object         test = new Test();         test.setValue(value);     }          public static void main(String args[]) {         // Object creation         Test test1 = new Test();         Test test2 = new Test();                  // Setting value         test1.setValue("Fuzzy");         test2.setValue("Wuzzy");                  // Changing value of test2         Test.changeValue(test2, "Billboard");                  // Printing values of the objects         System.out.println("test1 : " + test1.getValue());         System.out.println("test2 : " + test2.getValue());     }  }


Subsurface scattering always gives red glow

I am trying to create a wax type material with subsurface scattering for a set of hands but whatever I do, the scattering produces a red glow (see attached image), making the wax hands look like actual (weirdly white) hands. Is this physically correct or did I make a mistake somewhere? I tried adjusting the SSS color, background color, and light color, none of these got rid of the red tint. Turning SSS off completely does make it go away. I am using Blender 2.92  Thank you for your help!


exam/wrapfigure: Text doesn't wrap around the figure

For the following MWE, why is the first image overlayed with the text when using \lipsum instead of pasting dummy text?   And how to fix the other two images to be placed properly next to their respective texts?    \documentclass{exam} \usepackage{adjustbox,wrapfig,lipsum}  \newenvironment{mywrapfigure} {%     \setlength{\columnsep}{15pt}%     \wrapfloat{figure}% } {\endwrapfloat}  \begin{document}      \begin{mywrapfigure}{r}{0.3\linewidth}         \centering         \includegraphics[width=\linewidth]{example-image-a}     \end{mywrapfigure}      \lipsum[1]      \bigskip     \begin{questions}         \question          \begin{mywrapfigure}{r}{0.3\linewidth}             \includegraphics[width=\linewidth]{example-image-b}         \end{mywrapfigure}          \lipsum[1]          \bigskip         \begin{parts}              \part[4]              \begin{mywrapfigure}{r}{0.3\linewidth}                 \includegraphics[width=\linewidth]{example-image-c}             \end{mywrapfigure}              \lipsum[1]          \end{parts}      \end{questions} \end{document}


$\forall (x_n),(y_n)\ge0$,pf:  $$(x_1\cdot...\cdot x_n)^{1/n}+(y_1\cdot...\cdot y_n)^{1/n}\le((x_1+y_1)\cdot...\cdot (x_n+y_n))^{1/n}$$  I've turned it into: $$log(1+(z_1\cdot...\cdot z_n)^{1/n})\le\dfrac1 n\sum_{k=1}^{n} log(1+z_k)$$  Look like the average of a function with the function over an average now, but it's not convex...  Could someone give a simple proof to this inequality(even without Jensen's) :)  Thanks~


Create enum while running an application

I have created Enum like this:So I want to add another enum while my application is running eg:"BLOCKED"..Please Help.  public enum LoginStatus {  LOGGEDIN("LOGGEDIN", "Loggedin"),  LOGOUT("LOGOUT", "Logout");  private final String value; private final String description;  LoginStatus(String value, String description) {     this.value = value;     this.description = description; }   public String value() {     return this.value; }   public String getReasonPhrase() {     return this.description; }  @Override public String toString() {     return this.value; } }


How do I set a hard minimum margin size with the tufte-book document class?

I'm trying to typeset my thesis with the tufte-book document class, and I'm having an issue with the margins. There is a rule (beyond my control) that all my text and figures must remain within margins that are at least 1 inch wide. I quite like the style of putting figures and notes in the margin (that's why I'm using the tufte-book class), but when I place things in the large margin on the right, they are liable to end up less than one inch from the edge of the page. Is there a way to force a minimum "real margin" that even margin notes and figures won't intrude on?


Travelling to the US with codeine-based medicines

I'm travelling to the US next month, and I'd like to take my codeine-based painkillers with me. In the UK these are available without a prescription,  from a pharmacist. (It isn't just available in any old supermarket like some painkillers, but can just be sold in a pharmacy under supervision from the pharmacist, no Doctor involved)  I see from  that prescription medication must have a prescription label attached, but presumably this applies to medicines that are only available on prescription in the US.  So my question is twofold:   Can I bring my codeine-based painkillers to the US without a prescription? More generally, is there a list of medicines that are commonly available in other parts of the world but restricted in the US?


How to make a text file read-only in a non-rooted device?

I wanted to make a file read-only (440)in internal storage but it shows "failed",as it seemingly requires root permission but I can't unlock bootloader as of now so is there any means we can do the above task?


How do I pass a reference to a two-dimensional array to a function?

I am trying to pass a reference to a two-dimensional array to a function in C++. I know the size of both dimensions at compile time. Here is what I have right now:  const int board_width = 80; const int board_height = 80; void do_something(int[board_width][board_height]& array);  //function prototype   But this doesn't work. I get this error from g++:  error: expected ‘,’ or ‘...’ before ‘*’ token   What does this error mean, and how can I fix it?


How to add a default item to a custom taxonomy?

Wordpress default taxonomy (Categories) has the item Uncategorized by default. How to add a default item to a new custom taxonomy?  functions.php:  // === CUSTOM TAXONOMIES === // function my_custom_taxonomies() {     register_taxonomy(         'block',        // internal name = machine-readable taxonomy name         'static_content',       // object type = post, page, link, or custom post-type         array(             'hierarchical' => true,             'labels' => array(                 'name' => __( 'Blocks' ),                 'singular_name' => __( 'Block' ),                 'add_new_item' => 'Add New Block',                 'edit_item' => 'Edit Block',                 'new_item' => 'New Block',                 'search_items' => 'Search Block',                 'not_found' => 'No Block found',                 'not_found_in_trash' => 'No Block found in trash',             ),             'query_var' => true,    // enable taxonomy-specific querying             'rewrite' => array( 'slug' => 'block' ),    // pretty permalinks for your taxonomy?         )     ); } add_action('init', 'my_custom_taxonomies', 0);   EDIT: I just want to have the taxonomy item there when the theme is installed. It doesn't have to automatically be added to any empty term.


How to draft a recommendation letter for myself after professor asked me to do so

I asked a professor I have been working for about a year to write a recommendation letter for graduate school. She agreed but says she usually ask students to write for themselves and she will do some editions on it.  I was supposed to ask her for a template at that time... And now I have no idea how to draft one for myself. Anybody has any advice?


Finding the position of words in a string

My Task  I am trying to find the position of words appearing in a string using regex  Code  import re  # A random string  mystr = "there not what is jake can do for you ask what you play do for spare jake".upper()   match = re.search(r"[^a-zA-Z](jake)[^a-zA-Z]", mystr)  print match.start(1)   Output  18   Expected output  I would expect my output to contain the positions of the string jake:  5, 17   EDIT:  To clarify, I'm trying to identify the position of words. I believe what I have done is found the index and am unsure how to make it work as I expect


Why does Raster Calculator (RasterCalculator_sa) give ERROR 000539 in ArcPy?

I am getting a not executed error for a raster calculator.   Here is part of the output:     File "C:\projectTemp\FloodAnalysis\floodxsectionanalysis.py", line   107, in makeSeemless            arcpy.gp.RasterCalculator_sa(Con(IsNull(rasterIn), FocalStatistics(rasterIn,NbrRectangle(3, 3), "MEAN"), rasterIn),   "{0}yrSeemless.img".format(increment))   File "C:\Program Files   (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\geoprocessing_base.py", line   498, in        return lambda *args: val(*gp_fixargs(args, True)) arcgisscripting.ExecuteError: ERROR 000539: Parsing error SyntaxError:   invalid syntax (line 5) Failed to execute (RasterCalculator).   This code I have setup to put into this calculator is:  def makeSeemless(outputPath, increment, rasterIn):     arcpy.gp.RasterCalculator_sa(Con(IsNull(rasterIn), FocalStatistics(rasterIn,NbrRectangle(3, 3), "MEAN"), rasterIn), "{0}yrSeemless.img".format(increment))


Pair Bose QuietComfort 35 with Ubuntu over Bluetooth

In System Settings > Bluetooth, the Bose QC 35 is visible when searching for devices but pairing fails.  After multiple attempts and playing with the PIN options I managed to pair it but once selected in System Settings > Sound, it would fail and fall back to Built-in Audio or playback some garbled sound.


Does the iPad setup wizard require a home button in iOS 10?

I'm about to factory reset an iPad with a broken home button. I've been using AssistiveTouch in place of the button.  In iOS 10, unlocking requires the home button, so I have to use AssistiveTouch every time I turn the iPad on. My question is—if I factory reset it, is there a part of the iOS 10 setup screen that requires the home button to proceed? If I reset, AssistiveTouch will not be enabled and I won't be able to enable it until the iPad is finished being set up. This could make the device unusable.


How to tail multiple files using tail -0f in Linux/AIX

I tried tailing two files using the option:  tail -0f file1.log -0f file2.log   In Linux I see an error "tail : can process only one file at a time".  In AIX I see the error as "Invalid options".  This works fine when I use:  tail -f file1 -f file 2   in Linux but not in AIX.  I want to be able to tail multiple files using -0f or -f in AIX/Linux  multitail is not recognized in either of these OS.