Siliconed round windows before repainting jambs - should have done it after?

I'm repainting a room.  I've scraped back  the loose paint (in places back to plaster), filled, sugar soaped and, to my low standards, it's ready to paint. I also scraped out the old mouldy silicone round the windows and replaced it with fresh silicone.  I immediately regretted that - at the thin edges where I smoothed it there is enough silicone to prevent paint adhesion, but not enough to hide the colour of the plaster (e.g. at the arrow). Clearly the silicone should have gone on after painting. Now it's done, how best to remedy so as not to leave an ugly line around the window when I repaint it?  am I worrying about nothing? is there a primer or other product that will allow me to paint over this with water-based emulsion? can I remove the new silicone from the plaster/old paint sufficiently well for it to be over-painted?  How?


What methods exist to damage or destroy worn or carried objects?

Most spells/abilities only allow the targeting of creatures rather than objects.  Of the few that do allow object targeting, most explicitly except "worn or carried" objects.     It ignites flammable objects in the area that aren’t being worn or carried. (Fireball)    or     A nonmagical object that isn't being worn or carried also takes the damage if it's in the spell's area. (Shatter)   What methods do exist to damage or destroy objects that are worn or carried?  I'm looking for spells, abilities, items, or monsters that could achieve this.


How to wire 3 hots / 3 neutrals into this new TR outlet with 2 screws?

I'm redoing some of the outlets in our house, as they are pretty loose. Some of these have been really easy, but I came across one today where there were 3 hots and 3 neutrals. All 3 were going into the quick-connects in a outlet which looks like this:     Don't mind the destruction on the quick-connect in the picture, as I broke that taking the wires off and am not re-using this outlet. My new outlets look like:    For my other installations I've been using the screws on the side rather than the quick-connects, but since I had 3 hots/3 neutrals I figured I'd try to put 4 on the screws and the other 2 in the little quick connect holes. However, this plan doesn't work because it seems that the wire is too large for the quick connect holes on my new outlets (maybe a 14 gauge vs 12 gauge difference? )  What do I do in this situation? Do I nut two of the hots and 2 of the neutrals together? If so, can I determine the exact type of nut I need with my wire stripper (AWG of the bare wire correspond to the gauge of the wire or do I need to include insulation?).  Edit: A picture of the sides of the outlet I'm replacing, in which it looks like the tabs are present:


BS Flight from Madrid to New York with a stopover in London. (Aug 9th)

Wife is a Cuban Citizen with USA Permanent Residence Card and we just found out that she might need a Transit Visa. Our travel date is July 25th, not enough time to file for this visa.   can anyone advise if this transit visa is a must or is there an alternative solution?  We'll be approx. two hours in London and and most likely won't leave the secure area while moving from one plane to the next.


Is it possible to compile and execute new code at runtime in .NET?

Note: Mathematical expression evaluation is not the focus of this question.  I want to compile and execute new code at runtime in .NET.  That being said...  I would like to allow the user to enter any equation, like the following, into a text box:  x = x / 2 * 0.07914 x = x^2 / 5   And have that equation applied to incoming data points.  The incoming data points are represented by x and each data point is processed by the user-specified equation.  I did this years ago, but I didn't like the solution because it required parsing the text of the equation for every calculation:  float ApplyEquation (string equation, float dataPoint) {     // parse the equation string and figure out how to do the math     // lots of messy code here... }   When you're processing boatloads of data points, this introduces quite a bit of overhead.  I would like to be able to translate the equation into a function, on the fly, so that it only has to be parsed once.  It would look something like this:  FunctionPointer foo = ConvertEquationToCode(equation); .... x = foo(x);  // I could then apply the equation to my incoming data like this   Function ConvertEquationToCode would parse the equation and return a pointer to a function that applies the appropriate math.  The app would basically be writing new code at run time.  Is this possible with .NET?


Is there a tool to create a gif animation from a set of png files?  I tried the convert command from the  suite, but this doesn't always succeed. Also, I have several issues with this:   I can't tell what the progress is. No matter what I try, the -delay flag doesn't change the frame rate of the gif animation. convert determines the frame order based upon the alphabetical order of the files names. This means that name500.png will be placed right after name50.png and not after name450.png I can fix this by adding 0's but this is annoying.


I am running ubuntu 11.04 on vmware. I can access the internet fine with firefox but the Software Centre cant download anything and tells me to check my internet connection.   Using apt-get on the command line gives me errors like...  Failed to fetch http://archive.ubuntu.com/ubuntu/dists/natty-security/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.92.176 80]   Synaptic also reports similar problems.  Any ideas what is going wrong?


Generate all possible lists from the sublist in python

Suppose I have list [['a', 'b', 'c'], ['d', 'e'], ['1', '2']]  I want to generate list where on the first place is any value from first sublist, on the second - from second etc.  So, a couple of examples:  ['a', 'd', '1'] ['b', 'd', '1'] ['c', 'd', '1'] ['a', 'e', '1'] ['a', 'e', '2'] ['b', 'e', '1'] ['b', 'e', '2']   etc.


Why does SAS PROC GLIMMIX give me VERY different random slopes than glmer (lme4) for a binomial glmm

I am a user more familiar with R, and have been trying to estimate random slopes (selection coefficients) for about 35 individuals over 5 years for four habitat variables. The response variable is whether a location was "used" (1) or "available" (0) habitat ("use" below).  I am using a Windows 64-bit computer.  In R version 3.1.0, I use the data and expression below. PS, TH, RS, and HW are fixed effects (standardized, measured distance to habitat types). lme4 V 1.1-7.   str(dat) 'data.frame':   359756 obs. of  7 variables:  $ use     : num  1 1 1 1 1 1 1 1 1 1 ...  $ Year    : Factor w/ 5 levels "1","2","3","4",..: 4 4 4 4 4 4 4 4 3 4 ...  $ ID      : num  306 306 306 306 306 306 306 306 162 306 ...  $ PS: num  -0.32 -0.317 -0.317 -0.318 -0.317 ...  $ TH: num  -0.211 -0.211 -0.211 -0.213 -0.22 ...  $ RS: num  -0.337 -0.337 -0.337 -0.337 -0.337 ...  $ HW: num  -0.0258 -0.19 -0.19 -0.19 -0.4561 ...  glmer(use ~  PS + TH + RS + HW +      (1 + PS + TH + RS + HW |ID/Year),      family = binomial, data = dat, control=glmerControl(optimizer="bobyqa"))   glmer gives me parameter estimates for the fixed effects that make sense to me, and the random slopes (which I interpret as selection coefficients to each habitat type) also make sense when I investigate the data qualitatively. The log-likelihood for the model is -3050.8.  However, most research in animal ecology do not use R because with animal location data, spatial autocorrelation can make the standard errors prone to type I error. While R uses model-based standard errors, empirical (also Huber-white or sandwich) standard errors are preferred.   While R does not currently offer this option (to my knowledge - PLEASE, correct me if I am wrong), SAS does - although I do not have access to SAS, a colleague agreed to let me borrow his computer to determine if the standard errors change significantly when the empirical method is used.  First, we wished to ensure that when using model-based standard errors, SAS would produce similar estimates to R - to be certain that the model is specified the same way in both programs. I don't care if they are exactly the same - just similar. I tried (SAS V 9.2):  proc glimmix data=dat method=laplace;    class year id;    model use =  PS TH RS HW / dist=bin solution ddfm=betwithin;    random intercept PS TH RS HW / subject = year(id) solution type=UN; run;title;   I also tried various other forms, such as adding lines  random intercept / subject = year(id) solution type=UN; random intercept PS TH RS HW / subject = id solution type=UN;   I tried without specifying the   solution type = UN,   or commenting out  ddfm=betwithin;   No matter how we specify the model (and we have tried many ways), I cannot get the random slopes in SAS to remotely resemble those output from R - even though the fixed effects are similar enough. And when I mean different, I mean that not even the signs are the same. The -2 Log Likelihood in SAS was 71344.94.   I can't upload my full dataset; so I made a toy dataset with only the records from three individuals. SAS gives me output in a few minutes; in R it takes over an hour. Weird. With this toy dataset I'm now getting different estimates for the fixed effects.   My question: Can anyone shed light on why the random slopes estimates might be so different between R and SAS? Is there anything I can do in R, or SAS, to modify my code so that the calls produce similar results? I'd rather change the code in SAS, since I "believe" my R estimates more.   I'm really concerned with these differences and want to get to the bottom of this problem!  My output from a toy dataset that uses only three of the 35 individuals in the full dataset for R and SAS are included as jpegs.         EDIT AND UPDATE:  As @JakeWestfall helped discover, the slopes in SAS do not include the fixed effects. When I add the fixed effects, here is the result - comparing R slopes to SAS slopes for one fixed effect, "PS", between programs: (Selection coefficient = random slope). Note the increased variation in SAS.


APT is not working at all: "E: The value 'jessie' is invalid for APT::Default-Release as such a release is not available in the sources"

I'm trying to do run the command sudo apt-get install ssh, but when I do I get this error.     $ sudo apt-get install ssh Reading package lists... Done E: The value 'jessie' is invalid for APT::Default-Release as such a release is not available in the sources   when I try to apt update to fix it I get this.     $ sudo apt update Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:2 http://ca.archive.ubuntu.com/ubuntu bionic InRelease                                               Hit:3 http://ca.archive.ubuntu.com/ubuntu bionic-updates InRelease                                       Hit:4 http://ca.archive.ubuntu.com/ubuntu bionic-backports InRelease               Ign:5 http://cdn-fastly.deb.debian.org/debian jessie-backports InRelease                                        Ign:6 http://cdn-fastly.deb.debian.org/debian stretch InRelease Err:7 http://cdn-fastly.deb.debian.org/debian jessie-backports Release 404  Not Found [IP: 151.101.124.204 80] Get:8 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB] Get:9 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2,365 B] Ign:9 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg Reading package lists... Done  E: The repository 'http://httpredir.debian.org/debian jessie-backports Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://cdn-fastly.deb.debian.org/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY EF0F382A1A7B6500 E: The repository 'http://httpredir.debian.org/debian stretch Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The value 'jessie' is invalid for APT::Default-Release as such a release is not available in the sources   Anyone run into this before? Is there a way of just wiping apt dependencies and starting anew?


How can I find out what modifications a program’s installer makes?

I want to know what some installers do: mainly what files, folders, and registry entries they add, remove, or modify.  Lots of “ professional” programs are so poorly documented that it’s difficult to find the proper way to configure them, update them, etc.   is a program which is able to take a “snapshot” before and after the installation of a program and then compare the snapshots. This allows you to know what was done and even to create a custom uninstaller. Unfortunately InstallRite seems to no longer be maintained and has not been updated since 2008.


Let's say I have some Java code:  public class SomeClass {     static {         private final double PI = 3.14;         private final double SOME_CONSTANT = 5.76;         private final double SOME_OTHER_CONSTANT = 756.33;     }    //rest of class }   If a thread is initializing SomeClass's Class object and is in the middle of initializing the values in the static block when a second thread wants to load SomeClass's Class again, what happens to the static block?  Does the second thread ignore it assuming it's already initialized even though the first thread is not done? Or does something else happen?


Using the left action of $\text{SO}(2)$ on $\text{SL}(2,\mathbb{R})$,   show that $\text{SL}(2,\mathbb{R})$ is homeomorphic to $S^1 \times  \mathbb{R}^2$   I tried defining the action by $\psi: \text{SO}(2) \times \text{SL}(2,\mathbb{R}) \to \text{SL}(2,\mathbb{R})$ by $(A,B) \mapsto AB$.  The kernel of this map are pairs $(A,A^{-1})$ such that $A \in \text{SO}(2)$.  Clearly this map is surjective, so I wanted to show that I can now find a canonical homeomorphism $\phi: \text{SO}(2) \times \text{SL}(2,\mathbb{R})/ \ker \psi \to S^1 \times  \mathbb{R}^2$. For instance, maybe the map $(A,B)\ker\psi \mapsto (A,(\cos xb_{1,1} -\sin xb_{1,2}, \sin xb_{2,1} +\cos xb_{2,2}))$ where $A$ is rotation by $x$.  However, I'm not entirely sure this is well defined, and even if so, if it is injective and open.  Using the theory of Lie groups, how should I approach this problem?


How to change the order of the fields returns by field_info_instances() function?

I am using field_info_instances() function to get all the fields of a content type and display it in a csv file.  but the problem is I can't change the order of the fields return by this function.  Any one who know how to change the order of the fields?


The minimum number of digits after the floating-point, which uniquely identify every irrational square root

Let the following:   $B:$ a natural number larger than $1$ $S:$ a set of irrational numbers in the range $(0,1)$ represented in base $B$ $L:$ the minimal prefix length which uniquely identifies every element in $S$     With $S=\{r|r=\sqrt[2]{n}-\lfloor\sqrt[2]{n}\rfloor,r\neq0,n\in\mathbb{N}\}$, is it possible to express $L$ as a function of $B$?  An answer for specific bases (binary and decimal in particular) would also be highly appreciated.


Prove $\sum_{k= 0}^{n} k \binom{n}{k} = n \cdot 2^{n-1}$ using the binomial theorem for $n\geq1$

I do as follows  $(1+x)^n= \binom{n}{0}+\binom{n}{1}x+\binom{n}{2}x^2+...+\binom{n}{n}x^n$   differentiating in both sides  $n(1+x)^{n-1}= \binom{n}{1}+2\binom{n}{2}x+3\binom{n}{3}x^2...+n\binom{n}{n}x^{n-1}$  then, for $x=1$  $n \cdot2^{n-1} = \sum_{k=1}^{n}k\binom{n}{k}$  From here, I don't know how to proceed, I have tried to multiply both sides for $(1+x)$ to make $n \cdot2^{n}$ but then the summatory changes, I don't know how to prove the equality.


In this two cases what we should use? What or Which?     1) what/which email program do you use   2) what/which accounts have this problem   Thanks.


Were Avengers aware of sacrifice needed for soul stone?

In Avengers Endgame we see that Natasha and Hawkeye were tasked to get the soul stone. After events of Avengers Infinity War, especially after events on Titan, everyone knows that soul stone needs sacrifice if it were to be taken from Vormir.    So the question is when Natasha and Hawkeye were sent for it, did they already know about sacrifice thing? If they knew, why they fought for sacrificing themselves in vormir and not planned who will die earlier?


how to invoke vim with line numbers shown

I know that from inside vim the command to display line numbers is :set number.  Is it possible to invoke vim so that line numbers are shown from the beginning?


Running a command a different user using `su` gives "standard in must be a tty"

I am using  to automate db2 interface testing with our product. I am able to run the command using su - db2inst1 -c "/home/db2inst1/sqllib/bin/db2 list database directory" but when I try the same command with the staf interface I am getting the error:  standard in must be a tty   I commented the "Defaults requiretty" in /etc/sudoers, but still have the same issue.


Is it OK to leave an airport while in transit?   I am from Algeria and am going to fly to Turkey with a 14-hour layover in Amsterdam. Can I leave the airport without issues?


Debian/Ubuntu - Recreate Package Database From Restored /var/lib/apt/lists

For reasons that I won't bore you with, I would like to back up /var/lib/apt/lists to back up all of the downloaded manifests and then restore them back to that state should an apt-get upgrade fail for some reason. So ok I tar the files up but when I restore them the system still uses the updated version of the manifests. I'm assuming after they have been downloaded these manifests are ingested into an internal database for ease of access. So how do I kick off that ingest process without doing an apt-get update?


Help deriving that $\mathrm{sign} : S_n\to \{\pm 1\}$ is multiplicative

$\def\sign{\operatorname{sign}}$     For homework, I am trying to show that the map $\sign:S_n \to \{\pm 1\}$ is multiplicative, i.e. that for any permutations $\sigma_1,\sigma_2$ in the symmetric group $S_n$, we have $$\sign(\sigma_1 \sigma_2) = \sign\sigma_1 \sign\sigma_2.$$   The definition for $\sign$ that I am using is that if $\sigma = \gamma_1\cdots \gamma_k$ is the cycle decomposition of $\sigma \in S_n$ and $\ell_1,\ldots,\ell_k$ are the cycle lengths of $\gamma_1,\ldots,\gamma_k$ respectively, then   $$\sign(\sigma):= (-1)^{\ell_1-1}\cdots(-1)^{\ell_k-1}.$$  I showed first that the formula holds for two transpositions. Then I showed that it holds for a transposition and a cycle.  However, I got stuck trying to show that the formula holds for a transposition and a product of two cycles, i.e. $\sigma_1 = \tau$ and $\sigma_2 = \gamma_1\gamma_2$. I feel like this case is much more complicated than the others which makes me think I am taking the wrong approach.  If $\tau,\gamma_1,\gamma_2$ are all disjoint then the formula holds trivially because then $\gamma_1\gamma_2\tau$ is the cycle decomposition of $\sigma_1\sigma_2$. Otherwise they are not all disjoint, at which point it seems to get complicated very quickly and I don't know how to proceed.  Would someone please help me understand the best approach to this proof?


where to put the possessive "s" with an appositive parenthetical

Say I have a gym instructor called Anne and it's her birthday. I want to convey that to someone who doesn't know who Anne is in one sentence.   In speech, I would probably say, "it is Anne, my gym instructor's, birthday." But, in writing, that seems wrong; it puts the possessive "s" in the subclause only.   So what is the correct way to write a sentence like this? "It is Anne's, my gym instructor's, birthday"? "It is Anne's, my gym instructor, birthday"? Something else?


Install MS Truetype Fonts system-wide for all users

I would like to install the MS Truetype Fonts that come through the package ttf-mscorefonts-installer, so I did:  sudo apt-get install ttf-mscorefonts-installer   Accepting the license, the process completes without any errors. The fonts end up in     /usr/share/fonts/truetype/msttcorefonts   as expected. Just to be sure, I also did a  sudo fc-cache -f -s -v   which among other things says in its output:     /usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs   So far, so good (and inline with question ) However, when I then open any font dialog (e.g. in OpenOffice or the font dialog of the terminal) I don't see all of the new fonts. For Arial, the standard form is missing, but bold and italic are there. Times New Roman is missing altogether.  I can use nautilus to browse to the font directory, double click the Arial.ttf file and see the font in all its beauty. I can even click the install button then and the font is copied over to my personal ./fonts directory and from there on visible to my apps. But it is not picked up from the system directory.  How do I get these fonts available system-wide for all users?


A source is emitting photons towards all directions. An observer sitting at millions of light years away can receive the photon from all the places. There will be infinite directions from where the photons can be observed. Is it possible if the source is emitting photons towards infinite (not huge) directions?


What is the advantage of non-negativity in matrix factorization?

I am wondering why matrix factorization techniques in the machine learning domain almost always expect the provided matrix to be non-negative. What is the advantage of this constraint?  Background: I want to use matrix factorization algorithms for a sparse user-item matrix containing positive and negative implicit feedback. Is there any another possibility to set interactions with negative indications apart from fields that denote that no interaction happened between the user and the item?


What is the keyboard shortcut to minimise a window to launcher in unity?

In 10.10 that I was using before 12.04, you could use Alt+F9 to minimize a window to the task bar.   In 12.04 Meta+Ctrl+↑/↓ maximizes and unmaximizes a window. If you have a numeric keypad you can use Ctrl+Alt+0 to minimize to launcher.   On my netbook I don't have a numeric keypad and the normal numbers do not work with the above shortcut. How can I minimize windows with a keyboard shortcut?


Syntax highlighting in app differs from normal web view

I've just noticed viewing a Python  (since modified: see ) on Stack Overflow that the Android app shows new (incorrectly) highlighted as a keyword which differs from the normal render from the web page.    While it should look more similar to:    Notice no highlighting for new.


What is the difference between someone and one?

I ran into this sentence written by a student:  This is an ordinary anxiety that comes and goes and does not interfere with someone’s life.  I feel that "someone's" should be replaced with one's, but I don't know the rule. When do we say someone and when one?


Does a Beast Master Ranger's Companion Level Up With Them?

As the title states, when you choose a Ranger archetype at 3rd level and choose Beast Master to gain a companion, does the companion level up with you as you progress?


In one of the grammar books I study I found a following example: In my previous job I was confined to doing only one thing. I'd say that confined to do is the correct way to say it. I always thought that we can never use to + gerund, or can we? And if so, then what is the rule? Thank you in advance.


A point on a disc travelling at the speed of light

This might be a duplicate of .  I had an interesting thought experiment: suppose that you have a disc of a 1 m radius, where a point P2 inside the disc travels at the speed of light. You have a point P2 on the edge of the disc, that should travel at the speed of light as well (given the fact that nothing can travel faster than the speed of light).    Applying the formulas of rotational speed, I get the following:    For P2: v2 = c d2 = Π t2 = Π/c    For P1: d1 = 2Π t1 = t2 v1 = d1 / t1 = 2c -> which is wrong    This seems to be quite a paradoxical concept: the distance is known, the speed of the points must be equal, but the time in which the distance traveled must also be the same. So it seems to me, that somehow either space or time must be altered, so that the formulas remain valid.  Is this in any way linked to spacetime or the theory of general relativity? Is this a valid thought experiment, or am I missing something?


Is $\frac00=\infty$? And what is $\frac10$? Are they same? Does it hold true for any constant $a$ in $\frac{a}0$

I know that $\lim_{x\to0}\frac{x}{x}=$ 1.  But in my text book, it is written that it is $\infty$ and even $\frac10=\infty$.  But how is it possible? And are they both same? What is the difference between indeterminate and undefined?  And if they are $\infty$ then what is the reason? And why can't we define something for these numbers?    Now see that book says when $x=0$, $t=\infty$. If it is wrong, why did they just write it?


Create Geospatial PDF (GeoPDF) is greyed out in PDF export options in QGIS 3.10

I installed QGIS 3.10 standalone version today and I know it has a new feature introduced in this version to export GeoPDF. But for some reason, it is greyed out.


Terminal Displays My Roommate's Computer

I don't know how long ago this happened, but today I realized that when I open up terminal it no longer says Matthew-MacBook:~matthew$  as it used to. Instead, it appears to have synched up with my roommate's macbook pro. It now displays: $Gabriels-MBP:~matthew$  I've restarted my mac but it doesn't change the name. I've tried the suggestions suggested   posts sudo scutil --set HostName Matthew-Macbook  But no effect! echo "$PS1" returns \h:\W \u\$


I am new in the world of Latex. I am trying to create a table as in the picture but I am not able to. Could someone please help me to create this table? Thanks in advance.


How do I make my terminal display graphical pictures?

This is a quick mockup I copy and pasted together. I imagine this being super cool and useful.  Does something like this exist already?


Norm with bold bars without bold text inside

I defined my norm as: \newcommand{\norm}[1]{\left\lVert#1\right\rVert}  And my bold norm as: \newcommand{\bnorm}[1]{\boldsymbol{\norm{#1}}}  But I want to write something like \bnorm{x^{(i)}} where I don't want the exponent to be bold. I tried \boldsymbol{\left\lVert} x \boldsymbol{\right\rVert}  but due to the closing brackets left doesn't find right and it gives an error. Any ideas?


I'm trying to replace all instances of $timestamp = mysqli_real_escape_string($db_conx, $_POST['Timestamp']); with $timestamp = date("Y-m-d H:i:s"); in all files under /home/user/public_html/  I have tried many variations of the below command but can't seem to get the escaping right!  find /home/user/public_html/ -type f -print0 | xargs -0 sed -i 's/\$timestamp = mysqli_real_escape_string(\$db_conx, \$_POST['\''Timestamp'\'']);/\$timestamp = date(\"Y-m-d H:i:s\");/g'


MySQL - How many slaves can be handled by a master?

Can someone please put some highlights on this, How many slaves can be handled by Master.  I have 100+slaves for a single master, how this process will work?


How to choose significance level for a large data set?

I am working with a data set having N around 200,000. In regressions, I am seeing very small significance values << 0.001 associated with very small effect sizes, e.g. r=0.028.  What I'd like to know is, is there a principled way of deciding an appropriate significance threshold in relation to the sample size? Are there any other important considerations about interpreting effect size with such a large sample?


Good methods for density plots of non-negative variables in R?

plot(density(rexp(100))   Obviously all density to the left of zero represents bias.  I'm looking to summarize some data for non-statisticians, and I want to avoid questions about why non-negative data has density to the left of zero.  The plots are for randomization checking; I want to show the distributions of variables by treatment and control groups. The distributions are often exponential-ish.  Histograms are tricky for various reasons.    A quick google search gives me work by statisticians on non-negative kernels, e.g.:  .    But has any of it been implemented in R?  Of implemented methods, are any of them "best" in some way for descriptive statistics?  EDIT:  even if the from command can solve my current problem, it'd be nice to know whether anyone has implemented kernels based on literature on non-negative density estimation


Thanks for checking this video out VS checking out this video

I heard both phrases in some YouTube videos and I am not sure which one's correct.  Apart from the answer, could you tell me what I should be googling for in order to understand the grammar related to this question?  I don't think it's a duplicate and I don't understand why it's marked as one. Please note that this is not the "check" vs "check out" question. I use "check out" in my example. The question here is the order of words; where comes the object,  between "check" and "out" or after "check out". As far as I know, it's a phrasal verb and I wanted to know where the object should come: before or after the particle? At the moment of asking this question, I didn't know it's called "phrasal verb" so it was difficult to find related articles on Google.


How to convert string of digits to List in C#?


Why does the width of the depletion region of a p-n junction diode increase when it's reverse biased by connecting it to an external voltage source?


Windows 10: how to disable "Roblox" and other ads from start menu when the various anti-ad settings are already operative?

Today (August 2020) I opened the Start Menu in Windows 10 and typed the beginning of a program name, in order to launch the program. After a couple keystrokes a "Roblox" ad suddenly appeared beside the search results. What's strange is that in Settings -> Start, the option Show suggestions occasionally in Start is disabled. Also all the settings described in the answers to  have already been disabled. How come I'm seeing this ad then? Are there other anti-ad options that I need to set? The ad cannot be right-clicked.(Windows is reaching the ultimate bottom in professionality...). Edit: I should have taken a snip of the ad. Now it isn't appearing any longer. But here's the rough position where it appeared, in red:  Thank you.


How do I set up Braid to use a gamepad on PC?

So I asked  about Braid on PC/PS3 a while back, and one of the answers pointed me to the MotionInJoy drivers that allows PS3 controllers to be used on a PC. I've installed them properly and have used my DualShock 3 in a few games, but I can't figure out how to enable it when I'm playing Braid!   There doesn't seem to be any menu item to select an input type, which begs the question - is Braid not detecting my controller for some reason, or does Braid simply not allow you to use anything but the keyboard for input?


Cannot downgrade wpa_supplicant to fix Wi-Fi connection to a corporate network (WPA2/PEAP with no CA certificate) in Ubuntu 18.04

I recently upgraded my Ubuntu from 16.04 to 18.04 (clean install, full wipe). Now I can no longer connect to the corporate network at my office (perhaps related to these bugs: , ). What proved to fix this issue in Ubuntu 16.04 is the answer to ; Downgrade wpa_supplicant to 2.1.  However, even with the linode repository, this fix can no longer be applied. There is no version for wpa_supplicant below 2.6 to the best of my knowledge for Ubuntu 18.04.  My question is this: How can I downgrade wpa_supplicant to 2.1 for Ubuntu 18.04?  Configuration needed for corporate the wifi connection:   Security: WPA & WPA2 Enterprise Authentication: Protected EAP (PEAP) Checkbox No CA certificate required. Inner authentication: MSCHAPv2


How to change login screen resolution on Ubuntu 20.04

I use an LG Electronics 34" monitor, but the resolution is set by default to 1920x1080. I can set to 2560x1080 by adding the following lines in my .profile. xrandr --newmode "2560x1080_60.00"  230.76  2560 2728 3000 3440  1080 1081 1084 1118  -HSync +Vsync >/dev/null 2>1 xrandr --addmode HDMI-1 2560x1080_60.00>/dev/null 2>1 xrandr --output HDMI-1 --mode 2560x1080_60.00 >/dev/null 2>1  I want to set the login screen resolution to 2560x1080.


Why I can't divide by y in this equation: 4y = y?

I have this equation  $$   4y = y $$  If I divide by y in both sides I would get this: $$ 4 = 1$$  And this does not have sense.  I know that the solution is 0 but why I get this answer when dividing by y. What's the logic behind?


Name changed in passport, do I have to have my US visa changed as well?

I just renewed my Bajan passport with my new last name (for example "Keith Robert Stone" changed to "Keith Robert Stone Foster"). Do I have to change my US Visa to match my new name? I still have 7 years left on my visa.


adjective to describe someone who "loves life"

I'm looking for an adjective to describe someone who "love life" meaning they love the very fact of being alive, are excited to experience the possibilities of living.  I'm not talking about people loving THEIR personal lives (so words such as happy or fulfilled wouldn't work here) but rather loving life in itself.  This word may be used in a sentence like: " I wish I could be like John he really is a (...) person"


At page 17 of Munkres' Elements of Algebraic topology it says, referring to fig. 3.6, that "the diagram does not determine [the torus]. It does more than paste opposite edges together":   Is it so? I tried to glue them together, but end up with a normal torus.


Hy, I'm trying to get item from firebase. I have a setter and a getter that I set true or false depending on whether the variables are equal or not. The getter return me always false even if the variables are the same. This is my content in my database:    This are getter and setter:  public boolean getSaved() {         return isSaved; }  public void setSaved(boolean saved) {         isSaved = saved; }   This is the function where a I get data from database:  public void RegisterUser(final Data data, final Context c, final int position){          final ArrayList<String> Creator = new ArrayList<>(9);          final Registrazione reg = new Registrazione();           databaseReference.child("Torneo").addListenerForSingleValueEvent(new ValueEventListener() {             int i=0;             @Override             public void onDataChange(DataSnapshot dataSnapshot) {                 for(DataSnapshot DS: dataSnapshot.getChildren()){                      if(i<= position){                        Creator.add(i, DS.child("nameCreator").getValue(String.class));                       i++;                     }                 }                  Log.d("prova", Creator.get(position));                 if (Creator.get(position) == "jj") {                     reg.setSaved(false);                 } else {                     reg.setSaved(true);                 }             }             @Override             public void onCancelled(DatabaseError databaseError) {             }         });       }   And this is the control:  if (reg.getSaved()) {     Toast.makeText(c, "registration successful", Toast.LENGTH_LONG).show(); }else{   Toast.makeText(c, "You are already registered", Toast.LENGTH_LONG).show(); }   Thanks for the answers.


Notation for differential equation involving inverse functions

I can not figure out how to write “find $f(x)$ such that $\frac{df}{dx}$ is equal to the inverse function of $f(x)$”, or $f^{-1}(x)$)  I am not looking for the answer to this problem, just how you would write it in notation with $y^\prime$ and such.


how can install this file and remove this error

mhn@mhn-Inspiron-560s:~/Desktop$ sudo apt-get install openmpi-3.0.1rc2 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package openmpi-3.0.1rc2 E: Couldn't find any package by regex 'openmpi-3.0.1rc2'


Algorithm to decide if a CTL formula can also be expressed in LTL and translate it?

So I'm trying to solve some CTL formulas on a given system using model-checking. I'm trying several different solvers; some of them only accept LTL as input, but have some nice partial-order reductions built-in that I would like to use and should perform well on my systems that feature heavy interleaving. We know the intersection of LTL and CTL is non-empty (e.g. invariants lie there) but do you know of an algorithm to determine if a CTL formula can also be expressed in LTL, and to translate it if so ?


Is there some way I can run a Bash script as root without being prompted for a password every time? I'm attempting to automate the process of starting my LAMPP install, which requires me running a couple of sudo commands to start and stop services. Optimally, I'd like to build this into an executable file, so all I'd have to do is click an icon. ;)  Obviously, I have the password, so that's not an issue. I just want to take my laziness one step farther and not have to enter it every time I start my localhost. After all, that's what programming is all about, right?


public class cripto {        static String chiave, mex;     static int lungC,lungM, lungAl,lungCh;     static String[] aChiave, aMex;     static String[] alfabeto = {"a", "b", "c","d", "e", "f","g", "h", "i","l", "m", "n","o", "p", "q","r", "s", "t","u", "v", "z"};     public static void main(String[] args) {         // TODO Auto-generated method stub      chiave=JOptionPane.showInputDialog(null, "Inserisci chiave di criptografia di lunghezza: "+alfabeto.length);     System.out.println("chiave: "+chiave);     lungC=chiave.length();     for (int i=0; i<lungC; i++){         aChiave=chiave.split("");         System.out.println(i+": "+aChiave[i]);     }     mex=JOptionPane.showInputDialog(null, "Inserisci messaggio");     System.out.println("messaggio: "+mex);     lungM=mex.length();     for (int i=0; i<lungM; i++){         aMex=mex.split("");         System.out.println(i+": "+aMex[i]);     }     lungAl=alfabeto.length;     lungCh=aChiave.length;     System.out.println("Lunghezza array alfabeto: "+lungAl);     System.out.println("Lunghezza array chiave: "+lungCh);     String[] aCripto=new String[lungM];      if(aChiave.length==alfabeto.length){         for(int i=0;i<lungM;i++){             for(int j=0;j<alfabeto.length;j++){                 //System.out.println(i+": "+h+" - "+h1);                 if(aMex[i]==alfabeto[j]){                     aCripto[i]=aChiave[j];                 }             }         }     }else{         JOptionPane.showMessageDialog(null, "Lunghezze diverse");     } }   }  Hy guys, I Made this simple criptography's program but I have the problem that in the for, the program doesn't enter in the "if" even if the equality is verified.                   if(aMex[i]==alfabeto[j]){                     aCripto[i]=aChiave[j];                 }   can someone help me? sorry for my bad english.


Uncertainty principle in quantum entangled states

In theory, one could create entanglement for two particles for any observable by taking two normalized eigenvectors $\psi_1$, $\psi_2$ of such observable and considering: $$\psi=\frac{1}{\sqrt{2}}(\psi_1\psi_2+\psi_2\psi_1)$$  Imagine that you could create quantum entanglement for two particles for both position and momentum. This is, a two-particle state in which a measure of $\psi_1$ in position (or momentum) for particle A would imply $\psi_2$ for particle B and vice versa. Furthermore, you are able to measure at exactly the same time position (with arbitrarily good accuracy) for A and momentum (with arbitrarily good accuracy) for B (and therefore for A). However, Heisenberg principle states: $$\Delta x\Delta p\geq\frac{\hbar}{2}$$  Why would the uncertainty principle not be violated? Is such experiment even possible to create?


What can interfere with glossaries to prevent printing?

I have the strange experience that from the combination      \glossarystyle{altlisthypergroup}     \clearpage     Printing acronyms     \printglossary[type=acronym]   only the debug message is printed, the glossaries not.  Even, the \printglossary leads to hanging. At the same time, in the text commands like \gls{} work as expected.  Any advice, what other package can interfere with glossaries? (It is part of a bigger project, the MWE works as expected.)    I changed to command line version from TeXstudio. I receive the output  makeglossaries DSc2 makeglossaries version 2.12 (2014-01-20) added glossary type 'main' (glg,gls,glo) added glossary type 'acronym' (alg,acr,acn) makeindex  -s "DSc2.ist" -t "DSc2.alg" -o "DSc2.acr" "DSc2.acn" This is makeindex, version 2.15 [TeX Live 2013] (kpathsea + Thai support). Scanning style file ./DSc2.ist.............................done (29 attributes redefined, 0 ignored). Scanning input file DSc2.acn....done (9 entries accepted, 0 rejected). Sorting entries....done (36 comparisons). Generating output file DSc2.acr....done (15 lines written, 0 warnings). Output written in DSc2.acr. Transcript written in DSc2.alg. Warning: File 'DSc2.glo' is empty. Have you used any entries defined in glossary 'main'? Remember to use package option 'nomain' if you don't want to use the main glossary.   What I do not understand, that if there are entries accepted, and sorted, why do I receive the warning about empty .glo file? And also, why the pdflatex hangs if I try to continue with using pdflatex again?


What's the difference between fit and fit_transform in scikit-learn models?

I'm a newbie to data science, and I do not understand the difference between the fit and fit_transform methods in scikit-learn. Can anybody explain simply why we might need to transform data? What does it mean, fitting a model on training data and transforming to test data? Does it mean, for example, converting categorical variables into numbers in training and transforming the new feature set onto test data?


Does $\mathbb{Q}(\sqrt{m_1},...,\sqrt{m_k})$ has degree $2^k$ over $\mathbb{Q}?

Let $m_1 ,...,m_k$ be $k$ distinct squarefree integers $\neq 1$ which are pairwise coprime.  Then is $[\mathbb{Q}(\sqrt{m_1},...,\sqrt{m_k}):\mathbb{Q}]=2^k$?  Intuitively, I guess that the statement is true, by observing the result when $k=1,2$, but I have trouble actually proving this for the general case.  What I know is that $\mathbb{Q}(\sqrt{m_1},...,\sqrt{m_k})$ is Galois over $\mathbb{Q}$, so $[\mathbb{Q}(\sqrt{m_1},...,\sqrt{m_k}):\mathbb{Q}]=|\mathrm{Gal}(\mathbb{Q}(\sqrt{m_1},...,\sqrt{m_k})/\mathbb{Q})|$ and every element of $G=\mathrm{Gal}(\mathbb{Q}(\sqrt{m_1},...,\sqrt{m_k})/\mathbb{Q})$ sends $\sqrt{m_i}$ to either itself or $-\sqrt{m_i}$ for each $i=1,...,k$, so $G$ has at most $2^k$ elements.  I think the key of the proof is to prove that if $\phi(\sqrt{m_i})$ is given, then there is always an automorphism $\phi$ of $\mathbb{Q}(\sqrt{m_1},...,\sqrt{m_k})$ having such value of $\phi(\sqrt{m_i})$, and here is where I stuck.  Does anyone have ideas? Any advice or comments will be helpful!  If it is hard to give the answer here directly, then any bibliography for reference is also acceptable.


Are Midi-chlorians able to be infused or transplanted?

The more questions about the Force I read in here, the more Midi-chlorian count is used as a reference. As I understood, Midi-chlorians are the measurement for the Force power level of one user.  As I remember, they are microscopic life-forms in the red blood cells that talk spiritually to the user.  This then leads me to a question, if it is possible to give someone else an infuse of blood with Midi-chlorians. That then leads me to another questions. What happens if you use Force blood to rescue someone without it? Do already-infused get stronger? As I only know the films and very few other cannon material (games), I have to ask you:  Are Midi-chlorians able to be infused to another body and do they have an impact to that another being?


Why does a Devil Fruit's power nullify only if the user is knocked unconscious and not when he sleeps?

I have noticed something rather strange: Why do devil fruit users abilities nullify when they are knocked unconscious but not when they fall sleep?  Take Moria for example. Moria had control of all the shadows when Luffy knocked him out, allowing the shadows to escape, so why does sleeping not do the same? Certainly he had to have fallen asleep at some point in time before Luffy had knocked him out.  Same is the case with Sugar. She was scared unconscious by Usopp and all the toys turned back to their human forms. Is there something about being knocked unconscious and falling asleep that is different in the One Piece Universe?


what is the meaning of the word "regression" in "linear regression"?

I understand the algorithm of linear regression, how it works and what it accomplishes, and how to apply it in ML  but what is the meaning of the word "regression" itself in that context? what's the history or etymology in using that word?  or put slightly differently, how did the word 'regression' came to mean learn a formula from independent variables to an outcome variable? the word itself seems to describe the concept rather poorly


SQL Server --- How to use a database alias for quick coding?

Hopefully I'm using this term correctly. Okay as most people know if you have long table names like mylongschema.longtablename ... You can alias the table for quick reference such as mylongschema.longtablename ml ... select ml.* ... etc. Obviously the same goes for fields/ columns... I'm wondering if you can alias databases the same way? I have queries that frequently reference one of three long-named databases. Is there a way to alias these 3 database as db1, db2, db3 ... or whatever ... at the top of my Query Editor in SSMS .... so I can just type db1.longschema.longtablename .... Thanks!


How can I compute the limit $\lim_{n\rightarrow\infty}\left(1+\frac{1}{n}\right)^{n^2}$? Of course $\lim_{n\rightarrow\infty}\left(1+\frac{1}{n}\right)^{n} = e$, and then $\left(1+\frac{1}{n}\right)^{n^2} = \left(\left(1+\frac{1}{n}\right)^n\right)^n$. Since the term inside converges to $e$, the whole thing is $e^n$, and can I conclude that the limit is infinity as $n\rightarrow\infty$?


Tizkit: Package pgfkeys Error: I do not know the key '/tikz/shape1'

I'm trying to use tikzit, and I created a shape (basically a new kind of node). The shape is located into /home/user/.config/tikzit/shapes/shape1 but tikzit (and pdflatex as well, obviously) doesn't seem to find it. I have tried both with debian8 and fedora21, but the problem seems to persist.   \documentclass{article} \usepackage[svgnames]{xcolor} \usepackage{tikz} \usetikzlibrary{decorations.markings} \usetikzlibrary{shapes.geometric} \pagestyle{empty}  \pgfdeclarelayer{edgelayer} \pgfdeclarelayer{nodelayer} \pgfsetlayers{edgelayer,nodelayer,main}  \tikzstyle{none}=[inner sep=0pt]   \tikzstyle{node1}=[shape1,fill=White,draw=Black]   \usepackage[graphics,tightpage,active]{preview} \PreviewEnvironment{tikzpicture} \newlength{\imagewidth} \newlength{\imagescale}  \begin{document} \begin{tikzpicture}     \begin{pgfonlayer}{nodelayer}         \node [style=node1] (0) at (-1.75, 1) {};     \end{pgfonlayer} \end{tikzpicture} \end{document}


I used the above GFCI/RCD (up to 250v) socket tester on the 240v black and red live wire of the US split phase ac power system. When I connect the ground, all indicator lights (3 red) got on indicating "Live/Grd Reverse, Missing GRD" although it is connected properly.  What is inside the socket tester? Does it have a live and neutral leg such that it should only be used for ac system with polarity? How about if you use it on the red and black 240v phase to phase? Why would all the indicators light become on (3 red lights)?  The following is the specs of it:  Specifications: Brand Name: HABOTEST Color: Black Material: Flame Retardant ABS Plug Type: US Voltage: 48V-250V 45-65Hz RCD Test: >30mA (EU/UK Plug) RCD Working Voltage: 220V±20V GFCI Test: >5mA (US Plug) GFCI Working Voltage: 110V±20V Voltage Measurement: 48V~250V / 45~65Hz    Accuracy: ±(2.0%+2) Working Environment: 0°C ~ 40°C, 20% ~75%RH Storage Environment: -10°C ~ 50°C, 20% ~80%RH Safety Rating: EN61010-1,-2-030, EN61326-1,CAT II 300V Item Size: 62 * 65 * 55mm / 2.4 * 2.6 * 2.2in Item Weight: UK 64g/2.3oz, EU 59g/2.1oz, US 53g / 1.9oz Package Size: 7.5 * 7.4 * 7.3cm / 3.0 * 2.9 * 2.9in Package Weight: UK 90g/3.2oz, EU 86g/3.0oz, US 79g / 2.8oz


How do you redirect to a page from another page with JavaScript?


Unable to set 2560x1440 resolution on new monitor

Recently bought a new monitor (Lenovo Q27-q10) and cannot get it to display at 2560x1440. When I go to change screen resolution, I'm only presented with up to 1920x1080. If I go into the intel graphics properties it still only shows up to 1920x1080 and if I try and set a custom resolution it says that it exceeds the maximum bandwith.  My setup is a lenovo ideapad 720s 141kb i5-8250u that has intel uhd620 graphics along with an mx150. I am running windows 10 and attempting to connect via supplied hdmi cable. In terms of troubleshooting, I have tried installing all the necessary drivers for the monitor and it hasn't helped.  Interestingly I plugged in via hdmi to my work laptop (lenovo t470s running windows 7!) and had no problem. Monitor displays at 2560x1440. So it seems like it's an issue with my laptop rather than the monitor itself.  Happy to supply any information as I realise I was quite brief here!  Many thanks in advance.  Update: Following the comments I purchased a usb-c/displayport cable to try out (my laptop had no displayport but had usb-c and the monitor had a displayport). It works perfectly now, displaying 2560x1440 at 7hz no problem!


Java regex not respecting the specified quantifier

I have the following line from a CSV file:  Name,Age,Country,State,Zip,Phone,Email,Address  I am using the following Java regex to capture Name,Age,Country into 1 group but it always captures this:  Regex --> ^((?:.*,){3})  Result --> Name,Age,Country,State,Zip,Phone,Email,  Why is it not respecting the {3} quantifier I am using?


accessing the name and album info for a bunch of files

I'm trying to build a quick and dirty app, either in C# or VB.net. I need to load up either a list or an array (or something else I don't know about) with the corresponding data from the bunch of mp3 files so I can sort it based on album, then add an incrementing number to the beginning of the song title. I've ran into a bit of trouble and would appreciate any help. I think I should be able to finish it up but I'm having trouble with extracting the album name of the mp3 files. Any help rendered would be much appreciated.


What ways exist to control (enable/disable) automatic startup of applications at the end of system boot?

I am running Windows 7 Home Premium (64-bit). I remember the days when on Windows 95 it was possible to cause programs to launch once the system had finished booting by placing a link to such applications in a folder known as the Startup folder. On my system there seems to be such a folder, namely C:\Users\MyUserNameHere.MyPCNameHere\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup, but it is empty despite the fact that several programs on my system load into memory once the PC has finished booting up.  What I would like to know is, on Windows 7, to have an application start up automatically after system boot, is it necessary to find the relevant option in the application itself and enable/disable it via the application's GUI, or is there also some other place on the system which can be used to control this behavior, listing every application for which can have this functionality enabled/disabled. Also, is the Startup folder nowadays an obsolete feature, or is it still possible/common to use it for starting applications automatically?  Thanks.


Which are the skills and digital skills related to Graphic Design that should be included in a resume?

If I do graphic design and I want to include on my resume a list of digital skills that indicate my proficiency level, how would I put this, e.g.: is it better to write:  1) a list of softwares and/or programming languages, such as the following: -  "Photoshop - Illustrator - Inkscape..."   2) a list of "areas of application", like in the following: "Typography - Brochure - Social Media..."  Which (generic) skills and digital skills, related to graphic design, should be included in a resume?


Why does Kubuntu and Xubuntu 16.04 LTS support end sooner than the official Ubuntu EOL date?

I was searching info for 16.04.3 LTS (for Kubuntu & Xubuntu). It was great to find out about the cool features of those Ubuntu distributions.  However, I found something unusual; the EOL date of both is on April 2019, the exact same date as Trusty, not on the official EOL by Canonical, which is on April 2021.  Kubuntu (EOL date: April 2019):    Xubuntu (EOL date: 3 years after release, April 2016 + 3 yrs = April 2019):     Ubuntu (EOL date: April 2021, official date by Canonical):    Can someone tell me why the EOL date of both is sooner than the official Ubuntu one?


Alright, since Windows 10 is just FULL of spyware and I don't want to use it, can I run Ubuntu 17.10? Specs:   OS: Windows 10 Enterprise 64-bit CPU: Intel Pentium J3710 1.60 GHz (bios says its N3710 I don't know who to trust) RAM:4GB DDR3 1599Mhz (11-11-11-28) Motherboard: Acer Stego_BA (CHV) GPU: Nvidia GeForce 920mx 2GB, and well, Intel HD Hard Drive:931GB TOSHIBA MQ01ABD100 (SATA)


How to create a command that periodically stops and disables windows update

Yes, yes. I shouldn't do that.. Whatever. I've heard it a million times and chances are you wont convince me today. So:  Previous answers from years ago do not work because windows update service reenables itself everyday regardless of whether or not you disabled windows update service  I want to create a batch file (?) that will periodically (every 15 minutes maybe) stops and disables the windows update service. There is no point in doing it manually because windows re-enables it everyday or something like that.  What are the commands for stopping and disabling windows update service How can I make it repeat every 15 minutes How do I turn it into a file that I can put in my startup folder (ensure it runs in admin mode)


How to add field help text in visualforce page

I want to refer standard help text style in visualforce page, how to realize this?


Do I need a transit visa for UK while flying via Stansted to Ireland?

I am a Turkish citizen who is holding a Turkish Passport and a GNIB card for Ireland as I am married to an EU citizen.   I have a similar situation as you had. I would like to fly from Hamburg-Stansted-Cork/Ireland. Normally, I flew before via Heathrow with my card and together with my spouse, however I am not sure about Stansted airport as there is no transit area.   Did you fly without a transit visa via Stansted to France at the end?   Thanks,  Ozden


Installing Broadcom Wireless Drivers for ubuntu 15.04

I just followed the instructions to install Broadcom Drivers,every thing is working but at last instruction sudo apt-get install <bcmwl-kernel-source>,it just say:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package bcmwl-kernel-source   And no thing happened after I rebooted my system.  I use Ibuntu 15.04 and pci id is [14e4:4365] (rev 01)


Unambiguous way to say 'any day within a range of days"?

What is the unambiguous way to say any day within a range of days? I want to say you can choose any day: 1,2,3,4 or 5th of Aug.   You can choose any day between Aug 1st and Aug 5th. You can choose any day from Aug 1st to Aug 5th.  You can choose any day within Aug 1st and Aug 5th.   Seems to me that 1 is ambiguous. The person might understand pick one of the two days.  How about options 2 and 3?


Is there such a thing as a switch that can be actuated automatically?

I'm interested in a toggle switch that can be toggled without user input. That is, the physical state can be toggled electrically. It would need to incorporate some sort of motor or magnetic actuator. My google-fu is weak in this area, and I haven't been able to come up with the correct combination of search terms.  Note that I'm not talking about a relay; I'm talking about a normal toggle switch:    Except that it can be toggled without user input. As in, the lever physically moves. Like a  except that the mechanism is internal to the switch.


Is there a formula to get $r+2r^2+3r^3+\dots+nr^n$ provided that $|r|<1$?  This seems like the geometric "sum" $r+r^2+\dots+r^n$ so I guess that we have to use some kind of trick to get it, but I cannot think of a single one.  Can you please help me with this problem?


Can I use the same key pair for authentication and Diffie-Hellman?

Assume Alice has a key pair $(A, a)$ and Bob has a key pair $(B, b)$, where $A = Ga$ and $B = Gb$. In general, the basic rule of crypto says that we should not use the same key for different operations, like in signing and encryption, but I wonder whether in my use case it would be actually possible to use it. Below, I describe the simplified version of my use case. So Alice and Bob are communicating over an anonymous network, like for example Tor. Also, Alice and Bob from time to time publish (independently of course) some data signed with their private keys. Alice doesn't know Bob, and Bob doesn't know Alice. They only are aware of their advertised identity keys A and B. Alice when sending the message $m$ to Bob uses Diffie Hellman to derive a shared key. First, for each new message, she generates a new ephemeral key $x$ and computes the key shared with Bob as $k = KDF(B^x)$ (alternatively, maybe she could first apply some Hash function on B, i.e., h = H(B) and compute $k = KDF(h^x)$, not sure? ). Next, Alice encrypts $m$ as $c = AES_k(m)$. She concatenates $g^x$ and $c$ as $v = g^x || c$ and sends it to Bob. So, in my use case, Alice doesn't reveal any information about herself due to the freshly generated ephemeral key and the anonymous channel (which I assume is secure). She doesn't learn anything about Bob others done his identity public key $B$. Also, as long as Bob's secret key is kept safely no one should be able to decrypt the content of $c$ except for Alice and Bob, which is crucial. So, is there anything that can go wrong here? If for example Bob published let's say a document signed with his private key $b$, does this allow anyone to infer any information about $m$? In general, my question is whether I'm missing any attack which might compromise the confidentiality of the communication between Alice and Bob? Many thanks in advance!


Does DNA have the equivalent of IF-statements, WHILE loops, or function calls? How about GOTO?

Does DNA have anything like IF-statements, GOTO-jumps, or WHILE loops?  In software development, these constructs have the following functions:   IF-statements: An IF statement executes the code in a subsequent code block if some specific condition is met. WHILE-loops: The code in a subsequent code block is executes as many times as specified, or as long as a specific condition is met. Function calls: The code temporarily bypasses the subsequent code block, executing instead some other code block. After execution of the other code block the code returns (sometimes with some value) and continues the execution of the subsequent block. GOTO-statements: The code bypasses the subsequent code block, jumping instead directly to some other block.   Are constructs similar to these present in DNA? If yes, how are they implemented and what are they called?


Move pivot to bottom or top of object/selection

Sorry if this has been asked many times but I couldnt find the answer that I was looking for.  Coming from Max I used to have scripts that would place the pivot to the left, right, top or bottom of an object by the push of a button. Now im trying to create something similar in blender python but I cant for the life of me figure out how it works.   I've searched online but the answers are all pretty confusing and most of them are written for versions earlier than 2.8.   However I found a script that should place the pivot on the bottom of an object AND doesn't throw an error. BUT actually it doesn't do anything at all either. So i'm wondering why this script won't work for me?   import bpy context = bpy.context  for obj in context.selected_objects:     mx = obj.matrix_world     minz = min((mx @ v.co)[2] for v in obj.data.vertices)     mx.translation.z -= minz   The pivot remains in the center of the object.


How to compare logarithms $\log_4 5$ and $\log_5 6$?

I need to compare $\log_4 5$ and $\log_5 6$.  I can estimate both numbers like $1.16$ and $1.11$. Then I took smallest fraction $\frac{8}{7}$ which is greater than $1.11$ and smaller than $1.16$ and proove two inequalities: $$\log_4 5 > \frac{8}{7}$$ $$\frac{7}{8}\log_4 5 > 1$$ $$\log_{4^8} 5^7 > 1$$ $$\log_{65536} 78125 > 1$$ and $$\log_5 6 < \frac{8}{7}$$ $$\frac{7}{8}\log_5 6 < 1$$ $$\log_{5^8} 6^7 < 1$$ $$\log_{390625} 279936 < 1$$ thats why I have $\log_5 6 < \frac{8}{7} < \log_4 5$.  But for proving I need estimation both logarithms (without this estimation I cannot find the fraction for comparing). Can you help me to find more clear solution (without graphs)


I am recording data every 0.02 seconds and my code to save this information to a tab deliminated file is producing some peculiar results where even though i am adding 0.02 on each time to the time variable it starts being slightly off (i'm aware that when rounded it is essentially the same but it bugs me). How do i get it to look like the corrected data set  output.println(time + "\t" + accelX + "\t" + accelY + "\t" + accelZ); time = time + 0.02;   the output gives me (I left out the other data as it is going in fine)  Time 0.02 0.04 0.06 0.08 0.099999994 0.1199999999   should be  Time 0.02 0.04 0.06 0.08 0.1 0.12


"Favorite fruits are grapes" or "favorite fruit is grapes"

I think I understood the general idea of fruits vs fruit, but what about the situation where you're saying: "My favorite fruits are grape"?   This made me cringe when I saw it in an English course booklet. Would I be correct to assume that, in this case, we would say: "My favorite fruit is grapes"? The reason being that my favorite fruit is. But also, grapes is considered one group or type of fruit here, therefore fruit = is grapes.   Did I explain this correctly? Is this the right assumption? I think that "favorite fruits are..." would be used if you're going to say "grapes and apples".


How do I make all the theorem-alike environments have an ending symbol?

I have a question about making an ending symbol.  It is a LaTex-default that every proof environment has an ending symbol. I want to make every theorem-alike environment such as the example environment have also an ending symbol. But how to manually set this up? Specifically, I want to make all these environments ended by a square symbol.  \newtheorem{thm}{Theorem} \newtheorem{lem}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary} \newtheorem{pro}[thm]{Proposition} \newtheorem{assump}{Assumption} \newtheorem{axiom}{Axiom} \newtheorem*{conj}{Conjecture} \theoremstyle{definition} \newtheorem{defi}[thm]{Definition} \newtheorem{exam}{Example} \newtheorem{exer}{Exercise} \newtheorem*{rem}{Remark} \newtheorem*{notation}{Notation} \newtheorem*{note}{Note}   I am looking for, with gratitude, a comprehensive setup.


Is there a way to let embedded videos (primarily Flash, but I'd prefer something that will also work with HTML5 video) automatically background load, but not start playing until explicitly started?  The typical use case where I want this ability is when opening a number of what I expected to be text pages in separate tabs using middle-clicks only to have something start yapping at me; at which point I need to click through all the new tabs to find and stop the offender.  I'd prefer not to completely block video download to avoid the startup delay if I decide to watch the video when I view the page its embedded in.


Consider the following sentences:  I steer my vehicle as close as possible to the right.  OR  I steer my vehicle as closely as possible to the right.  The first sentence is my version (I am not a native speaker), the second version is the corrected version form an English native speaker. I understand why the correction was made, since the corrector asked herself "How do I want to steer the vehicle? As closely as possible". So "closely" is the adverb to "steer", which makes total sense. However, I still feel like the first version sounds more natural. What if I ask "Where do I want to steer the vehicle to? As close as possible to the right."? Does that make a difference, or am I just kidding myself here?


He just fired his assistant.  He's (he has) just fired his assistant.   (Don't know if it's relevant, but he fired his assistant minutes before this is being said.)  Which is technically correct?  If both, what's the difference between them?  Which is (more) natural?


Install CentOS 7 on HP dl120 gen9 server with b140i raid controller

I'm trying to install CentOS 7 on a HP DL120 gen 9 server with a b140i controller. I have 4 1TB HDD setup in a raid 1+0 and the CentOS installer doesn't seem to recognize the logical drive created from the storage utility.  From my understanding i need some drivers for CentOS 7 to recognize the B140i controller. Also, the driver seems to be closed source by HP.  What is my approach here? Is there any other free linux OS that i can use on this server and that would recognize the raid controller?  Thank you.


how do i get steam to work with my 64 bit amd computer with error

when i try to launch steam a message pops up- you are missing the following 32-bit libraries,and steam may not run: libic.so.6  I tried a get apt-update but the message still pops up anybody know how to fix?


Bluetooth not connecting to devices even though it recognizes them

I'm runing 15.04 on a dell xps 13 bluetooth recognises devices when i  try to add them but won't let me connect to them Here is the results from my terminal.  ~ $ uname -a; lspci -nnk | grep -iA2 net; lsusb; dmesg | grep -i bluetooth; dmesg | grep -i firmware; lsmod | grep bluetooth  Linux aaron-XPS-13 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux 02:00.0 Network controller [0280]: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter [14e4:43b1] (rev 03)     Subsystem: Dell Device [1028:0019]     Kernel driver in use: wl Bus 003 Device 002: ID 8087:8001 Intel Corp.  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0bda:5682 Realtek Semiconductor Corp.  Bus 001 Device 002: ID 0a5c:216f Broadcom Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub [    8.164048] Bluetooth: Core ver 2.20 [    8.164065] Bluetooth: HCI device and connection manager initialized [    8.164069] Bluetooth: HCI socket layer initialized [    8.164073] Bluetooth: L2CAP socket layer initialized [    8.164079] Bluetooth: SCO socket layer initialized [    8.353160] bluetooth hci0: Direct firmware load for brcm/BCM20702A0-0a5c-216f.hcd failed with error -2 [    8.353166] Bluetooth: hci0: BCM: patch brcm/BCM20702A0-0a5c-216f.hcd not found [   20.289452] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   20.289455] Bluetooth: BNEP filters: protocol multicast [   20.289459] Bluetooth: BNEP socket layer initialized [   20.310897] Bluetooth: RFCOMM TTY layer initialized [   20.310907] Bluetooth: RFCOMM socket layer initialized [   20.310912] Bluetooth: RFCOMM ver 1.11 [  886.399085] Bluetooth: hci0 urb ffff8800d8c15e40 failed to resubmit (2) [  895.471190] Bluetooth: hci0: BCM: patching hci_ver=06 hci_rev=1000 lmp_ver=06 lmp_subver=220e [  896.113983] Bluetooth: hci0: BCM: firmware hci_ver=06 hci_rev=1624 lmp_ver=06 lmp_subver=220e [    8.353160] bluetooth hci0: Direct firmware load for brcm/BCM20702A0-0a5c-216f.hcd failed with error -2 [  896.113983] Bluetooth: hci0: BCM: firmware hci_ver=06 hci_rev=1624 lmp_ver=06 lmp_subver=220e bluetooth             491520  22 bnep,btusb,rfcomm ~ $


Highlighting questions with accepted answers in green on all Stack Exchange sites?

I am member of SO from 4 months. I visit SO when I have problem or when I wanted to solve problems. I would like to see questions which are not got solved and help OP, like everyone on SO. But when I visit question and question has already accepted answers then I feel it was waste of time.   This feature is implemented in . We can see two different questions. 1st question has 1 answer which is accepted one. And 2nd question had 3 answers but no accepted answer at all. So it will save time of people to see questions and getting concentration more on unsolved problems. One more benefit will be when I had same problem and there are 3-4 similar questions. But one question having accepted answer. Then my priority will be to that question to see solution for my problem.     Why there is not any distinction between accepted answers and not accepted answers on SO and MSO?


Why won't this generic java code compile?

In this simplified example I have a generic class, and a method that returns a Map regardless of the type parameter.  Why does the compiler wipe out the types on the map when I don't specify a type on the containing class?  import java.util.Map;  public class MyClass<T> {     public Map<String, String> getMap()     {            return null;     }      public void test()     {            MyClass<Object> success = new MyClass<Object>();         String s = success.getMap().get("");          MyClass unchecked = new MyClass();         Map<String, String> map = unchecked.getMap();  // Unchecked warning, why?         String s2 = map.get("");          MyClass fail = new MyClass();         String s3 = fail.getMap().get("");  // Compiler error, why?     } }   I get this compiler error.  MyClass.java:20: incompatible types found   : java.lang.Object required: java.lang.String                 String s3 = fail.getMap().get("");  // Compiler error


Who was the first Wizard or Witch in the Harry Potter Universe?

Not sure if this has been asked previously, I couldn't find any references to it.  This question came to me based on this one -  but who was the first wizard or witch in the Harry Potter universe?    We know from the books and movies that Olivander's has been making wands since 382BC, so there would of had to have been Wizards or Witches around before that, but has J K Rowling ever given any information as to when magic was first used?  Was magic always around in the Harry Potter universe?  If so when and who used it first?  Edit -  I'm not sure that the linked question does actually answer mine.  JK Rowling might have stated that magic ability is gene related, and the answer speculating that this means the ability may of spontaneously erupted sometime in prehistory is just that, speculation.  The comment by NKCampell is actually what I'm asking. If there is a magical progenitor (either a magical Adam or Eve) then is that mentioned in any myths/legends that Wizards or Witches have in their universe?


Why should the word "I" be replaced with "me" in this sentence?

Question is Identify grammatical errors in this sentence.  Sentence:      Though I am elder than my Brother by five years, he is more successful   in life than me.   My Lecture told me word than should be replace with word to & also word me should replaced with word I.  Which is really made confused, Actually word than me make more sense to say than word than I.


I was searching for a solution to adding two binary strings.  My test data for proving the addition: 10 + 1 => 11 1001 + 1 => 1010 1101 + 100 => 10001 10101010 + 11001100 => 101110110  This was the code I've found by googling: public static string AddBinary(string a, string b) {     string result = "";      // Initialize digit sum      int s = 0;      // Traverse both strings starting from last characters      int i = a.Length - 1;     int j = b.Length - 1;      while (i >= 0 || j >= 0 || s == 1)     {         // Compute sum of last digits and carry          s += (i >= 0 ? a[i] - '0' : 0); // if i > 0         s += (j >= 0 ? b[j] - '0' : 0);          // If current digit sum is 1 or 3, add 1 to result          result = (char)(s % 2 + '0') + result;          // Compute carry          s /= 2;          // Move to next digits          i--;          j--;     }     return result; }  Could someone please explain to me what these three lines of code are actually doing here? s+= (i >= 0 ? a[i] - '0' : 0); s+= (j >= 0 ? b[j] - '0' : 0);  result = (char)(s % 2 + '0') + result;  I've never used a char with a plus/minus operator before and not sure what these lines are achieving. Footnote - the binary calculation looks to be correct


Why is there an extra $Z_3$ in Ward-Takahashi identity?

I'm trying to derive Ward-Takahashi identity $$k_\mu V^\mu(p,q,k)=Z_1 Z_2^{-1}e(S^{-1}(q)-S^{-1}(p))\tag{68.12}$$ using Schwinger-Dyson equation and Ward identity. In renormalized spinor QED, the Lagrangian is: $$\mathcal{L}=\bar{\Psi}(iZ_2\gamma^\mu\partial_\mu-Z_m m)\Psi-\frac{1}{4}Z_3F^{\mu\nu}F_{\mu\nu}+Z_1 q\bar{\Psi}\gamma^\mu\Psi A_\mu.$$ Under a global gauge transformation $\Psi\rightarrow e^{-ie\alpha}\Psi,\ \bar{\Psi}\rightarrow\bar{\Psi}e^{ie\alpha}$, the conserved current is: $$J^\mu = \frac{\partial \mathcal{L}}{\partial(\partial_\mu \phi)}\delta \phi=Z_2 q\bar{\Psi}\gamma^\mu\Psi\alpha\equiv Z_2 j^\mu \alpha$$ Where $j^\mu$ is defined to be $q\bar{\Psi}\gamma^\mu\Psi$. Plugging that into Ward identity (eq. (22.26) of Srednicki), we can obtain: $$\begin{aligned} iZ_2 k_\mu & \langle \Omega|\mathrm{T}\{\tilde{j}^\mu(k)\tilde{\Psi}(q_1)...\tilde{\Psi}(q_n)\tilde{\bar{\Psi}}(p_1)...\tilde{\bar{\Psi}}(p_n)\}|\Omega\rangle \\&=e\sum_{i}\langle \Omega|\mathrm{T}\{\tilde{\Psi}(q_1)...\tilde{\Psi}(q_i-k)...\tilde{\Psi}(q_n)\tilde{\bar{\Psi}}(p_1)...\tilde{\bar{\Psi}}(p_n)\}|\Omega\rangle \\&-e\sum_{j}\langle \Omega|\mathrm{T}\{\tilde{\Psi}(q_1)...\tilde{\Psi}(q_n)\tilde{\bar{\Psi}}(p_1)...\tilde{\bar{\Psi}}(p_i+k)...\tilde{\bar{\Psi}}(p_n)\}|\Omega\rangle \end{aligned}$$ Where the Fourier-transformed correlation function was defined to be: $$\begin{aligned} \langle \Omega&|\mathrm{T}\{\tilde{j}^\mu(k)\tilde{\Psi}(p_1)...\tilde{\Psi}(p_n)\tilde{\bar{\Psi}}(q_1)...\tilde{\bar{\Psi}}(q_n)\}|\Omega\rangle\equiv \\& e\int d^4x\int d^4x_1...\int d^4y_1... e^{ikx}e^{-iq_1x_1}...e^{ip_1y_1}...\langle \Omega|\mathrm{T}\{\bar{\Psi}(x)\gamma^\mu\Psi(x)\Psi(x_1)...\Psi(x_n)\bar{\Psi}(y_1)...\bar{\Psi}(y_n)\}|\Omega\rangle. \end{aligned}$$ Using Schwinger-Dyson equation of $\langle\Omega|\mathrm{T}\{A_\mu\Psi\bar{\Psi}\}|\Omega\rangle$, we have (working in Feynman gauge): $$-Z_3 \partial^2\langle \Omega|\mathrm{T}\{A_\mu(x)\Psi(y)\bar{\Psi}(z)\}|\Omega\rangle=Z_1 \langle \Omega|\mathrm{T}\{j_\mu(x)\Psi(y)\bar{\Psi}(z)\}|\Omega\rangle.$$ After Fourier transform, that became: $$Z_3 k^2\langle \Omega|\mathrm{T}\{\tilde{A}_\mu(k)\tilde{\Psi}(q)\tilde{\bar{\Psi}}(p)\}|\Omega\rangle=Z_1 \langle \Omega|\mathrm{T}\{\tilde{j}_\mu(k)\tilde{\Psi}(q)\tilde{\bar{\Psi}}(p)\}|\Omega\rangle.$$ Using Feynman diagrams to evaluate the LHS, we can get: $$\langle \Omega|\mathrm{T}\{\tilde{j}_\mu(k)\tilde{\Psi}(q)\tilde{\bar{\Psi}}(p)\}|\Omega\rangle=Z_1^{-1}Z_3(2\pi)^4\delta^4(k+p-q)(\delta_{\mu\nu}+\Pi_{\mu\rho}(k)\Delta^{\rho}_{\ \nu}(k)+\cdots)(\frac{1}{i}S(q))(iV^\nu(p,q,k))(\frac{1}{i}S(p))$$ Where $V^\mu$ is the 1PI vertex, and $S(p)$ is the exact fermion propagator. From local gauge invariance, we know that $k_\mu \Pi^{\mu\nu}(k)=0$. So contracting the equation above with $k_\mu$ yields: $$ik_\mu \langle \Omega|\mathrm{T}\{\tilde{J}^\mu(k)\tilde{\Psi}(q)\tilde{\bar{\Psi}}(p)\}|\Omega\rangle=Z_1^{-1}Z_3(2\pi)^4\delta^4(k+p-q)k_\mu S(q)V^\mu(p,q,k)S(p).$$ Combining that with Ward identity: $$Z_2 Z_1^{-1}Z_3(2\pi)^4\delta^4(k+p-q)k_\mu S(q)V^\mu(p,q,k)S(p)=(2\pi)^4\delta^4(k+p-q)e [S(p)-S(q)].$$ And we can finally get: $$Z_3 k_\mu V^\mu(p,q,k)=Z_1 Z_2^{-1} e[S^{-1}(q)-S^{-1}(p)].$$ It turns out that there's an extra factor $Z_3$ in my result, compared to the correct Ward-Takahashi identity $$k_\mu V^\mu(p,q,k)=Z_1 Z_2^{-1}e(S^{-1}(q)-S^{-1}(p)).\tag{68.12}$$ I know that the result I've got must be wrong since LHS is infinite but RHS is finite. But I can't figure out where's wrong in the derivation. Where's my mistake?


Could somebody please explain the output of this code?  #include <iostream> using namespace std;  struct Yo{     char sex;     int a; };  int main() {     Yo c;     cout<<sizeof(c.sex);     cout<<endl<<sizeof(c.a);     cout<<endl<<sizeof(c);     return 0; }   Output: 1 4 8  How is the size of structure 8?


Strange NullPointerException in multithreading program

I am practicing multithreading program and encountered a very strange problem. The code is as follows. When I run the program, sometimes(not always) it throws java.lang.NullPointerException. I have no idea how this problem occurs. Is there anybody who can help me with this? Thank you so so so much.  import java.util.*;  public class TestCME {     public static void main(String[] args){         TestMap tm = new TestMap();         for(int i = 0;i < 40000 ;i++){             tm.addCity(i,new City(i * 10));         }         RunnableA rA = new RunnableA(tm);         Thread threadA = new Thread(rA);         RunnableB rB = new RunnableB(tm);         Thread threadB = new Thread(rB);          threadA.start();         threadB.start();     } } class TestMap{     Map<Integer,City> cityMap;      public TestMap(){         cityMap = Collections.synchronizedMap(new HashMap<Integer,City>());      }      public Set<Integer> getAllKeys(){         return cityMap.keySet();     }      public City getCity(int id){         return cityMap.get(id);     }      public void addCity(int id,City city){         cityMap.put(id,city);     }      public void removeCity(int id){         cityMap.remove(id);     } }  class City{     int area;     public City(int area){         this.area = area;     } }  class RunnableA implements Runnable{     TestMap tm;     public RunnableA(TestMap tm){         this.tm = tm;     }     public void run(){         System.out.println("Thread A is starting to run......");          if(tm != null && tm.cityMap != null && tm.cityMap.size() > 0){              Set<Integer> idSet = tm.getAllKeys();             Integer[] idArray = idSet.toArray(new Integer[idSet.size()]);             for(int i = 0;i < idArray.length;i++){                 Integer id = idArray[i];                 City city = tm.getCity(id);                 if(city != null){                     System.out.println(id + ":" + city.area);                     /*try{                         Thread.sleep(1);                     }catch(Exception e){                         e.printStackTrace();                     }*/                 }             }          }     } }  class RunnableB implements Runnable{     TestMap tm;     public RunnableB(TestMap tm){         this.tm = tm;     }     public void run(){         System.out.println("Thread B is starting to run......");         /*try{             Thread.sleep(1);         }catch(Exception e){             e.printStackTrace();         }*/         System.out.println("Trying to add elements to map....");         tm.addCity(50,new City(500));         System.out.println("Done adding.");         System.out.println("Trying to remove elements from map....");         tm.removeCity(10);         tm.removeCity(20);         tm.removeCity(30);         tm.removeCity(40);         System.out.println("Done removing.");     } }   And the exception log is   Exception in thread "Thread-0" java.lang.NullPointerException     at RunnableA.run(TestCME.java:69)     at java.lang.Thread.run(Thread.java:745)   TestCME.java:69 is at City city = tm.getCity(id); in class RunnableA.


Macro for creating trees for B-series as math symbols

I am writing a paper on numerical solutions for ODEs. For the representations of B-series I want to use binary tree-like symbols. I know how to produce them with TiKZ; however, just as in the given picture, i need to use them also within the text or a mathematical expression. As these trees can be represented by a bracket expression, e.g. in the given picture t=[[.,.], [[.]]], it should be possible to write a macro doing this. However, I failed so far - or is there an alternative approach?


I have a content type that has a multi-value taxonomy field. When I create a new item and select several values, I am presented with the following error:     Array to string conversion in DrupalDefaultEntityController->cacheGet() (line 369 of /path/to/drupal/installation/includes/entity.inc).   The values are saved and everything appears to be working, but having this error appear every time is a little distracting, especially for the office staff who are actually entering the data.  Why does this happen?


For child entries with crossrefs, how can I instruct biblatex to output only a reference to the parent entry in the bibliography?

When producing a bibliography using biblatex and the alphabetic style, I would like to produce actual cross-references between two crossref-entries.  For example, if I have several @inproceedings entries that define crossref={proc} and I have a matching @proceedings entry, I would like to generate something along the lines of:     [Aut13a] Test Author. “Testing the second Title”. In: [EE13], pp. 10–20.      [Aut13b] Test Author. “Testing the Title”. In: [EE13], pp. 1–10.      [EE13] Senor Editor and Senora Editora, eds. My Proceedings. Any Publisher, 2013.   But the only result I am achieving so far is:     [Aut13a] Test Author. “Testing the second Title”. In: My Proceedings.                 Ed. by Senor Editor and Senora Editora. Any Publisher, 2013,                 pp. 10–20.      [Aut13b] Test Author. “Testing the Title”. In: My Proceedings. Ed. by                 Senor Editor and Senora Editora. Any Publisher, 2013, pp. 1–10.      [EE13]   Senor Editor and Senora Editora, eds. My Proceedings. Any                 Publisher, 2013.   This is actually the same question as  but the proposed answer there is just a work-around which would be very tedious for my rather large bibliography file.  The behavior described above is standard BibTeX behavior for the alpha style, AFAIK.  So I suspect this is just one of the approximately 10,000 configuration options of biblatex and I'm simply not aware of how to do it ;-) To get you guys going, here is an MWE:  \documentclass[]{article}  \usepackage[backend=biber,style=alphabetic]{biblatex} \usepackage{filecontents}  \begin{filecontents}{my.bib} @inproceedings{inproc1,     Author = {Test Author},     Crossref = {proc},     Pages = {1--10},     Title = {Testing the Title}}  @inproceedings{inproc2,     Author = {Test Author},     Crossref = {proc},     Pages = {10--20},     Title = {Testing the second Title}}  @proceedings{proc,     Editor = {Senor Editor and Senora Editora},     Publisher = {Any Publisher},     Title = {My Proceedings},     Year = {2013}} \end{filecontents}  \addbibresource{my.bib}  \begin{document} Test \cite{inproc1} and \cite{inproc2} \printbibliography \end{document}


Why does "there's" work as a contraction for plural items?

While writing recently, I came across a situation where a character said:     There's a lot of chandeliers in here.   When editing, I realized that I wanted to have the sentence sound more formal, and chose to remove the contraction to do so, which is when I realized that it would become:     There are a lot of chandeliers here.   This puzzled me, and puzzles me still. There's is presumably a contraction of "there" and "is", which is, of course, grammatically incorrect when describing a plural. But why is this okay in the contraction?


With accelerated expansion of universe which is same in all direction we know that dark energy increase with time because space between any two point in space time increases with time. So after some finite time we can not see nearby galaxy cluster which we can see now. So doesn't that violate conservation of energy which says energy neither can created nor can destroyed. Because with expanding universe energy in the form of dark energy increases with time so if we consider whole universe (visible + invisible) as isolated system then energy of whole universe increase means energy is created from nothing. Am I missing something over here?


If a definite integral represents the area under the curve, why is $\int_{0}^{\pi/2} \ln|\sin x| \, dx = -\pi \ln(2)/2$?

I just noticed that $\int_{0}^{\pi/2} \ln|\sin x| \, dx = -\pi \ln(2)/2$ and my question is why is the area in this case a negative number?


what is the difference in the following c++ codes regarding call by reference

#include<iostream>  using namespace std;  void swap(int *x, int *y) {     int temp=*x;     *x=*y;     *y=temp;     cout<<*x<<endl<<*y<<endl<<"Bro"<<endl; }   int main() {     int a=10,b=5;     swap(&a,&b);     cout<<"HI"<<endl;     cout<<a<<endl<<b<<endl;     return 0; }   and  #include<iostream>  using namespace std; void swap(int &x, int &y) {     int temp=x;     x=y;     y=temp;     cout<<x<<endl<<y<<endl<<"Bro"<<endl; }   int main() {     int a=10,b=5;     swap(a,b);     cout<<"HI"<<endl;     cout<<a<<endl<<b<<endl;     return 0; }   Both the codes do give the same output but i don't get the fact that if we are only passing only the variable, how do the addresses  get swapped


I have recently installed Ubuntu on my PC, but I can't understand how to manage the applications -- as an example, I'm trying to get Chrome to autostart.  I can start Chrome manually, but I'm not able to find the correct exe (to make it autostart).  How can I make this work?


I am studying English in Korea.   All my friends and I are studying about 'sentence patterns'  Sentence patterns, said in here, are S+V, S+V+C, S+V+O, S+V+I.O+D.O, S+V+O+O.C.  But my teacher said these 5-sentence patterns are not perfect in grammar. But  because we don't use English by mother language, they will be helpful for understanding English.  Then, I came up with something.   Is sentence patterns used everywhere? (like U.S.A, U.K, Australia, anyother country where people use english by their mother language?)  I really wonder.


By using command blocks, is there a way to /say without it outputting  [CommandBlocks Name]/Say Command   Basically Is there a way to get command blocks to not have a name?  So instead of  [CommandBlocks Name]/Say Command   It would just be  /Say Command


Windows 7 login screen show only last user and "Other User" icons after profile problem

I recently had a profile problem with my Windows 7 PC. My original profile in the registry had ".bak" appended to it and a new profile was created. I was unable to login with the new profile. I fixed this immediate problem by logging on in safe mode. This enabled me to restore my original profile.   However, since that moment the login screen now operates differently. Instead of showing icons for all the users with accounts on the PC, it now only shows two icons. The first icon is the last user who logged on and the second icon always shows "Other User". I have tried several different solutions recommended by other people with similar problems, but none of them have fixed the problem. I think the person who started this  has the same problem, but none of the proposed solutions helped him either.   Any help much appreciated.


LaTeX beamer create Tries and PATRICIA Trees

Already checked  post to see how to draw a simple tree in LaTeX, however, I would like to generate Tries with LaTeX and since those kind of trees have the keys on their edges instead of in the nodes, I wasn't able to find a quick solution for this. And would it also be possible to show each step of an action (search, insert, delete) on a different slide?


Exit strategies for "chameleon questions"

I'm not sure if there's already an existing term for this, so I'm inventing my own. (tl;dr: I call them "chameleon questions" because they change every time you submit or edit an answer.  If you're already intimately familiar with the phenomenon, please skip past the first set of bullet points to where I ask for recommendations.)  I think many of us have experienced this on occasion:  You open up a narrow-looking question, usually dealing with some specific error message.  The question probably contains a snippet of sloppy but not quite awful code; code indicating that the author, typically a new/low-rep user, possibly a , doesn't really know what they're doing.  I'm not trying to be condescending here, they're probably very intelligent and hardworking, but in this specific case, they're clearly in way over their head.  However, as a question, it's not really too bad.  The goal and problem are both clearly stated.  The code is formatted (sort of).  Mort was polite and checked their spelling.  The question looks answerable, although from a rep perspective* it's an obvious dead-end, it's had maybe 3 views in the past 30 minutes.  So you decide, you know what, this person took the time to write up the question properly, they deserve an answer, put on your good citizen hat and throw them a bone.  You slog through the ugly code, find the offending line, direct their attention to it and explain why it's wrong and how it needs to be fixed.  Later, they leave a comment saying that yes, that was indeed the problem and your answer helped them fix it (great!).  Oh, but, now there's another problem (uh-oh...). Something else is broken.  After letting out a long sigh, you read the comment and/or edited question, roll up your sleeves, and write up Take 2, hoping that's the end of it.  And of course it's not the end.  Now maybe the error is gone, but it's not doing what it's supposed to.  If you're anything like me, your patience is now starting to wear thin. It's lousy code and you didn't volunteer to help them rewrite their whole app.  And of course, the question still only has 12 views, and nobody has upvoted either the question or your answer, including the person you're helping, so this is turning out to be a genuinely thankless task in all respects.  Welcome to "Family Tech Support", Web 2.0 Edition.   * Which is of course just an arbitrary number that none of us care about. Not really, anyway. Not very much, at least.  So, here's where I get to my question.  At this point, do you:  Leave a comment, stating as politely as possible that you've done your best to help them answer the original question they asked, and if they have a new problem then they should start a new question?  (I did this once, and actually ended up with an accept, but I felt kind of guilty afterwards, I don't think anybody answered their 2nd question).  Bite the bullet and edit your answer a 3rd, 4th, 5th time, however many times it takes to resolve their issue, knowing full well that they may not even remember to accept the answer once you're done? (I may work for free on SO, but that doesn't mean my time is worthless.)  Just abandon the question, hoping that it will force Mort to start thinking for himself?  Something else?   I've tried all three of the above and none of them ever quite feel right. I do want to help, but at the same time there are a lot more "lucrative" questions I could be answering. And I don't mind spending a lot of time on an answer either, if the question is interesting or important to me, but debugging is dull work. I'd prefer not to reference specific questions here; I'm pretty sure that this is a shared experience, and my objective isn't to point fingers at "misbehaving" members.  I'm more looking for some practical advice on how to dig myself out of these pits of despair. Anybody have any other ideas?


Why search doesn't show proper relevant posts (which I can see as suggestion when trying to write a question)

This happened many times with me. Just as an example, I was searching a post with keyword "Can upvotes of comments be rewarded with points", to check if any questions already exists with this topic. This is the result page: . Where you wont find any relevant post. But then when I clicked on Ask Question and put the same in the Title area, I found some more relevant questions, one is this , which matches with my view and this  is the same question which I had in mind.   So, is there any valid reason, why the relevant posts doesn't come in the search results which may come in the duplicate suggestions?


Automatically assign a number to every paragraph

I would like to add a marginal number (don't know the right term; in german „Randnummer“) to every paragraph of text I write. I don't see any other solution, than to write every single number manually with \marginpar. This is impossible, especially when you write longer texts. Does anyone know a good solution?  This image shows what I'd like to achieve. (from: )


How does args work? I know it is used when you don't know how many arguments you may pass to a function, but I need deeper explanation. Do they run function for each argument passed?      def buy_sell_hold(*args):         cols = [c for c in args]         requirement = 0.02         for col in cols:             if col > requirement:                 return 1             if col < -requirement:                 return -1         return 0     def extract_featuresets(ticker):         tickers, df = process_data_for_labels(ticker)          df['{}_target'.format(ticker)] = list(map( buy_sell_hold,                                                df['{}_1d'.format(ticker)],                                                df['{}_2d'.format(ticker)],                                                df['{}_3d'.format(ticker)],                                                df['{}_4d'.format(ticker)],                                                df['{}_5d'.format(ticker)],                                                df['{}_6d'.format(ticker)],                                                df['{}_7d'.format(ticker)] ))     vals = df['{}_target'.format(ticker)].values.tolist()     return vals    Vals are single list how so, I'm lost.


Prove $x^n-1$ is divisible by $x-1$ by induction

Prove that for all natural number $x$ and $n$, $x^n - 1$ is divisible by $x-1$.  So here's my thoughts: it is true for $n=1$, then I want to prove that it is also true for $n-1$  then I use long division, I get:  $x^n -1 = x(x^{n-1} -1 ) + (x-1)$  so the left side is divisible by $x-1$ by hypothesis, what about the right side?


Let $A \in M_n(\mathbb{C})$ be an invertible matrix.  Prove that $A$ is diagonalizable iff $A^{m}$ is diagonalizable for $m \in \mathbb{N}$  I have proved that if $A$ is diagonalizable then $A^{m}$ is diagonalizable.  But I didn't know how to prove that if $A^{m}$ is diagonalizable for $m \in \mathbb{N}$ then $A$ is diagonalizable.


What can I use to typeset a part of MATLAB code (m file) in my document?

I have a .m file and call .m file with \lstinputlisting{****.m}.  but I want LaTeX to show lines 13 to 25. How is it possible?


How do I force users to use strong password ? (Ubuntu 18.04 Server)

I'm using Ubuntu 18.04 Server. How do I force users to use strong password ?  I already set SSH and remove root login.


Is there a name for this literary device from James Baldwin and question about punctuation?

In James Baldwin's essay Everybody's Protest Novel, there is the following sentence:     It must be remembered that the oppressed and the oppressor are bound together within the same society; they accept the same criteria, they share the same beliefs, they both alike depend on the same reality.   I know that repeating the word or phrase at the beginning of a clause is called anaphora. In this case, that word is "they." Also, I know that repeating the last word or phrase in a clause is called epistrophe. Now, is there a name for repeating a word or phrase in the middle of a clause as is the case with "the same" in the sentence above.  Related to the same sentence, the short independent clauses after the semicolon are separated by commas and there is not coordinating conjunction. Is this common grammatical practice or not?  EDIT: The second part of the question has already been answered .


I am new and struggling with java and I need assistance with code. Value keeps resetting to default

Help please Please help with my program I am a bit new to coding and I do not know how to fix my problem. The code works without errors but with the wrong result. I am writing exam in a few days and would like some assistance. package Practice1.pkg1;  import java.time.Year; import java.util.Scanner;      public class Sub1 {              public static void main(String[] args) {         int age = 0;         String name ="";         String surname ="";         int dob = 0;         int year = Year.now().getValue();           info( name, sur**strong text**name, age);         calc(age, year, dob);         result(name, surname, age, year, dob);     }          public static void info(String name, String surname, int age) {         System.out.println("What is your name user?");          Scanner input= new Scanner(System.in);         name = input.nextLine();         System.out.println("What is your surname user?");          Scanner input2= new Scanner(System.in);         surname = input2.nextLine();         System.out.println("What is your age user?");          Scanner input3= new Scanner(System.in);         age = Integer.parseInt(input3.nextLine());     }      public static void calc(int age, int year, int dob) {         dob = year - age;     }      public static void result(String name, String surname, int age, int year, int dob) {         System.out.println("Welcome "+name+" "+ surname+" born in "+dob);         //user in put returns back to default.     } }


I have a question: it's been months that I watch movies for improving my listening skill(it was quite awful:-D). now my question. I know that we should use "warlord" instead of "Lord of war" or "landlord" instead of "Lord of land" but I don't know why "The lord of the rings" is correct? isn't it better to use Ringslord ??? I meant how to know when I should use "of" ?