50s Sci Fi book: "Superbomb" sends town to far future with Sun a red giant star

I once read a book about 40 years ago that was from the early 1950s.  The premise was a scientist working on a "Superbomb" (described as a Hydrogen bomb) in a rural American town/city. An atomic war breaks out and the city is hit.  The bomb doesn't destroy the town; instead the town is catapulted millions of years into the future where the Sun is a growing red giant star and humanity is long gone.  Aliens find the town and help the folk out somehow.


Set theory proof; (subsets, universal set)

Assume $A,B,C$ are subsets of the universal set, $U$. Prove that $$(A\cap B)\cup C=A\cap(B\cup C)$$ iff $C$ is a subset of $A$.    How would you go about proving this? Can I do something with De Morgans law and distribute the terms? Or should I do this by choosing an arbitrary element $x$ that exists in the subsets?


Prove that the gcd of ( 8n+19 , 3n+7 ) =1

I want to show that the gcd of $( 8n+19 , 3n+7 ) =1$  $\forall n \in \mathbb{Z}$. I would like to prove this through mathematical induction and generalize it for the set of all integers. Base Case: $n=1$ $$gcd(8+19,3+7) = gcd(27,10) = 1 $$ Assume $n = k$ holds. WTS it is also true for $n=k+1$. $$gcd(8k+27,3k+10)=1$$ I am stuck here, please let advise me on how to continue from here. Also I am not sure if mathematical induction is the right approach. If a more elegant approach exists, please let me know.


Story in which an AI takes over control to help humans

I'm looking for a short story I've found as a PDF on the Internet once, but I can't remember the name anymore and therefore can't find the story: It mostly follows a (bodily) young women, who turns out to be an old woman whose body has been optimized by a self-learning, basically all-controlling AI whose aim is to follow the wishes of and protect humankind. In this story, the AI gains more and more knowledge (e.g. medical know-how to optimize the human body) and learns first to control all kind of machinery (e.g. solar cells to power everything), and then to change/control everything at an atomic level. Humans basically can't/won't be allowed to die, but there is this 1-on-1-battle-game, where you order the AI not to interfere for 12 or 24 hours, which this woman is good at and plays a lot. Humans can live out most of their wishes, since the AI tries to accommodate them. And it protects/helps them by e.g. "folding away" (on an atomic level) and "storing" alien civilisations. The story also roughly follows the question of "when is a human not human anymore" - people whose only "activity" is to have their pleasure center stimulated are first seen by the AI as humans, but not anymore at the end of the story.


I am running Ubuntu from flash drive and I would like to run memtest in terminal mode as multiple processes, I see file resides in boot directory but not able to execute as I get message "permission denied" not able to make the file executable either.


Slow wifi in Ubuntu 18.04 with Realtek RTL8723DE device

I am facing an issue in my HP laptop which is running Ubantu 18.04.3 when I connect with my cellphone hotspot it is running fine but in case of router it is not even connecting. I have tried alot of troubleshoot for last 2 days but alas!.  FYR  sudo iwconfig   lo1      IEEE 802.11  ESSID:"xxxxxx"             Mode:Managed  Frequency:2.417 GHz  Access Point: xxxxxxxxxx             Bit Rate=72.2 Mb/s   Tx-Power=20 dBm              Retry short limit:7   RTS thr=2347 B   Fragment thr:off           Encryption key:off           Power Management:off           Link Quality=45/70  Signal level=-65 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:0  Invalid misc:650   Missed beacon:0   This info I got when I have connected with my cellphone hotspot.  Thanks in advance.  result of below given command  lspci -knn | grep Net -A3  libkmod: ERROR ../libkmod/libkmod-config.c:656 kmod_config_parse: /etc/modprobe.d/rtl8723be.conf line 1: ignoring bad line starting with '“options' 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:d723]     Subsystem: Hewlett-Packard Company Device [103c:8319]     Kernel driver in use: rtl8723de     Kernel modules: rtl8723de


Find a polynomial in $\mathbb Q[x]$ such that $2^{1/2} + 3^{1/3}$ is a root

What would be a way to find a polynomial in  $\mathbb Q[x]$ such that $2^{1/2} + 3^{1/3}$ is a root.


Count the occurences of a letter in a string

I updated my code from previous suggestions, and it is only reading the first word in my sentence, any suggestions on how to get it to read the whole sentence? (I have to use a for loop)  import java.util.Scanner;  public class CountCharacters { public static void main(String[] args) {     Scanner in = new Scanner(System.in);      char letter;     String sentence = "";     System.out.println("Enter a character for which to search");     letter = in.next().charAt(0);     System.out.println("Enter the string to search");     sentence = in.next();      int count = 0;     for (int i = 0; i < sentence.length(); i++) {         char ch = sentence.charAt(i);         if (ch == letter) {             count ++;         }     }     System.out.printf("There are %d occurrences of %s in %s", count,             letter, sentence);  } }   Output:  Enter a character for which to search h Enter the string to search hello how are you There are 1 occurrences of h in hello


can you help me?...  Let X $\subseteq \mathbb{A}^n$ be an algebraic set, and $f, g:X\rightarrow k$ two regular functions. If $X$ is irreducible and an open $U \subseteq X$ exists such that $f_{|U} = g_{|U}$, prove that $f=g$.  I have been able to prove that:  Let E be the subset where $f = g$ so E is closed (Why? I know that $E = (f,g)^{-1}(\Delta_{k})$ but... why is $(\Delta_{k})$ closed?). So $U \subseteq E \Rightarrow \bar{U} \subseteq \bar{E}=E$ (beacuse E is closed) $\Rightarrow X \subseteq E$, because $\bar{U}=X \Rightarrow E = X$ and $f=g$ in X.


What is the best way to check whether lead belongs to Queue or User?

I'm trying to determine in a trigger, whether a lead belongs to a Queue or a User. What is the best way of going about this?  I tried the method mentioned in a dev. force discussion:  System.debug( lead.Owner.type )   ... but this consistently keeps fetching null.  Alternatively, I was trying to determine by first 3 characters of the OwnerId (005 for User, 00G for Queue). I tried using:  lead.OwnerId.substring( 3 ) == '005'    Trying the above gets me Method does not exist or incorrect signature.  Any bright ideas here?  Thank you.


Give an example of a continuous function $f : [0,  ∞) \mapsto [0, ∞)$ such that  $\int_{0}^{\infty}f(x)dx$ exists but  $f$ is unbounded.   I have been thinking about this. And I have come to the conclusion that I will need to construct a function, $f$, such that $f$ is a sequence of triangles of increasing height, but decreasing base. I obviously need $f$ such that both the height of the triangles, and sum of the bases tends to infinity. But I also need that the $\sum (\text{height} \times \text{base}) \leq \infty $


Calculate $\sum\limits_{x=0}^{\infty} \dfrac{x}{2^x}$  So, this series converges by ratio test. How do I find the sum? Any hints?


I have Ubuntu OS. And I want to play flash games. How do I play flash games in Ubuntu?  NOTE: This post was translated using Google Translate from Turkish.  The original post can be found in the revision history.


What happens to Time when Space is stretched? Does time get relatively slower or faster?

Might be a question asked by other people too (unfortunately I didn't find the exact answer to this) but I wanted to know this because if the universe is expanding by stretching out space, then does that stretching affect our time here?? My guesses are that it should be but since it's happening so continuously or been happening it just doesn't affect our senses. Please don't flame me if the things I have assumed by my finite understanding of the universe are wrong, look forward to probably study physics in more detail after 2-3 years.


I always used MacPorts to install and maintain my GCC compilers and other programs. Now I've heard about Fink and Homebrew. It seems these two utilities are gaining ground in the Mac community, but I don't understand the difference between them.  What is the main difference between MacPorts, Fink, and Homebrew? Is there any difference in quality or performance?


I was improving the edit and contents of , but there was one part that wouldn't stop fighting back. Let me try to reproduce it here: Start of text  Then you can open the file and write all the untracked files you want to ignore for good. For example, mine looks like this:   OS junk files [Tt]humbs.db *.DS_Store  #Visual Studio files *.[Oo]bj *.user *.aps *.pch *.vspscc *.vssscc *_i.c *_p.c *.ncb *.suo *.tlb *.tlh *.bak *.[Cc]ache *.ilk *.log *.lib *.sbr *.sdf *.pyc *.xml ipch/ obj/ [Bb]in [Dd]ebug*/ [Rr]elease*/ Ankh.NoLoad  #Tooling _ReSharper*/ *.resharper [Tt]est[Rr]esult*  #Project files [Bb]uild/  #Subversion files .svn  # Office Temp Files ~$*  There's a  End of text I invite you to edit this formatted file, because I couldn't just leave it without that line or some other annoying trick. Code it, uncode it, more space, less space, three tildes and none; and any combination of those... nothing seemed to pleased the formatting god. I simulated the same thing in a GitHub issue just to try it and three tildes worked wonderfully there. So maybe it's a bug. I just want to have the file (the .gitignore shown in the post) to be formatted as it's showing without having to do tricks with lines or anything like that.


Non-existence of natural numbers such that $\sqrt{n} +\sqrt{n+1} <\sqrt{x} +\sqrt{y} <\sqrt{4n+2}$

Show that for any $n\in\mathbb{N}$ there does not exist natural numbers $x,y$ such that $$\sqrt{n} +\sqrt{n+1} <\sqrt{x} +\sqrt{y} <\sqrt{4n+2}.$$


Block event invites from a page on Facebook

I get invited to events of clubs all the time and those clubs have "pages" on Facebook (that I never liked) that cannot be blocked like those from individuals.  Does anyone know how to block pages from inviting you to events?  This is not the same as for apps or friends inviting you to stuff, because for these two cases there are easy blocking features. I am referring to the Facebook pages, as many companies have (which normally people "like" in order to subscribe to their updates in your newsfeed). Now this page is inviting me to events all the time, but I have never "liked" it.


Why didn't Dumbledore prevent the prosecution of Sirius Black?

Dumbledore performed the Fidelius charm on the Potters, so he knew who the Secret-Keeper was1. That implies he knew not Sirius but Wormtail betrayed the Potters. Why didn't he prevent Sirius's conviction and suspect the explosion killing twelve Muggles was caused by Wormtail (and that Sirius cornered Wormtail instead of the other way around)?   1: Though in  it is said Dumbledore didn't know. I find it hard to believe the person casting the Fidelius charm doesn't know who the Secret-Keeper is.


Who did Khan get his Starfleet insignia from?

In The Wrath of Khan, Khan wears a broken Starfleet insignia around his neck:    At some point, I convinced myself that he snatched it from one of the Reliant crew members, given that its style was contemporary for the time, and given that     "Admiral Kirk never bothered to check on our progress"   suggesting that they hadn't had much contact with Starfleet since their relocation to Ceti Alpha V.  For comparison, here is what the insignia looked like at the time Khan was exiled — basically a patch embroidered into the garment:    However, I decided to check when we first see Khan sporting the insignia in Wrath, and he is in fact already wearing it on Ceti Alpha V:    The question is:  Who did Khan get this insignia from?


who is buying stocks when market crashes

I googled my question but could not find much information, which prompted my posting here in hopes of finding leads on this question.  Today (3/9/2020), US stock markets crashed. Major indexes dropped.   Q1. IF I were to sell my stocks today, who is going to buy them?   Q2. Would stocks become illiquid because everyone wants to sell and no one wants to buy?   Q3. Must companies buy back their shares (when no one else wants to) when investors want to sell  Q4. Is there always someone out there who wants to buy ?


How to represent space and tab in XML tag. Is there any special characters for them to represent.


Is double encryption using AES using different key lengths (128 bit and then 256 bit) vulnerable?

I know that AES 256 bit is far more than enough to secure a file. I just want to know if there are any vulnerabilities or known attacks which can make such this combination less secure "double encryption using AES using different key lengths (first 128 bit and then 256 bit)".   Say, for example, I have a program that can encrypt a file using AES 128 bit and another program which uses AES 256 bit. Also, I have assumed that either one of these encryption programs have a flaw.   Case 1: So, is it possible that if AES 256 bit program fails (because of the flaw in its implementation by the programmer), the attacker will only find the file encrypted by the strong AES 128 bit and won't be able to proceed forward?  Can Case 1 be true?  Please note that the keys are not related in any way. I'm not an expert in Cryptography and I'm trying to understand its basics. So, if you may please reply in simple terms, that would be much appreciated. Thank you. :)


Is the usage of text embedded in an image a bad practice, for very controlled uses?

What are your thoughts on writing your text in images?  I'm not saying throughout the whole website... But in certain key locations like image carousels. And I'm not talking about the special cases where you have font types that browsers can't render. I'm talking about text that uses standard fonts and is not too big (3/4 bullets).  Should I embed the text in the images that compose the carousel? Or should I apply the text to the images as "real text" HTML?  What are the advantages/ disadvantages of using text in an image?


Close notice is removed when inline-loading an edit

Steps to reproduce:   Find a closed / on hold question Have the question edited (e.g. by having someone else do it) Click the "this question has been edited" notice   What happens: The question is updated, but the close notice disappears. It looks like the question has never been closed.  Obviously, the close reason should not be removed when the question is reloaded.


As we have eigenspace , I have also read that eigenvector can not be a zero vector  , so how has it been possible to say eigenspace is there without null vector .


Equations of the two lines through the origin which intersect the line $\frac{x-3}{2}=\frac{y-3}{1}=\frac{z}{1}$ at an angle of $\frac{\pi}{3}$

Find the equations of the two lines through the origin which intersect the line $\frac{x-3}{2}=\frac{y-3}{1}=\frac{z}{1}$ at an angle of $\frac{\pi}{3}$.    Let the direction ratios of the two required lines be $(a_1,b_1,c_1)$ and $(a_2,b_2,c_2)$. Therefore the two equations are  $\frac{x-0}{a_1}=\frac{y-0}{b_1}=\frac{z-0}{c_1}$ and $\frac{x-0}{a_2}=\frac{y-0}{b_2}=\frac{z-0}{c_2}$ As these lines are making an angle of $\frac{\pi}{3}$ with $\frac{x-3}{2}=\frac{y-3}{1}=\frac{z}{1}$. So,$\cos\frac{\pi}{3}=\frac{2a_1+b_1+c_1}{\sqrt6\sqrt{a_1^2+b_1^2+c_1^2}}$ And $\cos\frac{\pi}{3}=\frac{2a_2+b_2+c_2}{\sqrt6\sqrt{a_2^2+b_2^2+c_2^2}}$ But i am stuck here.How i can solve three variables with one equation.The book gives answer as $\frac{x}{1}=\frac{y}{2}=\frac{z}{-1}$ and $\frac{x}{-1}=\frac{y}{1}=\frac{z}{-2}$ Please help me.


Looking at the plot of two sample's distribution of means which are compared cannot reveal significance?

In practice we sometimes used a wisdom that two overlapping CIs for sample mean distribution meant we could not reject Hull hypothesis, to get a quick answer.  It looks though that this is a very raw estimate. I was working on a toy example of a two-sample hypothesis testing when I realized that our "wisdom" was just incorrect.  Am I right?    When I took the difference of samples X and Y, and plotted its moments, apparently the p-value is quite low.       α = 0.01; one-sided test; n(X) = n(Y) = 1000; var(X) = var(Y) = 1.   > t.test(x = xy[sample == 'x', x], y = xy[sample == 'y', x], +        alternative = "less", +        mu = 0, paired = F, var.equal = T)      Two Sample t-test  data:  xy[sample == "x", x] and xy[sample == "y", x] t = -2.7023, df = 1998, p-value = 0.003472 alternative hypothesis: true difference in means is less than 0 95 percent confidence interval:         -Inf -0.04665049 sample estimates:  mean of x  mean of y  0.02546606 0.14476431


What kind of electronic component is that? A lightbulb?

Found this component in Canon printer power supply   It follows a protective varistor in series and is followed by a some kind of serivse terminal that had its own hole in the power supply's case, and is connected to nothing. The component is close to to the AC input on the board, and has AR1 printed next to it   It appears to have infinite resistance and no capacity. It has triangle-inside-circle-symbol:  folloed by 202 followed by T02E printed on it. Google search gave me nothing.


Fourier Series Problem w/the Ramp Function

In a book on Fourier Analysis:    Question: This assertion follows without proof. Why is it so? I see that if $n = 0$, then $e^{-i 0 \theta} = 1$, so that  $$ {1 \over 2 \pi} \int_{- \pi}^\pi \theta e^{-in\theta} d\theta = {1 \over 2 \pi} 0 = 0 $$  But what about when $n \ne 0$?


I've a graph representing a social network ( 597 nodes, 177906 edges). Each edge has a weight saying how much two nodes are similar. I'd like to apply some clustering algorithm to this network but I think I need to cut some edge. Is there a commonly used threshold to do this? Can you suggest any particular algorithm? I was suggested to use K-means but I think it badly fit to my data space.


Submodule is free of finite rank implies R principal ideal domain

Let $R$ be an integral domain. Show that $R$ is a PID is equivalent to every submodule of a free $R$-module of finite rank is free of finite rank.  (First question: why do we require $R$ being an integral domain? Is it because "rank" doesn't make sense for $R$ not an integral domain?)  One direction is a theorem, I am trying to show the other direction.  $R$ itself is a free $R$-module of rank 1. Let $I\neq 0$ be an ideal. It is a submodule of $R$, so by assumption free of rank $n$, $I\cong R^n$ as $R$-modules. We want to show that $n=1$. Can anybody give a hint to this one?


How to use the command \leqslant with pgfplots ?  \documentclass{standalone} \usepackage{pgfplots} \definecolor{mycolor}{cmyk}{0.00,0.18,0.29,0.02} \begin{document}  \pgfmathdeclarefunction{dnorm}{2}{% \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}% } \begin{tikzpicture} \begin{axis}  [domain=0:10,  samples=500,  height=5cm,  width=10cm,  axis lines*=left,  enlargelimits=false, clip=false, axis on top,  every axis y label/.style={at=(current axis.above origin),anchor=south},  every axis x label/.style={at=(current axis.right of origin),anchor=west},  xtick=\empty,  ytick=\empty,  xlabel=$x$, ylabel=$y$,  style=thick,  ]   \addplot [fill=mycolor, draw, domain=3:4.75] {dnorm(4,1)} \closedcycle;                \addplot [thick, smooth] {dnorm(4,1)};  \node (a) at (axis cs:3,-0.03) {$a$}; \node (b) at (axis cs:4.75,-0.03) {$b$};  \node (title) at (axis cs:4,0.45) {$P(a\leq X \leq b )$};  \end{axis}  \end{tikzpicture}  \end{document}


Prove a certain "property" of matrix multiplication

I have $A\in \mathbb{R}^{3\times 2}, \ B\in \mathbb{R}^{2\times 3}\;$ such that $AB=\begin{bmatrix} 8 & 2 & -2\\ 2 & 5 & 4\\ -2 & 4 & 5 \end{bmatrix}$ How can I show that $BA=\begin{bmatrix} 9 & 0\\ 0 & 9 \end{bmatrix}$? I tried by bruteforcing systems of linear equations, but it seems too complex.


Formatting Negative Numbers with Parentheses

Formatting numbers on a VF page, but I do a bunch of processing the Apex Class, so I would rather return the formatted String value from the controller.   I am doing something like this, but I just want the second number to appear as "(1500)" rather "-1500"  Getting lost in the Message Format docs, so hoping someone can guide me in the right direction...  List<String> args = new String[]{'0','number','###,###,###'}; system.debug('Positive' + String.format(  ( (1000) - (500.50)  ).round().format(), args) ); system.debug('Negative' + String.format(  ( (-1000) - (500.50)  ).round().format(), args) );


Can I get more information on what Windows Update is doing?

It often happens that I have to watch this screen for minutes:    I have no clue what's happening in the back. And I'm also not interested in watching the  for changes.  I would love to know if there's a way that gives more feedback. Preferably something I can invoke from the command line (like apt-get).


Keep an object at a certain hight, does it require energy?

If i have an object with a defined mass, like a stone, and put it on the shelf it will sit there forever (lets forget all external influences).  But if I have to hold up the stone I will eventually get tired, feel pain, and give up.  Obviously I am using up energy to keep the stone where it is. But, if it takes energy to keep an object at a certain hight it could not sit on the shelf forever because it would need infinite energy.  What am I missing?


Single user forgot password can't do updates

I'm using Ubuntu 14.04 and like it very much but I can't update anything because I forgot my password and authentication is required.  This is a home computer and I am a single user who doesn't even care about passwords.  I've done a lot of research and have tried the routine password changing steps ..  recovery mode .. mount -rw -0 remount / etc.. which got me “authentication token manipulation error password unchanged.  I’ve read the threads and tried the fixes with no luck.  You know in the beginning I might have set my password before I set the time/date and another guy who did that got the same message and claimed that that had caused his problem.  He fixed his by deleting the encrypted password in the /etc/shadow file and then doing thesudo passwd username fix to create a new password.  He never said how he deleted the encrypted password and that is where I am stuck trying his fix. When I look at cat /etc/shadow I can see the encrypted password right next to my user name but I can't get into the field to delete it.    Where and how do I delete this password so that I can create a new one.  Any help would be greatly appreciated.  Thanks


How do I check from within python whether LaTeX and TeX Live are installed on a computer?

I am writing a python program which generates TeX code that gets compiled into a PDF document. For this to work, I need to make sure that the user has some distribution of LaTeX installed on their computer. How do I do this from within Python 2.7 in a platform-independent way?


I send mail using CodeIgniter, but it returns this error:     Failed to authenticate password. Error: 535-5.7.8 Username and   Password not accepted   Here is my code:    $this->load->library('email');         $config = Array(             'protocol' => 'smtp',             'smtp_host' => 'ssl://smtp.googlemail.com',             'smtp_port' => 587,             'smtp_user' => 'my@gmail.com',             'smtp_pass' => 'mypass',             'mailtype'  => 'html',             'charset'   => 'iso-8859-1'         );         $this->load->library('email', $config);         $this->email->from('my@gmail.com');         $this->email->to('send@gmail.com');         $this->email->subject('This the test');         $this->email->message('this is the test message');         if (!$this->email->send())         {             echo $this->email->print_debugger();          }   I've configured my Xampp server using this question:


Algebraic Proof that $\sum\limits_{i=0}^n \binom{n}{i}=2^n$

I'm well aware of the combinatorial variant of the proof, i.e. noting that each formula is a different representation for the number of subsets of a set of $n$ elements. I'm curious if there's a series of algebraic manipulations that can lead from $\sum\limits_{i=0}^n \binom{n}{i}$ to $2^n$.


I want to display a text over a video. However, the video may include any color from white to black. What is the best text effect (color/stroke/shadow/glow ... etc) that can be applied on the text so that it will be very clear on any background color.


Will bounty rolled back if user removed or suspended?

Suppose If user gives bounty for another user's question then user is removed or is suspended for some period then will given bounty rolled back from that user's account? If user suspended for some period and given bounty rolled back then after that period will given bounty rewarded back?


How do I style the TOC in a beamer template?

I'm making a beamer template, and I have most of the things the CD requires done, but I can't seem to be able to influence how the TOC looks like.  This is how it is supposed to look like:    (But the LaTeX-Beamer version should have enumeration, rather than bullets.)  I tried \setbeamercolor{section in toc} and its subsections but that changes the colour of both the text and the enumeration.  Most importantly, I have no clue how to get the grey box done.


I am looking for a method to do minimal floating point / integer calculations in LaTeX, not for the purpose of package writing, but for the production of actual text.  Here is an example to illustrate. Given the following input text   The experiment included running a battery of \bind{T}{21} tests  on \bind{S}{13} subjects, for a total of \bind{V}{T*S} expected values.  However, since \bind{F}{37} values were defective, our successful   measurement rate per subject was \use{100*round((V-F)/T,2)}\%   it would be nice if was converted to:   The experiment included running a battery of $21$ tests  on $13$ subjects, for a total of $273$ expected values.  However, since $37$ values were defective, our successful   measurement rate per subject was $86$\%.   Where \bind{C}{expression} defines a new constant C whose value is expression, and returns C, while \use{C} simply returns the value of C.  Any tips?  I am aware of the spreadtab package and this question: , but I am looking for something more.


Why can't Inuzuka clan's dogs use human language?

Why can't Inuzuka clan's dogs use human language when Kakashi's dogs can? Also, how does Kiba and Akamaru understand each other?


Is there some institute that can create a word which would mean 'he or she', or indeed any other word?

New words are constantly being invented in science and technology, and after a while people start to use them.  Along similar lines, would it not be much less hassle to use an invented word instead of 'he or she' or 'he/she'? (If we use 'they', we are using a plural pronoun.)  Meanwhile, my question also concerns the question of whether such an institute exists, not just whether a good substitute for the expression 'he or she' is possible.


Evaluate $\lim_{n\to\infty} \left( \frac{n!}{n^n} \right)^{1/n}$

How do I go about evaluating this?  $$\lim_{n\to\infty} \left( \dfrac{n!}{n^n} \right)^{\dfrac{1}{n}}$$


Is there a command I can use to find a certain word in a file? I tried using the find command without any success.


What are the non-contemporaneous items or design choices in Logan?

This is a follow up to   Logan  in Mexico, Texas, Oklahoma and other wilderness locations.  Besides the obviously sci-fi elements (cybernetic mutants and their weapons, medical technology, etc, for example, which in the X-Men universe are not necessarily futuristic) what else is there in the appearance of film that would indicate that this is 12 years into the future?  This is a question about  -- the appearance of things, people, and settings, indepedent of the story elements.   I.e. we agree it takes place in the future; the question is about what visual elements there are that were influenced by that story element -- and, for the purpose of this question, that are different than present day real-world things.


A bridge is the shape of an arc of a circle. The bridge is 8 feet tall and 36 feet wide. What is the radius of the circle that contains the bridge?


Can I play a game from Steam on different operating systems?

Suppose if I buy some game like Middle Earth Shadow of Mordor on Steam. Can I play the game on both Linux and Windows?


NullPointerException when reading file from Android external storage

I was having some trouble when trying to read zip file from Android external SD card.   Here is my code:  File[] fileArr = mVersionUpgradeViewModel.getZipFileFromSDCard(); for(int i = 0; i < fileArr.length; i++){     System.out.println(fileArr[i]); }  public File[] getZipFileFromSDCard() {     File[] matchingFiles = new File[0];     File f = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);     if(f.exists()) {         matchingFiles = f.listFiles(new FilenameFilter() {             public boolean accept(File dir, String name) {                 return name.endsWith("zip");             }         });     }     return matchingFiles; }   And my emulator folder structure:    The zip folder is there. But with the code above, I am getting error message like:  Caused by: java.lang.NullPointerException: Attempt to get length of null array     at com.mainapp.asynctask.VersionUpgradeTask.doInBackground(VersionUpgradeTask.java:86)     at com.mainapp.asynctask.VersionUpgradeTask.doInBackground(VersionUpgradeTask.java:15)     at android.os.AsyncTask$2.call(AsyncTask.java:333)   The error is pointing to the first for loop. It was working last time. But after I tried the newer version installation code, the method above breaks. Any ideas?  Thanks!


Does applying for a patent first make it more difficult to publish (or vice versa)?

After working on a project some times, some results are obtained and we decide to publish it. I know publishing a paper and applying a patent can actually happen in the same time, but is there any difference for their priority?   For example, if I obtain a patent first for my results, will it make it more difficult to publish the same results in academic paper, or vice versa?   If I do it together, will there be any conflict between them?


I'm kind of curious what kinds of criteria other people go through when selecting the correct answer to their questions.  Here's what I consider when selecting the answer to my question:   Is the answer objective?  It's easy to pick out biased answers.  Usually they involve a statement along the lines of "x sucks, you should ALWAYS use y." Do other members seem to support the answer?  Has it gotten a significant number of +1 posts or has it been voted up a number of times? Is the answer the most thorough?  Does it have an example?   With that said, there are a couple of BAD reasons to choose an answer in my opinion:   The answer is what you want to hear.  My biggest pet peeve is when somebody asks what ostensibly appears to be a valid question, but is really just a thinly veiled attempt to get someone to agree with them.  Thus, the question usually ends up showing a certain bias.  And guess which answer gets selected?  The one that confirms that bias. Nobody posted a better answer.  If you don't see a good enough answer, don't select one.   I'm sure there are a few things I'm leaving out, plus some of what I've said may be arguable.  What is everyone else's take on this?


Use comments to ask for clarification or add more information, then what?

Is it intended to hide the extended instructive text? It isn't visible at all now because when you enter something, it disappears.


Are parents of Muggle-borns subject to the Statute of Secrecy?

A lot is made of the Statue of Secrecy in the books.  However, what about the Muggle parents of witches or wizards?  Do they have to sign like an official secrets act? Hundreds of non-wizards knowing about the wizarding world has to be a hazard?


What is the amount of heat rejected by the condenser of a vapour compression refrigeration system, typically those found in households? Something in the nature of a 25W compressor, for example


I am building up a CRTP interface and noticed some undefined behavior. So, I built up some sample code to narrow down the problem. #include <iostream>  template <typename T> class Base { public:     int a() const { return static_cast<T const&>(*this).a_IMPL(); }     int b() const { return static_cast<T const&>(*this).b_IMPL(); }     int c() const { return static_cast<T const&>(*this).c_IMPL(); } };  class A : public Base<A> { public:     A(int a, int b, int c) : _a(a), _b(b), _c(c) {}      int a_IMPL() const { return _a; }     int b_IMPL() const { return _b; }     int c_IMPL() const { return _c; }      private:     int _a;     int _b;     int _c; };  template <typename T> void foo(const T& v) {     std::cout << "foo()" << std::endl;          std::cout << "a() = " << static_cast<Base<T>>(v).a() << std::endl;     std::cout << "b() = " << static_cast<Base<T>>(v).b() << std::endl;     std::cout << "c() = " << static_cast<Base<T>>(v).c() << std::endl; }  int main() {     A v(10, 20, 30);          std::cout << "a() = " << v.a() << std::endl;     std::cout << "b() = " << v.b() << std::endl;     std::cout << "c() = " << v.c() << std::endl;          foo(v);          return 0; }  The output of this code is: a() = 10 b() = 20 c() = 30 foo() a() = 134217855 b() = 0 c() = -917692416  It appears that there is some problem when casting the child class, which implements the CRTP "interface", to the interface itself. This doesn't make sense to me because the class A plainly inherits from Base so, shouldn't I be able to cast an instance of A into Base? Thanks!


Alt + Digit in Terminal: What kind of feature is it?

In my Ubuntu 12.04 Terminal one can press Alt + # which leads to the repeation of the following character #-times. Simple question: For what is it good for? Is it some fancy feature one can use for some purpose?  Greetz, Tik0


Do attacks without proficiency have disadvantage?

Do attacks without proficiency have disadvantage or do they just use the modifier for the weapon? ie. dex or str


In reviewing, most of post properties are hidden (e.g. votes score) for reviewer will can't use it for his decision.  But sometimes I see different tips (direct and indirect) that are indicates post correctness  For example, answer accepted icon:   This screenshot was created after reviewing, but accepted icon was appeared before, when post was loaded for reviewing  Also sometimes I notice:   That post creator's account is deleted Post comments indicating post correctness   I think that these items are unnecessary tips and using them is cheating


Inequality between 2 norm and 1 norm of a matrix

When reading Golub's "Matrix Computations", I came across a series of norm inequalities. While I could prove a lot of them, this one has me stuck: $$ \frac{1}{\sqrt{m}} ||A||_1 \le ||A||_2 \le \sqrt{n}||A||_1$$ where $A \in \mathbb{R}^{m\times n},$ $||A||_1 = \displaystyle \max_{j \in [1,n]} \sum_{i=1}^m |a_{ij}|$ and $||A||_2 = \max_{||x||=1}||Ax||_2$, where $||Ax||_2$ is the standard Euclidean norm of the vector $Ax$.  I know that $||A||_2 = \max \sigma(A)$ (maximum singular value of $A$), in case that's useful. Help?


Can I take my gaming computer as luggage? Leaving Saudi Arabia to Malaysia in 27hours

So basically, I have this  gaming PC that I built a  for portability*, and I will be leaving to Malaysia to study*, but I believe I might need a capable PC since my laptop mostly isn't, I would put the whole PC inside my main luggage with my clothes, but I fear that as a Saudi young man, they might have me interrogated (because ISIS 'n all that BS) and waste my time at the airport*,   So what do I do to make sure to bring it with me?  Can I dissemble it and will it then pass through without question? Do I really have to give it to someone to ship it to me?  and an another sub-question, if I had removed and taken the PCs hard drives instead, will I be required to show the airport its contents? I mainly have a lot of animated movies downloaded and large-sized games.  Notes*: -Malaysia Airlines -Total weight is less than 30KG -I am an art student who does 3D for hobby


Can I install Ubuntu Touch on an Android phone with an MTK6735 quad core 64-bit CPU?

I don't see a recognizable brand name anywhere. All it says on the box is "4GVoLTE" I notice that the list of officially supported phones is rather short. However, a quick search finds quite a few brands of phones that use this CPU chip, so I was hoping there might be something that would work. This is a dual-sim phone. Here is the rest of the information on the "About" page:   Model number: 4G Android version: 4.4.2  Baseband version: MTK6735  Kernel version: 3.0.8   daiweiping@user#1   Hardware version: A12E_V1.0   While full functionality  would be great, all I really need for this project is wifi, web browser and touchscreen display.


Why is len(Posts.body) incorrect on answers in data.SE?

I was trying to find a longest answer on a site, and ran into a weird discrepancy:  shows that  has a length of 36388 (length in the query is defined as LEN(Posts.Body)) Yet, the post clearly only has ~26000 characters, as measured 2 ways:  Copy/pasting full text of the answer in my text editor gives me 26040 characters (the source of the answer with all the markdown, not the rendered text which is even smaller).  Trying to post a new answer that consists of this answer's text twice gives me an error "Body is limited to 30000 characters; you entered 52258" - meaning that the length is under 26100 (not 100% sure where the difference in counts comes from as far as two methods)   Another example from same query:  shows len(body) of 33738 whereas the text of the answer has only 29000 characters. This clearly isn't showing rendered characters, as the rendered character count is LOWER than actual answer text when editing (e.g. links add characters, as do images). How can this data.SE discrepancy be explained?


Compute the Cardinality of a quotient set

Let $R$ be a an Equivalence relation on $\Bbb{R}$ defined by: $$aRb \Leftrightarrow (a-b)\in \Bbb{Z}$$ What is the cardinality of $|\Bbb{R}/R|$?   where $\Bbb{R}/R$ is the quotient set of $\Bbb{R}$ under $R$.


Stream does not support reading when calling SendEmailAsync

I'm trying to attach a file that's provided in a byte array as an attachment in an email but I'm getting the following error: Exception: Failure sending mail. InnerException: Stream does not support reading.  But that's it. Not much to go with! I'm attaching the byte array file as follows: using (MailMessage message = new MailMessage()) {     message.Subject = subject;     ....     using (MemoryStream ms = new MemoryStream(attachment.Data))     {         message.Attachments.Add(new System.Net.Mail.Attachment(ms, attachment.Name));     } }  Note that the attachment variable is our own class which just provides additional information about the file including .Data which contains the byte array representing the file. Any ideas? Thanks.


How to curl and unzip to a certain directory?  you curl a file to stdout then unzip to some dir.


How to show that $\cos(\sin^{-1}(x))$ is $\sqrt{1-x^2}$?   I remember having to draw a triangle, but I'm not sure anymore.


If $a ≡ b$ (mod $n$), prove that $a^5 ≡ b^5$ (mod $n$).   I know there is some way of solving this using binomial expansion but it has me stumped.


How do you /summon multiple mobs at once? I do not want to use any repeating redstone circuits, as they take up RAM and CPU storage.


Let $p$ be an odd prime. $p$ and $(1-\zeta_p)^{p-1}$ are associates in $\mathbb{Z}[\zeta_p]$.

Let $p$ be an odd prime and $\zeta_p$ a primitive $p$th root of unity, that is a $p$th root of unity other than 1. I need to show that $p$ and $(1-\zeta_p)^{p-1}$ are associates in $\mathbb{Z}[\zeta_p]$.  I don't know what I can do about this. Should I try factorizing $p$ into polynomials in $\zeta_p$?


The Hilbert curve has always bugged me because it had no closed equation or function that I could find. What is its equation or function? For example, if I wanted to find the Hilbert's curve point at 4/7, how would I find it?


I'm a total noob and need to know if Ubuntu will work properly in my laptop

So, as the title says: I'm not very tech savvy, but I tried Ubuntu and loved it!  The thing is: I don't know if my laptop can handle Ubuntu or if I need to do something special to make it work properly (like drivers or some other add-on).  Samsung 300e4a, currently running WIN 7.  500 GB Hard Drive, 8GB RAM, Intel(R) HD Graphics, Realtek High Definition Audio


(Q,+) and (C*,+) has no finite index subgroup

How to prove ($\mathbb Q$,+) and ($\mathbb C^*$,+) has no finite index subgroup?


Let $X$ be a topological space. It is known that if $A\subset X$ is finite then $A$ is compact. I want to know what condition must be added such that the converse holds, that is if $A$ is compact then $A$ is finite. I think that this condition holds whenever $X$ is discrete space.   What are other conditions such that every compact set is finite?  Is it true that if every compact space $X$ is finite then $X$ must be discrete space?


Trigger submission via Javascript when exposed filters are changed on a block display in Views

I have a View showing a list of nodes that has a block display, with AJAX enabled. It seems that that is required when you using exposed filters on a block display in 8.  What I want to do is autosubmit the form (where did this option go?) when a filter is changed. This is the jQuery I have tried:      $('select[data-drupal-selector="edit-field-article-category"]', context).change(function() {       $('input[name="sort_by"]').attr('value', 'created');       $('form#views-exposed-form-blog-blog-listing input[data-drupal-selector="edit-submit-blog"]').trigger('click');     });      $('select[data-drupal-selector="edit-field-article-category"]', context).change(function() {       $('input[name="sort_by"]').attr('value', 'created');       $('form#views-exposed-form-blog-blog-listing').trigger('submit');     });      $('select[data-drupal-selector="edit-field-article-category"]', context).change(function() {       $('input[name="sort_by"]').attr('value', 'created');       $('form#views-exposed-form-blog-blog-listing').submit();     });   In the first case, nothing happens. In the latter cases, the page reloads with the query string attached. Nothing in the view is filtered.  What am I missing?


Do op amps need one bypass capacitor or two?

As with other ICs, it's standard practice to place bypass capacitors near the supply voltage pins of op amps. But I've seen conflicting opinions on how to properly bypass an op amp (, for example). Some people suggest putting a single capacitor between the V+ and V- pins. Others suggest using two capacitors, one from V+ to ground and one from V- to ground. Which of these methods gives the best result? I'm using  as unity-gain voltage followers for audio signals, but I'd like to know whether the answer's the same for other situations as well.         – Schematic created using


Stuck on validation of argument using rules of inference

(p → q) ∧ ¬p ⇒ ¬q  I have tried to use the rules of inference in many ways to prove this argument to be valid. However, I cannot seem to find a way to validate the argument, but I am afraid I have missed something.  Using a truth table I find that when p and q is 0, then p → q is 1, ¬p is 1 and ¬q is 1. Would that not make the argument valid?  I apologize in advance if I have misunderstood the whole concept. Any answer would be much appreciated. Thank you


There are six periods in each working day of a school.  Find the number of ways in which $5$ subjects can be arranged if each subject is allotted at least one period and no period remains vacant.    Let $P_1,P_2,....,P_6$ be the periods and $S_1,S_2,....,S_5$ be the subjects. $5$ subjects can be arranged in $5!$ ways.  Out of $S_1,S_2,....,S_5$,one can be chosen in $5$ ways and out of $P_1,P_2,....,P_6$,one can be chosen in $6$ ways,so the remaining can be arranged in $5\times 6=30 $ ways.So total$=30\times 5!=3600$ ways. But my answer is not matching book answer.


So I defeated a Team Valor gym earlier today using my highest cp Pidgeot. It turned grey, so I went to claim it with that Pidgeot, except it wouldn't let me. What determines which pokemon you are allowed to place at a gym? Is it just those who have participated in a battle can't? Is there a time period for it? What about training at a friendly gym? Does this impact anything?


Do Lucio's effects have a limited range?

Lucio is a fun character, providing AoE healing or speed boost to teammates. But how is this area determined? I know that it's at least partially based on line of sight, but does it also have a limited range? Similarly, is his sonic barrier applied to all living allies, all allies in line of sight, or all allies within a certain range?


Can't retract Very Low Quality flag on question

Earlier today, I cast a Very Low Quality flag on . While it was still pending    I couldn't retract the flag; instead of a Retract Flag button, a disabled Flag Question button was shown:    I suspect this has something to do with the question not qualifying for a Very Low Quality flag anymore due to it already being in a review queue.


Finding distribution of product of two random variables

Let $X \sim N(0, 1)$ and let $Y$ be a random variable with density  $$p_{Y}(t) = \begin{cases} te^{-t^2/2} & \text{ if } t \geq 0 \\ 0 & \text{otherwise.}\end{cases} $$  How can I find the distribution of $X \cdot Y$, assuming $X$ and $Y$ are independent? Can I just multiply the two densities together? I tried a lot of things, like working backwards from $P(X \cdot Y \leq t)$ and then trying to plug in the densities of $X$ and $Y$, but I got nowhere. Can someone please help me?


Does the norm in $L^p$ has continuity to p?

Let $\Omega$ be any measurable ($\sigma$-finite, if necessary) space. let $1\leq p\leq\infty,x\in L^p(\Omega)$.  Then how to proof $\forall\varepsilon>0,\exists\delta>0$，so that for any $1\leq q\leq\infty$, if $|q-p|<\delta$, we have $x\in L^q(\Omega)$ and $\left| ||x||_p -||x||_q\right|<\varepsilon$


I am trying to construct a set of sets in the mathematical sense. However If I add another set which is equal to one that is already in the set of sets, but which is represented by a different object, the set gets duplicated.  HashSet<HashSet<string>> setOfSets = new HashSet<HashSet<string>>(); HashSet<string> set1 = new HashSet<string>();     HashSet<string> set2 = new HashSet<string>();  set1.Add("Foo"); set1.Add("Bar"); set1.Add("Bar"); // set behavior okay, "Bar" is not duplicated  set2.Add("Foo"); set2.Add("Bar"); // now set1 == set2  setOfSets.Add(set1); setOfSets.Add(set2); // now set1 AND set2 are in setOfSets, which is "wrong"   Why does the set-logic work for equality of strings but not for equality of HashSets themselves? How can I fix this with the least effort.


Article document class make subsection headings italic and remove boldface

How can I make only the subsection headings italic and remove boldface in article document class ?


Converting string matrix to double matrix for various row lengths

I am trying to convert a string matrix to a double matrix, but keep on getting this error:  Exception in thread "main" java.lang.NullPointerException     at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)     at sun.misc.FloatingDecimal.parseDouble(Unknown Source)     at java.lang.Double.parseDouble(Unknown Source)     at wim_data_reader.WIMdataReader.main(WIMdataReader.java:135)   Each row in the matrix is not necessarily the same size as the previous row. Here is my code:   //double matrix to store all the converted string elements  double[][] data = new double[WIMdataMatrix.length][];   //double for loop used to convert string elements to double elements and store them in matrix  for (int i = 0; i < WIMdataMatrix.length; i++) {       //      data[i] = new double[WIMdataMatrix[i].length];       for (int j = 0; j < WIMdataMatrix[i].length; j++) {           data[i][j] = Double.parseDouble(WIMdataMatrix[i][j]);       }  }      Please help!


How do I change the e-mail address I log in with?

First, I am very aware this seems like a duplicate. I have already tried the approach described  and, as I commented, it failed.  What I have - a Stack Exchange login associated with an old e-mail address which will soon no longer be valid.  What I want - a Stack Exchange login associated with a new e-mail address.  I have already associated this e-mail address with my account in e-mail settings, and as part of following the instructions linked above, have logged in using that e-mail address - but that's still really using the old details - the new password that I set up following the recovery step is still (on the My Logins) associated with the old e-mail address. It looks very much as if when I delete that old Stack Exchange login (with the e-mail address which soon won't be valid) I lose any ability to login because by deleting that I delete the password too.  I'm aware that I can set up as many new logins as I want, but these are logins using third-party accounts that I don't want to use and which I mostly don't even have - I don't have a Facebook account etc etc etc.  The "My Logins" page doesn't appear to allow me to change the e-mail address for my existing login. Nor does it allow me to create a new Stack Exchange login and delete the old one. With the new e-mail address associated with my new account due to following those instructions, I now doubt that I can follow the various clues I've seen about creating independent accounts and getting them merged and, having already spent more than an hour on this (stumbling around my profile in disbelief even before thinking that maybe this really is hard enough to need Meta questions and answers) and having followed instructions from a recent Meta answer only to find they're not just unnecessarily obscure, indirect, long-winded and complex, they don't even work, I really want more direct and reliable guidance than whichever breadcrumbs I stumble on next. And with this being the first account I'm trying to change, I seriously hope all the rest won't take this long.  BTW - why is such an obviously needed thing made so stupidly difficult "by design"? I see lots of comments pointing out that an e-mail address blatantly is not a permanent property of a person, I see nothing that gives reasons for the decision. "By design" in itself is NOT a reason, and in the many contexts where that's all the justification that's stated, looks like a deliberate evasion.  Also, the  does not seem to include advice for when people need to change their e-mail address in the "Accounts, registration and logging in" section. Why not?


What is a free tool to compare two SQL Server Databases?

What is a  free tool to compare two Sql Server tables (data and schema).   It would be great if the tool can script the differences found.  I also went through some older . The closest I have seen is  but I would love to try more options.


Does decrease in temperature affect mass $E=mc^2$?

My understanding of Quantum physics and String Theory is very basic and I don't yet have a grasp on the maths, but in my research I have come up with a question.  Does a decrease in temperature also signify/create a decrease in mass?  I am quite willing to believe the concepts I think I am beginning to understand are totally misconceptions on my part.  But, as I see it mass is a product/mark of disruption to the Higgs field as a particle moves.  If these particles are ultimately composed of vibrating Strings, their mass is given by the rate at which they vibrate and how it interacts with the Higgs field.  I don't have any idea if, as the temperature (as we know it) approaches 0k, the string/quark/sparticle would change its state in any way or if the changing of the state of the String would change what type of particle it represents.  It seems I'm more full of questions than answers, but that's why I love these topics!  I know what I'm learning is new if the best and brightest are still working on the 'basics' to just make their systems work :).


What are some nice ways that we can welcome new users to our site?


I'm trying to figure out how to make certain features stick out of a cropped circle image. For example, I have a portrait of someone that I have cropped into a circle, but I would like to have her hand that is waving be on top of he circle outline/outside of cropped circle to show some dimension. Is there a way to do this?


I'm looking to implement version control across my team and I need a starting point.   Criteria I need:    Something that integrates well with our software stack: Sketch and Zeplin Stored in the cloud Shows previews of the files   I've looked at Git but as far as I've seen it doesn't let me preview files to see whats in them, is there something that does this?


I have been trying to put an image in blender so I can make a 3d model of it but it does not seem to show up. Any good tutorials for blender 2.71 to show me how it is done? Thanks


Does changing variable in one function doesnot effect the variable in another function

def happy(num):     while len(str(num))>1:         finding=hfind(num)     if finding==1:         print("True")     else:         print("false")      def hfind(num):     total=0     for i in str(num):         total+=int(i)*2     num=total     return(num)      happy(100)  I wrote code for  but,i don't know why it is not printing any output. Can anybody explain clearly especially using this problem.


I have a question regarding the outer environment in JS. Suppose I have the code like this:  function callbackTest(callback) {   var a = 1;   callback(); } callbackTest(function() {   console.log(a); });   The brower told me that a is not defined. It means the outer environment is the global context, but I created the function within callbackTest, so I assume the outer environment of callback is the callbackTest. Can somebody tell me why? Thx!


Is it required to pass the super class parameter for the subclass it is inheriting from?

So I haven been learning Java for a while but decided to switch to C#. It's been a while so I may forget some things. What I know is that in Java, when inheriting from a super class you can or can not call the super class and pass in the parameter if it accepts it. For example:  public class Super {     public Super(int x)     {     } }  public class Sub extends Super {     public Sub()     {         super(5);     } }   and then this other example:  public class Super {     public Super(int x)     {     } }  public class Sub extends Super {     public Sub()     {      } }   is also totally fine since it does not have to pass in parameter to the superclass, correct me if I am wrong. But then in C#, I am not sure if you are required to pass in the parameter for the superclass or not(like if it is still legal and won't cause any problem)


How to tell in content script that I am loading the top window and not an iframe?

I need a way to know in my Chrome extension when running the content script that the frame being loaded is not an iframe. I am trying to construct an array of objects containing the URL's that the user has traveled to (see below). I need to set all_frames to true in my manifest file because I also have to be able to access elements inside iframes. Does anyone know how I can know if the frame currently running my content script is the window and not an iframe?  //if(window is not iframe)     sendData({Task : "Load Page", Path : location.href});


Equation labels not resolved within a beamer overlay (simple list environment)

Putting an equation \label{} within a list \item, where the item is to be revealed selectively as an overlay, seems to result in LaTeX hiding the reference from itself. Here's a minimum working example:  \documentclass{beamer} \begin{document} \begin{frame}[fragile] \fontsize{6pt}{7.2}\selectfont Outside of the \texttt{list} environment (with overlays), there is no   problem resolving equation number references, e.g. \texttt{\textbackslash ref\{eq:eq1\}} resolves to eq \ref{eq:eq1}: \begin{equation}     x=1 \label{eq:eq1} \end{equation} However within a simple list, where an \texttt{\textbackslash item} appears within an overlay: equation reference labels are not accessible (even within the overlay itself). See below: \begin{list}{}{} \only<1>{\item Item 1: Not very interesting.} \only<2>{\item Item 2: \begin{equation}     x=2 \label{eq:eq2} \end{equation} The reference \texttt{\textbackslash ref\{eq:eq2\}} appears unresolved as eq \ref{eq:eq2}, although eq \ref{eq:eq1} (outside the list) is still resolved OK.} \end{list} \end{frame} \end{document}   Pasting the above code and running pdflatex on it, I get the output as attached:   Rerunning latex numerous times fails to resolve the missing reference: the log file contains:  LaTeX Warning: There were undefined references.   )pdfTeX warning (dest): name{eq:eq2} has been referenced but does not exist, replaced by a fixed one   Can anymore give me a pointer has to how to reveal these references?


Cannot connect to Team Fortress 2 item server?

It says "loadout not available - no connection to Steam"...what? What does this mean? I'm pretty sure I'm connected to Steam.


Get a list of all Widgets registered in WordPress admin widgets-area

I'm trying to disable a couple standard widgets in my theme functions.php.  Therefore I wrote this little function, which works well:    function my_widget_ctrl() {      unregister_widget('WP_Widget_Pages');      unregister_widget('WP_Widget_Calendar');      unregister_widget('WP_Widget_Archives');      unregister_widget('WP_Widget_Links');      unregister_widget('WP_Widget_Meta');              unregister_widget('WP_Widget_Text');             unregister_widget('WP_Widget_Recent_Posts');      unregister_widget('WP_Widget_Recent_Comments');      unregister_widget('WP_Widget_RSS');      unregister_widget('WP_Widget_Tag_Cloud');           }  add_action('widgets_init', 'my_widget_ctrl', 11);     Now I want to disable some other Widgets, which may be installed/activated by other Plugins. But I don’t know how to get a list of all widget-class-names registered, so I can unregister them with unregister_widget()?


macOS Catalina doesn't allow MAMP permission to certain folders (Documents, Downloads, Desktop)

I have been using MAMP for a few years now, I just updated to macOS Catalina, it seems that macOS Catalina is blocking permissions to the Documents folder among a few others (such as Downloads and Desktop).  I have already checked the permissions on these files with terminal and that doesn't seem to be the issue.  Additionally I have   The server gives me this error:  Forbidden  You don't have permission to access /Users/xxx/Downloads/index.html on this server.   The Apache log gives me this error:  [Wed Oct 09 12:31:30 2019] [error] [client ::1] (1)Operation not permitted: file permissions deny server access: /Users/xxx/Downloads/index.html, referer: http://localhost/Users/xxx/   It seems to be an issue with the way macOS is restricting permissions to certain directories. In the settings panel under Security and Privacy there are additional settings for file access, I have granted MAMP those permissions, in addition I have also went inside the MAMP folder and granted Apache's httpd the same permissions, still no luck.  Does anyone have a work around? This is causing me such a headache in development.


Difference between for(i in array) and for(var i=0;i<array.length;i++)

This would be a very easy question for all you javascript/jquery guys.  I've been programming javascript from past 2 years and today I faced a strange problem.  I am fetching a JSONarray from my C# Webmethod and calling it by jQuery.ajax()  When I do   for (i in JSONRaw) {     Index = Index + 1;     $('#bottomGridDashboard').append('
 ' + Index + '	 ' + JSONRaw[i].DisplayName + '	 ' + JSONRaw[i].SpeedInKPH + '	 	 ' + JSONRaw[i].DepotID + '	 ' + JSONRaw[i].RouteID + '/' + JSONRaw[i].ScheduleID + '/' + JSONRaw[i].TripID + '	 ' + JSONRaw[i].Direction + '	 ' + JSONRaw[i].LastStop + '	  ' + JSONRaw[i].ETAMinutes + '
'); }   the appended table adds two extra rows putting every field as 'undefined'.   However if i replace the loop with   for (var i = 0; i < JSONRaw.length;i++ ) {     Index = Index + 1;     $('#bottomGridDashboard').append('
 ' + Index + '	 ' + JSONRaw[i].DisplayName + '	 ' + JSONRaw[i].SpeedInKPH + '	 	 ' + JSONRaw[i].DepotID + '	 ' + JSONRaw[i].RouteID + '/' + JSONRaw[i].ScheduleID + '/' + JSONRaw[i].TripID + '	 ' + JSONRaw[i].Direction + '	 ' + JSONRaw[i].LastStop + '	  ' + JSONRaw[i].ETAMinutes + '
'); }   the undefined rows disappear..   I apologize for my stupidity but I have never faced any such problem before. What could be the reason??  EDIT:  The array is perfectly fine. And there are no holes in it. Another observation is that the undefined properties appear only at the bottom of my grid. I think it is processing two extra indexes more than the array length.  EDIT-2  My console.log showed me the following elements in my array.    I've declared the prototypes in my Master page.  Array.prototype.inArray = function (comparer) {     for (var i = 0; i < this.length; i++) {         if (comparer(this[i])) return true;     }     return false; };   Array.prototype.pushIfNotExist = function (element, comparer) {     if (!this.inArray(comparer)) {         this.unshift(element);     } };   Is it increasing the array length. ? ?


Syntacticaly error while writing a Unix Shell script (Bash shell)

I am trying to retrieve all the files(no directories) which doesn't end with .txt and store it in a variable or array.  My command is running properly in the command line. I don't have any editor in the unix server(aws). so I am writing script in windows notepad++(EOL conversion unix) and copying the script into the server and running the script from command line. I am getting a syntactical error.  PFB code: #!/bin/bash var1=$(ls -p !(*.sh) | grep -v /) echo $var1   Error: ./test4.sh: command substitution: line 3: syntax error near unexpected token `(' ./test4.sh: command substitution: line 3: `ls -p !(*.sh)|grep -v /)'


minecraft-commands: Multiple commands on one line?

Is there a way to put multiple commands on one line?  I would like to be able to have a command that will make the nearest player run MULTIPLE commands, something like this:  /sudo @p command1; sudo @p command2  (Note: I'm on a Bukkit server using Essentials, that's why I have the command sudo.)  That way, the semicolon will signal a line break, but the first slash indicated that the player is running a command, so another slash is not needed.  This would be used for chat commands, command blocks and more.


VisualForce - If(CONTAINS) assistance in user form

I'm working with 'Contains' in VisualForce and have a user-fillable form.  I want the user to be able to select an option from a picklist and then populate another pageblock section based on if the user's picklist selection contains a specific value.  Otherwise, I do not want this section to be rendered. Can someone please explain to me why the code below does not work and assist in fixing it? Thank you <p>     Personal Care Concerns: </p>  <div class="selectiondiv">   <apex:inputField styleClass="fieldset" value="{!Intake__c.Personal_Care__c}"/> </div>   <apex:pageblock>     <apex:pageblockSection >          <apex:outputText rendered="{!IF(CONTAINS(Intake__c.Personal_Care__c,"Toileting/Bathing/Self-Care in Bathroom"), "true", "false")}" value="SimplyHome System" />     </apex:pageblockSection> </apex:pageblock>


i am new to ubuntu.. I had ubuntu 14.04 installed and today i want to upgrade it to ubuntu 14.10.  Is it safe to upgrade? P.S. I have faced many problems during past days on ubuntu upgrades :(


Extending a power series of a holomorphic function when the function extends continuously...?

If $f : \mathbb{C} \to \mathbb{C}$ is represented by a power series in $D$ (the unit disc), and $f$ extends continuously into $\bar D$, does the same power series represent $f$ in $\bar D$?  I suspect that the answer is no, since this would imply that $f$ then extends holomorphically into $\bar D$. However, this is not that great of a reason, and I can't think that of a specific counter example. (This question arose while trying to solve a different analysis exercise.)  I should also add that, after looking at the power series expansion theorem again, I was reminded that one only has a power series expansion for f in an open disc whose closure is contained in the region where f is holomorphic (otherwise the Cauchy integral formula doesn't apply). However, I'm not sure if this means that one cannot find a single power series expansion for $f$ in the whole disc, even if $f$ is not holomorphic on the boundary. This is possibly a separate question.  Duplicate here:


Using gparted to resize ubuntu partition

I have unallocated space before the partition I'd like to extend? Gparted wont allow me to resize or move that partition (ext4)  my drive looks like this:  /dev/sdb1 (locked) fat32  unallocated unallocated  /dev/sdb2 (locked) ext4 mount point /  /dev/sdb3 linux-swap  Thanks


How to remove an object from and object array in javascript

[{LanguageMedium: "Sinhala Medium"}, {Subject: "English"}, {Type: "Past"}]   From this array object how to remove the object where object key is "LanguageMedium"


Is it possible to install Ubuntu to usb drive and boot from it without installing it to the inbuilt hard drive? I have installed it on the hard drive before but now I want to install it to usb...please tell me the procedure if its possible..


Reducing AC output voltage while maintaining same current?

I am a complete noob on electronics, please answer in basic terms, what I know about resistors is in this question nothing more, unable to make any reliable calculations therefor I require a specific answer I can apply :)  I have an AC device with output of 20V and 4.5A from 220V input all consistant. I need to reduce the Volts only and not the A for two applications 1. Reduce to 15V and maintain 4.5A (required to run very sensitive 15V electric miniture motor) and 2. Reduce to 5V and maintain 4.5A (required to run single LED with 1. above). Which resistors must I install for example 6000k 200ohm carbon or metal film? I don't own a volt or multimeter.  Many thanks


How can one prove that the fifth power of any number has the unit digit same as that of the number itself.  Actually the question was to prove that $n^5-n$ is divisible by $30$ when n is a number prime to 5 and hence prove that the unit digits of the fifth power of a number is equal to the unit digit of number itself.  The first part was easy to be proved, I just took numbers $5m\pm1;5m\pm2$ and proved the rest using binomial theorem(for opening the expression) and mathematical induction. But in the second part I am completely clueless.  Please use only elementary number theory to prove the given statement.


I am trying to debug a hang during shutdown and I don't find where the messages that I see during shutdown are being stored.  They aren't in /var/log/syslog


How can I center all tables in a document?

Background  Would like to center all tables within floats, without having to add \centering to each table.  Ideas  Tried the following:  \let\originaltabular\tabular \renewcommand\tabular{\centering\originaltabular}   It compiles, but the tables remain left-justified.  Question  How would you edit the Preamble of a LyX document to make all the floating tables be centred?


Can a user without u-permissions, read, change permission and the delete the file and why?

So I made a file and gave it the following permissions. chmod u-rwx, g=rw, o=rx file  The user can't read the file now, because he doesn't have any read permissions, right?  I could remove the file, why is that? [EDIT: As pointed out by muru, this part of the question is answered ]   But I could still change the permissions of the file. I could give myself the r permission and read it. Why is that?  Thank you!


How to create ~/.bash_profile and ~/.profile

So, I don't have .bash_profile neither .profile in my home folder. How do I create them? After that, what should I do so every time I open the terminal these files get read?


Why isn't it $E \approx 27.642 \times mc^2$?

Why is it that many of the most important physical equations don't have ugly numbers (i.e., "arbitrary" irrational factors) to line up both sides?   Why can so many equations be expressed so neatly with small natural numbers while recycling a relatively small set of physical and mathematical constants?  For example, why is mass–energy equivalence describable by the equation $E = mc^2$ and not something like $E \approx 27.642 \times mc^2$?  Why is time dilation describable by something as neat as $t' = \sqrt{\frac{t}{1 - \frac{v^2}{c^2}}}$ and not something ugly like $t' \approx 672.097 \times 10^{-4} \times \sqrt{\frac{t}{1 - \frac{v^2}{c^2}}}$.  ... and so forth.    I'm not well educated on matters of physics and so I feel a bit sheepish asking this.   Likewise I'm not sure if this is a more philosophical question or one that permits a concrete answer ... or perhaps even the premise of the question itself is flawed ... so I would gratefully consider anything that sheds light on the nature of the question itself as an answer.    EDIT: I just wished to give a little more context as to where I was coming from with this question based on some of the responses:  @Jerry Schirmer comments:      You do have an ugly factor of $2.997458 \times 10^8 m/s$ in front of everything. You just hide the ugliness by calling this number c.   These are not the types of "ugly constants" I'm talking about in that this number is the speed of light. It is not just some constant needed to balance two side of an equation.  @Carl Witthoft answers:      It's all in how you define the units ...   Of course this is true, we could in theory hide all sorts of ugly constants by using different units on the right and the left. But as in the case of $E=mc^2$, I am talking about equations where the units on the left are consistent with the units on the right, irrespective of the units used. As I mentioned on a comment there:     $E=mc^2$  could be defined using units like $m$ in imperial stones ($\textsf{S}$), $c$ in cubits/fortnight ($\textsf{CF}^{−1}$) and $E$ in ... umm ... $\textsf{SC}^2\textsf{F}^{−2}$ ... so long as the units are in the same system, we still don't need a fudge factor.   When the units are consistent in this manner, there's no room for hiding fudge constants.


In the arrangement shown in the figure, the ends P and Q of an unstretchable string move downwards with uniform speed V. Pulleys A and B are fixed. What will be the velocity of Mass M?  The answer is $\frac V {\cos\theta}$. I've seen the solution of this problem in many websites, and I understand the method. But my problem is that it is easy to mistake the upward velocity of the mass M to be $2Vcos\theta$, which is wrong. Although I understand the right method, I'm still not able to get perfect clarity on why $2v\cos\theta$ won't work here. If someone can, please explain the contradiction in detail with examples. What if this mass is pulled by two bikes, each moving at a velocity V, with an angle of separation $2\theta$? Would the velocity of the mass be still $\frac V {\cos\theta}$?


What is the command line equivalent of copying a file to clipboard?

What is the command line equivalent to pressing CTRL+C over a file in the file manager so that the file (not the filename) is copied to the clipboard?  A situation where this can be useful and fast, for example, is when you want to copy to the clipboard a file from the directory you are in the terminal to quickly paste the file in the directory you are in the file manager. There are others.


I need to extract geotiff from  ()  I found example of gdal_translate command that do this task:  gdal_translate -a_ullr -17334194 7356860 17334194 -7356860 -a_srs epsg:3975 -a_nodata -9999 HDF5:"C:\files\SMAP_L3_SM_P_E_20170711_R15060_001.h5"://Soil_Moisture_Retrieval_Data_AM/soil_moisture sm0000.tif  It's produce geotiff, but it's projection is not correct. There is some gap:    Here is some info that I found: EPSG:3975 is the Original EASE Grid, while SMAP data is projected onto EASE Grid2.0 (i.e. EPSG:6933)  +proj=cea +lat 0=0 +lon 0=0 +lat 1=30 +x 0=0 +y 0=0 +ellps=WGS84 +datum=WGS84 +units=m"  What is gdal_translate string for setting correct data-projection.  I tried to set EPSG:6933 in QGIS after reprojection to EPSG:3975. Images is shifting to very-very little to more correct position. Something like half-pixel.


Question about installing SSD into a Macbook Pro

I want to upgrade the hard drive in my 2012 Macbook Pro to an SSD. I have the parts, but had a question about how to clone the contents of my current drive so I can install it onto the SSD.  I've seen tutorials where people suggest connecting the new SSD to the Macbook prior to installation and using a Carbon Copy Cloner to clone the drive, and then installing the SSD drive.  My question is, can I do a Time Machine backup of my current hard drive on an external hard drive, install the SSD, and then use the Time Machine backup from the external to transfer it onto the newly installed SSD? Is this the same as using the clone program above?


Which tools and libraries are used for testing by StackOverflow developers?

you can find details about the software and hardware on which the site is built.   I am wondering do developers write any automation tests (unit/functional/scenario) and what kind of tools/libraries are using?  More specifically, how they are testing their T-SQL objects (functions, procedures, schemas).


While reading my copy of "Resnick and Halliday", I noticed that the book has made a distinction b/w the terms " degree celsius" and "celsius degree". When I googled this, I was able to find only one matching hit(on the first page), which stated that while degree celsius is the unit for the measured temperature, celsius degree is the unit of the difference in temperature. Is this correct?  Please share your knowledge and help me.


In school, we learned that in interrogative statements to use do (e.g. Do you want to go there?).  I'm wondering if there are any cases when do is not required.  For example, I'm thinking if this is this correct: Want to learn to code? I may help you.—meaning that if the asked person wants to learn programming, it could be possible that I'm available to teach her/him programming.  So, what is the difference between Want to learn to code?/Want to code? and Do you want to code?  Also, how can this be this question changed to have the same meaning, to be correct but still friendly and informal (e.g. it should be something that can be posted on Twitter)?


How can I change an element's class with JavaScript?

How can I change the class of an HTML element in response to an onclick or any other events using JavaScript?


Errors from nouveau when installing or booting from live usb

When I try to install or boot Ubuntu from USB I get these errors relating to nouveau:    fifo: write fault ... REGION VIOLATION ... init failed   Any possible fixes?


So, i was making a jumpscare animation, then i realised they changed the rendering stuff A LOT. I'm talking about "Output". It seems that we can only use "FFmpeg Video" as the output for rendering animations. I watched some videos to see what the settings should be for it and how to at least render the thing. But theeen, my animation came out really low resolution, the details look crappy, very crappy.   I would LOVE to get some help, in any ways, doesnt matter. I just really need help with this.


Problem with top alignment in beamer columns

I am trying to place two images in top of two columns in a columns environment, in a beamer presentation.   The first column consists of one image on top and a enumeration list bellow the image.  The thing is that I want the column to start at the top of the frame, which isn't happening in my case. My code is  \documentclass[slidestop,compress,mathserif,11pt,xcolor=dvipsnames]{beamer} \usepackage{beamerthemebars} \usepackage[bars]{beamerthemetree} \usepackage{multicol} \setbeamercovered{higly dynamic} \usetheme{Ilmenau} % Beamer theme v 3.0 \useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top \usefonttheme{serif} \useinnertheme{circles}  \begin{document}         \section{Εισαγωγή} \begin{frame}         \frametitle{Nuclear Propulsion}         \begin{columns}                 \begin{column}{0.48\textwidth}                         \begin{figure}[t]                         \includegraphics[width=\textwidth]{AtomicSubmarine}%\vspace{0.5cm}                         \end{figure}                         \tiny{\begin{enumerate}                                 \item Item1$\rightarrow$ Conclusdion                                 \item Item2$\rightarrow$ Conclusdion                                 \item Item3$\rightarrow$ Conclusdion                                 \item Item4$\rightarrow$ Conclusdion                                 \item Item5$\rightarrow$ Conclusdion                                 \item Item6$\rightarrow$ Conclusdion                         \end{enumerate}}                         %\begin{minipage}[t]{0.99\textwidth}                                 %\includegraphics[width=\textwidth]{AtomicSubmarine}                         %\end{minipage}                 \end{column}\hfill                 \begin{column}{0.48\textwidth}                         %\begin{minipage}[b]{0.99\textwidth}                         \begin{figure}[t]                                 \includegraphics[width=0.9\textwidth]{SubmarineSnorkel}                         \end{figure}                         %\end{minipage}                 \end{column}         \end{columns}         %\begin{minipage}[b]{0.5\textwidth}                 %\includegraphics[width=\textwidth]{SubmarineSnorkel}         %\end{minipage} \end{frame} \end{document}   The output of this code is    It is clear that a few lines upper would be ideal, as the real presentation frame, states!    I've tried to remove the figure environment, to use minipage but  the right image is aligned with the list, resulting in a very bad format. One solution is to remove the frametitle but I'm afraid I need it...  Another idea is to use \vspace{-1cm} but I am not sure if this is the optimum solution...  Any ideas on that?


I am writing thesis that the format is CHAPTER ONE. My template display CHAPTER 1. How to change the template?   The codes that I have right now is like the following:  \newcommand{\mychapter}[3][]{% \setcounter{chapter}{#3} \setcounter{section}{0} \setcounter{subsection}{0} \setcounter{subsubsection}{0} \setcounter{figure}{0} \setcounter{table}{0} \chapter*{#2} \if\relax\detokenize{#1}\relax   \addcontentsline{toc}{chapter}{#2} \else   \addcontentsline{toc}{chapter}{#1} \fi }  \newcommand{\setupname}[1]{%   \addtocontents{toc}{%     \unexpanded{\unexpanded{%    % \renewcommand\cftchappresnum{Chapter~}       \renewcommand{\cftchappresnum}{#1 }%       \setlength\cftchapnumwidth{\widthof{\bfseries #1 }}%       \addtolength\cftchapnumwidth{\fixedchapnumwidth}%       \renewcommand\cftchapaftersnum{\vspace{0.6em}: \vspace{0.8em}}     }}%   }% }   \addtocontents{toc}{\protect\setlength{\cftbeforechapskip}{-0.2em}}  %\setcounter{page}{1}   %\titlespacing*{\chapter}{10pt}{0pt}{10pt}   \titleformat{\chapter}[display]       {\centering\normalfont\large\bfseries}{ \chaptertitlename\ \NUMBERstring{\thechapter}}{{}10pt}{\large}  \pagenumbering{gobble} % Remove page numbers (and reset to 1) \thispagestyle{empty} \pagenumbering{roman}  % to put the romman number lower letters % begin for remove page number from table of content for chapter only not sections \newcommand{\gobbletocpage}{%   \renewcommand{\addcontentsline}[3]{%     \addtocontents{##1}{\protect\contentsline{##2}{##3}{\relax}}} }%   \pagenumbering{roman} \setupname{CHAPTER} \addtocontents{toc}{~\hfill\textbf{Page}\par} % to add page at top of TABLE OF CONTENT  page numbering \setlength{\cftbeforetoctitleskip}{-1em} % to remove space before table of content \renewcommand\contentsname{\large \textbf{TABLE OF CONTENTS}} \addcontentsline{toc}{chapter}{\textbf{TABLE OF CONTENTS}} %{\vspace{-5em}}% \tableofcontents \newpage \clearpage \addtocontents{toc}{\protect\vspace*{2.0em}} \input main/chap1.tex \addtocontents{toc}{\protect\vspace*{2.0em}} \input main/chap2.tex \addtocontents{toc}{\protect\vspace*{2.0em}} %\input main/lang.tex %\addtocontents{toc}{\protect\vspace*{2.0em}} \input main/chap3.tex \addtocontents{toc}{\protect\vspace*{2.0em}} \input main/chap4.tex \addtocontents{toc}{\protect\vspace*{2.0em}} \input main/chap5.tex \addtocontents{toc}{\protect\vspace*{2.0em}} \input main/chap7.tex    \end{document}


Using SFINAE to select function based on whether a particular overload of a function exists

I have been trying to choose between two templated functions based on whether an overload operator<<(std::ostream&, const T&) exists.  Example:  template <typename T, typename std::enable_if</* ? */, int>::type = 0> std::string stringify(const T& t) {     std::stringstream ss;     ss << t;     return ss.str(); }  template <typename T, typename std::enable_if</* ? */, int>::type = 0> std::string stringify(const T& t) {     return "No overload of operator<<"; }  struct Foo { };  int main() {     std::cout << stringify(11) << std::endl;     std::cout << stringify(Foo{}) << std::endl; }   Is this possible? And if so, how would you solve this problem?


The difference between heat and temperature

So as I understand it, heat energy of an object is the SUM of all the kinetic  energies of the molecules of the object (up to constant factor).   The temperature on the other hand is the AVERAGE of the kinetic energies of all  the molecules of the object.     Now when ice is melting at $0\,^\mathrm o$C, the temperature as measured on a  thermometer does not go up.   The common explanation is that any heat being absorbed by the ice is being used to break the somewhat strong solid bonds between the molecules of the  ice.   Here is my question. If heat of an object is what I defined above, then since  all the molecules are increasing in kinetic energy, the average of the kinetic energy should also increase, meaning the temperature should increase. But at  $0\,^\mathrm o$C for ice that does not seem to be the case.  Where am I going wrong in my understanding?


Bibliography error: (re) run Biber on the file

I have used the biblatex package and I created a bibliography in a .bib file. I've created a link to this file (\addbibresource{bibliography.bib}) and at the end of my document I've put the \printbibliography command.  The bibliography is not shown in the pdf...I receive the following errors:   Empty bibliography on input line ... Please (re) run Biber on the file ... and run Latex afterwards.   Can you explain me why is not working?


Journey Fire Event API :- To trigger list of Contacts in using single API call

I have list of contacts that get generated by batch process in external System. We want to trigger Journey Interaction Fire Event API , for these list of contacts.We want to invoke API in single batch for these list of contacts Is it possible to use these array of contacts in single message to inject into a Journey instead of calling api for individual contact.


Since I upgraded my ubuntu server installation from 16.04 to 16.10, the transmission-daemon service seems to be ignoring settings.json.  The symptom is that the web interface gives me:  403: Forbidden  Unauthorized IP Address.  Either disable the IP address whitelist or add your address to it.  If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.   but in /etc/transmission-daemon/settings.json we have, unchanged from before the upgrade:  "rpc-whitelist": "127.0.0.1,192.168.23.*", "rpc-whitelist-enabled": true,   /var/lib/transmission-daemon/.config/transmission-daemon/settings.json also points to /etc/transmission-daemon/settings.json:  jast@achilles:/etc/transmission-daemon$ sudo ls -l /var/lib/transmission-daemon/.config/transmission-daemon/ lrwxrwxrwx 1 root root 38 Sep  5 12:56 settings.json -> /etc/transmission-daemon/settings.json   syslog after doing service transmission-daemon restart (I think it should usually be also tellung me what ips it adds to the whitelist:  Jan  7 13:16:37 achilles transmission-daemon[4087]: Closing transmission session... done. Jan  7 13:16:38 achilles transmission-daemon[5025]: [2017-01-07 13:16:38.552] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:84) Jan  7 13:16:38 achilles transmission-daemon[5025]: [2017-01-07 13:16:38.552] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:95) Jan  7 13:16:38 achilles transmission-daemon[5025]: [2017-01-07 13:16:38.552] UDP Failed to set receive buffer: requested 4194304, got 425984 (tr-udp.c:84) Jan  7 13:16:38 achilles transmission-daemon[5025]: [2017-01-07 13:16:38.552] UDP Failed to set send buffer: requested 1048576, got 425984 (tr-udp.c:95)   So where is it trying to get its config from now?


I installed Windows 10 and a bunch of games on a 500 GB drive. I also have a spare 64 GB SSD lying around. Can I use the SSD as an automatic cache? If so, how? I have looked around a fair bit, but most answers seem to be for Windows 7 or 8, or otherwise outdated. What's the best way to have an SSD cache on a modern Windows 10 computer?  I do not have Intel, so SRT is not an option. This question is not a duplicate of  because Dataplex is not supported on my SSD because it is a standard SSD, not a specialized "cache drive", and FancyCache is only supported through Windows 8, and not on Windows 10.


Java 8 is now available according to , but  does not yet mention how to install OpenJDK 8 (not Oracle Java) on Ubuntu 14.04 Long Term Support. (For 14.10 and later just run apt-get install openjdk-8-jdk)  How and when can this be done?  (2017-08-08:  The very short answer is:  OpenJDK 8 as of 2017-08-08 is not officially available from the official repositories as an APT package for Ubuntu 14.04.  )  Note: For now we will use Oracle Java - the optimal solution for me is, however, OpenJDK from the Ubuntu repositories, until Oracle Java is available directly and effortless from the Ubuntu repositories.


C Programming - comma operator within while loop

Prog 1:   #include<stdio.h>  int main()  {      int i=0;      while(i<=8,i++);      printf("%d",i);      return 0;   }   Prog 2:  #include<stdio.h>  int main() {   int i=0;   while(i++,i<=8);   printf("%d",i);   return 0; }   The output of Prog 1 is 1 and that of Prog 2 is 9.  Can someone explain whats going here. How the two codes are different?


How many even numbers will $99$ dice show if we roll them forever under a certain condition?

Consider a six-sided die with numbers from $1$ to $6$. Imagine you have a jar with $99$ of such dice. You throw all dice on the floor randomly. You look at one of the dice on the floor at a time. For each die, you do the following:   If it landed at an even number $(2,4,6)$, you turn the die so that it lands on the number $1$. If the die landed on an odd number $(1,3,5)$, you throw the die up in the air, so it can land on any number.   After you finish doing the above for all dice on the floor, you come back to the first die and repeat the entire process again. You keep on doing this until eternity (for a billion years, let’s say). If I come into the room after a billion years, how many dice on the floor will have even numbers up?


eccentricity of ellipse using two defintions

Eccentricity is defined in terms of directrix as:$$e = \dfrac{PS}{PM}$$  Also eccentricity has a formula $$e=\dfrac{c}{a}$$ where $c$ is distance between center and focus $a$ is the length of semi major axis. How are these two equivalent? Looks some symmetric triangles are involved, but I don't see them. Any help?


I came across a few combinations of 'nailed it' or 'nailed down' in various contexts. According to the blog-posts, it seems to be widespread on the internet.  However, I have never heard these expressions in the real life. Is "nailed it" a common expression? What does it mean?  I appreciate every answer!


Can we have a list of all the Stack Exchange domains somewhere, for firewall purposes?

I work behind an really annoying firewall, and I just want the net admin to add all the SE websites to the whitelist. Right now I've lost access to Stack Overflow's authentication, but not Meta's... so I have to come here before I log in there.  It's driving me nuts. Basically I just want to add an exclusion rule for all SE domains; not only the website domains, but also the content domains such as gravatar.com, quantserve.com, the domain that holds static content, etc...


How can I run Debian stable but install some packages from testing?

Say you're running a server and you don't want to upgrade to Testing (Squeeze) from Stable (Lenny) to just install a required package or two.  What's the best way of installing only certain packages from Testing?


I have an LCD monitor,and from what I've read from the Wikipedia article,they only protect CRT and plasma monitors  which means that LCD monitors are not vulnerable to phosphor burn-in like those mentioned above  does that mean that screen savers are useless for LCD monitors?


Why am I getting Uncaught TypeError: Cannot read property 'length' of undefined if the var is declared?

I am a very beginner in JavaScript and recently I am studying it on a book. I am trying to modify  a script from this book that passes a number which is the number of letters in a word, and output the number of combinations of words you would get by scrambling the letters. While the original script lets you pass the number I want to modify it and allow the user to input a word, take it and return the number of words by scrambling the letters.  My issue is that, when I run the code, I keep getting this error:   Uncaught TypeError: Cannot read property 'length' of undefined     at thingamajig   Why is this happening?  var word = prompt('Word here.');  function thingamajig(word) {     var facky = 1;     clunkCounter = 0; //reset the clunkcounter     if (word.length == 0) {         display("clank");     } else if (word.length == 1) {         display("thunk");     } else {         while (word.length > 1) {             facky = facky * word.length; //multiply facky with size until size is 0. Basically it is caulculating a factorial             word.length = word.length - 1;         }         clunk(facky);     } }  function clunk(times) {     var num = times;     while (num > 0) {         display("clunk"); //keep calling display f until it is = 0         num = num - 1;     } }  function display(output) {     console.log(output);     clunkCounter = clunkCounter + 1; //How many times the clunck f called the display f? }  thingamajig(); console.log(clunkCounter);


I was just wondering if you can have a swap partition that is too big. If yes, when is a swap partition too big? What are the downsides/ill-effects of having a swap partition that's too big (even if I have plenty of disk space)?  If no, what are the benefits of having more than the recommended swap space?


login and payoff are nouns. But can they be used as verbs?

I know that words like login and payoff are properly nouns but I increasingly notice many (not at all uneducated) people use them as verbs:     Will you payoff your credit card this month?   and     Please check this when you login.   To me (a non-native English user), that seems incorrect because separating the core noun from a preposition is what I was taught: Please check this when you log in. (My emphasis)  Is this use proper or not?


Change Add to cart button text in Drupal 7

I am using Drupal 7 and Ubercart 3. I want to change the text for the button "Add to cart", how can I achieve this?  Any help, thanks.


Is it possible to find out when the first version of an app was issued?  Google Play only shows the date of the latest update in ADDITIONAL INFORMATION field (see picture).    Ideally, I'd like to see when all the updates were issued. Probably, that's too much.


I don't know which chapter season 2 episode 13 ends.  I just started watching it. I tried but could not find it.  Which manga chapter correspond to the end of episode 13 of season 2 of the anime?


Make \citet show hyperref only in for the year

How can I hyperref only the year part of a \citet entry?   I am using \citet and the result is the author and year appear with hyperref blue link. I only wan the year to show like that.    example of the code is:  \documentclass[onecolumn]{svjour3}       % onecolumn (second format) \usepackage[authoryear]{natbib} \setcitestyle{aysep={}} \usepackage[colorlinks,citecolor=blue,urlcolor=blue,bookmarks=false,hypertexnames=true]{hyperref}  \usepackage{url} \def\urlprefix{} \urlstyle{rm} \usepackage{etoolbox} \makeatletter  % Patch case where name and year are separated by aysep \patchcmd{\NAT@citex} {\@citea\NAT@hyper@{% \NAT@nmfmt{\NAT@nm}% \hyper@natlinkbreak{\NAT@aysep\NAT@spacechar}{\@citeb\@extra@b@citeb}% \NAT@date}} {\@citea\NAT@nmfmt{\NAT@nm}% \NAT@aysep\NAT@spacechar\NAT@hyper@{\NAT@date}}{}{}  % Patch case where name and year are separated by opening bracket \patchcmd{\NAT@citex} {\@citea\NAT@hyper@{% \NAT@nmfmt{\NAT@nm}% \hyper@natlinkbreak{\NAT@spacechar\NAT@@open\if#1\else#1\NAT@spacechar\fi}% {\@citeb\@extra@b@citeb}% \NAT@date}} {\@citea\NAT@nmfmt{\NAT@nm}% \NAT@spacechar\NAT@@open\if#1\else#1\NAT@spacechar\fi\NAT@hyper@{\NAT@date}} {}{}  \makeatother \begin{document}  \title{title title title }  ... and marine environmental monitoring programs \citep{GuptaandSingh2011}. \citet{ElderCollins} pointed out the convenience of using introduced species as monitoring organisms because of their physiological tolerance range and their wide...   \renewcommand*{\bibfont}{\footnotesize} \bibliographystyle{spbasic} \bibliography{RefLimnoBECT}  \end{document}   also the bibtex is:  @incollection{ElderCollins,   title={Freshwater molluscs as indicators of bioavailability and toxicity of metals in surface-water systems},   author={Elder, John F and Collins, Jerilyn J},   booktitle={Reviews of Environmental Contamination and Toxicology},   editor={Ware, GW},     pages={37--79},   year={1991},   publisher={Springer},    address={New York}, }   Thank you so much in advance for the help!


How to remove the left part of a string?

I have some simple python code that searches files for a string e.g. path=c:\path, where the c:\path part may vary. The current code is:  def find_path(i_file):     lines = open(i_file).readlines()     for line in lines:         if line.startswith("Path="):             return # what to do here in order to get line content after "Path=" ?   What is a simple way to get the text after Path=?


prove that the number $38^n+31$ is composite

Prove that for every positive integer $n$, $38^n+31$ is a composite number. for example $38+31=69$ is composite. $38^2+31=1475$ is also composite. I have tried modulo but it didn't work.


msbuild, defining Conditional Compilation Symbols

I'm possibly just blind, but is there a command line to specify conditional compilation symbols in MSBUILD?  I currently have this Line in my buildscript:  SET MSBUILD=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe SET CONFIG=Debug %MSBUILD% /p:Configuration=%CONFIG% /p:OutputPath=..\..\output source\MyProject\MyProject.csproj   And I'd like to add a condition. In Visual Studio, i can just go into Project Properties => Build => Conditional compilation symbols, but I have not seen that option for msbuild?  Bonus Karma if you know if I can completely override all symbols already specified in the .csproj files to make sure that only the conditionals from my Buildscript go in.


Section should automatically start new page if the whole section does not fit on current page

I would like my sections to start on a new page if they do not fit on the current page. In other words:  if a section fits on the current page print it, if it does not fit start printing it on the next page.  I would like this to be done automatically.  \usepackage{titlesec} seems to be the solution, but I can not get it to do the job.   Should it be done with titlesec? how ? Is there a better approach?


Is using the possessive 's correct in "the car's antenna"?

I know that to mark possession of an item you can use 's like in the following example:     The user's password shall not be blank.   However, is it correct to use the following:     The car's antenna is embedded in the windshield.   I seem to remember that possession must only be used for people but I'm not certain really.


Is the motion of rotation perfectly symmetrical?

Scientifically, can we say that one of these assertions is more "correct" than the other? (philosophically we can say that the first one is more correct because it makes the motion of other planets "simpler" to express)  Because of gravitation, the Earth is turning around the Sun.  Because of gravitation, the Sun is turning around the Earth.  (I want to keep the question open on all the specifities on the frames of reference (Galilean or not)).


Another way to evaluate $\int\frac{\cos5x+\cos4x}{1-2\cos3x}{dx}$?

What I've done is this:$$\int\dfrac{\cos5x+\cos4x}{1-2\cos3x}{dx}$$ $$\int \dfrac{\sin 3x}{\sin 3x}\left[\dfrac{\cos5x+\cos4x}{1-2\cos3x}\right]{dx}$$ $$\dfrac {1}{2}\int\dfrac{\sin 8x -\sin 2x +\sin 7x -\sin x}{\sin 3x - \sin 6x}$$ $$-\dfrac {1}{2}\int\dfrac{ \sin \frac{7x}{2} +\sin \frac{5x}{2} } {\sin \frac{3x}{2} }$$ $$-\int\dfrac{ \sin {3x}\cos \frac{x}{2} } {\sin \frac{3x}{2} }$$ $$-\int\dfrac{2\sin \frac{3x}{2} \cos \frac{3x}{2}\cos \frac{x}{2} } {\sin \frac{3x}{2} }$$ $$-\int {2\cos \frac{3x}{2}\cos \frac{x}{2} }$$ $$ -\left(\frac{\sin 2x}{2} +\sin x \right) +c $$ Is there any other way to do so ? Is it possible to do it by substitution ?


Ive been watching a lot of Sci-fi movies and alot of them have to do with worm holes. I know they are real and I dont know how they form. I have been wondering how they form for a while.