Prove on metrization of uncountable product

I am given the following problem: Show that an uncountable product of unit intervals is not first countable, and thus not metrizable. My answer would be that a), since the elements of the neighborhood basis have to contain open sets, only a finite amount of their elements can be unequal to the entire unit interval, which means that some elements will always be equal to the entire unit interval and thus the open sets not containing the unit interval in that element will also not contain any set in the supposed neighborhood basis, and b) that it is always possible to construct a countable neighborhood basis in a metric space using open balls with rational diameters. Is this proof correct? The question is marked as more difficult than the other ones, and my answer seems to contradict that a bit.


How to determine the convergence of the series $\sum_{n=1}^\infty\frac{e^nn!}{n^n}$?

$$\sum_{n=1}^\infty\frac{e^nn!}{n^n}$$ we cant use the ratio test nor the root test, because the limit will be 1.  the main question was to determine whether or not the series $$\sum_{n=1}^\infty\frac{a^nn!}{n^n}$$ converge, for every $a\in\mathbb R$. I found that for every $-e < a < e$ the series absoulutly converges. For every $a>e$ or $a<-e$ the series does not converge (also not conditional convergence) so now I have to determine if for $a=e$ or $a=-e$ the series will converge. (hopefully it will converge for $a=e$ and therefor also for $a=-e$. other wise i'll have to find out also for $a=-e$) thanks. by the way, im not familier with tools like Rabbe's test or Sterling's formula, so solutions using other ideas will be great. thanks


What do you call someone who has passed deadline?

What do you call someone who has passed deadline or someone who should return book to the library, but has passed due date?


Fundamental Theorem of algebra using cauchy integral formula

Is there any way we can prove the fundamental theorem of algebra by applying the cauchy integral formula to the function $ f(z)=\dfrac{1}{zp(z)}$? To prove this, I've tried sort of emulating the proof of the fundamental theorem of algebra using Liouvilles theorem by making use of cauchy integral formula involving the second derivative, but it isnt seeming to work well, with the point z=0 posing as a problem point making me unable to expand my circle radius. Any help would be appreciated


iCloud Photo Library - merge two Apple IDs together to one library stream?

Is there a way to use iCloud Photo Library and merge the photos on my wife's iPhone with mine? I'm willing to subscribe to the iCloud Photo Library service, but I rather one of us pay for the cloud service and not both. I've looked at Family Sharing option, but that seems to only be for iTunes Store items such as apps.


The sigma function (sum of divisors) multiplicative proof

I am trying to prove that $\sigma(p_1^a\cdot p_2^b) =\sigma(p_1^a)\cdot\sigma(p_2^b)$ where $p_1$ and $p_2$ are prime numbers. We know that $\sigma(p_1^a) = \frac{p_1^{a+1}-1}{p_1-1}$ and $\sigma(p_2^b) = \frac{p_2^{b+1}-1}{p_2-1}$. Now I am trying to find the divisors of $p_1^a\cdot p_2^b$ and add them: I found that the divisors are   $1$, $p_1$, $p_1^{2},\dotsc,p_1^{a}$, $p_2$, $p_2^{2},\dotsc,p_2^{b}$, $p_1\cdot p_2$, $p_1\cdot p_2^2,\dotsc,p_1\cdot p_2^{b},\dotsc,p_1^{a}\cdot p_2,\dotsc,p_1^{a}\cdot p_2^{b}$.                               Now when we do their summation we get $\sum_{k=0}^a$ $p_1^k$ + $\sum_{k=1}^b$ $p_2^k$ + ($\sum_{k=1}^{a}$ $p_1^k\cdot\sum_{k=1}^b$ $p_2^k$), is this right? If yes I can't reach $\frac{p_1^{a+1}-1}{p_1-1}\cdot\frac{p_2^{b+1}-1}{p_2-1}$.


I changed my system language in Ubuntu 16.04 and cannot login after reboot

I  changed my system language to Geez, an Ethiopian language, and I was using it.  But I forgot to reset or change the language setting to English when I logged out.   My intention was to use Geez one time only. Now  I cannot login after rebooting. The language switch keyboard shortcut Super+Space does not switch the language on the login screen. My password is not recognized now because the Geez layout is being used and my password is English. I tried many things through GRUB shell.  I tried to change the language setting using Grub.  I  tried to change, I changed to LANG = en_US.UTF-8 which was LANG=am_ET.UTF-8, LC_ALL=C, LANGUAGE=en_US.UTF-8 which was ET. Most of the environment variables changed to US from ET.   I checked by echo $LANG and it shows the change. But when I reboot the language never change. I am believing the problem is caused after I changed the language.  The desktop is  Gnome.  How can I fix this?


Suppose I have the following finite sum;  $$S_n=\sum_{k=1}^n{\left\lfloor{\frac{n}{k}}\right\rfloor}$$ I've never dealt with something like this before and was curious of a way to express it with a closed form.  I can see the first few sums are  $$S_1=1$$ $$S_2=2+1=3$$ $$S_3=3+1+1=5$$ $$S_4=4+2+1+1=8$$ $$S_5=5+2+1+1+1=10$$


Article Source: An Efficiency Comparison of Document Preparation Systems Used in Academic Research and Development  Knauff M, Nejasmic J (2014) An Efficiency Comparison of Document Preparation Systems Used in Academic Research and Development. PLOS ONE 9(12): e115069.  I am surprised to read this research paper. But if it’s the truth, the change is needed in a way the frontends are being designed. The research findings defeats the very purpose of latex : focus on content more than the formatting. This question is likely to be downvoted, blocked saying too wide or out of context.  But still I would like to have comments from experts!


Move contents of folder (Download) into recycle.bin folder - Powershell

Hi everybody thanks for your help, this is what I've done. The Main goal is to move content of Downloads into Recycle bin if is a folder or whatever it is I can't figure out why I run it and after moving items can't seen them in the Desktop>recycle bin I found the items in c:$Recycle.bin what do you suggest? thanks again #Requires -Version 5.1      param (     [string] $path = "$env:HOMEPATH\Downloads\") $myBool = Test-Path $path      if ($myBool -eq $false)      {     "Path does not exist, Input the path to folder"     }      else { Get-childItem -path "$path" -Recurse  | Select-Object | Move-Item -Destination     'C:\$Recycle.Bin'     }


Let $A$ be a nonempty set of real numbers which is bounded below. Let $-A$ be the set of all numbers $-x$, where $x \in A$. Prove that $\inf A = -\sup(-A)$.   We know that $-A$ is bounded above. Hence $\sup(-A)$ exists. So to proceed, one would show that $\inf A \leq -\sup(-A)$ and $\inf A \geq -\sup(-A)$? Or $-\inf A > \sup(-A)$ and $-\inf A < \sup(-A)$.  I get the sense that one can use the following fact as well: (i) Let $\alpha = \sup S$. If $\beta < \alpha$ then $\beta$ is not an upper bound for $S$.


Why doesn't Deadpool's healing ability heal his skin?

In the Deadpool movie when Wade his mutant cells get activated, his skin changes so he looks like Freddy Krueger (As Weasel referred too). But he obtains healing abilities and his cancer gets cured because of it. He's become an immortal person which can heal any wound super fast.  What I don't understand is, why doesn't his skin heal so he would look like before? I remember that Francis (or Ajax) said that it's a 'side-effect' of mutating, but why wouldn't it heal when he has a healing ability?


If $A_i$ is countably infinite set for $i=1$ to infinite then $\bigcup_{i=1}^{\infty} A_i$ is countably infinite.

If the proof is done by a basic matrix diagonalwise model array then there arise a question that what will happen if 2 elements are equal? How can one make a one to one correspondence with the set of natural numbers?


How I can get more reputation to be able to vote in my questions?

I'm new in this type of sites but I want to be part of the community, I already make a question but I can't vote in it know. I will be very grateful if you can help me with this.


Whats the average salary (inclusively) in china? How expensive it is for a single postdoctoral life?

I'm going to join one of the top university in China. I have been offered 130000 to 180000 RMB per year (including the basic performance and housing subsidy) on invitation letter although it's less than what was committed with me in the mail. How expensive is Bejeing? This is my third postdoc. I am afraid if it will be lower than the average postdoc. How is the working condition in Tsinghua and Peking University in Engineering Science?


Why am I missing 537.53gb of drive space?

My E: drive is missing 537gb of drive space and I haven't figured out why yet. I've reviewed a lot of pages and this isn't a dupe or resolved by standard means. See below for steps I've taken:   The E: drive is not the boot disk so no hibsys files Paging file is set to "No paging file". I have 64gb of Ram, Win10Pro, 64bit  I've unhidden all files and the total space for all files/folders is 121GB. Issue was on Win7 and after upgrading to Win10 it persists. I ran Defrag. No change. I ran error checking. No change. Recycle bins are empty. No unallocated drive space. No hidden partitions System Protection is and has been turned off for all drives. Cluster size should be fine and whatever the default is. I spot checked a few files on E: and they appear normal with Size and Size on disk being real close.  I've rebooted.   I just upgraded to Windows 10 in hopes that it would fix whatever win7 silliness was causing this but no luck. There are new tools in Win10 however. I'm looking at the Storage usage for the E: drive and it says 540gb are being used up by Other. When I expand Other, it shows a few folders that don't even total 4gb.  I have 204,040 files and 21,161 folders in E. Not sure if that plays a part in this or not.  Any ideas? Here's my disk info:


Getting dents while using subsurf modifier without using mirror modifier

Why am i getting dents all of a sudden while using subdivision surface modifier? And also i did not use mirror modifier.


What is recordSetVar and where is it used?

I was looking at some code and in the 'apex:page' tag, an attribute called recordSetVar was mentioned. I'm new to VisualForce so could someone please tell me when and why is it used?


The concept of dimension is used in many different contexts.   Generally a dimension is a function that has as domain some family of sets ad has value on a set that, in the most common situations, is $\mathbb{N}$ or $\mathbb{R}$. As an example of the first case we can think to the dimension of  (but this can also be infinite) or to the  of commutative rings. As an example of the second case we can think to the  for metric spaces ( and its variants). But we can also define dimensions that have as range a family of ordered sets and as range an interval of $\mathbb{R}$, as in the case of , and it seems that we can also define a dimension functions on super vector space that can have negative values, and a dimension with complex values for self-similar sets ().  All these dimensions are different in their definitions and properties and, if I well understand there is not an axiomatic definition of dimension that can be used to identify  a function as a dimension function (see:).  So my question is why mathematicians call all those different function with the same name? I understand that the name come from our common intuition of dimension but I don't understand how such intuition apply to such sophisticated notions called dimension.  More precisely:     I'm curious to know what is the inspiration that guide a mathematician to recognize that a particular function can be called a dimension.    I see that this is not a question that can have a unique and well defined answer, but I suppose (or I hope) that there is some common mathematical meaning about this so used word.


Shawyer EM Drive -- Momentum Conservation Violation

I have been following the developments around the Shawyer EM drive for about 2 years now as NASA and other parties test it out in various environments. To preface, I would very much like to see the EM drive work so sorry in advance if I am afflicted with a case of confirmation bias.  The most recent test in Dresden, Germany (the paper by M. Tajmar et al.) to me seems like another test that proves this idea may have some validity. As you may know if you are thinking about answering this question, the main concern with this idea is that it violates the momentum conservation principle (i.e., there must be something else that is causing the "thrust" force the experimenters are observing).   At this point, I need to say my background in physics is only through quantum mechanics and special relativity. I have dabbled in General Relativity and Quantum Field Theory, but don't yet have the mathematical prowess to fully appreciate them. I am an engineer, not a physicist, so forgive me if my arguments are a bit flawed. That's why I'm asking after all!  From thermodynamics, we know energy must be conserved (energy conservation). Conventional wisdom would say that momentum must also be conserved; however, I have begun to think this is solely a classical dynamics idea. I know in quantum mechanics, the transfer of momentum is also conserved, but when I try to correlate this with General Relativity's view of the world in terms of the stress-energy tensor, I find that momentum flux (and thus in my mind, momentum) is merely a product of an energy density. After all, if mass is just energy in the form of mass-energy, why can't this mass-energy move thus making momentum? It would seem to me that the so-called "conservation of momentum" is just another way of saying "energy is conserved" in a different way.  In the Shawyer drive, energy is conserved: you still have to provide energy to the system, and in return you get thrust. If momentum is truly just another form of energy, why do skeptics think this can't work?  So to be succinct (sorry, that was long-winded), why is the momentum conservation law so important if everything boils down to energy at the end of the day? If everything (and I mean everything) truly is just different forms of energy, shouldn't it be obvious that it must be possible to convert it from one form to another via some pathway or process?  Thanks in advance for helping me with my little thought!


Why am I getting null pointer when accessing files on Tomcat (using HttpServlet)?

I am trying to get a list of folders from the root directory in my JSP project and then display them to the user in a table, with links to child folders and the size of the folder. The code below is to get a list of directories inside the WebContent folder.  String absolutePath = this.getServletContext().getRealPath("/") + relativePath; String fileList = "
File Name	Size [B]	Last Updated
";  File folder = new File(absolutePath); File[] listOfFiles = folder.listFiles();  for (int i = 0; i < listOfFiles.length; i++) {     if (listOfFiles[i].isDirectory()) {         Path file = listOfFiles[i].toPath();         BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);          String time = attr.lastAccessTime().toString();          fileList += "
&nbsp;"             + "<button onclick='navigate(this);'>" + listOfFiles[i].getName() + "</button>	" + attr.size() + "	"              + time.replace("T", " ").substring(0, time.indexOf("."))              + "
";     } }   When I run the project locally, there is no problem. But after deploying my .war file on a server, when running I get a 500 error (null pointer exception) at line:  for (int i = 0; i < listOfFiles.length; i++)   Which tells me that the Folder array has not been initialized with the child folders.   I am assuming that I don't have the same access to these folders on the server as I do when I am running locally.  Any ideas how to access these folders?  P.S. The server is running on Unix.


How do I set a default, maximum and minimum width and height for a SharePoint web part?

A seemingly simple question, but I haven't found the answer online.  I have developed a web part with an adjustable height/width.  After adding the web part to my web part page, I open the configuration panel.  The properties of the web part under Appearance: "Should the Web Part have a fixed width?" defaults to "No. Adjust width to fit zone."  The web part can then be set to a custom width by selecting "Yes" and setting the width.    All good so far.  The web parts resize quite well unless you make them exceedingly skinny or wide.  I would like to set my web part a minimum width of 250px, and a maximum of 1000px.  How can I do this?    These parts are going to be added to hundreds of pages.  Thus to minimise the amount of configuration necessary, I would also like the web part to default to having a fixed width of 400px, which is the size they look the best for most purposes.  However, I'd still like the user to be able to change the configuration to "No. Adjust height to fit zone." or customise the width if it is too narrow for their purpose.    Setting the size of the panel to 400px works, but then the part cannot be customised.    I have tried adding the following property to the .webpart file:      <property name="Width" type="string">400px</property>   I have also tried overriding the width attribute and setting a _width field to a default of 400px.        public string _width;      [PersonalizableAttribute]     [WebPartStorageAttribute(Storage = Storage.Personal)]     public string Width     {         get         {              if (_width == null || _width == string.Empty) { _width = "400px"; }             return _width;         }         set { _width = value; }     }   I've also tried it like this:      public System.Web.UI.WebControls.Unit _width;      [PersonalizableAttribute]     [WebPartStorageAttribute(Storage = Storage.Personal)]     public override System.Web.UI.WebControls.Unit Width     {         get         {              if (_width == null) { _width = new System.Web.UI.WebControls.Unit("400px"); }             return _width;         }         set { _width = value; }     }   but none of these appear to have any effect whatsoever.


Test question: The {people | peoples} of Europe are white-skinned

This question is from a test:     The {people | peoples} of Europe are white-skinned.   Which is correct? Can we use either?


SQL Server: Find duplicates using group by and having count than delete them all but not first

I have to maintain an old MS SQL 2008 database with tons of records. I notice that about 90% are duplicates.  So what is the best way to remove only the duplicates.  I used...   SELECT  [Col1],[Col2],[Col3],[Col...], COUNT(*) AS [DuplicateCount] FROM myTable GROUP BY  [Col1],[Col2],[Col3],[Col...] HAVING COUNT(*) > 1;    to find the duplicates but I struggle how to delete all of them but not the first one. I found some hints with using  TOP  but not in combination with group by. Sorry but my SQL is too bad for that ;)  Thanks in advance!!!


Does $\sum_{n=1}^{\infty} \frac{\sin(n)}{n}$ converge conditionally?

I think that the series $$\sum_{n=1}^{\infty} \dfrac{\sin(n)}{n}$$ converges conditionally, but I´m not able to prove it. Any suggestions ?


What changes should I make when reapplying for a UK Standard Visitor visa?

I have applied for a UK Standard Visitor visa with my mother and have been refused. I want to reapply soon.  What changes should I make?


What does "to inform" mean, in this context?

It is the 2018 - 2019 goal of Natural Resources Canada written on the site:      Canadians have access to cutting-edge research to inform decisions   on the management of natural resources.   I can't understand what 'to inform' means. Therefore, please paraphrase it or let me understand its meaning.


Compute $ \int_{0}^{ \infty }\frac{\ln xdx}{x^{2}+ax+b}$

Compute $$ \int_{0}^{ \infty }\frac{\ln xdx}{x^{2}+ax+b}$$ I tried to compute the indefinite integral by factorisation and partial fraction decomposition but it became nasty pretty soon. There must be another way to directly evaluate it without actually computing the indefinite integral which I don't know!


How to represent, in a dot-progress-bar "Finished, Next, Future" items

I'm working on some educational software (for adults).  Part of a lesson involves moving from one step to the next. So we have a next step button.  I want to show the user:   How many steps there are Where they are now   The trick is that the button says "next step".  And I'd really like to show the progress dots on the button (for screen real-estate-efficiency).  One thought I had was to show three colors of dots:   Dark Gray - everything up to current step Gray - Next Step Light Gray (silver)  - future steps.   Any other ideas?


How to detect the edition of SharePoint 2010 installed?

In SharePoint 2007, we have a registry entry HKLM/Microsoft/OfficeServer/12.0/OfficeServerPremium=1 for enterprise edition and OfficeServerPremium=0 for standard edition.  How can I determine which edition of SharePoint 2010 is installed on a machine?


How do you make sure email you send programmatically is not automatically marked as spam?

This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology.  Of late, some of the emails I send out programmatically have started being shuffled into people's spam folder automatically and I'm wondering what I can do about it.  This is despite the fact that these particular emails are not ones that humans would mark as spam, specifically, they are emails that contain license keys that people have paid good money for, so I don't think they're going to consider them spam  I figure this is a big topic in which I am essentially an ignorant simpleton.


Counterexample: a pair of linearly ordered sets that are isomorphic to subsets of the other, but not isomorphic between them

I have encountered myself with the following exercise:     Let $\langle A, <_R\rangle$ and $\langle B, <_S\rangle$ be two linearly ordered sets so that each one is isomorphic to a subset of the other, that is, there exists $A'\subseteq A$ and $B'\subseteq B$ such that:      $$\langle A,<_R\rangle\cong\langle B',<_S\cap(B'\times B')\rangle\qquad\&\qquad\langle B,<_S\rangle\cong\langle A',<_R\cap(A'\times A')\rangle$$      Is it necessarily true that $\langle A,<_R\rangle\cong\langle B,<_S\rangle$?   The original statement talked about well-ordered sets, but that case is pretty easy, because supposing that $\langle B',<_S\cap(B'\times B')\rangle$ is not isomorphic to $\langle B,<_S\rangle$, the theorem of comparison between well-ordered sets assures that $B'$  with its restricted relation $<_S$ is isomorphic to an initial section of $\langle B,<_S\rangle$. But then, composing the unique isomorphism between $A$ and $B'$ with the restriction to $B'$ of the only isomorphism between $B$ and $A'$, we find that $A$ is isomorphic to a subset of $A$ with strict upper bounds (namely, the image of the element of $B$ that defines the initial section of $B'$ via the isomorphism between $B$ and $A'$) in the sense of $<_R$, which is absurd.  However, when the sets are not well-ordered, can we find a couple of linearly ordered sets that, although verifying the stated property, are not isomorphic to each other?  I have tried with some subsets of $\mathbb{R}$ and other subsets of $\mathbb{R}$, but it seems that they are all isomorphic to each other.  I ran out of ideas. Are there any counterexamples to this statement?  Thanks in advance for your time.  P.S.: I have thought, for instance, that a closed interval of $\mathbb{R}$ shouldn't be isomorphic to the whole $\mathbb{R}$. How can we prove this assertion?


How to find all combinations of elements for every valid k in python?

Say I wanted to find all the possible combinations of elements (not the number of possible combinations given by nCk but the combinations themselves.) Further, say I'm interested in all possible combinations given all possible k. For example elems = [a,b,c,d] #k=1 com_2 = [(a,b),(a,c),(a,d),(b,c),(b,d),(c,d)] #k=2 com_3 = [(a,b,c),(a,b,d),(a,c,d),(b,c,d)] #k=3 com_4 = [(a,b,c,d)] #k=4  I'm wondering, is there a built in python function that could accomplish this? (Perhaps part of the set class.) If not, how would you write a function to accomplish this effect? elems = ['a','b','c','d'] sets = [] for idx1 in range(len(elems)):   for idx2 in range(idx1+1, len(elems)):     sets.append((elems[idx1],elems[idx2]))  sets >>> [('a', 'b'), ('a', 'c'), ('a', 'd'), ('b', 'c'), ('b', 'd'), ('c', 'd')]  This works only for k=2, when k is larger, I'll need to add another for loop dynamically. This  makes me think that recursion might be appropriate, but I'm at a complete loss on how to move forward. This  seems to hint at the right direction, though I'm not a C++ programmer, so it's not at all clear to me. edit: Stumbled on  which answers my question. Feel free to close, mods


Why is this Pandas series giving sum = .99999999 where as answer is 1. In my program, I need to assert on 'sum is equal to 1'. And, assertion is failing even if condition is correct.  s = pd.Series([0.41,0.25,0.25,0.09]) print("Pandas version = " + pd.__version__) print(s) print(type(s)) print(type(s.values)) print(s.values.sum())   The output is:  Pandas version = 0.23.4 0    0.41 1    0.25 2    0.25 3    0.09 dtype: float64 <class 'pandas.core.series.Series'> <class 'numpy.ndarray'> 0.9999999999999999


GLM for proportion data in r - with many zeros (or ones)

My understanding is that generalized linear modeling (GLM) is recommended for proportion data.   However, this seems to run into problems when a set of data is full of zeros (or ones). For example, a data with two classes (A and B) with six data points each - all 0 alive and 10 dead for A and all 5 alive and 5 dead for B.  Using R to analyze this ...  alive <- c(0, 0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5) dead <- c(10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 5, 5) type <- rep(LETTERS[1:2], each = 6) model <- glm(cbind(alive, dead) ~ type, family = binomial) summary (model)   Here's the summary  Call: glm(formula = cbind(alive, dead) ~ type, family = binomial)  Deviance Residuals:         Min          1Q      Median          3Q         Max   -9.528e-06  -9.528e-06  -4.764e-06   0.000e+00   0.000e+00    Coefficients:             Estimate Std. Error z value Pr(>|z|) (Intercept)   -26.12   36754.57  -0.001    0.999 typeB          26.12   36754.57   0.001    0.999  (Dispersion parameter for binomial family taken to be 1)      Null deviance: 5.1783e+01  on 11  degrees of freedom Residual deviance: 5.4466e-10  on 10  degrees of freedom AIC: 20.825  Number of Fisher Scoring iterations: 23  output is that A and B are not statistically different (p = 1).   I am pretty sure that the problem is too many zeros (or ones). What is a better way of analyzing this?   I have seen , but I am unsure if it's appropriate (AND I couldn't figure out how to use stan_glm under the same data context).  is similar but was never answered.


I have Acer F5-573G-59V4 Laptop i want to dual boot it (Windows + Ubuntu), Help me with the procedure to dual boot it..?

How to do dual bootable installation for Acer F5-573G-59V4.


I made a big mistake: I removed yum. So now when I for example run the following it gives me an error:  $ yum clean all yum command not found.   I can download the package succesfully:  wget mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm --2014-01-15 15:42:59--  http://mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm Resolving mirror.centos.org... 192.133.139.3 Connecting to mirror.centos.org|192.133.139.3|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1019540 (996K) [application/x-rpm] Saving to: “yum-3.2.29-40.el6.centos.noarch.rpm.1”  100%[====================================================================================================================>] 1,019,540    649K/s   in 1.5s  2014-01-15 15:43:01 (649 KB/s) - “yum-3.2.29-40.el6.centos.noarch.rpm.1” saved [1019540/1019540]   Trying to install the downloaded package gives the following error:  # rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm Preparing...                ########################################### [100%]     file /usr/lib/python2.6/site-packages/yum/__init__.py from install of yum-3.2.29-40.el6.centos.noarch conflicts with file from package yum-3.2.29-30.el6.centos.noarch [...] file /usr/share/yum-cli/yummain.pyo from install of yum-3.2.29-40.el6.centos.noarch conflicts with file from package yum-3.2.29-30.el6.centos.noarch   There is no directory "yum" in /usr/bin.  When I use the command "rpm -qa | grep yum".  yum-metadata-parser-1.1.2-16.el6.x86_64 yum-plugin-fastestmirror-1.1.30-14.el6.noarch yum-3.2.29-30.el6.centos.noarch   The distro is CentOS 6.3. How can I reinstall yum?


My phone gives me charge load for my bluetooth headset why wont my mac?

My phone gives me charge load for my Bluetooth headset why won't my mac ? I couldn't find an app for that specific need. I've only seen  on this very topic: Any pointers ? (my headset is a JBL T450BT ; my phone an android one; mac model is macbook pro 13" 2019, with 4 USB-C ports)


I have written this code to reverse a string which is pointed by char pointer arr and we need to reverse the characters without using any function or length or any DS. Just using char pointers and only char variables. This is the code but it gives error      CodeBlocks has stopped working   #include <iostream>  int main() {     char *arr = "ABCDE"; // string     char *ans = arr; // another pointer     char tmp;     char *s = arr;     while (*ans != '\0')         ans++;     ans--; // now (*ans) is the last character (not null char)     while (arr < ans)     {         tmp=*arr;         *arr=*ans;         *ans=tmp;         arr++; // increment arr by 1         ans--; // decrement ans by 1     }     std::cout << s << std::endl; // print reversed string }


My Steam inventory starts getting cluttered with coupons that will remain valid for way too long time and I'm absolutely not interested in using them or finding someone else to give them to. How can I get rid of them?


Consider the circuit diagram below. What will happen if at some instant the inverter input is zero?


How do I prepare best for my first wedding photography event?

I have a friend that wants me to take photos at her sisters wedding in the church and at the reception hall. This will be my first wedding  shoot. I have no idea what to charge, how many pictures to edit or how many pictures they are expecting. But I will be putting them on a flash drive, my camera is a canon EOS Rebel T5i and I only have two lenses . A 75-300 mm and a 18-55 macro. Is it possible for me to take decent pictures with this equipment?


I know about depth of field but I have no clue how to set it to my liking.  Is there an add-on for those of us who aren't camera savvy about adjusting focus? Like a visual line to show what is in focus or a measured distance something like in focus from 1 meter to 10 meters?


getting column Heading names in oracle database

Please help me in this  consider a table in oracle Database    SNo Name password ------------------ 1    x    1234 2    y    2314   A query to  fetch the headings such as SNO NAME PASSWORD


Render image becomes tranparent with more samples applied

I was trying to create some bubbles. Everything was OK in render preview, but render result becomes completely transparent image.   Here you can see render preview. I use HDRi lighting and film transperant.  First sample in render process shows a bit of "envelope" of each bulb.   Here you can see render at 2-3 samples and it's almost invisible.   here is a gif when render runs...   Here is my node setup. I can upload my .blend file if you help me how to do this:) Yes, bubbles are visible, but it brings black background and some bugs.   And the most interesting thing i found when i tried to save this image with black background without alpha.  THIS is the saved rendered image from previous screen!  Here is the comparison between rendered image and render preview at 1 sample.  And at 2 samples.


Expected value of the negative part of a random variable

I want to prove that, if $X$ is a real valued random variable with finite expected value, then:   $$\mathbb{E}[X]=\displaystyle \int_{0}^{\infty} \mathbf{P}(X \geq t)dt - \int_{-\infty}^{0} \mathbf{P} (X \leq t)dt.$$   We have that $$\mathbb{E}[X] = \mathbb {E} (X^{+}) - \mathbb{E} (X^{-})$$ and I know how to prove that if $Y$ is  a non-negative r.v., then its expected value can be expressed as $$\mathbb{E}[Y]=\displaystyle \int_{0}^{\infty} \mathbf{P}(Y \geq t)dt.$$   I am having trouble expressing the second integral as the expectation of the negative part, $X^{-}$.   Can anyone help me with that?


According to this  I should be able to install the .deb version of the Unity Editor for Ubuntu. I have the recommended system requirements. But when I try to install the .deb file using the sudo dpkg -i mydebfile.deb I get the following errors:  Selecting previously unselected package unity-editor. (Reading database ... 175283 files and directories currently installed.) Preparing to unpack unity-editor-5.3.4f1 20160503_amd64.deb ... Unpacking unity-editor (5.3.4f1) ... dpkg: dependency problems prevent configuration of unity-editor:  unity-editor depends on lib32gcc1 (>= 1:4.1.1); however:   Package lib32gcc1 is not installed.  unity-editor depends on lib32stdc++6 (>= 4.6); however:   Package lib32stdc++6 is not installed.  unity-editor depends on libc6-i386 (>= 2.15); however:   Package libc6-i386 is not installed.  unity-editor depends on libpq5; however:   Package libpq5 is not installed.  unity-editor depends on npm; however:   Package npm is not installed.  dpkg: error processing package unity-editor (--install):  dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.13.3-6ubuntu3) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.59ubuntu1) ... Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... Errors were encountered while processing:  unity-editor   Has anybody successfully installed the Unity3d on Ubuntu 16.04 yet? Please help if you can.  EDIT: I've been asked if the question  has solved my problem. The answer is: No, it hasn't. The answers in that question might help one learn how to fix broken dependencies using sudo apt-get -f install but that didn't solve my problem. I had to install each of the missing packages one by one (see comments below). So, I think people coming here for the same problem won't be able to know that they have to install the packages by hand if the question is marked as a duplicate.


Why (global/function/block) scopes, javascript?

So recently I decided to change my career path from PHP developer to MERN stack developer and switched to back-end developing with node.js. Started all over again javascript basics and came across scopes which really started to melt my mind : WHY - In php : <?php  $var = "string";  if(true) {     $var = "string2"; }  echo $var;  returns string2 In c++ : // Example program #include <iostream> #include <string>  int main() {   std::string var = "string";   if(true) {       std::string var = "string2";   }   std::cout << var ; }  returns string2 But in javascript : let string = "string"; if(true) {     let string = "string2"; } console.log(string);  Returns string What is the explanation behind javascript that it uses variables scope programming and other big programming languages like c++, php have normal machine kind variable scoping? My first guess would be that javascript is primarily front-end language and/or javascript works asynchronously.


How do you find the smallest of homeomorphic ordinals?

I am trying to get a better feel for the topology of ordinals and just received a great answer to this  where the Cantor-Bendixson rank and degree turn out to be a complete homeomorphism invariant of countable compact spaces. Now I am curious about what is going on within homeomorphism classes of ordinals. In particular, I want to know how to characterize countable ordinals $\alpha$ which are minimal among all ordinals homeomorphic to $\alpha$.   Certainly finite ordinals and $\omega$ are easy. Next, if $\alpha\cong \omega+1$, then it seems like we would have to have $\omega+1\leq \alpha<\omega +\omega$ since there can only be one limit point in $\alpha$. Things become a little fuzzier for me with ordinals that have infinitely many limit points.  For instance, suppose $\alpha$ is an ordinal homeomorphic to $\omega^{\omega}$. Is it necessarily true that $\alpha\geq \omega^{\omega}$? Is there a general rule for knowing when an ordinal is the smallest among all ordinals homeomorphic to it?


How to stop jucheck from running? Java won't remember "Check for Updates Automatically" setting

I've installed Java on Windows Vista, and every day I get a Vista security warning asking me if I want to run "jucheck".  Apparently this is the Java automatic updater.  Well, I don't want it to run on its own, ever.  I cancel it, and quit it.  I right-click on the taskbar and unclick "Check for Updates Automatically", and then click "Never Check", and "Apply".  And yet, it never remembers this setting.  If I come back to the "Java Control Panel" right after clicking "OK", the very same box is checked again, all on its own.  Is there some way to kill jucheck once and for all?  If I simply delete jucheck.exe, will Java (other than the automatic check) still work, and will manual updates still work, and will it stop even trying to update every morning?


Uploading image (ACTION_IMAGE_CAPTURE) to Firebase storage

EDIT: The discussion on this issue has been carried to another question:  PLEASE check it out! I did some manipulations (following the android documentation) but still getting same problem.  So here I'm trying to do a simple task of capturing an image with camera and uploading it to my storage database on Firebase. I have the following button to do the job:  b_capture.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View view) {             Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);             startActivityForResult(intent, CAMERA_REQUEST_CODE);         }     });   and the following code for the upload:   @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) {     super.onActivityResult(requestCode, resultCode, data);      if(requestCode == CAMERA_REQUEST_CODE && resultCode == RESULT_OK){         progressDialog.setMessage("Uploading...");         progressDialog.show();         Uri uri = data.getData();         StorageReference filepath = storage.child("Photos").child(uri.getLastPathSegment());         filepath.putFile(uri).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {             @Override             public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {                 Toast.makeText(MainActivity.this, "Upload Successful!", Toast.LENGTH_SHORT).show();                 progressDialog.dismiss();             }         }).addOnFailureListener(new OnFailureListener() {             @Override             public void onFailure(@NonNull Exception e) {                 Toast.makeText(MainActivity.this, "Upload Failed!", Toast.LENGTH_SHORT).show();             }         });       }     }   in the app I'm able to take picture, but after I confirm the picture taken the APP CRASHES and I get the following error:  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getLastPathSegment()' on a null object reference   So, I understand that the "Uri" does not have anything in it, but I'm confused about what can be done. Need help.  And yes, I've checked all permissions, Firebase connections, Gradle sync etc.


Book involving race-preserved characters, futuristic society of "stans" (or "norms")?

I read this book in my dad's collection at least ten years ago. I feel like the title had something to do with time, but I could be wrong. The cover has a brown bald head (you just see the back) approaching three young adults in what looks like a spaceship.   In the book, the main character is Caucasian and living in America, but then his dog does things it isn't supposed to do (like climb trees) and he realizes he's not in the time and place he thought he was. He meets a couple of other race-preserved people who were being raised as if in other times and places (I think there was a Chinese girl named Meilin? Or Mei-lan?).  They try to find a way back home from this planet populated by people who all have the same color skin and hair, they call each other either "Stan" for standard or "Norm" for normal, I can't remember which. There's also something about their houses being clear and shifting or adjusting according the what the inhabitants need...


What mechanism is responsible for the creation of these dunes on Comet 67P/Churyumov-Gerasimenko?  The following high resolution picture from ESA's Rosetta mission shows the dunes:       At a distance of 7.8 km from the surface, the image scale is about   66.5 cm/pixel, so each 1024 x 1024 pixel frame is about 680 m across (although if we assume the furthest point away is an additional ~1 km   further from the centre, the image scale is about 92 cm/pixel).   So the scale of the dunes is on the order of tens of meters along the crest. And each crest are probably just a few meters apart.


What formula would you use to add up a column based on results from two drop down menus?

I would like to calculate a column based on selections from two other columns with drop down menus.   For example :   In one column, "C" you have 3 options (A team,B team,C team), In column "F" you have the day of week to schedule (Monday, Tuesday, Wednesday, Thursday, Friday) and in Column "E" I would like to put how many minutes total each line is.   This will calculate how many minutes worth A team has on Monday.  I have been successful using SUMIFS code to narrow by the first set of criteria  i.e. =SUMIFS(E2:E20,C2:C20,"A team")  When I try to add a second set of criteria, it doesn't work.  How can I achieve my goal here? Should I be trying something different?  I have tried just adding the criteria like so:  =SUMIFS(E2:E20,C2:C20,"A team",F2:F20,"Monday") ....... but it wont work!  Thanks,   Tyler


The expression $(x+a)(x+1991) +1$ can be factored as a product $(x+b)(x+c)$ where $b,c$ are integers

I need to solve following problem, but don't know to start with, please provide hints and solutions.  Find all integer values of $a$ such that the quadratic expression $(x+a)(x+1991) +1$ can be factored as a product $(x+b)(x+c)$ where $b,c$ are integers .


I created a block, in which an img with src="sites/mysite/files/imagename". It works every node, but failed loading in search page.  Is this an issue of Search module? Drupal 7, I hope, has a uniform url management, for example:   exapmle.com/files, exapmle.com/modules/Module_name, or exapmle.com/modules/core(Symbolic Link points to sites/all/modules) /Module_name   exapmle.com/themes/Theme_name, or  exapmle.com/themes/core(Symbolic Link points to sites/all/themes) /Theme_name ... ...


I couldn't understand how I can get the following result on expansion:  $$3(1-3x)^{-2}=\sum_{n=0}^{\infty}(n+1)3^nx^n.$$ Any ideas?


Beware of the beginners question.  I read about the new Kubuntu Version (15.10) that was released these days. I am using the previous release (15.04).  Is there something I need to do to get the new release version or will my system semi-automatically receive the version like the other updates I get from time to time (by getting a notification in the tray that offers me to install available updates)?


I am using PostgreSQL 9.4 and having tough time with slow queries. Some of these use "like" and others use "not like" searches. For like searches I could resolve by using trigram indexes, but those with not like are a headache.   e.g.   select * from mytable where user_code not like 'TE%'   EXPLAIN ANALYZE says "Seq scan". How can I make Postgres use index in such cases?


Could I lose reputation on Meta Stack Overflow?

When I look at "Meta Stack Overflow" , I see many users asking good and bad questions, but I noticed that users asking bad questions who got downvoted don't seem to lose any reputation at all. Is it normal or do the downvotes and upvotes in this need to be validated by a moderator?


Counting poker hands: full house, straight, $4$ of a kind, straight flush

A deck of cards contains $52$ cards. There are $13$ different kinds of cards, with four cards of each kind. (Among the terms commonly used instead of “kind” are “rank,” “face value,” “denomination,” and “value.”) These kinds are twos, threes, fours, fives, sixes, sevens, eights, nines, tens, jacks, queens, kings, and aces. There are also four suits: spades, clubs, hearts, and diamonds, each containing $13$ cards, with one card of each kind in a suit. A hand consists of five cards.  How many possibilities are there for the following poker hands?:  (1) Full house = $3$ of one kind and $2$ of another kind  (2) Straight = $5$ consecutive kinds (note that Ace can be high or low)   (3) $4$ of a kind  (4) Straight flush = five cards of the same suit of consecutive kinds  I calculate answers for each above, but I am not totally sure about my answer. Can someone take a look? Thanks in advance!  For (1), $C(13, 2) \cdot 2 \cdot 4^5$ since we choose $2$ kinds from $13$ kinds, and $3$ cards can have one of the kind, while the other $2$ cards can have the other kind. Since there are two choices for which kind to be for the three kinds, we multiply by $2$. Each card can be one of four suits, so we multiply $4^5$.  For (2), there are $10$ consecutive kinds. Each cards can be one of $4$ suits. Thus, $4^5 \cdot 10$.  For (3), I think there are $13$ kinds in total, so the answer is $13$.   For (4), there are $10$ consecutive kinds and four suits totally. So $10 \cdot 4 = 40$.


How do you copy and paste inside the terminal?   I've tried with Ctrl+C and Ctrl+V; neither works, they just insert ^C or ^V into the prompt. What am I doing wrong?


How does one interpret SVM feature weights?

I am trying to interpret the variable weights given by fitting a linear SVM.  (I'm using ):  from sklearn import svm  svm = svm.SVC(kernel='linear')  svm.fit(features, labels) svm.coef_   I cannot find anything in the documentation that specifically states how these weights are calculated or interpreted.  Does the sign of the weight have anything to do with class?


How to compute the sum of the following series. I have no idea...  The series is $$\sum_{n=1}^\infty(1+1/2+\cdots+1/n)x^n.$$


Can the existence of something be proven by logic alone

I want to know if proving the existence of something by using only logic is possible.


Export records from Salesforce to deploy to another org which are useful for configurations like Custom Settings

I have retrieved the metadata from sandbox to deploy it to the higher org using ANT. ANT have created folders for all the components like objects, classes, etc. But, it did not retrieved many records which are useful for configuration purposes like custom settings records(it have retrieved metadata for custom settings but not the records), remote site settings, etc. So, I want to know what are other components like custom settings records which are not retrieved using ANT but are necessary? Also, in my sandbox org, there are many custom settings and each have multiple records. So, I came to know that you need some post deployment steps which include exporting custom settings records from sandbox org and deploying it to higher org. So, is there any way to export or download or view each records from every custom settings without querying them individually. I have tried a chrome extension called Custom settings exporter for Salesforce. But, if we have many custom settings, it only downloads some of them, it did not work for me. Any custom sfdx plugins or any other reliable tool will be helpful. Thanks!


what could cause a script to fail to find python when it has `#!/usr/bin/env python` in the first line?

Trying to get casperjs running on Ubuntu 12.04. After installing it when I run I get:   09:20 $ ll /usr/local/bin/casperjs lrwxrwxrwx 1 root root 26 Nov  6 16:49 /usr/local/bin/casperjs -> /opt/casperjs/bin/casperjs  09:20 $ /usr/bin/env python --version Python 2.7.3  09:20 $ cat /opt/casperjs/bin/casperjs | head -4  #!/usr/bin/env python  import os import sys  09:20 $ casperjs : No such file or directory  09: 22 $ python Python 2.7.3 (default, Sep 26 2013, 20:03:06)  [GCC 4.6.3] on linux2   So Python is present and runnable, casperjs is pointing to the right place and it is a python script. But when I run it I get "No such file".   I can fix it by changing the first line of the casperjs python file from:    #!/usr/bin/env python   to:   #!/usr/bin/python   Result:   $ casperjs --version 1.1.0-DEV   I managed to fix it, but I'm wondering why it didn't work with #!/usr/bin/env python, since that seems to be a normal interpreter line. Do I have something configured wrong?   Here are the steps to get casperjs:   $ git clone git://github.com/n1k0/casperjs.git $ cd casperjs $ ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs $ casperjs : No such file or directory


How can I make a bash script run only at shutdown?  I have searched for it and keep coming up empty handed. I would be fine with either a link or an explanation to how to do it.


Are the Winter Bash Hats Temporary or Permanent?

I was wondering: are the Winter Bash hats a temporary thing that disappears after some time, or are they here to stay and can we use them whenever we like?   Edit: If the hats disappear after a couple of weeks, will the hats we earn let's say in 2018 be available in 2019 or are we gonna start with a completely new set of hats from scratch?


I would like to get to Lille Flandres station by means of metro. However, i do not know working schedule of Lille metro.  My question is that does metro work 7/24 in Lille, France?


Different collation between System and User databases in SQL Server

Recently, I have came across a situation where I found there is different SQL Collation is set for System databases and user databases on a sql instance in production.  Like: Danish_Norwegian_CI_AS for master, tempdb,model and msdb.     Danish_Norwegian_CI_AI for USER_DB's.  Would there be any problem with this type of collation settings?


Power Set, Bijection Function, Equivalence Relation

Let $S$ be a set and $P(S)$ the power set of $S$. For sets $A,B⊆P(S)$, we say that $A \sim  B$ if there exists a bijective function $f: A \rightarrow B$. Show that $\sim $ is an equivalence relation.


How can I change or install screensavers?

I want to change the default screen saver in Ubuntu 11.10/12.04. On 11.04 I just did a  sudo apt-get install xscreensaver-data-extra xscreensaver-screensaver-bsod    And then I could change it in the control center -> screen saver options.  Now there seems to be no other option to change the default screen saver.


SQL Server query using case statement IN Clause doesn't work

I am having trouble passing parameter to a SQL Server query while using a case statement in where IN clause result not getting populated. When passing All its working but when passing multiple values it's not working. This is the SQL Server query that I have tried: select *  from      (select           concat(Size, '-', (case                                 when Type in ('DC', 'CA', 'GB')                                    then 'DC|CA|CB'                                when Type in  ('MC', 'OP')                                    then 'MC|OP'                                else Type end)) as current,           count(distinct(MSQ)) as MSQ        from xyz) as b  where       b.current IN (case when {{Parameter}} = 'All' then b.current else {{Parameter}} end)  Again in the above query, when passing {{Parameter}} without case statement it's working but I want it should work with the case. Any answer will be appreciated.


I am running virtual server with Windows Server 2012 R2 for RDS purpose mostly. OpenVPN server is installed on this host as well. Firewall is configured in a way that RDP connections could only be made from VPN network. But now to access RDP users have to type server's VPN ip (like 10.8.0.1), instead of using friendly DNS name (I have a domain registered). What would be the simplest way to bind a hostname to this ip? Changing host's file on each client machine is obviously not an option. Thanks in advance.


I'll be generous and say it might be reasonable to assume that nature would tend to minimize, or maybe even maximize, the integral over time of $T-V$.  Okay, fine.  You write down the action functional, require that it be a minimum (or maximum), and arrive at the Euler-Lagrange equations.  Great.  But now you want these Euler-Lagrange equations to not just be derivable from the Principle of Least Action, but you want it to be equivalent to the Principle of Least Action.  After thinking about it for awhile, you realize that this implies that the Principle of Least Action isn't really the Principle of Least Action at all:  it's the "Principle of Stationary Action".  Maybe this is just me, but as generous as I may be, I will not grant you that it is "natural" to assume that nature tends to choose the path that is stationary point of the action functional.  Not to mention, it isn't even obvious that there is such a path, or if there is one, that it is unique.  But the problems don't stop there.  Even if you grant the "Principle of Stationary Action" as fundamentally and universally true, you realize that not all the equations of motions that you would like to have are derivable from this if you restrict yourself to a Lagrangian of the form $T-V$.  As far as I can tell, from here it's a matter of playing around until you get a Lagrangian that produces the equations of motion you want.  From my (perhaps naive point of view), there is nothing at all particularly natural (although I will admit, it is quite useful) about the formulation of classical mechanics this way.  Of course, this wouldn't be such a big deal if these classical ideas stayed with the classical physics, but these ideas are absolutely fundamental to how we think about things as modern as quantum field theory.  Could someone please convince me that there is something natural about the choice of the Lagrangian formulation of classical mechanics (I don't mean in comparison with the Hamiltonian formulation; I mean period), and in fact, that it is so natural that we would not even dare abandon these ideas?


Probability of being same birthday of at least three people

What is the probability that in a randomly chosen group of r people at least three people have the same birthday?  I have tried doing this question as fallows- 1-(probability of all people having different birthday+ any 2 people have same birthday+2 people in each of 2 sets have same birthdays but distinct for particular set+probability of 2 people in each of 3 sets have same birthdays but distinct for particular set+.......)   but i can't generalize it....


Show that $A = \{p\in\mathbb{ Q}^+\mid p^22\}$ contains no smallest number

I was reading Principles of Mathematical Analysis - Walter Rudin. In the start (pg-11), it is shown that the equation $p^2 = 2$ is not satisfied by any rational $p$ i.e. $\sqrt{2}$ is irrational.  After this the book says:  "We now examine this situation a little more closely. Let $A$ be the set of all positive rationals $p$ such that $p^2 < 2$ and let $В$ consist of all positive rationals $p$ such that $p^2 > 2$. We shall show that $A$ contains no largest number and $В$ contains no smallest.  More explicitly, for every $p \in A$ we can find a rational $q \in A$ such that $p < q$, and for every $p \in В$ we can find a rational $q \in В$ such that $q < p$.  To do this, we associate with each rational $p > 0$ the number $$ \begin{align} q &= p - \frac{(p^2 - 2)}{p + 2} &(2)\\ &=\frac{2p + 2}{p + 2} &(3)\\ &\Rightarrow q^2 - 2 = \frac{2(p^2 - 2)}{(p + 2)^2} &(4) \end{align} $$  If $p \in A$ then $p^2 — 2 < 0$, (3) shows that $q > p$, and (4) shows that $q^2 < 2$. Thus $q \in A$. If $p \in В$ then $p^2 — 2 > 0$, (3) shows that $0 < q < p$, and (4) shows that $q^2 > 2$. Thus $q \in B$."  I am unable to follow this part, specially how we construct the equations (3) and (4). Can somebody explain?


I often see in particular Americans use the words "he/she" (also sometimes "he or she") as a gender-neutral pronoun.   This is grammatically incorrect (the sentence "he/she" makes no grammatical sense), it's clumsy, it's long (two syllables), and, to be a bit pedantic, it doesn't even solve the problem of gender bias, because why is it "he/she" and not "she/he"?   On the other hand, we have the perfectly viable alternative of using "they". It's short, it's grammatically correct, it's completely neutral, it just works.   So why do so many speakers use the clumsy "he/she" rather than the elegant "they"?


Reconsider fixing the comment character counter so it doesn't count characters that are stripped

Compare these two images:   My comments appear to be exactly the same as far as the text body goes. However the first image shows that I have 584 characters left to put in my comment, and yet refuses to post. The second image shows that I have 9 more characters to go before being able to post this comment. The sorcery that comes into play here is the famous ZWSP (Zero-Width Space) character. On the first image I inserted enough of them to trick the character count into thinking that there was actually enough text there, so it started counting down the remaining characters. It however wont let me post this as a comment (for obvious reasons).  This is not a duplicate of . That is a bug report that was  by The Great Jeff Atwood himself; this is a feature request to reconsider that decision. You could say that is the end of it all. But...           . And probably there are a lot more deleted posts as well. Obviously it has people fooled every now and then, as it just fooled me today. I find it very confusing to see a character count, which is later contradicted with an error message. Can we make both character counts, the number of characters remaining/to go and the one for the error message, correspond? As  on the canonical question points out adding .trim() in the code would most likely suffice. This would still leave one error remaining, that of stripped @replies, but that is a whole different regex I'm not demanding to be slain.


I would like to execute this query :      String query = "delete from table_a where id_table_a = ? and id_entity in ()";     PreparedStatement prepare = db_connection.prepareStatement(query);     prepare.setInt(1, var_a);   In the SQL query, I'm trying to put between the parentheses an attribute (defined as "id") of objects (defined as "Entity"). Objects "Entity" are contained in an ArrayList.  My goal is to put in a string all the "Entity.id" separated by commas. And then I will put this string between parentheses in my query.  I'd like to have advice cause I don't know if it's the better way to realize it...


shell script set the default numbers as double digit zero as prefix

In a shell script, I'm processing, some addition process will print an output. If it is a single-digit one, then it has to add zero as a prefix. Here is my current script: c_year=2020 for i in {01..11}         do               n_year=2020             echo 'Next Year:'$n_year             if [[ $i == 11 ]]             then n_month=12             echo 'Next Month:'$n_month             else              n_month=$(($i + 1))             echo 'Next Month:'$n_month             fi             echo $date" : Processing data '$c_year-$i-01 00:00:00' and '$n_year-$n_month-01 00:00:00'"         done  The i value is in doule digit, but the n_month is still printing single digit. How do I set default shell output should return as double digit? Or any alternate way to solve this?


Programmatically change the template of the layout

Is there a way to change the layout with arcpy?  Here are images of the steps I want to do programmatically.      The file I want to choose already exists and I want to hardcode its path in the script. I run ArcGIS 10.2


A question concerning the Galilean invariance of Newton's laws

When proving the Galilean invariance of Newton's laws is it tacitly assumed that all equations are covariant, i.e. that they are form invariant?   For example, it is fairly trivial to show that the right-hand side of Newton's 2nd law is invariant under Galilean transformations. That is $$m\mathbf{a}=m\mathbf{a}'$$ however, does one simply assume that the relationship $\mathbf{F}=m\mathbf{a}$ holds in both inertial frames? It seems reasonable to assume that a given force acting on a body shouldn't change depending on the frame of reference, i.e. that $\mathbf{F}=\mathbf{F}'$, since physical laws should be observer independent and hence the equations describing them should also be observer independent.  As for other quantities, such as momentum and kinetic energy, these are clearly not Galilean invariant quantities, yet their equations are covariant, i.e. $\mathbf{p}=m\mathbf{v}\rightarrow\mathbf{p}'=m\mathbf{v}'$ and $E_{k}=\frac{1}{2}m\mathbf{v}^{2}\rightarrow E'_{k}=\frac{1}{2}m\mathbf{v}'^{2}$, but in each case $\mathbf{p}'\neq\mathbf{p}$ and $E_{k}'=E_{k}$. In this case is it simply that momentum and kinetic energy are simply defined by the equations $\mathbf{p}=m\mathbf{v}$ and $E_{k}=\frac{1}{2}m\mathbf{v}^{2}$, and so trivially $\mathbf{p}'=m\mathbf{v}'$ and $E'_{k}=\frac{1}{2}m\mathbf{v}'^{2}$?


Community wiki'zed by only one contributor

I just did quite some research on one question, editing the answer multiple times.  Here's my answer:   I'm the sole contributor to it, but because I managed to edit it more than 10 times, it has become a CW.  Now, people might upvote it and accept, but, because it's a CW, I won't get any rep even though I'm sole contributor.  Is this really intended?  Not being greedy or anything, but I actually would love some reputation from the question, because it involves some great research.


How does the Higgs boson give properties to matter such as mass?   I understand that the Higgs boson is one of the subatomic particles that gives matter its properties, but how?   Thanks


Installing Ubuntu on windows 10 with separate partition

Windows 10 seems to want to control everything while I attempt to install Ubuntu. How can I set up a separate partition for Ubuntu and keep Windows 10?  Please don't suggest deleting Windows 10. I don't like 10 but I don't want to lose it now either.


After cancelling the popup window, Lightning web component is not getting destroyed

I was trying to override the Order Object 'New' button with the Lightning Component (aura). I have created an aura component called 'CC_OrderCreateOverrideComponent' and inside that, I was calling the LWC component called cc_orderCreateWizard. <div id="createWizardDivId" class="slds-modal__container" >      <c:cc_orderCreateWizard id="abcId" parentId="{!v.recordId}" onrecordChange="!c.refreshView}"/> </div>  In the LWC Component, there is a cancel button which allows user to cancel the current process and close the current process. When the user clicks on the cancel button, I have redirected the current popup into the previous URL, and from the aura component, I have called the refreshView function. At that instance, the popup window is getting close and it will redirect to the previous URL. Here is the cancel operation in my LWC component, cancelOperation() {          window.history.back();     this.dispatchEvent(new CustomEvent('recordChange'));     return false; }  here is the refreshView function inside the aura component,  refreshView: function(component, event) {      console.log('LC ----------------- refreshView');      // refresh the view      $A.get('e.force:refreshView').fire(); }  The problem was when the user clicks on again the Order 'new' button, the previous details weren't removed. I tried out the destroy function inside the aura component. I think it has completely removed and I couldn't load the new order creation popup again. (It won't call the connectedCallBack method inside the LWC component.) Can someone help me to resolve this problem? Thank You.


How to disable text chat in Source engine games?

Given that the  is so extensive, is there a command to disable text chat? I feel that text chat is commonly used for trolling and harassment, as voice chat has a higher barrier for such behavior.


I just got a thin content penalty from Google. I was not sure what that meant, so after research I contacted a SEO expert who told me I was scraping websites and I needed to stop. The problem is, I am not scraping websites, I have 17 websites that are scraping me. I also have a google blogger that has decided to run a blog with my website name with all of my articles for the past seven months. I am not sure what to do, or if this is in fact what I got a penalty for. Does Google make mistakes like this? Any advice would be appreciated. Thanks.


This question is one that I'm sure has been beat to death, but I am new to bike riding. Ideally I would have bought the bike at a local bike shop and been fit for the perfect bike. However, the prices at the local shops where I live are pretty steep. So this is my predicament. I am approx. 5'6" to 5'7" (Please resist the urge. I know I'm a manlet.) My inseam is roughly 29.5". The frame size of the bike I ordered is 50cm and the sizing chart is below.  Did I get the right size?


Let $T$ be a tree with $k$ edges, and let $G$ be a graph where every vertex has degree at least $k$. Prove that $T$ is a subgraph of $G$.   Can someone give me tips/help on how to solve this problem?


Second copy of Ubuntu doesn't appear in GRUB menu

I have a machine running Xubuntu 18.04 and Mint. I've just installed Ubuntu 18.04.1. Everything seemed ok but it doesn't appear in the list of boot options at startup.   When I previously installed Mint with Xubuntu the Mint option was there immediately.  What's the problem and how can I fix it?


How can I monitor internet usage in my network?

I need to know which computer is consuming my bandwidth. Is there a tool to do this?


Stack Exchange Android app keeps replaying notifications

Version of the app: 1.0.51. (It is up to date at the time of writing according to Google Play.)  This started happening after the network problem that happened earlier this morning. Both my tablet and my phone are popping up notifications for events (comments, and probably edits too) that happened prior to the network issue. I had received notifications for these events already and had already cleared them before the network issue happened.  The repeated notifications do not show up in the bar displayed at the top of the Stack Exchange sites. In other words, I get notified again in Android but do not get notified again on the SE web sites.


What happens to my domain if the TLD fails?

I have recently registered some domains on the basically brand new .directory gTLD. Because of operating costs to maintain a gTLD, it is assumed that many of the hundreds being rolled out this year and next will fail. I will admit I am not very knowledgeable on how the TLD process works.   What exactly does a new TLD failing mean? I realize that they lose ICANN accreditation, but does that just mean that they will be no longer be sold? If the .directory TLD were to go under, would my .directory domains be affected? I bought it from domain registrar Gandi if that helps.


If the Darkness spell is cast on a point that is on the end of a 10 foot pole or a glaive or some other large object, does the center of the sphere stick to that end or does it emanate from the "center" of that object?


I just have this "a" mesh, I fixed it up after i turned the text into a mesh, and I don't know how to dissolve these edge loops to make the top and bottom face an ngon since I don't need it to have nice geo. And I can't actually dissolve them, so I'm confused. also I can't just select the entire outside and fill a face because it fills over the hole in the a. Thanks for the help.


I'm using article, and I have a few section. the problem is that I don't know how avoid new page when there is a new section


What commands (exactly) should replace the deprecated apt-key?

Setting up keys for a local repository on a new ubuntu 20.10 virtual machine, I got a message that apt-key add was deprecated and I should read the apt-key(8) man page. The apt-key(8) man page is a collection of words strung together, but if it contains information I can't winkle it out. Can anyone tell me what, exactly, I should type on my terminal instead of: apt-key add name-of-file The command does apparently still work after honking at me, so I was able to proceed, but would like to know what I'll need to do in the future.


I am trying to find references on processing carried out inside the camera before the image is stored in RAW format. I am quite sure that some denoising is performed at the hardware level after the gain (that in photography we call ISO).  Are there any reference on the possible processing carried out before RAW image are produced?


What to do before root and flash my phone?

Right now I have in my phone the stock rom and I haven't rooted it. I want to root it and change the rom.    What should I do first, root or flash the rom? I don't want to lose all the configuration, apps, apps data or files (images, music, videos, etc in the SD). How can I do to be sure to avoid this? I want to make sure I can go back to the stock rom if I need, is there any special thing I should do?   If its relevant, I have a Samsung Galaxy I5510.  Thanks!


lsof show number of open files that are more then what configured

we verify the file max as  [root@linux02 ~]# cat /proc/sys/fs/file-max 500000   but when we run lsof we get  [root@linux02 ~]# lsof | wc -l lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/42/gvfs       Output information may be incomplete. 851635 [root@linux02 ~]#   how it can be that lsof | wc -l   show more open files then what is configured ?


A finite-dimensional vector space cannot be covered by finitely many proper subspaces?

Let $V$ be a finite-dimensional vector space, $V_i$ is a proper subspace of $V$ for every $1\leq i\leq m$ for some integer $m$. In my linear algebra text, I've seen a result that $V$ can never be covered by $\{V_i\}$, but I don't know how to prove it correctly. I've written down my false proof below:  First we may prove the result when $V_i$ is a codimension-1 subspace. Since $codim(V_i)=1$, we can pick a vector $e_i\in V$ s.t. $V_i\oplus\mathcal{L}(e_i)=V$, where $\mathcal{L}(v)$ is the linear subspace span by $v$. Then we choose $e=e_1+\cdots+e_m$, I want to show that none of $V_i$ contains $e$ but I failed.  Could you tell me a simple and corrected proof to this result? Ideas of proof are also welcome~  Remark: As @Jim Conant mentioned that this is possible for finite field, I assume the base field of $V$ to be a number field.


I need to find only posts with a tag forest gump. I've tried: new WP_Query('tag=forest+gump');, new WP_Query('tag=forest gump');. However they both return ALL the posts and not only the posts with forest gump tag. Single tags (without spaces) work fine, though. Alternatives (like plain SQL) will work as well.  The entry tag line is forest gump, forrest gump, questend.


Is there any difference between umask value and chmod value?

I'm using umask in fstab settings. What I know is if i set 755 with chmod, the permission will be rwxr-xr-x. But, when I use umask in fstab with 755 value, permission that i get is ----w--w-. Giving 0755 doesn't seems to work.  Is there any difference between those two?  And how to give rwxr-xr-x permission with umask in fstab?


How to convert string to datetime in python

I have a date string in following format 2011-03-07 how to convert this to datetime in python?


Fire event by dynamically inserted element

I am adding dynamical the below element to my table.  As you can see when you press the +-button you get a new button Add Product2 inserted below in the table.  Find below my minimum example:    $(".btn.btn-dark.btn-sm").on("click", this.clickDispatcherTable.bind(this)) $(".btn.btn-primary.btn-sm").on("click", this.ourClickDispatcher.bind(this));  function clickDispatcherTable(e) {   let plusButton = $(e.target).closest(".btn.btn-dark.btn-sm")    if (plusButton.hasClass("product2")) {     let plusButtonParent = plusButton[0].parentElement.parentElement;     plusButtonParent.insertAdjacentHTML('afterend', `
       	                <button type="button" data-exists="product2" class="btn btn-primary btn-sm product2">                                             Add Product2                                         </button>
             `)   } }  function ourClickDispatcher(e) {   console.log("event") } <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />

       Product 2	                <button type="button" data-exists="product2" class="btn btn-primary btn-sm product2">                                             Add Product2                                         </button>         <button type="button" class="btn btn-dark btn-sm product2">+</button>

     When I press the button that is at the top I get the console output event. When I press the button - which got inserted by JQuery, the console.log event does not get fired.  Any suggestions why the event is not loaded properly?


Writing output of python print() to file appears after process is killed / finished

I had several print() statements in my code. I want run the code overnight and have them write to file. I tried redirecting output to file as: python mycode.py >> log.txt  While python process is running, I cannot see anything written to file. When I kill the process and open the log file, I find the output in it. Similar behavior was seen when I explicitlys specified file handle in the every print statement: output_file = open('log.txt','w') print('blablabla', file=output_file)  How can I make print to write the file immediately? Am I missing anything?


I have the following code:  var cloudShadowBitMask = (1 << 3); var cloudsBitMask = (1 << 5) ; qa.BitwiseAnd(cloudShadowBitMask).Eq(0).And(qa.BitwiseAnd(cloudsBitMask).Eq(0));   Can anyone explain the methods to me?


Can I return to Spain after spending 90 days there?

This summer I spent 88 consecutive days in Estepona from June 8th to September 6th. I would like to go back October 31st but I am unsure of the rules. Do I have to be out of the country for 6 months after September 6th or did coming back to Chicago for 2 months satisfy the 180-day law?


Changing default behavior of Windows' thumbnail caching

I find it extremely annoying (and ultra lame) that Windows Explorer will only generate thumbnails for those files whose names are visible in the window.  If I open a folder full of photos and walk away for an hour, why the heck wouldn't it generate the thumbnails in the background, so that when I come back I can quickly scroll through the folder and find the photos I want?  Sure, I could import all of the photos into Picasa, but that's not the solution I am looking for.  I really want to find out if there is a way to force Windows Explorer to load all thumbnails in a folder.


Sampling distribution of regression coefficients - technical question

question has a very detailed and helpful answer, but is pretty old. I would like to understand why \begin{equation} \frac{\widehat{\beta}_{i}-\beta_{i}}{\sigma\sqrt{(X^{T}X)^{-1}_{ii}}} \sim N(0,1) \end{equation} holds in the approved answer and am thankful for your help.


javascript date adding days getting wrong days

I am using this code on the page to show when the next few dates are, they are always the next few days... but it is not working now:  <script>var now = new Date();     var day = ("0" + (now.getDate()+3)).slice(-2);     var day2 = ("0" + (now.getDate()+4)).slice(-2);     var month = ("0" + (now.getMonth() + 1)).slice(-2);     var today = (month)+"/"+(day)+"/"+now.getFullYear();     var today2 = (month)+"/"+(day2)+"/"+now.getFullYear();     document.write(today); document.write(' and/or ');document.write(today2); </script>   But it is putting this out:  currently scheduled for: 05/32/2017 and/or 05/33/2017   how do I get the + 1 to have it go to the next month if it needs to?


How to move window buttons to right side in 14.04 gnome fallback

Ubuntu Tweak doesn't seem to give me this capability, I can change theme stuff but those buttons are fixed on the left side


Prove $\sin x + \sin 3x + \cdots + \sin(2n-1)x = \frac{\sin^2 nx}{\sin x}$ is true

If $x \neq k\pi$ and $n \in \mathbb Z$ then prove $$\sin x + \sin 3x + \cdots + \sin(2n-1)x = \frac{\sin^2 nx}{\sin x}$$    So I stumbled into this problem in my textbook in the complex numbers chapter. It is an optional problem, so the teacher won't explain it to us. I have no idea on how to approach it in the first place. Could anyone please give me a clue on how to begin solving it?


Auto-increment in Oracle without using a trigger

What are the other ways of achieving auto-increment in oracle other than use of triggers?


"Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on."

I'm trying to log some messages to a RichTextBox control.  It logs the first 2 or 3, then throws the following error:     "Cross-thread operation not valid: Control 'txtLog' accessed from a thread other than the thread it was created on."   This is a very simple app that just does a single  subscription.  There was no attempt at threading.    Per another question I found on SO, I'm using a stringbuilder:      public StringBuilder logtext = new StringBuilder();   Then I wanted to simplify things so I could just call log("this is a log message"):      public void log(string txt)     {         logtext.Append(Environment.NewLine + txt);         txtLog.Text = logtext.ToString();     }   Like I said, it logs a few strings fine but then it tries to log the following:     "ConnectStatus: [1,\"Connected\",\"presence\"]"   that's when it throws the error.  Here is the code which is returning that value:  pubnub.Subscribe<string>(   chnl,    DisplayReturnMessage,    DisplayConnectStatusMessage,    DisplayErrorMessage );  public void DisplayReturnMessage(string result) {     log(TimeStamp() + " Result: " + result); }   And here is a ss of the debugger if it helps:    Please ignore the fact that TimeStamp() literally returns "H:mm:ss.ffff" right now :)  I was able to manually log("ConnectStatus: [1,\"Connected\",\"presence\"]") and it worked, so I don't think it's a string issue.  The threading thing is really throwing me off.


What is the difference between IEnumerator and IEnumerable?

Possible Duplicate:          What are the differences between IEnumerator and IEnumerable?


If I do Vault Of Glass on easy and obtain all loot chests then repeat on hard, will those loot chests " reset"????  Side note: anyone know the chance of getting exotic stuff from the raid, because I swear I have a curse on my character (have had to buy every legendary and exotic item - level 29)  Thanks guys and sorry if this question has been addressed already :)


Why there isn't a way to raise a spam flag on SE blogs?

I was peacefully reading the Gaming.SE blog, when suddenly, GASP I . I diligently look for a way to get rid of it... but found none. , so I'm doing a feature request. Ah, also, if someone is kind enough to remove that spam, thanks! D:


What are the features of an application that become a core/pre-installed/default Ubuntu application?

For example there is a lot of text editors, media players, text editors, mail clients, etc, but only one of each group is selected to be delivered as pre-installed in the next version of Ubuntu. So, I'd like to know how are those applications rated to become a pre-installed application?  Do it need to be not that great so that applications other developers have written have the chance to be installed by the user? For example, let's say that the application AAA is the best of its group, but if this application is used as default/pre-installed, other applications from the same group will probably not be installed by the users because they will know that AAA is the best.


User library (collection of C modules): best method to provide overridable configuration per C module?

I want to create and share a new C user library (using best practices). It is a collection of C modules that a user program can compile and link with. Each module has a default configuration, but the user program must be able to override the default configuration (only if it wants to). Also, the user program must not be forced to provide configurations for C modules that it does not use.  I want to group the C module files together in the same library directory (e.g. module.h, module_cfg.h & module.c) to minimize the learning curve for a user of my library.  Here is my solution to the problem, but I was wondering if this is bad form and if there is a better solution.  Let's call the new C library FancyLib and use the prefix "fl" to prevent namespace clashes with other libraries or user code. Inside the library is a timer module. It has a default configuration file, but is overridden by a user supplied configuration file. Also inside the library is a module called foo that is not used by the user program.  The whole user project, including the library, consists of the following files:   libs/fl/fl_lib.h libs/fl/utils/fl_tmr.h libs/fl/utils/fl_tmr_cfg.h <-- DEFAULT libs/fl/utils/fl_tmr.c libs/fl/utils/fl_foo.h libs/fl/utils/fl_foo_cfg.h <-- DEFAULT libs/fl/utils/fl_foo.c cfg/fl_tmr_cfg.h <-- OVERRIDE src/main.c   The content of src/main.c is:  #include <fl_lib.h>  int main(int argc, char *argv[]) {     fl_tmr_init(); }   The content of libs/fl/fl_lib.h is:  #ifndef __FL_LIB_H__ #define __FL_LIB_H__  #include <utils/fl_tmr.h> #include <utils/fl_foo.h>  #endif   The content of libs/fl/utils/fl_tmr.h is:  #ifndef __FL_TMR_H__ #define __FL_TMR_H__  // Include configuration (default or user supplied) #include <fl_tmr_cfg.h>  void fl_tmr_init(void);  #endif   The content of libs/fl/utils/fl_tmr.c is:  #include "fl_tmr.h" // <-- Need to be quotes  void fl_tmr_init(void) {     // Initialise timer }   The content of libs/fl/utils/fl_foo.h is:  #ifndef __FL_FOO_H__ #define __FL_FOO_H__  // Include configuration (default or user supplied) #include <fl_foo_cfg.h>  #endif   The search path for the compiler is specified as "-Icfg -Isrc -Ilibs/fl". This ensures that the user supplied configuration file is found first (cfg/fl_tmr_cfg.h) and overrides the default file in the library (libs/fl/utils/fl_tmr_cfg.h).  Is this the best way to go about it?  This solution only works if #include <> (with angle brackets) are used, because it "forces" the compiler to follow the specified include directory precedence and not use the file it found first in the same directory as the *.c file (e.g. when libs/fl/utils/fl_tmr.c is compiled).  The use of #include "" (quotes) versus #include <> (angle brackets) have been discussed in depth , but I was still confused by  that made me think that #include <> (angle brackets) should be used for system files only, e.g. #include <stdio.h>  One reference example is the  that uses #include <filename> extensively, but makes an exception. Here is an example:  boost\libs\math\src\tr1\acosh.cpp:  #include <boost/math/tr1.hpp> #include <boost/math/special_functions/acosh.hpp> // <-- Angle brackets #include "c_policy.hpp" // <-- Quotes   Note: c_policy.hpp is in the same directory as acosh.cpp  One pitfall mentioned in that discussion is that dependencies are generated for #include "" files only and not for #include <> files. This means that if a file is changed in the library then the whole project needs to be rebuilt from scratch.  Thanks in advance,  Pieter  P.S. Any other pointers/hints/links/examples to create a good (embedded) C library would be greatly appreciated.


Switch keyboard layout hotkeys doesn't work on lockscreen

I've recently upgraded to Ubuntu 13.10 which has a known  that makes it impossible to change keyboard layout via Alt+Shift. I installed  patch which made it possible to switch layouts again.  The problem I'm facing now is that it is still impossible to switch keyboard layout when I lock (Ctrl+Alt+L) system and press Alt+Shift. This way if I lock system with wrong layout enabled, I can't switch it to enter the password and unlock PC. I can still change layout by clicking on the layout indicator. I'll be thankful for suggestions on solving this.  I'm aware that this is due to a bug, but how can I work around this bug in the meantime?


Tiling a $3 \times 2n$ rectangle with dominoes

I'm looking to find out if there's any easy way to calculate the number of ways to tile a $3 \times 2n$ rectangle with dominoes. I was able to do it with the two codependent recurrences  f(0) = g(0) = 1 f(n) = f(n-1) + 2g(n-1) g(n) = f(n) + g(n-1)   where $f(n)$ is the actual answer and $g(n)$ is a helper function that represents the number of ways to tile a $3 \times 2n$ rectangle with two extra squares on the end (the same as a $3 \times 2n+1$ rectangle missing one square).  By combining these and doing some algebra, I was able to reduce this to  f(n) = 4f(n-1) - f(n-2)   which shows up as sequence , confirming that this is the correct recurrence.  The number of ways to tile a $2 \times n$ rectangle is the Fibonacci numbers because every rectangle ends with either a verticle domino or two horizontal ones, which gives the exact recurrence that Fibonacci numbers do. My question is, is there a similar simple explanation for this recurrence for tiling a $3 \times 2n$ rectangle?


Getting some adult sites as popup window

I am using windows 7 64 bit, whenever I open new tab in my browser I got open some porn site as pop up window (just like we got adds as pop up window).This happens on almost every minute. All it started after connecting my laptop with my office network. So please tell me the solution for this.


"Cannot help but think" vs. "cannot but think" vs. "cannot help thinking"

Which of the following are grammatical?        I cannot help but think.     I cannot but think.     I cannot help thinking.        I was taught (1) is not correct. Is it true? Or are they all correct? Is there any other way(s) to express what the speaker is trying to say using the words "help" and "think" apart from the three ways I mentioned?


ms sql database in suspect mode when we upgrade from developer to standard edition

sql database in suspect mode when we upgrade from developer to standard edition 2012 version. in log file there is two error occurred 933 and error 905. following error occurred when we try to get back online the db     Msg 5069, Level 16, State 1, Line 1 ALTER DATABASE statement failed.   Msg 905, Level 21, State 1, Line 1 Database 'VTSDB' cannot be started   in this edition of SQL Server because it contains a partition function   'FNprocessedrawdata'. Only Enterprise edition of SQL Server supports   partitioning. Msg 933, Level 21, State 1, Line 1 Database 'VTSDB'   cannot be started because some of the database functionality is not   available in the current edition of SQL Server.


Double minus sign not changing to long sign when using XeLaTeX system font

Normally I often use the sign -- to display a long minus sign — in my text. However, after using the fontspec package and setting my main font to "HelveticaNeue" the long minus sign isn't displayed anymore, but the two minus signs theirselves. Is there any possibility to change that behavior? Thanks for any hint.  \documentclass[11pt,titlepage,a4paper]{article} \usepackage{fontspec} \setsansfont[Scale=0.9]{HelveticaNeue} \renewcommand\familydefault{\sfdefault} \begin{document} This is some text -- this is some other text. %not showing endash \end{document}


How do I set an environment variable on the command line and have it appear in commands?

If I run  export TEST=foo echo $TEST   It outputs foo.  If I run  TEST=foo echo $TEST   It does not. How can I get this functionality without using export or a script?


Difference between function declerations

What is the difference between this (a 'standalone' function): function standaloneFunction () {     console.log('standaloneFunction runs, success') }  standaloneFunction()   ...and this (a function inside a variable):  let variableFunction = function variableFunction () {     console.log('function inside let has same name as the variable, runs? - yep, does.')  }  variableFunction()   Is it a problem that the variable and the function share the same name? it doesnt seem so - i speculate this is because it has something to do how variables and functions are saved in memory? Functions in their entirety, and variables only their declaration? When i do console.log(this), i can't find the 'variableFunction' in the execution context of 'this' - however, 'standaloneFunction' does appear. Have you, as a beginner, also asked yourself such questions? Am i being too picky about such details? Should i already use es6 syntax? Please also don't hold back with any advice regarding articulating my question. Thanks to everyone who has taken their time to read this.


What application is "using my screen" with some kind of overlay?

I want to turn on accessibility permission to Greenify app. But I'm unable to click "ok". I also have Twilight and since some security built in the system, I have to disable,  stop or uninstall the aforementioned app which uses an screen overlay to adjust color temperature at sunset and sunrise.   Thing is that I'm still unable to click the ok button. I believe some other app is using some screen overlay but I don't know which one.   How can I find out? Other that trial and error uninstalling and reinstalling every app and their combination (in case there are more than one).   P. S. Already found it,  was Nav Layer.  Anyway, I keep the question for research.


Tables and figures slightly wider than text in article class

I have some tables and figures which are (slightly) wider than the text width. This results in them aligning with the left side of my text and going far out in the right side instead of actually being centered.  I understand that using memoir and adjustwidth can solve the problem, but is there any options when using the article class?


Is it possible to get the progress of an XMLHttpRequest (bytes uploaded, bytes downloaded)?   This would be useful to show a progress bar when the user is uploading a large file. The standard API doesn't seem to support it, but maybe there's some non-standard extension in any of the browsers out there? It seems like a pretty obvious feature to have after all, since the client knows how many bytes were uploaded/downloaded.  note: I'm aware of the "poll the server for progress" alternative (it's what I'm doing right now). the main problem with this (other than the complicated server-side code) is that typically, while uploading a big file, the user's connection is completely hosed, because most ISPs offer poor upstream. So making extra requests is not as responsive as I'd hoped. I was hoping there'd be a way (maybe non-standard) to get this information, which the browser has at all times.


A variable from another function is getting updated somehow

I have a function that calls another function.  For some reason, the variable in the first function is updated by the second function.  Is python passing a variable by ref as a default?  Basically why is 'AA' updated in the second run? And how can I make it the same, just like the first run.  For simplicity, I created a short sample code that has the same issue.  I have a function (test) that calls (test2).  The variable 'AA' in 'test' is updated by 'test2' when I perform BB.append(list_position[0]).  The two function is below:  def test(A, childs):      for x in range(0,childs):         list_pos = [x]          AA = A          print("")         print("AA: ", AA)         print("list_position: ", list_pos)         test2(origin,list_pos)  def test2(B,list_position):       BB = B     list_len = len(BB)      print(list_position[0])     #BB.append(list_position[0])   Output of the first run (with last code commented out):  AA:  []     list_position:  [0]     0  AA:  []     list_position:  [1]     1  AA:  []     list_position:  [2]     2  AA:  []     list_position:  [3]     3   Output of the Second run (with last code uncommented):  AA:  []     list_position:  [0]     0  AA:  [0]     list_position:  [1]     1  AA:  [0, 1]     list_position:  [2]     2  AA:  [0, 1, 2]     list_position:  [3]     3


Let $G$ be a solvable group. It is a well-known Theorem that "the index of every maximal subgroup of $G$ is a power of prime or infinite". I want to find an example of infinite case.


Find all integer number with this condition: n |2^n+1

Find all integer number such as n,which could  be divisor of 2^n+1.I found that n could be power of three, but I can't find all solutions.


Or: what is the minimum amount of time between dragonbreaths?  I've always been of the impression that, in D&D 3.5, a roll of "1" on a 1d4-round cooldown meant that the creature in question could use the ability in the next round. However, I've sometimes run into people who think it works differently, that a roll of "1" means that they can't use it in their next turn ("they must wait a whole round to use it again, after the turn they used it").  The relevant text of the true dragons' breath weapon is as follows:     Breath Weapon (Su): Using a breath weapon is a standard action. Once a dragon breathes, it can’t breathe again until 1d4 rounds later. If a dragon has more than one type of breath weapon, it still can breathe only once every 1d4 rounds.   There's similar text in other monsters, such as the ghost's telekinesis ability:     When a ghost uses this power, it must wait 1d4 rounds before using it again.   I am of the opinion that the definition of a round would imply that a "1" means the cooldown ends just before the creature's next turn, but some people I'm talking to don't think so.     A round can be a segment of game time starting with the first character to act and ending with the last, but it usually means a span of time from one round to the same initiative count in the next round. Effects that last a certain number of rounds end just before the same initiative count that they began on.   Is there any statement in the game's rules, including Dragon Magazine and the Rules Compendium, that specifies that these cooldowns work in a particular way? If there isn't, what about from supplemental, but not quite game rule resources, like Rules of the Game and Sage Advice articles, or the much-maligned WotC FAQ?  In the absence of that, is there a statement of the developers' RAI anywhere (i.e. a cited forum post, public chat log, or similar; not another rule that has been read as implying something about this one)?  And finally, if there is outright nothing stated about this issue, can anyone cite an English language grammar rule that would solve it?


What is the plural of "brother", "brothers" or "brethren"?

In English books, I read  that the plural of brother was given as brethren, but I hear people in movies or serials using brothers.   Which one is correct?  Is it the difference due to difference in American and British English?


I got to a state when upgrade is not possible - old system (10.10, packages index too broken) I dediced to reinstall.  Now I'd like to keep my /home. Ideally, I'd like to burn a CD or ISO to USB and click Next, Next, Next.  How should I proceed?


how does it matter for methods to have 'final' parameters in Java?

I see some codes that have method implementation as  public void setVariables(final int value){ this.value=value; }   why is the final keyword used in the parameter.  why not declare  public void setVariables(int value){ this.value=value; }   I understand that for classes defined inside methods that access method parameters, they have to declared final  what exactly is the benefit of having final keyword in parameter ?


Separate long math text under sum symbol into different lines?

I have the following equation, where there is a lot of stuff under the sum symbol:  \begin{equation} d(\vec{x},\vec{y})=   \sum_{Z_{xy}\in\vec{Z}_{xy},\forall x\in\vec{x},\forall y\in\vec{y}}      f(Z_{xy}) \end{equation}   In the resulting document, I find it kind of hard to read. Is there a way to write the equation to make the result more readable, e.g. putting the stuff under the sum symbol on different lines?


Lightning Styling - Component Not Rendering with Default Style

Just getting my feet wet in lightning.  I am trying to render the following lightning app in Salesforce classic. However the form displayed is returned only in basic HTML (without the default lightning styling).   Is it required that lightning be enabled to render lightning components? I would think not since the lightning components can be rendered on visualforce pages. Do I need to include any additional markup to render correctly?   appName.app:  <aura:application> <c:myFirstComponent/> </aura:application>   myfirstComponent.cmp:   <aura:component implements="force:appHostable">

Basic Input Text
         <lightning:input name="input1" label="Enter some text" />         <lightning:input name="input2" label="Text field with predefined value" value="initial value"/>         <lightning:input name="input3" label="Text field with a placeholder" placeholder="type here..."/>

Advanced Input Text
         <lightning:input name="input4" readonly="true" value="initial value" label="Read-only text field with a predefined value" />         <lightning:input name="input5" disabled="true" value="initial value" label="Disabled text field with a predefined value" />         <lightning:input name="input6" required="true" value="0123456789" label="Required text field with a maximum length of 10" maxlength="10" />         <lightning:input name="input7" label="Text field that handles the onfocus and onblur events" onfocus="{! c.handleFocus }" onblur="{! c.handleBlur }" />
      <aura:attribute name="firstName" type="String"/>

Live Input Text
         <lightning:input name="input8" value="{! v.firstName }" placeholder="type your first name..." label="Text field with attribute binding" />
             FirstName: {! v.firstName }

 </aura:component>   What is being displayed on preview: