How to remove water based wood stain splashed onto painted surface

How do I remove the water based wood stain from my kitchen wall. I got some on my kitchen wall while I was staining my kitchen cabinets?  I tried to remove my using soap and water on a sponge. It did not work. My kitchen wall is painted with water based satin finished paint.


Indian national transiting through heathrow from Paris

BA 1536 24APR DFW(Dallas)->CDG(Paris) HK1  1505  #0735   BA 307 09MAY CDG(Paris)->LHR(London) HK1  1030   1050   BA 119 09MAY LHR(London)->BLR(Bangalore) HK1  1420  #0445  I have a flight which originates from Dallas, goes to Paris, and from Paris gets to Bangalore via London. The transit time is less than 3 hours and I will not have any check-in luggage (so no border control?). As per my understanding I should be exempt since I have a valid US visa.   But my travel agent says I need a transit visa for London. Does anybody know the updated rules for transit?


Not counting empty list while counting total lists count in Python

I have 3 lists out of which 1 is empty. I want to take count of lists in a list which are not empty.  For example:    a = ['username', 'username', 'social']  b = []  c = ['username', 'instead', 'added']   Combining all the lists together:  combine = [a,b,c]   Counting the non-empty lists:  count = sum(x is not '' for x in combine)   When I am running the above code, I have getting 'count=3' but I want 'count=2'  Please help me how should this can be done.


I tried to dual boot Windows and Ubuntu, but I can't switch back to Windows. I installed Ubuntu on a separate partition, but I can't seem to switch back to Windows, kind of like this situation:


How to use 'is' operator with a generic class

I have the classes  abstract class MyGeneric<T> {     ... }  class A : MyGeneric<int> {     ... }   How can I check, using the is operator, if any object is an instance of class MyGeneric?  Something like this:  bool isGeneric = anyObj.GetType() is MyGeneric;


Is there a way of redefining the em-dash ligature --- so as to mean \,---\,? Something like:  \let\oldemdash--- \def---{\,\oldemdash\,}   which of course doesn't work.


How can I change the language in Dragon Age:Inquisition?

I'd like to play Dragon Age Inquision in english instead of the language of my operating system, but it seems to default to that and I can't find a way to change it. I already tried setting the Origin client language to english, but that didn't change anything.  Where can I change the language for Dragon Age: Inquisition?


Proving two recursive sequences converge

Given positive $a$ and $b$ with $a < b$, define two sequences recursively with $x_0 = a$, $y _0 = b$, $y_{n+1} = G(x_n, y_n)$, $x_{n+1} = H(x_n, y_{n+1})$. Prove that both sequences converge. $G$ and $H$ are the geometric mean and harmonic mean, respectively.   Probably need to start off with proving both sequences are monotone and have an upper bound, but have no idea where to take the proof from that point. Any hints would be greatly appreciated.


Can I shift memory from ROOT to HOME partition - Ubuntu Linux 16.04 (dual boot with windows 10)

I have researched on my question first, but mostly I found that people want to transfer disk space from HOME to ROOT, while my case is the opposite.  My HOME partition is pretty full right now, while I have 350 Gb on my ROOT> I would like to shift e.g. 200Gb from ROOT to HOME.  NOTE: I do not want to change Windows partition size, I just want to shift between the ubuntu partitions.   I've read that I can use gparted for resizing partition. However, I am not quite sure as to how to do it.  Could you please give detailed steps on these?


How do I clear an incorrect red flag on my US visa for overstaying, when in fact my departure date has not been recorded in the database?

I am a resident of New Delhi, India. I received a 10-year B-1/B-2 type US visa on 17th January 2014, which expires on 15th Jan 2024. On account of this visa, I travelled to the United States for 15 days last year, from 11th - 24th February 2014.   I again have to visit the United States from 26th June to 21st July, on account of my acceptance into the prestigious Hansen Summer Institute 2015 Fellowship program being held at the University of San Diego. During the verification of my documents for the same, I learned that my visa has been red-flagged for overstaying on account of my previous journey. I didn't overstay my visa duration and have NO idea whatsoever what led to them red flagging my visa. I was in and out of US in just 15 days.   I tried to check my travel history on the US Customs and Border Protection website, which showed only my date of arrival (11th February, 2014) at JFK Airport, New York. The date of departure was absent, which leads me to believe that somehow the information of my exit from JFK Airport, NY on 22nd February, 2014 was not recorded due to some clerical error. But this issue, in which I have absolutely no fault at all, is causing me a lot of trouble as I have to fly to US again on 26th June.  I am desperately trying to get an interview at the consulate office. Right now they are saying that my case has been forwarded to the embassy and I need to just wait for them to revert back. It's been seven days since I sent them the email and have received absolutely no word from their side.  I have my flight tickets booked for the United States on 26th June, all accommodation arrangements for me have also been made, and therefore it is extremely urgent that you reply back with the relevant details as soon as possible. I have effectively only 11 days left.  I have a copy of my air ticket from New York on the 22nd February 2014, by which I came back to New Delhi on 24th February, which along with the stamp at Indian Immigration should dispel any doubts.   Right now I am not able to get an appointment at the US consulate because there is no predefined procedure for this sort of a thing.


Proper use of the coefficient of variation

I have a variety of samples, each with a different standard deviation and mean. The coefficient of variation $CV$ = ${\sigma} / {\mu}$ defines the amount of variation in a population or sample around its mean.    Is it meaningful to then use $1/CV$ or some other variation on this as a weight so that, using the example above, $\mu / CV$ is the new mean for each sample?    Is this mean at all more accurate for comparing the samples?  By comparing the samples I would like to determine (eyeball) whether, adjusted for standard deviation, the means of the samples differ significantly.  I'm almost sure this is an abuse of the coefficient of variation.  Are there other less silly methods I should be looking at to adjust for differences in standard deviation among samples?


How to Access dependent picklist(MailingState) in apex?

I have enabled state and picklist value in client's unlimited org. I need to access only dependent state based on selected Country code. There are some integration and other apex changes where I need only dependent state value in a Map( like  : 'MH'=> 'Maharastra')... I am using below code but It will give all the state values. I need only states based on country values. e.g. : For Indian it should have only 35 state which belong to India only.   Schema.DescribeFieldResult F = Contact.MailingStateCode.getDescribe(); List<Schema.PicklistEntry> P = F.getPicklistValues();  System.debug('-----P--->>'+P[0]); Map<String, String> tempMap = new Map<String, String>(); for(Schema.PicklistEntry sp : P){     tempMap.put(sp.getValue(), sp.getLabel()); }  System.debug('----tempMap-----'+tempMap.get('MH'));  // Here it is returning 'Meath' as MH will be state code for some other states as well  System.debug('----tempMapVALUE-----'+tempMap.get('UP'));   Any help will be appreciated. Thanks in Adance !!


Convergence of Power Series with $z^{2^k}$

So i got this  power series $$\sum_{k=0}^\infty 3^k \cdot z^{2^k}$$  Can i do the convergence test like this:  $$\text{ratio test} \Longrightarrow \frac{3^{k+1}\cdot z^{2^{k+1}}}{3^k \cdot z^{2^k}} = \frac{3 \cdot z^{2^{k+1}}}{z^{2^k}} = 3 \cdot z^2 \lt 1 \Longleftrightarrow |z| < \frac{1}{\sqrt3}$$


What's the appropriate Stack Exchange site for asking about setting up dual monitors?

I have tried every solution given on the Internet, as well as some tricks up my own sleeve.  Nothing works to help me "extend" my desktop and not "duplicate" it across 2 monitors.  My question is "What is the appropriate site to ask about this?" I don't think it would be Stack Overflow, but I don't dare try any of them for fear of being downvoted to death if I'm wrong.


I want to use commuting diagrams and the classicthesis package.  I've edited the classicthesis document so that tikz, tikzcd and the braids packages are included after the classicthesis package.  However I get the error:  ! Package pgfkeys Error: I do not know the key '/tikz/"f"' and I am going to ignore it. Perhaps you misspelled it.   Here's a minimal example:  \documentclass[     oneside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,     %footinclude=true,     cleardoublepage=empty,     dottedtoc, % Make page numbers in the table of contents flushed right with dots leading to them     BCOR=5mm,paper=a4,fontsize=11pt, % Binding correction, paper type and font size     ngerman,american, % Languages, change this to your language(s)     ]{scrreprt}   % Includes the file which contains all the document configurations and packages - make sure to edit this file \input{classicthesis-config}   \begin{document}     \begin{center}     \begin{tikzcd}                 U                 \arrow[r,hook, "f"]               & V \end{tikzcd} \end{center} \end{document}   However: If I write   \documentclass[     oneside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,     %footinclude=true,     cleardoublepage=empty,     dottedtoc, % Make page numbers in the table of contents flushed right with dots leading to them     BCOR=5mm,paper=a4,fontsize=11pt, % Binding correction, paper type and font size     ngerman,american, % Languages, change this to your language(s)     ]{scrreprt}   % Includes the file which contains all the document configurations and packages - make sure to edit this file \input{classicthesis-config}   \begin{document}     \begin{center}     \begin{tikzcd}                 U                 \arrow{r}{f}               & V \end{tikzcd} \end{center} \end{document}   everything works fine. This makes me rather confused. What is it, I'm missing?  Here's a stripped-down version of my classicthesis-config:  \PassOptionsToPackage{utf8}{inputenc}  \usepackage{inputenc}  \PassOptionsToPackage{eulerchapternumbers,listings,drafting, pdfspacing, subfig,beramono,eulermath,parts}{classicthesis}  \newcounter{dummy}  \providecommand{\mLyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} \newlength{\abcd}     \PassOptionsToPackage{fleqn}{amsmath}  \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts}  \PassOptionsToPackage{T1}{fontenc}  \usepackage{fontenc}  \usepackage{textcomp}  \usepackage{scrhack}  \usepackage{xspace}  \usepackage{mparhack}  \usepackage{fixltx2e}   %\PassOptionsToPackage{pdftex}{graphicx} %\usepackage{graphicx}   \usepackage{tabularx}  \setlength{\extrarowheight}{3pt}  \newcommand{\tableheadline}[1]{\multicolumn{1}{c}{\spacedlowsmallcaps{#1}}} \newcommand{\myfloatalign}{\centering} % To be used with each float for alignment \usepackage{caption} \captionsetup{font=small} \usepackage{subfig}    \usepackage{classicthesis}  \usepackage{tikz} \usepackage{braids} \usetikzlibrary{cd}


In python why is a list not the same as list[:]?

I have a list, ls = [0 1 2 3 4] and I am running the following:  print(ls is ls[:])   I am getting the output as False. Why are they not the same list? When I print both versions I get the same list printed.


Number of sequences length n in which neighboring elements differ by 1

Suppose we're given a set $S=\{1,2,3,4,5\}$. From elements in $S$, we form an array/sequence of length $n$, such that difference between neighboring elements is strictly $1$. For example, one valid sequence of length $n = 5$ is $32345$. What is the generating function for the number of such sequences? My approach is to let $f(n)$ be a number of such sequences starting with 1 or 5 (only one neighboring number). Then, $f(n) = 2 * n-1$. Similiarly, let $g(n)$ be a number of sequences staring with $2,3,4$. Unfortunately, I can't find a proper formula for $g(n)$, although I'm quite convinced it's in the form of $a\times g(n-1) + b\times f(n-1)$.


The  COVID outbreak resulted  and provides a unique opportunity to gain insight into epidemiology  dynamics.   Given the well documented CVN-71 context:    856 tested positive as of 24-April-2020   :     Roughly 60 percent of the over 600 sailors who tested positive so far   have not shown symptoms of COVID-19, the potentially lethal   respiratory disease caused by the coronavirus, the Navy says. The   service did not speculate about how many might later develop symptoms   or remain asymptomatic.   If a modified  Goal => Question => Feature was applied to the Roosevelt population, where the goal is to understand the correlation between patient feature and likelihood of asymptomatic infection, what would features would be of interest?  For example:   Gender Age  Race Blood type height & weight   Although features are appreciated, a narrative featuring a sound thought-process will be favored.


$\{T(t):t\geq 0\}$ is a strongly continuous semi-group, suppose $x\in \mathbb{X}$, $w-\lim_{t\to 0^{+}}\frac{1}{t}(T(t)-I)x=y$, show that $y=Ax$.

Let $\{T(t):t\geq 0\}$ be a strongly continuous semi-group on $\mathscr{X}$, suppose $x\in \mathbb{X}$, $w\text{-}\lim_{t\to 0^{+}}\frac{1}{t}(T(t)-I)x=y$, show that $x\in D(A)$ and $y=Ax$.   Considering $f\in \mathbb{X}^{*}$, I try to use $e^{-\lambda t}f(T(t)x)$ has right derivate, but I do not know why it is $e^{-\lambda t}f\Big(T(t)(y-\lambda x)\Big)$. And how to complete the proof?  Thanks for any answer!


Apache2: Handling a subdirectory in another VirtualHost

I have a site with forums. The forums are currently at forums.example.com (a subdomain). I've heard that for SEO and usability in general it's better to have them at example.com/forums. Regarding security and maintainability, however, it would be better to host the forums in a seperate VirtualHost (or to be exact, a seperate cPanel account).  Is this even possible, should I want to do this?


I have a question regarding the Z-Score test when it comes to compare two proportions.  Usually, one would use this formula to obtain the Z-Score:   and then compare it to a Standard Normal Distribution to find if the difference is statistically significant.  Yet, I was wondering how can we evaluate such a statistic when we have the following problem for example:  Let's say we have tow factories which produce the same set of products, some of them can break during the process. We have one proportion, which is the proportion of broken objects in each factory. We can compare this proportion between the two factories with the preceding formula.  But what if I'm interested by another proportion, that is the amount lost due to broken objects wich can be defined by :    where x(i) equals 1 if the object i is broken and 0 otherwise and P(i) is the price of the object i.  How can we derive confidence intervals and Z-score test for such a proportion ?   Thanks for your help  EDIT: I found a solution  Yet, in the demonstration written by wuber the variables X(i) are supposed to be independent. That is why he can write   What if it is not the case ? For example let's say that an object manipulated by a worker/machine is more likely to break if the worker/machine already broke an object or more in the past. How can we determine the covariance between these variables ?


I’m writing a dissertation on network security. I’m unsure which of the following to use:   ...89.9%, which is 57 million users.  ...89.9%, which are 57 million users.   Technically it should be are because it refers to a plural amount of people, but it doesn’t sound right to me considering that 57 million is in a sense one group.


I have been trying to prove the following: if $AA^*$ = $A + A^*$ then $A$ is normal (meaning : $AA^* = A^*A$). I have literally tried everything possible; I can't come up with proof. Any ideas?


Can I use my Schengen visa for multiple purposes

I was issued a Schengen visa for 90 days validity with multiple entry. Initially I planned for tourism to France and Switzerland and accordingly I have written the purpose as tourism only and I will be travelling as well for a week and coming back to India. First I am using for tourism for one week and travelling back to India.  Now, I also need to travel again to Schengen area to the same countries for business purpose for one week again. Can I use the same visa or do I need to get a new one?


I am trying to publish maps from QGIS Map Composer.  I would like to automatically add the credits of the background layers displayed in the composition (like OSM, Bing, ...)  I am aware of such a feature in main QGIS window using  View -> Decorations -> Copyright label but    this data is not shown in composer I am looking for an expression to adapt the text depending of the active layer    (Currently using either qgis 2.18 or 3.4)


from time to time recently I notice the cmd window opening and then immediately closing. I need to find out what is using it.  windows 7. updated.


I recently dual booted my computer to have Windows 7 and Ubuntu 13.10 on it. I later decided that I didn't want Ubuntu so in Win 7 I went to disk management and deleted 2 volumes that were not their before I made an Ubuntu partition and then when I restarted my computer all that came up on the screen was  error no such partition grub rescue>  What does this mean? What do I do to either boot into Windows or Linux? Any help is appreciated I am very new to Linux Thank You!


I have a few distros ISOs and I want to test them in a Live flash drive. They are Arch Linux, Damn Small Linux, Linux Lite, Porteus, Lubuntu 15.04 and Ubuntu 14.10. I can use Boot Disk Creator (default in Lubuntu) to create Lubuntu and Ubuntu Live USBs, but it does not work with other distros. I tried Universal USB Creator with Wine, but it doees not work properly. I searched and searched but I am not able to find a completely Ubuntu-supported creator, only Windows and Mac ones. Could you recommend me some programs? If possible, a .DEB file.


How many stops are there between 1/4000 and 1" shutter speeds

I've taken a series of photos as a bracketed HDR, starting at 1/4000th of a second going up to 1 second. How many stops are there between those? How would you be able to tell?  The aperture and ISO do not change


Oscilloscope Output with its positive terminal touching human's body and negative terminal left open

it once happened that when I touched the positive terminal of the Oscilloscope input probes letting its negative terminal open, I observed sinusoidal voltage signals with 0.5V peak to peak and of frequency nearly 50Hz. I don't understand the exact cause for these signals. When I touched the other, negative terminal output signal reached zero with a very little noise...(with the positive terminal connected to the body..) Is it because the power lines near the place I observed these are 50Hz and those induced a potential difference across me with respect to the supply ground which is also the ground of Oscilloscope... or something else.. When I touched a wire or a resistor with positive terminal of Oscilloscope.. there was no change in the Output.. Its because the equivalent model of our body includes capacitance and inductance with resistance.. If so then actually how we are being induced with such voltage signal..? Actually the discontinuity in signal is because of the difference between the frequency of actual signal and sampling frequency of my camera.


Why does the partition start on sector 2048 instead of 63?

I had two drives partitioned the same and running two RAID partitions on each.  One died and I replaced it under warranty for the same model.  While trying to partition it, the first partition can only start on sector 2048, instead of 63 that was before. Drive have different geometry as previous and remaining ones. (Fewer heads/more cylinders)  Old drive:  $ sudo fdisk -c -u -l /dev/sdb   Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000aa189     Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *          63   174080339    87040138+  83  Linux /dev/sdb2       174080340   182482334     4200997+  82  Linux swap / Solaris /dev/sdb3       182482335  3907024064  1862270865   fd  Linux raid autodetect   Remanufactured drive received from warranty:  $ sudo fdisk -c -u -l /dev/sda  Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000d0b5d     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048  ...   Why is that?


Is it possible that the interaction effect is significant while the individual effect(s) is not?

Consider a simple model: Y = A + B + A*B  Is it possible that coefficient for A*B is significant while that for A or B or both of them is insignificant? Either yes or no, can you tell what's the reason behind it?


makefile compilation shows fatal error: No such file or directory

I have two files in the same folder: myset.c, set.h My makefile looks like this: myset:myset.c set.h     gcc -ansi -pedantic -Wall myset.c -o myset  When I run the command make in the console it shows the following error: fatal error: set.h: No such file or directory  in myset.c I wrote: #include <set.h>  What is the problem?


Is this proof correct or incorrect? If not what is the mistake?

According to euler's formula \begin{equation} e^{i\pi}=-1 \tag{1} \label{1} \end{equation} \begin{equation} e^{-i\pi}=-1 \tag{2} \end{equation} Comparing $(1)$ and $(2)$, we get $$ e^{i\pi}=e^{-i\pi} $$ Comparing the exponents on both sides, $$i\pi=-i\pi$$ Simplifying yields $$i=-i$$ Is this correct? If not, what is the mistake?


How do I edit file name that same first word

I have log files like this:  tmp_1_2_3_4_5.LOG ...   I need to change name like this:  1_2_3_4_5.LOG   I try:  rename 's/^tmp+_//' *   It's working on Debian, but not working on Red Hat.  How can I do this with mv command?


I understand that the terms snap, crackle and pop aren't exactly official terms but I needed a compact title about various derivatives of position with time.  A body at rest has all it's time derivatives of position equal to $0$. When it starts to move it gains velocity. So it's velocity has changed implying acceleration. Acceleration has changed implying jerk and so on. So even the $1,000,000th$ derivative is not 0. Am I right about this or is there some flaw to my method?  If I'm right about this. So once the body starts to move why is it that we only consider the derivatives up to acceleration, hardly consider jerk and rarely mention higher derivatives? Intuition tells me that one the body starts to move, any change in speed can be attributed to acceleration and that takes care of everything and we need not consider anything beyond. But I would like to have a feel of the real answer. An amateur like me told me that higher derivatives are not considered for such problems and not even for some differential equations as the derivatives are small and ignoring them will result in a negligible error. The answer feels sound for engineering but not for theoretical physics. Is she right to say it's okay to ignore tiny values?  Also does it signify anything interesting when derivatives up to the 1000th derivative are all varying?   Either this is a valid question or I'm fundamentally flawed. Forgive me for wasting your time if it's the latter.  EDIT:  this is not a duplicate in any way. The question similar to mine assumes advanced knowledge of lagrangian mechanics and the category it came under was differential geometry and field theory. My question is on Newtonian mechanics and neither do I have the mathematical background to understand the answers to the other question. In fact I don't know enough Mathematics to understand the other question itself. ;-)


Python zip - Why do we need to unpack the argument?

I'm trying to understand the need to unpack the arguments using * when the input to zip is a 2D list.  The  state,     [zip] Returns an iterator of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables.   So, regarding the second print statement below, I expected it to be just like the ones before and after it.  I am having trouble connecting the description of zip to this result.  MWE:                                                                   x = [1, 2, 3] y = [4, 5, 6]  print zip(x, y) print zip([x, y])  # don't understand this result print zip(*[x, y])   Result:  [(1, 4), (2, 5), (3, 6)] [([1, 2, 3],), ([4, 5, 6],)] [(1, 4), (2, 5), (3, 6)]


unable to mount New Volume from Ubuntu 14.04

This question has been asked  and .  I have a dual boot system with Windows 8.1 and Ubuntu 14.04 but I am not able to open New Volume from Ubuntu. It gives the following error:    I disabled the hibernate option using  powercfg /h off   but it did not work although it was able to disable the hibernate and fast boot option.  How can I fix this error?


Why we use $\mathrm{Fn}(\kappa\times\lambda,2,\lambda)$ to force $2^\lambda\ge\kappa$ instead of $\mathrm{Fn}(\kappa\times \lambda,2)$

I am reading Kunen's Set Theory and I learn that, $\operatorname{Fn}(\kappa\times\omega,2)$ forces $2^{\aleph_0}\ge|\kappa|$, where $$\operatorname{Fn}(I,J,\lambda)=\{p:p\text{ function},\,\operatorname{dom}p\subset I,\,\operatorname{ran}p\subset J,\,|p|<\lambda\}$$ and $\operatorname{Fn}(I,J)=\operatorname{Fn}(I,J,\omega)$. However, when forcing $2^\lambda\ge\kappa$ for cardinal $\kappa$ and regular cardinal $\lambda$, Kunen uses $\operatorname{Fn}(\kappa\times\lambda,2,\lambda)$ rather than $\operatorname{Fn}(\kappa\times\lambda,2)$. As I think, $\operatorname{Fn}(\kappa\times\lambda,2)$ preserves cardinals and seems to add $|\kappa|^{V[G]}$ many subsets of $\lambda$ so I think we can use $\operatorname{Fn}(\kappa\times\lambda,2)$ to force $2^\kappa\ge\lambda$. However, every reference I see uses $\operatorname{Fn}(\kappa\times\lambda,2,\lambda)$, not $\operatorname{Fn}(\kappa\times\lambda,2)$.  Is there a reason to use $\operatorname{Fn}(\kappa\times\lambda,2,\lambda)$ instead of $\operatorname{Fn}(\kappa\times\lambda,2)$? Did I misunderstand something? Thanks for any help.


What are these three extra chars and why do they cause such a strange error?

Look at these two files:       They look to me entirely identical, but File 1 has 41 bytes and File 2 has 44 bytes.  Now, I would not care about 3 extra chars, however, I think these chars are also responsible to a strange error: when I clone and run these files, File 1 runs OK while File 2 returns an error on line 3: "./BasicCheck.sh: line 3: cd: case0 : No such file or directory".  So: what are these extra chars? Why do they cause errors? And what should I do to fix these errors?  My guess is that they are newlines - perhaps File 1 has Linux-based newlines and File 2 has Windows-based newlines. Is it correct? And why should it cause such errors?


So I have an assignment to create a change maker. I pretty much got it down, I just have one problem. Everything goes fine until it get to dividing the last iteration of the loop. If I use 55.87 as a value once the loop get to the last .02 and divides it by .01 (to hopefully get 2) it gets 1 instead. Here is my code:  #include <stdio.h>  int main (void) {     double money;     double change[8] = {20, 10, 5, 1, .25, .10, .05, .01};     int quantity;     int i;     int rpt = 1;      printf("Kevin Welch - Assignment 2 - Change Maker");      while (rpt == 1)     {         printf("Enter a dollar amount up to 200 to make change.\n");         printf("Maximum of two decimal points for cents.\n");         scanf("%lf", &money);          while (money > 200 || money < 0)         {             printf("Not a valid value.\nPlease re-enter:\n");             scanf("%lf", &money);         }          printf("\nAmount entered: $%.2lf\n\n", money);         printf("Change breakdown:\n");          for (i = 0; i < 8; i++)         {             quantity = (money / change[i]);  /*  I added this next printf line to output my variables to see what they          were doing while in the loop.   Output shows money = 0.02 and change[i] = 0.01,   however (money/change[i]) = 1 instead of 2. */              printf("\n%.2lf  %i   %.2lf\n\n", money, quantity, change[i]);              if (quantity >= 2 && money != 0)             {                 if (change[i] >= 10)                     printf("%i $%.2lfs\n", quantity, change[i]);                 else                     printf("%i  $%.2lfs\n", quantity, change[i]);                 money -= quantity * change[i];             }             else if (quantity >= 1 && money != 0)             {                 if (change[i] >= 10)                     printf("%i $%.2lf\n", quantity, change[i]);                 else                     printf("%i  $%.2lf\n", quantity, change[i]);                 money -= quantity * change[i];             }         }         printf("\nWould you like to use the change maker again?\n");         printf("Enter 0 for No and 1 for Yes:\n");         scanf("%i", &rpt);         while (rpt != 0 && rpt !=1)         {             printf("Enter 0 for No and 1 for Yes\n");             scanf("%i", &rpt);         }     } }


Is there any alternate proof for proving that  The product of L.C.M (Least Common Multiple) and G.C.D (Greatest Common Divisor) of any two positive integers = the product of those two integers   ?  As of now, there exists a proof which involves use of Number Theory based facts.   I am interested to know if there exists any alternate proof (perhaps in different branch of Mathematics ?!).  You can assume that you want to prove this fact to a person who is aware of basics of mathematics but not NUMBER THEORY


Serial version id mismatch issue between server and client class

I am facing issues with serial version id mismatch.  My server is having code with serialVersionID=20150301L; and myt client code is having diffrent so changed it manually but still facing the same issues.  Error:  java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.io.InvalidClassException: com.fedex.supplies.j2ee.common.client.reqresp.CustomerDataRequest; local class incompatible: stream classdesc serialVersionUID = 20150901L, local class serialVersionUID = -955959537118369236.   I tried option like implementing serilizable,manually defined serialVersionID same as server but getting the same error each time.


Use of the phrase "it seems" vs. "it seems that"

On another stackexchange site, I used the following phrasing:     I want to do X.  It seems I can only do so when Y.   Someone edited the second sentence:     It seems that I can only do so when Y.   This made me realise that the edited form is perhaps more common -- but is my original phrasing grammatically incorrect?  What role does "that" play in the second variation?


I've googled that and I've found many opinions on this subject, and I'm not sure, if, dedicated IP addresses actually really improve SEO? Is it that different from shared IP address (of 50-100 other sites)?


Can someone give me an example for this question on reflexivity please. How is this reflexive? Can you show an example with numbers from the set?     Question 6   Let $X = \{0,1,2,3,\dotsc, 9\}$. Define a relation $\mathcal R$ from $X$ by "$x$ is related to $y$ if $x$ and $y$ gives the same remainder on division by $3$".   (a) Show that $\mathcal R$ is an equivalence relation.   Anwser:   (a) $\mathcal R$ is clearly both reflexive and symmetric, for every number has the same (unique) remainder on division by $3$ as itself and if $a$ has the same remainder on division by $3$ as does $b$, then $b$ has the same remainder on division by $3$ as $a$ also. Similarly $\mathcal R$ is transitive, for if $a\mathcal R b$ and $b\mathcal R c$, then $a$, $b$, and $c$ all have the same remainder on division by $3$, so $a\mathcal R c$ also.


What to treat as (hyper-)parameter and why

I have been wondering about the differences between model paramters and model hyperparameters, as well as what their categorization means for a learning problem.  Is the distinction between model parameters and hyperparameters only about reducing the complexity of the problem or are there implications for the 'model quality' to be considered?  Let's consider an example from (1, Eq. 2.43), a linear expansion of basis functions   $$f_\theta(x) = \sum_{m=1}^{M} \theta_m h_m(x), $$  where $h_m\:\forall m=1,...,M$ is some function of $x$, $\theta=[\theta_1,...,\theta_M]^\intercal$ is a vector of the parameters of the model and $M$ is the number of basis functions.   In my understanding, we would consider $\theta$ to contain the parameters of the model, while $M$ is a .  To quote the Wikipedia article of hyperparameter that I linked above:     In machine learning, a hyperparameter is a parameter whose value is   set before the learning process begins. By contrast, the values of   other parameters are derived via training.   It makes sense treating the values in $\theta$ as parameters that should be learned from the data, similar to the coefficients in a linear model - it is surely far more reliable  and  specifying them manually would be quite annoying, although it's not impossible. But what about $M$? It surely is easier to pick some integer value for it. But would it really be terrible to determine $M$ based on the data, too? Probably not, as that is what we would do if we search a grid of possible values for the best performing one.   Let's consider the above basis expansion model and choose Gaussian kernel functions to serve as basis functions. As the Kernel itself has parameters too  this makes the problem a bit more complicated.  $$f_\theta(x) = \sum_{m=1}^{M}\theta_m K_{\lambda_m}(\mu_m,x), $$ with $\mu_1,...,\mu_m$ being the location of the kernels and $\lambda_1,...,\lambda_m$ their scales/bandwidths.  Friedman et al. write in (1, p. 36)        "In general we would like the data to dictate them as well. Including   these as parameters changes the regression problem from a   straightforward linear problem to a combinatorially hard nonlinear   problem. In practice, shortcuts such as greedy algorithms or two stage processes are used."   I see that if we were to treat $M$, $\theta_1 ... \theta_M$, $\mu_1 ... \mu_M$ and $\lambda_1 ... \lambda_M$, as model parameters, this problem would be really complex, especially with the choice of $M$ determining the number of the other parameters. But what if we simplify the model definition - let us for example use the same scale/bandwidth for each kernel, that gives us only one parameter $\lambda$. Furthermore, let's say we specify $\mu_1 ... \mu_M$ based on some heuristic, which would mean we treat it as a hyperparameter.  This gives us   $$f_{\theta,\lambda}(x) = \sum_{m=1}^{M}\theta_m K_\lambda(\mu_m,x), $$  Besides increased complexity of the involved optimization problem, does treating $\lambda$ as a parameter rather than a hyperparameter have other negative or undesired effects?      (1) Friedman, Jerome, Trevor Hastie, and Robert Tibshirani. The   elements of statistical learning. Vol. 1. No. 10. New York: Springer   series in statistics, 2001.


How do zoom lenses restrict their widest aperture at the telephoto end?

Does the aperture ring lock the apertures beyond, say 5.6 at length lens's telephoto end? Does the lens introduce an obstacle to the aperture ring so the lens can't be opened anymore beyond the aperture at the telephoto end?  And why do lenses behave like this, anyway? Why don't they have constant apertures throughout their focal range?


Why has Steve Nash moved to the LA Lakers in sign-and-trade deal?

Congratulations to Steve Nash on his move to Lakers !  His contract with the Suns has expired so I don't understand why he moved in a sign-and-trade deal.    Why resign and move in trade? Why didn't the Lakers sign Nash without any trade?


What can cause that i get IllegalMonitorStateException in this code  synchronized(syncCount){     syncCount--;     syncCount.notify(); }   I'm little confused, since, as far as I know running thread must have monitor on object who's notify is called. It looks to me that my code can not be wrong, but somehow it is.


Calculate $$\lim_{n \to \infty} \frac{2^3-1}{2^3+1}\times \frac{3^3-1}{3^3+1}\times \cdots \times\frac{n^3-1}{n^3+1}$$ No idea how to even start.


Windows time update doesn't work properly

In those days you don't want to set your system time manually. But even though my system is configured to do auto time updates the time is sometimes very inaccurate (more than a minute off). When I realize it I force Windows to "Update now" in the Internet Time Settings but often this update fails. What do you propose to do? My goal would be that I don't have to care about the time. My system shall care about it and keep it in sync.


Printing Selected Area into Desire Map Scale

Can anyone help me ? I am using 3.10 QGIS. What i am trying to do is select area from map, and divide them into piece (any scale i want). So when i print them out, it wont intersect.  Here is some pic of what my purpose of the question .   Blackbox is the scale that i put, so i wonder if QGIS have a way to automatically divide the area and print them out. Thanks.


How to stop irrelevant job suggestions from carreers 2.0?

How can I get rid of entirely irrelevant job offers in Careers 2.0? I have windows and .net as dislikes and careers keeps suggesting me windows and .net jobs.


I have a CT.txt with below input data. CT.txt:  test testing test 1   And with below script:  #!/bin/bash for CITY in $(cat /home/user/CT.txt) do  FILES=/mnt/dir1/dir2/$CITY/* echo $FILES   Giving me output as follow:  /mnt/dir1/dir2/test /mnt/dir1/dir2/testing /mnt/dir1/dir2/test/* /mnt/dir1/dir2/1/*   where output should be:  /mnt/dir1/dir2/test /mnt/dir1/dir2/testing /mnt/dir1/dir2/test 1   How to make CT.txt file to read having space in between test 1.


Most fitting word for a time interval with specific start and end?

If I'm talking about an appointment of a specific time and duration, what's the most fitting word? "Time span", "time range", "time interval"? Anything else?  By "most fitting" I mean that it should suggest to the listener that I'm talking about the interval between specific dates, not about a duration or period.   only has a rather pragmatic answer concerning programming.  Online dictionaries give contradicting definitions, for example for "time interval":   "a definite length of time marked off by two instants."   "Duration of a segment of time without reference to when the time interval begins or ends."


Is Visa required in Narita Aiport for changing terminals from T2 to T1

i will be traveling from India to Canada. i have to change flight at Narita airport. my onward flight is from different terminal. do i need visa for changing terminals at Narita from T2 to T1 Thanks


Restoring default toolbar layout in Blender 2.81

I'm using Blender 2.81, when I open old Blender files such as Blender 2.80 or older the toolbar layout in the 3D Viewport are different than the default toolbar layout when starting a new project.  This is what it looks like when I open an old Blender 2.80 file    And this is what it looks like when I start a new Blender 2.81 project    And if I open projects from Blender 2.79 or older the toolbar appears on the bottom of the 3D viewport (which is even more annoying). Is it possible to reset all the layouts to the default 2.81 layout?


Ex. $2.3.3$ in Algebraic Number Theory by Neukirch is the following:     Let $k$ be a field and $K = k(t)$ the function field in one variable. Show that the valuations $v_{\mathfrak p} $ associated to the prime ideals $\mathfrak p = (p(t))$ of $k[t]$, together with the degree valuation $v_\infty$, are the only valuations of $K$, up to equivalence. What are the residue class fields?   By valuation, I mean the exponential valuation. For instance the 2-valuation on $\Bbb Z$ is $$v(2^sn) = s , (2,n) = 1$$  Take $k = \Bbb Q$ and a non archimedean valuation $v$ on it and extend it to $k[x]$ by $$f(t) = a_0+a_1t+ \dots +a_nt^n \in K, v(f) = \min\{v(a_0),\dots, v(a_n)\}$$ and to $k(x)$ by $$v(f/g) = v(f)-v(g).$$ This is proven to be a valuation earlier on in the chapter. Which of the valuations mentioned in the problem is this equivalent to?


Ok so I'm new with blender, as I was working on my project the object disappeared. The grey colour of the object disappeared. I can still see it just not the grey colour. Think I must have clicked or pushed something because Ctrl+Z doesn't work.


I'm trying to use ARIMA process to predict the behaviour of a time series, the probleme I face is that I can't get the order of each component of ARIMA, the lag is between 0 and 1, same goes for the acf. The time series has no tendency, and I guess no seasonality.     My question is : Does this mean that ARIMA orders are all 0s, and if so, is the HoltWinters a good (or the best) solution for modelling this kind of TS ?


My Reg-Ex pattern is not working, why?  string = "../../example/tobematched/nonimportant.html" pattern = "example\/([a-z]+)\/" test = re.match(pattern, string) # None


Writing numbers that are less than two digits in length

I was told that numbers under two digits should be written out alphabetically (e.g. one, two, three, four, five, six, seven, eight, nine), and that anything two digits or over should be written out numerically (e.g. 10, 20, 100, 200, 1,400).  Is this best practice, and if so, how come? I feel that it looks better but I'm not quite sure why this is objectively better than writing them all out numerically (e.g. 1, 2, 3, 10, 20, 100 etc.)  Thanks


I have to say I have an issue with the phrase "as best I can". After all, "best" is the superlative form of "well" and does not belong in the comparative construction "as... as" - not to mention that the second "as", for some reason, is nowhere to be found. This, in my view, is akin to saying: "I would be glad to help you as most I can" instead of "as much as I can" ("most" being the superlative form of "much"). Is this simply a widespread error (much like the now-ubiquitous and "the reason... is because") or has it become an idiom - and if so, when did this happen? The easy way out, of course, is to avoid the construction entirely - which is what I usually find myself doing - but I was wondering if anybody out there had similar qualms about using this phrase.


Diophantine equation with a prime number

Suppose $m,n$ are integers and $p$ is a prime number. Find $(p,n,m)$ if $m^2-3mn+n^2p^2 = 12p$.  I have tried to use the quadratic formula on m,n,p but the three turned to be really messy. Also I tried to factor and take advantage of the fact $p$ is prime but that didn't really help.


How is wifi used to detect network location?

On my iPhone, when WiFi is turned off and I use GPS/Navigation apps, the phone suggests that I should turn on WiFi for improved location accuracy. If I have WiFi turned on and am not connected to a network, this message doesn't appear.  How's the mere turning on of WiFi radio helping estimate my location? I can understand how it works with the network radios (cell towers, triangulation etc.) but how does the WiFi radio help?


How to sort multi-dimensional arrays by value without loop in PHP

I try to find any solution with sort multi-dimensional arrays, but don't see anything match my requirement.  Here is my example that I want.  I want to sort below array by "views" DESC  $arr = array( 0=>array(     'id'=>11,     'views'=>10,     'title'=> 'html' ), 1=>array(     'id'=>12,     'views'=>4,     'title'=> 'Java' ), 2=>array(     'id'=>13,     'views'=>100,     'title'=> 'Boostrap' ) );   to  $arr = array( 0=>array(     'id'=>13,     'views'=>100,     'title'=> 'Boostrap' ), 1=>array(     'id'=>11,     'views'=>10,     'title'=> 'html' ), 2=>array(     'id'=>12,     'views'=>4,     'title'=> 'Java' ) );   without loop in php.  How can I do this.


Why is this algebraic curve irreducible?

I have found this in a book:    but I don't know why the curve $x^m-y^n=0$ is irreducible when n, m are coprimes.  Can someone help me?


I want to be able to run a function that is passed by name from a data attribute on the HTML side. I've tried the following below.  HTML:  <div class="generic-select" data-help-on-shown="genericFunction" >           </div>   Javascript:  function genericFunction() {     console.log("generic function called"); }   Other Javascript (separate file):  //stepEl is correct divider from above var genFunction = typeof (stepEl.data("helpOnShown")) === "undefined"                     ? null                     : stepEl.data("helpOnShown");  //this prints "genericFunction" as expected console.log("genFunction = " + genFunction);  if (genFunction) {     genFunction(); //gives error! }   However, this gives me an error. Is there a way to call a function by a string name?


How do I load a third party PHP library?

I have a third party php library which I would like to use in a module. How do I do that in Drupal 8? In drupal 7, I have done things like the following code, but libraries_get_path() doesn't exist in Drupal 8, and I'm not exactly sure how things change, not that we use namespaces (of which I am a beginner).  require(libraries_get_path('twitter-api-php') . '/TwitterAPIExchange.php');   And, where should I place my library? Should I create a new libraries directory and put it in the root, just like modules and themes are now in the root?


Difference of "as/like in the previous week"

Does the following correctly express the difference between "as" vs. "like" in this context?     As in the previous week, Jimmy climbed the tree.   Jimmy climbed the tree and he also did it one week earlier.     Jimmy climbed the tree like in the previous week.   Jimmy climbed the tree and he did it the same way one week earlier.


Invertibility of an operator $T$ if $\|I-T\|<1$

Let $X $ be a Banach space $(X,\|.\|)$ with $\dim(X)=\infty $ and $T\in B(X) $.   Suppose that $\left\| I-T\right\| < 1$. Show that $T^{-1}\in B\left( X\right)$ and $\left\| I-T^{-1}\right\| \leq \dfrac {\left\| I-T\right\| } {1-\left\| I-T\right\| }$.


All-lowercase questions are 50 times more common than all-caps questions, and are often low-quality questions. Let's block them.

First, someone  blocking all-caps questions.  This was declined.  The decliner seemed to feel that the problem was too rare to bother with. Well, all-lowercase questions are 50 times more common than all-caps questions.  Stack Overflow gets only about 100 all-uppercase questions per year; see .  Yet it gets about 5,000 all-lowercase questions per year; see . (These statistics are for Stack Overflow only; the rest of our network wasn't considered.) All-lowercase questions are often of poor quality.  Let's block them. Note:  If you disagree with my idea, it would be helpful if you could please tell me why you disagree. P.S.  This idea is modified and adapted from  by stack exchange user Gilles.  My dear sir Gilles, I thank you.


How do you get the cell size of a GRASS raster in QGIS? QGIS has properties, but no raster cell size.


Do I really need to replace my helmet every 2-3 years if it hasn't been in a crash?

OK, I know from the top answer here: , that I should buy a new helmet every 2-3 years, even if it hasn't been in a crash and shows no signs of damage.  But can someone explain to me why this is so? I'm not trying to be a cheapskate, but just want to know why the helmet would degrade just with regular wearing? Do motorcyclists replace their helmets every 2-3 years too?  And don't tell me that this is what the helmet manufacturers recommend. Of course they will say it should be replaced even if there is no visible damage. Reminds me of the adage: "Never ask a barber if you need a haircut".  Appreciate any input/insights you can give.


After you define a command using \newcommand, is it possible to undefine it?  My motivation is that I'm writing a thesis, where each chapter is in a separate source file. Some chapters define their own commands that are used nowhere else, so I'd like them to be visible only within that chapter.   I'd therefore like to be able to do something like:  \chapter{Some Chapter} \newcommand{foo}{...} ... % chapter body \forgetcommand{foo} % end of chapter   Is there anything like the fictitious \forgetcommand macro above?


I would like to make a macro to easily create new Classes that derive from the same base class with different name and slightly different behavior.  I already have    class FactoryBonusModifier { public:    /// Function to overload    virtual BonusModifierAbstract* createBonus() const = 0; protected: };  #define DEFAULT_BONUS_FACTORY_DECLARATION(FactoryName)      \ class Factory## FactoryName : public FactoryBonusModifier   \ {                                                           \ public:                                                     \     virtual BonusModifierAbstract* createBonus() const;     \ };  #define DEFAULT_BONUS_FACTORY_IMPLEMENTATION(FactoryName)                 \     BonusModifierAbstract* Factory## FactoryName::createBonus() const    \     {  return new FactoryName();  }   DEFAULT_BONUS_FACTORY_DECLARATION(BonusModifierGoThroughWall);   and the implementation part writen in the cpp.  I want to know if I can have a macro that would build an enum and an array of these new classes with as little copy/paste possible.  In the end I want to have something like  enum BonusType{ Bonus1, Bonus2, ..., Nb_Bonus };  FactoryBonusModifier* factories[Nb_Bonus] =  {     new FactoryBonus1(),     new FactoryBonus2(),     ..., }


Debugging scripts, what is the difference between -x to set -euxo pipefail?

The main way I know to debug scripts is adding -x to the shabang (#!/bin/bash -x).  I recently came across a new way, adding set -euxo pipefail right under the shabang, as in:  #!/bin/bash set -euxo pipefail   What is the main difference between the two ways of debugging? Are there times you would prefer one above the other?  As a freshman, , I couldn't extract such conclusion.


I am not new to \XeTeX but new with using formulas. For me it would make sense to display the formulas in monotype (\ttfamily). Does it make sense to do that? How can I do that?  % math.tex \documentclass{scrreprt} \usepackage{xltxtra} \defaultfontfeatures{Mapping=tex-text} \usepackage{polyglossia} \setdefaultlanguage[spelling=new]{german}  \usepackage{amsmath}  \begin{document} text \(-1 \leq r \leq +1\) ist zu ende \end{document}


Include managed static resource in Vf page

I have installed a managed package that has some static resources along with other features. I want to include a static resource to my vf page, but i get an error message: "Error: Field $cscfga__Resource.jQuery_min does not exist. Check spelling" I declare the static resources as follows: <apex:includeScript value="{!$cscfga__Resource.jQuery_min}" /> <apex:includeScript value="{!$cscfga__Resource.cs_messaging}" />   And i have checked that spelling is correct. What could be going wrong?


This describes a certain natural process that takes 15 weeks  It describes what a certain component looks like at some point in time during a naturallly occurring process   What I don't get is if it means it appears this way starting in the third week or after ?  Here's the full sentence  "The malleus first appears as a cartilage model from the third week"  Thanks again for you support guys


Very slow download speed on Ubuntu 20.04 vs Windows 10

I have an Windows 10 and Ubuntu 20.04 in dual boot and i have a big problem with internet speed on Ubuntu.   I use  to test my speed connection and on Windows i have 800+ Mbps Download and 500+ Mbps Upload, but on Ubuntu i have 40+ Mbps Download and 500+ Mbps Upload. I try different settings like disabling ipv6, use another dns, etc.  The difference is to big, and if i try do download something on Ubuntu, or to update packages it took to long time.  What should i do to increase my speed on Ubuntu? I also disabled power saving  Ubuntu Download Speed 40+ Mbps  Ubuntu Upload Speed 500+ Mbps  Windows Download Speed 800+ Mbps  Windows Upload Speed 500+ Mbps  So, the only issue is with download speed. If i try to download something, on Windows is instant, on Ubuntu take very long, hours sometime when on Windows take 2-3 minutes.  I don't use Wifi, i use wired connection (cable)  lspci -knn | grep Eth -A3  09:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)     Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [17aa:3831]     Kernel driver in use: r8169     Kernel modules: r8169 0a:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM951/PM951 [144d:a802] (rev 01)


How to check the extension of a filename in a bash script?

I am writing a nightly build script in bash. Everything is fine and dandy except for one little snag:   #!/bin/bash  for file in "$PATH_TO_SOMEWHERE"; do       if [ -d $file ]       then               # do something directory-ish       else               if [ "$file" == "*.txt" ]       #  this is the snag               then                      # do something txt-ish               fi       fi done;   My problem is determining the file extension and then acting accordingly.  I know the issue is in the if-statement, testing for a txt file.    How can I determine if a file has a .txt suffix?


How to use siunitx and tabularx together?

I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg.  \begin{tabular}{ p{1.5cm} S S S } bla & 1.23 & 4.5 & 67.89 \tabularnewline \end{tabular}   and that works perfectly fine.  Now I would like to have this table span a specific width, or rather to have several tables to have the same width. For this I would normally use tabularx  \begin{tabularx}{\textwidth}{ p{1.5cm} X X X } bla & 1.23 & 4.5 & 67.89 \tabularnewline \end{tabular}   Now, is there a way to combine the two? To have the number formatting and alignment features of siunitx inside an automatically resizing table?


Sum of Exponential and Gamma Distributions

I have been learning sums of distributions and understand that the sum of exponential distributions with parameter B is a gamma distribution with parameters a=1 and B.  However, I need to figure out: What is the sum of X, an exponential distribution with parameter 0.2, and Y, a gamma distribution with parameters 3 and 0.2. I THINK it would be a gamma distribution based off of the previous knowledge but cannot find anything on this or how to do this.


Clicking leave closed shows the reopen pop-up

This is rather difficult to describe with fancy pictures with red circles but it's easily reproducible.  Whenever I click Leave Closed in the re-open queue on MSO the "nominate this question for re-opening" pop-up appears. I normally press escape out of shock and a leave closed vote is recorded.  This is the latest review it's happened to me on:   You can also test it on , I clicked reopen this time and a leave closed vote was recorded but I also got a red popup stating that an error had occurred.  This is also occurring when the Edit & Reopen button is clicked, the edit box opens for a second before being overridden by the popup.


Finding number of ways of selecting 6 gloves each of different colour from 9 pair of gloves?

There are nine pairs of gloves each of different colors in how many ways can we arrange six gloves such that each is of different color? I tried like this : First number of ways in which we can select 6 colors out of nine it is $^9C_6$  ways. Then we can arrange it in 6! ways and also we can select either of two gloves out of the 6 in $2^6$ ways. Hence required number of ways should be $^9C_6$  .$2^6$.6!


How to remove chatter feeds based on the page layout

I have removed the chatter fields by using " feed tracking" option but i want to remove the chatter feeds based on the page layout (feed should be present for one layout , should not be present for another layout) . Is it possible in salesforce ?  I just cloned an existing layout and didnt check the "Enable feed" check box . But still i am able to see the feed


Why does the wind direction vary locally?

If the air is flowing with the earth, as it rotates, how do we feel a breeze and strong winds at times, as everyone has experienced, the wind shifts as if from many directions.


Prove that $x-1$ is a factor of $x^n-1$.   My problem: I already proved it by factor theorem† and by simply dividing them. I need another approach to prove it. Is there any other third approach to prove it? If yes please share it. I will be very thankful to you.  Thanks.    †: Factor Theorem: $x -r$ is a factor of $f(x)$ if and only if $f(r) = 0$.


UK visit visa company sponsor support documents

I am applying for a visit visa to the UK to attend a competition, I have an invitation letter for it. A company is willing to sponsor me, but I need info on what documents are needed.  I have an idea of docs needed if its a person: 1. bank statement of last 6 months 2. letter from bank manager 3. Signed affidavit  I need an idea of what is needed for a company.


How to check if a directory exist, within a shell script?

What command can be used to check if a directory does or does not exist, within a shell script?


Show that if $\sum_{n=1}^{\infty}\lvert\lvert Te_n\rvert\rvert^2<\infty$ for an orthonormal basis $e_n$, then $T$ is compact

Show that if $e_n$ is an orthonormal basis for a Hilbert space $H$, and $T:H\to H$ is a bounded linear operator that satisfies $$\sum_{n=1}^{\infty}\lvert\lvert Te_n\rvert\rvert^2<\infty$$, then $T$ is compact. I need to do this by defining a sequence of finite rank operators $T_k$, and showing that $\lvert\lvert T-T_k\rvert\rvert\to 0$, so I know my $T_k$ will probably be of the form $\sum_{n=1}^k...$ and need to end up with something like $\lvert\lvert T-T_k\rvert\rvert\leq\sum_{n=k+1}^{\infty}\lvert\lvert Te_n\rvert\rvert^2\to0$ but I've tried loads of things for $T_k$ such as $T_k(x)=\sum_{n=1}^k\langle x,e_n\rangle Te_n$ but couldn't get anywhere. I have that $\lvert\lvert (T_k-T)x\rvert\rvert^2=...=\langle\sum_{k+1}^\infty\langle x,e_n\rangle Te_n,\sum_{k+1}^\infty\langle x,e_n\rangle Te_n\rangle$ and I tried to simplify this much more but since $Te_n$ aren't orthogonal it's more difficult than usual


ADC over-voltage input protection while keeping accuracy?

i just want to get the idea for the input voltage protection for a fully differential ADC.  The analogue voltage inputs supposed to be 0-5v, but someone being careless could plug a higher voltage (up to probably around 20v) by accident and blow the ADC.   I have seen zener regulation/clamp circuits, but upon trying them realized that they of course produce a voltage drop. The voltage needs to be unaltered from the one the user puts in, so this does not work for me.  So, what I need is a way to protect my ADC inputs from over voltage as high as ~20VDC or more but still be able to accurately read a 0-5V nominal analogue signal without altering the voltage reading.  and my power supply for the board is 5V, so i only want to limit the input signal to 0-5V. yeah, of course the Voltage must be above 0.  besides, i have only found one overvoltage/undervoltage from TI , It is  , but the range of the protection voltage is 3 to 6.9. it's not suitable for me.   so , is there any programmable VOP and UOP chips that i can use? the ADC that i use is ADS5272  Any suggestions? Let me know! Thanks a bunch in advance!  i posted the Zener diode grafic  see that , from -Vz to Vf it is not linear, and i thing it must have an effect on the input singal for ADC


How to declare a structure in a header that is to be used by multiple files in c?

If I have a source.c file with a struct:  struct a {      int i;     struct b {         int j;     } };   How can this struct be used in another file (i.e. func.c)?  Should I create a new header file, declare the struct there and include that header in func.c?  Or should I define the whole struct in a header file and include that in both source.c and func.c?  How can the struct be declared extern in both files?  Should I typedef it? If so, how?


Force figure placement inside theorem-like environment

I would like a figure (including a Tikz picture) to appear inside a theorem-like environment (the point is that I need a caption for the figure).  Even using the option [H] with the float package the figure does not behave so.  Is there an easy way of accomplishing this?  Thanks


How differently will two bikes handle that have 1 degree difference in their head tube angle?

I am looking to buy a new mountain bike and comparing two models with different head tube angles.  How big of difference does 1 degree of slackness make?  Would an intermediate rider be able to feel the difference?    Both bikes appear to be fairly slack.      has a 67 degree headtube angle.    has a 68 degree headtube angle.


CUDA ERROR: Launch failed in cuCtxSynchronize()” and “cuCtxCreate: Launch failed” when Rendering in Cycles using GPU

When I render my image, it stops, giving the error message "CUDA ERROR: Launch failed in cuCtxSynchronize() Line 1372", then when I try to start the render again, I get the error message "cuCtxCreate: Launch failed"  all the answers I have seen say to update your graphics card driver, however, mine is up to date. I have a GTX1080 with 4gb of RAM.


What is the best position for power supply unit?

I would like to buy a new computer case. Last time I bought a computer was in 2008 and many things have changed up to day. Many new computer cases have power supply unit (PSU) placed down, at bottom. I'm thinking about buying some of those cases, but I'm not sure about this: if PSU is placed on the bottom it can't take away hot air from the case and pump it out, right?  All my PC parts are silent - CPU (E8200, placed below 12 cm Nochtua fan of PSU) has heat-pipe cooler with Nochtua fan spinning at only 800 rpms, GPU has cooler powered by 7 V instead 12 V. That's why I don't want to have to place another fan to pump out hot air instead of PSU placed on top. That might make some noise.  So I ask someone more experienced: if I buy a computer case with PSU placed down, do I have to place some fans to pump out hot air?


I'm playing around with applying texture diffuse, normal maps and speculars to 3d models. So I have downloaded a premade one and tried to play around with it. However i can't seem to apply the textures properly to the model.   I found it here   Everything is in the zip file, just need some help with applying the texture, normal & specular in blender. Thanks.


how to remove string redundant in python

I need your help, can anyone tells me that what this part of code is doing?  if line[-6:] == '[edit]':             state = line[:-6]   and   town = line[:(line.index('(')-1)]   the whole code is :     def get_list_of_university_towns():     '''Returns a DataFrame of towns and the states they are in from the      university_towns.txt list. The format of the DataFrame should be:     DataFrame( [ ["Michigan", "Ann Arbor"], ["Michigan", "Yipsilanti"] ],      columns=["State", "RegionName"]  )      The following cleaning needs to be done:      1. For "State", removing characters from "[" to the end.     2. For "RegionName", when applicable, removing every character from " (" to the end.     3. Depending on how you read the data, you may need to remove newline character '\n'. '''              with open('university_towns.txt') as file:         data = []         for line in file:             data.append(line[:-1])  #     print(data)     state_town = []     for line in data:         if line[-6:] == '[edit]':             state = line[:-6] #             print(state)         elif '(' in line:             town = line[:(line.index('(')-1)] #             print(town)             state_town.append([state,town])         else:             town = line.rstrip()             state_town.append([state,town]) #     print(state_town)     ans = pd.DataFrame(state_town, columns = ['State','RegionName'])      return ans get_list_of_university_towns()


I have a question I'm trying to answer. The question is      Let $(G, \circ )$ be a group where $a\circ a =e, \ \forall a\in G $. Show that $(G, \circ )$ is abelian. [Here $e$ is the identity element.]   How would you do this?


How to create a Rectangle class in Java?

I have this problem where I am supposed to write this program where using a Point class to create points, then create a Rectangle class with methods like area,perimeter, and pointInside... My code is always resulting in a Null Pointer Exception and I don't know why. class Point {    int x, y;     Point() {       x = y = 0;    }     Point(int x0, int y0) {       x = x0;       y = y0;    }     public String toString() {       return "(" + x + "," + y + ")";    } } class Rectangle {    Point p1,p2;      Rectangle(int x1,int y1,int x2,int y2)    {      x1 = p1.x;      y1 = p1.y;      x2 = p2.x;      y2 = p2.y;    }    Rectangle(Point p1,Point p2)    {       this.p1 = p1;       this.p2 = p2;    }      public int area ()    {      int width = p2.x - p1.x;      int height = p2.y - p1.y;      int area = width * height;      return area;    }    public int perimeter()    {      int side1 = p2.x - p1.x;      int side2 = p2.y - p1.y;      int perimeter = side1 + side2 + side1 + side2;      return perimeter;    }    public boolean pointInside(Point p)    {      if ((p.x >= p1.x && p.x <= p2.x) && (p.y >= p1.y && p.y <= p2.y))      {        return true;      } else {        return false;      }    }  }  class TestRectangle {    public static void main(String[] args) {       Point a = new Point(1,1);       Point b = new Point(2,2);       Point c = new Point(3,4);       Point d = new Point(8,2);        Rectangle yellow  = new Rectangle(a, c);       Rectangle orange  = new Rectangle(2, 3, 9, 6);       Rectangle green    = new Rectangle(3, 4, 4, 5);       Rectangle blue    = new Rectangle(5, 1, 6, 5);       Rectangle red = new Rectangle(7, 3, 9, 5);        System.out.println("Perimeter of the yellow rectangle = " + yellow.perimeter()); // 10       System.out.println("Perimeter of the orange rectangle= " + orange.perimeter()); // 20        System.out.println("Area of the yellow rectangle = " + yellow.area()); // 6       System.out.println("Area of the orange rectangle = " + orange.area()); // 21        System.out.println("Point B inside yellow? " + yellow.pointInside(b)); // true       System.out.println("Point D inside yello? " + yellow.pointInside(d)); // false      }  }


Biber 1.9, working with Biblatex 2.9a on Yosemite, suddenly not producing .bbl file

Out of the blue, I'm getting this error for all my .tex files with citations (even those which ran smoothly just a couple of days ago). I typeset them on another MacBook with the same distribution and all updates and they work just fine. I've tried uninstalling and reinstalling my TeX Distribution but I keep getting the same error.  INFO - This is Biber 1.9 INFO - Logfile is 'siÌlabo_lyta_1.blg' read_file '/var/folders/g9/qcll94p57w985k2gtngk3dcr0000gn/T/par-687966616e7465/cache-a3cdad92316c60c9c5179d80d6bb51a7a024393c//inc/lib/Biber/LaTeX/recode_data.xml' - sysopen: No such file or directory at /var/folders/g9/qcll94p57w985k2gtngk3dcr0000gn/T/par-687966616e7465/cache-a3cdad92316c60c9c5179d80d6bb51a7a024393c/bda77484.pm line 112. Latexmk: Failed to find one or more biber source files:   NONE Latexmk: Errors, so I did not complete making targets Collected error summary (may duplicate other messages):   biber sílabo_lyta_1: Could not find all biber source files for 'sílabo_lyta_1' Latexmk: Use the -f option to force complete processing,  unless error was exceeding maximum runs of latex/pdflatex.


How do I give myself a specific sword using commands?

I've heard that there is a command that gives me the ability to give myself a sword with Sharpness 32767 and Knockback 32767. How do I use commands to give myself said sword on a server that uses the Essentials mod?


How can I remove a child node in HTML using JavaScript?

Is there a function like document.getElementById("FirstDiv").clear()?


Split a list with n*n elements into n lists with n elements in every list

I am trying to come up with a function that takes an input x and split a big list with the number of elements x*x into x smaller lists with x elements in every list E.g:   big_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]  def split_list (x): big_list = pairs (x) small_list = [big_list[0:x] for x in range (x)]   My output has to be:   [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]    but I'm not getting it, what do you recommend ?


I only know "towards" and always use it before today: "move towards", etc. But today, I come across toward, after referring the dictionary, I find I can't differentiate them clearly. What is the difference between "toward" and "towards"? How can use them?


Size of VARBINARY field in SQL Server 2005

I am trying to determine the size in bytes of the contents in a VARBINARY(MAX) field in SQL Server 2005, using SQL. As I doubt there is native support for this, could it be done using CLR integration? Any ideas would be greatly appreciated.


Compatibility issues between package `tkz-base`, `inputenc` and `babel`

I would normally work with [greek,russian,frenchb,english]{babel} which requires [utf]{inputenc} and am getting problems with some of the tkz-base macros. The error messages are incoherent so I hope the MWE below will do the talking by uncommenting either one or the other of the babel invocations. Examples 3. and 4. are straight out of Alain Matthes' tkz-base Manual:  \documentclass{article} % RN. 3 Oct 2017 %======================= \usepackage{comment} % %\usepackage[utf8]{inputenc} %\usepackage[greek,russian,frenchb,english]{babel} %     OR even only: %\usepackage[frenchb,english]{babel} % \usepackage{tkz-base} \begin{document} 1.\\ \begin{tikzpicture} \tkzDrawSegment[color=red,thick]({0,0},{2,1}) \end{tikzpicture}  2.\\ \begin{tikzpicture} \tkzDrawSegments({0,0},{2,1} {0,1},{2,0}) \end{tikzpicture}  3.\\ \begin{tikzpicture}[scale=1] \tkzInit[xmax=6,ymax=6] \tkzGrid \tkzSetUpPoint[shape = circle,color = red,size = 8,fill = red!30] \tkzDefPoint(-1+1,-1+4){O} \tkzDefPoint({3*ln(exp(1))},{exp(1)}){A} \tkzDefPoint({4*sin(FPpi/6)},{4*cos(FPpi/6)}){B} \tkzDefPoint({4*sin(FPpi/3)},{4*cos(FPpi/3)}){B’} \tkzDefPoint(30:5){C} \tkzDefPoint[shift={(1,3)}](45:4){A’} \begin{scope}[shift=(A)] \tkzDefPoint(30:3){C’} \end{scope} \tkzDrawPoints[color=blue](O,B,C) \tkzDrawPoints[color=red,shape=cross out](B’,A,A’,C’) \tkzLabelPoints(A,O,B,B’,A’,C,C’) \end{tikzpicture}  4.\\ \begin{tikzpicture}[scale=1] \begin{scope}[rotate=30] \tkzDefPoint(2,3){A} \begin{scope}[shift=(A)] \tkzDefPoint(90:5){B} \tkzDefPoint(30:5){C} \end{scope} \end{scope} \tkzDrawSegments[color=blue](A,B B,C C,A) \tkzDrawPoints(A,B,C) \tkzLabelPoints[above](B,C) \tkzLabelPoints[below](A) \end{tikzpicture} \end{document}


How can I make a 10 minute and 15 minute buzzer timer?

Basically, I have a big project going on in my campus which we were told to make digital counter. So when the timer counts reach at 10 minutes (by this case, the timer counts is shown by 7-segment display), it will produce alarm sound or buzzer sound, and when it continues and reach to 15 minutes, exactly doing the same by how the timer goes to 10 minutes. Any ideas guys on how to make the circuit? I'm kinda stuck here. (We aren't allowed using an IC NE555, but we are told to use 7-segment display, logic gates IC like IC 7408, any basic IC. And I'm on Digital Electronics course, I'm still learning about basic logic gates, boolean algebra, XOR and XNOR gates, multiplexer and duplexer. My reference book is Digital Electronics, a practical approach with VHDL by William Keiltz)


How do I get a complete list of reputation changes for all sites at once?

I try to get access to the reputation changes for all sites to program an Add-on, that displays them.  The achievement notification list at the top shows the last reputation changes in a list, but how can I get this list separately?   Is there a secret link?  The link to global reputation changes only shows a chart:   In case, there is no such list how is the achievement list generated?


Novel from a couple of decades ago dealing with wormhole powered space flight

Read this novel years ago. Starts off with a one manned space flight to another solar system to do the final testing of a wormhole generator. The test was one way trip. The humans did not realize aliens lived in the system and the test wiped them out. As they died they sent a psychic message out to universe telling all aliens the humans had killed them.  Earth was dying from ecological disaster and they built ships and as they left the solar system they wiped out this system. I remember that the rest of book deals with generations of humans trying to find habitable worlds and colonizing them. But every time they grew large enough to be noticed by aliens they would be wiped out. I remember that a lot of the rituals in the training of humans in space was done through song. And every few years the humans would have an enclave and the ships would all join together in space to share. Any ideas as to title. Thank you.


\parindent not influencing the first paragraph

I have a nasty issue with my thesis. I want to accommodate space before paragraph with \setlength{\parindent}{<insert number and unit>}. When I do this without a title, I get through just fine, but when I include the title, things start go wrong. Here is the MWE:  \documentclass[12pt]{article}  \usepackage{mathtools} \usepackage{amssymb} \usepackage[T1]{fontenc} \usepackage[UTF8]{inputenc} \usepackage[slovene]{babel} \usepackage{fancyhdr} \usepackage{caption} \usepackage{parskip} \usepackage{tabu} \usepackage{graphicx} \usepackage{hyperref} \usepackage{enumitem} \usepackage{url} \usepackage{float}  \usepackage{blindtext}  \setlength{\parindent}{1cm}  \makeatletter \setlength{\@fptop}{0pt} \setlength{\@fpbot}{0pt plus 1fil} \makeatother  \pagestyle{fancy} \lhead{blah} \rhead{\leftmark} \cfoot{\thepage}  \begin{document}     \begin{titlepage}         \clearpage         \thispagestyle{empty}         \title{Blah blah}         \author{blah}         \date{12. april 2017}         \maketitle         \tableofcontents         \thispagestyle{empty}     \end{titlepage}      \section{blah 2}     I have a paragraph. Now, why won't this paragraph move. I don't know, I hope you do. Now let's see.      Oh dear, still the same problem. I want the first paragraph to have the same space too! What can I do? \end{document}   Now, for many people, this may seem just right, but not for me. I want a space before the first pargraph as well. I'm guessing that the \parindent function itself is built so that it doesn't have an effect on the first paragraph (my guess is pretty solid as I read multiple PhD theses in such format). But my aesthetic sense disagrees. Can anyone accommodate the \parindent definition so it will suit my needs (I don't know how to do it myself). Please help me, I want my thesis to look as good as possible.


Waiting for process started by bash to end and get its PID

I have a bash script that starts a java application using an until block.  It gets the exit code from the java application and if it gets a known shutdown exit code the bash script exits, otherwise, it restarts the java application  $CMD=java -jar program.jar until $CMD; do   EXIT=$?   if [ $EXIT == 2 ]   then        exit   fi   sleep 10 done   This works fine, but I've got another application that needs to be aware of the pid of the process, up to this point, i've been using pgrep, but the powers that be don't like this idea.  They want me to write the PID to a pid file.  How can I modify my script so that it writes the pid to a pid file and removes it when it ends?  Thank you.


How can I prove algebraically the sums of binomial coefficients formula?

I want to know a simple way to prove $$\sum_{k=0}^n {{n}\choose{k}} = 2^n.$$ Our teacher only gave us the combinatorial proof.


How to get a footnote into a caption of a figure? I have look at examples on the forum and I tried two: \begin{figure}   \centering \label{position} \includegraphics[width=\textwidth]{../img/f.png} \caption[Caption for LOF]{Real caption\footnotemark{45454}} \footnotetext{ffff} \end{figure}  Here I do not know where to write a text of the caption, and it is not printed at the bottom of the page. \begin{figure}   \begin{minipage}{\textwidth}     \includegraphics[width=\textwidth]{../img/fig.png}     \caption[Caption for LOF]%       {Real caption\footnote{blah}}   \end{minipage} \end{figure}  Here, there is a footnote at the bottom of the page but with a footmark a instead of number. I tried to set it by \renewcommand*{\thefootnote}{\arabic{footnote}}  but it does not help.


i want to clear my concept of alligation. a vessel is filled with liquid, 3 parts of which are water and 5 parts are syrup. how much of the mixture must be drawn of and replaced with water so that the mixture may be half water and half syrup?? ti i solved this question. and i got my correct answer 1/5...but i am confused how it works in allegation to get ratio of two elements using one elements in question??  like  i have used this method and got my ratio 5:1 but dont know how????? plz help....thanks


Return two rows from SQL table with a difference in values

iam trying to return 2 rows from table that have a difference in values, not being an SQL wise man i am stuck any help would be appreciated :-)  TABLE A:  NAME    DATA Oscar   HOME1 Jens    HOME2 Will    HOME1 Jeremy  HOME2 Al      HOME1   Result, should be 2 random rows with a difference in DATA value  NAME   DATA Oscar  HOME1 Jeremy HOME2   Anyone?


Convergence in measure, if $f_n \to f$ in measure then $f_n^2 \to f^2$ in measure

Suppose $f_n$ is a sequence of measurable functions converges to $f$ in measure. I need to prove that $f_n^2$ converges to $f^2$ in measure. But I got stuck here.


Java request.getParameter() value in if statement

I am experiencing some strange issues with request.getParameter("param") in Java.  I am trying to test the returned value to set a boolean, nothing fancy. :)  String param = String.valueOf(request.getParameter("param")); boolean paramIsAll = false; if (param == "all"){paramIsAll = true;}  System.out.println("-"+ param +"-"+ String.valueOf(paramIsAll));   My output is: -all-false  ???


jQuery: Blur function is not calling on each dynamically added row

I am newbie to jQuery.I am trying to call the Blur function on each dynamically Added row and send the values of each row of both text box to PHP.For first row, it works but dynamically added rows, its not working. My Code is as follows:    HTML and Jquery:   <!doctype HTML>

     Name	     Email	           Add More

     <input name="" type="text"  id="co_name" value="" size="17%"/>	     <input name="" type="text" id="co_qty" value="" />

   blur.php  $var=$_POST['title']; $var1=$_POST['title1']; echo $var."Success!".$var1;    I am not getting it. Please do suggest me.Thanks in advance.


I have to calculate a limit that I can't see how as my homework

Alright so this is my first post in here, and it is my last hope for solving my problem.  I searched on the internet, in books, anywhere and I couldn't find a way to solve this.  I have a series which looks like this:  $S_n = a_1 + a_2 + a_3 + .... + a_n$  Where $a_n = {n\over (n+1)!}$  I have to calculate $\lim\limits_{n \to \infty} S_n$  How should I approach this problem? I don't know how to solve it at all.


I'm working on a project that requires a simple search engine. The idea is not to use plugins like "autocomplete" and "jquery ui" but to exploit the ":contains()" jQuery method.  Now, this function does exactly what I'm talking about.  $('#search').on('keyup',function(){      var v = $(this).val();      $('.element').hide();     $(".element:contains('"+v+"')").show();   });   The problem is, if a term is called "Foo" and I searching for "foo", the search engine do not returns any results... rightly. So I ask you if there is a way to solve this problem... using only jQuery.


Visa requirement for a tourist to South Korea from Australia

One of my friend want to visit South Korea as a tourist from Australia. What is the documents required to apply for tourist visa?


CommonMark regression: image embed exclamation sign syntax broken after  tag

I ran into a regression change in the post formatting engine . If you try to embed an image using the exclamation sign syntax ![foo][bar] and the paragraph starts with a <p> or <hr> tag, the image formatting code is shown as literal text, not as an image. Example: This image is in a bare paragraph and shows up:  This image is after a <p> tag and doesn't show up: ![(a hand-drawn red circle as a test image)][1] As a possible workaround, you can use an <img> tag:  I found this when I was writing .  The image embedded in the post , but .  This confused me thoroughly, because I was trying to edit a part of the post other than the image. Apparently , but it doesn't seem to be mentioned on Meta SE yet.


I am trying to find out if this question is correct.      Did Wang Bo used to be awkward?   Should I write "use to be" instead of "used to be," or is "used to be" correct in this sentence?


I built a NPC complex out of demonite ore!

None of the NPCs will move in, is it because of the ore? The building I have right next to it had a NPC in it already and now it is vacant. Is this also because of the ore?


Let $X_1,X_2,...$ be a sequence of i.i.d Bernoulli random variables   with parameter $p$. Let $N$ be a Poisson random variable with with   parameter $\lambda$ which is independet of the $X_i.$      (a) Find the probability generating function of $Z=\sum_{i=1}^{N}X_i.$      (b) Use (a) to identify the distribution of $Z$.   The pgf of a sum of i.i.d random variables is the product of their respective pgf's so:  $$G_Z(s)=G_{X_1}(s)\cdot G_{X_2}(s)\cdot...\cdot G_{X_N}(s),$$  and sice the $X_{i}$ are Bernoulli distributed with parameter $p$ we have that  $$G_Z(s)=(1-p+ps)^N.$$  I'm not sure how to proceed from here. I can't express my $G_Z(s)$ in terms of a random variable, so what should I do with the $N$?


A "things that go bump in the night"-themed short story about a man walking to a starport on an alien world?

Plot Summary/Details  The story opens with the protagonist (human male, can't remember the name) en route to the starport on a remote, sparsely-populated world.  He's currently on foot, as his vehicle broke down sometime earlier in the journey.  The central idea of the plot as the story unfolds is whether or not there is some sort of deadly alien beast waiting out there in the darkness.  Early on, the protagonist recalls the tale he heard in the local bar from a fellow he knew.    This other man claimed to have seen some horrible creature, and to have narrowly escaped said creature.  He described the sound the creature made in the darkness.  I can't remember exactly how it was described, but I do remember it was compared to something familiar (i.e., "it was like the sound of X"), and I think it referred to a scraping sound made by the alien's claws or tusks. The man then claimed that the only thing that saved him was his flashlight.  The creature apparently fears light.     As the story progresses, the protagonist struggles to keep his fears in check.  He knows the other man is know for telling wild stories, but can't quite dismiss the idea out of hand.  The tension increases as his flashlight gives out, and he must continue the journey in total darkness.  The story ends with a somewhat predictable twist.  The man is in visual sight of the starport and can hear the comforting sounds of the machinery and routine activity of the starport off in the distance.  It is at that moment he also hears the telltale scraping sound of the creature.  The end being, just a few hundred meters short of safety, the alien beast turns out to be real, and has found him.  Publication Details/Timeframe  I read this one in an anthology either in the late 1970s or (more likely) early 1980s.  The feel of the story is such that it could be a much older offering, though I can't be for certain.


US citizen born in Mexico. Do I need a Mexico passport to travel to Mexico by plane?

I was born in Mexico and I became a US citizen through naturalization. I am going to travel to Mexico for vacation. Do I need a Mexico passport to travel? Or can I just travel with my US passport?


PIR Sensor + LEDs with no additional Microcontroller

I'm thinking of building a project that would only include PIR sensors and LEDs.  Could I use a PIR sensor like this one, , to power 8 LEDs or would those 8 LEDs draw too much power for the onboard circuit of the PIR sensor? How would I wire it?  If this is possible how much voltage would I need to provide the PIR Sensor?  If it's not possible as is, is there any way I could still make this work without having to introduce a microcontroller like an arduino?


Fact 1: Any wound on a Life Fiber-infused human will automatically regenerate even if it is opened by a single blade of the Sword Scissors.  Example: Harime Nui's torso is pierced by the blade of the Sword Scissors that is owned by Ryuuko. The wound healed off as soon as the blade is pulled out. There are many scenes like that throughout the series.     (Episode 21, 21:41)  Fact 2: A wound on a Life Fiber-infused human will be prevented from regenerating only if it is cut by the two blades of the Sword Scissors, Bakuzan or an equivalent weapon at the same time.  Proof: The dialog at the beginning of episode 23.     Inumuta Houka: I figured out why Harime Nui's arms couldn't regenerate.   The Sword Scissors and Bakuzan are able to cut Life Fibers.   But for the case of strong Life Fibers, it immediately starts to regenerate from the point where it is cut off.   However, if it is cut from the both sides at the same time, it is possible to once again cut off the Life Fibers which started to regenerate.   This is the true power of the Sword Scissors that is made by Professor Matoi.   Matoi Ryuuko: Wait! Then those two Bakuzan pieces...   Inumuta Houka: ... will have the same effect.    (Episode 23, Just after the opening)  Contradiction: When Harime Nui invades Matoi Isshin's laboratory, he cuts Nui's left eye with only one blade of the Sword Scissors, but that eye of Nui never heals up. He couldn't have used both the blades, because the other blade of the scissors pair wasn't pulled out of his body until Ryuuko arrived.   (Episode 12, 07:29)  Question: Why doesn't Nui's left eye heal? It is not cut with the two blades together at the same time from both sides. It is cut with only one blade. Thus, it must be able to regenerate. But, it doesn't. Why?


Show users which posts they've already voted to close or delete on the mod tools page

The close and delete tabs of the  can get fairly cluttered, even here on MSO; I imagine it's ten times worse on SO. Could the page be modified to indicate which question(s) you've already voted to close or delete?


Python - list gets updated outside function without using "return"

I have a list which I give to a function as argument. Inside function, I'm altering the list, but I don't return the list using return. I'm running the function and print the list afterwards. Excpeted result: [] Actual result: [5] How is this possible? def foo(bar):     for i in range(2):         if bar == []:             bar.append(4)         else:             bar[0] += 1              myvar = []   foo(myvar) print (myvar)


Show that $B$ is diagonalizable if If $AB=BA$ and $A$ has distinct real eigenvalues

We were asked to prove the following:  Let $ A $ be an $n \times n$ matrix with $n$ distinct real eigenvalues. If $AB=BA$, show that $B$ is diagonalizable.   It was suggested I show that an eigenvector of $A$ is also an eigenvector of $B$. I am both having trouble doing this and failing to see how I would complete the proof after. Any help would be appreciated.  Thanks


Why do Android phones say they have 4GB storage but then cazn only use 1.6GB of it? Why is this? Is it possible to access all that other space?  If you see below it confirms how much space this phone has and how little (except for Apps) it really is using. Any advice how I can make the phone use all the available space?  Edit Its a Huawei Ascend


GitHub for Windows not working after install

Today I have installed GitHub For Windows. I had installed GitHub for Windows earlier and at that time it worked fine, but due to some reason I had to uninstall it.  Today when I installed GitHub again it installed perfectly. But after installation when I click on the icon, GitHub does not open. I checked Task Manager for processes and for some time I can see Github.exe, but after some time it disappears.  When it did'nt work I uninstalled and installed again, but the results are the same.  When I try to open it, only the loading symbols comes up.


Which stones adorned the other rings of Power?

I recall Gandalf instructing Frodo in the lore of the Ring, and he mentioned that the Nine, the Seven and the Three, each had its proper stone or gem, but not so The One. It was unadorned and round, like one of the lesser rings.  Is there any mention of the gems on the Nine and the Seven? I know about the Three Elven Rings.  In my opinion, this is not a duplicate, as the other question queries about the make and material used for the rings. The gemstones have been mentioned very particularly by Gandalf, as possibly one of the proofs towards establishing the authenticity of Frodo's ring and its significance,  and have been highlighted in the Elven rings. There has not been any mention of them in the literature commonly available.


Are Windows programs compatible with Ubuntu

I just installed Ubuntu yesterday on my Asus ux303lb and I was wondering if all the programs and files I had on my laptop while using windows (which I still have because I installed Ubuntu through a dual-boot) can be used in Ubuntu or do I have to re-install them and will applications like Ableton (a music producing app) work in Ubuntu? Thats really the only app that concerns me.


Recently, I've figured out that if I delete files from /sdcard/Download it deletes files from /storage/emulated/0/Download. And if I add the files into /sdcard/Download it duplicates them in /storage/emulated/0/Download.  So what is /storage/emulated/0/? For what purposes do we have it in our android file system?


Vmware EULA - Essentials and vSphere Standard same site

Can a company run a vSphere Essentials cluster and maintain a vSphere Standard cluster at the same time and still be in license compliance in the VMware EULA?  No requirement for all hosts to be managed by one vCenter server.


I installed Ubuntu on a second hard drive inside the computer by booting with the CD.  I now want to switch back to my main hard drive but I don't know how. When I unplug the Linux HD it goes into this black grub thingy and I don't know if my Windows got deleted because I didn't touch that HD. I don't have a Windows disk, my computer came with Windows 8. I need help please...


How to open a login,registration and forget password form in a popup programmatically?

I want to open a user login form in popup after click on user link same as under login form I have create new account link I also want this to popup.. I have used 2-3 modules like modal_form colorbox etc. Its not full-filling my need. Because I need to customize my login form.


What are the pieces of evidence that universe is expanding?

Do we have any other evidence other than red shift? Is anyone trying to disapprove inflation? Also, can red shift occur because of large distance, not only because two objects are going farther from each other?


Is there a way to setup a minecraft server that me and my friend can play on together?

My problem is that I want me and my friend to be able to play on a survival world together, but we live at different locations. I know I can visit a hosting website but I don't want to pay money because it's just me and my friend. Would there be any way for us to play together without paying any money? My problem is different from that one because we don't want to connect through LAN he is at a different location than me.


I am calculating the Fourier transform of $\exp(-t^2)$ using contour integration.  I am left with the integral $\int_{-\infty}^\infty \exp(i\omega t)\exp(-t^2)$.  Usually I would now use the residue theorem, but I cannot find the singularities. Can someone help me?


Spacing between page number and chapter heading

I am writing a chapter of my thesis in Latex, the page numbers are on top left corner which are adjusted with the chapter heading as shown in the picture :     While 2 is the page number and I need a space between 2 and Chapter 1. My code is just  \documentclass[b5paper,11pt, titlepage]{book}  \chapter{Guided Wave Based Structural Health Monitoring} \textbf{My name} \tableofcontents \newpage   when I give the chapter name shorter it works fine but when I write the complete name/title of the chapter, it makes this problem.  I am new to Latex, please help me with this problem. Thanks.


datetime2 define dates "globally" outside of \begin{document}

When using the datetime package, I could define dates "globally" like this:  \newdate{sample}{03}{09}{2016} \begin{document} \displaydate{sample} \end{document}   Can anyone tell me, how this is possible with datetime2 library because I just don't get it somehow...  Full document:  \documentclass[a4paper, 12pt, DIV=calc, headings=small]{scrreprt} %Used packages \usepackage[UKenglish]{babel} \usepackage[utf8]{luainputenc} \usepackage{datetime}  %Other definitions \pagenumbering{arabic}  \newdate{sample}{31}{01}{2017}  \begin{document} \displaydate{sample} \end{document}


How can I prove that $\sum_{n=1}^\infty \frac{1}{n(n+1)} = 1$?

How can I prove that $$\sum_{n=1}^\infty \frac{1}{n(n+1)} = 1 \,\,\, ?$$  I do know a way to prove this (see my answer) but I'm curious to know what other approaches could be taken in dealing with it.


$0 < a_0 \leq a_1 \leq \cdots \leq a_n$, show $ p_n(z) = a_0 z^n + a_1 z^{n-1} + \cdots + a_{n-1} z + a_n = 0$ has no root in $|z| < 1$

Assume $0 < a_0 \leq a_1 \leq \cdots \leq a_n$, show that equation   $$ p_n(z) = a_0 z^n + a_1 z^{n-1} + \cdots + a_{n-1} z + a_n = 0 $$   does not have root in $|z| < 1$. Here $z$ is complex.   I started by considering the case in which $n = 2$, and tried to use the triangle inequality, while no progress was made. Any hints will be appreciated.


Answers to the questions I am interested or commenting?

There are questions asked on Stack Overflow which have yet to be answered. Sometimes I am facing the same problems, or I am interested in knowing the answers to these questions. For this I need to scroll down all questions one by one from the "Questions" part.    Is there any way to keep log of such questions in my own account so that I can see that question and answer from my own account?  Also how can I keep track of the answers (or discussions) of questions on which I have commented?


Use of "Have" in questions "Do you have" or "Have you"

I've seen it on TV that a guy asking another man, "have you a map?"   If I were him, I would probably say, "do you have a map?"   I would like to know what grammatical rules it followed in this case.


my application is running over jdk 1.8 32 bit, windows 7. Recently we had few windows and mcafee updates. I am using - xmx 1400m and - xms 1400m. Once the updates have been installed, I started to have problems with running the application. Jvm says: VM Could not reserve enough space for {size}KB object heap  Note that every 6 or 7 times it starts the application without error.


There is a operation of terminal (osx) called say. If I type say hello, the terminal uses voice control to say hello.   I want to access this command from my ruby script. Any idea how I can say hello from my ruby script?


I am logged in to SE and can access the different sites, being logged in.  When I go to Ask Ubuntu, I am not indicated as logged in. When I press Google-log in, I am told that the activity is suspicious and I am denied log in.  How can I access Ask Ubuntu, being logged in with my account?  Earlier I have used Ask Ubuntu from my phone with no problem. I now fail to log in using Chrome on Windows 10.


I have pretty much the same issue as , but since I've defined all my methods, the solution there doesn't apply here.  I have a Node.h with:  template<typename T> class Node{     public:         Node(T data, Node* next); }   In Node.cpp, I was sure to put:  #include "Node.h"  template<typename T> Node<T>::Node(T data, Node* next){     //I doubt that the implementation is relevant. }   In both files, I #include "stdafx.h" to cater to visual studios.  Yet, when I try to instantiate a node with:  #include "stdafx.h" #include "Node.h"  int main(){     Node<int> n = Node<int>(9, nullptr);     return 0; }   I get:  main.obj : error LNK2019: unresolved external symbol "public: __thiscall Node<int>::Node<int>(int,class Node<int> *)" (??0?$Node@H@@QAE@HPAV0@@Z) referenced in function _main   Just to debunk a few initial theories:   I have put all the files in the same VC++ project. There are no methods declared in the header that are not defined (VC++ has ensured this). I instantiate the node in main.cpp, hence the uses of main.obj in the error.   Is there another issue that I don't see (maybe a Node.h crawling the standard library or some VC++ thing I'm missing). Comparing this to older code I have that does work, the only difference I can find is that the old code doesn't use generics. Are the generics the culprit?  Why won't these files link up correctly? How to avoid this in the future?