How do I programmatically get the name of content's author?

I copied node.tpl.php and I pasted it to node--my_content_type.tpl.php. In that file I'd like to get the name of user who created a node. That name has to be a string.  Could someone help me, please?


Generalisation of the Harnack enequality

Let $G \subseteq \mathbb{C}$ a domain and K a compact subset of G. Show the existence of $M>1$ such that: $\frac{1}{M} \leq \frac{h(z)}{h(w)} \leq M $ for all $z,w \in  K$ and all positive harmonic functions $h: G \rightarrow \mathbb{R}$. First I don't see how this inequality refers to the Harnack inequality. I got the hint to think about under which conditions of G and K the inequality is the "classic Harnack inequality".  Futhermore I should use an argument about covering which I don't know what it is.


I want to record my daily internet usage. NetWorx alternative for ubuntu software. Networx screenshot take from windows


How do I programmatically install and enable a module?

There is a lot resource for doing it in Drupal 6, but I didn't find a solution for Drupal 7.  How can I install and enable selected modules?


Where is Enel going after fight with Luffy?

Now Enel have the strong weapon. But when he face luffy, he lose. And then he go. In my opinion i think enel going back to one piece story and then will be the man whose destroy a New World.  According you, where is enel? When he back?


Lebesgue integration: $f = g$ a.e. $ \Rightarrow \int_\Omega f = \int_\Omega g$

Let $f,g : \Omega \subseteq \mathbb R^n \rightarrow [0,+\infty]$ be measurable functions with $f(x) = g(x)$ a.e. . Then I have to show that $\int_\Omega  f = \int_\Omega g$.  I may not assume that $\int_\Omega (f+g) = \int_\Omega f + \int_\Omega g$.   This task is from Tao Proposition 19.2.6.


How to display non ascii words or character in php?

The logical error is that the php doesn't display the desired output for pronunciation. eg. the desired output is \ə-ˈchēv\ but this one \?-?ch?v\ is displayed in the browser.   while($row=mysql_fetch_array($result))     {         $out .= "English word: " .$row['word_en'] . "
";         $out .= "Pronunciation: " .$row['pronunciation'] . "
";         $out .= "Grammar: " .$row['grammar'] . "
";         $out .= "Definition: ".'
'. $row['definition'] . "
";          //iconv("UTF-8", "ISO-8859-1//TRANSLIT", $out), PHP_EOL; //displays error          echo $out;     }


Java: What is the idiomatic way to extract month and year from Date

Let's say I have an instance of a java.util.Date object.  Date date = new Date();   What is the idiomatic way to extract the year and the month?  It seems that the methods getMonth and getYear have been deprecated.  What should I use instead?


Error Passing a variable from php to a javascript function

I am trying to call a javascript function from php. The function takes one argument. This is the call:  <?php  function welcomeBackMessage($user, $password){   echo "
BACK: " . $user . "pwd " . $password . "
";   echo "";  } ?>   This is the JS function; declared before the php functions calls it:   Can't find variable: guest1.   The idea is to pass the variable to a JS function so I get update a DOM element with  variable.   Any input appreciated.


Where does the pain from headaches come from

I may be wrong but I have always thought that the brain doesnt have any nerve endings, so why is it we get headaches and where does this pain come from?  I have heard lack of sleep, hydration or stress can causes headaches but I am interested in why and where the pain comes from this.


Prove the Krull dimension of coordinate ring of $y^2=x^3$ is $1$.

$K$ is an algebraically closed field.   The coordinate ring is isomorphic to $K[t^2,t^3]$, whose Krull dimension is of at most $2$(by an hint in the exercise without proof), but how to show it’s exactly $1$ ?


Method doesnt return after if statement even though the condition is definitely true

This method renders some text onto a Canvas every time the screen refreshes using a SurfaceView and is supposed to return when the database cursor is closed (if cursorClosed). But as you can see from the LogCat, it doesnt. Even though cursorClosed is true as evidenced by the System.out.println(cursorClosed) call it arrives at this call when it should have returned after the if-statement. Can anybody explain to me why this is happening? Thank you for every hint!  This is my code:  public void present(float deltaTime) {         Graphics graphics = game.getGraphics();         graphics.drawBackground(Assets.background);         if (cursorClosed)             return;         System.out.println(cursorClosed);         if (picture != null) {             graphics.drawPixmap(picture, 40, 280, 50);         }         if (!translated) {             graphics.renderText(14, cursor.getString(1), 160, 300);         } else {             System.out.println("cursorClosed: " + cursorClosed);         graphics.renderText(14, cursor.getString(2), 160, 300);         graphics.drawPixmap(Assets.nextButton, 250, 310, 420);     } }   This is the LogCat:  07-20 19:21:25.950 21343-21378/com.melonman.wordsandphrases I/System.out: false 07-20 19:21:25.950 21343-21343/com.melonman.wordsandphrases I/System.out: 1 07-20 19:21:25.950 21343-21378/com.melonman.wordsandphrases I/System.out: cursorClosed: true 07-20 19:21:25.950 21343-21378/com.melonman.wordsandphrases E/AndroidRuntime: FATAL EXCEPTION: Thread-35292 Process: com.melonman.wordsandphrases, PID: 21343 java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String android.database.Cursor.getString(int)' on a null object reference     at com.melonman.wordsandphrases.wordsandphrasesapp.LessonScreen1.present(LessonScreen1.java:83)     at com.melonman.wordsandphrases.framework.impl.AndroidFastRenderView.run(AndroidFastRenderView.java:46)     at java.lang.Thread.run(Thread.java:818)


The  contains a link to the new code of conduct,  . As of 2018-08-07T05:27:38+00, . Also, I cannot find any other link to the conduct yet, neither in the help center, nor in the site navigation, which is a bummer, given that we're invited to read the new CoC:     Really, please, take a moment to read the new Code of Conduct now. It’s not long, it’s not wordy-and-legalese-y and in our long held tradition, we feel that it does a good job of assuming that the vast majority of folks that use our sites always have the best intentions at heart.    Is the code of conduct not yet published?  Edit: As mentioned in the comments,  announces the conduct and links to , so maybe it's not public yet?


Interpret the comparison between conditional probabilities of the same random variable but different conditions

I have a set observations of the same distribution with an unknown parameter. My statistics textbook says for two instances of the parameters, called $\phi_1$ and $\phi_2$, $\phi_1$ is more plausible value to be the true parameter than $\phi_2$ if $p(X = x | \phi_1) > p(X = x | \phi_2)$. I have no trouble to interpret the comparison of two probabilities of a random variable, for example p(X = a) < p(X = b) because I can rely on counting on the sample space of X to make sense the comparison. From my point of view conditional probability of different conditions are computed from different (sub) sample spaces so relying on counting to interpret does not work. How do you justify the comparison of the two conditional probabilities?


Can getDrawable() throw a NullPointerException?

I have a class extending ImageView. In it, I have a function that calls getDrawable().getIntrinsicWidth();. I have about 100 000 installs, and I have 10 reports of this line producing a nullpointerexception. I can't reproduce this, but would still like to fix this. For this, I need to know what throws it, but I can't test it.  Can I safely assume that getDrawable() can not throw a nullpointer exception, but returns null for some reason, so getIntrinsicWidth() throws the exception?   Also, why would it return null, unless it was set to null? I set the image only by from ShareIntents, and I filter by mimetyp "image/*". If the Uri wasn't pointing to an image, wouldn't that get sorted out during the sharing process? Or do I need to take care of that myself?


QGIS: when using composer to save as image the image has a shift of about 50m

I'm using QGIS 1.8.0; I have two layers turned on, one is the Google Earth hybrid layer from the OpenLayers plugin and the other a shapefile of my own making.  I set on the fly projection and everything looks spot on in the active window. When I got to composer everything still looks good. It's only once I have saved the image (exported) that there is an issue.   I think I read about this earlier but I can't find the answer to it anywhere. I can't remember if it has to do with on the fly projection or not... it seems ridiculous that the composer doesn't just "print the screen" of what's displayed there.  Any help would be great.  Shapefile is located   On the fly projection is UTM 50S or EPSG:32750


Does freezing food reset the amount of time you can put it in the fridge?

Just read this which basically says you can freeze and thaw food in the fridge any number of times.    I'm still unclear on one point. If I had food which would be good in the fridge for 4 days and i put it in the freezer after 3 days, when I put it back in the fridge is my food good after its thawed for another 4 days or 1 more day?


Is it possible to change an instance's method implementation without changing all other instances of the same class?

I do not know python very much (never used it before :D), but I can't seem to find anything online. Maybe I just didn't google the right question, but here I go: I want to change an instance's implementation of a specific method. When I googled for it, I found you could do it, but it changes the implementation for all other instances of the same class, for example: def showyImp(self):     print self.y  class Foo:     def __init__(self):         self.x = "x = 25"         self.y = "y = 4"      def showx(self):         print self.x      def showy(self):          print "y = woohoo"  class Bar:     def __init__(self):         Foo.showy = showyImp         self.foo = Foo()      def show(self):         self.foo.showx()         self.foo.showy()  if __name__ == '__main__':     b = Bar()     b.show()     f = Foo()     f.showx()     f.showy()  This does not work as expected, because the output is the following:  x = 25 y = 4 x = 25 y = 4  And I want it to be:  x = 25 y = 4 x = 25 y = woohoo  I tried to change Bar's init method with this: def __init__(self):     self.foo = Foo()     self.foo.showy = showyImp  But I get the following error message:  showyImp() takes exactly 1 argument (0 given)  So yeah... I tried using setattr(), but seems like it's the same as self.foo.showy = showyImp. Any clue? :)


Plural possessive with separate possessions

When we refer to a house that belongs to a family, we say "family's house". Pluralizing family gives us "families". Referring to the houses of several families, we say "families' houses". Forming the plural possessive in such a case is rather simple.  I encountered a more complex use of this recently - referring to a single house owned by a single family in a set of houses owned by a set of families.  We can say "the families' houses" to refer to all of the houses owned by all of the families.  We can say "one of the families' houses" to refer to one of the houses owned by one or more of the families. In this context, "one of" applies to "the families' houses".  If we were instead to apply "one of" to "the families", and want to refer to the one house owned by "one of the families", how would this be written?  My first though was "one of the families's house", taking "one of the families" as a single noun and appending 's to it. This looks (and sounds) a bit strange, though. "One of the families' house" and "one of the family's house"/"one of the family's houses" seem wrong to me, and I can't really determine the correct way to say/write this.  Is there a definitively correct way that this should be written?  EDIT: To clarify, although I think I made it clear, in this context, there are several families, and each owns one house. The goal of the sentence is to refer to one of those houses without stating which specific house. Example: "The players and their families want to celebrate their team's victory; this will likely entail a party at one of the families's house".


I use this function to make excerpt of text and link to full content. Now when reach the count of symbols(letters) is cutting the word. I don't want to cut the on first, second or any word. How to check and make excerpt before or after the word?  Here is function that I use  function getExcerpt($str, $startPos=0, $maxLength=150) {     if(strlen($str) > $maxLength) {         $excerpt   = substr($str, $startPos, $maxLength-3);         $lastSpace = strrpos($excerpt, ' ');         $excerpt   = substr($excerpt, 0, $lastSpace);         $excerpt  .= '...';     } else {         $excerpt = $str;     }      return $excerpt; }


How do I switch to Cycles render engine?

I just downloaded blender and it says at the top that I am in blender render. I want to make it on cycles render. How can change this?


What is the most bizarre thing you have seen done with TeX

I think the questions says it all! :)  By TeX, I mean any derivative of TeX as long as the code is clearly a derivative of TeX, i.e. that it could belong on TeX.SX (and not pure Lua for example).  I'll give two answers myself so you see what I mean.


Why in many newspaper name, word "TIMES" is there?

I was wondering that whenever I pick a newspaper I found either it is the Times of America, Times of India ,Hindustan Times and lot more  so why there is always a word times in newspaper name . Is it a culture or a style.


Use field calculator to change values from a,b,c etc. to 1,2,3 etc.?

I have a vector shapefile with a column with string values. How can I convert this to a column of integer values in another column but keep the categorization.  e.g. from:  col1,newcol2 A, A, B, A, C,    to:  col1,newcol2 A,1 A,1 B,2 A,1 C,3    I'm sure it is in the 'replace' or 'case when' syntax somewhere but I cannot find a clear method via Google etc.


How to calculate $\int_{0}^1 \sqrt{\frac{1-x^2}{1+x^2}}dx$?

I encounter the following question:  $$\int_{0}^1 \sqrt{\frac{1-x^2}{1+x^2}}dx=?$$ It looks simple. But I doubt there exists analytic solution. Could anyone help? Thank you!    Icarus 369 has  pointed out Page [  ]. The question indeed has no elementary solution.  Thanks Icarus 369.    The elliptic integration turns out to be very interesting. FYI:


ICs ("chips") are typically packaged in what material?

ICs are typically  (encapsulated) in a black "plastic". What is this packaging material made of?  ()


I know that I have to prove this with the induction formula. If proved the first condition i.e. $n=6$ which is divisible by $6$. But I got stuck on how to proceed with the second condition i.e $k$.


The Death Star is spherical, and as big as a moon.  It has a gravity generator, but how does it work ?  Which one of the case below (Fig.1 or Fig.2) is the correct one ?


"Left" and "right" are to "side" as "front" and "rear" are to what?

Is there an equivalent word to "side" when speaking of the front or rear of something (e.g. a car)?  So, a mechanic might say:     You damaged your wing-mirror? Ok, which side?   ... or...     You damaged your bumper? Ok, which [insert word here]?


I have a lot of saved web pages that I want to view whenever I want without the page connecting to the web site (I can do this on WM). How do I do this on Android? Every time I click on the HTML file it says "no connection".


How to split lists into smaller lists at certain points in python?

I have a list of different things and I was wondering how to split it every time it hits a new name?   So what I would like to have is have it take a list that looks like this:  list = [corn, 14, 2, 500, broccoli, 2, 10, 1400, potato, 2, 14, 7]   and it will create 3 lists:  list1 = [corn, 14, 2, 500]  list2 = [broccoli, 2, 10, 1400]  list3 = [potato, 2, 14, 7]   I am guessing it would be something along the lines of a loop that repeats a new list until it hits a non integer, but I really dont know how it would look set up.


Comments disappeared from Google Spreadsheet cell

I have been working on a shared Google Spreadsheet for months. All of a sudden, the comments have disappeared from the cells and now only appear in the discussion thread.   How can I get them back to their individual cells that they pertain to?


html Input field is auto filled with username saved in browser form

Problem: I created an input field with type text, but when page loads it is auto filled with username saved (saved for this website login page)in browsers form data. i want to show it clean when page load.  <input type="text" class="form-control search-field" placeholder="Search Item"  ng-model="vm.applyCategFoodSearch" autocomplete="off"  name="txtFieldForSearchItems">   i am unable to find solution, autocomplete='off' was suggested by many other sources, but issue not fixed. if it can be handled using html,jquery,javascript,angularjs. it will be good. I also reset the values in controller    vm.applyCategFoodSearch='';   timeout also tried but not working        $timeout( function(){          vm.applyCategFoodSearch='';     }, 5000 );   if i set time out to 10seconds, it will work, but its not the solution. i am sending ajax call for food categories,when it returns, this timeout code will run with 10second delay.it will work. other than 10second delay.it will not work.


Font size of Chapter number and Chapter Title

As in the picture below I want to change the font size of Chapter number "Chapter 1" and title "Introduction" separately. Is there any way I can do that. I have used the package sectsty but it changed the size of both. I need "Chapter 1" smaller than the title "Introduction".


An ideal $I$ of a commutative unital ring $R$ is called decomposable if it has a primary decomposition.     Can you give an example of an ideal that is not decomposable?    All the examples I can think of are decomposable. Thanks.


Holomorphic function on unit disk with some inequality

Hi. This is what I've been trying to solve, but I couldn't.  I tried Roche's theorem, I got f' is never zero. But nothing more.  and then I tried Schwarz lemma (dividing both side by f'(0)) But Nothing more.  How can I solve this one?  Thanks!


Error on Batch Apex for sun.security.validator

I`m making calls to the outbound REST API from Salesforce via Batch apex. Most of the calls are working fine, except in some cases, Im getting below error. For example, if I run 200 batches (with batch size as 1), Im getting atleast 10 batches fail per execution but remaining 190 work fine.     First error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


Show that in any set of $2n$ integers, there is a subset of $n$ integers whose sum is divisible by $n$.

There was a problem in a recent programming competition which my friend solved by assuming the following conjecture:     Show that for any set of $2n$ integers, there is a subset of $n$ integers whose sum is divisible by $n$.   I have thought about this problem for a while but can't seem to prove it, but I couldn't come up with a counter-example either.    A similar problem has a well-known solution: show that for any set of $n$ integers, there is a non-empty subset whose sum is divisible by $n$.  The proof goes as follows. Suppose the set is $\{x_1, x_2, \dots, x_n\}$ and hence define $s_i = \left(x_1 + x_2 + \dots + x_i\right)\bmod n$, with $s_0 = 0$. Then we have the set $\{s_0, s_1, \dots, s_n\}$ with $n+1$ elements, but each $s_i$ can take only $n$ distinct values, so there are two $i, j$ with $i\neq j$ such that $s_i = s_j$. Then $s_j - s_i = x_{i+1} + x_{i+2} + \dots + x_j$ is divisible by $n$.  However, this approach can't directly be applied to this problem since now we need to ensure that we choose exactly $n$ integers.


I can get Ubuntu mainline kernels from  - is there a way to add it to my repository list the same as regular Launchpad PPAs?


I was just wondering if you have two passports (a Chinese one and an Australian one), and you booked your airline ticket with the Chinese one, will you have to show both of your passports or just one?  The thing is, on my Chinese passport, it has my birth name, but then when I became an Australian citizen, I legally removed my Chinese name and replaced it with my English name. So I don't know whether I should just show the passport officials the one that I booked the airline ticket with.


Please rate and comment. I want to improve; constructive criticism is highly appreciated. Please take style into account as well.  The following proof is solely based on vector space related axioms. Axiom names are italicised. They are defined in Wikipedia (see vector space article).  Vector spaces - Multiplying by zero scalar yields zero vector  \begin{array}{lrll} \text{Let} & \dots & \text{be} & \dots \\ \hline & F && \text{a field.} \\ & V && \text{a vector space over $F$.} \\ & 0 && \text{an identity element of addition of $F$.} \\ & \mathbf{0} && \text{an identity element of addition of $V$.} \\ & \mathbf{v} && \text{an arbitrary vector in $V$.} \\ \end{array}  $$\text{Then, }0\mathbf{v} = \mathbf{0}.$$  Proof. We will denote by $1$ an identity element of scalar multiplication; we will denote by $(-\mathbf{v})$ an additive inverse of $\mathbf{v}$. \begin{align*} 0\mathbf{v} &= 0\mathbf{v} + \mathbf{0}                     && \text{by }\textit{Identity element of vector addition} \\ &= 0\mathbf{v} + (\mathbf{v} + (-\mathbf{v}))   && \text{by }\textit{Inverse elements of vector addition} \\ &= (0\mathbf{v} + \mathbf{v}) + (-\mathbf{v})   && \text{by }\textit{Associativity of vector addition} \\ &= (0\mathbf{v} + 1\mathbf{v}) + (-\mathbf{v})  && \text{by }\textit{Identity element of scalar multiplication} \\ &= ((0 + 1)\mathbf{v}) + (-\mathbf{v})          && \text{by }\textit{Distributivity of scalar multiplication (field addition)} \\ &= ((1 + 0)\mathbf{v}) + (-\mathbf{v})          && \text{by }\textit{Commutativity of field addition} \\ &= (1\mathbf{v}) + (-\mathbf{v})                && \text{by }\textit{Identity element of field addition} \\ &= \mathbf{v} + (-\mathbf{v})                   && \text{by }\textit{Identity element of scalar multiplication} \\ &= \mathbf{0}                                   && \text{by }\textit{Inverse elements of vector addition} \\ \end{align*} QED


If the $n$-th derivative of analytic function is $0$, then it's a polynomial

I'm trying to solve the following problem:  Given an analytic function $f: D \subset \mathbb{C} \to \mathbb{C}$, if $f^{(n)}(z) = 0$ for some $n \in \mathbb{N}$ and for all $z \in \mathbb{D}$, then $f$ is a polynomial of degree less than $n$.   I wanted to use induction to solve this problem. I managed to show that this is true for the base case of $f' = 0$. I then wanted to prove the inductive step holds. To do this, I define the function $F = f'$, so that $f^{(n+1)} = F^{(n)}$ and I can apply the induction hypothesis on $F$. By doing this I get that $$ F = \sum_{k=0}^{n-1} a_kz^k = \sum_{k=0}^{n-1} \alpha_k r^k \cos(k\theta) + i \sum_{k=0}^{n-1} \alpha_k r^k + \sin(k\theta) \tag{1} $$ for some $a_k \in \mathbb{C}$ (possibly equal to $0$), $r = |z|$ and $\theta = \arg(z)$. From here I just need to recover $f$ to finish the problem, but here's where I ran into trouble. The only way I know I can relate $f$ and $F$ is by using the Cauchy-Riemann equations, i.e., if $f = u(r, \theta) + iv(r, \theta)$, then \begin{align} F = f' &= \frac{\partial}{\partial r}\left(\left[\cos(\theta)u + \sin(\theta)v\right] + i \left[\cos(\theta)v - \sin(\theta)u\right]\right)\tag{2}\\ &= \frac{\partial}{\partial \theta}\left(\frac{1}{r}\left[\sin(\theta)v + \cos(\theta)u\right] + i \frac{1}{r}\left[\cos(\theta)v - \sin(\theta)u\right]\right)\tag{3} \end{align} Note: These last equations can be obtained from the polar C-R equations as in . After this, I tried combining equations $(1), (2)$ and $(3)$ to get a system of differential equations from where I could solve for $u$ and $v$ explicitly, and therefore solving for $f$ since $f = u + iv$. The problem I encountered was that I couldn't solve for the values of the constants of integration. As much as I tried I just kept getting expressions that I couldn't simplify. Is my approach correct? Or alternatively, does anyone know a simpler method I could use to prove this? Thank you!


Me and my friend have leveled up to level 51 and fought Pyro Pete on TVHM 3-4 times and he hasn't dropped a single crystal. The quest was on the first time and we just farmed him but nothing was happening. What are we doing wrong?


I was going through some old code that I'd been using, and knew worked because it was still functioning. I was, however, confused when I found I'd written a <?, but not <?PHP. And yet, the code after that still worked. Is this defined? Is this supposed to work like this? Have I been writing slightly more code than I could be? It feels dirty to leave off the PHP, but if it's okay, I might as well, right?    Sandbox:


Lagrangian formulation compared to the Newtonian formulation: connection high schools with the universities

What are the immediate advantages of the Lagrangian formulation compared to the Newtonian formulation to give high school students a little connection to what they'll find in universities? I can't use derivatives, integrals, ODE, ecc... but very few elementary concepts. Are there advantages to solving dynamic or kinematic exercises? What could they be? Often in classical electrodynamics special lagrangian are used to obtain an expected result.


Say I want to configure my ssh options for 30 servers with the same setup in my .ssh config file:  host XXX      HostName XXX.YYY.com      User my_username      Compression yes      Ciphers arcfour,blowfish-cbc      Protocol 2      ControlMaster auto      ControlPath ~/.ssh/%r@%h:%p      IdentityFile ~/.ssh/YYY/id_rsa   where the only thing that changes between these 30 machines is XXX.   Instead than repeating the above structure 30 times in my config file, is there another way to define a range of machines?


where does the return of onclick="return false" go?

I'd like to understand something in this code:  Save   Where does the return onclick="return false;" go to?


Workaround to Install Ubuntu 20.04 with Intel RST systems

I tried to install Ubuntu 20.04 in my Dell G5 which has 2 drives. One with Windows 10 on it (256 GB) and another one with 1 TB capacity.   I shrunk the volume of 1 TB by 150 GB and tried to install there.  But Ubuntu installer didn't allow me as I got a dialog after the Keyboard setting said "Turn Off RST" with the message      This computer uses Intel RST (Rapid Storage Technology). You need to   turn off RST before installing Ubuntu. For instructions, open this   page: help.ubuntu.com/rst   If I make any changes in the BIOS setting, like changing the Intel controller from RAID to AHCI, Windows won't boot and goes into System Recovery.   I didn't have this issue when installing 18.04. While creating the partitions, you need to create a EFI partition with 200 - 500 MB with the usual steps and the installation will be completed succesfully.   On restarting, you will not be getting the GRUB but instead Ubuntu will boot by default. If you need to boot Windows, you will have to go to the BIOS and choose from the UEFI boot option each time.   Once 18.04 installation is complete, you can upgrade it to 20.04.   After upgrading I installed the KDE desktop and at the login screen I chose the "Ubuntu on Wayland" option.    After doing these 2 things, I lost the new features of 20.04 like the Ubuntu boot screen with Dell logo and the power off/log out blur effect screen. Not sure how to get that back.


Deleting a comment(s) in a discussion crash iOS App

SO site, haven't tested elsewhere   This only crashes when a comment is deleted from a discussion that has greater than 1 comment.   If my comment indexPath is 6,7,9,11 and I delete 7. It deletes properly. As soon as user taps on a different index, the app crashes and reloads same question minus the comment deleted. Repeat til all comments are deleted. It doesn't matter what order, it crashes.   Running:  iPhone 6+   iOS 8.3  Reputation 1,600+ (if that matters for privileges)


I want to echo some unique string to a file. Sample code like bellow:  { echo "    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined" echo "    LogFormat "%h %l %u %t \"%r\" %>s %b" common" } >> file.conf  When i run it, file.conf become seperate in to 2 file. How i can echo it with a correct way?  Thank You


I am confused at $\infty$ in a lot of ways. First, we sometimes say that ${1\over 0}=\infty$. That gives us these confusing calculations.$${1\over0}=\infty$$ $$1=0*\infty$$ $$2=(0*2)*\infty$$ $$2=0*\infty$$ $$1=2$$ But certainly, this is not true. $1\ne 2$. What is happening? Another confusion: let's say $x=x+1$. This is never true. But with $x=\infty$, it works. Third confusion: let's say $2x=x$. Subtracting both sides by $x$ gives $x=0$. But what about $\infty$? Fourth confusion: $x-x=0$ is always true, but not for $\infty$. $\infty-\infty$ is undefined. What is actually happening??! Any help will be very appreciated.


How do we show the set, for example A={1,2,3} follows the axiom of regularity? (According to Zermelo-Frankel axiomatic set theory)

Axiom of regularity:  Every non-empty set x contains a member y such that x and y are disjoint sets. \begin{align*} \forall x (x\ne \phi \Rightarrow \exists y \epsilon x (y \cap x = \phi)) \end{align*}  As I have taken the set as a subset of natural numbers, and they are not Sets themselves. i.e 1 is not a set. As all the elements of A are not sets, how can we show the above axiom is satisfied?  we can't show  $1 \cap A = \phi$, as 1 is a number and A is a set. incompatibility of the operation $\cap$. (if I am not wrong.)


Boot Windows from USB on an Ubuntu laptop

I have laptop which from the beginning running Windows 8, I later wiped the hard-drive and installed Ubuntu 14.04. Now I want to wipe the hard-drive and install Windows 10. In BIOS I have selected to boot from USB. But whenever I boot my computer it does not boot on the USB, it just starts Ubuntu. What can I do about it?  I downloaded the .iso file from Microsoft. Then I used Rufus to put it to my USB    I have also tried the following in Rufus which ended in an error message  ""The file system currently selected can not be used with this type of ISO. PLease select a different file system or use a different ISO"     I have looked at these three questions, but I did not find them helpful.        Solution


Cannot send email to Hotmail or MSN addresses

I am running into a problem at work where end users are unable to email Hotmail or MSN email addresses.  We are running an Exchange 2007 server and the message itself is in HTML and contains no attachments.  If messages are sent to a distribution list, those recipients who use other email providers are able to receive and view the message.  Now the kicker is that sometimes we are able to reach the addresses, though not with any regularity.  For instance, a user may not be able to send a message in the morning, but will be able to in the afternoon or perhaps a couple of days later.  Other times, we are unable to reach the addresses at all no matter how many times we try.  Here's some of the information that will get sent back during an unsuccessful attempt:     Delivery has failed to these recipients or distribution lists:      An error occurred while trying to deliver this message to the recipient's e-mail address. Microsoft Exchange will not try to redeliver this message for you. Please try resending this message, or provide the following diagnostic text to your system administrator.      The following organization rejected your message: snt0-mc1-f7.Snt0.hotmail.com.   Also, our mail server generates diagnostic information that the Hotmail (or MSN) server returned a "#500 Unrecognized command ##"    Has anyone encountered anything like this or know what the problem may be?  Update  I've looked at the issue a little more and it appears that the SPF record is good (or at least passable).


How do I keep a window on top in Windows 8

In Windows 8, how do I keep a window above other windows, like the "Always On Top" option on many Linux desktops?  Related:   DeskPins works in Windows 7, but not Windows 8.  Is there software for Windows 8 that provides "Always On Top" functionality?


How to install Java 8 along with Java 9 in Windows 7

How can I install Java 8 along with Java 9... I want both.   Please tell how to set both of their path so that I can use both of them.


In Star Trek, does the transporter conserve the momentum of transported objects?

In Star Trek (2009), when Kirk and Hikaru Sulu are falling from the drill, at the last moment Ensign Chekov locks on them and is able to transport them inside the ship.   By the time they were transported, they have gained a lot of momentum due to free fall, but when they are inside the ship they just experienced a mild thud.    Where did that much amount of momentum go? Does momentum conservation not apply to Teleportation in the Star Trek Universe?   As far as i know from the game 'Portal', momentum was being conserved there.


While watching the Star Wars Holiday Special a segment near the middle includes a cartoon where C3PO talks about a virus that only effects humans (referring to Luke who had previously passed out). Is the Holiday Special considered canon?


Hi am trying to convert my mobile device as proxy server, I searched net but cant find proper solution.  What I am trying to do :  Setup proxy server on android and use that mobile IP/Proxy IP address in my PC browser as proxy.  In Pc we can use Squid Proxy for this purpose I am searching similar framework in Android/Mobile to convert my mobile into proxy server


Doubling the tails in two-sample permutation test

Suppose we have two samples and we wish to determine if they are drawn from the same distribution, the samples A,B being composed of some integers say.  If we test this using a two-sample permutation test, specifically by looking at permutations where the differences in the means of the samples are as extreme as the difference observed: is there any reason to think that we can calculate the two-tailed p-value by looking at one tail and doubling the probability?  This is what it appears to say in my lecture notes, but I don't understand why we could assume that the tails are symmetrical (or why it doesn't entail that assumption). Explanations were not forthcoming.


How can I obfuscate (protect) JavaScript?

I want to make a JavaScript application that's not open source, and thus I wish to learn how to can obfuscate my JS code? Is this possible?


Does loss of reputation cause loss of privileges?

Do you lose privileges if you lose reputation (e.g. by spending it on bounties) and dip below what you had to reach to gain that privilege? Or, do you get to keep a privilege once it is earned no matter what?


I have a Drupal site 8.6.10 on an Ubuntu server 18.04 with MySQL 5.7.25  I want to update MySQL to version 8.0  Here are the steps I followed :   I backed up my database. I uninstalled MySQL from my server with the commands :  $ sudo systemctl stop mysql $ sudo apt remove mysql-* $ sudo apt purge mysql-* $ sudo apt autoremove $ sudo dpkg -l | grep mysql | grep ii  I added the repository with the command :  $ wget https://repo.mysql.com//mysql-apt-config_0.8.12-1_all.deb  I installed the package with the command :  $ sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb            My problem :   I install MySQL with the command :  $ sudo apt update $ sudo apt install mysql-server    When I do step 5, it installs MySQL 5.7 why does not it install version 8 ?


I am checking whether the specified word can be formed on this boggle board with the canForm method. The board has a graph field which indicates adjacent tiles. I do a DFS and set answer to true if the word can be formed.  I understand why the code as it is below doesn't work: answer is a primitive, its value is copied at every recursion and the initial answer (in the public method) stays false.  If I change boolean answer to Set<String> answer = new HashSet<>() for instance, pass the reference to the set in recursion, eventually add the successfully formed word and test for emptiness in the end, it works.  But why does it not work if I simply declare Boolean answer = new Boolean(false) and pass this container? It passes the reference to the object all right, but it mysteriously changes the reference at assignment answer = true (as seen through the debugger), and the initial answer isn't reset. I don't understand.   public boolean canForm(String word) {      boolean answer = false;     int n = M * N;     char initial = word.charAt(0);      // for each tile that is the first letter of word     for (int u = 0; u < n; u++) {         char c = getLetter(u / N, u % N);         if (c == initial) {             boolean[] marked = new boolean[n];             marked[u] = true;             canForm(u, word, 1, marked, answer);         }     }      return !answer; }  private void canForm(int u, String word, int d, boolean[] marked, boolean answer) {      if (word.length() == d) {         answer = true;         return;     }      for (int v : graph.adj(u)) {         char c = getLetter(v / N, v % N);         if (c == word.charAt(d) && !marked[v]) {             marked[v] = true;             canForm(v, word, d + 1, marked, answer);         }     } }


Prove that $\frac{\binom{p}{k}}{p}$ is integral for $k\in \{1,..,p-1\}$ with $p$ a prime number with a particular method

I started by induction on $k$   For $k=1$ then : $1\in \mathbb{N}$  For $k=2$ then : $\frac{(p-1)}{2!} \in \mathbb{N}$ , indeed for all $p>{2}$, $p-1$ is even. (We still have $k<p$ it's important).  Suppose that $\frac{(p-1)...(p-k+1)}{k!} \in \mathbb{N}$ for a specific $k \in \{1,..,p-1\}$   Now try to prove that : $\frac{(p-1)...(p-k)}{(k+1)!} \in \mathbb{N}$.  By the recursive formula we have directly :  $\frac{\binom{p}{k+1}}{p} = \frac{[\binom{p+1}{k+1} - \binom{p}{k}]}{p}$ $\Leftrightarrow$ $\frac{(p-1)...(p-k)}{(k+1)!} = \frac{(p+1)(p-1)...(p-k+1)}{(k+1)!} - \frac{(p-1)...(p-k+1)}{k!}$  By hypothesis we know that $\frac{(p-1)...(p-k+1)}{k!} \in \mathbb{N}$  Now, the key is to see that a product of $k$ consecutive terms is divided by $k!$ (a little induction can solve this).  Then the induction is complete.


I'm trying to write a script that accepts a parameter ($1) with backslashes and I want my script to echo the parameter ($1) exactly with the backslashes entered back.  e.g.  $ ./tst \\abc\def\ghi\jkl\lmn\ \\abc\def\ghi\jkl\lmn\   My tst script at present looks like this;  #!/bin/bash echo $1   When I run my script it returns;  \abcdefghijkllmn   I want it to return:  \\abc\def\ghi\jkl\lmn\   Exactly what I entered. I've even tried echo -E $1 but that made no difference.  Any suggestions I could achieve my desirable returned output from my script would be very much appreciated.


Practical current limit for TO-220 package

I see a lot of MOSFET transistors with suprisingly high continuos currents in TO-220 packages. To make matters more magic open ressistance is very low. For example I want to use  N-MOSFET transistor. In datasheet, there's stated that maximum continuos current is 67A and RdON is lower than 5,9mOhm. I don't believe, that this is possible. Tiny legs of TO-220 package will have far bigger resistance that few mOhms at this conditions, it'll heat up and unsolder.  Where am I wrong?  I believe that semicunductor inside is capable of such currents, but I don't believe, that TO-220 package can deliver...


Javascript difference between function and constructor syntax?

I have studied Javascript for a litte while now but I can't seem how to spot the difference if a statement is a function or constructor. This is the code for a Constructor:  function Book (pages, author) { this.pages = pages; this.author = author; }   And  this is a simple function:  var cars = function(printCar){ console.log(blabla); };   However I have seen in serveral tutorials(i.e CodeCademy) that they are using the constructor syntax for making functions aswell. How is this possible?


Why don't restriction endonucleases digest transformed plasmids?

In the textbook that I'm using, it explains that bacteria does not digest its own chromosomal DNA because the sites that would be cut by its own endonuclease are methylated. Is there a similar mechanism involved for protecting its own plasmids? If so, how are plasmids cut while serving as vectors?


I am making a Repository Client for my sites repositories and I need to be able to detect when a user enters a certain id to detect which URL Repository to get it from.  Here is my code:      JTextField repo = new JTextField();     JButton submit = new JButton("Download!");     String repod = repo.getText();     final String repoid = repod;     submit.addActionListener(new ActionListener(){         public void actionPerformed(ActionEvent e){             if(repoid.equals("pb")){                 //this             }else if(repoid.equals("mb")){                 //this             }else if(repoid.equals("repo29-update")){                 //this             }else{                 System.out.println("Contacting SERVER...");                 System.out.println("Finding REPOID: "+repoid);                 System.out.println("Not Found! Returning Error!");                 JLabel err = new JLabel("Invalid REPOID");                 JFrame a = new JFrame("Error");                 a.setSize(300,100);                 a.setLocationRelativeTo(null);                 a.setResizable(false);                 a.setAlwaysOnTop(true);                 a.add(err);                 a.setVisible(true);             }         }     });   When I go through this script, I always get the else option, why?  This is not a duplicate, I changed the == to .equals() and it still doesnt work.


I have a problem importing OpenWeatherMap to QGIS. I am new to this type of importing. I have searched old topics, but it seems that things have changed now.   Basically, I have a map in QGIS, and I want to overlay the existing map with a real-time weather data.


How does this circuit perform Frequency modulation. I know the LC generates the carrier frequency. How does the transistor act as a varicap to perform FM. Which part of the circuit acts as a varicap and how ?  To people who marked this as duplicate - My question is how is the miller capacitance "effectively" in parallel with the inductor ?


I'm having trouble with part of a build I have to do. I've built this circuit: \$I = A\bullet(B + C + D + E + F)\$  The \$+\$ is OR, \$\bullet\$ is AND, and I'm using 2-input OR gates.  The output signal is for an alarm.  I need a latched output - I need to derive a simple logic circuit using 1 OR and 1 AND logic gate, that could be added to the alarm output signal.  It should latch the alarm output signal once the alarm has been triggered, and the latched condition should require a cycle of the master switch to reset the alarm.  I googled for answers but couldn't find any... e.g. A site I love for Digital Electronics and Circuit Theory is   If someone could tell me what I need to do, or point me in the right direction that'd be great.


Solving Linear Algebraic Equation: $x+y+z=xyz$

I am solving an algebraic equation: $x+y+z=xyz$ for $x, y,z\in\mathbb{N}$ I want to find out what $x, y, z$ are and if  there are more possibilities. By guessing I found out that $x,y,z=1,2,3$ but I want to solve it solve it algebraically. I solved the Equation for $x$: $$ x+y+z=xyz $$ $$ \text{Subtract } xyz $$ $$ x+y+z-xyz=0 $$ $$ \text{Add }{-y-z} $$ $$ x-xyz=-y-z $$ $$ \text{Factor out }x $$ $$ x(-yz+1)=-y-z $$ $$ \text{Divide by }{-yz+1} $$ $$ \frac{x(-yz+1)}{-yz+1}=\frac{-y-z}{-yz+1} $$ $$ x=\frac{-y-z}{-yz+1} $$ $$ \text{Take Factor as }{-1} $$ $$ x=\frac{-1(-y-z)}{-1(-yz+1)} $$ $$ x=\frac{y+z}{yz-1} $$ But I can't go any further by replacing $x$: $$ \frac{y+z}{yz-1}+y+z=\left(\frac{y+z}{yz-1}\right)yz $$ Can please you help me?


Mirror modifier: Mirroring does not come out right

In the red lines, that's my object I want to mirror. But as you can see, the mirroring does not come out right. It's not even a mirrored object of what mine originally looks like. How do I get this right?  Playing around with the merge limit didn't really change it either. It still cuts a part from the original one or overlaps it.


Formal proof for A subset of the real numbers, well ordered with the normal order of $\mathbb R$, is at most $\aleph_0$

I tried to write a formal proof for the theorem: $A$ subset of $\mathbb R$ well ordered by the normal order $\implies A$ is at most of cardinality $\aleph_0$.  Any suggestions?  Thanks.


Prove that this summation has a surprising result! (Or prove me wrong, it is possible that the pattern does not hold)

Essentially, prove the following summation: $$\sum_{i=0}^{2x} {{2x \choose 2i}{2i \choose i}{2x-2i \choose x-i}} = {2x \choose x}^2$$ I came across this while attempting question 6 of this paper () and while I'm sure there are easier solutions to the problem, this summation seemed interesting in itself. Very similar to this summation is the following: $$\sum_{i=0}^{x} {{2i \choose i}{2x-2i \choose x-i}} = {2}^{2x}$$ Which I also do not have a proof for.  The second one can also be thought of as going down the middle of Pascal's triangle and adding the products of opposite ends of the triangle. Proofs of either summation, ideally using mathematical ideas which the BMO1 is based around (so basically pre-calculus), would be much appreciated.


I am very new to mysqli earlier i am writing queries in mysql but mysqli is more advanced so, i am first time using it. Below is my php code.       function clean($str) {         $str = @trim($str);         if(get_magic_quotes_gpc()) {             $str = stripslashes($str);         }         return mysql_real_escape_string($str);     }          $email = clean($_POST['email']);         $password = clean($_POST['password']);         //$password =md5($password);       if(empty($res['errors'])) {         $result = $mysqli->query("SELECT uid FROM users where email='$email' and password = '$password'");         if($result->num_rows == 1){             $res['success'] = true;         }         else{             array_push($res['errors'], 'Invalid login details');             $res['success'] = false;          }     }else{         $res['success'] = false;             }     echo json_encode($res); }   clean function is not working as expected because sql queries return false if i enter username and password correct. So, it seems like this is not valid in mysqli case.  I checked this link  and got to know that we have to prepare query.   I can see there is an example but i am not able to understand how to prepare/bind if i have to use two or more form data.  Thanks for your time.  Updated code  $result = $mysqli->prepare("SELECT uid FROM users where email=:email and password = :password");         $result->execute([ ':email' => $email,          ':password' => $password]);         //$result->execute();         if($result->num_rows == 1){         //if(mysqli_num_rows($result) === 1) {             $res['success'] = true;          }         else{             array_push($res['errors'], 'Invalid login details');             $res['success'] = false;          }


I came across this image when researching refraction in lenses. I can't understand why the light does not refract at the points which I have marked with burgundy arrows even though it is crossing a boundary between mediums or varying optical densities?


If/When to move to secondary fermentation

Digression from   What are the good rules of thumb for determining a. whether to use secondary fermentation at all and b. when to move from primary to secondary.  Preferably any rule of thumb should have both chemical and anecdotal rationale supporting it.


Question:   Suppose $a,b,c,d$ are real numbers such that  $a+b+c+d=a^7+b^7+c^7+d^7=0$  Show that  $a(a+b)(a+c)(a+d)=0$  My attempt: Using $a+b+c+d=0$, I get  $a(a+b)(a+c)(a+d)= 0 \implies a=0, \text{or}$ $ a(bc+cd+db)+bcd=0$  How can I use $a^7+b^7+c^7+d^7=0$ to prove $a(bc+cd+db)+bcd=0$ ?  Edit:(courtesy @mathguy)   Replacing $d$ by $-(a+b+c)$ we see that the hypothesis is equivalent to   $(a+b+c)^7=a^7+b^7+c^7$, and the conclusion equivalent to $a(a+b)(a+c)(b+c)=0$. The polynomial $(a+b+c)^7-a^7-b^7-c^7$ is divisible by $(a+b)(a+c)(b+c)$, and another irreducible fourth degree symmetric polynomial $P(a,b,c)$ .  Also, $P(0,b,c)= b^4+2b^3c+3b^2c^2+2bc^3+c^4$. It remains to be shown that $P(a,b,c)=0$ when $a=0$


How to explain the different forms of the Hamilton-Jacobi equation?

In Arnold's Mathematical Methods of Classical Mechanics, he derives the Hamilton-Jacobi equation (HJE) using a generating function $S_1(Q, q)$ to get  $$ H\left(\frac{\partial S_1(Q, q)}{\partial q}, q, t \right) ~=~ K(Q, t). $$  However, this is different from what I've seen in other physics texts. For example, Goldstein uses the generating function $S_2(q, P, t)$ to get the equation  $$ H\left(\frac{\partial S_2(q, P, t)}{\partial q}, q, t\right) ~=~ - \frac{\partial S_2(q, P, t)}{\partial t}. $$  Why is there this difference? Are the two equations saying the same thing?


How to prevent table going beyond the page width

I am trying to create a table with 10 column but it goes beyond the width of the page and two columns are not seen. What should i do.


In my grammar book, A little is defined as positive and little is defined as negative.  For eg: A little common sense can bring you success.(positive)  then why do we say :  A little knowledge is a dangerous thing.  and how is the use of just 'little' wrong here?


Why is it considered a bad practice to omit curly braces?

Why does everyone tell me writing code like this is a bad practice?  if (foo)     Bar();  //or  for(int i = 0 i < count; i++)     Bar(i);   My biggest argument for omitting the curly braces is that it can sometimes be twice as many lines with them. For example, here is some code to paint a glow effect for a label in C#.  using (Brush br = new SolidBrush(Color.FromArgb(15, GlowColor))) {     for (int x = 0; x <= GlowAmount; x++)     {         for (int y = 0; y <= GlowAmount; y++)         {             g.DrawString(Text, this.Font, br, new Point(IconOffset + x, y));         }      }  }  //versus using (Brush br = new SolidBrush(Color.FromArgb(15, GlowColor)))     for (int x = 0; x <= GlowAmount; x++)         for (int y = 0; y <= GlowAmount; y++)             g.DrawString(Text, this.Font, br, new Point(IconOffset + x, y));   You can also get the added benefit of chaining usings together without having to indent a million times.  using (Graphics g = Graphics.FromImage(bmp)) {     using (Brush brush = new SolidBrush(backgroundColor))     {         using (Pen pen = new Pen(Color.FromArgb(penColor)))         {             //do lots of work         }     }  } //versus using (Graphics g = Graphics.FromImage(bmp)) using (Brush brush = new SolidBrush(backgroundColor)) using (Pen pen = new Pen(Color.FromArgb(penColor))) {     //do lots of work }     The most common argument for curly braces revolves around maintance programming, and the problems that would ensue by inserting code between the original if statement and its intended result:  if (foo)     Bar();     Biz();     Questions:   Is it wrong to want to use the more compact syntax which the language offers? The people that design these languages are smart, I can't imagine they would put a feature which is always bad to use. Should we or Shouldn't we write code so the lowest common denominator can understand and have no problems working with it?  Is there another argument that I'm missing?


I'm trying to install Windows 10 after Ubuntu () and I have to resize my 1TB HDD where Ubuntu is installed but I can't resize it at all.     The problem is that it's blocked. I can't move the slider nor writing in the new size or free space following fields. I want to make a 500 GB partition.


Could anyone provide a simple, easily digestible, and well-explained proof of the AM-GM inequality (the multi-value version)?  Much appreciated.


Why did Superman & Supergirl start to suffocate instantly when Luthor made our yellow Sun red?

Spoiler Alert: If you haven't read all comics series & story arc of New Krypton Saga viz. New Krypton, World of New Krypton, Last Stand of New Krypton, Superman: War of Supermen etc, drop this question right away!  While battling the evil alien Brainiac, Superman & Supergirl discovered the long-lost bottled city of Kandor which was stolen from Krypton prior to its destruction. Superman re-enlarged the city on Earth, but it wasn't welcomed by Humans. Humans assaulted the city in which Kryptonian's leader Zor-El (Supergirl's father) was killed. Using highly evolved science, Alura (Zor-El's wife) created a new planet "New Krypton". Plus, she, as a new leader, freed General Zod from Phantom Zone to command new super military of New Krypton (every kryptonians had super powers due to yellow sun).  While New Krypton & Earth were at cold war, Zod ordered his military to attack Earth. When military was in space, Sam Lane (Lois Lane's father) destroyed New Krypton by a trick making their race extinct again. Kryptonian military successfully crushed Earth's Mars defense facility & they headed towards Earth.  When they were about to enter atmosphere of Earth:      Many Kryptonians died under the red sun because they couldn't survive in empty space. Its somewhat plausible because they weren't under yellow sun for long. But, what about Superman & Supergirl? They did survive because they were under yellow sun for very long. But, why did they become very weak instantly? If the power draining rate by radiation of red sun was that high, how did Superman & Supergirl survive?  Is this a plot hole? Or, am I missing something?


Can i enter Norway with Iceland visa when it wasn't in my itinerary

I received an Iceland visa but as of now i have got a feeling of also  reaching Norway though i didn't include it in my itinerary as a second country to visit. Can this cause me problems at Norway borders since it is not in my itinerary??


How do I implement parallax scrolling in 2D?

Suppose I have three layers: a foreground, an intermediate-ground and a background.  What is involved in using these three layers to create ?


How come no one noticed Logan's bullet hole?

At the end of X-Men Origins: Wolverine, Logan got shot in the head with an Adamantium Bullet which was the only thing strong enough to get though his Adamantium bones.  Is it explained how no one noticed in the first X-Men movie that he had a bullet hole in his "indestructible" skull when Xavier learned his entire skeleton was made of Adamantium?


Java - IF condition not reading entered String variable value

import java.util.Scanner;  public class Main {     public static void main(String[] args)      {         Scanner scan = new Scanner(System.in);         String play = "y";         System.out.print("Enter something: ");         play = scan.next();         System.out.println(play);         if (play == "Y" || play == "y")         {             System.out.println("If test works!!");         }         System.out.println("Did it work???");     } }   I assume this has something to do with when I press enter, it's storing that as well. I tried changing String play to a char, but then I get errors from Scanner saying it can't change a String to a char.


I have an initial list, comprising 1000 lists, some empty and some not. I'm trying to disperse 2000 floats amongst those empty lists at random(empty_list45, empty_list2, ..., empty_randn), not in order (empty_list1, empty_list1, ..., empty_listn).  Here's my attempt:  #the list containing lists. folder = [[]] * 1000 for i in range(len(newOPsys_i)):     folder[newOPsys_i[i]] = (newOP[i])  #list of indices of empty lists in folder, where folder is the list comprising 1000 lists that may or may not be empty  empty = [] for i in range(len(folder)):     if not folder[i]:         empty.append(i)  #function that pulls a random index from any called list def rand(mylist): rando = random.randint(0,len(mylist)-1) return(rando)  #my attempt at appending 2000 floats to random empty lists in folder for i in range(0,2000):     x = empty[rand(empty)]     print(folder[x])     folder[x].append(match[x][random.randint(0,len(match[x])-1)]) #match is a separate list where I wish to pull the floats from, and place them into the empty lists.   My output looks something like:  [] [3.9] [3.9, 7.8] [3.9, 7.8, 54.9]   From the print, what seems to be happening instead is that in the first iteration an empty list is found then a single float is appended. On the next iteration, another empty list is randomly found, but appended to this empty list is the float from the last iteration, along with a new float. This is not what I want to happen, I just want those single random floats appended each iteration. Any insights?  Thanks in advance.


Is Fantastic Beasts and Where to Find Them an exhaustive list of magical animals in the Harry Potter world?

Fantastic Beasts and Where to Find Them is a pseudo in-universe book describing magical animals from the Harry Potter world.  Is it an exhaustive list though? Do other creatures exist that don't feature in the book?  I'm asking because of this , by Gabe Willard:     No creatures matching her description are listed in Fantastic Beasts and Where to Find Them. If you can, make an answer. I'm fairly confident she's a Muggle snake, however. Such an absence from FBWFT would be unexpected.   Emphasis mine.  Is such an absence unexpected? Are other 'well known' creatures that aren't featured in that book?


Where does a local variable get stored so that it's accessible from an asyc delegate?

At least I think what I'm referring to is a delegate. Here's my scenario  bool allow_login;  StationDC.Load(query, p => {     if (p.Entities.SingleOrDefault(q => q.Category == "Site Status").Value == "Offline") allow_login = false;     else allow_login = true;  }, true);   I still only barely understand what's actually going on here, but from what I do know the delegate I'm passing to StationDC.Load runs asynchronously, even if on the same thread. I'm confused though that I can access the boolean allow_login since I always thought delegates were more like a separate method, so should be in a different scope. Anyone have some insight as to what's going on under the hood here? How is my boolean persisting to still be around when my delegate is called?


Ubuntu 18.04 Won't Boot on Dell Inspiron 7375

This is the Ryzen 7 2700u version. Ubuntu 18.04 nor Ubuntu Daily will boot. What can I do? Here's the screen when I boot from Ubuntu 18.04 USB.  [0.000000] ACPI Error: [\_SB_.PCI0.LPC0.EC0_] Namespace lookup failure, AE_NOT_FOUND (20170831/dswload-210) [0.000000] ACPI Exception: AE_NOT_FOUND, During name lookup/catalog (20170831/psobject-252) [0.000000] ACPI Exception: AE_NOT_FOUND, (SSDT:AmdTable) while loading table (20170831/tbxfload-228) [0.000000] ACPI Error: 1table load failures, 7 successful (20170831/tbxfload-246) [0.000000] [Firmware Bug] AMD-Vi: IOAPIC[4] not in IVRS table [0.000000] [Firmware Bug] AMD-Vi: IOAPIC[5] not in IVRS table [0.000000] [Firmware Bug] AMD-VI: No southbridge IOAPIC found [0.000000] AMD-Vi: Disabling interrupt remapping [0.716275] i2c_designware AMDI0010:01: Unknown Synopsys component type: 0xffffffff [6.718168] AMD-Vi: Unable to write to IOMMU perf counter.


Need to prove $f(x)=0$ for all $x \in R$

$f(x)$ is infinitely differentiable and $∃ L∈\mathbb{R}$  such that $|f^{(k)}(x)|≤L$ for any $k∈\mathbb{N}$.  I need to prove that :   If $f(1/n)=0$ then $f(x)=0$ for any $x∈\mathbb{R}$.


Why does locking the rear tires on a vehicle cause it to spin?

are often used in motor-sports and stunt driving to turn around tight corners.  Essentially, the driver applies the handbrake as he enters the turn, in order to "kick out" the back end and slide the vehicle around the corner.  However, applying the handbrake hard enough to lock the rear wheels while traveling straight will cause the rear of the vehicle to "kick out".  Given enough speed, the vehicle will spin 180 degrees.  Why do sliding wheels on a car want to "get in front" of rolling wheels?


Can I use Relentless Endurance after failing the Relentless Rage Constitution saving throw?

Can I make the saving throw from Relentless Rage (PHB p.49, Barbarian) and use my Relentless Endurance (PHB p.41, Half-Orc) if I fail it? Is there anything that would suggest this is not possible?


Any shortcut for switching between Remote Desktop and local desktop?

Normally in windows we use "ALT+TAB" to switch between windows. So is there any shortcut for switching between my desktop and remote desktop. I need it desperately.


I have windows 10 installed on my machine, and i want to make a new partition to build Linux on it. The problem is that i have currently only one partition which covers all sectors. When using fdisk it let's me choose the kind of partition (primary/logical) and than shows no sectors available. How can i change the partition size and still have a working windows?


Relation of liquid pressure with breadth

Firstly, I would like to clear out that, my question is not very clear. I myself am not sure what problems I have on understanding this. So, I'll try my best to explain where I have confusions.  My confusions lies with this formula,  $$ P= h \rho g$$ More specifically, I am confused about pressure when very thin pipes lead into very large tanks. For example, in a tank full of water there is a small ball, this ball experiences a pressure, P, due to the water above it. As the walls just above the ball of the tank becomes narrower, P, shouldn't change, and just before the walls conjoin, there is just an array of molecules in the "tube", and the pressure is still P. Once the walls conjoins, pressure P disappears. For some reason this seems absurd to me. In an instant, all the pressure is gone. I feel like something is missing but I am not sure what.  I hope you have been able to understand my confusion, because I haven't. Please help.


We are currently maintaining country folders like  www.example.net/de/ www.example.net/fr/   Now we are thinking about Swiss with 3 languages (it, de, fr). I think it's bad to change all the current directories. Is it okay to only add the region if necessary? For example:  www.example.net/de/ = German speaking, not Swiss www.example.net/fr/ www.example.net/it/ www.example.net/de-CH/ = German speaking, Swiss only www.example.net/it-CH/ www.example.net/fr-CH/   So: Is it for SEO okay to mix the subfolder structure between /lang/ & /lang-country/?


I need to prove that $$\cos\dfrac{\pi}{11}+\cos\dfrac{3\pi}{11}+\cos\dfrac{5\pi}{11}+\cos\dfrac{7\pi}{11}+\cos\dfrac{9\pi}{11}=\dfrac{1}{2}$$  How to do it?


Editing/Creating files in C:\Program Files\WindowsApps

Lately, I've been quite annoyed at the fact that I can't edit files in C:\Program Files\WindowsApps folder. I've used the takedown command, in elevated CMD, and changed permissions, to allow admins to have full control (I am an admin), and changed owner to Administrators. I can delete files/folders, yet, whenever I try to edit files, or add files, I get the error message "Access is denied." How do I enable creating files and editing files in WindowsApps?


A few answers on here seem to suggest to something like the following:  In the Many Worlds Interpretation, the amplitude of a branch exponentially decreases over time and so the energy of that branch also decreases exponentially. This seems to suggest the branch amplitude and energy conserved within that branch have a very simple linear relationship.  However, do the amplitudes not just give probabilities for transitions, some of which can be interpreted as measurements of energy? To say that we know the energy has decreased in direct proportion to the branch amplitude is a simplification?


What all techniques are used to display blood in films/television shows?

In recent times, in movies and television shows when someone is stabbed or shot or injured in any other way the blood coming out of their body seems very real in terms of its the color, viscosity, and the speed at which comes out of the body.   What all techniques, mechanisms/equipments, and materials/chemicals are used for this purpose?  Has there been a time where real blood is used to give it a real-life look/effect? (Sounds creepy I know)


Remove lines based on duplicates within one column without sort

I have large 3-column files (~10,000 lines) and I would like to remove lines when the contents of the third column of that line appear in the third column of another line. The files' sizes make sort a bit cumbersome, and I can't use something like the below code because the entire lines aren't identical; just the contents of column 3.  awk '!seen[$0]++' filename


Can anyone see how to prove the following?  If $x$ and $y$ are real numbers with $y\geq 0$ and $y(y+1) \leq (x+1)^2$ then $y(y-1) \leq x^2$.  It seems it is true at least according to Mathematica.


What does it mean to settle a trade between bid and ask?

I was watching some sample data from a time & sales window (the tape). There was a "Remarks" column with the comment: Between Bid and Ask. What does "Between Bid and Ask" mean? How can a trade happen between the bid and ask?   If I put in a buy market order, trade settlement price will be the ask price. If I put in a sell market order, trade settlement price will be the bid price.  Does "Between Bid and Ask" have something to do with limit orders?  *I have asked this question before, but I could not understand the answer.


How to prove that $A^{-1} + B^{-1}$ is invertible given the conditions

If $A$ and $B$ be two invertible $n \times n$ real matrices and $A + B$ is invertible, how to prove that $A^{-1} + B^{-1}$ is also invertible?


Double (or multiple) callouts using Tikz

Using tikz is there a way to do a double (or even multiple) callout. Below is a MWE which demonstrates what I already have and does indeed give a desired output. What I am asking is whether there is a more elegant way to do this.  question looks similar, but the solution seems to be based on a path.  \documentclass{article}  \usepackage{tikz} \usetikzlibrary{shapes.symbols,shapes.callouts} \usetikzlibrary{positioning}  \newcommand{\Callout}[1]{\tikz[remember picture,baseline=(#1.base),inner xsep=0pt]{\node(#1){#1};}}   \begin{document} Point to \Callout{here1} and to \Callout{here2}.  \tikz[remember picture, note/.style={rectangle callout, fill=red!30!white}]{\node [note, overlay,callout absolute pointer={(here1.south east)},text centered,below right=of here1] {Point from here};}%  \tikz[remember picture, note/.style={rectangle callout, fill=red!30!white}]{\node [note, overlay,callout absolute pointer={(here2.south east)},text centered,below right=of here1] {Point from here};}%   \end{document}


What theoretical explanations exist for the absence of any observed gravitational magnetism?

There are notable similarities in the classical laws that govern the gravitational force and the electromagnetic force. Considering stationary point masses/charges, both the gravitational force and the Coulomb force follow inverse square laws: $$ F_g=G\frac{m_1 m_2}{r^2} $$ $$ F_C=\frac{1}{4 \pi \epsilon_0 }\frac{q_1 q_2}{r^2} $$ For the Coulomb force, each electrostatic charge has an electric field and it is the interaction of the two electric fields which create a force. This is analogous to the gravitational fields of masses, which also interact to bring about a gravitational force. Magnetism has of course been shown to arise from the laws of electrostatics in a relativistic setting. See the Feynman Lectures on Physics, Volume II, Chapter 13-6:  If magnetism can arise just from the relativistic effects of moving electric charges, then why does gravitational magnetism not arise as a relativistic effect of moving masses? Physicists such as P. M. S. Blackett and Arthur Schuster did indeed propose notions of gravitational magnetism, although these were were not supported by experimental observations. Does the explanation, for why gravity and electromagnetism seemingly lack this commonality, require transcending the classical description of gravity?


listings' otherkeywords={if} also identifies 'shift' as a keyword

I am trying to paste Isabelle code into a LaTeX document using the listings package.  The nearest language= options seem to be ML and Haskell.  Some of the code contains blocks delineated by quotation marks ("...") within which there are keywords.    Specifying language=ML or language=Haskell does not embolden keywords within the "..." blocks (e.g. " ... if ... ").  On the other hand, setting otherkeywords={if} does embolden keywords within quotation blocks, but also picks up variable names like shift.  \documentclass{article} \usepackage{listings} \lstset{language=ML,         otherkeywords={if,then,else,return,"}         }  \begin{document}   \begin{lstlisting}     "if foo then bar * shift"    \end{lstlisting} \end{document}


Returning a C string from a C++ function

I have a C++ function, which constructs a std::string inside. I want it to return the C const char * of this string to the caller. I'm using c_str() to get the C string out, but then this can be deallocated after the string is returned because the resulting buffer is owned by the std::string.  Should I do something like return strdup(str.c_str())? That doesn't feel right.  (I'm a beginner to C++, so please excuse me if this question seems dumb).


I'm writing a poker game, but the rules are custom. I have 2 player cards and 5 community cards (arrays of structs).  I need to initialize a player's possible hands (21 hands - 7 combination 5) with any combination of 5 cards (structs).  Passing in two pointers to the player and community card struct arrays, as well as a pointer to the player struct, I go through them and put all 21 in a "hands" struct array, each element containing a 5 "card" struct array in the "player" struct.  enum Value {     ONE = 1, TWO, THREE, FOUR...ACE };  enum Suit {     CLUB = 0, DIAMOND... };  struct card {     enum Value val;     enum Suit suit; };  struct hand {      struct card cards[5]; }  struct player {     struct hand hands[21]; }  void makePlayer(struct player *person, struct card *personCards, struct card *commCards);   we can make this easier and just conceptualize with an array of 7 cards  void makePlayer(struct player *person, struct card *sevenCards);   My question is how to implement the combination to achieve all 21 results without hard coding them?  I have a function to copy cards, just passes in two card arrays and gives them the same values.  I'm just lost conceptually on the combination.  A step in the right direction would help.   I'm looking more for concept proof than an actual working program.  Say you have cards "p1, p2, c1, c2, c3, c4, c5".  You make 21 combinations of 5 cards, order doesn't matter, you can use any cards. So: p1 p2 c1 c2 c3.  Or: c1, c3, c4, p1, c5.  Just no repeating combinations. So basically, given an array of 7 card structures, create 21 possible combinations of 5 of the structures without repeating any.


If two groups are isomorphic to subgroups of each other, are they isomorphic themselves?

Suppose we have two groups, $G,H$ and that $\rho:G\rightarrow H, \tau:H\rightarrow  G$ are $1-1$ morphisms. Is it true then that $G,H$ are isomorphic? I don't think so, but I can't come up with any counter-example. This definitely holds for finite groups obviously. But what about infinite groups? Moreover, if it doesn't hold in general, does it hold for some large class of groups?


How to get the ISO time in 3 days with javascript?

How can I get the date after three days from today in ISO format? I can get today's date with the following code, but not sure about how to get the ISO date in three days. const today = new Date().toISOString().substring(0, 10);


What is the Android Permission "WRITE_GSERVICES" doing?

There is a mysterious and undocumented Android Permission called: WRITE_GSERVICES. As usual Googles own documentation is even more mysterious than any bad fairytale, writing:   android.permission.WRITE_GSERVICES      Allows an application to modify the Google service map.   However Googling (!) for Google Service Map yields nothing useful.  What is it controlling and what is it used for?


I am currently trying with a modal window popup. Essentially it come in and takes over the whole window.

X
         <form>             form stuff..         </form>

   Now when I target my #closeBox like..  $("#closeBox").click(function() {     $("#popup").remove();    });   The event never fires. I believe this is because it is nested, if I switched #closeBox to html the event fires and it works, as it does if I switch it to #popup. How can I target the nested element so that it only fires when #closeBox is clicked?


What is the significance of the term "separable" in the context of countability properties?

In the context of topological spaces, I see the following major countability properties:  A space is:   "separable" iff it has a countable dense subset "second countable" iff if has a countable basis "first countable" iff the neighbourhood system of every point has a countable local basis.   (Definitions taken from Counterexamples in Topology by Steen and Seebach, 2nd ed. 1978 -- there may be differences in wording from other sources.)  The question I have is: "separable" into what, exactly? By which I mean to say: what is the thinking behind calling such a condition "separable"?  It appears not to be related to the concept of "separation axioms", which do immediately and obviously invoke an intuitive notation of separation, neither does it seem to have anything to do with "separated sets".  (Anyone using the spelling "seperable" or "seperated" will be immediately downvoted. :-) )


Intuition Behind the Elastic Net Penalty

According to , the elastic estimator has the follow formulation.   $$  \beta_{elastic} = \arg \min_{\beta} 1/2n\|Y - X\beta\|_2^2 + \alpha \lambda\|z\|_1 + (1-\alpha)\lambda/2 \|z\|_2^2$$  I understand that the elastic net takes the advantage of both the ridge and lasso regression in the penalty term. But I don't understand why the $l_1$-norm and $l_2$-squared norm should interacts linearly via $\alpha$. Does it make more sense to use:  $$  \beta_{new} = \arg \min_{\beta} 1/2n\|Y - X\beta\|_2^2 + \alpha \lambda\|z\|_1 + (1-\alpha)\lambda \|z\|_2$$  p.s. I understand that adding the coefficient $\frac{1}{2}$ is a equivalent formulation, but I don't understand why we combine a norm and a squared-norm for the elastic net penalty.   For ridge regression, the following two formulations are equivalent via their constrained formulations, or KKT condition:   $$ \beta_{ridge1} = \arg \min_{\beta} 1/2n\|Y-X\beta\|_2^2 + \lambda\|\beta\|_2^2  $$  $$ \beta_{ridge2} = \arg \min_{\beta} 1/2n\|Y-X\beta\|_2^2 + \lambda\|\beta\|_2 $$  My question is that why we use $\beta_{ridge1}$ instead of $\beta_{ridge2}$ for the elastic net penalty?


When specifying a range of values that have a unit of measure associated with them, what is the best practice for where to include the unit of measure?      1lb - 20lb   Or     1 - 20lb   And how would this apply when using metric prefixes?     1KΩ - 20MΩ   Or     1K - 20MΩ


Shutter 0.94 in Ubuntu 18.04.1 taking wrong screenshoots

For some reason shutter is taking the screenshots as a mix of its icon instead of real ones. Any similar issue with certain solutions?  This is an example screenshot:


Make the horizontal width of the flair customizable to any arbitrary size.  This was apparently a feature of StackFlair or other alternatives, but according to  here, they are no longer available.  I think this is a valuable feature to add to the official version.  My personal issue that causes me to wish for this is that I have exactly eight(8) SE sites that are presently above 200 rep, while the flair can only show exactly seven(7) icons.  Thus, the numeric values are including exactly one(1) more site than is shown.  Of course, one can always be "one-off" from the default amount by poor luck, but that seems like all the better reason to allow any arbitrary number of sites of the user's choice to be shown.    My image above shows the inconsistency - I am shown to have 8 gold badges on my flair, as I have exactly 1 gold badge on each of 8 sites (all Fanatic for each).  However, it only shows 7 sites.  Thus, my badge total is inaccurate for the sites shown.  It would be great if I could simply make the flair wider, and thus show as many sites as I wish.


Parental controls with different settings for different users

Does anyone know of a good way to set up some sort of parental controls so that one user account is subject to them, but not another?  A couple of friends of mine use Ubuntu and have kids (7 to 10 years old) who use the family computer. They'd like to have some blocking of adult sites. They're not going to supervise all the time, which I know might be ideal, but there we go. And they're not particularly technical, so they don't want to have to run scripts to turn the parental controls on and off regularly, but they can cope with having different accounts for different people. I haven't found a great way of doing this. I am pretty technical, so I'm happy to spend some time at the command line to set it up, but then it needs to just work.  Please don't just link to DansGuardian. If your answer doesn't address the different user account aspect, I will vote it down. If you want to talk about general parental controls that apply to all users then please start a new question - I'm sure that plenty of people would be interested in it, and I'll link to it from this question.


"You, my peer, who know no more than I" or "You, my peer, who knows no more than I"  I am leaning toward the first one, but the second one sounds more natural. Which one should I choose?


How do I prevent a bounty from being auto-awarded?

I currently have a question with (what I feel is) a very large bounty.  While the question has received some excellent attention, there is only one answer of (in my opinion) somewhat low quality.  As the only answer, I believe it will receive the bounty when it auto-awards.  I feel as though the answer was only posted in order to obtain the bounty auto-award by default.  I have no problem forfeiting the reputation from the bounty, but I'd prefer it to go on an answer of semi-quality, and not have it auto-award to what amounts to an answer for the sake of answering.  I feel that this "bounty sniping" constitutes an actual problem with the system's (ostensibly fake and worthless) currency.  Is there a way to circumvent the auto-award and just have the bounty get discarded?


How to prove Euler's theorem using Lagrange's theorem?      If $a$ and $n$ are relatively prime then $a^{\phi(n)}\equiv 1 \pmod n$   Wikipedia says that it can done and that $\phi(n)$ is the order of the multiplicative group of integers modulo $n$. But I'm not sure how to proceed with the proof. Any ideas/hints?


Word for the situation of being unable to pass opposing pedestrian, as you both start to step same direction

Is there a word or expression in English, which describes the situation, when you can't pass a  stranger, who is walking towards you on the street, because you both start to step the same direction?  I'm pretty sure I've heard one once. As I remember, it was including "dancing" reference, but in more specific way.


How to move all windows to another workspace

Is is possible to move all windows (or all not minimized windows) form one workspace to another?   I know I can move one window to other workspace with Shift+Ctrl+Alt+arrow, but it will move only that one focused window.


How can I get the neighbor of an html element in javascript?

Sample html: <div class="container" id="neighbor-color-div">         <button id="change-neighbour-color" onclick="change_neighbor_color()">Change my          neighbour color!</button>         <button id="neighbour">Click the other button!</button> </div> <script src="./main.js" defer></script>  Sample main.js: function change_neighbor_color() {  ... }  I don't know how to do that, but after I click the "change-neighbor-color" id button the text color of the other button should change to blue. Thank you for your help.


Suppose $f(x)$ defined in $\mathbb{R}$, then $f$ is continuous in $\mathbb{R}$ if and only if for every open set $G$, the set $f^{-1}(G)=\{x:f(x)\in G\} $ is open.  I have done necessity. If $f$ is continuous and G is open. Then for $x_0\in f^{-1}(G)$,$f(x_0)\in G$,and $f$ is continuous hence $\exists U(x_0,\delta)$,such that for $x\in U(x_0,\delta)$,$f(x)\in G$. Thus  $ U(x_0,\delta)\subset f^{-1}(G)$ which makes  $f^{-1}(G)$ is an open set.  And now I have no ideal of the sufficiency.


How to get the calorie unit in siunitx package. Thanks   \documentclass{memoir} \usepackage{siunitx} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \si[per-mode=symbol]{\kilo**\cal**\per\mol} \end{document}


Bivariate normal distribution and law of $Z$

Let $(X,Y)$ a bivariate normal variable $f(x,y)=\frac{1}{2\pi \sqrt{1-\rho^2}}e^{\frac{1}{2(1-\rho^2)}(x^2-2\rho xy+y^2)}$. Let $Z=\frac{Y-\rho X}{\sqrt{1-\rho^2}}$.  Find the law of $Z$.  Say if $X$ and $Z$ are independent or not.  Find $\mathbb{P}(X>0,Y>0)$.    Already by eye it can be noticed that the mean vector is $\mu=\begin{bmatrix} 0\\ 0\end{bmatrix} $ and the covariance matrix is $\sum=\begin{bmatrix}1 & -\rho\\ -\rho & 1\end{bmatrix}$  . I also know that $Z=X_1+...+X_n\sim N_n(A\mu,A^T\sum A)$, thus $Z$ is a linear of $X$ and $Y$ with $\frac{1}{\sqrt{1-\rho^2}}=const.$. Can I say that $Z\sim N(0,2-2\rho)$?


What to use after a word which ends with "se" to indicate possession?

I apologize for the seemingly simple question. I've searched on Google for this, but could not find anything.  The word "Recluse", meaning (noun) "a person who lives a solitary life and tends to avoid other people."  I would normally put an 's after it to indicate possession, like "Recluse's Home". But saying it out loud it doesn't sound quite right.   Is 's the proper way to indicate possession after a word ending in "se"?   Extra: How about possessive form of Jesus (no pun intended), and how is that pronounced? I always pronounced it like "Jesuses", but that doesn't flow very well.


Multiple of my D&D players are not paying attention

As the title says, multiple of my players are not paying attention during our d&d campaign. Most of the time they will simply talk to each other about unrelated things in the middle of combat and other times, and I have to continuously ask them where they want to go next, and have to ask them to roll dice multiple times. More than once a player will have no idea what is happening and I have to constantly repeat myself. Any solutions, tips, or advice is very welcome.


See these sentences:     See there, it seems that someone is inside the house. OVER   See there, it seems that someone is in the house.   Another example:     The doctors found two bullets in his body. OVER   The doctors found two bullets inside his body.   Certainly, both are interchangeable, aren't they? But in the bullet's example, the second one looks natural. I'm not sure why. Is it something that bullets were first out and then they went inside? But if that's the case, someone is in the house is also okay. That person too was out first!


When $\Bbb Z_n$ is a domain. Counterexample to $ab \equiv 0 \Rightarrow a\equiv 0$ or $b\equiv 0\pmod n$

Suppose $$ab \equiv 0 \pmod n$$ and that $a$ and $b$ are positive integers both less than $ n$. Does it follow that either $a | n$ or $b | n$?  If it does follow, give a proof.  If it doesn’t, then give an example.   For this question is this a suitable answer: No it doesn't. $3$ and $4$ are both less than $6$. $$3 \times 4 \equiv 0 \pmod {6}$$ but $4 \not \mid 6$.


What is the cause of quantum entanglement?

I understand the idea of quantum entanglement - where what happens to one particle in one location instantly effects another particle in another location, even if separated by millions of miles.  But the question is how does it do that? Are the particles connected through a wormhole or something like that?


What size of head is right for this monopod?

I want to get a replacement head (possible a tilt head) for this monopod.  It seems like on most online stores, the size of head is exclusively quoted in inch. Since I live outside US and I am also new to the world of photography, I am not entirely sure if I will get it right. I hope you may be able to tell me if I interpreted the size correctly.  So here is my question:  The screw in the photo is about 1 cm wide in diameter. I suppose I can fit 3/8" tilt head to it? My camera is a Fujifilm xt-20.


Inspecting standard container (std::map) contents with gdb

Supposing to have something like this:  #include <map> int main(){     std::map<int,int> m;     m[1] = 2;     m[2] = 4;     return 0; }   I would like to be able to inspect the contents of the map running the program from gdb. If I try using the subscript operator I get:    (gdb) p m[1] Attempt to take address of value not located in memory.   Using the find method does not yield better results:  (gdb) p m.find(1) Cannot evaluate function -- may be inlined   Is there a way to accomplish this?


Differences between PC, console and mobile versions of Terraria?

I love the game Terraria for PC and played it for ages. Now I saw Terraria on the PS3-Store and gave it a shot. After some wandering around I saw something like a snow-biome and realised later on, that I was on a floating Island. I haven't played much of Terraria the last months, but this stuff seems kind of new. In addition I haven't found the (current) differences between the PC and the Consoleversion. Is there just one (upcoming?) Patch missing on the PC? What's included or - like the title said - what are the current differences (besides the splitscreen-feature of course)?


Doesn't the uncertainty principle stop matter from collapsing to a point?

I just read a question about degeneracy pressure and collapsing white dwarfs. When the dwarfs have a certain mass (say that they have become fat dwarfs) the degeneracy pressure will lose the battle with gravity and collapse to a neutron star. Which in its turn, if it has eaten enough, will collapse into a black hole. All the particles constituting the neutron star will end up at a point, theoretically. Won't the uncertainty principle prevent the last stage of this collapse? Won't some kind of "uncertainty pressure" appear? What I ask is not if the uncertainty principle applies to a black hole that has already formed (as does the question of which this is supposed to be a duplicate). I ask if the UP doesn't prevent the collapse to a hole.


How to run bash script without terminate

When i run this script via terminal on my dedicated server it works. But only while the window is opened (the terminal). When i close the window, it close the script for running. How can i make it running forever in the background?  #!/bin/bash     ./robots.sh &     ./update_robots.sh &     ./update_auctions_end.sh &     ./auto_bidders.sh


Undefined control sequence "\includegraphics"

I recently got a weird error when I was trying to recompile an old document of mine. I am using the latest versions of MiKTeX and TeXstudio and I am using pdfLaTeX compiler. I made a minimum working example which also produces the error:  \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \begin{document}     test\\     \includegraphics[width=.25\linewidth]{image.jpg} \end{document}   The .log file says the following:  ! Undefined control sequence. \Ginclude@graphics ...\Ginput@path \set@curr@file                                                    {#1}\edef \uq@curr@file {\... l.11 ...cludegraphics[width=\linewidth]{image.png}  The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.   I tried reinstalling TeXstudio and MiKTeX, but it didn't help.  Thanks in advance.


How do I change login screen theme or background in Ubuntu 20.04?

How can I change the Ubuntu 20.04 login screen theme or background?  In the previous version 19.10, I can change it from the CSS file under Yaru theme but now there is no CSS file.


#include <stdio.h> int main(void)  {    char c[]="GATECSIT2017";    char *p=c;    printf("%s", c+2[p]-6[p]-1);    return 0; }   What do 2[p] and 6[p] mean? Please provide a detailed explanation.  Output: 17


Are there any conditions in which norm of inverse of a bounded operator T is equal to reciprocal of norm of the operator T.


while testing my DKIM/SPF config by using the port25.com email service, I am getting the following reply for my SPF record:  permerror (DNS void lookup limit exceeded)  However, my spf record does not have any "include":  v=spf1 mx a ip4:IP1 ip4:IP2 ip6:IP3 ~all  any idea what is going on?  When I am using , I get a pass on the SPF.  I have checked the docs at   and found this here:     "The void lookup limit was introduced in RFC 7208 and refers to DNS lookups which either return an empty response (NOERROR with no answers) or an NXDOMAIN response."   It's not doing ant DNS lookups, or is it?


Predictor transformation in logistic regression

In linear regression, I've seen (granted, not many) situations where basic transformations to some of the predictors can significantly improve the fit and stability of the model, and often a scatterplot of the response variable vs each individual predictor can provide useful clues as to whether a transformation can help.   Is there a similar approach that would work for logistic regression -  i.e., what is an intuitive way to determine whether any predictor transformations can help?


Ubuntu packaging : why separate for 32-bit and 64-bit

Why we have to do separate packaging to applications for 32-bit and 64-bit Ubuntu Operating systems.I mean why some applications are making 32-bit and 64-bit separately and why some applications are not ?   is there any advantage if we made 64-bit packaging for a 64-bit OS ?


Inverse of holomorphic function which is injective around a point

I'm to solve an exercise which supposes that $ f: U \rightarrow \mathbb{C}$ is holomorphic on an open subset U $\subset \mathbb{C}$ and that $f'(a) \neq 0$ for some $a \in U$.  I'm asked to show that $f$ is injective on some disk around $a$, and then having done so that it's inverse $g$ on such a disk is given by  $$ g(w) = \frac{1}{2 \pi i}\int_{\gamma} \frac{zf'(z)}{f(z) -w}dz$$  where $\gamma (t) = a + re^{it}$, $t\in [0, 2\pi]$ is the path around the boundary of that disk.  I've managed to show that it's injective in the disk, but I have no idea how to show the inverse is of that form.  The section of the textbook I'm using this is in has covered the argument principle, Rouche's theorem, the open mapping theorem, and the inverse function theorem, but I can't see any obvious way to apply any of them to show $f$ is injective on some disk.  I thought of using the inverse function theorem now that I've established $f$ is injective, but this just tells me that $g'(w) = \frac{1}{f'(g(w))}$, and I can't see how to make that of the desired form.   I'd really appreciate any help you could offer, thanks in advance.


I know that to keep settlers happy you need to have 1 bed, 1 food and 1 water for each of them. I also know that you need to have a defense of food + water to keep people safe. I saw on some of the shops that they increase happiness. I have heard rumors online that there are other factors to happiness. one of the most believable ones was that the more decorations you have the happier people are. some of the others were a little bit off, like some how if you have a lot of TVs happiness will glitch and start decreasing. I head one person saying that if a synth infiltrates your settlement they can start to decrease your happiness. Do these things actually affect your settlement happiness? If so how big is the impact? What are the other factors that will affect it?


Denied permissions for Synchronized Data Extension in Salesforce Marketing Cloud

Can we denied permission for synchronized data extension in Salesforce Marketing Cloud, My requirement is, I don't want to allow users to access synchronized data extension either in contact builder or in Subscribers.


Summing stereo to mono without high frequency distortion

just wondering how to sum stereo to mono signal? I am aware that you can use resistors in series to the left and right outputs of say a Bluetooth receiver module but when i do this, the channel does sum but the quality is horrendous on the high frequencies, sounds like a low bit rate mp3? Does anyone have a solution to this? The parts that i am using is a sure 30watt mono amp, and a sure Bluetooth receiver module 4.0 aptx etc... Thanks i would really appreciate this as i have been pulling my hair on this speaker build


How to label roads like this in QGIS 2.18.14?

I got roads from OSM, and have labeled with the 'name' field. This suit me.  But, how to label like this screenshot, with this rectangle label? The content is in the 'ref' field.


How to prove the inequality $\frac{4^m}{4\sqrt{m}}\le\binom{2m}{m}$ using chebyshev inequality

What is a good approach to proving this inequality:  $$\dfrac{4^m}{4\sqrt{m}}\le\binom{2m}{m}$$  using the Chebyshev inequality:   I thought about using a random variable which has a binomial distribution, but im not sure.  Thank you!  EDIT: It is important to solve it only using Chebychev inequality


My question is: why do Object mode scaling and Edit mode scaling seem to be incompatible? I'm quite new to blender, so I may not know sth important about these modes. The actual case is:  I create a cube, which is 2×2×2 metres in metric units by default  (it's also shown under 'dimensions')    Then, with the cube selected, I switch to Edit mode, and enable 'Edge info: Length' under 'Mesh display'    And it shows the cube's measurements, which are 2m on each edge.  Now I use the scale tool in Edit mode, making the edges 2.244m    That's good so far. Changing back to Object mode, the changes can be seen under 'dimension'    However, when I use the scale tool in Object mode, the scale and dimensions also change, but changing back to Edit mode, the measurements shown remain the same      So the question is, why does the scale tool work differently and have different effects in Ojbect mode and Edit mode? Also, how can I enter the desired size of my cube manually to get an accurate result, without using the scale tool in Edit mode, and without changing the scale ratio in object mode?


SQL - Convert text to a list of numeric values

Looking for SQL code to transform the text string '12,13,14' to this list of numbers   +----+ | 12 | +----+ | 13 | +----+ | 14 | +----+   Example:   table0.params (varchar) field contains this text: 12,13,14 table1 has column ID (numeric).   I would like to form a query along the lines of:  SELECT * FROM table1 WHERE ID in table0.params   I am using Microsoft SQL Server Standard Edition (64-bit) version 10.50.1600.1


Is every matrix $A$ such that $A^k=I$ diagonalizable?

Show that every idempotent matrix is diagonalizable. What can you say if $A$ is tripotent ($A^3=A?$) What if $A^k=A?$  The first two cases is obvious since we can find the minimal polynomial to be $t(t-1)$ or $t(t-1)(t+1)$, which are products of distinct linear factors. However, what can we say about the general case $A^k=A?$ Any solutions, hints, or suggestions would be appreciated.