Can you Wish for a Glyph of Warding with an 8th Level Spell?

If you have access to Wish, you can use this spell is to duplicate any other spell of 8th level or lower. You don't need to meet any requirements in that spell, including costly Components. The spell simply takes effect. And Glyph of Warding specifies that you can store a prepared spell of 3rd Level(8th level for up cast) or lower in the glyph by casting it as part of creating the glyph. Does Wish simply allow you to duplicate the full effect of both the spell of Glyph of Warding as well as the spell you would have prepared, or as per using Wish to create a glyph, would you be left with a Glyph of Warding that has no spell stored in it? I have yet to find any mention of the interaction between these two spells other than storing Wish into a glyph, no where have I seen mentioned the question of if you can Wish for a Glyph of Warding pre-loaded with something like Simulacrum. Alternatively, would it work, but just end up requiring you to spend the 12 hours casting time to load Simulacrum in the Glyph and still require you to have it under your prepared spell list?


Specify ICU collations as `ENCODING`, `LC_COLLATE`, and `LC_CTYPE` in Postgres 10

Postgres 10 gains the ability to use  collations rather than depending on host OS implementations. See  by Peter Eisentraut. So how exactly does one specify an ICU collation when creating the database? I did read a tip in the CREATE DATABASE to use template0 rather than template1 if template1 might have been created using encoding and collation other than what you want for your new database. And when using template0, you need to enable data connections to override the default. And I read in Postgres 10 doc page for  that:  und-x-icu (for “undefined”) ICU “root” collation. Use this to get a reasonable language-agnostic sort order.  So it seems und-x-icu might be a good value to use when establishing a new database that will include multi-lingual text. When a certain language is known to focus on a particular language, the SELECT command can specify another collation such as German de-x-icu. Otherwise, fallback to the default of und-x-icu. So I tried the following SQL to create a database in Postgres 10 Beta 2. CREATE DATABASE timepiece_ TEMPLATE 'template0' ALLOW_CONNECTIONS TRUE CONNECTION LIMIT -1 ENCODING 'UTF8' LC_COLLATE 'und-x-icu' LC_CTYPE 'und-x-icu' ;  Fails with an error:  [42809] ERROR: invalid locale name: "und-x-icu"  So I stuck on an appended .utf8 as seen in the doc for the old-fashioned collation syntax. CREATE DATABASE timepiece_ TEMPLATE 'template0' ALLOW_CONNECTIONS TRUE CONNECTION LIMIT -1 ENCODING 'UTF8' LC_COLLATE 'und-x-icu.utf8' LC_CTYPE 'und-x-icu.utf8' ;  Fails just the same:  [42809] ERROR: invalid locale name: "und-x-icu.utf8"  Was my Postgres cluster built with ICU libraries? Here is the result of calling . The last line is 'ICU_LIBS=-L/opt/local/Current/lib -licuuc -licudata -licui18n'. I guess that means my build includes the ICU libraries but I am not sure.  /Library/PostgreSQL/10Beta2/bin/pg_config --configure '--with-icu' '--prefix=/mnt/hgfs/pginstaller.pune/server/staging_cache/osx' '--with-ldap' '--with-openssl' '--with-perl' '--with-python' '--with-tcl' '--with-bonjour' '--with-pam' '--enable-thread-safety' '--with-libxml' '--with-uuid=e2fs' '--with-includes=/opt/local/Current/include/libxml2:/opt/local/Current/include:/opt/local/Current/include/security' '--docdir=/mnt/hgfs/pginstaller.pune/server/staging_cache/osx/doc/postgresql' '--with-libxslt' '--with-libedit-preferred' '--with-gssapi' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -arch i386 -arch x86_64 -O2' 'LDFLAGS=-L/opt/local/Current/lib' 'ICU_CFLAGS=-I/opt/local/Current/include' 'ICU_LIBS=-L/opt/local/Current/lib -licuuc -licudata -licui18n'  ➠ How does one specify the ENCODING, LC_COLLATE, and LC_TYPE to use the new ICU collations? ➠ What ICU collation names you would suggest for English-oriented databases? For Western European multi-lingual databases? ➠ What are the possible ICU collation names?


Removing Punctuation From A List Of Words Python

So I have a list of words where I want to remove all punctuation. Here is my code  def removePunctuation(words):     return set([s.translate(None, string.punctuation) for s in words])  wordsStripped = removePunctuation(words)   I am getting the following error     TypeError: translate() takes exactly one argument (2 given)   I've veen trying a few different ways to do this but with no luck, there's surely an easier way to do this? I'm new to python so excuse me if this is a bad question, any help would be greatly appreciated.


Is it possible to prove that the universe either is or isn't a simulation?

Can it be philosophically proven that the Universe either is or is not a simulation? If someone was in a simulation, could they tell? What would the differences be between a simulated universe and a "real" universe?


What is this kind of graph called? (2D grid with a color-coded scale for a 3rd variable)

I keep running into these nice pictures:    But I have no idea what they are called!


How to align arrows with the center of nodes in tikz?

I have the following tikz picture in my tex document:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,arrows.meta,shapes.misc} \usepackage{xifthen} \begin{document} \begin{center} \begin{tikzpicture}[>={Stealth[inset=0pt,length=8pt,angle'=28,round]}]   \def \n {8}   \def \radius {2cm}   \def \margin {8} % margin in angles, depends on the radius   \def\inittimes{{"1", "8", "3", "2", "6", "5", "7", "4"    }}%   \tikzset{cross/.style={cross out, draw,             minimum size=2*(#1-\pgflinewidth),             inner sep=0pt, outer sep=0pt, thick}, cross/.default={6.5}}   \foreach \s in {1,...,\n}   {     \pgfmathsetmacro\l{\inittimes[\s - 1]}     \ifthenelse{\s = 3}{ \pgfmathsetmacro\fcolor{"lightgray"}}{ \pgfmathsetmacro\fcolor{"white"}}     \node[draw, circle, fill=\fcolor ] (n\l) at ({360/\n * (\s - 1) + 90 }:\radius) {$\l$} ;     \ifthenelse{\l = 5 \OR \l = 8}{\draw ({360/\n * (\s - 1) + 90 }:\radius) node[cross] {}}{};   }   \foreach \d in {4,...,\n}   {     \ifthenelse{\d = 5 \OR \d = 8}{}{       \pgfmathsetmacro\l{\d + 1]}       \foreach \k in {\l,...,8}        {         \draw[->]            (n\d) edge node[fill=none,draw=none]{\tiny election} (n\k);       }     };   } \end{tikzpicture} \end{center} \end{document}   Which is rendered like this:    The problem is that the incoming arrows at nodes 5 and 7 don't align  nicely with center of the nodes, but are off-center.  Is it possible to fine-tune the arriving positions of the arrows, so they look like they point to center?


How to prove those "curious identities"?

How to prove $$ \prod_{k=1}^{n-1} \sin\left(\frac{k\pi}{n}\right) = \frac{n}{2^{n-1}}$$ and $$ \prod_{k=1}^{n-1} \cos\left(\frac{k\pi}{n}\right) = \frac{\sin(\pi n/2)}{2^{n-1}}$$


In a second countable space any base has a countable subset that is still a base

If the topology of a space  has a countable base, then each base contains a countable subfamily which is also a base.


Ability to change close reason before it gets closed

Was voting to close a question as 'Not a real question', but my mouse slipped to 'Blatantly Offensive'. Would it be possible to have some means of changing my close reason, before the related question gets closed?


java: change hashmap values to another value

I have a map like this.  HashMap<String, Integer> map = new HashMap<String, Integer>(); map.put("sun",0); map.put("Sunday",0); map.put("sund",0); map.put("Mon", 1); map.put("Tues", 2); map.put("Wed", 3);   I want to change the entries having the value 0 to new value 7.ie, something like this:  map.put("sun",7); map.put("Sunday",7); map.put("sund",7);   How can i do this ??  Thanks


What are the SEO benefits and risks of republishing content to other sites?

I have a website suppose example.com, I published an article on my website's blog a week ago. During this time, I promote my post to various social media platform like Facebook, Twitter, G+, LinkedIn, etc.  After 7 days, I republish my same post with a different title in medium.com, storify.com, linkedin.com. Does it hurt my SEO by creating duplicate content to other sites?


Show that $S=\mathbb{R}\setminus \left \{-1 \right \}$ is abelian.

Can someone please give me a hint on how to solve this?     Let $S=\mathbb{R}\setminus \left \{ -1  \right \}$ and define a binary operation on $S$ by $a\circ b=a+b+ab$. Prove that $(S,\circ)$ is an abelian group.   I cannot just say $a\circ b=a+b+ab=b+a+ba=b\circ a$, so what should I do?


Where to get a codec pack for Ubuntu 13.04?

How to download and install a codec pack, like K-Lite Codec Pack for Windows, for Ubuntu 13.04 and from where? I'm new to Ubuntu and not a developer.


Can string theory explain why the charge of the positron and of the proton are equal?

There is not much more to elaborate. Can string theory say why electrons and protons have exactly opposite charge? And thus why hydrogen atoms are neutral? I guess that the answer is no, because nobody has yet deduced the standard model from strings.  The standard model does not answer the question: it just uses and requires the equality of charges for consistency reasons. (The "answers" to the similar question in the forum about the standard model show this clearly.) But standard model does not really explain the equality: why do two completely different particles have the same electric charge?  This said, does any other theory explain why the charges are equal?  Alternatively: why is the electromagnetic coupling of protons the same as the electromagnetic coupling of electrons?


Classes that use other classes (as members, or as arguments to methods) need instances that behave properly for unit test. If you have these classes available and they introduce no additional dependencies, isn't it better to use the real thing instead of a mock?


Who is this person at the edge of Fangorn?

In Lord of the Rings The Two Towers Aragorn, Gimli and Legolas rests at night beside the forest of Fangorn. There they sees an old man in white. Afterwards their horses also left them. Gimli then suspects that it is Saruman.   So who was he? I don't remember clearly but I think that Gandalf denied that it was him. Is it made clear anywhere who he is?


In math mode, TeX assumes "hidden multiplication" (so that two variable names put nearby have invisible multiplication between), so that, AFAICT, expressions like $ABC$ are rendered with small distances between letters. Now, what to do if I have a two-letter variable name, like for instance TP or FN (true positive or false negative)? Leave as they are? Put them in \text? Yet in the first option they will look like T*P or F*N and in the second one they will differentiate from one-letter symbols.  In optics, the 2-letter variable NA is used for numerical aperture.


Multicolumn overrides desired table alignment

I have seen some related questions but I could not find a minimal reproducible example that helps in my basic case.  Let us say I have a simple table with a multicolumn. The code is as follows  \documentclass[a4paper]{article}  \begin{document} \begin{table}  \begin{tabular}{| c |  c |} \multicolumn{2}{|c|}{Header text}\\ A & B\\ C & D\\ \end{tabular}  \end{table} \end{document}   and this is the output    I would expect A, B, C, D to be horizontally centered, but they are not. What is the simplest way to achieve this?


What is the moment of inertia of a cylinder about a skew axis?

Suppose that there is a cylinder of uniform density with radius  $ r $ , height  $ h $ and mass $M$.  An axis  $ \ell $  is chosen through its geometric center making an angle  $ \theta $  with the horizontal.  What is the cylinder's moment of inertia about $\ell$?  Is it possible to do this by using the rotation of axes formulae?


How to Migrate Physical 12.04 Machine into LXC

Is there a standard way (or standard tools) to migrate physical machines into LXC containers for Ubuntu? I'm working with 12.04.5 machines. I have come across      But it is specifically for debian. The procedure seems to be   copy root file system delete unneeded files configure container   It seems like an easy process but I am totally new to LXC and hoping for something a little less error prone. Another idea I had was to create an ubuntu container from a template and then copy over that file system. I bet plenty of /etc would be wrongfully clobbered though.


Proving that $f(x+y) = f(x)+f(y) $ and $f(xy) = f(x)f(y)$ imply $f(x) = 0$ or $f(x) = x$

Question: If $f$ is a function such that $$f(x+y) = f(x)+f(y) \qquad f(xy) = f(x)f(y)$$ for all $x$, then prove that $f(x) = 0$ or $f(x) = x$ for all $x$. (The fact that every positive number is a square of some number will be important.)  My attempt: I was able to show that this is satisfied for rational $x$ but we cant assume $f$ is continuous so can we prove this for all real $x$? Also, if I'm not mistaken, can I assume that $f(x) \ne 0$ or $f(x) \ne x$ for all $x$ and then prove that $f(x) = x$ or $f(x) = 0$ for all $x$ respectively?


How to open a process from terminal without becoming child process?

If I execute the following command in LXTerminal:  gnome-terminal &   gnome-terminal gets opened. But as soon as I close the LXTerminal, gnome-terminal will be closed as well because it's a child process. Is there any way to open the second process independently?


If someone or some group of people are abusing the @user handles and asking trolling questions. Is there some way to mute the person and prevent notification from the specific user's usage of @ handle to notify me?


google play uses wrong account for in-app purchases

Problem: When trying to purchase in-app items, google play selects the wrong google account and do not allow the user to correct it.  Scenario: I have two google accounts, one private and one business. The private account is the default in google play when buying and installing apps. Though when trying an in-app purchase, the business account is choosen and cannot be changed. In my case, this prohibits me in-app purchases.  Further notes: Uninstalling/reinstalling app to be sure the correct account is used in google play has no affect.  Haven't tried removing the business account and see how it affects the in-app purchases as I'm reluctant to do so. (Other way around would have been better:)  Question: Have you encountered this problem and found a way to resolve/work-around it?


Determinant of a (large) 1554 x 1554 matrix in Python

I need to calculate the determinant of a large 1554,1554 matrix of values with single precision in python. In doing so I encounter a runtime warning:  import numpy as np  from numpy import linalg as LA  a = np.random.random((1554, 1554))  b = np.random.random((1554, 1554))  c = np.dot(a,b)  det = LA.det(c)      RuntimeWarning: overflow encountered in det     r = _umath_linalg.det(a, signature=signature)   Any ideas on how I can work around this problem? Many thanks!  Edit: this question is unique in that it specifically refers to computing the determinant of large matrix in double precision, though a possible answer is included here:


I am extremely new to proofs, and quite bad at them. In studying and practicing the different types of proofs, I developed this very rough proof that $1+1=2$, one of the simplest mathematical truths I could think of, but due to my ignorance I cannot tell if it is valid. Is the following a valid proof, and if not, how can it be improved upon?     Proof:      Let $a=1$. It is true that $a \in \mathbb N \setminus \{0\}$ and $\not\exists x \in \mathbb N\setminus \{0\}$ such that $x < a$. Therefore, $a$ is the least element of $\mathbb N \setminus \{0\}$.      Let $m$ be the least element of $\mathbb N \setminus \{0,1\}$. $2$ is the least element of $\mathbb N \setminus \{0,1\}$, therefore $m=2$.      Assume that $1+1 \neq 2$. There are two possible cases:         Case 1: $2<1+1$. If this is true, then because a set of natural numbers only contains positive whole numbers, $2=1$. Because $2$ is an element of $\mathbb N \setminus \{0,1\}$, $2 \neq 1$. Therefore this case leads to a contradiction.   Case 2: $2>1+1$. If this is true, then there must exist a natural number $z < 2$ such that $z=1+1$. Because two is the least element of $\mathbb N \setminus \{0,1\}$, $2=z$. However, this contradicts the statement that $z<2$, and therefore this case leads to a contradiction.         Because assuming that $1+1 \neq 2$ leads to contradiction, it must be true that $1+1=2$.


So i made a blog and I would like to put all the images in a post in a gallery/slider. I'm using the Enfold Child Theme so I looked up the gallery shortcode and made this function in the single.php(Single Post) where I get the image ids from a post and then I put them in the shortcode. The problem is, it doesn't show any images.. I Tried using the shortcode in a single post where I hardcoded the ids in the shortcode, and that worked perfectly. Anybody know what I'm doing wrong here or has a better solution? Thanks Single.php:  <?php if (!function_exists('get_associated_media')) {      function get_associated_media($post_id) {         $attachmentIds = array();         $media = get_children(array(             'post_type' => 'attachment',             'post_parent' => $post_id,             'post_status' => 'inherit',             'post_mime_type' => array('image/jpeg', 'image/gif', 'image/png'),             'numberposts' => -1         ));          foreach ($media as $file) {             $attachmentIds[] = $file->ID;         }         $attachmentIds[] = get_post_thumbnail_id($post_id);         echo do_shortcode('[av_gallery ids="' . implode(",", $attachmentIds) . '" type="slideshow" style="big_thumb" preview_size="portfolio" crop_big_preview_thumbnail="avia-gallery-big-crop-thumb" thumb_size="portfolio" columns="5" imagelink="lightbox" lazyload="avia_lazyload" av_uid="av-jgesnq4m" custom_class="av-gallery-style-"]');         return array_unique($attachmentIds);     } }  ?>


MySQL command appends '@localhost' to username

I just can't seem to figure this one out.  I want to use the command line to connect to a MySQL database residing on another server.  I went ahead and created the username and password for the user.  I have also granted all privileges on that user for that database.  When using the command: mysql -h <hostname> -u <username> -p, I get the following error:  ERROR 1045 (28000): Access denied for user '<username>'@'<local_machine_hostname>' (using password: YES)   The problem is that it keeps appending the current machine's hostname into the username.  Obviously, that user@<local_machine_hostname> is not correct.  It doesn't matter what I type.  For instance, if I type:  mysql -h <hostname> -u '<username>'@'<hostname>' -p   It does the same, only in the error output, it says:  Access denied for user '<username>@<hostname>'@'<local_machine_hostname>'   Is there a setting in a configuration file which is allowing this to happen?  It's really quite annoying.  I need to set up a tikiwiki server, and it cannot connect because during the step where you set up mysql, it keeps appending the local machine's hostname to the mysql login name.


How to mitigate any privacy-related risks associated with taking your laptop for repair?

Either my fan or my battery on my refurbished laptop is malfunctioning and it frequently overheats and shuts itself down. I wasn't able to determine the culprit and thought it best to show my laptop to an expert.  I also have an active warranty that lets me replace any malfunctional parts for free, so that's another reason for not buying my own hardware and trying-and-erring my way through. However, I'm somewhat paranoid about the fact that I have all sorts of sensitive information lying about on my laptop.  Even if I could clear the cookies/passwords for my browser, some sensitive information (credit card details, a host of passwords, and whatnot) that I foolishly left off on some notes, will probably remain. What is more, clearing the said cookies is a troublesome process that I'd rather avoid, if I possibly can.  The guy who runs the local repair shop tends to ask for an admin password, which I'm loathe to give, but have to relent nonetheless. Presuming that I will take my laptop to the repair shop, what is the best possible way to protect all the sensitive information under such circumstances?


Is this plastic container in my toilet tank necessary?

We have two toilets that don't flush well.  You have to hold the handle down for the entire flush, and even so they don't flush enough water.  Inside the tanks are plastic baffles that seem designed to limit the amount of water per flush.  It looks like they were installed with the tanks; they're mounted between the tank floor and the inner drain flange:    I'm all for water conservation, but this is a really poor design; the water flowing in from the top (instead of from all around) keeps knocking the valves closed.  Is there any reason (except for water usage) that I shouldn't just cut these out with a Dremel, leaving an inch or two in place?  I would prefer not to take the tanks off.


Is the following correct $dx = \lim_{ \Delta x\to 0} \Delta x\ $?

I hope your answer for this question will help me understand a lot of things. Thank you guys.


Showing that the function $f:\mathbb R^2\to\mathbb R$ is continuous

Let $f:\mathbb R^2\to\mathbb R$ be a function satisfying the following:  For each $y_0\in\mathbb R$, the function $x\mapsto f(x,y_0)$ is continuous. For each $x_0\in\mathbb R$, the function $y\mapsto f(x_0,y)$ is continuous. If $K$ is a compact subset of $\mathbb R^2$ then $f(K)$ is compact in $\mathbb R$.  Show that $f$ is continuous.  My Attempt: We will try to use the sequential criterion of continuity. Let $\{(x_n,y_n)\}$ be sequence converging to a point $(x_0,y_0)$ in $\mathbb R^2$. We will show that $f(x_n,y_n)$ converges to $f(x_0,y_0)$. Clearly $\{(x_n,y_n)\}_n\cup\{(x_0,y_0)\}$ is a compact subset of $\mathbb R^2$. So its image is compact in $\mathbb R$. The image set thus has a convergent subsequence. I am not sure how to proceed after this. Any help would be appreciated. Thank you.


Transmon: why do we need unharmonic hamiltonian to isolate energy levels?

With a quantum harmonic oscillator, we cannot isolate energy levels, e.g. to create a qubit. We need to embed anharmonicity, to get unevenly-spaced energy levels and so making them distinguishable. This last word makes my doubt. It escapes me why this is true.


System Admin @mention Community user not working

Logged in user is a system admin. When I try to post on chatter tab using @communityUser I am not getting user suggestion. Cant we access Community user @mention?   I tried to find an answer here - ()   First of all, The answer to above question is related to record post/feed. But i am not posting feed on any record to make it view with the Community base URL. I am trying to post from Chatter tab. Secondly, the answer suggests the visibility of the Chatter post from the internal user must be set to Everyone. The default is internal users. - I didn't find any way mentioned in the answer to achieve this(how to set this visibility?)   Please suggest if I am missing some customization setting to do


How to make a photo album for my child by LaTeX

I am planning to make a photo album by latex for my child's birthday, but I cannot find some suitable latex template, as a TeX fan, I want to make this gift special. Could anyone let me know how to make it?  Thank you guys so much in advance.  There are some example pics I found which are very close to what I want.     The editors may concerning about this is a duplicate problem, and they also give me some links below:  You may get ideas from tex.stackexchange.com/a/63759, tex.stackexchange.com/a/31266, tex.stackexchange.com/a/33296, and tex.stackexchange.com/a/45120  However, my problem for this including fonts, background, and also the frame in a page by tikz(or other packages), I want to put pictures and corresponding captions into a page by 1*2, 2*1, 2*2, 3*3, etc. I've looking for the solution by a period of time, but no one satisfied me. I intend to use all the nice pictures and compile them into a nice book by latex, and then print it out as a hardcover.  Thanks again.


If $\lim_{n \to \infty }b_n=L$, and $\sum_{n=1}^\infty a_n$ is convergent, then $\sum_{n=1}^\infty a_nb_n$ is convergent.

True/False: If there exists $L \in \mathbb{R}$ such that $\lim_{n \to \infty }b_n=L$, and we know that $\sum_{n=1}^\infty a_n$ is convergent, then  $\sum_{n=1}^\infty a_nb_n$ is convergent. If $a_n,b_n \ge 0$ then this is true from the limit definition. But what happens if $a_n,b_n$ are not necessarily non-negative? Thanks!


What can go wrong while querying INFORMATION_SCHEMA for schema names?

In  on the use of the SQL standard INFORMATION_SCHEMA views, on the columns about schema names, the following warning is repeated each time:  ** Important ** Do not use INFORMATION_SCHEMA views to determine the schema of an object. INFORMATION_SCHEMA views only represent a subset of the metadata of an object. The only reliable way to find the schema of a object is to query the sys.objects catalog view.  A casual perusal of this view on my database shows that all of the schemas appear to be reported as expected, so I'm wondering what exactly the problem is we're being warned about here.  Under what circumstances can INFORMATION_SCHEMA prove unreliable in this regard?


Remove forward slash when tabbing to see a list of directories

Is there a way to remove the trailing forward slashes in the tab-completion output of Zsh when I start writing a cd command and tab to see a list of directories?  E.g.   ~ cd <tab> Adlm/                       Desktop/ Applications/               Development/   I was wondering if there's any way to remove the slashes after the directory names, to show Adlm instead of Adlm/, etc.


How to undo/fix an accidentally wrong review?

I misclicked when doing a review , and that was a terrible goof. Is there a way to fix it?


Solving this summation: $\sum_{i=1}^k i\cdot2^i$

$$\sum_{i=1}^k i\cdot2^i$$  I'm working on a recurrence relation question and now I'm stuck at this point. I have no idea how to simplify this down to something I can work with.  Can I seperate the terms into $$\sum_{i=1}^k i \cdot \sum_{i=1}^k 2^i$$ and then just use the geometric series?


How do you interpret the  (in general relativity)? What can you tell from it?    The Kretschmann scalar is defined as   $$K = R_{abcd} R^{abcd} $$  where $R_{abcd}$ is the Riemann curvature tensor.


How do I automatically generate image styles?

How do I automatically generate different image styles in Drupal 8, for existing images?  For example, I have about 10K images in field_image field. I would like to generate thumbnails using my thumbnail image style for those images.


Calculate mean of $X$ when $X$ and $Y$ are jointly normal and $Y$ is truncated above

Suppose I have two random variable $X$ and $Y$ and they are distributed joint normally and $Y$ is truncated above by constant $c$ $$\begin{pmatrix} X \\ Y \end{pmatrix}  = TN\left(\underbrace{\begin{pmatrix} \mu_x \\ \mu_y \end{pmatrix}}_{\text{mean}},\underbrace{\begin{pmatrix} \sigma^2_x & \rho\sigma_x\sigma_y \\ \rho\sigma_x\sigma_y & \sigma^2_y \end{pmatrix}}_{\text{variance matrix}},\underbrace{\begin{pmatrix} -\infty \\ -\infty \end{pmatrix}}_{\text{under bound}},\underbrace{\begin{pmatrix} \infty \\ c \end{pmatrix}}_{\text{upper bound}} \right),$$ From this distribution, I wonder if the mean of $X$ is $\mu_x$. From my calculation, the marginal density of $X$ is $$f_X(x) = \frac{\Phi\left(\frac{c-\mu_y-\frac{\rho\sigma_y}{\sigma_x}(x-\mu_x)}{\sqrt{(1-\rho^2)}\sigma_y}\right)}{\Phi((c-\mu_y)/\sigma_y)}\frac{1}{\sigma_x}\phi((x-\mu_x)/\sigma_x), $$ where $\Phi(\cdot)$ is the cdf of standard normal and $\phi$ is the pdf of standard normal. I am not sure that if $$\mu_x = \int xf_X(x)\,dx $$ Or maybe $$\mathbb{E}[X] = \mu_x - \rho\sigma_x\left(\frac{\phi((c-\mu_y)/\sigma_y)}{\Phi((c-\mu_y)/\sigma_y)}\right) $$


For some odd reason, I can't use the usermod or group tool to change my UNIX username that every Linux user creates with a fresh install of any Linux release. Can someone help me with my problem?


Do I have to sell worthless stock to claim a loss and clean up?

On February, 3 2000 I purchased shares in iVoice.com (IVOC). These shares sat in a "hobby" account which I rarely looked at until recently.  I'm looking for guidance on how best to deal with the worthless positions cluttering my account after an interesting sequence of transactions by iVoice.  2005/08/15 IVOC spins off three new companies leaving me with holdings in four stocks            DPFD - Deep Field Technology            IVOT - iVoice Tech            SSWC - Speechswitch Inc            IVOC - iVoice Inc 2006/04/28 IVOC does a 1 for 200 reverse split and converts into a new stock             IVOI - iVoice Inc NEW 2007/11/21 IVOI spins off a new company              TPHM - Thomas Pharmaceuticals 2009/12/31 iVoice Tech renames to B Green Innovations Inc            BGNN - B Green Innovations Inc 2011/03/02 Speechswitch Inc renames to Kenergy Scientific Inc            KNSC - Kenergy Scientific Inc 2013/09/13 SEC revokes registrations of iVoice Inc NEW 2014/09/26 B Green Innovations does a 1 for 10,000 Reverse Split   So 14 years later I'm left with positions in the following entities:   BGNN DPFD KNSC TPHM iVoice Inc NEW (Completely illiquid as it has been revoked by the SEC)   BGNN is trading at 0.09 but the others are 0.0001. I'm half wanting to sell them just to clean up the clutter in my monthly statement. But I'm half tempted to hold on just to see what other crazy things happen with these companies or maybe this is common for penny stocks.  If I wanted to claim my loss do I have to sell all the positions and just treat iVoice Inc NEW as dead or is there something special you need to do to show you couldn't sell it?


How to find $\sum_{n=0}^{+\infty} \dfrac{1}{(kn)!}$?

I want to calculate $$S_k = \sum_{n=0}^{+\infty} \dfrac{1}{(kn)!}$$ when $k\in\Bbb N ^*$.   I tried to find a recurrence equation for $k$, but I found nothing really interesting.   I already know that for $k=1, S_1 = e$ and $S_2 = ch(1)$, but I don't know what to do for $k\geq 3$.


I've looked for a job VS I've been looking for a job

I'm not a native english speaker and I'd like to understand the difference between these 2 sentences:   I've looked for a job for 2 years. I've been looking for a job for 2 years.   Does the first one mean I've just stopped ?


Considering buying a new computer, how much of blender is CPU related vs GPU related?

I'll admit, I know nothing about Blender. Hadn't even heard the name until last week. A client of mine is looking to replace a 2010 Mac Pro with something more recent.  I told them that I'd do some research to determine where the 'sweet spot' in price/performance was on Apple's current Mac Pro offerings.  So, my question is. How much of blender work is CPU-related, and how much is GPU related? Where do you think the best price/performance ratio lies?  Should I prioritize spending on the CPU, the GPU or look for a balance?  The six-core/D500 GPU is my current plan, but I'm willing to be persuaded.


Now that I'm level 2 I need to know how to auto equip mods till I figure out how they work. (Xbox1) or even equip mods in the first place.


Why does my linearLayout behave like it is null

When I try to add the button created in an object to the linearLayout, it behaves as if the button is null, even though it has been initialized.  I have tested that the button isnt actually null and that the linear layout is declared correctly, which it is.  The linearLayout goes from being not null in onCreate() to null in getLinearLayout();     public Province(Context context, int id, int x, int y){         this.id = id;         this.x = x;         this.y = y;         button = new Button(context); //creates button, context is passed in through the MainActivity         selected = false;         selection(); //selection call     } //selection method     public Button selection(){         linearLayout = getLinearLayout();  //layout from MainActivity         button.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));         linearLayout.addView(button);  //adds button to current view, button is not null despite error         button.setId(id);         button.setX(x);         button.setY(y);         button.setOnClickListener(new View.OnClickListener() {             public void onClick(View v) {                 if(getCurrentPlayer().getStage() == 0) {                     troops++;                     getCurrentPlayer().modTroops(-1);                 }                 else {                     if (selected)                         selected = false;                     else if (!selected && getCurrentPlayer().select(0) > 0)                         selected = true;                 }             }         });         return button;     }   Here is the code where linearLayout is defined;  @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         linearLayout = findViewById(R.id.linear);  //refrences MainActivity xml with id linear         //linearLayout is not null here;         lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);         map = new Map(this, 0);     }   Here is the get method:  public LinearLayout getLinearLayout(){         if(linearLayout == null)             throw new IllegalArgumentException("Linear Layout is null");         //the exeption is thrown here so linearLayout is now null;         return linearLayout;     }   This is the error that appears:  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.addView(android.view.View)' on a null object reference         at com.example.hedgemonics.Province.selection(Province.java:56)         at com.example.hedgemonics.Province.<init>(Province.java:28)         at com.example.hedgemonics.Map.<init>(Map.java:10)         at com.example.hedgemonics.MainActivity.onCreate(MainActivity.java:28)


Is there some special rule regarding articles  for words starting with two consonants? I was taught to use a when a word starts with consonant (or an otherwise). I just wrote "a mPOS device" but MS Word proposes to use "an". I can hear "emPOs". Is this a special rule or the Word spell checker bug? Thanks


How can I import static functions in java?

While I understand I'm probably better off importing the entire class,  I'm still wondering how I could import static functions from a class so that I can call them without precursing their names with the class name.  Specifically, I'm trying to run this:  import java.lang.Math.pow;   so that I can call pow(2,3) instead of Math.pow(2,3)  This obviously gives an error... What's a more appropriate way to write it?


SharePoint Online REST API List Items Paging

Can anyone confirm that they are able to page against a SharePoint Online List Items query? Either I'm not understanding how this query is supposed to work or it just doesn't work.   tenant.sharepoint.com/conversations/_api/web/lists/getbytitle('Posts')/items?$skiptoken=Paged=TRUE&amp;P_ID=2   I'm leveraging the documentation  but when using Postman, all items are returned in the same query response. For example, according to the $skiptoken P_ID=2 above, I'm expecting a response without item ID 1. However, I still get ID 1, 2, and 3 in the response.


What are the eigenvalues of $X = xx^{T}, x\in\mathbb{R}^{d}$?

I'm given the matrix $X = xx^{T}\in\mathbb{R}^{d \ x \ d}, x\in\mathbb{R}^{d}$. Does somebody know how to compute $\lambda_{max}(X)$ or $\lambda_{min}(X)$? I only want to know these two eigenvalues, the others are not really important.  I seem to be stuck.  I'm thankful for any answer.


Any risk in providing bank account number routing number along with name and DOB?

I applied to a remote job on indeed North America (job listing had Louisville, KY as location), and overnight , without interview, they gave me an offer letter saying I was selected and I'll be a part time assistant manager, and job was to go to super markets and snap pictures. And they sent me a document in which I was supposed to fill   , to get started on job.     **   bank name  (they specified only chase, BoFa , Wells Fargo and US Bank )  bank account number,       routing number ,   full name and    date of birth.    (they didn't ask for ssn)    phone number**.   The document has a one line company address based out of Buenos Aires Argentina. It has company logo on all pages, no letter head nothing. But the guy who sent me email said the office was in Sweden but none in US and gave one address. I google that address it shows some other company name.   If I were to provide my  full name date of birth and Bank account + routing number, and in case it turns out to be an elaborate scam, can the miscreants wreak havoc like steal from my account , make purchases or sell my info on the deepweb/darkweb/darknet/whatever  , ??     I looked at :   and    but that didn't satisfactorily answer my question.   I called my bank (bofa) thrice, each time I was put on hold for >1hour and call got disconnected.   PS:  In 2015, after signing up for one vpn (private internet access) and connecting to it via my mobile phone, my entire bofa checkings account was emptied in less than an hour with purchases being made all over the world.    Bofa gave me my money after a week. ^


I am trying to install JDK 8 on Debian. I found a lot of similar topics but none of them solved my problem. In most topics the solution was this commands  sudo apt-get install software-properties-common sudo apt-get install python-software-properties  sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-8-jdk   But I got this error     Reading package lists... Done Building dependency tree        Reading   state information... Done Some packages could not be installed. This   may mean that you have requested an impossible situation or if you are   using the unstable distribution that some required packages have not   yet been created or been moved out of Incoming. The following   information may help to resolve the situation:      The following packages have unmet dependencies:  openjdk-8-jdk :   Depends: openjdk-8-jre (= 8u111-b14-2~bpo8+1) but it is not going to   be installed                    Depends: openjdk-8-jdk-headless (= 8u111-b14-2~bpo8+1) but it is not going to be installed E: Unable to   correct problems, you have held broken packages.   I also checked for updates  sudo update-alternatives --config java   and the output was     There is only one alternative in link group java (providing   /usr/bin/java): /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java       Nothing to configure.


Referring to the Seasons correctly: Summer versus Summers

Which of the below seems the correct usage:   (A) The family spent the academic year in Berkeley, retreating to a Napa Valley estate in the summers.  (B) The family spent the academic year in Berkeley, retreating to a Napa Valley estate in the summer.  (C) The family spent the academic year in Berkeley, retreating to a Napa Valley estate in summer.  Context: This is not something they did just one year, but seems a habitual, year after year trip.   Follow up question: Is "in the winters" also used? I somehow hear of it less often than "in winter".   More Context: The original sentence was taken  from Wikipedia and conforms to Usage (A)   Since (A) is on Wikipedia I tend to go with that but in reality none of the three sound odd to my ears.


Does a finite group has subgroups of order of all divisors of its order?

If G is a group of order d, then does there exist a subgroup of order c for all divisors c of d? I cannot find a proper countetexample. Could anyone provide me with one?


What plural-only nouns does English have?

Some nouns,  exist in the plural only. Is there a list of such nouns, or a rule or pattern that describes the set, and can be used to figure out if a singular form of a plural noun does or does not exist?


table over two columns in twocolumn mode


Uninstalling a package without disturbing dependent packages

I'm setting up a headless system and somewhere along the line the humanity-icon-theme package gets installed. Normally this wouldn't matter much, but the filenames in this package are very long and are causing problems: the filesystem I'm targeting doesn't support such long names, and when they get truncated, two files with the same prefix end up conflicting. If I remove this package, apt wants to uninstall bunch of useful dependent packages that have GUI features I'll never use. Can I force apt to remove the package but keep the others? I figure it will complain about holding broken packages if I try.


Let $A\subset\mathbb{R}$ a measurable and bounded set. Show that exists for each $0\alpha$.

Let $A\subset\mathbb{R}$ a measurable where $0<m(A)<\infty$. Show that exists for each $0<\alpha<1$ an interval $I$ such that  $$ \frac{m(A\cap I)}{m(I)}>\alpha. $$  MY ATTEMPT: Following a hint a give that:  Let $\varepsilon>0$, exists $G$, a open set such that $m(A)\leq m(G)<m(A)+\varepsilon$. As $G$ is open, we can write as the disjoint sum of open intervals $\dot{\bigcup}_n I_n = G$.So, $$ m(A)\leq m(G)=m\left(\sum \dot{\bigcup_n} I_n \right)\leq \sum m\left(I_n \right)<m(A)+\varepsilon $$ Suppose that $\varepsilon=(\alpha^{-1}-1)m(A)$:  $$ m(A)+\varepsilon=m(A)+m(A)(\alpha^{-1}-1)=m(A)(1+\alpha^{-1}-1)=m(A)\alpha^{-1} $$ and $$ \alpha\sum m(I_n)<m(A)=\sum m(A\cap I_n) $$ $$ \Rightarrow \alpha<\frac{\sum m(A\cap I_n)}{\sum m(I_n)}  $$  But I have a insecurity with that:   (1) I can write that: $m(A)=\sum m(A\cap I_n)$?   (2) How to get the result with this: $$ \alpha<\frac{\sum m(A\cap I_n)}{\sum m(I_n)}  $$


System of first order differential equations

Regard the diff equation that includes $sin(\phi)$:  $mϕ′′+aϕ′+(mg/L)sin(ϕ)=0$  $ϕ(0)=0.1$  $ϕ′(0)=0$  where $m=0.1,L=1,a=2,$  How can i rewrite the second order diff equation as a system of first order linear equations?


How to install H.265 / HEVC codec on Ubuntu Linux?

I have seen that the new  shows off H.265/HEVC playback, the successor of H.264. I wonder how I may get this support in Linux. Is there a need to install a codec specific for this format? How?


Prove that $int(A) =  (cl(A^c))^c$   I draw some diagrams to get the intuition for this exercise but couldn't figure out how to formulate this into a proof.  I'd be glad for a guidance.  Thanks


Why GCP Kubernetes Node host location for europe-north1 seems to be in US?

I am new to both Google Cloud Platform and K8s. I have launched Kubernetes cluster in GCP and chosen europe-north1 as the region (europe-north1-a as the zone).   When I try to run my application on this cluster it fails because it expects the application to run in EU region. I added IP and Geo check (using GeoLite database () and AWS IP check tool ()) into my application and they tell me that the host is located in US.  Have I perhaps missed some GCP/K8s configuration option or is this because the europe-north1 region is still quite new and the IP addresses do not correctly show that they are located in EU? In which case I should direct this question to Google?


How do I determine whether a drive is an HDD or SSD in Windows 8?

I've recently received an assembled PC. I don't know if the disk is an SSD or old HDD (whether SATA or other technologies).  I can't find a way to tell if the disk is SSD or not, apart from the size of the disk. However, now that the sizes of SSDs are getting close to that of HDDs, checking the size is not a good and robust way to distinguish drive type. Is there some other way to determine if the disk is an SSD?


I have this code:   let bar = () => {   let x = 5;    console.log(this.x) }  bar();   It does not work. I also have this code:   let bar = () => {   this.x = 5;    console.log(this.x) }  bar();   It does work. I want to make sure I understand why. As I understand it, simply declaring a variable within a function does not make it a value on the function object. Only when declaring this.___ = ____ does it actually become a value on the object.   ...is that right?


From the beginning of the series, even during his last moments, Itachi poked Sasuke's forehead as a way of showing affection and apologizing.  But is that the only reason? Did he perhaps try to transfer some knowledge or memories to Sasuke? Or is it simply unknown?


Holomorphic functions which preserve orientation

Still quite unsure about the chapter on orientation. For instance the Mobius map indeed preserves orientation, and I can show this rigorously, however I am still having difficulty understanding what it means for a holomorphic function $f$ to preserve orientation over some region in the complex plane. Which is why I asked a question regarding this $2$ days ago, but did not receive an answer.   The problem I am still thinking about is, I cannot show or provide a counter argument for why there does or does not exist some holomorphic function $f$ on a $\{z:|z|\le1\}$ such that it sends the unit circle with the counter- clockwise orientation into the unit circle with the clockwise orientation?  From the comment from this question asked earlier, one did suggest the use of the Argument principle which states that:     Argument Principle: If $f$ is meromorphic on a simply connected region $D$ and $\Gamma$ is a simply closed curve in $D$ not passing through the roots $z_j$ nor the poles $p_k$ of $f,$ then $$\frac{1}{2\pi i}\oint_{\Gamma}\frac{f'(z)}{f(z)}dz=n-m$$   Where $n$ is the number of roots of $f$(including multiplicities) in $\Gamma$ and $m$ is the number of poles of $f$ (including multiplicities) inside $\Gamma.$     I am really curious to find out why we can apply this to try and provide an explanation for my problem. I would appreciate some help because I am quite confused with orientation at the moment, and I think this problem is good in the sense it will help me understand some important notions on holomorphic functions which send or does not send certain orientation on a region to a different orientation of the same region.   I would really appreciate some rigorous argument for this problem. Much help will be appreciated.


I mistakenly deleted a PHP file from vs code editor on ubuntu OS.   Is there any way to get it back?   My folder path is: /opt/lampp/htdocs/readJson  File name is: readJson.php


How can I disable the "Welcome, Name!" banner notification for Game Center?

As per  I've found banners to cause slowdown on iOS 5, it turns out the "welcome, you have been signed in" Game Center message does this too, and on occasion it will interupt me several times in a game if I switch in/out of the app while playing as it logs be in/out repeatedly.  Is there a way to disable this notification while leaving Game Center enabled? I tried revoking the banner notification rights from Game Center but the pop up still appears.


To prove $adj(adjA)=A$ for a Singular matrix of order $3 \times 3$

I could prove $$adj(adj(A))=|A|^{n-2}A$$ for any Non singular matrix $A$ of order $n \times n$ as follows:  we have $$adj(A)=|A|A^{-1} \tag{1}$$ Taking Inverse on both sides we get  $$(adj(A))^{-1}=\frac{1}{|A|}A \tag{2}$$  Replacing $A$ with $adj(A)$ in $(1)$ and using $(2)$ we get   $$adj(adj(A))=|adjA|(adj(A))^{-1}=\frac{|adjA|}{|A|}A=|A|^{n-2}A$$  But how can we deduce the result of $adj(adjA))$ when $A$ is Singular?


He lives on Main Street.   This sentence is from "Merriam-Webster " Dictionary.  But I found both usage " in the street" and "on the street." on ngram.  What is the difference between them, "live on street" or "live in street".


How can I write about somebody defecating without resorting to childish phrases like 'having a poopoo'.  Is there an equivalent to 'pee' (which can be used by adults to mean urinate) for defecating?  So far I have "taking a dump" but it seems to have a comedic effect in certain cases.


Which English dialects have 2nd person plural?

"Y'all" is the famous southern US form of the 2nd person plural.  The Brooklyn / Italian-American "youse" might be another.  While the existence and usage of "y'all" has been addressed somewhat thoroughly here:  , I've found nothing else on EL&U regarding 2nd person plural forms in other English dialects.  I know there was a dual form in Old English () does that survive in any of the dialects in the Danelaw?  Do Scots / Gaelic / Welsh / Australian / other dialects retain any type of 2nd person plural / dual in modern usage?


proof that Even powers of an odd function's taylor polynomial vanish

Let $f$ be a $k$ times continuously differentiable function defined on a neighborhood of $0 \in \mathbb{R}$. Show that if $f(-x) = -f(x) \forall x \in \mathbb{R}^n$, then the coefficients of the taylor series expanded about $0$ has all even coefficients equal $0$.  So this is an odd function, it makes sense. let's write a $k$-degree taylor polynomial:  $$\sum\limits_{i=0}^k \frac{f^{i}(0)}{i!}x^i = f(0) + f'(0)x+\frac{f''(0)x^2}{2} + . . .$$  $f(0) = 0$ we can easily conclude since $f$ is odd, but how can we say anything about any other terms? (since they all involve derivatives)


Would a Death note still work, if a heart attack could lead to someone else's death?

L has just thought of a cunning plan to prevent himself being killed by a Death note:      He straps a device to his heart that directly links to an equivalent device strapped to Watari's (his butler) heart. If either heart stops beating (or the device is removed), then the other self-detonates and kills the other person. Which thus renders the Death note essentially useless against either of them, given the following rule:   Even though only one name is written in the Death Note, if it influences and causes other humans that are not written in it to die, the victim’s cause of death will be a heart attack ~ Rule XXVI - II linked   Is this possible, or would L just die from a heart attack anyway?


how bash loop only directory name excluding specific file?

IFS=$'\n' for CITY in $(cat /home/user/CT.txt) do  FILES=/mnt/dir1/dir2/$CITY/*  count=0 folder=''  for f in $FILES  do   echo "Processing $f file..."         ((count++))         folder=$f   # take action on each file. $f store current file name    #cat $f  done   Below is CT.txt content and directory structures :  cat CT.txt Test1 Test2 Test3  cd Test1/ |_dir1 exm.xls cd Test2 |_dir1 exm.xls   Output should:  i want only dir inside files should process under Test1 Test2 excluding .xls file


Identify which OrgWideEmailAddress records are valid for current user

I'd like to create a popup list on one of my Visualforce pages, for a user to select from a list of OrgWideEmailAddress records.  My goal is to limit the list to only those records that they're allowed to use.  I'm going to save the selection for use in later automatic emails.  Based on what I've read, I won't be able to send emails to certain OrgWideEmailAddresses:   The address hasn't been verified yet.  I don't see any fields in the schema that appear to show verification state. The address is only available to profiles that the user isn't a member of.  I don't see where the profile list is stored for each record.   Some of my problem could just be due to not understanding the standard objects so well, and perhaps there's a way to get at this through UserInfo, or by making my query on the User object which may have a child relationship to OrgWideEmailAddress since it's listed in the schema viewer of the Force.com IDE.  Here's the test code I'm working with:  for (OrgWideEmailAddress addr : [SELECT DisplayName, Address          FROM OrgWideEmailAddress ORDER BY DisplayName]) {     System.debug( addr.DisplayName + ' <' + addr.Address + '>'); }   I tried creating a new Messaging.SingleEmailMessage and then calling setOrgWideEmailAddressId() on it with each OrgWideEmailAddress Id, in hopes that invalid Ids would throw an exception, but to no avail.  My goal is to modify the test code to provide just the subset of records that the current user will be able to use.


I've encrypted my sd csrd on my old phone. This has since broken and wont turn on. I upgraded to a samsung s9 and put my sd card in. It wont let me decrypt the sd cre through any password or pin an tells me to decrypt it on my old phone first before being able to use it on my new phone. Help please


Understanding "we lose degrees of freedom in product deviations"?

I'm having a tricky time understanding the statement:      we lose $n−1$ [degrees of freedom] by computing the product   deviations [in $cov(x,y)$]   I'm not necessarily looking for an overview of degrees of freedom, just an explicit pointer to grasp this claim. It comes from  Full quote:     You may be perplexed that we average the product deviations [in $cov(x,y)$]    by dividing by $n−1$ rather than $n$. The best explanation is that in the   probability model discussed below, the sample covariance is an   unbiased estimator of the distribution covariance. However, the mode   of averaging can also be understood in terms of degrees of freedom, as   was done for sample variance. Initially, we have $2n$ degrees of freedom   in the bivariate data. We lose two by computing the sample means $m(x)$   and $m(y)$. Of the remaining $2n−2$ degrees of freedom, we lose $n−1$ by   computing the product deviations. Thus, we are left with $n−1$ degrees   of freedom total.   Thanks, if you can rephrase the claim to help with understanding?


suppress all interaction while installing apt-fast

I want to ask whether there is any method to suppress any interaction while installing apt-fast using apt-get.  I add the ppa source and then use the next command to install apt-fast:  sudo apt-get -y install apt-fast   However, while installing, it always asks which one to wrap, apt-get or aptitude, and then the maximum number of connection. Since I want to put the installation command in my script, I want to suppress all interaction and just use the default option. As a result, I can run the script totally silence.  Any idea?


Maximum simultaneous Server-sent events (SSE) connections to a web server (Nginx + ExpressJS)

How many Server-sent event connections can be handled by an Ubuntu server with:    1 GB of RAM Dual-core CPU Running Nginx (as a reverse proxy) In front of ExpressJS server?   Topics I have was able to study about:   Difference between Websockets and Server-sent events. Limitations imposed by browsers for SSE (max 6 for one domain). Headers that need to be mentioned in the proxy configuration for Nginx. Configuring workers for Nginx. Node.js is a better choice for SSE instead of PHP. Nginx being among the few servers to address the C10K problem.   I did not find any real stats or case studies about how many simultaneous connections can be handled by a server (may be with the above mentioned specs and configuration or ... some other higher/lower spec configuration)


How to set the terminal to open maximized

I want to tell compiz, metacity, the gnome-terminal or whoever is in charge to open the terminal window maximized by default.  How can I do that?  EDIT for the future: most of the answers were upvoted in older ubuntu versions, since 17.10 and on the most upvoted solutions do not work.


property decorator which functions on class (as opposed to instance) , setter

Property decorators are discussed at length in the documentation and the machinery which resolves them is discussed as well, but only for getters. I have been entirely unsuccessful in making a setter work for an uninstantiated class. Simple example:  My Property Decorator  class ClassyProp(object):      """ Classmethod + property """      def __init__(self, input_func):         log(f"ClassProp.__init__({input_func})")         self.func = input_func      def __get__(self, obj, cls=None):         log(f"ClassProp.__get__({obj}, {cls})")         return self.func      def __set__(self, obj, value):         log("__ClassyProp__.__set__()")      def setter(self, fset):         log("__ClassyProp__.setter()")      def fset(*args):         log("__ClassyProp__.fset()")   Test Class  class foo(object):     """ Test class """      def __init__(self):         pass      @ClassyProp     def f(cls):         """ Test property_lazy_static get , set """         pass   Run  print("======== ObjFoo ========")  ObjFoo = foo() print(ObjFoo.f) ObjFoo.f = 18 print(ObjFoo.f)  print("======== class foo ========")  print(foo.f) foo.f = 15 print(foo.f)   Yields  [      00s] ClassProp.__init__(<function foo.f at 0x7f4330c88268>) ======== ObjFoo ======== [      00s] ClassProp.__get__(<__main__.foo object at 0x7f4351522748>, <class '__main__.foo'>) <function foo.f at 0x7f4330c88268> [      00s] __ClassyProp__.__set__() [      00s] ClassProp.__get__(<__main__.foo object at 0x7f4351522748>, <class '__main__.foo'>) <function foo.f at 0x7f4330c88268> ======== class foo ======== [      00s] ClassProp.__get__(None, <class '__main__.foo'>) <function foo.f at 0x7f4330c88268> 15   NOTE: If I had ClassyProp return values it wouldn't say the function id, does say proper values for get, but I just wanted print outs for the purpose of debugging.  As you can see, the getter AND setter is called properly for the Instance of ObjFoo. But not for the uninstantiated class foo. Is having a property setter simply not possible on classes? The documentation states (I added breaks):     For objects, the machinery is in    - object.getattribute() which transforms b.x into    - type(b).dict['x'].get(b, type(b))        The implementation works through a precedence chain that    - gives data descriptors priority over instance variables,    - instance variables priority over non-data descriptors, and    - assigns lowest priority to getattr() if provided.     and     For classes, the machinery is in:      - type.getattribute() which transforms B.x into      - B.dict['x'].get(None, B)     With no mention of __set__ for either. (get obviously is working for both the class and the instance)  So I am left wondering now, is this possible? I see nothing in the documentation suggesting it isn't, but all testing suggests this.


Does python store one value for an int and many references?

I'm wondering why this evaluates to True.  x = 1 if x is 1:     print "Does x and 1 point to the same object?"     print "Does this mean python doesn't store redundant values?"   It doesn't work for this case as I expect.  x = range(10) y = range(10) if not x is y:     print "I expect this"   My understanding is that is checks to see if two names are pointing to the same object.  Does this imply that python has a mechanism to avoid creating redundant values?


Isometries of the sphere $\mathbb{S}^{n}$

Got this as homework and I don't know how to tackle this. Help please!  Prove that the isometries of $\mathbb{S}^{n} \subset \mathbb{R}^{n+1}$, with the induced metric, are restrictions to $\mathbb{S}^{n}$ of the linear orthogonal transformations.


First difference estimation with time dummy

I am using a first difference estimator for my panel data. The panel has people whom I observe over time. I want to include a 'time fixed effect'. I argue that this should be possible, as long as I interpret it slightly differently than a standard time dummy.  So basically:   y_it-y_it-1=gamma_(t,t-1)+beta*(x_it-x_it-1)+(e_it-e_it-1)   Where i is a subscript for the crosssectional element and t is the subscript for the time element.   gamma_(t,t-1) would therefore be a time fixed effect (i.e. dummy variable indicating time)   A referee claims it is non-sensical. While disagreeing with a referee is a bad idea, I am curious whether he is right or not. Can someone explain his point ?


How do I find out which dlls an executable will load?

If I have a Windows executable, how can I find out which dlls it will load?  I'm just talking about which ones that will be loaded statically, not ones it might load dynamically with something like LoadLibrary.


Prove $\frac{1}{\sqrt{x}}\geq \frac{\ln x}{x-1}$

I am trying to show that, for all $x>0:$  $$\frac{1}{\sqrt{x}}\geq \frac{\ln x}{x-1}$$  This inequality is closer than I expected. I have tried exponentiating, power series, and have achieved nothing. I would really appreciate some help. Below is a graph of the two functions for small $x:$


For what possible values of n is U(n) cyclic?Is there any general result regarding this?If yes please could anyone state it and possibly give me a hint about its proof.


Are there any easy known ways to play DnD 5e without other real people?

I love DnD 5e and do play it with my friends a lot, but of course I am not always right next to 3 or more other friends who happen to know how to play DnD (and if I am, I do not always have the time).  So I was wondering how I could play it without other people nearby.   For example, are there any online DnD simulators, giving me a virtual party, DM, and NPCs?  I have seen some material online describing in great detail how to create a setting, NPCs, etc. However, learning all of this would take way too much time, and I am looking for something simpler.  Alternatively, are there any servers allowing characters to play together without planning in advance? (I.E. you just come and hook up with a couple other people with the same purpose and play a meaningful session. Preferably without sound/voice.) Planning to play with friends over the internet is equivalent to meeting up in real life, so I am looking for something that will allow me to just open an application/website and start playing (with random people) in under 15 minutes.  Lastly, are there any books that set up an adventure and narrate what happens? (Example below, but I am looking for one specifically for DnD.)    If any of what you know requires me to play more than 1 character at a time, I am fine with that.


Normalizing the covariance matrices of a series of random vectors

Assume I have a  $3$-dimensional series $\{\boldsymbol{v}_{t}\}$, where $\boldsymbol{v}_{t} = (x_{t}, y_{t}, z_{t})$. Then the covariance matrix of $\boldsymbol{v}_{t}$ is: \begin{equation*}   \Sigma_{t}^{} = \boldsymbol{v}_{t}^{}\boldsymbol{v}_{t}^{T} =   \begin{pmatrix}     \sigma_{x}^{2} & \rho\sigma_{x}\sigma_{y} & \rho\sigma_{x}\sigma_{z}\\     \rho\sigma_{y}\sigma_{x} & \sigma_{y}^{2} & \rho\sigma_{y}\sigma_{z}\\     \rho\sigma_{z}\sigma_{x} & \rho\sigma_{z}\sigma_{y}&\sigma_{z}^{2}   \end{pmatrix}, \end{equation*} (correlation is constant for simplicity also I dropped the $t$ subscripts).  If  I wanted to normalize the covariance matrix to get the correlation matrix, I would calculate \begin{equation*}   D^{-1}_{t}\Sigma_{t}^{} D^{-1}_{t} =     \begin{pmatrix}     1 & \rho& \rho\\     \rho & 1 & \rho\\     \rho & \rho&1   \end{pmatrix}, \end{equation*} where $D_{t} = \sqrt{\mathrm{diag}(\Sigma_{t})}$.  Now my question is, could I also normalize the one dimensional series$\{x_{t}\}$, $\{y_{t}\}$ and $\{z_{t}\}$ individually first, to then get to the correlation matrix by simply calculating $\boldsymbol{v}_{t}^{}\boldsymbol{v}_{t}^{T}$ ?


UK Visa: convictions and other penalties

I'm applying for a UK Visa using the newest portal. One section is called Convictions and other penalties and asks At any time have you ever had any of the following, in the UK or in another country?. One voice is the following:     A penalty for a driving offence, for example disqualification for speeding or no motor insurance.   I remember I received a ticket because I once overtook another car on the white stripes. It was probably 15 years ago but here they ask for the day, month and year, and I have absolutely no idea when this happened exactly. Moreover, on the next page they say:     You must tell us about fixed penalty notices (e.g. a speeding or parking ticket) if you've received three or more. If you received a fixed penalty notice but didn't pay the fine and there was a criminal proceeding resulting in a conviction, tell us here.   Isn't this in contrast with what said before? Does this mean that if I received only 1 ticket I do not have to include it?


How to know the index of a matrix using a method in Java?

This is the problem, how to know the index of a matrix using a method in Java?  package myMethods;  public class MyMath {  public static int[] indexOfMatrix(int[][] M,int toFind) {         int index[]= {-1,-1};         for(int rows=0; rows<M.length; rows++) {             for(int columns=0; columns<M[rows].length; columns++) {                 if(toFind==M[rows][columns]) {                     index[0]=rows;                     index[1]=columns;                     return index;                 }             }         }         return index;     }     public static void main(String[] args) {         int[][] d={{3,7,8},{4,5,6},{2,1,0}};         System.out.println(indexOfMatrix(d,4)); }  }    I expect a number to be the output not "[I@15db9742"


How much of a GPU's electrical usage is probably turned into a increase in air temperature?

I am trying to find a good rough guesstimate of how much of the maximum wattage usage of a graphics card is turned into hot air.  Say a graphics card is rated at using X watts at maximum usage. How much of that is released as heat into the air via the cooling setup, and how much is not (If not where does it go? To ground?)  Yes I know there are a lot of variables here, I am just looking for a guesstimate from someone who would understand better than me. I'm specifically using  (Radeon 6990 375 watts max)


How to print out the content of an array without comma and brackets?

With the following line of code:  System.out.println(Arrays.toString(ar));   My output is like this:  [2, 4, 6, 8, 8]   And when I simply print out the array:  System.out.println(ar);   My output is:  [I@78f1f2cc   How do I print out 2 4 6 8 8 without using a for loop?


Here is the problem: From any IP address not belonging to your mail server:  telnet me.myemailserver.com 25    helo me.someserver.com mail from: <yourusername@mydomain.com> rcpt to: <yourusername@mydomain.com> data This is spam.  Buy my stuff. .   I'm using Postfix.  I'm having a problem finding a solution to requiring SMTP-AUTH for email claiming to be from mydomain.com.  Googling around, this guy has identified the same problem (where I cut-n-paste with some modifications) the above example from:   This link   gets close to a solution but it has a side effect of requiring SMTP-AUTH for mail not from mydomain.com.  For mail not claiming to be from mydomain.com, I would do the usual RBL and Spam filtering.  In short, I want to reject mail to local domains (mydomain.com) from outside/unauthenticated clients claiming to be from local domains (mydomain.com).  This is what I tried: I've tried both permit and reject as the default.  Here is exact excerpt from my main.cf:  smtpd_recipient_restrictions = reject_unauth_pipelining,                            permit_sasl_authenticated,                            check_recipient_access pgsql:/etc/postfix/pgsql-recipient.cf,                            reject_unauthenticated_sender_login_mismatch,                            reject_unauth_destination,                            reject_unlisted_recipient,                            check_sender_access pgsql:/etc/postfix/pgsql-sender.cf,                            reject_unlisted_sender,                            reject_invalid_hostname,                            reject_non_fqdn_hostname,                            reject_non_fqdn_sender,                            reject_non_fqdn_recipient,                            reject_unknown_sender_domain,                            reject_unknown_recipient_domain,                            reject_rbl_client cbl.abuseat.org,                            reject_rbl_client sbl.spamhaus.org,                            reject_rbl_client sbl-xbl.spamhaus.org,                            reject_rbl_client bl.spamcop.net,                            reject_rbl_client dnsbl.njabl.org,                            reject_rbl_client blackholes.wirehub.net,                            reject_rbl_client relays.mail-abuse.org,                            reject_rbl_client dialups.mail-abuse.org,                            reject_rbl_client blackholes.mail-abuse.org,                            reject_rhsbl_sender dsn.rfc-ignorant.org,                            (reject and permit both tried here)


How can I upgrade kernel to version 4.10 on Ubuntu 16.04?

I have an installed Ubuntu version 16.04 running with Kernel version 4.4.0-64-generic  How can I upgrade the kernel to 4.10?


Javascript pass a global variable to a function to feed value

I have a global variable that I am passing into a function. The function should feed/generate some values to that variable. So far, I tried: var final_transcript = ""; function test1(x) {   recognition.onresult = function(event) {     x += event.results.transcript;   } }  StartButton.addEventListener("click", () => {   test1(final_transcript); })  EndButton.addEventListener("click", () => {   console.log(final_transcript); })  In this case, assuming StartButton is clicked before EndButton. So the StartButton initiate the function that feeds in strings that add into the global variable final_transcript. when EndButton is clicked, the variable final_transcript should contain all the strings fed in. But the value of final_transcript is still empty according to the console log. EDIT: recognition.onresult transcript the user's voice into text. It is a real-time event. The reason why I am doing this is that the function test1 cannot detect an end event. Only EndButton.addEventListener does, and I cannot add it in test1 function.


How can I charge my iPhone without waking up my MacBook Pro?

I have a MacBook Pro (10.7.3) and an iPhone 4 (5.1). When I'm trying to conserve outlets, I charge my iPhone at night by plugging it directly into my computer.  If my computer is asleep with the lid closed, when I plug in the iPhone, the computer briefly wakes up, and it takes a few moments before it starts charging. (If the computer is already awake, the charging is instantaneous.) But my computer takes a while to go back to sleep because it saves the contents of RAM ().  How can I plug the iPhone it in to charge, without waking up the computer? (And why does this happen in the first place?)  (I've already set up my computer so that iTunes and iPhoto don't launch when I plug in my phone — but this doesn't seem to be enough.)


Array.push() add always reference even if using slice()

celArray.push(cel.slice()); //celArray [][][]  cel [][]  I add many different values of cel in celArray but the problem is that when I change the external cel all values in celArray change to cel even if I used slice() to copy by value and not by reference .


Hi I would like to know whether the trace of the inverse of a symmetric positive definite matrix $\mathrm{trace}(S^{-1})$ is convex.  Actually I know that the trace of a symmetric positive definite matrix $S\in M_{m,m}$ is convex since we can find $B\in M_{n,m}$ such that $S=B^T\times B$ then we can write the trace as the sum of scalar quadratic forms, i.e. $\mathrm{trace}(S)=\mathrm{trace}(B^T\times B)=\sum_{j=1}^mb_j^T\times b_j$ where $b_j$ is the $j^{th}$ column of $B$.  for instance if we have  $trace([\begin{array}{cc} 1 & 2  \\ 3 & 4  \\ \end{array}] \times [\begin{array}{cc} 1 & 3  \\ 2 & 4  \\ \end{array}])= [\begin{array}{cc} 1 & 2  \\ \end{array}]\times [\begin{array}{c} 1   \\ 2   \\ \end{array}]+ [\begin{array}{cc} 3 & 4  \\ \end{array}]\times [\begin{array}{c} 3   \\ 4   \\ \end{array}]=30$  And so I wonder if $\mathrm{trace}(S^{-1})$ is convex too..


Site analytics: "all posts" and "questions" show the same data

Here's a screen capture from a site where I can view /site-analytics:    The orange "all posts" curve should be strictly larger than the blue "questions" curve, but they are mistakenly displaying the same data.


I'm trying to extend an RSS feed to output some post-meta from my website.  I have an 'event_date' meta-key and I need to order by this as opposed to the RSS standard publish date, which I know how to do if I could get that information.  I'm using the following code, which makes use of the Wordpress action hooks available in the RSS feeds. However, when I use these hooks, the feeds report that there are no items found, while without these the items are found, but of course I cannot order them as I need.  Am I doing something wrong in the way that I am outputting to the RSS feed?  /**  * Adds the 'event_date' meta value to a feed  */ add_action('atom_entry', 'add_event_date_to_feed'); add_action('rdf_item', 'add_event_date_to_feed'); add_action('rss_item', 'add_event_date_to_feed'); add_action('rss2_item', 'add_event_date_to_feed'); function add_event_date_to_feed(){      global $post;      $event_date_raw = get_post_meta($post->ID, 'event_date', true);     if($event_date_raw && $event_date_raw !== '') :         $date_object = DateTime::createFromFormat('D, d M Y H:i:s +0000', $event_date_raw);         $event_date = $date->format('U');     else :          $event_date = '';     endif;     printf("\t\t".'<eventDate>%1$s</eventDate>'."\n", $event_date);  }


Detect whether Visualforce Page is Loading in Classic or Lightning Or Sf1

Currently, I am using below tag to detect whether VF Page is embedded in lightning or Classic or Mobile devices. Below the line of code return values as Theme3, Theme4t, Theme4u etc. These values can be changed by salesforce at any time.   var currentUserContext = "{!$User.UIThemeDisplayed}";   Instead of below lines, is there any other way we can check whether VF page is loaded in Lightning or classic or S1 mobile app.


Four-thirds (or any crop) sensor compared to full sensor camera: question about the meaning of “doubling the effective focus length.”

I can best ask this by setting up a situation:  A friend and I are standing in the same place pointing our camera’s at, say, the same bird that is some distance away.  I have a micro four-thirds crop lens, he has a full frame lense.  The bird fits nicely into both images (with different fields of view of course), when each camera has a actual 200 mm lens.  I know the effective aperture is also affected, but my question is:  Does “double the effective focus length” mean anything other than change the field of view in this situation?  That is, does doubling the effective focus give the 4/3 lens a greater “reach” or improve the focus or improve the ability to “see” the bird?  Or is all that happens the change in field of view?  Put another way, as the bird moves further away and we both try to follow it with cameras, will the crop sensor be able to see it more clearly at greater distances?


Wouldn't Han Solo have been alive when the Jedi were eliminated?

I was watching The Force Awakens and there is a line uttered by Han Solo in the film in regards to Rey's comment regarding the Jedi.  She has been on Jakku for a long time and she is very young, so it makes sense that she is out of the loop when it comes to the time line thirty years before.  But Han says, when Rey says, "The Jedi were real!",       Han:  "I used to wonder about that myself.  Thought it was a bunch of mumbo jumbo..."   And we know that he was not really a believer in the Force.  But how could he not know that the Jedi were real.  He was 10 at the time of Revenge of the Sith and he must have grown up with the Old Republic so he must have heard stories of the Jedi "Betrayal" of the Republic once the Empire took over and must have heard about the Jedi being wiped out.  Also, as Chewbacca knew Yoda, how would he not believe that they were real?  This seems far fetched...


The chat link on HTTPS pages links to global chat rooms, not site specific rooms

On HTTPS pages if I click Stack Exchange -> chat it drops me off here () with "all" filtering selected. On HTTP pages Stack Exchange -> chat drops me off with "site" filtering, listing the rooms specific to the site I am on.   HTTPS should mirror the behaviour that HTTP pages have. Can this be fixed please? It makes it almost impossible to find chat rooms of a specific site if I don't know their name.


Exit stamp on passport when leaving US by bus

My wife is in the US on the VWP, and will be leaving the country by bus into Mexico after having arrived by air. I've taken this bus route multiple times, but have no memory of ever stopping on the US side of the border to get an exit stamp - but as a US citizen, I don't need one.  I know that when leaving the country by air, no exit stamp is necessary, because the air carrier communicates their passenger list to the US immigration service.  Is the same thing done on buses?    I can't imagine it is, as lax as the security/ID procedures are on buses.    If not, what must my wife do to ensure that her exit from the US is registered?   Or will her entry stamp into Mexico be enough to prove that she left the US if/when immigration ever asks her about it?


I'm using Blender 2.83.3, Windows 10 x64, AMD rx570 4gb GPU, and intel i5 9400f CPU. My preference is OpenCL only GPU checked. But when rendering Cycles GPU Compute some unwanted line appears as shown in the picture (like the old movies). But using Cycle CPU, this doesn't occur. Also rendering in Eevee works fine for CPU or GPU. Any solution to this? [My and drivers are updated and tried reinstalling Blender but still the same. Also when I check GPU and CPU in OpenCL in preferences and then render in Cycles, Blender crashes. Rendering in Eevee works fine for CPU or GPU.]


I wrote the following sentence in my exam  The film was tried to be masked as a fictional movie.  My teacher had underlined this part of the text and told me that it was incorrect. The idea was to say that the people who made the movie had tried to make it look like a fictional movie.  Is this correct or not?


iOS: Black out screen when putting phone against ear

Is it possible to programmatically replicate the iPhone feature where the screen dims and the touch functionalities are shut off when the phone is against your ear?


I've been asked to do a small animation for a multi story ice cream store. I want to have a steel background texture with a transparent image of an ice cream on just the front face of the elevator door. Most solutions I've read through mention unwrapping the face, but that gives me the following message:  "Object has non-uniform scale, unwrap will operate on a non-scaled version of the mesh". The transparent image also applies itself to all faces of the door.    This is what I have. And this is what I want. How do I go about doing this?  Thanks in advance,  Joe


Why is LaTeX3 taking so long to come out?

I feel as though I have been hearing about the LaTeX3 project for a very long time.   Why is it taking so long for it to come into fruition? Are there major technical difficulties, or is it purely a lack of developers that is causing a bottleneck?


Simple, easy to understand way to soften edges?

I come from Maya, I'm used to just selecting the edges or faces you want to be soft or sharp and clicking a button that says "harden edge" or "soften edge." Is there a way to do this in Blender? I can't find a reliable way of doing it online. I don't want to have to add modifiers, or only selecting faces instead of edges, or select "auto smooth" or anything like that. I just want it nice and simple: select the edges you want to look soft and soften them, in 2 clicks or less, no ifs or buts. I refuse to watch any YouTube tutorial that's longer than 30 seconds on this.  Edit: "Mark sharp" doesn't work for me, it just turns the edges cyan in edit mode and nothing else. And I don't want anyone to tell me I have to use "split edge" without explaining what that means, I don't wanna add vertices to my mesh and that shouldn't have to happen. I'm terribly confused.  Edit: Ultimately what I want is control, I want to be able to smooth and sharpen any edge I want, with no ifs or buts. The only way to do that is if Blender let's you sharpen and smooth any edge you select, but as far as I'm able to figure out on the internet and from a friend who uses Blender so far is that that's not possible. Now I want to understand why it isn't possible.


Evaluate limit of an integral: $\lim_{x\to \infty }\frac{1}{x}\int _0^x\:\frac{dt}{2+\cos t}$

$$\lim _{x\to \infty }\frac{1}{x}\int _0^x\:\frac{dt}{2+\cos t}$$  Can someone explain to me if it is a limit of type $\frac{\infty}{\infty}$ or not and why ? I considered it to be one, applied L'Hospital and got $\cos\infty$, which would mean that the limit does not exist, but the answer is $\frac{1}{\sqrt{3}}$


Oracle SQL*Plus to get the highest Cost_Maint value of each DISTINCT Branch_Id Value

I am trying to generate a report of which room in each branch have the highest cost_maint in Oracle RDBMS. Is it true that this can only be done by self joining table, is it possible to achieve the result by using subquery? Maintenance_Record Table: ROOM_NO    BRANCH_ID  COST_MAINT ---------- ---------  ----------          1 B001      23500          2 B001       3750          2 B001       4000          3 B001      23000          5 B001       5300          9 B001      25000         43 B002       2500         44 B002       5300         48 B002       3750         49 B002       3000         49 B002       3750         53 B003       4000         56 B003       4000         68 B003       4000         75 B003      25000         85 B004       5800         86 B004       3000        120 B005      25000  Expected Output / Report :  ROOM_NO    BRANCH_ID  COST_MAINT ---------- ---------  ----------          9 B001      25000         44 B002       5300         75 B003      25000         85 B004       5800        120 B005      25000


I've got a study which is kinda messed up by the design...Turns out I ended up with about 50 patients of which 80% have the outcome and 20% don't (binary outcome).  I've been turning in my bed for the last month trying to figure out what to do with this. The only real answer is "don't" but I have to deliver something in the next days as it's part of a master's thesis.  I have about 10 predictors of interest for the outcome (various variable types) and the research question is whether any of these predictors can predict the outcome. Some already have an established correlation in the literature while some are original hypothesis. Several are significant with a univariate logistic regression, but it doesn't look good in any other way than the actual p-value.  Now obviously I'm not going to be able to answer this research question sufficiently but if you were in my shoes, what sort of statistical analysis would you perform to relay to your supervisors?  EDIT: Link to my (anonymized) data (CSV):


Seems like it should be simple enough, but I haven't made any real progress....  Construct a bijective conformal mapping from the region below the parabola $y=x^2$ to the upper half plane.  My first thoughts are to map $y=x^2$ or looking around online it seems smart to map to the disk, which is something I am familiar with.... but how would I go about doing this? Any ideas?  I also thought to convert to polar coordinates and work with those, but It really just got uglier from there.  Much Thanks!


How does the Life Drain ability of the Wraith and Specter interact with temporary hit points?

have the Life Drain action; on a hit, it forces the target to make a Con save to avoid having their max HP reduced:     The target must succeed on a DC 14 Constitution saving throw or its hit point maximum is reduced by an amount equal to the damage taken.    also have a similar ability.   are said to protect you from injury.     Temporary hit points aren't actual hit points; they are a buffer against damage, a pool of hit points that protect you from injury.   Will Life Drain's max HP reduction work if the damage you take is less than the temporary hit points you have?


Well, I do know that one of the consequences of the Special Theory of Relativity is increase in relativistic mass. But physically, why does it happen? Do more fundamental particles get added, or do their own masses increase? (that sounds strange,I know ,but that was only to explain the kind of answer I am looking for) Thanks in advance, and sorry if the question was stupid. My curiosity sometimes forces me to ask such foolish questions.


How to re-enable tray icons for applications in Ubuntu?

Unfortunately in Ubuntu 13.10 there is no tray icon and whitelisting is removed.  The older solutions do not work for me, e.g. I get the message: No such schema 'com.canonical.Unity.Panel' when I try to use the command:  gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"     How can I get tray icons back (for applications that put an icon in the tray (like TrueCrypt, Pidgin, Aqualung, gnome-system-monitor and so many more) in Unity?  The most annoying thing is that the user loses control over applications which cannot themselves detect that they have no tray icon (e.g.: gnome-system-monitor, TrueCrypt...). At least Aqualung sends a message about being unable to put an icon in the system tray!


Question how to make some application seen from 'application list'?

i install 'android studio' on my Ubuntu.  The location of the 'android studio' folder is on folder 'opt' - and to run the application i need to open the terminal on the 'opt/android studio/bin' and run ./studio.sh   Is it possible to make some shortcut on the desktop and run the 'android studio' on one click  Why i can't see the executable file from the 'all application' of the Ubuntu ?


Short Story: takes place in England as a US State

I vaguely remember a story taking place in a near-future setting in which one or more of The UK's component nations left the union, precipitating the final break up of The UK. These events also resulted in the royal family leaving England for (I think) Australia. England is subsequently accepted into The United States as the 51st state. All of this takes place prior to the action of the story.  I am pretty sure that I read this story in a multi-author anthology. I think I read it within the last 15 years. I remember very little else about it.


How do I scan a SD Memory Stick from my Phone and recover accidently deleted photos?

I used the Android "Gallery" app and accidentally deleted all my photos.  Can I plug my memory stick into Ubuntu, and DD recover the disk, and somehow recover the files?


Risk - To secure a world domination win?

I have been playing Risk with my four best friends and i have very rarely won.  I have been wondering what is the best strategy to win at Risk?


The order of the ${\rm Aut}(G)$, where $G$ is a $p$-group is divisible by $p$.   I saw that this claim is commonly used in many papers but was wondering what the proof for this comes from?


Is there any symbolic manner to represent the concatenation of matrices row or column-wise? Briefness is appreciated.  Best regards.


Hi guys good to be here.  Am new to blender and am trying to learn it ASAP.  Pls my blender keeps crashing when ever am at shader editor and my changes doesn't affect my mesh in the shader. Pls how do I fix these. My system specs is Intel core i7 2620M CPU @ 2.70 GHz.  8gig ram,  54 - bit Operating system.  Windows 7. Thanks


This problem is from "An Introduction to Number Theory" by Ivan Niven. Define a to be a cubic residue if $x^3 \equiv a \mod p$ has solutions. Prove that if $p=3k+2 ,$ then every number that is in reduced residue system is a cubic residue. And if $p=3k+1$, only one-third of the reduced residues are cubic residues.I did find a solution . But, I've not covered the portion in the book after section 2.5(self-study). I attempted the question in the following way and would appreciate any hints to reach to conclusion:  As $B=\{1,2,\dots ,p-1\}$ is a reduced residue system, it should be enough to prove that $i^3 \equiv j^3\mod p \Rightarrow i\equiv j\mod p$. So, one part of it boils down to  If $p=3k+2$, then show that $p \nmid i^2+j^2+ij $, if $i\neq j \wedge i,j \in B$. I have no idea how to use the $p=3k+2$ part for proving this.


Change volume-steps in Ubuntu 18.10? (Gnome Shell)

On Ubuntu 18.10, on my laptop (Lenovo W530), there are 2 ways to easily change the volume:   + / - buttons on the keyboard:  Scroll wheel Up/Down on the speaker icon with the mouse:    Using the + / - buttons has 17 steps from min to max.  Using the scroll wheel has 50 steps from min to max and I find it too low.  My question is: how do we change either step size?  This may look like a duplicate of  but it's not: this question is about Ubuntu 18.10 running Gnome Shell, not Unity.


Is G/H a group even if H is a subgroup of G but not a normal subgroup?

I know we can have left and right cosets without having the group be normal, but can we mod out by a subgroup without it being normal and still get a group?  Thank you in advance!


in C++, is stack allocation is more efficient when allocating multiple data inside a object? class A_Heap will be less efficient in below program?

/*    I have two classes. One is allocating memory on stack for its members while other is allocating on heap. See the below code snippet.*/  class A_Heap {  public:     A_Heap()      {         ptr = new char[256];         int_ptr = new int[1024];     }  private:      char * ptr;     int * int_ptr;     int abc;     char ch;  };  class A_Stack {  public:     A_Stack()     {     }  private:      char ptr[256];     int int_ptr[1024];     int abc;     char ch; };   /*class A_Heap will be less efficient as allocate memory on heap causing two more context switch from user to kernel mode? */


Avoiding Error 1325 EsriPyFldr not valid short file name when uninstalling ArcGIS for Desktop?

I am trying to uninstall ArcGIS 10.3.1 for Desktop from Windows 7 SP1 using Uninstall a program and I am receiving an error message (pictured below):     Error 1325. EsriPyFldr is not a valid short file name.   The error message dialog appears just after:     Computing space requirements   seems to complete.  If anyone else has encountered this, then have you been able to find a way to get past it and uninstall ArcGIS 10.3.1 for Desktop?  My machine has what I would call a vanilla install of ArcGIS 10.3.1 for Desktop and ArcGIS Pro 1.1.1 so there are Python versions 2.7.8 and 3.4.1 as a result. ArcGIS Earth Beta is also on the machine.     I have made a posting on the same issue to   After running this utility () unsuccessfully (it hung for two hours before I killed it) the error message when trying to uninstall shifted to:     This action is only valid for products that are currently installed     ArcMap 10.3.1 continues to start fine and doing  wmic product where "Vendor like '%Environmental Systems Research Institute%'" get Name, Version, InstallDate, InstallLocation in a DOS window (at the suggestion of @MattWilkie) reports only the presence of Python 3.4.1 for ArcGIS Pro, ArcGIS Pro and ArcGIS Earth on my machine.


Provide link to see off-topic close reason after vote

After voting to close as off-topic, I'm unable to see which option I chose by clicking on the close button again:    There is no link to click through and see the counts associated with each off-topic close reason. Can we add one? Something like:    Yes, I realise the numbers don't add up. My Paint-fu isn't great.


How many permutations of the multiset $S = \{3\cdot a, 3\cdot b, 3\cdot c\}$ no two identical consecutive letters appear?

I have to find the number of permutations of $S = \{3\cdot a, 3\cdot b, 3\cdot c\}$ in which two equal consecutive letters do not appear. I'm trying to do it for inclusion-exclusion principle, but I can't reach the correct answer. According to the text, the answer should be 174 permutations.


Why the earphones in the pocket always form knots? How to explain this problem in Maths?

And how to build a model to study of it?


In the 1930s almost 10,000 Jewish children arrived in Britain, escaping Nazi persecution. Britons rose to the occasion, quietly and without fuss. There is no reason why this could (NOT?) happen again, if only compassion WAS/WERE allowed back into public discourse.   Got from The Guardian. Can someone help me with the words I capitalized? Should "not" be there? Should it be "was" or "were"?


Improve read performance on ext4 on Centos with software raid1?

I'm running a number of MongoDB nodes on dedicated servers running Centos6. Each machine has two SSDs which I have in Raid1 with two logical partitions:  # df -h Filesystem      Size  Used Avail Use% Mounted on /dev/md2        424G  233G  170G  58% / tmpfs            16G     0   16G   0% /dev/shm /dev/md1        496M  116M  355M  25% /boot  # cat /proc/mdstat Personalities : [raid1]  md1 : active raid1 sdb2[1] sda2[0]       524224 blocks super 1.0 [2/2] [UU]  md2 : active raid1 sdb3[1] sda3[0]       451545792 blocks super 1.0 [2/2] [UU]  md0 : active raid1 sda1[0] sdb1[1]       16777088 blocks super 1.0 [2/2] [UU]   It is recommended for MongoDB to reduce the read ahead from 256 to ~32 since that give about 16kb which is bigger than the average document.  # sudo blockdev --report RO    RA   SSZ   BSZ   StartSec            Size   Device rw   256   512  4096          0    480103981056   /dev/sdb rw   256   512   512       2048     17179869696   /dev/sdb1 rw   256   512   512   33558528       536871424   /dev/sdb2 rw   256   512   512   34609152    462383047168   /dev/sdb3 rw   256   512  4096          0    480103981056   /dev/sda rw   256   512   512       2048     17179869696   /dev/sda1 rw   256   512   512   33558528       536871424   /dev/sda2 rw   256   512   512   34609152    462383047168   /dev/sda3 rw   256   512  4096          0     17179738112   /dev/md0 rw   256   512  4096          0    462382891008   /dev/md2 rw   256   512  1024          0       536805376   /dev/md1   Since I have this structure, do I need to just run sudo blockdev --setra 32 /dev/md2 ? Since the underlying drives still load 256 will this have any impact, or do I need to manually set the 32 block readahead for all /dev/sdaX and /dev/sdbX also?  Also, is an OS restart required to see the impact of the change in readahead?  Update: I think this is slightly different to the previous questioner, since here the RA for the mdX is much smaller than the underlying block device. I'm thinking that even if /dev/md2 loads only 16kb, the underlying block device will still load 128kb each time.


Can you what Apple ID is now associated with my MacBook Air using its serial number?

My MacBook Air was stolen. Can you see what Apple ID is now associated with my MacBook Air using its serial number?


Classifying whether a collection of objects is a set

I'm wondering whether or not there is a definite criterion for determining whether a collection of objects is a set. In the literature, I've recently encountered some obscure examples (in Riemann Surface Theory, to be precise) of naturally-arising collections of objects which are not sets.   Here is some pseudo-rigor to make the question more precise:   Let $S$ be a collection of objects. Is there some property $P$ so that $S$ is a set iff $S$ has property $P$?


Why is the cardinality of set S is 3^n, where S is the collection of all ordered pairs of disjoint subset of {1,2,3,...,n} where n is non negative. if n = 2, then subset A and B are disjoint and can only contain elements of 1,2, or the empty set, is this correct? I can't get 9 ordered pair. Can someone explain how do I get 9 ordered pair?


The function is executed as many times as it wants jquery js

When we click OPEN, without adding to FAV first then OPEN works fine, heals when we add a line of code html to FAV then OPEN executes as many positions as possible e.g. OPEN 3 from below, performed 3 times.

 <button id="open" value="pathWay_value1">open</button> pathWay_value1 <button id="fav"> add to fav</button>

 <button id="open" value="pathWay_value2">open</button> pathWay_value2 <button id="fav"> add to fav</button>

 <button id="open" value="pathWay_value3">open</button> pathWay_value3 <button id="fav"> add to fav</button>

 <button id="open" value="pathWay_value4">open</button> pathWay_value4 <button id="fav"> add to fav</button>

 <button id="open" value="pathWay_value5">open</button> pathWay_value5 <button id="fav"> add to fav</button>

    $(document).ready(function(){   $('button#fav').on('click', function () {           console.log('Clicked #fav');           fav_value = $(this).closest("li").html();           console.log(fav_value);           $('#list_links_fav').append('
' + fav_value + '
');           $(this).closest("li").remove();           console.log("Added to fav");                $(document).ready(function(){               $('button#open').on('click', function () {               console.log('Clicked #open');               var fired_button = $(this).val();               console.log(fired_button);               });               });   }); });  $(document).ready(function(){   $('button#open').on('click', function () {           console.log('Clicked #open');           var fired_button = $(this).val();           console.log(fired_button);   }); });


What's the main difference between int.Parse() and Convert.ToInt32

What is the main difference between int.Parse() and Convert.ToInt32()? Which one is to be preferred


Excel, want to read a column and sum up the values that match in another column

I have the table below and i want it to read through columns A-B and then sum the values that match their names in columns C-D.  So that in a column elsewhere of a list of names i have the sum of their values from this table. For example Ed features in both columns with a value of 1 and 3, so would return a value of 4. Struggling to get this to work nicely. My actual table consists of 4 columns names and two sets of 4 columns with numbers.    A       B       C   D Steve   Jeff    4   1 James   Calum   1   1 Alex    Andy    2   1 Peter   Ed      0   3 Owen    Harry   1   2 Jeff    Steve   4   1 James   Calum   1   1 Andy    Alex    2   1 Peter   Owen    0   3 Ed      Harry   1   2